Skip to content

[Feature] Enable btstack in the virtualhub #2461

@laurensvalk

Description

@laurensvalk

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions