# A protocol file for a E+E EE31 rhT sensor # Its a binary protocol Terminator = ''; ReplyTimeout = 3000; LockTimeout = 5000; ReadTimeout = 2000; MaxInput = 15; # Remove if we can fix the occasional null byte being sent #ExtraInput = Ignore; # unsolicited weight message fetch_rht { # First 2 bytes addr, 0 in our case # 3rd byte is command, fetch rht values # 4th byte length of message, 2 bytes # 5th and 6th byte, data. For this case it is 1 out 0x00 0x00 0x67 0x02 0x00 0x01 0x6a; # First 2 bytes is address # 0xca8b is the unit at neutra # 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 # 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 "%(\$1:UNIT-NUMBER)2r" 0x67 0x0A 0x06 0x00 "%(A)#R%(B)#R%"; }