Dear All,
I am trying to connect a softIOC using asyn and StreamDevice to a wti console server, which has a serial connection to a LakeShore325.
I am able to telnet to the wti and communicate with the LakeShore. I am also able to connect the softIOC to other devices and send messages.
There seems to be some issue between asyn and the wti, which is serving a standard telnet connection.
The protocol file is:
ExtraInput = Ignore;
ReplyTimeout = 2000;
Terminator = CR LF;
getID {
out "*IDN?";
in "%s";
@init {out "*IDN?"; in "%s";}
}
Below is a log snippet from asyn. It seems to read the following data then timeout:
<ff>?<18><ff>?
Any help would be greatly appreciated.
Thank you,
Hawi
asyn log:
2020/11/20 13:25:25.278974 LS325_IP AsynDriverInterface.cc:969: AsynDriverInterface::readHandler(top:TC1:ID): device is now connected
2020/11/20 13:25:25.278983 LS325_IP AsynDriverInterface.cc:1007: AsynDriverInterface::readHandler(top:TC1:ID): received 1 of 1 bytes "<ff>" eomReason=CNT
2020/11/20 13:25:25.278994 LS325_IP StreamCore.cc:953: StreamCore::readCallback(top:TC1:ID, status=StreamIoSuccess input="<ff>", size=1)
2020/11/20 13:25:25.279011 LS325_IP StreamCore.cc:1009: StreamCore::readCallback(top:TC1:ID) inputBuffer="<ff>", size 1
2020/11/20 13:25:25.279023 LS325_IP StreamCore.cc:1054: StreamCore::readCallback(top:TC1:ID) inTerminator <0d><0a> not found
2020/11/20 13:25:25.279031 LS325_IP StreamCore.cc:1090: StreamCore::readCallback(top:TC1:ID) wait for more input
2020/11/20 13:25:25.279062 LS325_IP AsynDriverInterface.cc:1133: AsynDriverInterface::readHandler(top:TC1:ID) readMore=-1 bytesToRead=63
2020/11/20 13:25:25.279072 LS325_IP AsynDriverInterface.cc:955: AsynDriverInterface::readHandler(top:TC1:ID): ioAction=Read read(..., bytesToRead=63, ...) [timeout=0.1 sec]
2020/11/20 13:25:25.379257 LS325_IP AsynDriverInterface.cc:962: AsynDriverInterface::readHandler(top:TC1:ID): read returned asynTimeout: ioAction=Read received=11, eomReason=NONE, buffer="?<18><ff>? <ff>?#<ff>?'"
2020/11/20 13:25:25.379297 LS325_IP AsynDriverInterface.cc:969: AsynDriverInterface::readHandler(top:TC1:ID): device is now connected
2020/11/20 13:25:25.379307 LS325_IP AsynDriverInterface.cc:1069: AsynDriverInterface::readHandler(top:TC1:ID): ioAction=Read, timeout [0.1 sec] after 11 of 63 bytes "?<18><ff>? <ff>?#<ff>?'"
2020/11/20 13:25:25.379322 LS325_IP StreamCore.cc:953: StreamCore::readCallback(top:TC1:ID, status=StreamIoTimeout input="?<18><ff>? <ff>?#<ff>?'", size=11)
2020/11/20 13:25:25.379332 LS325_IP StreamCore.cc:1009: StreamCore::readCallback(top:TC1:ID) inputBuffer="<ff>?<18><ff>? <ff>?#<ff>?'", size 12
2020/11/20 13:25:25.379342 LS325_IP StreamCore.cc:1054: StreamCore::readCallback(top:TC1:ID) inTerminator <0d><0a> not found
2020/11/20 13:25:25.379355 LS325_IP top:TC1:ID: Timeout after reading 12 bytes "<ff>?<18><ff>"
2020/11/20 13:25:25.379373 LS325_IP StreamCore.cc:1119: StreamCore::readCallback(top:TC1:ID) input line: "<ff>?<18><ff>? <ff>?#<ff>?'"
2020/11/20 13:25:25.379393 LS325_IP StreamCore.cc:1209: StreamCore::matchInput(top:TC1:ID): format = "%s"
2020/11/20 13:25:25.379408 LS325_IP StreamEpics.cc:522: streamScanfN(top:TC1:ID,format=%s,maxStringSize=40)
2020/11/20 13:25:25.379428 LS325_IP StreamCore.cc:1536: StreamCore::scanValue(top:TC1:ID, format=%s, char*, maxlen=40) input="<ff>?<18><ff>? <ff>?#<ff>?'"
2020/11/20 13:25:25.379447 LS325_IP StreamCore.cc:1550: StreamCore::scanValue(top:TC1:ID) scanned "<ff>?<18><ff>?<00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00><00>"
2020/11/20 13:25:25.379457 LS325_IP StreamEpics.cc:531: streamScanfN(top:TC1:ID) success, value="<ff>?<18><ff>?"
2020/11/20 13:25:25.379466 LS325_IP StreamCore.cc:513: starting exception handler