Portisch / RF-Bridge-EFM8BB1

Alternative Firmware for the Sonoff RF Bridge EFM8BB1 chip
293 stars 124 forks source link

Dooya DC920 remote support #180

Open cookiesharkk opened 4 years ago

cookiesharkk commented 4 years ago

Hi All,

First of many thanks to @Portisch for this project!

I'd need some help to understand, what I'm doing wrong.

Here is some background information, what I've got and done with the device:

Later on, when the device is running properly (switch is in 'ON') I opened the console and having these data:

_00:00:00 CFG: Loaded from flash at F9, Count 19 00:00:00 QPC: Count 1 00:00:00 SER: Set to 8N1 19200 bit/s 00:00:00 Project tasmota Tasmota Version 9.1.0(sensors)-2_7_4_5 00:00:00 WIF: Connecting to AP1 MyWIFI Channel 1 BSSId 64:66:24:3B:02:B7 in mode 11N as tasmota_8B6235-0565... 00:00:01 WIF: Connected 00:00:02 HTP: Web server active on tasmota_8B6235-0565 with IP address 192.168.1.67 00:00:03 RSL: tele/tasmota_8B6235/INFO1 = {"Module":"Sonoff Bridge","Version":"9.1.0(sensors)","FallbackTopic":"cmnd/DVES_8B6235_fb/","GroupTopic":"cmnd/tasmotas/"} 00:00:03 RSL: tele/tasmota_8B6235/INFO2 = {"WebServerMode":"Admin","Hostname":"tasmota_8B6235-0565","IPAddress":"192.168.1.67"} 00:00:03 RSL: tele/tasmota_8B6235/INFO3 = {"RestartReason":"Power On"} 00:00:06 QPC: Reset 00:00:07 RSL: tele/tasmota8B6235/STATE = {"Time":"1970-01-01T00:00:07","Uptime":"0T00:00:09","UptimeSec":9,"Heap":23,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"MqttCount":0,"Wifi":{"AP":1,"SSId":"MyWIFI","BSSId":"64:66:24:3B:02:B7","Channel":1,"RSSI":100,"Signal":-37,"LinkCount":1,"Downtime":"0T00:00:03"}}

Information

The device is what I'm trying to sniff data is a Dooya DC920 5 channel remote controller for my shutters.

Sniffed data

Post your sniffed data by command 0xB1 or 0xA6.

After sniffing the data and past it to BitBucketConverter.py gave me this:

Enter B1 line: smota_8B6235/RESULT = {"Time":"2020-11-20T10:43:12","RfRaw":{"Data":"AA B1 06 13C4 06F4 02D7 0148 01C9 2AD0 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} AA B1 06 13C4 06F4 02D7 0148 01C9 2AD0 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55 Repeat: 20 Sync: 50 Data: 12 32 32 33 22 32 33 22 33 22 33 23 23 23 23 23 23 23 22 33 23 23 22 33 22 32 33 23 23 23 22 33 23 23 23 22 33 23 23 22 Sync 0
Hex:

The data for command 0xA8 will be: SYNC_HIGH: bucket 3: 0148 SYNC_LOW: bucket 0: 13C4 BIT_HIGH_TIME: bucket 2: 02D7 BIT_HIGH_DUTY: (100% / (bucket 2 + bucket 1)) bucket 2: 0x1c (71%) BIT_LOW_TIME: bucket 1: 06F4 BIT_LOW_DUTY: (100% / (bucket 2 + bucket 1)) bucket 1: 0x47 (71%) BIT_COUNT + SYNC_BIT_COUNT: 0x1 (1, SYNC_BIT_COUNT = 0) Data: 7F014813C402D71c06F4471 Protocol is 0x7F (unknown), Len xx is counting bytes: '7F 0148 13C4 02D7 1c 06F4 47 1 ' == 0x0B

'AA A8 0B 7F 0148 13C4 02D7 1c 06F4 47 1 55'

Then, I was copying this: rfraw AA A8 0B 7F 0148 13C4 02D7 1c 06F4 47 1 55 with or without whitespaces no result. The shutter didn't move, however I've heard the buzzer is beeping. That's all.

Could someone help me? What's the problem? Am I doing something wrong or the latest EFM8BB1 firmware doesn't support DC920?

Thanks in advance!

Here are some sniffed data:

Channel 2 - UP _10:43:07 CMD: rfraw 177 10:43:07 RSL: stat/tasmota_8B6235/RESULT = {"RfRaw":"ON"} 10:43:07 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:07","RfRaw":{"Data":"AAA055"}} 10:43:12 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:12","RfRaw":{"Data":"AA B1 06 13C4 06F4 02D7 0148 01C9 2AD0 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:12 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:12","RfRaw":{"Data":"AA B1 05 1428 0686 02CE 016E 2BCA 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:13 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:13","RfRaw":{"Data":"AA B1 06 13C4 06FE 02D9 014E 01CE 2AC6 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:13 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:13","RfRaw":{"Data":"AA B1 05 140A 0686 02D5 016B 2A6C 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:14 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:14","RfRaw":{"Data":"AA B1 06 1464 065E 02D4 014E 01CC 2AC6 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:14 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:14","RfRaw":{"Data":"AA B1 05 1496 05FA 02D2 016B 2A6C 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:15 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:15","RfRaw":{"Data":"AA B1 06 146E 06EA 02D3 0153 01CD 2A26 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:16 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:16","RfRaw":{"Data":"AA B1 05 14C8 0690 02D4 0170 29AE 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:19 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:19","RfRaw":{"Data":"AA B1 05 1400 06A4 02D7 0160 2AA8 0123232332232332233223323232323232323223323232233223233232323223323232322332323224 55"}} 10:43:19 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:19","RfRaw":{"Data":"AA B1 05 140A 0686 02D1 016E 2AB2 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:20 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:20","RfRaw":{"Data":"AA B1 06 13C4 06F4 02D7 0148 01D2 2AC6 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:20 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:20","RfRaw":{"Data":"AA B1 05 140A 0690 02CB 016C 2BE8 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:21 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:21","RfRaw":{"Data":"AA B1 06 1464 06FE 02D7 0148 01D1 2A30 0123232332232332233223323232323232323223323232233223233232323223323232322332323225 55"}} 10:43:22 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:22","RfRaw":{"Data":"AA B1 05 1496 0690 02D0 016A 2B52 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}} 10:43:22 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:43:22","RfRaw":{"Data":"AA B1 05 14A0 06A4 02D4 0165 2A12 0123232332232332233223323232323232323223323232233223233232323223323232322332323224 55"}} 10:43:23 RSL: tele/tasmota8B6235/RESULT = {"Time":"2020-11-20T10:43:23","RfRaw":{"Data":"AA B1 05 14A0 0686 02CE 016E 2AB2 0123232332232332233223323232323232323223323232233223233232323223323232322323232334 55"}}

Channel 2 Down _10:44:17 CMD: rfraw 177 10:44:17 RSL: stat/tasmota_8B6235/RESULT = {"RfRaw":"ON"} 10:44:17 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:17","RfRaw":{"Data":"AAA055"}} 10:44:20 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:20","RfRaw":{"Data":"AA B1 06 13C4 06F4 02C0 0177 01C9 2AF8 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:20 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:20","RfRaw":{"Data":"AA B1 05 1496 0686 02D9 0169 2A08 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:21 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:21","RfRaw":{"Data":"AA B1 06 146E 06D6 02C1 0176 0132 2A4E 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:22 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:22","RfRaw":{"Data":"AA B1 05 1496 05FA 02D3 016C 2C06 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:22 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:22","RfRaw":{"Data":"AA B1 06 13C4 06FE 02BD 0175 01D1 2AEE 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:23 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:23","RfRaw":{"Data":"AA B1 05 1496 0690 02D7 016A 2A08 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:23 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:23","RfRaw":{"Data":"AA B1 06 1464 0668 02BC 0176 01CC 2ADA 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:24 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:24","RfRaw":{"Data":"AA B1 05 1496 0690 02D2 016C 2B70 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:24 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:24","RfRaw":{"Data":"AA B1 06 145A 06FE 02BC 0177 01CC 2AEE 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:24 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:24","RfRaw":{"Data":"AA B1 05 1496 0690 02CD 0173 29CC 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:25 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:25","RfRaw":{"Data":"AA B1 06 145A 06F4 02BF 0178 01C9 2AF8 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:25 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:25","RfRaw":{"Data":"AA B1 05 14C8 0686 02D2 016E 2A3A 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:26 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:26","RfRaw":{"Data":"AA B1 06 145A 0708 02BA 0178 01D6 2A44 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:26 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:26","RfRaw":{"Data":"AA B1 05 14BE 0690 02CD 0175 29E0 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:27 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:27","RfRaw":{"Data":"AA B1 07 13C4 06FE 02BE 0178 0348 01CC 2AE4 0123232332232332233223323232323232323223323232233223233232323223323232232332322326 55"}} 10:44:27 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:27","RfRaw":{"Data":"AA B1 05 148C 05FA 02D2 0173 29E0 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:28 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:28","RfRaw":{"Data":"AA B1 07 1464 06FE 02BB 017A 0348 01CC 2AE4 0123232332232332233223323232323232323223323232233223233232323223323232232332322326 55"}} 10:44:28 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:28","RfRaw":{"Data":"AA B1 05 14C8 0690 02CD 0173 29D6 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:29 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:29","RfRaw":{"Data":"AA B1 06 13BA 06FE 02BF 0178 01D1 2AEE 0123232332232332233223323232323232323223323232233223233232323223323232232332322325 55"}} 10:44:29 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:44:29","RfRaw":{"Data":"AA B1 05 1496 05F0 02D4 016D 2A9E 0123232332232332233223323232323232323223323232233223233232323223323232232323233234 55"}} 10:44:44 CMD: rfraw 0 10:44:44 RSL: stat/tasmota8B6235/RESULT = {"RfRaw":"OFF"}

STOP _10:45:32 CMD: rfraw 177 10:45:32 RSL: stat/tasmota_8B6235/RESULT = {"RfRaw":"ON"} 10:45:32 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:32","RfRaw":{"Data":"AAA055"}} 10:45:34 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:34","RfRaw":{"Data":"AA B1 06 1446 06F4 02C8 0164 01D1 2A26 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:40 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:40","RfRaw":{"Data":"AA B1 06 1464 064A 02CC 0160 0136 2B52 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:43 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:43","RfRaw":{"Data":"AA B1 06 13D8 06CC 02CC 0166 012C 2ADA 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:44 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:44","RfRaw":{"Data":"AA B1 05 13EC 06B8 02D0 016A 2ABC 0123232332232332233223323232323232323223323232233223233232323223323223322332233224 55"}} 10:45:45 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:45","RfRaw":{"Data":"AA B1 06 1478 06CC 02C9 0166 0134 2A3A 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:46 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:46","RfRaw":{"Data":"AA B1 06 13D8 06CC 02CE 0166 0134 2ADA 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:48 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:48","RfRaw":{"Data":"AA B1 06 13E2 06CC 02CC 0167 0136 2AEE 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:49 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:49","RfRaw":{"Data":"AA B1 06 146E 06D6 02C9 0164 0133 2ADA 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:50 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:50","RfRaw":{"Data":"AA B1 06 1478 062C 02CF 0162 0133 2ADA 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:51 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:51","RfRaw":{"Data":"AA B1 05 1478 06CC 02CF 0164 2ADA 0123232332232332233223323232323232323223323232233223233232323223323223322332233224 55"}} 10:45:52 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:52","RfRaw":{"Data":"AA B1 06 1478 06D6 02C7 0160 0134 2B02 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:53 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:53","RfRaw":{"Data":"AA B1 06 13D8 06CC 02C9 0166 0133 2B3E 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:54 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:54","RfRaw":{"Data":"AA B1 06 146E 06D6 02D0 0161 0135 2A44 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:56 RSL: tele/tasmota_8B6235/RESULT = {"Time":"2020-11-20T10:45:56","RfRaw":{"Data":"AA B1 06 146E 06D6 02D0 0163 0135 2A44 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:45:57 RSL: tele/tasmota8B6235/RESULT = {"Time":"2020-11-20T10:45:57","RfRaw":{"Data":"AA B1 06 146E 06D6 02CF 0161 0133 2A44 0123232332232332233223323232323232323223323232233223233232323223323223322332233225 55"}} 10:46:04 CMD: rfraw 0