I’m working with @dartmouthwsn, the original poster on this thread, to construct a logger network using Mayflys and 900 Mhz XBee Pros. We had the code successfully working so that the logger Mayflys were able to send data to a centrally located node using the Xbee Pros. The code has been functional for several months and was tested at several sites over varying distances with dependable and consistent results.
However, about a week ago, we ran into an issue with the code. The central Mayfly node receiving the data no longer consistently writes the data to its SD card or prints it to the serial. I’ve tried using different Mayflys as well as resetting the Mayflys. Though the code has gone through many iterations, even the original working code no longer functions for the receiving node.
Oddly enough, changing the baud rate of the XBee receiving data seems to work for a few uploads of the code––after changing the baud rate, the data is successfully collected for about three or four uploads of the code and then suddenly stops working again. Looking at the XBee’s serial in XCTU, I can see that all of the data is actually being received by the XBee, but not written to the SD card.
As far as I can tell, I think the issue is that, for some reason, the XBee serial is not recognized as being available despite the fact that the XBee is receiving data. I’ve tried re-downloading the libraries, thinking that my SoftwareSerial library may have been out-of-date, but nothing seems to fix the issue.
I’m wondering if anyone has run into a similar problem, and if anyone has any advice on how to solve the issue.
Any help would be greatly appreciated!