From: Marcel Holtmann <marcel@holtmann.org>
To: Olivier Le Pogam <olepogam@free.fr>,
BlueZ development <bluez-devel@lists.sourceforge.net>
Subject: Re: [Bluez-devel] Add 3 HCI commands / concurrent connections setup question
Date: Tue, 25 Dec 2007 05:26:01 +0100 [thread overview]
Message-ID: <1198556761.8050.329.camel@aeonflux> (raw)
In-Reply-To: <000601c84639$c8ef8640$0200a8c0@jester>
Hi Olivier,
> >> I'd like to add : Set_AFH_Host_Channel_Classification (OCF 0x003F),
> >> Read_AFH_Channel_Assessment_Mode (OCF 0x0048) and
> >> Write_AFH_Channel_Assessment_Mode (OCF 0x0049) to the supported HCI
> >> commands
> > what do you wanna do with these commands? More important is, what do you
> > expect what is gonna happen if you use them?
>
> You are perfectly right I should have started with this. I have several
> bluetooth dongles and my idea was to split the frequency range between these
> devices so each one have his proper range and does not overlap with others,
> to limit interferences.
> This is in the case the host is a master and tries to connect to several
> remote devices so there can be concurrent outgoing page scans from different
> dongles.
> However, I realize now that maybe this HCI command is not implemented on
> device chips, so I will maybe have a look first ... no need to implement a
> command which is not supported by any hardware. By the way, don't hesitate
> to tell me if my idea does not make sense at all.
all Bluetooth 1.2 dongles have to support AFH and thus these commands
have to be present.
However you should read the radio and baseband part of the Bluetooth
specification and then you will realize that AFH will not help you to
solve any page issues you see. It simply doesn't work this way and
Bluetooth is _not_ WiFi.
> I have something to ask as well ... With CSR's chips trying to open
> concurrent connections makes the first work and others get a "Command
> Disallowed". Then I saw with hcidump that the "Create Connection" is
> re-issued automatically. However, it can be really later sometimes (more
> than several seconds). My question is : how connection requests are
> serialized by the stack ? would it be possible to make the connection
> requests be retried more quickly ? Is there something blocking that would
> explain why it's long ?
We try with the next connection attempt once the radio is free again.
And this is if no inquiry and no page attempt is running.
> Here is a dump of trying to connect to 7 different devices concurrently,
> with a CSR bases dongle ("connect" are performed at the same time, then a
> "sleep 10 seconds", and a "close"). As you can see, times are really ...
> long !
>
> 1st device : 1.3 seconds to come back successfully from "connect" socket
> 2nd device : 5.5 seconds
> 3rd device : 9.9 seconds
> 4th device : 10.9 seconds
> 5th device : 13 seconds
> 6th device : 18.3 seconds
> 7th device : 19.8 seconds
For every page the slave device has to sync with the master clock
(assuming that none of the remote device request a role switch). This
can take some time and at that point the clock_offset from the inquiry
result might be out of sync. So it is simply plain bad luck.
On the other hand the concurrent page support is more than a workaround
for the application to not to have to bother. If the radio/baseband is
busy, then it is busy.
Regards
Marcel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2007-12-25 4:26 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-23 14:00 [Bluez-devel] AFH between master and slave bsd user
2007-12-23 19:17 ` Marcel Holtmann
2007-12-24 10:38 ` [Bluez-devel] Add 3 HCI commands Olivier Le Pogam
2007-12-24 10:44 ` Marcel Holtmann
2007-12-24 14:32 ` [Bluez-devel] Add 3 HCI commands / concurrent connections setup question Olivier Le Pogam
2007-12-25 4:26 ` Marcel Holtmann [this message]
2007-12-28 11:32 ` [Bluez-devel] Add 3 HCI commands / concurrent connection " Olivier Le Pogam
2007-12-28 19:21 ` Marcel Holtmann
2007-12-28 20:03 ` Olivier Le Pogam
2007-12-28 22:35 ` Marcel Holtmann
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=1198556761.8050.329.camel@aeonflux \
--to=marcel@holtmann.org \
--cc=bluez-devel@lists.sourceforge.net \
--cc=olepogam@free.fr \
/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