Skip to main content

Module transport

Module transport 

Source
Expand description

Moving HCI packets to and from a controller.

TransportSpecUse
Linux HCI user channelhci0any 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 portserial:/dev/ttyAMA0:115200UART controllers, with no kernel driver at all
H4 over TCPtcp:127.0.0.1:9000virtual 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§

PacketReader
Reads whole packets.
PacketWriter
Writes whole packets.

Enums§

Packet
One HCI packet, without its H4 indicator.
TransportSpec
Which controller to open.

Functions§

open
Opens a transport.