From 0e66852b2f044dbd2e278c4fff99c5887327b997 Mon Sep 17 00:00:00 2001 From: soederqvist_a Date: Fri, 5 Dec 2025 09:44:16 +0100 Subject: [PATCH] Ignore extra input, more comments to protocol --- db/epluse.proto | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/db/epluse.proto b/db/epluse.proto index f08e278..cbd26ac 100644 --- a/db/epluse.proto +++ b/db/epluse.proto @@ -3,6 +3,8 @@ Terminator = ''; ReplyTimeout = 3000; +# Remove if we can fix the occasional null byte being sent +ExtraInput = Ignore # unsolicited weight message fetch_rht { @@ -14,13 +16,16 @@ fetch_rht { out 0x00 0x00 0x67 0x02 0x00 0x01 0x6a; # First 2 bytes is address # 0xca8b is the unit at neutra - # command - # length - # ack + # 0x67 command + # 0x0A length + # 0x06 ack # 0x00, unknown what this is # 2 ieee_754 floats. # Read exactly one char, but drop it. crc8 + # The device sometimes adds an extra 0x00 at the end...weird - # this is handled with ?c command + # I try to handle this with with ?*c command, but it doesn't work + # Possibly check with Dirk sometime how to make this work, if possible + # For now ignore extra data in 0xca 0x8b 0x67 0x0A 0x06 0x00 "%(\$1:TEMP)#R%(\$1:RELHUM)#R%*c%*?1c"; }