Research Article
WildSense: Monitoring Interactions among Wild Deer in Harsh Outdoor Environments Using a Delay-Tolerant WSN
Pseudocode 2
Pseudocode for the RF-receiving part when a mote receives a beacon or DTN data via RF.
void RF_signal.receive(data) // When the mote received data via RF, | | Set the DTN mode using the continuous RF communication without the sleeping mode | If (The received data is a beacon packet) | Update the DTN table with the received data | Send each row data in the DTN table in order | Else // DTN data | Update the DTN table with the received data | Store the latest received data in the DTN table to EEPROM in a 10 minute period | |
|