BLUETOOTHCTL-HCI(1) Linux System Administration BLUETOOTHCTL-HCI(1)

bluetoothctl-hci - HCI Submenu

bluetoothctl [--options] [hci.commands]

Open HCI channel.

> open <index> <chan=raw,user>
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.

> cmd <opcode> [parameters...]
> hci.cmd 0x0c03
HCI Command complete:
00

Send HCI data packet.

> send <type=acl,sco,iso> <handle> [data...]
> hci.send acl 0x0000

Register HCI event handler.

> register <event>

Unregister HCI event handler.

> unregister <event>

Close HCI channel.

> close <index>


http://www.bluez.org


<linux-bluetooth@vger.kernel.org>

Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL).

December 2024 BlueZ