puck.js problem - green led flash 5 times #3038
Replies: 11 comments
-
|
Posted at 2019-07-30 by Robin Tue 2019.07.30 Is it possible that a hard reset is being performed instead of just inserting the battery?
> 'In a few weeks, The old battery has suddenly lost all its power' Am I to understand this means a few weeks ago, or does it mean a new battery only lasted a few weeks? Please elaborate. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-30 by Christof550 a few weeks ago, the battery lost all its power from ~90% to ~20% then i changed it today and impossible to scan the puck button. I have hard reseted but the problem persist. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-30 by @gfwilliams The green led will flash 5 times if you pressed the button when you applied power to the battery. It's the self-test as Robin points out. If you hard-reset according to http://www.espruino.com/Puck.js#hard-reset then the Puck's Red LED should flash 5 times and all code will be wiped, so you should be back to normal. Please can you try to update your firmware as described in http://www.espruino.com/Puck.js#firmware-updates ? That would be the first place to debug power usage issues. I notice that the code itself that you uploaded seems broken (for instance Also, if you uploaded 'direct to flash' then the |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-30 by Christof550 Ok thank you, i'll remove "notify(0)" and will try to update firmware . |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-30 by Robin Tue 2019.07.30
You are correct. However, . . . placing Please verfiy your setting before upload at: WebIDE >> Settings >> Communications >> Save On Send I am not familiar with the process using Noble |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-31 by @gfwilliams Ok, thanks for the clarification - that explains the Are you definitely sending newline characters after each line? I notice there's an explicit Please could you try connecting and uploading with the Web IDE and see if that makes any difference? It could well be that there's an issue with your code upload from Noble, and using tools that we know work would help to narrow down where that problem is. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-07-31 by @allObjects @Christof550, other option with your uploading approach is:
Any restart of the code / power cycle will then just do fine... (load/execute the - initialization and defining the onInit() - code in to ram and then invoke the |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-01 by Christof550 Thanks all of you, i 'll try your advice soon. |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-01 by Christof550 @gfwilliams yes it's the only new line \n |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-01 by Robin Thr 2019.08.01
@Christof550 please re-read @gfwilliams's 2nd pp in #7 above. If there is one and only one new line entry, then it is quite possible an attempt is being made to upload one ginormous line of characters. Each code line requires a line terminator, one is not enough. Was the leading and trailing single grave accent char in L1 and L94 from code block in #1 there as part of the code, or there to make the outlining in the code block stand out and be more presentable? |
Beta Was this translation helpful? Give feedback.
-
|
Posted at 2019-08-05 by Christof550 haa ok ! I'll add a line terminator for each line of codes. Thanks. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2019-07-30 by Christof550
Hi,
My puck.js not advertising anymore, i have changed the battery then the green led flash 5 times sometimes when i click the button.
In a few weeks, The old battery has suddenly lost all its power from ~90% to ~20%.
When the battery has died, i changed it with a the same new then impossible to scan it and these flashes started..
What's the meaning of green led flashing ?
Thanks!
here the script uploaded :
Beta Was this translation helpful? Give feedback.
All reactions