Don's Pages and my Music

Monday, October 18, 2010

Data confirmation with RF communications - Hack a Day

Data confirmation with RF communications

posted Oct 18th 2010 1:00pm by Mike Szczys
filed under: wireless hacks

[Rafael] built a system that uses radio frequency for communications. The code he was using with the inexpensive receiver/transmitter pairs already had some error correction but from time to time an entire message would be missed by the receiver. He set out to make these RF communications more robust.

A little more than a year ago we looked at using these same transmitters with an Arduino. [Rafael] has a similar setup but since they are unidirectional he chose to use two pairs for bidirectional communication (each operating at a different frequency to avoid interference). On one end, a computer transmits data to the Arduino which is in a remote location. His confirmation protocol relies on a randomly generated message identifier. The computer will continually transmit the same message. The Arduino continually receives these messages, comparing them with the last successfully received message. If they match, it is considered a successful data transfer and the Arduino transmits a confirmation back to the computer which then starts transmitting the next message.

This isn’t an application-specific protocol. For demonstration purposes [Rafael] built a quick home automation setup that uses it to operate a house lamp.

tagged: , , , , ,

Go there..
http://hackaday.com/2010/10/18/data-confirmation-with-rf-communications/

Don

No comments:

Post a Comment