Working protocol it seems

This commit is contained in:
2025-10-27 14:59:13 +01:00
parent 944513673d
commit 34c079a78c
4 changed files with 9 additions and 6 deletions

View File

@@ -6,7 +6,10 @@ BUILDCLASSES=Linux
EPICS_VERSIONS=7.0.7
ARCH_FILTER=RHEL%
TEMPLATES += epluse.db
TEMPLATES += epluse.proto
REQUIRED+=asyn
REQUIRED+=stream
TEMPLATES += db/epluse.db
TEMPLATES += db/epluse.proto
SCRIPTS += epluse.cmd

View File

@@ -2,7 +2,7 @@ record(bo, "$(PREFIX):FETCH")
{
field(DTYP, "stream")
field(DESC, "Initialization parameters")
field(OUT,"@epluse_rht.proto fetch_rht($(PREFIX)) $(PORT) 0")
field(OUT,"@$(PROTO) fetch_rht($(PREFIX)) $(PORT) 0")
field(SCAN,"1 second")
}

View File

@@ -21,6 +21,6 @@ fetch_rht {
# 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%?c";
# this is handled with ?c command
in 0xca 0x8b 0x67 0x0A 0x06 0x00 "%(\$1:TEMP)#R%(\$1:RELHUM)#R%*c%*?1c";
}

View File

@@ -9,4 +9,4 @@ epicsEnvSet("PROTO", "$(epluse_DB)epluse.proto")
drvAsynIPPortConfigure("$(INSTR)-sps", "$(MOXA_ADDR)",0,0,0)
dbLoadRecords("$(epluse_DB)epluse.db", "PREFIX=SQ:$(INSTR), PORT=$(INSTR)-sps")
dbLoadRecords("$(epluse_DB)epluse.db", "PREFIX=SQ:$(INSTR), PROTO=$(PROTO), PORT=$(INSTR)-sps")