Status propagation and checksum

This commit is contained in:
2026-04-16 08:24:39 +02:00
parent 9f40a89bae
commit 3d40f43540
2 changed files with 13 additions and 4 deletions
+12 -3
View File
@@ -1,20 +1,29 @@
record(bo, "$(PREFIX):FETCH")
record(calcout, "$(PREFIX):FETCH")
{
field(DTYP, "stream")
field(DESC, "Initialization parameters")
field(OUT,"@$(PROTO) fetch_rht($(PREFIX)) $(PORT) 0")
field(SCAN,"1 second")
field(CALC, "0")
field(OUT, "@$(PROTO) fetch_rht($(PREFIX)) $(PORT) 0")
field(SCAN, "1 second")
field(FLNK, "$(PREFIX):FANOUT")
}
record(fanout, "$(PREFIX):FANOUT") {
field(LNK1, "$(PREFIX):TEMP")
field(LNK2, "$(PREFIX):RELHUM")
}
record(ai, "$(PREFIX):TEMP")
{
field(DESC, "Temperature")
field(INP, "$(PREFIX):FETCH.A NPP MS")
field(EGU, "degC")
}
record(ai, "$(PREFIX):RELHUM")
{
field(DESC, "Relative Humidity")
field(INP, "$(PREFIX):FETCH.B NPP MS")
field(EGU, "%RH")
}
+1 -1
View File
@@ -30,5 +30,5 @@ fetch_rht {
# 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%<sum8>";
in 0xca 0x8b 0x67 0x0A 0x06 0x00 "%(A)#R%(B)#R%<sum8>";
}