Parent: 560dcd2ea3d267674c6ab5f7c60c62cd6ed4b6f7
Author: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2024-12-11 19:52:36
Tree: 293e02aaa86cd103bdfd652568d192f8b7ef2309
client: Add HCI submenu This adds HCI submenu: Menu hci: Available commands: ------------------- open <index> <chan=raw,user> Open HCI channel cmd <opcode> [parameters...] Send HCI data send <type=acl,sco,iso> <handle> [data...] Send HCI data register <event> Register HCI event handler unregister <event> Unregister HCI event handler close Close HCI channel Examples: In order to open a user channel the controller needs to be power off first: bluetooth# power off bluetooth# hci.open 0 user HCI index 0 user channel opened Then commands can be sent hci.cmd, so the following is sending HCI reset: bluetooth# hci.cmd 0x0c03 HCI Command complete: 00 For sending data packets to specific handle hci.send can be used: bluetooth# hci.send acl 0x0000
Diffstat
| M | Makefile.tools | | | 3 | ++- |
| A | client/hci.c | | | 333 | ++++++++++++++++++++++++++++++++++++++++ |
| A | client/hci.h | | | 12 | ++++++++++++ |
| M | client/main.c | | | 3 | +++ |
4 files changed, 350 insertions(+), 1 deletions(-)