Usage of both dongles in 'Gateway Bundle'
I've been writing and testing code on the hardware from the mbient store's 'gateway bundle.' I've gotten a single device to the point I need, so now I'm expanding to multiple devices across multiple dongles.
With both dongles plugged in, both show up using
hciconfig -a (I also see a 3rd hci device for the built in adapter). When I set up my code to connect to one MMR on each dongle, I noticed that the blue led only flashed on a single dongle while streaming data. I checked in
btmon and sure enough, I only saw data coming in from one hci device (but I verified that I was getting data from both MMRs). I changed my code to use one dongle and the built in adapter, and in that case I saw both expected hci devices in
btmon. Looking more closely at
hciconfig I noticed that both dongles had the same
BD Address (I also have another pair of dongles from a second bundle, all 4 had the same address). It looked like the address clash was causing the dongles to fail to initialize properly.
I ended up having to give each dongle a unique address using the code and instructions found here. My issue is "solved" in the sense that after this change, I can use each dongle and see the blue connection led while streaming data, but I'm wondering if I should've even had to do this? I'd expect the bundled hardware you guys sell to work out of the box without low level changes like this, so I'm thinking I may have worked around an issue that shouldn't have occurred in the first place.