Problems connecting to Windows 7 desktop #2221
Replies: 28 comments
-
Posted at 2016-12-19 by @gfwilliams Hi! Yes, the naming is a bit confusing - especially when you've now got the Web IDE at https://www.espruino.com/ide/ as well. Did you run the Zadig tool on your window 7 PC and change the BLE driver? more details are in the getting started instructions. Basically: Windows 10 handles everything in the OS, and everything works fine once paired with the OS. Windows 7 doesn't have an OS-defined way of accessing Bluetooth LE, so the Web IDE has to connect directly to the adaptor (which means you need to run the Zadig tool to swap drivers). As a result you shouldn't be pairing with the OS at all. In fact, if everything is working then the OS shouldn't be able to find any BLE devices as the (native) Web IDE will have completely taken control of it. The What's likely happening is that your Windows 7 PC hasn't had the driver swapped over with Zadig, it's not finding any BLE adaptor it can use, and it's defaulting to whatever it has, which is the Web Bluetooth option which doesn't work on Windows at the moment. If you're still having problems after doing the Zadig thing, or if you've already done it, please can you go into |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams Also, it's a shame you returned the CSR module before posting - CSR modules are the ones I use and they've generally been pretty good. In Windows 7 it doesn't matter if nothing shows up in the OS at all - it's just about whether the Web IDE can see it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by jegsav Hi Gordon, Thanks - oops, yes, I had missed the Zadig step. However, I have done that now, but that doesn't resolve my problems. In Zadig_2.2 I tried WinUSB (v6.1.7600.16385) (is this the one?) Also the others. None got me connected. I still get the "Web Bluetooth" panel instead of a listing of pucks. Did I miss something else? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams So that's WinUSB (v6.1.7600.16385) sounds fine to me - was Zadig set to change the driver for the Bluetooth adaptor rather than for some other bit of hardware though? Please could you copy from the Native Web IDE's 'console' menu under Settings and paste it into the forum? It might help to see what it thinks the problem is. Also, making sure the IDE is fully closed and re-opening it might help? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by jegsav Firstly, attached file shows current Zadig status. I have been closing and reopening the IDE each time I made a change. (I presume I don't have to restart the computer each time.) Here is the console dump: Espruino Web IDE This app is designed for Espruino JavaScript Microcontrollers. Please see the website and Quick Start guide for more information, tutorials and example projects. For information on how to use this IDE, see our guided tour. Espruino is Open Source. Please support us by donating or buying one of our boards! 1 The last 100 lines of log messages made by the Web IDE. This is only useful when trying to debug potential problems with the IDE or Espruino board itself. We have chrome.serial - not using 'serialport' module
I note the comment "Bluetooth adapter not available", but it shows as "working properly" in the Device Manager. Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams Ok - thanks. That's perfect! So... good news and bad news. The bad news is that it doesn't recognise your BLE adaptor - I mentioned before that it has to talk directly to the adaptor, and it doesn't recognise that one as one it can talk to. I'd be pretty sure that a CSR-based adaptor would work though (once Zadig is run). However, if you're happy to do a little poking around I think it can be fixed with your current adaptor.
and replace it with:
And if you run it now it should start working (hopefully!). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams It's a bit of a guess, but I had one of those Broadcom ones in my Laptop (albeit with a very slightly different USB ID) and got it working before by doing this. Basically they they've just got a list of USB adaptors that they know it works with - and yours wasn't in that list even though it will probably be fine. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by @yerpj FYI: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-23 by bosscube I also had the same issue, and with the same Broadcom BCM20702. Much like Jean-Philippe, I tried reinstalling via Windows Update but it still didn't work after using Zadig to change to WinUSB. Finally, I found the Intel Driver Update Utility Installer here: https://downloadmirror.intel.com/24345/a08/Intel%20Driver%20Update%20Utility%20Installer.exe Doing a scan, nothing was found, but when I clicked Older Drivers, I found 2 downloads for Bluetooth. I grabbed both of them since I didn't know which one to use. The first one installed but Windows reported that 2 things failed. The 2nd installation started and then reported that a newer version was already installed. Just out of curiousity, without opening Zadig yet, I opened the Web IDE and lo and behold.. puck.js was in the list! It connected and I have been messing around with it for over an hour, so I'd say I'm in the clear! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-13 by TonyRandall I have the same problem. I thought that Gordon's solution might work, but no luck. I added the code into usb.js and checked that my devices ID was in the list - 0A5C 21EC (this ID came from installing the WinUSB driver using Zadig. After doing all that, I still get "No ports found" when I try and connect to the device. It works using an Android device, so there's no problem with the device. I updated the firmware via my Android device, but this still doesn't help me connect on my Windows 7 64bit PC. Here is my console log from the descktop IDE: We have chrome.serial - not using 'serialport' module
Any help fixing my issue would be much appreciated. Thanks |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-13 by OwenBrotherwood For those who may be using Zadig: or maybe afraid to use Zadig, there is a WIP for documentation as it is my best way to learn. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-13 by @gfwilliams @OwenBrotherwood thanks - some better docs for Noble would be great. @TonyRandall I guess it's possible that your Bluetooth radio just isn't supported by Noble - what make is it? If you're willing, it looks like the easiest way to get it working might be to buy a cheap CSR Bluetooth 4 dongle - they're usually only around £5 delivered. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-13 by OwenBrotherwood A bit of thread hijacking but some hints for anyone wanting to use Zadig and nobel to access compatibility noble/noble#553 The key points are getting Zadig to install on the bluetooth device. Follow these requirements : https://github.com/nodejs/node-gyp#installation However, if one is learning something, one can continue with the next step git clone https://github.com/sandeepmistry/noble.git Note: the two clones should have the same parent directory. I'm off to see if I can do a DFU from my windows 10 unless Gordon says it is impossible with an ordinary bluetooth adapter that is Zadig'ed https://github.com/thegecko/web-bluetooth-dfu |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-13 by TonyRandall Thanks for your reply Gordon. My device is a Simplecom NB407 and appears in the Zadig device list as a BCM20702A0 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-14 by OwenBrotherwood https://github.com/sandeepmistry/node-bluetooth-hci-socket#compatible-bluetooth-40-usb-adapters so BCM20702A0 is ok for nobel Check the VID PID
Edit: At the present time, I have no Windows 7 machine at hand: a lenovo with probable bcm in the celler but instead I looked at the following
Well, in theory, my Windows 10 with zadig could operate like a pre-8.1: ie nobel. However, the Native Web IDE ("The Web IDE is available as a download for 64 bit Windows:") does not work with my Windows 10 / Zadig setup. Is this a "good" test??? I think that the hci module needs a refresh
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-14 by @gfwilliams @TonyRandall it sure sounds like it'd be ok - Noble should really report an error if it thinks there are any problems with the adaptor. Do you have any other adaptors in the system? I guess it could be picking up the wrong one? And stupid question - but are you sure you disconnected Puck.js from Android before trying to connect on Windows? Puck.js will only advertise its presence when it's disconnected from other devices (because it can only accept one connection at a time) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-14 by OwenBrotherwood Having written an "Edit" in http://forum.espruino.com/comments/13472214/ I found it necessary to make a post as I think there is an issue in the bundled node-bluetooth-hci-socket Take ones time and read thru my edited comment. Note: Altered console message
Edit:
Edit: NOTE: using C:\nwjs\nwjs-sdk-v0.20.1-win-x64
Confirmed? upstream issues with nobel npm modules from npm
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-14 by OwenBrotherwood I hit bedrock with usb problems on this one: issues for something or other in windows 10 and all that. Edit: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-15 by OwenBrotherwood Could not find a broadcom: I create a virtual 7 and make a how to to get further with doc for 7 and what is needed to get it to work
Windows Update https://github.com/sandeepmistry/node-bluetooth-hci-socket ensure example works with bluetooth Taking a long time as my laptop disk is full and I have to continually find more to delete Sorry for the delay: still deleting files and the window 7 Visual studio needed repairing :: takes a LONG time winnus has a problem: WIPAttachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-15 by @gfwilliams It'd be preferable if you could find a way to get the existing NW.js web IDE build working - realistically very few people are going to do what's needed to get the node.js USB libs built on Windows - it's why I spent at least a week making sure there was a pre-built version for everyone already. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-02-15 by OwenBrotherwood Yep: I am doing a pre-build :: it takes a long time and hopefully I succeed this evening. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-26 by JamesS lets try again. Three PNG files attached relating to the above post.Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-26 by @gfwilliams Thanks for the screenshots... Looks like you've done the right stuff, but that inbuilt adaptor isn't supported by the native IDE build. If you've added it to One other way to try (in case somehow it's still loading the old JS file from the archive) is to set the two environment variables:
However it worries me that your USB adaptor still isn't supported by the latest upstream bluetooth-hci-socket - which may be because it just doesn't work with it: https://github.com/sandeepmistry/node-bluetooth-hci-socket/blob/master/lib/usb.js#L68 If you want to work around it without spending £5-10 on an external BLE dongle there's still the option of using your phone as a BLE adaptor: https://www.youtube.com/watch?v=H8L8ft830hI |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-26 by JamesS Hi Gordon,
Are you aware of any Live CDs that are likely to work with BLE with minimal config? I figure this might help prove the capabilities of the device. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-26 by @gfwilliams Yes, that's my mistake. It should have been 0x21e6 as you say.
I was going to say last time but I forgot - can you go into settings and copy/paste the contents of the You could give a Ubuntu 17.04 Live CD a try? https://www.ubuntu.com/download/desktop You could try the command:
which will hopefully show bluetooth LE devices if some are available. You could also follow the instructions in the first part of this page to get Web Bluetooth working: http://www.espruino.com/Web+Bluetooth+On+Linux |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-26 by JamesS Gordon,
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-05-29 by @gfwilliams Thanks - so:
Is your issue, and would be related to that USB ID thing - I'm surprised it does that even when specifying the environment variables or tweaking If you wanted to really dive in, I'd suggest trying the current I doubt the new one would work (because your USB ID isn't mentioned in their list), but having some totally minimal bit of code would be a good place to get started, and you could then contact the maintainers of |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-18 by jegsav
I’m having difficulty connecting a puck to my Windows 7 desktop. I have a Broadcom BCM20702 Bluetooth dongle plugged in and the supplied software installed. Initially I had difficulty “seeing” the puck both via Windows and the Espruino IDE. That might have been due to interference with the wireless mouse and keyboard I have on the same computer. I think I have improved this by putting the Broadcom dongle on the end of a USB extension to physically distance it from the desktop box, but it still isn’t very reliable. Unplugging and replugging the dongle seems to restart things and seems to help.
I can pair the puck using Windows, but (unsurprisingly) there is no driver and one “Unknown Service” is reported. I “remove” the device and try with the Espruino native IDE (which is titled “ESPRUINO WEB IDE”; perhaps this should be retitled “NATIVE” or similar to differentiate it from the Chrome App one?) When I try to connect the puck through “Web Bluetooth” it often doesn’t find the puck first time. Either replugging the dongle or reinstalling the puck battery both seem to help the puck be seen, but when I try to pair in the IDE I always get the “Connection Failed” message.
I can connect the puck, and program it, with my Windows 10 laptop and inbuilt Bluetooth. With the lap-top I see the puck listed in the “Select a Port” window and don’t have to go through “Web Bluetooth” – I think I picked up from the forum somewhere that this is significant. Last time I tried this, after experimenting with the desktop set-up, I got the “Connection Failed” message, but reinstalling the puck battery cleared the problem.
For various reasons I really want to access the puck via my desktop. Can Gordon or anyone suggest how to resolve my various problems? Incidentally, the Broadcom dongle is the second one I have tried. The CSR 4.0 dongle I tried first seemed completely useless and I returned it to the supplier.
Beta Was this translation helpful? Give feedback.
All reactions