LowPowerLab Forum

Hardware support => Moteino => Topic started by: lbjstetson on September 25, 2017, 08:59:38 AM

Title: Sensor gateway issue
Post by: lbjstetson on September 25, 2017, 08:59:38 AM
I'm having an issue with my sensor gateway. It worked perfectly for months but over the past few weeks it will only work for a day or less before I need to reset it. It collects sensor data from about 30 nodes and sends it online via 2G FONA. Every time I go out to see what the issue is, the FONA is still turned on so it seems to be hanging up there. My thought was that it was a memory issue so I tried to cut that down quite a bit but it didn't fix the problem.

Any ideas? Thanks!!
Title: Re: Sensor gateway issue
Post by: Felix on September 25, 2017, 10:15:21 AM
I can't really see a problem at first glance of your code, but just taking a wild guess, it's probably hanging in one of the libraries or your sketch somewhere.
I would move all strings to flash memory (wrap them in F()).
And I suggest adding some debug code. You could flip digital IOs or the LED at various points in your code to see what is actually hanging.
Or if possible, you could hook up a logic analyzer to see if it's hanging in the RFM69 code somewhere, or to check the debug GPIO.