public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Power level & Scan Timing
@ 2004-09-08 20:48 Rafael Vidal Aroca
  2004-09-09  7:33 ` Marcel Holtmann
  2004-09-09  7:45 ` Rolf E. Thorup
  0 siblings, 2 replies; 5+ messages in thread
From: Rafael Vidal Aroca @ 2004-09-08 20:48 UTC (permalink / raw)
  To: bluez-users


    Hello,

    i'm playing with my dbt-120 d-link usb dongle, and i'm not managing 
to do some things i wanted...

    1) I want to decrease the power or my dongle, cause de devices work 
over 20m....i want they to be detected just near the computer. I know 
it's possible, but could not find documentaion...so the question is: how 
can i decreate the power of my bluetooth adapter?

    2) I'm using hcitool scan to constantly detect if my ipaq is near my 
desktop. It seems to be really slow (from 10 to 15 seconds to 
scan)...can this time be reduced? Does bluez do some kind of cache? (i 
ask that because i can turn my ipaq of, and hcitool scan will not only 
detect my ipaq anymore in about 12 seconds...)

thanks
Rafael.
   

   
     


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Power level & Scan Timing
  2004-09-08 20:48 [Bluez-users] Power level & Scan Timing Rafael Vidal Aroca
@ 2004-09-09  7:33 ` Marcel Holtmann
  2004-09-09 17:26   ` Rafael Vidal Aroca
  2004-09-09  7:45 ` Rolf E. Thorup
  1 sibling, 1 reply; 5+ messages in thread
From: Marcel Holtmann @ 2004-09-09  7:33 UTC (permalink / raw)
  To: Rafael Vidal Aroca; +Cc: bluez-users

Hi Rafael,

>     i'm playing with my dbt-120 d-link usb dongle, and i'm not managing 
> to do some things i wanted...
> 
>     1) I want to decrease the power or my dongle, cause de devices work 
> over 20m....i want they to be detected just near the computer. I know 
> it's possible, but could not find documentaion...so the question is: how 
> can i decreate the power of my bluetooth adapter?

don't worry about it, because your Bluetooth chip does this automaticly
and it is the job of the link manager.

>     2) I'm using hcitool scan to constantly detect if my ipaq is near my 
> desktop. It seems to be really slow (from 10 to 15 seconds to 
> scan)...can this time be reduced? Does bluez do some kind of cache? (i 
> ask that because i can turn my ipaq of, and hcitool scan will not only 
> detect my ipaq anymore in about 12 seconds...)

Check the specification for periodic inquiry or use the HCI directly.
You can also use the HCI socket directly and look for inquiry result
events.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Power level & Scan Timing
  2004-09-08 20:48 [Bluez-users] Power level & Scan Timing Rafael Vidal Aroca
  2004-09-09  7:33 ` Marcel Holtmann
@ 2004-09-09  7:45 ` Rolf E. Thorup
  1 sibling, 0 replies; 5+ messages in thread
From: Rolf E. Thorup @ 2004-09-09  7:45 UTC (permalink / raw)
  To: BlueZ Mailing List

Rafael Vidal Aroca wrote:

> 
>    Hello,
> 
>    i'm playing with my dbt-120 d-link usb dongle, and i'm not managing 
> to do some things i wanted...
[...]
>    2) I'm using hcitool scan to constantly detect if my ipaq is near my 
> desktop. It seems to be really slow (from 10 to 15 seconds to 
> scan)...can this time be reduced? Does bluez do some kind of cache? (i 
> ask that because i can turn my ipaq of, and hcitool scan will not only 
> detect my ipaq anymore in about 12 seconds...)

Try `hcitool scan --help` and you will see there is an option 
--length=N. The default is 8 which according to the source of hcitool is 
approx. 10 seconds. So try with something lower than 8.

 From the help output you will also see a --flush option. Guess what 
that does ;-)

Regards
Rolf


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Power level & Scan Timing
  2004-09-09  7:33 ` Marcel Holtmann
@ 2004-09-09 17:26   ` Rafael Vidal Aroca
  2004-09-10  8:35     ` Marcel Holtmann
  0 siblings, 1 reply; 5+ messages in thread
From: Rafael Vidal Aroca @ 2004-09-09 17:26 UTC (permalink / raw)
  To: bluez-users


    With Rolf suggestion, i decreased the discovery time to about 5 
seconds using lenght 2.

    Now about the transmit/receive power, i know we can see what is 
set....but the windows software allows us to controle low high or 
medium...and as i understood from this mail this kind of configuration 
can not be set with bluez.
    Is it correct or is there a way to change the power level?

again, thanks.
Rafael.


Marcel Holtmann wrote:

>Hi Rafael,
>
>  
>
>>    i'm playing with my dbt-120 d-link usb dongle, and i'm not managing 
>>to do some things i wanted...
>>
>>    1) I want to decrease the power or my dongle, cause de devices work 
>>over 20m....i want they to be detected just near the computer. I know 
>>it's possible, but could not find documentaion...so the question is: how 
>>can i decreate the power of my bluetooth adapter?
>>    
>>
>
>don't worry about it, because your Bluetooth chip does this automaticly
>and it is the job of the link manager.
>
>  
>
>>    2) I'm using hcitool scan to constantly detect if my ipaq is near my 
>>desktop. It seems to be really slow (from 10 to 15 seconds to 
>>scan)...can this time be reduced? Does bluez do some kind of cache? (i 
>>ask that because i can turn my ipaq of, and hcitool scan will not only 
>>detect my ipaq anymore in about 12 seconds...)
>>    
>>
>
>Check the specification for periodic inquiry or use the HCI directly.
>You can also use the HCI socket directly and look for inquiry result
>events.
>
>Regards
>
>Marcel
>
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by BEA Weblogic Workshop
>FREE Java Enterprise J2EE developer tools!
>Get your free copy of BEA WebLogic Workshop 8.1 today.
>http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
>_______________________________________________
>Bluez-users mailing list
>Bluez-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bluez-users
>  
>



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Power level & Scan Timing
  2004-09-09 17:26   ` Rafael Vidal Aroca
@ 2004-09-10  8:35     ` Marcel Holtmann
  0 siblings, 0 replies; 5+ messages in thread
From: Marcel Holtmann @ 2004-09-10  8:35 UTC (permalink / raw)
  To: Rafael Vidal Aroca; +Cc: bluez-users

Hi Rafael,

>     Now about the transmit/receive power, i know we can see what is 
> set....but the windows software allows us to controle low high or 
> medium...and as i understood from this mail this kind of configuration 
> can not be set with bluez.
>     Is it correct or is there a way to change the power level?

check the HCI part of the Bluetooth specification. If there is a command
for changing the power level, then it is possible otherwise it is not
possible using standard methods.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-09-10  8:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-08 20:48 [Bluez-users] Power level & Scan Timing Rafael Vidal Aroca
2004-09-09  7:33 ` Marcel Holtmann
2004-09-09 17:26   ` Rafael Vidal Aroca
2004-09-10  8:35     ` Marcel Holtmann
2004-09-09  7:45 ` Rolf E. Thorup

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