hcidump.1 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH HCIDUMP 1 "Nov 12, 2002" "BlueZ" "Linux System Administration"
  4. .SH NAME
  5. hcidump \- Parse HCI data
  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 SYNOPSIS
  34. .sp
  35. \fBhcidump\fP \-h
  36. .sp
  37. \fBhcidump\fP [OPTIONS ...] [FILTERS]
  38. .SH DESCRIPTION
  39. .sp
  40. \fBhcidump(1)\fP reads raw HCI data coming from and going to a Bluetooth device
  41. (which can be specified with the option \fB\-i\fP, default is the first available
  42. one) and prints to screen commands, events and data in a human\-readable form.
  43. Optionally, the dump can be written to a file rather than parsed, and the dump
  44. file can be parsed in a subsequent moment.
  45. .SH OPTIONS
  46. .INDENT 0.0
  47. .TP
  48. .BI \-i \ <hciX>
  49. Data is read from \fIhciX\fP, which must be the name of an installed Bluetooth
  50. device. If not specified, and if \fB\-r\fP option is not set, data is read from
  51. the first available Bluetooth device.
  52. .TP
  53. .BI \-l \ <len>\fR,\fB \ \-\-snap\-len\fB= <len>
  54. Sets max length of processed packets to \fIlen\fP\&.
  55. .TP
  56. .BI \-p \ <psm>\fR,\fB \ \-\-psm\fB= <psm>
  57. Sets default Protocol Service Multiplexer to \fIpsm\fP\&.
  58. .TP
  59. .BI \-m \ <compid>\fR,\fB \ \-\-manufacturer\fB= <compid>
  60. Sets default company id for manufacturer to \fIcompid\fP\&.
  61. .TP
  62. .BI \-w \ <file>\fR,\fB \ \-\-save\-dump\fB= <file>
  63. Parse output is not printed to screen, instead data read from device is
  64. saved in \fIfile\fP\&. The saved dump file can be subsequently parsed with
  65. option \fB\-r\fP\&.
  66. .TP
  67. .BI \-r \ <file>\fR,\fB \ \-\-read\-dump\fB= <file>
  68. Data is not read from a Bluetooth device, but from \fIfile\fP\&. \fIfile\fP is
  69. created with option \fB\-t\fP, \fB\-\-timestamp\fP prepend a time stamp to every
  70. packet.
  71. .TP
  72. .B \-a\fP,\fB \-\-ascii
  73. For every packet, not only is the packet type displayed, but also all data
  74. in ASCII.
  75. .TP
  76. .B \-x\fP,\fB \-\-hex
  77. For every packet, not only is the packet type displayed, but also all data
  78. in hex.
  79. .TP
  80. .B \-X\fP,\fB \-\-ext
  81. For every packet, not only is the packet type displayed, but also all data
  82. in hex and ASCII.
  83. .TP
  84. .B \-R\fP,\fB \-\-raw
  85. For every packet, only the raw data is displayed.
  86. .TP
  87. .BI \-C \ <psm>\fR,\fB \ \-\-cmtp\fB= <psm>
  88. Sets the PSM value for the CAPI Message Transport Protocol.
  89. .TP
  90. .BI \-H \ <psm>\fR,\fB \ \-\-hcrp\fB= <psm>
  91. Sets the PSM value for the Hardcopy Control Channel.
  92. .TP
  93. .BI \-O \ <channel>\fR,\fB \ \-\-obex\fB= <channel>
  94. Sets the RFCOMM channel value for the Object Exchange Protocol.
  95. .TP
  96. .BI \-P \ <channel>\fR,\fB \ \-\-ppp\fB= <channel>
  97. Sets the RFCOMM channel value for the Point\-to\-Point Protocol.
  98. .TP
  99. .BI \-D \ <file>\fR,\fB \ \-\-pppdump\fB= <file>
  100. Extract PPP traffic with pppdump format.
  101. .TP
  102. .BI \-A \ <file>\fR,\fB \ \-\-audio\fB= <file>
  103. Extract SCO audio data.
  104. .TP
  105. .B \-Y\fP,\fB \-\-novendor
  106. Don\(aqt display any vendor commands or events and don\(aqt show any pin code or
  107. link key in plain text.
  108. .TP
  109. .B \-h
  110. Prints usage info and exits
  111. .UNINDENT
  112. .SH FILTERS
  113. .sp
  114. filter is a space\-separated list of packet categories: available categories are
  115. \fIlmp\fP, \fIhci\fP, \fIsco\fP, \fIl2cap\fP, \fIrfcomm\fP, \fIsdp\fP, \fIbnep\fP, \fIcmtp\fP, \fIhidp\fP, \fIhcrp\fP,
  116. \fIavdtp\fP, \fIavctp\fP, \fIobex\fP, \fIcapi\fP and \fIppp\fP\&. If filters are used, only packets
  117. belonging to the specified categories are dumped. By default, all packets are
  118. dumped.
  119. .SH RESOURCES
  120. .sp
  121. \fI\%http://www.bluez.org\fP
  122. .SH REPORTING BUGS
  123. .sp
  124. \fI\%linux\-bluetooth@vger.kernel.org\fP
  125. .SH AUTHOR
  126. Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>, Fabrizio Gennari <fabrizio.gennari@philips.com>
  127. .SH COPYRIGHT
  128. Free use of this software is granted under ther terms of the GNU
  129. Lesser General Public Licenses (LGPL).
  130. .\" Generated by docutils manpage writer.
  131. .