Blob: bluetoothctl-hci.rst

Blob id: 70aa5e7afaa432897525b16d2ddfc1d8316f9d20

Size: 1.3 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
================
bluetoothctl-hci
================

-----------
HCI Submenu
-----------

:Version: BlueZ
:Copyright: Free use of this software is granted under the terms of the GNU
            Lesser General Public Licenses (LGPL).
:Date: December 2024
:Manual section: 1
:Manual group: Linux System Administration

SYNOPSIS
========

**bluetoothctl** [--options] [hci.commands]

Commands
========

open
----

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

cmd
---

Send HCI command.

:Usage: **> cmd <opcode> [parameters...]**
:Example send HCI Reset command:
	| > hci.cmd 0x0c03
	| HCI Command complete:
	|  00

send
----

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
--------

Register HCI event handler.

:Usage: **> register <event>**

unregister
----------

Unregister HCI event handler.

:Usage: **> unregister <event>**

close
-----

Close HCI channel.

:Usage: **> close <index>**

RESOURCES
=========

http://www.bluez.org

REPORTING BUGS
==============

linux-bluetooth@vger.kernel.org