Direct HCI on Linux.
Hi, i'm wondering if its possible to use direct HCI communication instead of using the BlueZ stack, since on some systems, bluez can be more unreliable than using "raw" HCI communication, like go-ble/ble. Then we could use DefaultAdapter or DefaultHCIAdapter for example.
If its not possible, do you think this would be a lot of work to add?
While possible, I don't think this is something we'll be actively working on. Direct HCI probably means root access, and also probably means only one application can access Bluetooth at a time. I agree BlueZ can be difficult to work with, but it's the only thing that works on general purpose Linux systems.
I don't know how much work it will be. We already have some HCI support for a few chips (such as the CYW43439), perhaps we can reuse it?
I'm pretty sure you can just about do this now. See https://github.com/tinygo-org/bluetooth/blob/release/adapter_hci_uart.go