hcitool.1 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH HCITOOL 1 "Nov 12, 2002" "BlueZ" "Linux System Administration"
  4. .SH NAME
  5. hcitool \- Configure Bluetooth connections
  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. \fBhcitool\fP \-h
  36. .sp
  37. \fBhcitool\fP \fICOMMAND\fP \-\-help
  38. .sp
  39. \fBhcitool\fP [\-i \fIhciX\fP] [\fICOMMAND\fP [\fIPARAMETERS\fP]]
  40. .SH DESCRIPTION
  41. .sp
  42. \fBhcitool(1)\fP is used to configure Bluetooth connections and send some special
  43. command to Bluetooth devices. If no \fBcommand\fP is given, or if the option
  44. \fB\-h\fP is used, \fIhcitool\fP prints some usage information and exits.
  45. .SH OPTIONS
  46. .INDENT 0.0
  47. .TP
  48. .BI \-i \ <hciX>
  49. The command is applied to device \fIhciX\fP, which must be the name of
  50. an installed Bluetooth device. If not specified, the command will
  51. be sent to the first available Bluetooth device.
  52. .TP
  53. .B \-h
  54. Gives a list of possible commands
  55. .UNINDENT
  56. .SH COMMANDS
  57. .INDENT 0.0
  58. .TP
  59. .B dev
  60. Display local devices
  61. .TP
  62. .B inq
  63. Inquire remote devices. For each discovered device, Bluetooth device
  64. address, clock offset and class are printed.
  65. .TP
  66. .B scan
  67. Inquire remote devices. For each discovered device, device name are printed.
  68. .TP
  69. .B name <\fIbdaddr\fP>
  70. Print device name of remote device with Bluetooth address \fIbdaddr\fP\&.
  71. .TP
  72. .B info <\fIbdaddr\fP>
  73. Print device name, version and supported features of remote device with
  74. Bluetooth address \fIbdaddr\fP\&.
  75. .TP
  76. .B spinq
  77. Start periodic inquiry process. No inquiry results are printed.
  78. .TP
  79. .B epinq
  80. Exit periodic inquiry process.
  81. .TP
  82. .B cmd <\fIogf\fP> <\fIocf\fP> [\fIparameters\fP]
  83. Submit an arbitrary HCI command to local device. \fIogf\fP, \fIocf\fP and
  84. parameters are hexadecimal bytes.
  85. .TP
  86. .B con
  87. Display active baseband connections
  88. .TP
  89. .B cc [\-\-\fIrole\fP=c|p] [\-\-\fIpkt\-type\fP=<\fIptype\fP>] <\fIbdaddr\fP>
  90. Create baseband connection to remote device with Bluetooth address \fIbdaddr\fP\&.
  91. .sp
  92. Option \fB\-\-pkt\-type\fP specifies a list of allowed packet types.
  93. <\fIptype\fP> is a comma\-separated list of packet types, where the possible
  94. packet types are \fBDM1\fP, \fBDM3\fP, \fBDM5\fP, \fBDH1\fP, \fBDH3\fP, \fBDH5\fP,
  95. \fBHV1\fP, \fBHV2\fP, \fBHV3\fP\&. Default is to allow all packet types.
  96. .sp
  97. Option \fB\-\-role\fP can have value \fBc\fP (do not allow role switch, stay
  98. central) or \fBp\fP (allow role switch, become peripheral if the peer asks to
  99. become central). Default is \fBc\fP\&.
  100. .TP
  101. .B dc <\fIbdaddr\fP> [\fIreason\fP]
  102. Delete baseband connection from remote device with Bluetooth address
  103. \fIbdaddr\fP\&.
  104. .sp
  105. The reason can be one of the Bluetooth HCI error codes.
  106. Default is \fB19\fP for user ended connections. The value must be given in
  107. decimal.
  108. .TP
  109. .B sr <\fIbdaddr\fP> <\fIrole\fP>
  110. Switch role for the baseband connection from the remote device to
  111. \fBcentral\fP or \fBperipheral\fP\&.
  112. .TP
  113. .B cpt <\fIbdaddr\fP> <\fIptypes\fP>
  114. Change packet types for baseband connection to device with Bluetooth
  115. address \fIbdaddr\fP\&. \fIptypes\fP is a comma\-separated list of packet types,
  116. where the possible packet types are \fBDM1\fP, \fBDM3\fP, \fBDM5\fP, \fBDH1\fP,
  117. \fBDH3\fP, \fBDH5\fP, \fBHV1\fP, \fBHV2\fP, \fBHV3\fP\&.
  118. .TP
  119. .B rssi <\fIbdaddr\fP>
  120. Display received signal strength information for the connection to the
  121. device with Bluetooth address \fIbdaddr\fP\&.
  122. .TP
  123. .B lq <\fIbdaddr\fP>
  124. Display link quality for the connection to the device with Bluetooth
  125. address \fIbdaddr\fP\&.
  126. .TP
  127. .B tpl <\fIbdaddr\fP> [\fItype\fP]
  128. Display transmit power level for the connection to the device with
  129. Bluetooth address \fIbdaddr\fP\&.
  130. .sp
  131. The \fItype\fP can be \fB0\fP for the current transmit power level (which is
  132. default) or \fB1\fP for the maximum transmit power level.
  133. .TP
  134. .B afh <\fIbdaddr\fP>
  135. Display AFH channel map for the connection to the device with Bluetooth
  136. address \fIbdaddr\fP\&.
  137. .TP
  138. .B lp <\fIbdaddr\fP> [\fIvalue\fP]
  139. With no value, displays link policy settings for the connection to the
  140. device with Bluetooth address \fIbdaddr\fP\&.
  141. .sp
  142. If \fIvalue\fP is given, sets the link policy settings for that connection to
  143. \fIvalue\fP\&. Possible values are \fBRSWITCH\fP, \fBHOLD\fP, \fBSNIFF\fP and \fBPARK\fP\&.
  144. .TP
  145. .B lst <\fIbdaddr\fP> [\fIvalue\fP]
  146. With no value, displays link supervision timeout for the connection to
  147. the device with Bluetooth address \fIbdaddr\fP\&.
  148. .sp
  149. If \fIvalue\fP is given, sets the link supervision timeout for that connection
  150. to \fIvalue\fP slots, or to infinite if value is 0.
  151. .TP
  152. .B auth <\fIbdaddr\fP>
  153. Request authentication for the device with Bluetooth address \fIbdaddr\fP\&.
  154. .TP
  155. .B enc <\fIbdaddr\fP> [\fIencrypt\fP]
  156. \fBenable\fP or \fBdisable\fP the encryption for the device with Bluetooth
  157. address \fIbdaddr\fP\&.
  158. .TP
  159. .B key <\fIbdaddr\fP>
  160. Change the connection link key for the device with Bluetooth address
  161. \fIbdaddr\fP\&.
  162. .TP
  163. .B clkoff <\fIbdaddr\fP>
  164. Read the clock offset for the device with Bluetooth address \fIbdaddr\fP\&.
  165. .TP
  166. .B clock [\fIbdaddr\fP] [\fIclock\fP]
  167. Read the clock for the device with Bluetooth address \fIbdaddr\fP\&.
  168. .sp
  169. The \fIclock\fP can be \fB0\fP for the local clock or \fB1\fP for the piconet
  170. clock (which is default).
  171. .TP
  172. .B lescan [\-\-\fIprivacy\fP] [\-\-\fIpassive\fP] [\-\-\fIacceptlist\fP] [\-\-\fIdiscovery\fP=g|l] [\-\-\fIduplicates\fP]
  173. Start LE scan
  174. .TP
  175. .B leinfo [\-\-\fIstatic\fP] [\-\-\fIrandom\fP] <\fIbdaddr\fP>
  176. Get LE remote information
  177. .TP
  178. .B lealadd [\-\-\fIrandom\fP] <\fIbdaddr\fP>
  179. Add device to LE Accept List
  180. .TP
  181. .B lealrm <\fIbdaddr\fP>
  182. Remove device from LE Accept List
  183. .TP
  184. .B lealsz
  185. Read size of LE Accept List
  186. .TP
  187. .B lealclr
  188. Clear LE Accept List
  189. .TP
  190. .B lerladd [\-\-\fIlocal_irk\fP] [\-\-\fIpeer_irk\fP] [\-\-\fIrandom\fP] <\fIbdaddr\fP>
  191. Add device to LE Resolving List
  192. .TP
  193. .B lerlrm <\fIbdaddr\fP>
  194. Remove device from LE Resolving List
  195. .TP
  196. .B lerlclr
  197. Clear LE Resolving List
  198. .TP
  199. .B lerlsz
  200. Read size of LE Resolving List
  201. .TP
  202. .B lerlon
  203. Enable LE Address Resolution
  204. .TP
  205. .B lerloff
  206. Disable LE Address Resolution
  207. .TP
  208. .B lecc [\-\-\fIstatic\fP] [\-\-\fIrandom\fP] <\fIbdaddr\fP> | [\-\-\fIacceptlist\fP]
  209. Create a LE Connection
  210. .TP
  211. .B ledc <\fIhandle\fP> [\fIreason\fP]
  212. Disconnect a LE Connection
  213. .TP
  214. .B lecup <\fIhandle\fP> <\fImin\fP> <\fImax\fP> <\fIlatency\fP> <\fItimeout\fP>
  215. LE Connection Update
  216. .UNINDENT
  217. .SH RESOURCES
  218. .sp
  219. \fI\%http://www.bluez.org\fP
  220. .SH REPORTING BUGS
  221. .sp
  222. \fI\%linux\-bluetooth@vger.kernel.org\fP
  223. .SH AUTHOR
  224. Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>, Fabrizio Gennari <fabrizio.gennari@philips.com>
  225. .SH COPYRIGHT
  226. Free use of this software is granted under ther terms of the GNU
  227. Lesser General Public Licenses (LGPL).
  228. .\" Generated by docutils manpage writer.
  229. .