hciconfig.1 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH HCICONFIG 1 "Nov 11, 2002" "BlueZ" "Linux System Administration"
  4. .SH NAME
  5. hciconfig \- Configure Bluetooth devices
  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. \fBhciconfig\fP \-h
  36. .sp
  37. \fBhciconfig\fP [\-a]
  38. .sp
  39. \fBhciconfig\fP [\-a] \fIhciX\fP [\fICOMMAND\fP [\fIPARAMETERS\fP]]
  40. .SH DESCRIPTION
  41. .sp
  42. \fBhciconfig(1)\fP is used to configure Bluetooth devices. \fIhciX\fP is the name of a
  43. Bluetooth device installed in the system. If hciX is not given, hciconfig
  44. prints name and basic information about all the Bluetooth devices installed
  45. in the system.
  46. .sp
  47. If \fIhciX\fP is given but no command is given, it prints basic information on
  48. device \fIhciX\fP only. Basic information is interface type, BD address, ACL MTU,
  49. SCO MTU, flags (up, init, running, raw, page scan enabled, inquiry scan
  50. enabled, inquiry, authentication enabled, encryption enabled).
  51. .SH OPTIONS
  52. .INDENT 0.0
  53. .TP
  54. .B \-a\fP,\fB \-\-all
  55. Print features, packet type, link policy, link mode, class, Version
  56. other than the basic info.
  57. .TP
  58. .B \-h\fP,\fB \-\-help
  59. Show help options
  60. .UNINDENT
  61. .SH COMMANDS
  62. .INDENT 0.0
  63. .TP
  64. .B up
  65. Open and initialize HCI device.
  66. .TP
  67. .B down
  68. Close HCI device.
  69. .TP
  70. .B reset
  71. Reset HCI device.
  72. .TP
  73. .B rstat
  74. Reset statistic counters.
  75. .TP
  76. .B auth
  77. Enable authentication (sets device to security mode 3).
  78. .TP
  79. .B noauth
  80. Disable authentication.
  81. .TP
  82. .B encrypt
  83. Enable encryption (sets device to security mode 3).
  84. .TP
  85. .B noencrypt
  86. Disable encryption.
  87. .TP
  88. .B secmgr
  89. Enable security manager (current kernel support is limited).
  90. .TP
  91. .B nosecmgr
  92. Disable security manager.
  93. .TP
  94. .B piscan
  95. Enable page and inquiry scan.
  96. .TP
  97. .B noscan
  98. Disable page and inquiry scan.
  99. .TP
  100. .B iscan
  101. Enable inquiry scan, disable page scan.
  102. .TP
  103. .B pscan
  104. Enable page scan, disable inquiry scan.
  105. .TP
  106. .B ptype [\fItype\fP]
  107. With no \fItype\fP , displays the current packet types. Otherwise, all the
  108. packet types specified by \fItype\fP are set. \fItype\fP is a comma\-separated list
  109. of packet types, where the possible packet types are \fBDM1\fP, \fBDM3\fP,
  110. \fBDM5\fP, \fBDH1\fP, \fBDH3\fP, \fBDH5\fP, \fBHV1\fP, \fBHV2\fP, \fBHV3\fP\&.
  111. .TP
  112. .B name [\fIname\fP]
  113. With no \fIname\fP, prints local name. Otherwise, sets local name to \fIname\fP\&.
  114. .TP
  115. .B class [\fIclass\fP]
  116. With no \fIclass\fP, prints class of device. Otherwise, sets class of device
  117. to \fIclass\fP\&. \fIclass\fP is a 24\-bit hex number describing the class of device,
  118. as specified in section 1.2 of the Bluetooth Assigned Numers document.
  119. .TP
  120. .B voice [\fIvoice\fP]
  121. With no \fIvoice\fP, prints voice setting. Otherwise, sets voice setting to
  122. \fIvoice\fP\&. \fIvoice\fP is a 16\-bit hex number describing the voice setting.
  123. .TP
  124. .B iac [\fIiac\fP]
  125. With no \fIiac\fP, prints the current IAC setting. Otherwise, sets the IAC to
  126. \fIiac\fP\&.
  127. .TP
  128. .B inqtpl [\fIlevel\fP]
  129. With no \fIlevel\fP, prints out the current inquiry transmit power level.
  130. Otherwise, sets inquiry transmit power level to \fIlevel\fP\&.
  131. .TP
  132. .B inqmode [\fImode\fP]
  133. .INDENT 7.0
  134. .INDENT 3.5
  135. With no \fImode\fP, prints out the current inquiry mode. Otherwise, sets
  136. inquiry mode to \fImode\fP\&.
  137. .UNINDENT
  138. .UNINDENT
  139. .TS
  140. center;
  141. |l|l|.
  142. _
  143. T{
  144. \fImode\fP
  145. T} T{
  146. Description
  147. T}
  148. _
  149. T{
  150. 0
  151. T} T{
  152. Standard Inquiry
  153. T}
  154. _
  155. T{
  156. 1
  157. T} T{
  158. Inquiry with RSSI
  159. T}
  160. _
  161. T{
  162. 2
  163. T} T{
  164. Inquiry with RSSI or Extended Inquiry
  165. T}
  166. _
  167. .TE
  168. .TP
  169. .B inqdata [\fIdata\fP]
  170. With no \fIdata\fP, prints out the current inquiry data. Otherwise, sets
  171. inquiry data to \fIdata\fP\&.
  172. .TP
  173. .B inqtype [\fItype\fP]
  174. With no \fItype\fP, prints out the current inquiry scan type. Otherwise, sets
  175. inquiry scan type to \fItype\fP\&.
  176. .TP
  177. .B inqparams [\fIwin:int\fP]
  178. With no \fIwin:int\fP, prints inquiry scan window and interval. Otherwise,
  179. sets inquiry scan window to \fIwin\fP slots and inquiry scan interval to
  180. \fIint\fP slots.
  181. .TP
  182. .B pageparms [\fIwin:int\fP]
  183. With no \fIwin:int\fP, prints page scan window and interval. Otherwise,
  184. sets page scan window to \fIwin\fP slots and page scan interval to \fIint\fP slots.
  185. .TP
  186. .B pageto [\fIto\fP]
  187. With no \fIto\fP, prints page timeout. Otherwise, sets page timeout \fIto\fP to
  188. slots.
  189. .TP
  190. .B afhmode [\fImode\fP]
  191. With no \fImode\fP, prints out the current AFH mode. Otherwise, sets AFH mode
  192. to \fImode\fP\&.
  193. .UNINDENT
  194. .TS
  195. center;
  196. |l|l|.
  197. _
  198. T{
  199. \fImode\fP
  200. T} T{
  201. Description
  202. T}
  203. _
  204. T{
  205. 0
  206. T} T{
  207. Enable
  208. T}
  209. _
  210. T{
  211. 1
  212. T} T{
  213. Disable
  214. T}
  215. _
  216. .TE
  217. .INDENT 0.0
  218. .TP
  219. .B sspmode [\fImode\fP]
  220. With no \fImode\fP, prints out the current Simple Pairing mode. Otherwise,
  221. sets Simple Pairing mode to \fImode\fP\&.
  222. .UNINDENT
  223. .TS
  224. center;
  225. |l|l|.
  226. _
  227. T{
  228. \fImode\fP
  229. T} T{
  230. Description
  231. T}
  232. _
  233. T{
  234. 0
  235. T} T{
  236. Enable
  237. T}
  238. _
  239. T{
  240. 1
  241. T} T{
  242. Disable
  243. T}
  244. _
  245. .TE
  246. .INDENT 0.0
  247. .TP
  248. .B aclmtu \fImtu:pkt\fP
  249. Sets ACL MTU to \fImtu\fP bytes and ACL buffer size to \fIpkt\fP packets.
  250. .TP
  251. .B scomtu \fImtu:pkt\fP
  252. Sets SCO MTU to \fImtu\fP bytes and SCO buffer size to \fIpkt\fP packets.
  253. .TP
  254. .B delkey <\fIbdaddr\fP>
  255. This command deletes the stored link key for \fIbdaddr\fP from the device.
  256. .TP
  257. .B oobdata
  258. Get local OOB data (invalidates previously read data).
  259. .TP
  260. .B commands
  261. Display supported commands.
  262. .TP
  263. .B features
  264. Display device features.
  265. .TP
  266. .B version
  267. Display version information.
  268. .TP
  269. .B revision
  270. Display revision information.
  271. .TP
  272. .B lm [\fImode\fP]
  273. With no \fImode\fP, prints link mode. \fBCENTRAL\fP or \fBPERIPHERAL\fP mean,
  274. respectively, to ask to become central or to remain peripheral when a
  275. connection request comes in. The additional keyword \fBACCEPT\fP means that
  276. baseband connections will be accepted even if there are no listening
  277. \fIAF_BLUETOOTH\fP sockets. \fImode\fP is \fBNONE\fP or a comma\-separated list of
  278. keywords, where possible keywords are \fBCENTRAL\fP and \fBACCEPT\fP\&. \fBNONE\fP
  279. sets link policy to the default behaviour of remaining peripheral and not
  280. accepting baseband connections when there are no listening \fIAF_BLUETOOTH\fP
  281. sockets. If \fBCENTRAL\fP is present, the device will ask to become central
  282. if a connection request comes in. If \fBACCEPT\fP is present, the device will
  283. accept baseband connections even when there are no listening \fIAF_BLUETOOTH\fP
  284. sockets.
  285. .TP
  286. .B block <\fIbdaddr\fP>
  287. Add a device to the reject list
  288. .TP
  289. .B unblock <\fIbdaddr\fP>
  290. Remove a device from the reject list
  291. .TP
  292. .B lerandaddr <\fIbdaddr\fP>
  293. Set LE Random Address
  294. .TP
  295. .B leadv [\fItype\fP]
  296. Enable LE Advertising.
  297. .UNINDENT
  298. .TS
  299. center;
  300. |l|l|.
  301. _
  302. T{
  303. \fItype\fP
  304. T} T{
  305. Description
  306. T}
  307. _
  308. T{
  309. 0
  310. T} T{
  311. Connectable undirected advertising (default)
  312. T}
  313. _
  314. T{
  315. 3
  316. T} T{
  317. Non connectable undirected advertising
  318. T}
  319. _
  320. .TE
  321. .INDENT 0.0
  322. .TP
  323. .B noleadv
  324. Disable LE Advertising
  325. .TP
  326. .B lestates
  327. Display the supported LE states
  328. .UNINDENT
  329. .SH RESOURCES
  330. .sp
  331. \fI\%http://www.bluez.org\fP
  332. .SH REPORTING BUGS
  333. .sp
  334. \fI\%linux\-bluetooth@vger.kernel.org\fP
  335. .SH AUTHOR
  336. Maxim Krasnyansky <maxk@qualcomm.com>, Marcel Holtmann <marcel@holtmann.org>, Fabrizio Gennari <fabrizio.gennari@philips.com>
  337. .SH COPYRIGHT
  338. Free use of this software is granted under ther terms of the GNU
  339. Lesser General Public Licenses (LGPL).
  340. .\" Generated by docutils manpage writer.
  341. .