sui77 / rc-switch

Arduino lib to operate 433/315Mhz devices like power outlet sockets.
1.89k stars 653 forks source link

Custom protocol Avidsen doorbel #438

Open epatix opened 2 years ago

epatix commented 2 years ago

Hello,

it's not really an issue but I don't understand how to implement new code.

I have a doorbel Avidsen that is not directly recognized by RC switch, I followed the tutorial to add a new remote and sniffed the code. Capture d’écran de 2021-10-10 10-48-26

From there I could figure out that pulselenght is 500µs That the remote is transmitting 12bit (8 related to dip switch and 4 last that are fixed)

S 0 0 0 0 0 0 0 0 1 1 0 0

That sync bit is 1 high and 1 low That 0 is represented by 2 high and 1 low That 1 is represented by 1 high and 2 low

So I think the protocol should be { 500, { 1, 1 }, { 2, 1 }, { 1, 2 }, false }

Is it correct ?

Also added the line into the RCSwitch.cpp file as protocol 7 But if I use then the receive demo the serial monitor stays empty, could you tell me what should I do to get it working.

Thx

M-C-Dev commented 1 year ago

How do you calculate 500µs?