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
I tried to inspect and understand this library code and Bleak's code too and this output too.
So, the code searches BLE ADDR and fount it, as it should, but then it connects to the device using BR/EDR transport, and eventually fails as it could find "0000ffe0-..." UUID.
Instead it shows UUID "00001101-0000-1000-8000-00805f9b34fb" which is well knows SPP for the Classic BT.
I watched by btmon tool what happens, and it's clear it uses BR/EDR to connect after discovering the device by BLE:
....
@ MGMT Event: Discovering (0x0013) plen 2 {0x0001} [hci0] 6.921850
Address type: 0x06
LE Public
LE Random
Discovery: Disabled (0x00)
< HCI Command: Create Connection (0x01|0x0005) plen 13 #13 [hci0] 6.931115
Address: 98:DA:E0:01:9C:46 (OUI 98-DA-E0)
Packet type: 0xcc18
DM1 may be used
DH1 may be used
DM3 may be used
DH3 may be used
DM5 may be used
DH5 may be used
Page scan repetition mode: R2 (0x02)
Page scan mode: Mandatory (0x00)
Clock offset: 0x0000
Role switch: Allow peripheral (0x01)
@ MGMT Command: Add Device (0x0033) plen 8 {0x0001} [hci0] 6.931186
BR/EDR Address: 98:DA:E0:01:9C:46 (OUI 98-DA-E0)
Action: Allow incoming connection (0x01)
@ MGMT Event: Device Flags Changed (0x002a) plen 15 {0x0001} [hci0] 6.931194
BR/EDR Address: 98:DA:E0:01:9C:46 (OUI 98-DA-E0)
Supported Flags: 0x00000001
Remote Wakeup
Current Flags: 0x00000000
@ MGMT Event: Command Complete (0x0001) plen 10 {0x0001} [hci0] 6.931198
Add Device (0x0033) plen 7
Status: Success (0x00)
BR/EDR Address: 98:DA:E0:01:9C:46 (OUI 98-DA-E0)
> HCI Event: Command Status (0x0f) plen 4 #14 [hci0] 6.931669
Create Connection (0x01|0x0005) ncmd 1
Status: Success (0x00)
< HCI Command: Write Scan Enable (0x03|0x001a) plen 1 #15 [hci0] 6.931680
Scan enable: Page Scan (0x02)
> HCI Event: Command Complete (0x0e) plen 4 #16 [hci0] 6.932666
Write Scan Enable (0x03|0x001a) ncmd 2
Status: Success (0x00)
> HCI Event: Connect Complete (0x03) plen 11 #17 [hci0] 7.316751
Status: Success (0x00)
Handle: 256
Address: 98:DA:E0:01:9C:46 (OUI 98-DA-E0)
Link type: ACL (0x01)
Encryption: Disabled (0x00)
< HCI Command: Read Remote Supported Features (0x01|0x001b) plen 2
...
I'm not sure what to do here, just raising this discussion here to possibly find some solution.
The text was updated successfully, but these errors were encountered:
Related discussions:
hbldh/bleak#701
bluez/bluez#511
Here how it looks like:
I tried to inspect and understand this library code and Bleak's code too and this output too.
So, the code searches BLE ADDR and fount it, as it should, but then it connects to the device using BR/EDR transport, and eventually fails as it could find "0000ffe0-..." UUID.
Instead it shows UUID "00001101-0000-1000-8000-00805f9b34fb" which is well knows SPP for the Classic BT.
I watched by btmon tool what happens, and it's clear it uses BR/EDR to connect after discovering the device by BLE:
I'm not sure what to do here, just raising this discussion here to possibly find some solution.
The text was updated successfully, but these errors were encountered: