* [Bluez-devel] l2ping seems to ignore -t timeout option
@ 2006-05-14 15:39 pille
2006-05-16 14:15 ` Fabien Chevalier
2006-05-16 14:35 ` Marcel Holtmann
0 siblings, 2 replies; 3+ messages in thread
From: pille @ 2006-05-14 15:39 UTC (permalink / raw)
To: bluez-devel
hi,
i noticed that l2ping does not care about the timeout-argument.
running a current l2ping from bluez-utils-2.25 against a device that's
not available timeouts after 20 seconds regardless of any -t parameter.
pitti ~ # time l2ping -c 1 00:01:02:03:04:05
Can't connect: Host is down
0.00s user 0.00s system 0% cpu 20.527 total
pitti ~ # time l2ping -c 1 -t 10 00:01:02:03:04:05
Can't connect: Host is down
0.00s user 0.00s system 0% cpu 20.509 total
pitti ~ # time l2ping -c 1 -t 20 00:01:02:03:04:05
Can't connect: Host is down
0.00s user 0.00s system 0% cpu 20.515 total
pitti ~ # time l2ping -c 1 -t 40 00:01:02:03:04:05
Can't connect: Host is down
0.00s user 0.00s system 0% cpu 20.521 total
pitti ~ # time l2ping -c 1 -t 80 00:01:02:03:04:05
Can't connect: Host is down
0.00s user 0.00s system 0% cpu 20.513 total
regards
pille
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] l2ping seems to ignore -t timeout option
2006-05-14 15:39 [Bluez-devel] l2ping seems to ignore -t timeout option pille
@ 2006-05-16 14:15 ` Fabien Chevalier
2006-05-16 14:35 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Fabien Chevalier @ 2006-05-16 14:15 UTC (permalink / raw)
To: bluez-devel
[-- Attachment #1: Type: text/plain, Size: 2021 bytes --]
Hi,
I'm not a 100% sure of the answer however i would say it is because
there are 2 timeouts:
- One is hardware based, and is globally configured at the device
level. It is the timeout for the paging procedure.
- the other is how much to wait for an L2CAP echo after you sent and
L2CAP reply.
Basically, the first timeout will be used when establishing a baseband
connection with a device, while the other will be used by l2ping ONCE
and only ONCE the baseband connection is up (which also means device is up).
I hope it helps :-)
Cheers,
Fabien
> hi,
>
> i noticed that l2ping does not care about the timeout-argument.
>
> running a current l2ping from bluez-utils-2.25 against a device that's
> not available timeouts after 20 seconds regardless of any -t parameter.
>
> pitti ~ # time l2ping -c 1 00:01:02:03:04:05
> Can't connect: Host is down
> 0.00s user 0.00s system 0% cpu 20.527 total
>
> pitti ~ # time l2ping -c 1 -t 10 00:01:02:03:04:05
> Can't connect: Host is down
> 0.00s user 0.00s system 0% cpu 20.509 total
>
> pitti ~ # time l2ping -c 1 -t 20 00:01:02:03:04:05
> Can't connect: Host is down
> 0.00s user 0.00s system 0% cpu 20.515 total
>
> pitti ~ # time l2ping -c 1 -t 40 00:01:02:03:04:05
> Can't connect: Host is down
> 0.00s user 0.00s system 0% cpu 20.521 total
>
> pitti ~ # time l2ping -c 1 -t 80 00:01:02:03:04:05
> Can't connect: Host is down
> 0.00s user 0.00s system 0% cpu 20.513 total
>
>
> regards
> pille
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bluez-devel mailing list
> Bluez-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>
[-- Attachment #2: fchevalier.vcf --]
[-- Type: text/x-vcard, Size: 241 bytes --]
begin:vcard
fn:Fabien CHEVALIER
n:CHEVALIER;Fabien
org:SILICOM
adr:;;4 rue de Jouanet;RENNES ATALANTE;;35700;FRANCE
email;internet:fchevalier@silicom.fr
title:Software & Studies Engineer
tel;work:+33 (0) 2 99 84 17 17
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Bluez-devel] l2ping seems to ignore -t timeout option
2006-05-14 15:39 [Bluez-devel] l2ping seems to ignore -t timeout option pille
2006-05-16 14:15 ` Fabien Chevalier
@ 2006-05-16 14:35 ` Marcel Holtmann
1 sibling, 0 replies; 3+ messages in thread
From: Marcel Holtmann @ 2006-05-16 14:35 UTC (permalink / raw)
To: bluez-devel
Hi,
> i noticed that l2ping does not care about the timeout-argument.
>
> running a current l2ping from bluez-utils-2.25 against a device that's
> not available timeouts after 20 seconds regardless of any -t parameter.
you are mixing up the timeouts. What you are looking for is the page
timeout set through "hciconfig hci0 pageto". The timeout of l2ping is
the timeout between two packets.
Regards
Marcel
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-05-16 14:35 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-14 15:39 [Bluez-devel] l2ping seems to ignore -t timeout option pille
2006-05-16 14:15 ` Fabien Chevalier
2006-05-16 14:35 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).