|
OCS watchdog
However you like. I'm running for a while with DEBUG_LOOPTIME and DEBUG_WATCHDOG enabled WATCHDOG ON. See as much of what's going on as I can.
However you like. I'm running for a while with DEBUG_LOOPTIME and DEBUG_WATCHDOG enabled WATCHDOG ON. See as much of what's going on as I can.
|
By
Howard Dutton
· #221
·
|
|
OCS watchdog
The other way to do this is to put a watchdog reset inside the webserver code and set it back to 10s. I don't like the OCS being blocked for 10s though so I went with a 4s timeout which isn't so bad.
The other way to do this is to put a watchdog reset inside the webserver code and set it back to 10s. I don't like the OCS being blocked for 10s though so I went with a 4s timeout which isn't so bad.
|
By
Howard Dutton
· #219
·
|
|
OCS watchdog
So... Update to OCS 2.3c and kick it around a bit.
So... Update to OCS 2.3c and kick it around a bit.
|
By
Howard Dutton
· #218
·
Edited
|
|
OCS watchdog
Ok, it's in the webserver. A hung socket and a timeout that's too long I suspect. I shortened that timeout from 10s to 4s. I also added better connection check code... The connection check needs to fa
Ok, it's in the webserver. A hung socket and a timeout that's too long I suspect. I shortened that timeout from 10s to 4s. I also added better connection check code... The connection check needs to fa
|
By
Howard Dutton
· #217
·
Edited
|
|
OCS watchdog
The code for the first phase of this is in the OCS on GitHub now. Run just like you did for the first test again and it should allow me to identify the general area of the OCS that caused the ~10 seco
The code for the first phase of this is in the OCS on GitHub now. Run just like you did for the first test again and it should allow me to identify the general area of the OCS that caused the ~10 seco
|
By
Howard Dutton
· #209
·
|
|
OCS watchdog
You can run the second test if you like, but it is not really necessary now. We have confirmed my suspicion, something is blocking the main-loop for >8 seconds and triggering a reset. Now we just need
You can run the second test if you like, but it is not really necessary now. We have confirmed my suspicion, something is blocking the main-loop for >8 seconds and triggering a reset. Now we just need
|
By
Howard Dutton
· #208
·
|
|
OCS watchdog
Good to know. I removed the extra watchdog resets in the OCS, they are obviously not solving this problem and are not needed. I added a new debug option though: #define DEBUG_LOOPTIME ON // OFF, ON to
Good to know. I removed the extra watchdog resets in the OCS, they are obviously not solving this problem and are not needed. I added a new debug option though: #define DEBUG_LOOPTIME ON // OFF, ON to
|
By
Howard Dutton
· #206
·
Edited
|
|
Some notes/question on the OCS - Interlock, Single-button openers/closers
There's actually a bunch of little refinements in the update too. I coded the momentary button press timer to work in 0.1s intervals instead of 1s so the length of the press is more tightly controlled
There's actually a bunch of little refinements in the update too. I coded the momentary button press timer to work in 0.1s intervals instead of 1s so the length of the press is more tightly controlled
|
By
Howard Dutton
· #205
·
Edited
|
|
Some notes/question on the OCS - Interlock, Single-button openers/closers
I did this update. Much of how it behaves depends on the options selected. For an situation where ROR_MOTOR_OPEN_RELAY == ROR_MOTOR_CLOSE_RELAY == ROR_MOTOR_STOP_RELAY and there is no ROR_POWER_RELAY:
I did this update. Much of how it behaves depends on the options selected. For an situation where ROR_MOTOR_OPEN_RELAY == ROR_MOTOR_CLOSE_RELAY == ROR_MOTOR_STOP_RELAY and there is no ROR_POWER_RELAY:
|
By
Howard Dutton
· #204
·
|
|
OCS watchdog
The next option would be to turn the WATCHDOG OFF and see if you still have stability.
The next option would be to turn the WATCHDOG OFF and see if you still have stability.
|
By
Howard Dutton
· #200
·
|
|
Some notes/question on the OCS - Interlock, Single-button openers/closers
I've added those fixes, thank you for review and testing. I'm thinking about another possible issue with your proposed setup. The OCS shows a Stop button but it really doesn't do anything to stop the
I've added those fixes, thank you for review and testing. I'm thinking about another possible issue with your proposed setup. The OCS shows a Stop button but it really doesn't do anything to stop the
|
By
Howard Dutton
· #198
·
Edited
|
|
OCS watchdog
Not if the signal levels are within spec. (0-5V) I know of no way that option should effect the website beyond it's ability to reboot/reset everything (once an hour with your former settings) if that
Not if the signal levels are within spec. (0-5V) I know of no way that option should effect the website beyond it's ability to reboot/reset everything (once an hour with your former settings) if that
|
By
Howard Dutton
· #196
·
|
|
OCS watchdog
Have you tried turning OFF the WATCHDOG_CHECK_HOURS and see if the reboot still occurs?
Have you tried turning OFF the WATCHDOG_CHECK_HOURS and see if the reboot still occurs?
|
By
Howard Dutton
· #193
·
|
|
OCS watchdog
A connection attempt. If there's no response the watchdog-reset is blocked which causes the watchdog timer to reach its full count (8 seconds without a watchdog-reset) and trigger a reset of the Mega2
A connection attempt. If there's no response the watchdog-reset is blocked which causes the watchdog timer to reach its full count (8 seconds without a watchdog-reset) and trigger a reset of the Mega2
|
By
Howard Dutton
· #192
·
|
|
Some notes/question on the OCS - Interlock, Single-button openers/closers
Here's a Roof.ino with the interlock changes. If you could test/report back that would be great. I implemented this so the roof power relay can be used to power up the interlock system (a design goal.
Here's a Roof.ino with the interlock changes. If you could test/report back that would be great. I implemented this so the roof power relay can be used to power up the interlock system (a design goal.
|
By
Howard Dutton
· #190
·
|
|
Some notes/question on the OCS - Interlock, Single-button openers/closers
I figured close only would be sufficient. Ok, as above. Agree with the concept and it's a good enhancement to the functionality. Also, the idea here is the ROR_POWER_RELAY will "unplug" the garage doo
I figured close only would be sufficient. Ok, as above. Agree with the concept and it's a good enhancement to the functionality. Also, the idea here is the ROR_POWER_RELAY will "unplug" the garage doo
|
By
Howard Dutton
· #189
·
Edited
|
|
OCS watchdog
Perhaps you should move that from pin 53? AFAIK it's not in use unless you hook up the DS3234 though so I don't have a good reason why that should matter.
Perhaps you should move that from pin 53? AFAIK it's not in use unless you hook up the DS3234 though so I don't have a good reason why that should matter.
|
By
Howard Dutton
· #187
·
Edited
|
|
OCS watchdog
This is with your Config.h I changed only the network addresses and set the W5100 reset to the Mega2560 pin 8 where I have it wired in:
This is with your Config.h I changed only the network addresses and set the W5100 reset to the Mega2560 pin 8 where I have it wired in:
|
By
Howard Dutton
· #186
·
|
|
OCS watchdog
So what is different? Post the Config.h file.
So what is different? Post the Config.h file.
|
By
Howard Dutton
· #184
·
|
|
OCS watchdog
Check to see if 2.2e resolves the problem. If not I'd go back to defaults for Thermostat.ino and Weather.ino (no sensors.) Lets get it working without resets first, then go from there.
Check to see if 2.2e resolves the problem. If not I'd go back to defaults for Thermostat.ino and Weather.ino (no sensors.) Lets get it working without resets first, then go from there.
|
By
Howard Dutton
· #182
·
|