How connect to Puck.js on Windows 10 Desktop with Creators Update? #2452
Replies: 16 comments
-
Posted at 2018-01-22 by @gfwilliams Hi! I'm using a CSR module with my Windows 10 Creators Update PC (version 1709) and do have it working. I plugged the USB dongle in, and in device manager I disabled the existing Bluetooth radio that was in my PC and did 'update drivers' on the new dongle, then rebooted (the reboot seems to be required). However there are actually two methods of using Puck.js with Windows... You can use Windows' built-in functionality, or can just tell Windows not to touch your CSR dongle and can then have the Native Web IDE use the dongle directly without having to pair. That might actually end up being the easiest solution for you? There are instructions here for earlier versions of Windows that show you how to do that: http://www.espruino.com/Web+IDE#as-a-native-application Just to make life even more difficult it's also possible you're suffering from another issue we discovered recently - The 1v95 firmware for Puck.js seems to have some problems connecting after pairing with Windows. It should work fine when using the Native IDE direct with the CSR dongle, but pairing then connecting often seems to cause the device to reboot itself. It's something I'm looking into with Nordic at the moment and it seems to be a bug in their firmware - hopefully we'll get it sorted soon. ... so if you do get Windows to the point where it's showing Bluetooth LE devices you can connect to, you might want to try downgrading the Puck.js firmware to 1v94 for now - just in case that was causing you more issues. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-22 by squyrrel Hi Gordon, thank you very much for your advice! Best regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-22 by squyrrel Unfortunately I had no luck. I installed Zadig 2.3. My CSR 4.0 dongle is visible as "Generic Bluetooth Radio", I installed the WinUSB Driver for it. But it made no difference. The native Web IDE did not recognize the dongle before (only a COM1 port, which seems to be another device) and it still does not recognize it now. I then played around a few hours with removing and plugging the BLE dongle while installing, reinstalling and deinstalling drivers and devices in the device manager. This is start of console log when having the native Windows-10 drivers:
And this is with WinUSB drivers:
Now I perhaps have missed something ... I must probably try something else. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-23 by @gfwilliams With WinUSB yes, you'd expect Windows Bluetooth functionality to disappear. If you had another bluetooth radio (eg. a built-in one) then you could still use that with Windows at the same time though. With WinUSB it seems really close to working - what happens in the log when you open up the connection window and leave it for a few seconds? Hopefully it should be saying something like Is it possible that your phone or some other device is still connected to Puck.js? That would be stopping it from advertising its presence which would mean you couldn't connect to it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-24 by @gfwilliams Any luck? If you have a Raspberry Pi kicking around you can actually set that up to connect to your Puck.js: https://github.com/espruino/EspruinoHub#installation-of-espruinohub-and-web-ide The neat thing is you can program your Puck.js from anywhere (assuming you have a way to access your local network). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-24 by squyrrel Thank you Gordon, I am sorry, I had no access to my PC since. From what I remember, with WinUSB (but also with native driver) the console log said that 1 device was found. It was happy that it saw a prompt, which meant that there is a device, but after sending some complex expression (can't remember exactly but I hope you know which) it said that there was only a "" response. One more line, and that was all. I have Bluetooth switched off (nearly) all the time on tablet and phone, so no chance that the Puck can silently pair with one of these. And switching it on, I can see the Puck advertising so it is also not paired with any other device. No Raspberry Pi here, but perhaps I will have an old Windows 7 notebook (not upgradable because of insufficient hardware) available, which has USB 2.0 ports, will give it a try then. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-24 by squyrrel Ok, installing WinUSB again with zadig, then reboot, with CRS 4.0 module plugged in. This is the console log:
Then click the yellow "Connect/Disconnect" field, but only COM1 is avaliable. When choosing this, connection becomes green and status bar says CONNECTED TO PORT COM1 .
No Thank you very much, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-24 by squyrrel Maybe here starts the problem?
To me, this looks like Web IDE will only search for kind of "serial" devices. Like the COM1 port. Unfortunately I cannot find any detailed information about Why is Web Bluetooth superfluous now, I thought it was used for connection of the Web IDE to the Puck? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-25 by @gfwilliams There are multiple ways to connect with Bluetooth LE:
But we shouldn't need Web Bluetooth, that's why it gets disabled for the moment. I'm looking into this now and I think I found a problem with how Noble is getting initialised - I'm amazed nobody other than you has come across it actually. I should have a new IDE version online in an hour or two that will hopefully fix this for you. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-25 by @gfwilliams Ok, after much messing about there's a new version of the IDE available to download at http://www.espruino.com/Web+IDE That should fix your problems, and it should also be significantly faster. There's also a 32 bit version which will work on significantly older computers. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-25 by squyrrel Hi Gordon, I really appreciate your efforts! I tried your modified Web IDE, and of course something has changed. Now it finds the Puck but still cannot connect.
And clicking on connect field, it scans and offers the Puck.js for connection! But then ....
I also tried this with several firmware versions of the Puck.js. Thought I saw some similar problems in this form, but perhaps not exactly the same. Any more advice for me? Best regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-26 by @gfwilliams That looks so close! Did anything happen on Puck.js's LEDs during the connection process? Please can you flash 1v95.153, then hold down the button for ~10 seconds while restarting it so that all 3 lights light, then you get 5 flashes of the red LED (all the while holding the button down). That should clear out any saved pairing data that could possibly have caused problems when connecting (if you had pairing data left over from trying to pair when you were using the USB dongle on Windows). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-26 by squyrrel Hi Gordon, I did what you suggested, and it worked! Could connect to the Puck, and enter "1-2" on the left pane, and it replied "=-1"! Yeah! This is the log, from starting at "Found UART device":
There still seems to be a little problem with the serial port implementation, but nothing bad. But then I wanted to connect again, and this time it failed.
Perhaps you have one more idea? At the time when connection worked, I fidgeted with a freshly unboxed raspi 3 - perhaps I should just place it on the table next to my keyboard and the reluctant Puck ... Best regards, Edit: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-26 by @gfwilliams Glad it's going - ish. I'm not sure what to suggest about the connecting issues though. When you do get connected, could you just check ... but as you have a Pi 3 now you could give EspruinoHub a try, which should be a bit more reliable - at least I hope there's no difference between it and the Pi 3 I have here which works great :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-28 by squyrrel Hi Gordon, (sorry for my name change, did this for practical reasons), What I found is that chances for connecting with Puck seems to increase dramatically when closing the Chrome browser on Windows 10. Best regards, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-29 by @gfwilliams
That is very strange - so using the Native IDE, but whether Chrome is open or closed changes things? You had mentioned you had been trying Web Bluetooth out on Chrome Canary? If you'd had any Web Bluetooth pages open that definitely would have messed things up. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2018-01-22 by squyrrel
Hi,
I got a Puck.js and a "CSR 4.0" Bluetooth USB adapter for my desktop PC a few days ago.
Firstly I updated the Puck.js to firmware 1v95 with my android tabled, which worked well.
Then I installed the native Web IDE.
Since then, I have been trying to discover and pair the Puck.js with my desktop PC, but without luck.
The PC has Windows 10 v. 1703 (Creators Update).
The CSR dongle uses native Windows drivers, which were automatically installed when first inserting it. Searching for driver update MS says everything is up to date.
Windows PC Bluetooth recognizes my tablet when I switch Bluetooth on there, but it does not see the Puck.js and also no other BLE HID devices that can bee seen with the tablet.
Deinstalling/reinstalling dongle and drivers did not change anything, I even tried installation of CSR Harmony stack, which only led to error messages when tring to enable Bluetooth. So I deinstalled it and after reinserting the dongle native windows drivers were there again.
The Creators Update seems to be notorious for problems with BLE, as I found many discussions on internet about suddenly invisible/unusable peripheral devices after update to v.1703.
So my question to other Puck.js developers on Windows 10 with Creators Update:
How do you still connect to your Puck. js?
Do you use a different dongle (Broadcom?) Or what does the trick for you?
Beta Was this translation helpful? Give feedback.
All reactions