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

Sending Protocol is changing to 3. #6

Open markosole opened 9 years ago

markosole commented 9 years ago

I'm using 315 MHz transmitter and receiver and when I send commands, I receive them on protocol 1. But, 2 of 10 sent commands fails. The reason for that is changing protocol from 1 to 3 just for a moment, then it back to protocol 1.

Than I changed settings in file codesend.cpp Line: 33 I add this: mySwitch.setProtocol(2);
Than I do $# sudo make all
to compile it again. And set protocol to nr. 2. But again, when I receive messages, protocol is changing to nr. 3 during transmission and I get failed messages. I do not know why. Can someone help me with this?

rotv commented 8 years ago

Could it have something to do with this?: Issues Due to limitiations in the implementation of interrupt-driven routines in the underlying RCSwitch library, it is currently not possible to use both the send and receive functionality within the one program.

If not, perhaps PR #17 might help out since it contains an upgrade to the underlying rc-switch library.