OS Manuals

/usr/bin/l2test

Tools for the Bluetooth protocol stack

From bluez 5.88-r0 (os), captured 2026-11-07 by running l2test --help (exit 1). permalink

/usr/bin/l2test: invalid option -- '-'
l2test - L2CAP testing
Usage:
	l2test <mode> [options] [bdaddr]
Modes:
	-r listen and receive
	-w listen and send
	-d listen and dump incoming data
	-x listen, then send, then dump incoming data
	-t listen, then send and receive at the same time
	-q connect, then send and receive at the same time
	-s connect and send
	-u connect and receive
	-n connect and be silent
	-y connect, then send, then dump incoming data
	-c connect, disconnect, connect, ...
	-m multiple connects
	-p trigger dedicated bonding
	-z information request
Options:
	[-b bytes] [-i device] [-P psm] [-J cid]
	[-I imtu] [-O omtu]
	[-L seconds] enable SO_LINGER
	[-W seconds] enable deferred setup
	   0: don't enable (default)
	  >0: authorize after <seconds>
	  <0: deny after abs(<seconds>)
	[-B filename] use data packets from file
	[-N num] send num frames (default = infinite)
	[-C num] send num frames before delay (default = 1)
	[-D milliseconds] delay after sending num frames (default = 0)
	[-K milliseconds] delay before receiving (default = 0)
	[-g milliseconds] delay before disconnecting (default = 0)
	[-X mode] l2cap mode (help for list, default = basic)
	[-a policy] chan policy (help for list, default = bredr)
	[-F fcs] use CRC16 check (default = 1, affects BR/EDR only)
	[-Q num] Max Transmit value (default = 3)
	[-Z size] Transmission Window size (default = 63)
	[-Y priority] socket priority
	[-H size] Maximum receive buffer size
	[-R] reliable mode
	[-G] use connectionless channel (datagram)
	[-U] use sock stream
	[-A] request authentication
	[-E] request encryption
	[-S] secure connection
	[-M] become central
	[-T] enable timestamps
	[-V type] address type (help for list, default = bredr)
	[-e seq] initial sequence value (default = 0)
Options (1)
OptionDescriptionSource
-c connecthelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.