hciconfig.rst 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271
  1. =========
  2. hciconfig
  3. =========
  4. ---------------------------
  5. Configure Bluetooth devices
  6. ---------------------------
  7. :Authors: - Maxim Krasnyansky <maxk@qualcomm.com>
  8. - Marcel Holtmann <marcel@holtmann.org>
  9. - Fabrizio Gennari <fabrizio.gennari@philips.com>
  10. :Version: BlueZ
  11. :Copyright: Free use of this software is granted under ther terms of the GNU
  12. Lesser General Public Licenses (LGPL).
  13. :Date: Nov 11, 2002
  14. :Manual section: 1
  15. :Manual group: Linux System Administration
  16. SYNOPSIS
  17. ========
  18. **hciconfig** -h
  19. **hciconfig** [-a]
  20. **hciconfig** [-a] *hciX* [*COMMAND* [*PARAMETERS*]]
  21. DESCRIPTION
  22. ===========
  23. **hciconfig(1)** is used to configure Bluetooth devices. *hciX* is the name of a
  24. Bluetooth device installed in the system. If hciX is not given, hciconfig
  25. prints name and basic information about all the Bluetooth devices installed
  26. in the system.
  27. If *hciX* is given but no command is given, it prints basic information on
  28. device *hciX* only. Basic information is interface type, BD address, ACL MTU,
  29. SCO MTU, flags (up, init, running, raw, page scan enabled, inquiry scan
  30. enabled, inquiry, authentication enabled, encryption enabled).
  31. OPTIONS
  32. =======
  33. -a, --all Print features, packet type, link policy, link mode, class, Version
  34. other than the basic info.
  35. -h, --help Show help options
  36. COMMANDS
  37. ========
  38. up
  39. Open and initialize HCI device.
  40. down
  41. Close HCI device.
  42. reset
  43. Reset HCI device.
  44. rstat
  45. Reset statistic counters.
  46. auth
  47. Enable authentication (sets device to security mode 3).
  48. noauth
  49. Disable authentication.
  50. encrypt
  51. Enable encryption (sets device to security mode 3).
  52. noencrypt
  53. Disable encryption.
  54. secmgr
  55. Enable security manager (current kernel support is limited).
  56. nosecmgr
  57. Disable security manager.
  58. piscan
  59. Enable page and inquiry scan.
  60. noscan
  61. Disable page and inquiry scan.
  62. iscan
  63. Enable inquiry scan, disable page scan.
  64. pscan
  65. Enable page scan, disable inquiry scan.
  66. ptype [*type*]
  67. With no *type* , displays the current packet types. Otherwise, all the
  68. packet types specified by *type* are set. *type* is a comma-separated list
  69. of packet types, where the possible packet types are **DM1**, **DM3**,
  70. **DM5**, **DH1**, **DH3**, **DH5**, **HV1**, **HV2**, **HV3**.
  71. name [*name*]
  72. With no *name*, prints local name. Otherwise, sets local name to *name*.
  73. class [*class*]
  74. With no *class*, prints class of device. Otherwise, sets class of device
  75. to *class*. *class* is a 24-bit hex number describing the class of device,
  76. as specified in section 1.2 of the Bluetooth Assigned Numers document.
  77. voice [*voice*]
  78. With no *voice*, prints voice setting. Otherwise, sets voice setting to
  79. *voice*. *voice* is a 16-bit hex number describing the voice setting.
  80. iac [*iac*]
  81. With no *iac*, prints the current IAC setting. Otherwise, sets the IAC to
  82. *iac*.
  83. inqtpl [*level*]
  84. With no *level*, prints out the current inquiry transmit power level.
  85. Otherwise, sets inquiry transmit power level to *level*.
  86. inqmode [*mode*]
  87. With no *mode*, prints out the current inquiry mode. Otherwise, sets
  88. inquiry mode to *mode*.
  89. .. list-table::
  90. :header-rows: 1
  91. :widths: auto
  92. * - *mode*
  93. - Description
  94. * - 0
  95. - Standard Inquiry
  96. * - 1
  97. - Inquiry with RSSI
  98. * - 2
  99. - Inquiry with RSSI or Extended Inquiry
  100. inqdata [*data*]
  101. With no *data*, prints out the current inquiry data. Otherwise, sets
  102. inquiry data to *data*.
  103. inqtype [*type*]
  104. With no *type*, prints out the current inquiry scan type. Otherwise, sets
  105. inquiry scan type to *type*.
  106. inqparams [*win:int*]
  107. With no *win:int*, prints inquiry scan window and interval. Otherwise,
  108. sets inquiry scan window to *win* slots and inquiry scan interval to
  109. *int* slots.
  110. pageparms [*win:int*]
  111. With no *win:int*, prints page scan window and interval. Otherwise,
  112. sets page scan window to *win* slots and page scan interval to *int* slots.
  113. pageto [*to*]
  114. With no *to*, prints page timeout. Otherwise, sets page timeout *to* to
  115. slots.
  116. afhmode [*mode*]
  117. With no *mode*, prints out the current AFH mode. Otherwise, sets AFH mode
  118. to *mode*.
  119. .. list-table::
  120. :header-rows: 1
  121. :widths: auto
  122. * - *mode*
  123. - Description
  124. * - 0
  125. - Enable
  126. * - 1
  127. - Disable
  128. sspmode [*mode*]
  129. With no *mode*, prints out the current Simple Pairing mode. Otherwise,
  130. sets Simple Pairing mode to *mode*.
  131. .. list-table::
  132. :header-rows: 1
  133. :widths: auto
  134. * - *mode*
  135. - Description
  136. * - 0
  137. - Enable
  138. * - 1
  139. - Disable
  140. aclmtu *mtu:pkt*
  141. Sets ACL MTU to *mtu* bytes and ACL buffer size to *pkt* packets.
  142. scomtu *mtu:pkt*
  143. Sets SCO MTU to *mtu* bytes and SCO buffer size to *pkt* packets.
  144. delkey <*bdaddr*>
  145. This command deletes the stored link key for *bdaddr* from the device.
  146. oobdata
  147. Get local OOB data (invalidates previously read data).
  148. commands
  149. Display supported commands.
  150. features
  151. Display device features.
  152. version
  153. Display version information.
  154. revision
  155. Display revision information.
  156. lm [*mode*]
  157. With no *mode*, prints link mode. **CENTRAL** or **PERIPHERAL** mean,
  158. respectively, to ask to become central or to remain peripheral when a
  159. connection request comes in. The additional keyword **ACCEPT** means that
  160. baseband connections will be accepted even if there are no listening
  161. *AF_BLUETOOTH* sockets. *mode* is **NONE** or a comma-separated list of
  162. keywords, where possible keywords are **CENTRAL** and **ACCEPT**. **NONE**
  163. sets link policy to the default behaviour of remaining peripheral and not
  164. accepting baseband connections when there are no listening *AF_BLUETOOTH*
  165. sockets. If **CENTRAL** is present, the device will ask to become central
  166. if a connection request comes in. If **ACCEPT** is present, the device will
  167. accept baseband connections even when there are no listening *AF_BLUETOOTH*
  168. sockets.
  169. block <*bdaddr*>
  170. Add a device to the reject list
  171. unblock <*bdaddr*>
  172. Remove a device from the reject list
  173. lerandaddr <*bdaddr*>
  174. Set LE Random Address
  175. leadv [*type*]
  176. Enable LE Advertising.
  177. .. list-table::
  178. :header-rows: 1
  179. :widths: auto
  180. * - *type*
  181. - Description
  182. * - 0
  183. - Connectable undirected advertising (default)
  184. * - 3
  185. - Non connectable undirected advertising
  186. noleadv
  187. Disable LE Advertising
  188. lestates
  189. Display the supported LE states
  190. RESOURCES
  191. =========
  192. http://www.bluez.org
  193. REPORTING BUGS
  194. ==============
  195. linux-bluetooth@vger.kernel.org