You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I was running bluepy on Raspberry Pi 3 B+. To start a passive BLE scan, I specified passive=True when calling Scanner's scan method. Then, in ScanDelegate's handleDiscovery, the input ScanEntry's connectable became always True, even when the arriving advertisement came from a MAC address that had only been giving connectable=False during active BLE scanning.
To narrow down the cause, I even modified btle.py to print out resp['flag'][0] in ScanEntry's _update method. (resp['flag'][0] is the raw material to derive the up-to-date "connetable" value.) It seems that during passive BLE scanning, resp['flag'][0] is always 0x0, while during active BLE scanning, resp['flag'][0] can be either 0x0 or 0xfffffffc. Although I am unsure if the above helps debugging, I think the above narrows down the root cause to bluepy's interaction with BLE module.
It would be great if anyone could share feedback/solutions. Great thanks.
The text was updated successfully, but these errors were encountered:
Hi, I was running bluepy on Raspberry Pi 3 B+. To start a passive BLE scan, I specified passive=True when calling Scanner's scan method. Then, in ScanDelegate's handleDiscovery, the input ScanEntry's connectable became always True, even when the arriving advertisement came from a MAC address that had only been giving connectable=False during active BLE scanning.
To narrow down the cause, I even modified btle.py to print out resp['flag'][0] in ScanEntry's _update method. (resp['flag'][0] is the raw material to derive the up-to-date "connetable" value.) It seems that during passive BLE scanning, resp['flag'][0] is always 0x0, while during active BLE scanning, resp['flag'][0] can be either 0x0 or 0xfffffffc. Although I am unsure if the above helps debugging, I think the above narrows down the root cause to bluepy's interaction with BLE module.
It would be great if anyone could share feedback/solutions. Great thanks.
The text was updated successfully, but these errors were encountered: