2006-05-14 15:39:52

by pille

[permalink] [raw]
Subject: [Bluez-devel] l2ping seems to ignore -t timeout option

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel


2006-05-16 14:35:11

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-devel] l2ping seems to ignore -t timeout option

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
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2006-05-16 14:15:23

by Fabien Chevalier

[permalink] [raw]
Subject: Re: [Bluez-devel] l2ping seems to ignore -t timeout option


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
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>


Attachments:
fchevalier.vcf (241.00 B)