Hi we have a device that reads the following data over RS232
"000001 0000F9 0000 0000 0000 0000 0F 00 00<0d><0a>"
The data comes quite slowly, every 4 seconds (@ 9600 baud if I remember correctly) via a port server , we were using the following proto file (simplified version)
ReadTimeout = 1000;
Terminator = CR LF;
dose_rate {in "%x %*x %*x %*x %*x %*x %*x %*x %*x";}
This has been working well, but occasionally we get last character is missing.
StreamIoSuccess input="000001 00005A 0000 0000 0000 0000 0F 00 00<0d>", size=43)
Then catch it in the next buffer
.
StreamIoSuccess input="<0a>000001 00005A 0000 0000 0000 0000 0F 00 00<0d><0a>", size=45)
We have tried many combinations of the proto file, changing timeout, ignore extra input etc, putting everything into a long char buffer ,,,,,
Can anyone advise on the best protocol file entry to capture this type of data cleanly?
Steve