how to determine when data is not being received
I'm working on a wireless thermometer project that is basically complete except for one large issue.
The project uses 1 xbee module to transmit temp and humidity data to a second xbee. The second module sends the data to a BS2 which then sends it to a Maxim 7219 to drive four 7-segment LED displays. When it's operational, the transmitter will send the data once every minute.
My problem is this, when the transmitter stops transmitting (say because of a power failure), the receiver will obviously stop receiving. However, the displays will still show the most recent temp and humidity until either the transmitter starts transmitting again or until the receiver is power cycledtemp receiver new.bs2. I would like them to show zeros, dashes, or in some other way indicate that they are no longer receiving data. I'm not sure how to do this since most of the time the receivers normal state is not receiving data. I've tried initializing the digits to display zeros on each loop of the program (which works), but then the data alternates between showing zeros and showing the temp/humidity, which is not very elegant.
I've attached the code if anyone would care to pass along suggestions...thanks!
John
The project uses 1 xbee module to transmit temp and humidity data to a second xbee. The second module sends the data to a BS2 which then sends it to a Maxim 7219 to drive four 7-segment LED displays. When it's operational, the transmitter will send the data once every minute.
My problem is this, when the transmitter stops transmitting (say because of a power failure), the receiver will obviously stop receiving. However, the displays will still show the most recent temp and humidity until either the transmitter starts transmitting again or until the receiver is power cycledtemp receiver new.bs2. I would like them to show zeros, dashes, or in some other way indicate that they are no longer receiving data. I'm not sure how to do this since most of the time the receivers normal state is not receiving data. I've tried initializing the digits to display zeros on each loop of the program (which works), but then the data alternates between showing zeros and showing the temp/humidity, which is not very elegant.
I've attached the code if anyone would care to pass along suggestions...thanks!
John
Comments