2009-11-17 10:33:29

by Germán Pedrosa

[permalink] [raw]
Subject: Pairing with several Bluetooth dongles

Hi guys,

I am involved in the developing of a Java project that uses Bluecove and
Bluez. This project makes use of several Bluetooth dongles, one of them
is dedicated to the task of scanning and the rest of them are focused on
carrying other Bluetooth operations over mobile devices.

Some of these operations need the pairing between the mobile device and
the dongle that executes the operation. One of the project objectives is
to avoid that the same user has to pair more than once against the
system. In order to tackle with this issue, I thought of assigning the
same MAC address to every dongle by means of "bdaddr" tool, so as to
when the user pairs with a dongle he automatically pairs with all of
them. Once I have implemented this I have jumped into a problem: At the
end all the operations physically executes over the same dongle. My
questions are, ¿Does Bluez use MAC address instead of HCI in order to
select the dongle? If so, ¿would be feasible to modify Bluez to take
this into account?

Any thoughts on this would be very appreciated,

Best wishes,

Germán.