btmon.1 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH BTMON 1 "April 2021" "BlueZ" "Linux System Administration"
  4. .SH NAME
  5. btmon \- Bluetooth monitor
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH SYNOPSYS
  34. .sp
  35. \fBbtmon\fP [\fIOPTIONS\fP ...]
  36. .SH DESCRIPTION
  37. .sp
  38. The btmon(1) command provides access to the Bluetooth subsystem monitor
  39. infrastructure for reading HCI traces.
  40. .SH OPTIONS
  41. .INDENT 0.0
  42. .TP
  43. .BI \-r \ FILE\fR,\fB \ \-\-read \ FILE
  44. Read traces in btsnoop format from \fIFILE\fP\&.
  45. .TP
  46. .BI \-w \ FILE\fR,\fB \ \-\-write \ FILE
  47. Save traces in btsnoop format to \fIFILE\fP\&.
  48. .TP
  49. .BI \-a \ FILE\fR,\fB \ \-\-analyze \ FILE
  50. Analyze traces in btsnoop format from \fIFILE\fP\&.
  51. It displays the devices found in the \fIFILE\fP with
  52. its packets by type.
  53. .TP
  54. .BI \-s \ SOCKET\fR,\fB \ \-\-server \ SOCKET
  55. Start monitor server socket.
  56. .TP
  57. .BI \-p \ PRIORITY\fR,\fB \ \-\-priority \ PRIORITY
  58. Show only priority or lower for user log.
  59. .UNINDENT
  60. .TS
  61. center;
  62. |l|l|.
  63. _
  64. T{
  65. \fIPRIORITY\fP
  66. T} T{
  67. NAME
  68. T}
  69. _
  70. T{
  71. \fB3\fP
  72. T} T{
  73. Error
  74. T}
  75. _
  76. T{
  77. \fB4\fP
  78. T} T{
  79. Warning
  80. T}
  81. _
  82. T{
  83. \fB6\fP
  84. T} T{
  85. Information (Default)
  86. T}
  87. _
  88. T{
  89. \fB7\fP
  90. T} T{
  91. Debug. \fBdebug\fP can be used.
  92. T}
  93. _
  94. .TE
  95. .INDENT 0.0
  96. .TP
  97. .BI \-i \ NUM\fR,\fB \ \-\-index \ NUM
  98. Show only specified controller. \fIhciNUM\fP is also
  99. acceptable. This is useful to capture the traces
  100. from the specific controller when the multiple
  101. controllers are presented.
  102. .TP
  103. .BI \-d \ TTY\fR,\fB \ \-\-tty \ TTY
  104. Read data from \fITTY\fP\&.
  105. .TP
  106. .BI \-B \ SPEED\fR,\fB \ \-\-rate \ SPEED
  107. Set TTY speed. The default \fISPEED\fP is 115300
  108. .TP
  109. .BI \-V \ COMPID\fR,\fB \ \-\-vendor \ COMPID
  110. Set the default company identifier. The \fICOMPID\fP is
  111. a unique number assigned by the Bluetooth SIG to
  112. a member company and can be found/searched from the
  113. Bluetooth SIG webpage.
  114. .sp
  115. For example, Intel is 2 and Realtek is 93.
  116. .TP
  117. .B \-M\fP,\fB \-\-mgmt
  118. Open channel for mgmt events.
  119. .TP
  120. .B \-t\fP,\fB \-\-time
  121. Show a time instead of time offset.
  122. .TP
  123. .B \-T\fP,\fB \-\-date
  124. Show a time and date information instead of
  125. time offset.
  126. .TP
  127. .B \-S\fP,\fB \-\-sco
  128. Dump SCO traffic in raw hex format.
  129. .TP
  130. .B \-A\fP,\fB \-\-a2dp
  131. Dump A2DP stream traffic in a raw hex format.
  132. .TP
  133. .BI \-E \ IP\fR,\fB \ \-\-ellisys \ IP
  134. Send Ellisys HCI Injection.
  135. .TP
  136. .B \-P\fP,\fB \-\-no\-pager
  137. Disable pager usage while reading the log file.
  138. .TP
  139. .BI \-J \ OPTIONS\fR,\fB \ \-\-jlink \ OPTIONS
  140. Read data from RTT. Each options are comma(,)
  141. seprated without spaces.
  142. .UNINDENT
  143. .TS
  144. center;
  145. |l|l|.
  146. _
  147. T{
  148. \fIOPTIONS\fP
  149. T} T{
  150. Description
  151. T}
  152. _
  153. T{
  154. \fBDEVICE\fP
  155. T} T{
  156. Required. Set the target device.
  157. T}
  158. _
  159. T{
  160. \fBSERIALNO\fP
  161. T} T{
  162. (Optional) Set the USB serial number. Default is \fB0\fP\&.
  163. T}
  164. _
  165. T{
  166. \fBINTERFACE\fP
  167. T} T{
  168. (Optional) Target interface. Default is \fBswd\fP\&.
  169. T}
  170. _
  171. T{
  172. \fBSPEED\fP
  173. T} T{
  174. (Optional) Set target interface speed in kHz. Default is \fB1000\fP\&.
  175. T}
  176. _
  177. .TE
  178. .INDENT 0.0
  179. .TP
  180. .BI \-R \ OPTIONS\fR,\fB \ \-\-rtt \ OPTIONS
  181. RTT control block parameters. Each options are
  182. comma(,) seprated without spaces.
  183. .UNINDENT
  184. .TS
  185. center;
  186. |l|l|.
  187. _
  188. T{
  189. \fIOPTIONS\fP
  190. T} T{
  191. Description
  192. T}
  193. _
  194. T{
  195. \fBADDRESS\fP
  196. T} T{
  197. (Optional) Address of RTT buffer. Default is \fB0x00\fP
  198. T}
  199. _
  200. T{
  201. \fBAREA\fP
  202. T} T{
  203. (Optional) Size of range to search in RTT buffer. Default is \fB0\fP
  204. T}
  205. _
  206. T{
  207. \fBNAME\fP
  208. T} T{
  209. (Optional) Buffer name. Default is \fBbtmonitor\fP
  210. T}
  211. _
  212. .TE
  213. .INDENT 0.0
  214. .TP
  215. .BI \-C \ WIDTH\fR,\fB \ \-\-columns \ WIDTH
  216. Output width if not a terminal
  217. .TP
  218. .BI \-c \ MODE\fR,\fB \ \-\-color \ MODE
  219. Set output color. The possible \fIMODE\fP values are:
  220. \fBauto|always|never\fP\&.
  221. .sp
  222. Default value is \fBauto\fP
  223. .TP
  224. .B \-v\fP,\fB \-\-version
  225. Show version
  226. .TP
  227. .B \-h\fP,\fB \-\-help
  228. Show help options
  229. .UNINDENT
  230. .SH EXAMPLES
  231. .SS Capture the traces from hci0 to hcidump.log file
  232. .INDENT 0.0
  233. .INDENT 3.5
  234. .sp
  235. .nf
  236. .ft C
  237. $ btmon \-i hci0 \-w hcidump.log
  238. .ft P
  239. .fi
  240. .UNINDENT
  241. .UNINDENT
  242. .SS Open the trace file
  243. .INDENT 0.0
  244. .INDENT 3.5
  245. .sp
  246. .nf
  247. .ft C
  248. $ btmon \-r hcidump.log
  249. .ft P
  250. .fi
  251. .UNINDENT
  252. .UNINDENT
  253. .SH RESOURCES
  254. .sp
  255. \fI\%http://www.bluez.org\fP
  256. .SH REPORTING BUGS
  257. .sp
  258. \fI\%linux\-bluetooth@vger.kernel.org\fP
  259. .SH AUTHOR
  260. Marcel Holtmann <marcel@holtmann.org>, Tedd Ho-Jeong An <tedd.an@intel.com>
  261. .SH COPYRIGHT
  262. Free use of this software is granted under ther terms of the GNU
  263. Lesser General Public Licenses (LGPL).
  264. .\" Generated by docutils manpage writer.
  265. .