CSR dongles have the USB ID and mac address
When I run hciconfig
hci2: Type: Primary Bus: USB
BD Address: 00:1A:7D:DA:71:13 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:12768602 acl:0 sco:0 events:483401 errors:0
TX bytes:24427 acl:0 sco:0 commands:3105 errors:0
hci1: Type: Primary Bus: USB
BD Address: 00:1A:7D:DA:71:13 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:1154 acl:0 sco:0 events:61 errors:0
TX bytes:987 acl:0 sco:0 commands:61 errors:0
hci0: Type: Primary Bus: USB
BD Address: 00:1A:7D:DA:71:13 ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING
RX bytes:1734 acl:0 sco:0 events:92 errors:0
TX bytes:1606 acl:0 sco:0 commands:92 errors:0
same USB IDs
Bus 002 Device 007: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 005: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 002 Device 003: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
however hcitool and hicconfig are deprecated, but what I use bluetoothctl list, I only get one adaptor
Controller 00:1A:7D:DA:71:13 [default]
any idea why all dongles has same address. is this normal? the issue I cannot bring the dongle up without hciconfig and trying to use bluetoothctl as it is the official tool.
Comments
It is normal for them to have the same address which is a bit of a pain depending on which os/language you work with.
You might need to get two dongles from different manufacturers for your app.
@Laura thank you. Do you recommend a manufacturers that work on your hub? I do not see an issue using noble as it using HCI sockets, but having 2 dongles with same address, only one dongle will be seen by the dbus. I tried to use ble communications via d-bus APIs instead of noble(hci) so I ran into this issue. I can change one of the dongle address temporally, but I have to keep changing the address every time I unplug it.
How did you change the address? I tried to use
bdaddr
but it did not work.@rabee05, it's just a raspberry pi so any linux dongle that works on a pi will do. There's lots of websites on this subject: https://forbiddenbroadway.com/raspberry-pi-bluetooth-dongle/
Personally I just go on amazon and find something cheap with decent reviews.