virantha / bricknil

Control LEGO Bluetooth Sensors and Motors with Python
https://virantha.github.io/bricknil
Apache License 2.0
143 stars 39 forks source link

Documentation clarification - Windows USB adapter support #15

Open BuongiornoTexas opened 4 years ago

BuongiornoTexas commented 4 years ago

Hi, I've recently picked up my first power functions set and I'm looking forward to using bricknil for a bit of automation (Thanks for putting the package together!).

I have a brief documentation clarification question. The docs state that bricknil supports BLE on Windows 10 through bleak and a dotnet bridge. Could I confirm that this means that bleak should support any BLE adapter/dongle that has Windows 10 drivers? If not, do you recommend any particular dongle/adapter to ensure compatibility? (I'd be happy with a general answer, but for my specific case, I'd be very to interested to know if there are issues with any of the following adapter types: CSR 4.0, TP-Link NB407, BLED112, Widcomm).

Either way, it'd be good to add something along these lines in the documentation - If @virantha or @dlech can give a rough outline, I'm happy to draft something up.

Aside: My apologies if this question sounds a bit daft, but I've spend a good deal of the last couple of days going through various python bluetooth pages and many of them state no or limited support for Windows devices (some limited to just the Bluegiga BLED 112). Given this, I figured it was worth asking the question before going ahead and getting an adapter.

Thanks again for the package!

BuongiornoTexas commented 4 years ago

Answering my own question, it looks as though bleak should support any BLE dongle. Confirmed with a generic Volans VL-BT40 dongle which appears to be a CSR chipset.

I also ran into https://github.com/virantha/bricknil/issues/13, which I was able to do a quick fix for based on https://github.com/hbldh/bleak/issues/53#issuecomment-473875499. (I'm assuming https://github.com/virantha/bricknil/issues/19 is a better long term fix though)