Open Kontrol Gateway - stops posting after 4-7 days in area where broadband drops a lot

Hi,

Config:
OKG; using RFM12B[868Mhz] with Wiznet adapter board(V1), no CD card or any other on board additions. 

I'm using a cat5e cable which is under 100m, though the local broadband connection is not reliable, so I know it drops occasionally from talking to people....

When the unit stops posting data, both LEDs (green and orange) are on solid.

Power cycling the OKG or connecting a serial through ftdi resets it and it starts posting again.

I'm using a 9VDC power supply.

This wasn't an issue here at home, but it's out in the 'field' now and I'm trying to figure out why the watchdog timer isn't working?
Tried using the ResetEthernetShield function here
http://openmicros.org/index.php/articles/92-ciseco-product-documentation/openkontrol-gateway/164-openkontrol-gateway-example-code-llap-to-thingspeak
instead of the watchdog timer which isn't working.

Lasted 7 days before it died again. I need to reproduce this on the bench and find out what's going on.
Sketch is at https://github.com/PowerMeter/OKG if anyone has seen a similar issue. 

Eamonn

Robert Wall's picture

Re: Open Kontrol Gateway - stops posting after 4-7 days in area where broadband drops a lot

Have you done the modification to the reset line? http://wiki.openenergymonitor.org/index.php?title=Open_Kontrol_Gateway

EnergyRnR's picture

Re: Open Kontrol Gateway - stops posting after 4-7 days in area where broadband drops a lot

yes I have. I need to reproduce it here, and try to debug it.

Does seem like a wiznet reset issue though......

thanks Robert

Robert Wall's picture

Re: Open Kontrol Gateway - stops posting after 4-7 days in area where broadband drops a lot

I can't remember the exact details now, I think it was the case that it would start up and work correctly at power-on and maybe after a hard reset (= push-button), but the Wiznet module would not reset after a processor reset via the watchdog timeout, even though the watchdog itself was working and the processor was resetting. (I think I proved that by flashing a LED three times in the startup! So for some reason the Ethernet failed, the watchdog timed out, the processor reset, flashed its LED but the Wiznet LEDs stayed stuck as they were, so the Ethernet didn't start up, the watchdog timed out.....)  Splitting the Wiznet away from the processor reset line and driving it from an I/O thereby allowing the startup function to reset it cured my problem.

EnergyRnR's picture

Re: Open Kontrol Gateway - stops posting after 4-7 days in area where broadband drops a lot

Robert,

 thanks a lot ; that sounds very plausible. I'll give it a go.

Eamonn

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.