Files
epluse/db/epluse.proto

27 lines
768 B
Protocol Buffer

# A protocol file for a E+E EE31 rhT sensor
# Its a binary protocol
Terminator = '';
ReplyTimeout = 3000;
# 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
# command
# length
# 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
in 0xca 0x8b 0x67 0x0A 0x06 0x00 "%(\$1:TEMP)#R%(\$1:RELHUM)#R%*c%*?1c";
}