Expand description
Moving HCI packets to and from a controller.
| Transport | Spec | Use |
|---|---|---|
| Linux HCI user channel | hci0 | any controller the kernel has a driver for (btusb, hci_uart after hciattach); the kernel loads its firmware and then hands the whole controller to us |
| H4 over a serial port | serial:/dev/ttyAMA0:115200 | UART controllers, with no kernel driver at all |
| H4 over TCP | tcp:127.0.0.1:9000 | virtual controllers (Bumble), network HCI bridges |
The user channel needs the interface down and nothing else using it: on a
system with BlueZ, stop bluetoothd first. Opening it needs
CAP_NET_ADMIN.
Modules§
- indicator
- HCI packet indicators (H4).
Structs§
- Packet
Reader - Reads whole packets.
- Packet
Writer - Writes whole packets.
Enums§
- Packet
- One HCI packet, without its H4 indicator.
- Transport
Spec - Which controller to open.
Functions§
- open
- Opens a transport.