Open erjosito opened 2 years ago
Hi, It looks like WeDo type of hub has some different identifiers of hardware. These identifiers are hardcoded here: https://github.com/undera/pylgbst/blob/4e90f9e2ce8cd24640e39d3a2670376aa8401890/pylgbst/comms/__init__.py#L18
If you know the right values, you can override those in the beginning of your script. That would require some experimenting and researching, not too easy.
Wow that was quick, thanks for your answer! I will check if Dr. Google can find if anybody has cracked the UUID for the WeDo hardware, otherwise I guess I will try another route. Thanks @undera !
Mmh, weird the docs in https://github.com/LEGO/lego-ble-wireless-protocol-docs seem to indicate that WeDo 2.0, Boost and Train share the same hardware UUID...
You may also want to try with different underlying BLE library. Specifically the bleak
looks the most stable today. Maybe it would behave differently.
Ah, found it in https://github.com/pybricks/technical-info/blob/master/assigned-numbers.md: 00001523-1212-efde-1523-785feabcd123
Mmh, now it times out with
5432 DEBUG pygatt.backends.gatttool.gatttool Sending cmd=char-write-req 0x0f 0100
35483 ERROR pygatt.backends.gatttool.gatttool No response received
(bleak not working for me on a raspi 3)
This is nice that you have some progress. I would do experiment using a regular computer, to remove potential problematic chain for experiment.
Hey there, first of all thanks @undera for creating this library! I am trying to connect to a Lego WeDo 2.0 SmartHub. I am a noob, but I read it should be compatible with Boost. I get this stack trace, does it sound like something easy to fix? Thanks!