I am designing a system that collects temperature data and does very basic positioning by monitoring the link quality between nodes. The broad strokes are:
When I run this, everything goes swimmingly for a while (sometimes for 30 minutes, sometimes for a few hours) and then I suddenly start getting errors reported regarding my RPC for getLq(),indicating that I am getting a "None" value instead of an integer from the getLq().
Shortly after a couple of these errors pile up, everything goes screwy. Data stops getting reported altogether and I am unable to update my nodes over the air. When I connect the RF266 to my computer (via an XBEE explorer dongle from Sparkfun) it is unable to function even as a bridge node and I must erase the SNAPpy image to get it to work again. Sometimes after erasing the image, the RF266 is still totally unresponsive (making me the owner now of several non-functioning radios).
My questions are these:
Thanks in advance to anyone who can help!
- I'm using RF266 modules for my nodes
- Sensors are I2C, I have reassigned my I2C clock pin to be the Data In pin and my I2C data pin to be the Data Out pin
- At every second, the mobile node checks the temperature sensor output and calculates temperature, uses an RPC/callback to determine the link quality between it and the other nodes, and then reports this information to Portal by plotting and printing the data.
When I run this, everything goes swimmingly for a while (sometimes for 30 minutes, sometimes for a few hours) and then I suddenly start getting errors reported regarding my RPC for getLq(),indicating that I am getting a "None" value instead of an integer from the getLq().
Shortly after a couple of these errors pile up, everything goes screwy. Data stops getting reported altogether and I am unable to update my nodes over the air. When I connect the RF266 to my computer (via an XBEE explorer dongle from Sparkfun) it is unable to function even as a bridge node and I must erase the SNAPpy image to get it to work again. Sometimes after erasing the image, the RF266 is still totally unresponsive (making me the owner now of several non-functioning radios).
My questions are these:
- Any ideas as to what could be causing this seemingly randomly occurring error?
- How might I restore my unresponsive RF266's to working condition?
Thanks in advance to anyone who can help!
Comment