Unable to get puck to stay in bootloader mode. #2319
Replies: 18 comments
-
Posted at 2017-08-17 by Wilberforce Check the battery voltage or swap with a fresh battery... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-17 by MyBlueBoo You may be right.. Not sure. But I see the green LED looks very weak. (see video) Would be nice if there was some way to determine the battery voltage externally. Hey ho. Edit: won't let me upload the video. Here is a link to it instead. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-17 by @gfwilliams Wow, yes, that green LED is super-dim. It's very likely it's your battery then. The red runs off a lower voltage so would still appear bright on a low battery - it'd still be alight when the microcontroller rebooted due to lack of power. When Espruino is working you can connect and call Puck.getBatteryPercentage() to get an idea of the amount of battery power you have left - but before then, if you don't have a volt meter, looking at the LED brightness is about all you can do. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-17 by MyBlueBoo Yeah.. so changed battery managed to upgrade firmware to 1.93 now though I seem unable to connect to it. Hmmm. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-17 by @gfwilliams Could you close/reopen the IDE? It seems to be in kind of an odd state. Does anything happen on Puck.js during that time? You could also try booting Puck.js with the button held down until all 3 LEDs come on. On 1v93 that should clear out any pairing information (or garbage that might have got left in that area from older versions of the firmware). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-19 by MyBlueBoo Did the reset and seemed ok for a minute but then just disconnected again and went back to being erratic. What I find different is the fact I keep on having to hit pair with the device when it disconnects even though it is a saved connection. (you can see in the video is show it as (paired) but asks to pair again. Not sure what is going on here. But seems the my phone is also dropping the connection to the puck not just my laptop. Odd. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-21 by @gfwilliams Looks like you're on Linux? Close the chrome tab, and try Maybe check the version with Also, install Chrome, not Chromium. Last time someone had a problem with Linux, that seemed to be the biggest issue (having to hit 'Pair' is fine though - that's just what the windows says all the time). When you do manage to get a connection, please can you also check |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-21 by MyBlueBoo No joy alas. Even with Chrome it does the same. For the record I am using Debian 9.0 (testing) Kernel 4.12.0-1 and bluetoothd is 5.45 Like I say though, it is not just my laptop that seems to have problems keeping a connection my phone does too. A Samsung S7. Now the odd thing is that before on an older firmware I did not seem to have such problems but of course that was a few months back so hard to say what has changed. Anyway to debug BLE connections? I would be curious to know if it is the Puck dropping the connection or the computer. Thanks. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams I'm not 100% sure about the connection debugging - I know you can put your phone in Debug mode and can dump Bluetooth info over USB, but I've never done it. You could also try connecting with 'nRF connect' on Android to see if that manages. Please could you install the cutting edge Puck.js build from here: http://www.espruino.com/binaries/travis/master/ And once flashed, put the battery in with the button held down until all 3 lights light up. On the recent builds (1v93 doesn't have it), doing that will wipe all bonding/pairing data from the Puck and will skip loading any saved code -which I guess could potentially have been a problem. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by MyBlueBoo
So I flashed the espruino_1v93_puckjs.zip 2017-08-21 16:32 263K md5sum: bbec17e5f851057ffb2214bf5c5ec145 espruino_1v93_puckjs.zip Reset it like you suggested till all 3 LEDs lit but now I seem unable to connect to it via the IDE from both the laptop and the phone now!? I can connect to it via nRFTool box and this is what I get back from the limited log.
Does that help at all? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams So the nRF toolbox can connect and stays connected? And are you using Chrome on your Samsung phone, or Samsung's own browser? Have you tried restarting your laptop between times in case there is some issue with the bluetooth library? I know mine's running Bluez 5.45 and can still get confused and require a bluetoothd restart at times. Your other option is to That'll use Bluetooth on your PC without going through Chrome's Web Bluetooth. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by MyBlueBoo Yes I did use Google Chrome on my phone. However after a restart of my phone it seemed to work. That is I was able to connect to it using Chrome WebIDE and upload the sample sketch. Which I have not been able to do for a while now. Trouble is it is VERY fiddly trying to type anything via the phone. I have rebooted my laptop 'just in case'. No joy. Ironically enough I did just install
Which does not bode well. Oddly enough it still sees the puck when scanning for it in the browser. So not sure what is going on here. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams Ok, well at least that confirms it's not something actually wrong with Puck.js. You can use the Web IDE relay - but that's pretty fiddly too: http://forum.espruino.com/conversations/300770/ You might be able to install You could try It sounds a lot like something updated on your computer and caused you problems though. Perhaps the firmware for your bluetooth/wifi adaptor got updated and introduced some BLE problem? You could try an external BLE dongle? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by MyBlueBoo Yeah, well that seems to have gotten us a little closer. Look what verbose revealed.
Turns out that both noble and bluetooth-hci-socket both need to be installed globally as well:
Woo Hoo! Now finally it connects. At least long enough to get Battery status.
But wait a few seconds and it becomes unresponsive again :(
It does not even say timed out or anything. Just becomes unresponsive when I type anything. Weird. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams That is really strange... But it doesn't become unresponsive when used from your phone? You could actually try stopping the Bluetooth daemon completely and try again? I think Noble goes direct to the Bluetooth adaptor. If you're up for it I'd say a £5 bluetooth LE dongle might be worth a try? I know on my laptop the bluetooth adaptor behaves pretty badly under Linux (seems reliable on Windows), but sling a cheap dongle in the side and it's pretty solid. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by MyBlueBoo Yeah the phone stays connected ok it seems. At least enough to upload the sketches a few times changing the LED number. Well this is an Intel Bluetooth module. (8087:0a2b) so should be pretty well supported. Restarting the bluetooth will show the puck again and connect but then it will drop after a while. I was repeatedly sending
I literally got to the last char and then pressed return and nada. It became unresponsive so I had to Cntrl-C it. I shall investigate if there are some tweaks for my bluetooth connection. Because it does seem whatever happened it has become worse ;) Thanks for the help. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by @gfwilliams
... that's exactly what I have in my laptop! So yeah, I imagine that won't be helping. If you do find a solution, please share it because I'd love to be able to fix it as well! As it is, I tend to use an external USB BLE dongle when I absolutely have to be sure of the connection. Having said that, it looks like I have more success with it than you do - it usually works ok for me, and it's just occasionally it decides it's not going to work. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-08-22 by MyBlueBoo Ok .. something definitely to do with the driver because this pops up in the logs:
I'll chat to the bluetooth subsystem guys see if I can get a definitive answer to what is going on. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-08-17 by MyBlueBoo
Ok this is starting to get very frustrating. I have updated firmware before ok but for some reason now the puck0js won't stay in bootloader mode. That is I hold the button insert the battery release button and LED turns red. It stays red for about 10 seconds then turns off. Or if I am very quick and try to connect to it using nRF tools it will also drop out of bootloader mode.
What the hell is going on. I have not touched the puck in months (family issues to deal with) but I am pretty sure it was on firmware 1.90. I want to update to the latest 1.93 but cannot if I cannot get the damn thing to stick on bootloader mode.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions