Puck.js automatically disconnects after sending code - nothing stored though #3845
Replies: 1 comment
-
Posted at 2021-08-26 by @allObjects Can you be a little bit more specific about what you uploaded? ...your IDE settings about where you - wanted to. - store the code? You mentioned hard reset; I assume you also did the simple reset by just removing the battery for a bit, did you? Posted at 2021-08-26 by 2WeltenChris I tried loading it up to the RAM and also tried loading it up to Flash. In both cases it disconnects after the upload and on reconnecting it appears as no code has been uploaded. And yes - I did soft reset and hard reset. And I tried re-uploading the firmware. I would have guessed that at least one of these would erase every malfunctioning code I had uploaded before. I have one more clue: I just looked at the JS console of the IDE and it says
Sorry - sould have looked there earlier. :/ Posted at 2021-08-26 by @gfwilliams Sorry you're having issues...
This might sound stupid, but that error actually comes from your main computer, not Puck.js - so I think it's an issue with the computer - I bet it'd work fine from another. Please can you make sure your operating system isn't paired with the device via the OS's bluetooth menu? Also you could try rebooting your computer just in case? What's likely happening is:
Hope that helps! Posted at 2021-08-26 by 2WeltenChris That definitely makes sense! Thank you very much! I will check - a bluetooth stick for testing it on another computer is on its way anyway. So update comes asap. Trying to reboot my laptop meanwhile. Just one more question: To test my code I do have to connect it to my PC as a keyboard (I always removed the device after testing). How to prevent this behaviour in the first place? Is it only possible to develop on one computer and test it on another? Posted at 2021-08-26 by 2WeltenChris It worked after rebooting my laptop. -_- This is so cliché: "Have you tried turning it off and on again?" :D Sometimes the solution can be so simple. Thanks! Posted at 2021-08-26 by @gfwilliams
Well, if you don't want to physically touch your Puck then yes, to debug you have to be connected via Bluetooth. But it is possible to solder on a UART connection, then you can debug and reprogram via the UART while being connected (possibly to a different computer) by Bluetooth: http://www.espruino.com/Puck.js#serial-console |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2021-08-25 by 2WeltenChris
Hello everyone,
I'm new to Espruino and can't figure out what I am doing wrong:
I have a Puck.js (version 1 which I updated to version 2.10) and tried to play with the BLE keyboard tutorial. First everything worked just fine. But then I presume I uploaded some broken code and now everytime I try to send new code from the Web IDE it automatically disconnects after the data was sent (it didn't do that before if I'm not completely crazy). The code that was sent to Puck.js seems to be lost. And even a hard reset and reflashing the firmware didn't help.
I'm completely lost! If someone could please help me. Thank very much in advance!
Cheers,
Chris
PS: A new Version 2 Puck.js is on its way. And I fear I could break it as well. So understanding what happended here and how I can prevent it from happening again would be great!
Beta Was this translation helpful? Give feedback.
All reactions