bluetoothctl-hci − HCI Submenu
bluetoothctl [−−options] [hci.commands]
Open HCI channel.
|
Usage |
> open <index> <chan=raw,user> |
Example open user channel
In order to open a user channel
the controller needs to be power off
first:
> power off
> hci.open 0 user
HCI index 0 user channel opened
Send HCI command.
|
Usage |
> cmd <opcode> [parameters...] |
Example send HCI Reset command
> hci.cmd 0x0c03
HCI Command complete:
00
Send HCI data packet.
|
Usage |
> send <type=acl,sco,iso> <handle> [data...] |
Example send ACL data packet to connection handle 0x0000
> hci.send acl 0x0000
Register HCI event handler.
|
Usage |
> register <event> |
Unregister HCI event handler.
|
Usage |
> unregister <event> |
Close HCI channel.
|
Usage |
> close <index> |
<http://www.bluez.org>
<linux−[email protected]>
Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL).