New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
would connect over usb-uart or tcp, but get a bluetooth Error #81
Comments
Does it actually fail, or is that message just displayed? When the tool starts it tries to get a list of available ports to see if the one you supplied on the command-line can be found - that means checking out all the various connection types. If it can't find a bluetooth device then it might complain but it should still work with other connection methods. ... having said that, really that warning should only be displayed if |
Hi, |
Wow, that's frustrating - looks like it may not even be part of the tools so I'm not sure it's something that can be trapped. You can always just delete the |
Thanks. |
I ran into the same error on Win10 with Espruino Command-line Tool 0.1.21. Some details: I have a Wifi and a Pixl board, can connect to both of them using the web ide. Updated both to the latest firmware, but can't connect to them using the CLI.
Before deleting node_modules/noble, if I tried Any idea, what might be the problem? Other than Windows 10 of course :) Or how to get the CLI working with BLE on win? Thanks! |
It's really strange about Can you try pairing the Pixl with Windows 10 first and see if that helps? If It's just frustrating that those Windows APIs require the device to be paired first. |
An update: node-bluetooth-hci-socket readme says, it needs WinUsb driver for windows, installed that and made some progress: Added it, and now
But
And the terminal just hangs there, have to kill it. |
Can you connect to your Pixl.js with If so, maybe you could give a pull request to bluetooth-hci-socket for the But yes, Also, update and try now, and the hang when selecting ports should be gone. |
Thanks, connecting directly to Pixl.js did work in 0.1.21! My VID/PID pair is already in the current node-bluetooth-hci-socket In Espruino cli 0.1.22 npm package, there is no /lib folder, and dies at line 86 in index.js. Commenting out that line, and adding my VID to bluetooth-hci-socket, it runs, but either can't find any devices, or fails at
Also, can't connect directly with
Also But
|
Ok, think I fixed the lib issue for you. It's possible that the USB device you have just doesn't actually work with Noble? If you let WIndows 10 handle it and paired then Winnus would probably work. As-is I imagine Bluetooth on Windows 10 is now broken until you mess with Zadig/WinUSB?
Hmm - all that changed I believe was using newer versions of Noble. You could go back to using an old one? |
The lib issue is fixed indeed! At first, didn't know what winnus is, but cloned it, and after pairing, it works with the default windows driver. Tried 0.1.21 and 0.1.23 again, both versions work "sometimes". Feels like Zadig / WinUSB driver / Noble is not exactly stable on my machine :( Uninstall + reinstall the driver, and it works again :/ |
FYI, I'm also having ble related issues. This is on Linux Manjaro (an Arch derivative). The standard invocation pauses for half a second when saying "Connecting" and then exits:
Explicitly disabling BLE gets me a step further:
but after that TTY input is dead. Double ctrl-C does nothing, ctrl-Z does nothing. I have to kill node from another terminal to exit... Running with verbose enabled shows a bunch of warnings (I removed the "Found..." lines):
Ugh, some of the issues are probably because I'm running node.js V11. I'm now off trying to figure out how to install an ancient version of node without messing up my whole system... |
Well, the Bluetooth errors/warnings are pretty much expected if the modules haven't installed properly, but they shouldn't cause you any problems. Once it says Are you sure it's not just that your device isn't responding on TCP/IP? I just tried If you compile Espruino for Linux and do |
Using node.js V8 solved the issue. |
Hi,
i use a ESP32 and a Windows7 Laptop and Espruino Command-line Tool 0.1.13.
In the web ide the devices get connected, over COM7 USB2UART or tcp://192....:23
As far as I've read BLE is not supportet yet for the ESP32.
But this should not couse problems, because I don't use Bluetooth at all.
Equaly if I try
I get:
But why?
The text was updated successfully, but these errors were encountered: