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
Possible upstream issues with noble causing No compatible USB Bluetooth 4.0 device found! #168
Comments
Sandeep is kindly investigating noble/noble#553 (comment) In the meantime, I have to investigate winnus: I give a call out if stuch, otherwise I believe I know what I am doing :)
|
I will write an example for winnus to make something like https://github.com/sandeepmistry/noble/blob/master/examples/advertisement-discovery.js which has helped me ensure the stack under noble works |
Winnus is purely for Windows 10 BLE - so if you're trying to debug Windows 7 there is no need to look into it. |
OK: Status on my Windows 7 VM is as below SEARCHING... NO PORTS FOUND
Back to nobel tests
|
I have done many things to get this far: all with reasonable care. Do I downgrade puck.js or pull the lattest puck.js code? After input, I go back to node module hell. In the meantime, I have done repeated node bin\espruino-cli --verbose |
Strange - not sure what to suggest. Stupid question - but is it close enough to the PC? It it's behind a wall or more than ~10m away it could be hard to connect to. Have you tried the newest command-line tools from GitHub? Those can wait a little longer for a connection. Also, you could use I have a feeling that maybe some of the USB Bluetooth keys only listen on one channel (not all 3) which makes it very hard for them to connect |
No question is too stupid :) |
Oops:
ie
And it is the failure of the connect after the scan that is "interesting" |
No comment required: I am ensuring I have a good base on Windows 10
I am not a full time programmer IRL: so this is cut and paste to give me context to test with.
Current release of nw.js dictates that the node v7.5.0 should be used, nw-gyp with nw.js and node-gyp for cmd line node (as far as I can see).
|
Windows 10 If the puck.js has a low battery, it can advertise but not be connected to. C:\source\repos\github\espruino\winnus>node hello.js Edit:
|
Building EspruinoWebIDE from github: Windows 10 and puck.js ONLY (USB support problems)
And smoke a cigar I regard this as good as I can now build for puck.js windows 10 sandeep has a little refresh of npm as a problem for noble and bluetooth-hci-socket Notes for next step: The Jared Wilcurt @TheJaredWilcurt 02:30 Which almost fits this, unknown node version, from README.md nw-gyp rebuild --target=0.18.6 --arch=x64 need to find last nw version that supports node 6.X LTS to get usb working https://nwjs.io/blog/v0.18.2/ is the last one before 7 |
Windows 10 All node_modules ok: EXCEPT for usb which is still a painful experience
Method for nw-gyp: for all binding.gyp in node_modules do nw-gyp rebuild --target=0.18.6 --arch=x64
I have finally found a source for what I thought could be a next step, as the binding.gyp looked crazy.
Notes: Windows 10 with no LIBUSB driver, just Windows BLE: it would be better to catch this error and give a shorter message as, in context, it causes a lot of error text and winnus is being used: caused me a bit of thought as to if important or not
Repeated above with same EspruinoCli but with LIBUSB (replace windows 10 driver and restart for good measure), no puck.js found (puck.js found again when windows 10 driver used)
|
When building the USB lib in Windows 10 I actually modified the windows header file - just seemed easier. After that the build works first time :) I'm open to PRs that would trap certain errors and report them in a more helpful way... |
Sandeep is releasing a new npm on it's way for node- bluetooth-hci-socket which will make life easier for additional bluetooth adapters, |
Any news on this? Did the update fix the problems for you? ... or would it be possible to close this bug? I mean, on Windows 10 you shouldn't need |
http://forum.espruino.com/comments/13473028/ for some background.
Possible problems with noble noble/noble#553
Installation: Windows 10 with Zadig giving No compatible USB Bluetooth 4.0 device found! with github clone (and in the IDE console and in downloaded Native)
using C:\nwjs\nwjs-sdk-v0.20.1-win-x64 (there may be a need to debug ...)
Edit
EspruinoWebIDE log: going for EspruinoTools tests
Edit
EspruinoTools does not "see" ble at the moment
EspruinoWebIDE still giving same error: dive into nw.js ?????????????????????????????????????????????????
Edit:
My only point of reference at this time is http://docs.nwjs.io/en/latest/For%20Users/Debugging%20with%20DevTools/
Edit
Doesn't work: possible disablement enablement needed
Edit:
Guessing ...
Edit:
Edit:
debugger/console at last
C:\source\repos\github\espruino\EspruinoWebIDE>nw --remote-debugging-port=9222 .
Edit:
OK: I now have a Windows 10 Zandig Installation with nw.js SDK and can debug under suggestions as to what to do.
ie: that is about as far as I go just now until I get some good idea as to what to do next
Edit:
OK: one doesn't learn anything by sitting around: diving into https://github.com/tessel/node-usb
And a lot of other lovly, lovly stuff that ended me here: node-usb/node-usb#109
The text was updated successfully, but these errors were encountered: