setting inquiry and inquiry_scan parameters
Browsing through the gmane archives, I found this nugget of wisdom:
<quote url=http://article.gmane.org/gmane.linux.bluez.devel/1696>
From: Steven Singer <steven.singer <at> csr.com>
Subject: Re: Parameters of the Bluetooth standard in BlueZ...
Date: Fri, 27 Feb 2004 11:58:04 +0000
... <snip> ...
BlueZ does have control over the total inquiry length and, on the scanning side, the time between entering inquiry scans and the amount of time spend in a scan each time.
</quote>
I realize this post is over 9 months old, but I'm trying to write an application that does these very kinds of things. Can someone tell me more about the specifics of how to tweak these numbers? I'm guessing it's related to HCI ... ?
Thanks,
jw
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Marcel Holtmann
maintainerHi Jeff,
Quoted 4 lines
I realize this post is over 9 months old, but I'm trying to write an application that does these very kinds of things. Can someone tell me more about the specifics of how to tweak these numbers? I'm guessing it's related to HCI ... ?
nothing has changed since then. You can only tweak things you find an HCI command for.
Regards
Marcel
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
Quoted 4 lines · Jeff Wilson
I realize this post is over 9 months old, but I'm trying to write an application that does these very kinds of things. Can someone tell me more about the specifics of how to tweak these numbers? I'm guessing it's related to HCI ... ?
It's in the man page for hciconfig, the inqparams keyword. It took me a while to figure out experimentally what paging and inquiry were; they weren't explained in the man page. But I ended up with my application modifying the inquiry responsiveness in expectation of a connection. My application was two Debian add-on packages for setting up a poor-mans wireless IP using two dongles.
http://quozl.linux.org.au/bluetooth/
e.g. my quozl-bluez-server package increases the paging and inquiry rate in anticipation of a connection, in a per-package hotplug.sh script;
hciconfig hci0 pageparams 18:512
hciconfig hci0 inqparams 18:512
then once the connection arrives, the dev-up.sh script returns the parameters to what I once found they were;
hciconfig hci0 pageparams 18:2048
hciconfig hci0 inqparams 18:2048
I've no idea what the side effects may be, but it made it more responsive.
No doubt an application can do what hciconfig does if it needs to. Check the source.
Signature · 14 lines
James Cameron http://quozl.netrek.org/ HP Open Source, Volunteer http://opensource.hp.com/ PPTP Client Project, Release Engineer http://pptpclient.sourceforge.net/ ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
Hi Marcel, Hi Jeff,
Inquiry duration is a parameter of the Inquiry command.
Inquiry scan Interval and Inquiry Scan Window can be set by the HCI command Write_Inquiry_Scan_Activity. However, I've not checked if this is implemented by every baseband chip. It shall be possible with BlueZ to issue those HCI commands directly (see HCITOOL for arbitrary commands).
Ciao,
Peter
Quoted 17 lines · Marcel Holtmann
Hi Jeff,
Quoted 4 lines
I realize this post is over 9 months old, but I'm trying to write an application that does these very kinds of things. Can someone tell me more about the specifics of how to tweak these numbers? I'm guessing it's related to HCI ... ?
nothing has changed since then. You can only tweak things you find an HCI command for.
Regards
Marcel
Quoted 10 lines
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel
| Peter Wippich Voice: +49 30 46776411 | | G&W Instruments GmbH fax: +49 30 46776419 | | Gustav-Meyer-Allee 25, Geb. 12 Email: [email protected] | | D-13355 Berlin / Germany |
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel