1 Commits
0.0.1 ... main

Author SHA1 Message Date
0e66852b2f Ignore extra input, more comments to protocol 2025-12-05 09:44:16 +01:00

View File

@@ -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";
}