-->
Page 2 of 34

Re: node.dsleep() reliability - zombie mode

PostPosted: Wed Jan 28, 2015 1:53 pm
by alonewolfx2
Why you are using "node.dsleep(60000000-tmr.now())" ? -tmr.now for what?

Re: node.dsleep() reliability - zombie mode

PostPosted: Wed Jan 28, 2015 2:05 pm
by GeoNomad
alonewolfx2 wrote:Why you are using "node.dsleep(60000000-tmr.now())" ? -tmr.now for what?


In theory that subtracts the number of microseconds since startup so the repetition will be 60 seconds.

Not 60 seconds gap between measurements, as you have done.

In fact, a few microseconds more needs to be added as tmr.now() is not reset instantly. There is an extra boot time which may or may not be consistent 100%. That needs to be determined experimentally for each firmware release.

Right now it cycles in 58-59 seconds...

Re: node.dsleep() reliability - zombie mode

PostPosted: Wed Jan 28, 2015 2:10 pm
by alonewolfx2
hmm usefull. thank you for this explanation.

Re: node.dsleep() reliability - zombie mode

PostPosted: Thu Jan 29, 2015 5:17 am
by alonewolfx2
i saw something. its starting firmware upload mode when deepsleep mode crashing. i am using led on gpio0 maybe my problem solve with pull up resistor on gpio0. what do you think?

Edit: it have same issue with or without pullup resistor on gpio0