EinSoldiatGott
Posts: 4
Joined: Sat May 27, 2017 5:24 am

Bluetooth multiple USB dongles

Sat Jun 17, 2017 12:37 am

Hi. I want to add 4 bluetooth dongles to my RBPI3 with RASPBIAN JESSIE 4.4

I found this related topic but it has no info about my issue.
viewtopic.php?f=36&t=161509&p=1046993&h ... s#p1046993

I need to add dongles because I need to adquire data from 30 BTLE sensors. My python script works ok with 7 devices connected to the onboard BT, but I need more devices.

So I added 4 dongles with a powered usb hub. (For this post I only connected two)

1. I can see all the devices with lsusb
$lsusb
...
Bus 001 Device 005: ID 0bda:0823 Realtek Semiconductor Corp.
Bus 001 Device 004: ID 0bda:0823 Realtek Semiconductor Corp.
..
2. I can see them with hciconfig included the onboard BT
$sudo hciconfig
hci2: Type: BR/EDR Bus: UART
BD Address: B8:27:EB:8E:EE:58 ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:924 acl:0 sco:0 events:59 errors:0
TX bytes:2550 acl:0 sco:0 commands:55 errors:0

hci1: Type: BR/EDR Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:28 acl:0 sco:0 events:2 errors:0
TX bytes:6 acl:0 sco:0 commands:2 errors:0

hci0: Type: BR/EDR Bus: USB
BD Address: 00:00:00:00:00:00 ACL MTU: 0:0 SCO MTU: 0:0
DOWN
RX bytes:42 acl:0 sco:0 events:3 errors:0
TX bytes:9 acl:0 sco:0 commands:3 errors:0
But first observation: Only one of them has a MAC address, everytime I add one dongle only the highest hcix adquires MAC addres

2. If I try to scan I can only scan with the hci which has MAC address
pi@raspberrypi:~ $ sudo hcitool -i hci0 lescan
Invalid device: Network is down
pi@raspberrypi:~ $ sudo hcitool -i hci1 lescan
Invalid device: Network is down
pi@raspberrypi:~ $ sudo hcitool -i hci2 lescan
LE Scan ...
EB:55:D5:77:D7:1E COOSPO H6 0007291
EB:55:D5:77:D7:1E (unknown)
3. If I try to turn on the hci0 or hci1 I get an error
pi@raspberrypi:~ sudo hciconfig hci0 up
Can't init device hci0: No such file or directory (2)
pi@raspberrypi:~ $ sudo hciconfig hci1 up
Can't init device hci1: No such file or directory (2)
pi@raspberrypi:~ $ sudo hciconfig hci2 up
pi@raspberrypi:~ $
Am I doing something wrong or I have to do something extra?

Thanks

User avatar
LetHopeItsSnowing
Posts: 350
Joined: Sat May 26, 2012 6:40 am
Location: UK
Contact: Website

Re: Bluetooth multiple USB dongles

Mon Jun 19, 2017 10:33 am

Im not sure if this is your problem, but I have seen in the past that with cheap USB dongles they re-use MAC addresses. i.e. 2 usb dongles have exactly the same MAC address, presumably its one of the ways they make them so cheap. Try plugging them in one at a time and checking the address.
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"

EinSoldiatGott
Posts: 4
Joined: Sat May 27, 2017 5:24 am

Re: Bluetooth multiple USB dongles

Tue Jun 20, 2017 6:24 am

Hi. With Ubuntu mate with bluez 5.41 it works. (Until now, I'm able to scan with multiple dongles) Im working in the connections.
Surely the problem is bluez 5.23.

Return to “Advanced users”

Who is online

Users browsing this forum: No registered users and 15 guests