9 :Authors: - Marcel Holtmann <marcel@holtmann.org>
10 - Tedd Ho-Jeong An <tedd.an@intel.com>
11 :Copyright: Free use of this software is granted under ther terms of the GNU
12 Lesser General Public Licenses (LGPL).
16 :Manual group: Linux System Administration
21 **btmon** [*OPTIONS* ...]
26 The btmon(1) command provides access to the Bluetooth subsystem monitor
27 infrastructure for reading HCI traces.
32 -r FILE, --read FILE Read traces in btsnoop format from *FILE*.
33 -w FILE, --write FILE Save traces in btsnoop format to *FILE*.
34 -a FILE, --analyze FILE Analyze traces in btsnoop format from *FILE*.
35 It displays the devices found in the *FILE* with
36 its packets by type. If gnuplot is installed on
37 the system it also attempts to plot packet latency
39 -s SOCKET, --server SOCKET Start monitor server socket.
40 -p PRIORITY, --priority PRIORITY Show only priority or lower for user log.
57 - Information (Default)
60 - Debug. **debug** can be used.
62 -i NUM, --index NUM Show only specified controller. *hciNUM* is also
63 acceptable. This is useful to capture the traces
64 from the specific controller when the multiple
65 controllers are presented.
67 -d TTY, --tty TTY Read data from *TTY*.
69 -B SPEED, --rate SPEED Set TTY speed. The default *SPEED* is 115300
71 -V COMPID, --vendor COMPID Set the default company identifier. The *COMPID* is
72 a unique number assigned by the Bluetooth SIG to
73 a member company and can be found/searched from the
74 Bluetooth SIG webpage.
76 For example, Intel is 2 and Realtek is 93.
78 -M, --mgmt Open channel for mgmt events.
80 -t, --time Show a time instead of time offset.
82 -T, --date Show a time and date information instead of
85 -S, --sco Dump SCO traffic in raw hex format.
87 -A, --a2dp Dump A2DP stream traffic in a raw hex format.
89 -E IP, --ellisys IP Send Ellisys HCI Injection.
91 -P, --no-pager Disable pager usage while reading the log file.
93 -J OPTIONS, --jlink OPTIONS Read data from RTT. Each options are comma(,)
94 seprated without spaces.
105 - Required. Set the target device.
108 - (Optional) Set the USB serial number. Default is **0**.
111 - (Optional) Target interface. Default is **swd**.
114 - (Optional) Set target interface speed in kHz. Default is **1000**.
116 -R OPTIONS, --rtt OPTIONS RTT control block parameters. Each options are
117 comma(,) seprated without spaces.
128 - (Optional) Address of RTT buffer. Default is **0x00**
131 - (Optional) Size of range to search in RTT buffer. Default is **0**
134 - (Optional) Buffer name. Default is **btmonitor**
136 -C WIDTH, --columns WIDTH Output width if not a terminal
138 -c MODE, --color MODE Set output color. The possible *MODE* values are:
139 **auto|always|never**.
141 Default value is **auto**
143 -v, --version Show version
145 -h, --help Show help options
150 Capture the traces from hci0 to hcidump.log file
151 ------------------------------------------------
155 $ btmon -i hci0 -w hcidump.log
162 $ btmon -r hcidump.log
173 linux-bluetooth@vger.kernel.org