Page 1 of 4

Reboot board

Posted: 28 Nov 2016 10:47
by leriks
Do anyone know a way from IDE code to reboot the Zuno board.
I have situations where I wiuld like to from code reboot the board.

Re: Reboot board

Posted: 30 Nov 2016 14:19
by PoltoS
There is no way to do it except for a bit of ASM code (to turn on WatchDog and make a while (1); ). Or you can also connect some pin to Reset pin on programming connector.

But why do you want to do it?

Re: Reboot board

Posted: 30 Nov 2016 16:22
by joergm6
I would also need such a reboot. The AD converters report sometimes the same value (and then forever 26cm). I can even remove the sensor, remains the reported value. There is no special time, but possibly with a lot of Z-Wave radio traffic. Often it happens when the Z-Controller is restarted, but also simply between. Then z-uno power off/on is working again a while. I have tried all 4 AD ports. (Infrared Proximity Sensor - Sharp GP2Y0A21YK)
I have also tried with different times. Currently 1x per second. At shorter intervals (e.g., 50ms), it appears more often. A Z-Report is sent every 10s, if value changed.

Re: Reboot board

Posted: 30 Nov 2016 18:30
by PoltoS
Does it hand on 2.0.6 ? Can you show us your sketch and minimal h/wrequirements to reproduce it? Is Z-Uno still reachable via Z-Wave? Let us fix the problem instead of making hacks for user reset

Re: Reboot board

Posted: 30 Nov 2016 19:47
by joergm6
Yes, its 2.06 and the Z-Uno still works (4 switches).
The code is not secret and basic code :). I have leave original example code of the Sharp still contain (distanceRead). Please try it, because it happens faster here. Currently, I read only once per second and add up to 10 passes.
The end result is always 26cm in case of error. The specified Sharp can be used any AD port, always the same result. I have also tested other Sharp sensor.

PS: but I'm not the thread creator, he can have a very different problem . :roll:

Re: Reboot board

Posted: 30 Nov 2016 21:53
by PoltoS
Indeed funnybhow you have hijacked the thread ;)

We have seen similar report on ADC freezing on a specific value (406 in ADC). Will check it

Re: Reboot board

Posted: 03 Dec 2016 19:21
by joergm6
Thank you for the information. I hope then on the next version.
I have observed a bit. ADC ALWAYS freezes when the Z controller is restarted. (Raspberry / Razberry2 / Domoticz). So must have something to do with the Z-Wave transmission. The digial PINs 19-22 also have a problem here.

Re: Reboot board

Posted: 05 Dec 2016 09:22
by leriks
I started the thread.
My problem is that i have a light sensor that works fine but frezes on a specifik value. The (Vera plus in my case) Z-wave controler after that reports the frozen value until I reboot by removing power cord.
After rebooting the board works fine.

That is where I would like to from code reboot the board.

Re: Reboot board

Posted: 05 Dec 2016 09:26
by PoltoS
Ok, this is on our desk, we will check it.

Re: Reboot board

Posted: 05 Dec 2016 16:23
by PoltoS
Please confirm that the problem with freezing value happens on ADC2 (pin 5). Does it happen on others too?

What was your problem with 19-22? We have seen reports that Z-Uno changes their state on RF commands - we will check this after releasing 2.0.7.