sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mismatch between sent and received codes

corradinia91 opened this issue · comments

Hello, I have the following setup:

  1. Sniffer: Arduino uno with standard MK device. I'm using receive_demo_advances as sketch
  2. NodeMcu: amica v2 with fs1000A Transmitter device

My goal is to repllicate an old transmitter. with nodemcu device. Arduino device it's just a listener used on my tests

What i've did

  1. Captured code with arduino. I've got a code, XXXXX with protocol 11 and it's pulse lenght
  2. Now from NodeMCu device i'm calling method send() passing only the binary data

Arduino sniffer successfully capture something, so wiring and software are ok.

What I see is that arduino sniffer capture different data also if i set protocol, pulse lenght and data exactly the same as the data captured from arduino

I tryed adjusting parameters, but without success.

I'm using library version 3 on generic board device esp8266

Please, can someone help me?

I'm having the same issue: what I set to transmit is not what I am receiving on my sniffer. Protocol number and pulse length changes! This has happened when trying to control two different wireless AC power sockets. But it DID work with a cheap LED dimmer unit. The major difference between these cases was the pulse being shorter on the AC sockets compared to the LED dimmer (<200us VS >300us). And the decimal code is bigger on the AC sockets compared to the LED dimmer (8 figures VS 6). Everything else was the same, such as bitsize and protocol number.

Could it be that the RC Switch library can't handle bigger decimal codes and shorter pulse lengths?