Portisch / RF-Bridge-EFM8BB1

Alternative Firmware for the Sonoff RF Bridge EFM8BB1 chip
289 stars 122 forks source link

Conrad Renkforce wireless socket (SC5262/SC5272) learning/cereption issues #134

Open kobuki opened 4 years ago

kobuki commented 4 years ago

Latest firmware used?

Latest from master.

Information

Device used: Conrad Renkforce Wireless socket

It's based on the SC5262 (encoder) / SC5272 (decoder) pair that uses a common fixed code, 3-byte protocol.

Sniffed data

I'm posting the output of several commands. The raw bucket decoding works and converted B0 commands also work. The issue is that nothing works outside raw sniffing, but the chip should be supported in theory. Normal supported code sniffing produces random results.

Currently it's not possible to assign actions to remote buttons in HA. Additional info: code group 2 is selected with the slider switch, and button 3 "ON" is used for testing.

15:32:09 CMD: rfraw AAA155
15:32:09 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
15:32:10 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA055"}}
15:32:15 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA333D6016804BA455155"}}
15:32:15 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433C201A404EC45515755"}}
15:32:15 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC019A04EC4555"}}
15:32:18 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433D6016804BA455155"}}
15:32:18 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433C201A404EC4555"}}
15:32:20 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433D6015E04BA455155"}}
15:32:20 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433C201A404EC4555"}}
15:32:22 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433D6016804BA455155"}}
15:32:22 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC019A04F64555"}}
15:32:24 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC015404BA455155"}}
15:32:25 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC019A04EC4555"}}
15:32:27 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC015E04C4455155"}}
15:32:27 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA433CC019A04EC4555"}}

15:33:24 CMD: rfraw AAB155
15:33:24 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
15:33:25 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA055"}}
15:33:30 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 019A 050A 33CC 28190818181908190819081908181819081908190819081908 55"}}
15:33:30 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 01C2 04E2 33CC 28190818181908190819081908190819081908190819090908 55"}}
15:33:33 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 0190 050A 33CC 28190818181908190819081908181819081908190819081908 55"}}
15:33:34 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 01CC 04E2 33CC 28190818181908190819081908181819081908190819081908 55"}}
15:33:35 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 019A 0514 33CC 28190818181908190819081908181819081908190819081908 55"}}
15:33:36 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AA B1 03 01CC 04E2 33CC 28190818181908190819081908181819081908190819081908 55"}}

15:35:49 CMD: rfraw AAA655
15:35:49 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
15:35:50 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA055"}}
*** no codes received ***

15:37:30 CMD: rfraw AAA955
15:37:30 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
*** button is pressed for 3-4s multiple times ***
15:37:49 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAAA55"}}
kobuki commented 4 years ago

Additional captures with A6:

16:06:18 CMD: rfraw AAA655
16:06:18 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
16:06:18 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA055"}}
16:06:45 CMD: rfraw AAA155
16:06:45 RSL: stat/sonoff/RESULT = {"RfRaw":"ON"}
16:06:45 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA055"}}
16:06:50 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA333D6017204C4455155"}}
16:06:50 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045555755"}}
16:06:53 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515555"}}
16:06:54 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515755"}}
16:06:55 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515555"}}
16:06:56 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515555"}}
16:06:56 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515755"}}
16:06:56 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045555755"}}
16:06:57 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515555"}}
16:06:58 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045515555"}}
16:06:58 RSL: tele/sonoff/RESULT = {"RfRaw":{"Data":"AAA6040045555755"}}

This seems a bit more consistent, but still can't reliably capture the code. Note that capture with A6 only works if I first issue the A6 command, and the the A1 command. Then on the first reception, it beeps and responds with an A3 timeout similar to the one in the above log excerpt, which should not be the case as I started a different kind of sniffing and the A3 response shouldn't contain a payload.