sui77 / rc-switch

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

Can not sent a long bit 433 OOK sigenel Correctly~ #290

Open darf2k opened 5 years ago

darf2k commented 5 years ago

Hi friends: Here is an uncommon OOK signle I've analyzed. It's 40 bits long. SimpleRcScanner.ino gave me follow snaps: arduino SimpleRcScan And I`ve broken it up as follow: SimpleRcScann And compared with URH captured wave form: zhao_A SimpleRcScan and URH pules conpare It can not be decoded directly by RcSwitch.

I've modified .cpp & .h files exactly as "Add_New_Remote_Part_2" said, then use " mySwitch.send(737306917550, 40);// means " 1010101110101010111010101011101010101110 " to repeat this signle, but I got a wave form with 10 bits bad and 30 bits correct, and the sync signal is also incorrect. Please see below: Not right

So here are my issues:

  1. Did I set static const RCSwitch::Protocol customprotocol = { 380, { 9, 2 }, { 1, 3 }, { 3, 1 }, false }; mySwitch.setProtocol(customprotocol); correctly by following "Add_New_Remote_Part_1"?
  2. Have any one sent 40bits(or more) signal successfully? And did I miss something?

Thanks all~

LaCocoRoco commented 5 years ago

This library can only handle 32bit signals.