ninjablocks / 433Utils

433Kit is a collection of code and documentation designed to assist you in the connection and usage of RF 433MHz transmit and receive modules to/with your Arduino and Rapberry Pi.
ninjablocks.com
MIT License
895 stars 335 forks source link

Data received multiple times #12

Open ksb86 opened 8 years ago

ksb86 commented 8 years ago

I'm getting the data transfer ok by using 'sudo ./codesend 123' on one raspberry pi and 'sudo ./RFSniffer' on another raspberry pi. However, for every time I transmit by using codesend, the sniffer end is receiving anywhere from 1 to 5 responses for each send. Am I missing something? Is this how rf is supposed to work? Thanks.

tx rx
maditnerd commented 8 years ago

Since 433mhz radio communication are unreliable, the code are sent multiples times to be sure it is received.

Here is where it is setup in RCSwitch library https://github.com/ninjablocks/433Utils/blob/master/RPi_utils/RCSwitch.cpp#L41

this->setRepeatTransmit(10);
ksb86 commented 8 years ago

@maditnerd Thanks! That make sense.

rotv commented 8 years ago

I'm guessing this issue can be closed since this is the intended behavior.

ksb86 commented 8 years ago

Yes, I would say so. Thanks.

On Feb 10, 2016, at 3:54 PM, rotv notifications@github.com wrote:

I'm guessing this issue can be closed since this is the intended behavior.

— Reply to this email directly or view it on GitHub.