deviceplug / btleplug

Rust Cross-Platform Host-Side Bluetooth LE Access Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

(dev branch - async) service discovery always times out on first device connect on Linux BlueZ

qdot opened this issue · comments

commented

Describe the bug

  1. Connect to a device
  2. Run service discovery

Expected behavior
Services are returned normally.

Actual behavior
All devices seem to fail this step on the first run.

Jun 05 23:40:11.714 ERROR device creation{name=CycSA address=C0:0A:AD:EA:65:46}: buttplug::server::device_manager_event_loop: Device errored while trying to connect: Device type specific error: Btleplug error: Other("Service discovery timed out").
Jun 05 23:40:11.718 ERROR device creation{name=KEON address=AC:67:B2:25:EB:02}: buttplug::server::device_manager_event_loop: Device errored while trying to connect: Device type specific error: Btleplug error: Other("Service discovery timed out").
Jun 05 23:40:11.730 ERROR device creation{name=LVS-Edge204 address=C1:E0:E9:13:05:7C}: buttplug::server::device_manager_event_loop: Device errored while trying to connect: Device type specific error: Btleplug error: Other("Service discovery timed out").

Devices still stay connected to the system after this, and subsequent connect calls in btleplug seem to work.

Additional context
Tested on RPi3 and RPi4, both running Raspbian.

commented

This is a duplicate (or at least a symptom) of #165, marking as such and closing.