From e8fda6cb6f963489773eefb8dc5b7f9f37873780 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 18 Jun 2023 18:16:19 -0500 Subject: [PATCH] beep --- components/ratgdo/ratgdo.cpp | 6 +++++- components/ratgdo/ratgdo.h | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/components/ratgdo/ratgdo.cpp b/components/ratgdo/ratgdo.cpp index 90c65b5..262177b 100644 --- a/components/ratgdo/ratgdo.cpp +++ b/components/ratgdo/ratgdo.cpp @@ -454,7 +454,11 @@ namespace ratgdo { { transmit(Command.DOOR_BEEP1); delay(40); - sendCommandAndSaveCounter(Command.DOOR_BEEP2); + transmit(Command.DOOR_BEEP1); + delay(40); + transmit(Command.DOOR_BEEP2); + delay(40); + sendCommandAndSaveCounter(Command.DOOR_BEEP3); } // Lock functions diff --git a/components/ratgdo/ratgdo.h b/components/ratgdo/ratgdo.h index d58e40c..b05d0e4 100644 --- a/components/ratgdo/ratgdo.h +++ b/components/ratgdo/ratgdo.h @@ -55,6 +55,7 @@ namespace ratgdo { cmd LOCK; cmd DOOR_BEEP1; cmd DOOR_BEEP2; + cmd DOOR_BEEP3; } cmds; const cmds Command = { @@ -68,8 +69,15 @@ namespace ratgdo { .DOOR2 = (cmd) { 0x200000000, 0x01009280 }, .LIGHT = (cmd) { 0x200000000, 0x00009281 }, .LOCK = (cmd) { 0x0100000000, 0x0000728c }, - .DOOR_BEEP1 = (cmd) { 0, 0x000b11a1 }, - .DOOR_BEEP2 = (cmd) { 0, 0x000c61a1 }, + .DEEP_BEEP1 = (cmd) { 0x400000000, 0x0000f10a }, + .DOOR_BEEP2 = (cmd) { 0, 0x000b11a1 }, + .DOOR_BEEP3 = (cmd) { 0, 0x000c61a1 }, + // At auto close + // [18:09:45][V][ratgdo:098]: command: cmd=040a nibble=01 byte1=00 byte2=00 fixed=c4a3d2c00a data=0000f10a Timer == 0 + // [18:09:45][V][ratgdo:098]: command: cmd=040a nibble=01 byte1=00 byte2=00 fixed=c4a3d2c00a data=0000f10a Timer == 0 + // [18:09:45][V][ratgdo:098]: command: cmd=00a1 nibble=01 byte1=0b byte2=00 fixed=c0a3d2c00a data=000b11a1 close1? + // [18:09:53][V][ratgdo:098]: command: cmd=00a1 nibble=01 byte1=0c byte2=00 fixed=c0a3d2c00a data=000c61a1 close2? + // [18:09:54][V][ratgdo:098]: command: cmd=0081 nibble=05 byte1=60 byte2=42 fixed=c0a3d2c00a data=4260c581 status // command: cmd=040a nibble=01 byte1=01 byte2=e0 fixed=c4a3d2c00a data=e001010a // time = (byte1 << 8) | byte2; // .AUTO_CLOSE = (cmd) { 0x0400000000, 0x0000010a },