harold65 / SolarMeter

Arduino Solar Meter
https://www.wijhebbenzon.nl/
8 stars 8 forks source link

Timeout too short, leading to spurious resets #10

Open 0xCAFEDECAF opened 6 years ago

0xCAFEDECAF commented 6 years ago

https://github.com/harold65/SolarMeter/blob/8f2cf97f13b269b32c362e6a9be9c3d1aeaded7b/WatchDog.ino#L4

When using an Ethernet Shield based on W5500 hardware, a timeout of 1 minute is too little. With W5500 hardware (and possibly others), connect operations can take up to 31.8 seconds (see https://github.com/harold65/SolarMeter/issues/9 ) so then the 1 minute is easily reached. My proposal would be to set this timeout to 36000 (3 minutes).

Gertjezzz commented 4 years ago

Did the setting of 3 minutes in timeout help you in recieving less resets? After adding another S0 Meter (have 2 for usage and 1 for PV) I now recieve more resets. Usually i have to reset the arduino several times after an software update to run it for months. But now I cant get it running a whole day without a reset.

Dylantje commented 4 years ago

What arduino u use? And what pins??

Perhaps take a look on my git i forked this solarmeter in to a simple version

Gertjezzz commented 4 years ago

I use an Adruino uno with an ethernetshield (W5100). Had for, i believe, 1 a 2 years now 2 sensor setup. Yesterday I added an extra sensor and reconfigured the setup to:

I got the setup fully working but have some minor issues.

Your fork of the Harold software is running smootly? Does it have Exosite upload?

image