Linux Commands Examples

A great documentation place for Linux commands


Send L2CAP echo request and receive answer


l2ping [-i <hciX>] [-s size] [-c count] [-t timeout] [-d delay] [-f] [-r] [-v] bd_addr

add an example, a script, a trick and tips

: email address (won't be displayed)
: name

Step 2

Thanks for this example ! - It will be moderated and published shortly.

Feel free to post other examples
Oops ! There is a tiny cockup. A damn 404 cockup. Please contact the loosy team who maintains and develops this wonderful site by clicking in the mighty feedback button on the side of the page. Say what happened. Thanks!


no example yet ...

... Feel free to add your own example above to help other Linux-lovers !


L2ping sends a L2CAP echo request to the Bluetooth MAC address bd_addr given in dotted hex notation.


-i <hciX>

The command is applied to device hciX , which must be the name of an installed Bluetooth device (X = 0, 1, 2, ...) If not specified, the command will be sent to the first available Bluetooth device.

-s size

The size of the data packets to be sent.

-c count

Send count number of packets then exit.

-t timeout

Wait timeout seconds for the response.

-d delay

Wait delay seconds between pings.


Kind of flood ping. Use with care! It reduces the delay time between packets to 0.


Reverse ping (gnip?). Send echo response instead of echo request.


Verify response payload is identical to request payload. It is not required for remote stacks to return the request payload, but most stacks do (including Bluez).


The Bluetooth MAC address to be pinged in dotted hex notation like 01:02:03:ab:cd:ef or 01:EF:cd:aB:02:03


Written by Maxim Krasnyansky <maxk[:at:]qualcomm[:dot:]com> and Marcel Holtmann <marcel[:at:]holtmann[:dot:]org>

man page by Nils Faerber <nils[:at:]kernelconcepts[:dot:]de>, Adam Laurie <adam[:at:][:dot:]uk>.

How can this site be more helpful to YOU ?

give  feedback