From: "Germán Pedrosa" <german.pedrosa@fundacionctic.org>
To: linux-bluetooth@vger.kernel.org
Subject: Re: Pairing with several Bluetooth dongles
Date: Wed, 25 Nov 2009 14:05:32 +0100 [thread overview]
Message-ID: <1259154332.20954.1.camel@german-desktop> (raw)
In-Reply-To: <09700B613C4DD84FA9F2FEA52188281903083937@ayalga.fundacionctic.org>
[-- Attachment #1: Type: text/plain, Size: 2801 bytes --]
Hi everybody,
I sent this post several days ago and I haven't received any response so
far. I think I didn't explain
it clearly so in this new message I'll try to do my best to explain
again the problem.
I have attached a simple drawing explaining the idea. The proposed
system consists of a mini PC with several
Bluetooth dongles (D1...DN). Dongle number 1 is exclusively dedicated to
detect nearby mobile devices by means
of SDAP. Once some devices have been detected, the system carries some
Bluetooth operations over them. For that, the system dispatches these
operations
making use of dongles (D2..DN). Note that some operations require the
pairing between the device and the system. What I want to achieve is
that
each device is *paired exactly once* against the system despite the
dongle D2-DN that finally treats the operation.
The solution I thought of was using bdaddr tool for assigning the same
MAC address to all D2 ... DN dongles, in that way that every one uses
the same
linkeys to save paired devices. The problem I have with this approach
(I checked I with hcidump tool) is that if every dongle has the same MAC
address, all operations finally make over the same dongle (D2). So if I
don't missing the point, Bluez internally uses MAC address instead of
HCI in order to
select the dongle. In that case, ¿would be feasible to modify Bluez to
take this into account?
Sorry for my insistence but I need to make a decision on this ASAP.
Thank you very much for your help,
Regards,
Germán.
El mar, 17-11-2009 a las 11:31 +0100, German Pedrosa Loureiro escribió:
>
> 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.
>
>
[-- Attachment #2: btAPI.png --]
[-- Type: image/png, Size: 58926 bytes --]
next parent reply other threads:[~2009-11-25 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <09700B613C4DD84FA9F2FEA52188281903083937@ayalga.fundacionctic.org>
2009-11-25 13:05 ` Germán Pedrosa [this message]
2009-12-11 19:04 ` Pairing with several Bluetooth dongles Iain Hibbert
2009-11-17 10:33 Germán Pedrosa
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1259154332.20954.1.camel@german-desktop \
--to=german.pedrosa@fundacionctic.org \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox