-
-
Notifications
You must be signed in to change notification settings - Fork 7
Description
BTstack can be configured for Linux or OS X with a USB Bluetooth dongle. This should let us use it with the Virtual Hub. This would make local development much easier, and also help get our abstractions right from the get-go, both for classic and BLE.
The way I read it, an instance directly controls the HCI of the USB dongle rather than going through the host OS, so we'd get to test actual "brick-to-brick" communication too, on a single machine. I think this would even let us test and debug talking to Pybricks Code locally, which is quite a feat.
The Virtual Hub already has a "bluetooth driver", which currently just writes stdout to local stdout. But we can change it to use the existing bluetooth_btstack with posix hooks instead of uart platform hooks.
This would be a bit of work upfront, but if it can work like above it could be a big time saver overall. What do you think @dlech, @jaguilar?