Puck.js bluetooth issues windows 10 #7898
|
Hi, So I went to the vative IDE route which manages to connect to the board but fails to detect its info. And this is what comes of process.env on my windows 10 PC : => JSON is broken :/ To make sure I tried with a Linux laptop : Web IDE works perfectly and process.env is: So it really seems to be a bluetooth issue on my windows desktop but unfortunately I couln't fix it. BT adapter is a UGREEN 80889 based on rtl8761b. Does anyone have any clue about what's going on here ? |
Replies: 2 comments 3 replies
|
Hi! I think the issue you're hitting is specific to the Native IDE, which is quite old now and has problems receiving more that the ~20 byte packets that you get over basic Bluetooth LE. For a few years now Espruino devices have been sending more than that if it can be negotiated with the PC, and so some of it gets lost. I think you'd be better seeing if you can go back to using the in-browser IDE rather than the native one. It's entirely likely that what happened is your PC paired with the Puck.js, but in the hard reset to the Puck deleted that pairing info. So now the PC tries connecting with the old pairing info but it's rejected because the Puck doesn't understand. I believe this usually happens if you've paired in your Windows OS Bluetooth menu (not just the Web Bluetooth one). So if you can find the Puck listed in Windows' Bluetooth menu and then click 'Forget' I think it should all start working just fine with the Web IDE in the browser again (you don't normally end up pairing with Windows to use the Puck, but maybe it's something you were working on that caused the pairing) |
|
Hmm thanks for that info about 20 byte limit. It absolutely makes sense ! |
I had it work again !
Again I deleted everything related to my puck's mac address in regedit. And most notably a group of keys under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Bluetooth\Gatt which still kept track of services and attributes uuids I defined on my puck before hard reset. (Deleting this one wasn't easy, I had to run regedit as Sytem user and take ownership on the keys)
Removed the bluetooth driver.
Rebooted and reinstalled BT and voila web IDE can pair !
Thanks for the mac and bluetooth-internals tips anyway ! I didn't know about these.
PS: I'm not pairing it again to the OS bluetooth