Hello,
I am connecting TivaC with an RF module with UART with baud rate 9600. The system hibernate for 2 hours and wakeup to collect some sensor reading and then send the data to the RF through the UART link and finally hibernate again. The wakeup period is around 5 seconds. It works fine in the lab and in the backyard.
But when installing the system in an agriculture field we record several time fail of UART communications. We designed the system not to hibernate except after sending the data to the RF and added a watchdog timer to restart the code every 10 seconds. We recorded several minutes to an hour trying time till re-establish UART communication and then hibernate !
Some useful notes:
We assumed before it may be the morning dew but we found the inside of enclosures are dry.
The supply voltage is 3.2 for both the UC and RF.
The system works without errors for several weeks in house or at the backyard. But can not pass a single day in the agriculture field !
There is no noise source in the field and we tested several fields and all give the same UART communication loss.
The enclosures are mounted on the soil and are plastic, nearly air-tight with one cable gland.
Ican force the system to hibernate even under the loss of UART with the RF, but at this time I will lose the data at this time window and I am not sure if the UART communication will be established at the following time or no.
I am open to any ideas.
Regards,
Ahmed