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
893 stars 336 forks source link

Negative numbers due to higher-bit signals #63

Open maresb opened 5 years ago

maresb commented 5 years ago

While running RPi_utils/RFSniffer I get negative numbers from my remote:

Received -1550055680

If I instead use pigpio as per the instructions on sending rf codes with pigpio, I see that it is a 32-bit code which was not being correctly read: code=2325481216 bits=32

I can transmit the correct code if below the line tx=_433.tx(pi, gpio=TX) I add the line:

tx.set_bits(32)
kiki51 commented 4 years ago

I maresb.

I have the same issue using my remote and the rfsniffer command.

Have you find a solution ? The code sent by the codesend command is good or bad?

Thanks in advance

maresb commented 4 years ago

@kiki51 I don't remember whether or not codesend works properly with 32-bit codes. I recommend switching to pigpio if that is possible for you.

SiberaIndustries commented 1 year ago

I had the same issue and fixed it in https://github.com/ninjablocks/433Utils/pull/81 or check it out here

Also related to #66 or #80