Closed cristian-spiescu closed 5 years ago
Hello! I'm afraid I don't use Windows 10, have access to a Windows 10 machine, nor know anyone who uses Windows 10 for that matter, so this may be a little tricky to debug!
But for starters, can you give me a little background. What version of Node are you? What type of Hub are you trying to connect to, and what devices (such as motors or sensors) are plugged into it?
Also, can you tell me at what point you start getting these errors? Immediately after requiring the library? After discovering a Hub? After calling connect on the hub? Or after attempting to call a method (such as setMotorSpeed) on a discovered and connected Hub?
Hi @cristian-spiescu, do you have a further update on this? If when debugging, it would be helpful if you could do "export DEBUG=poweredup,lpf2hub,boostmovehub"
Closing due to lack of activity, info, and corroborating reports.
Hello,
I just discovered today this very interesting project, but I'm having some trouble running it. I'm using Windows 10 and yesterday I managed to run successfully the project movehub-async .
movehub-async
has a narrower scope than this project; i.e. it works only with Lego Boost, whereas this project,node-poweredup
, seems to support all devices using the Lego Wireless Protocol (LWP). I mention that I installed all noble prerequisites, including installing the WinUSB driver.The first issue I got with both projects was:
Having an Intel Bluetooth module, I tried my luck (as some google results suggested) and I modified the file
\node_modules\bluetooth-hci-socket\lib\usb.js
; i.e. adding the signature of my bluetooth device, as seen in Device Manager. Something like:After doing this, project
node-movehub-async
has ran successfully. However, in this project, the error was gone, but I get the following (cf. the title of this issue).Have you got any hints? I'm kind of stuck.
Note: just modifying the
usb.js
file cf. above was theory is an illegal hack. I.e. I bypass the guard condition, but maybe then the lib may fail somewhere else, because my Bluetooth device is different than the ones already supported. E.g. with errors such as the one above. BUT, given the fact that it has actually worked for the other project,node-movehub-async
, makes me hope that maybe there might be a solution.Thanks in advance! Cristian