Hi All,
I am using StreamDevice with Asyn TCP connection to control a power supply.
I have some periodic read (power ON/OFF or Ready/Fault or Local/distant)
and commands (switch power ON/OFF or reset) can be send asynchronously.
My problem is that periodic reads are disturbed because they also
receives the strings of the asynchronous commands.
In such case the record goes temporarily into CALC INVALID state.
Following is the message I can have when I issue Power ON command (the
record reading the local/distant status is disturbed)
TCP_BPI TST-BPI:Ctrl: Input "DCP=1" mismatch after 0 bytes
TCP_BPI TST-BPI:Ctrl: got "DCP=1" where "REM/" was expected
How could I have the periodic read not being disturbed by asynchronous
commands ?
thanx in advance for your help.
here is an example of my records/protocol:
#####################################################
record(bi, "$(EQPT):Ctrl") {
field(SCAN, "1 second")
field(DTYP, "stream")
field(INP, "@alimISrc_SerialProtocol.db getRem TCP_BPI")
field(ZNAM, "LOCAL")
field(ONAM, "DISTANT")
}
getRem{
out "REM/";
in "REM/%u";
}
#####################################################
record(bo, "$(EQPT):PwrCmdOut") {
field(SCAN, "Passive")
field(DTYP, "stream")
field(OUT, "@alimISrc_SerialProtocol.db setPwr TCP_BPI")
field(ZNAM, "OFF")
field(ONAM, "ON")
}
setPwr{
out "%{DCP=0|DCP=1}";
}
#####################################################