public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] setting inquiry and inquiry_scan parameters
@ 2004-12-09 20:23 Jeff Wilson
  2004-12-09 20:37 ` Marcel Holtmann
  2004-12-09 22:56 ` James Cameron
  0 siblings, 2 replies; 4+ messages in thread
From: Jeff Wilson @ 2004-12-09 20:23 UTC (permalink / raw)
  To: bluez-devel

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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] setting inquiry and inquiry_scan parameters
  2004-12-09 20:23 [Bluez-devel] setting inquiry and inquiry_scan parameters Jeff Wilson
@ 2004-12-09 20:37 ` Marcel Holtmann
  2004-12-10  9:37   ` Peter Wippich
  2004-12-09 22:56 ` James Cameron
  1 sibling, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2004-12-09 20:37 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Jeff,

> 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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] setting inquiry and inquiry_scan parameters
  2004-12-09 20:23 [Bluez-devel] setting inquiry and inquiry_scan parameters Jeff Wilson
  2004-12-09 20:37 ` Marcel Holtmann
@ 2004-12-09 22:56 ` James Cameron
  1 sibling, 0 replies; 4+ messages in thread
From: James Cameron @ 2004-12-09 22:56 UTC (permalink / raw)
  To: bluez-devel

On Thu, Dec 09, 2004 at 02:23:33PM -0600, Jeff Wilson wrote:
> 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.

-- 
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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [Bluez-devel] setting inquiry and inquiry_scan parameters
  2004-12-09 20:37 ` Marcel Holtmann
@ 2004-12-10  9:37   ` Peter Wippich
  0 siblings, 0 replies; 4+ messages in thread
From: Peter Wippich @ 2004-12-10  9:37 UTC (permalink / raw)
  To: BlueZ Mailing List

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


On Thu, 9 Dec 2004, Marcel Holtmann wrote:

> Hi Jeff,
>
> > 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
> Bluez-devel@lists.sourceforge.net
> 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: pewi@gw-instruments.de	|
|	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
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-12-10  9:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-09 20:23 [Bluez-devel] setting inquiry and inquiry_scan parameters Jeff Wilson
2004-12-09 20:37 ` Marcel Holtmann
2004-12-10  9:37   ` Peter Wippich
2004-12-09 22:56 ` James Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox