Skip to content

Commit

Permalink
Add support for newer Chuango DWC-102 close command (closes #2630)
Browse files Browse the repository at this point in the history
  • Loading branch information
zuckschwerdt committed Sep 20, 2023
1 parent be332c6 commit 76423bc
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions src/devices/chuango.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@
/**
Chuango Security Technology.
likely based on HS1527 or compatible
Likely based on HS1527 or compatible
Tested devices:
G5 GSM/SMS/RFID Touch Alarm System (Alarm, Disarm, ...)
DWC-100 Door sensor (Default: Normal Zone)
DWC-102 Door sensor (Default: Normal Zone)
KP-700 Wireless Keypad (Arm, Disarm, Home Mode, Alarm!)
PIR-900 PIR sensor (Default: Home Mode Zone)
RC-80 Remote Control (Arm, Disarm, Home Mode, Alarm!)
SMK-500 Smoke sensor (Default: 24H Zone)
WI-200 Water sensor (Default: 24H Zone)
- G5 GSM/SMS/RFID Touch Alarm System (Alarm, Disarm, ...)
- DWC-100 Door sensor (Default: Normal Zone)
- DWC-102 Door sensor (Default: Normal Zone)
- KP-700 Wireless Keypad (Arm, Disarm, Home Mode, Alarm!)
- PIR-900 PIR sensor (Default: Home Mode Zone)
- RC-80 Remote Control (Arm, Disarm, Home Mode, Alarm!)
- SMK-500 Smoke sensor (Default: 24H Zone)
- WI-200 Water sensor (Default: 24H Zone)
- newer DWC-102 additionally generates a cmd=12 signal on door/windows being closed
Note: simple 24 bit fixed ID protocol (x1527 style) and should be handled by the flex decoder.
Expand Down Expand Up @@ -58,7 +59,7 @@ static int chuango_callback(r_device *decoder, bitbuffer_t *bitbuffer)
case 0xF: cmd_str = "?"; break;
case 0xE: cmd_str = "?"; break;
case 0xD: cmd_str = "Low Battery"; break;
case 0xC: cmd_str = "?"; break;
case 0xC: cmd_str = "Closing"; break;
case 0xB: cmd_str = "24H Zone"; break;
case 0xA: cmd_str = "Single Delay Zone"; break;
case 0x9: cmd_str = "?"; break;
Expand Down

0 comments on commit 76423bc

Please sign in to comment.