I have a script that receives data from a serial link. The data is terminated with a CR/LF. I am using the rget command to read this data.
Unfortunately as part of the string received there is four consecutive null (00h) characters. When the script receives this sequence it stop processing further characters until my rgetchar (CR) is received.
e.g.
Text transmitted : "HELLO WORLD ^@^@^@^@ HOW ARE YOU?"
Text decoded by Procomm as incoming string: "HELLO WORLD"
I have tried manually sending the string and the same situation occurs.
I have examined the set nullsuppress option and it appeared to work on the first occasion, however it didn't appear to work on all occasions.
Any help will be much appreciated.
Unfortunately as part of the string received there is four consecutive null (00h) characters. When the script receives this sequence it stop processing further characters until my rgetchar (CR) is received.
e.g.
Text transmitted : "HELLO WORLD ^@^@^@^@ HOW ARE YOU?"
Text decoded by Procomm as incoming string: "HELLO WORLD"
I have tried manually sending the string and the same situation occurs.
I have examined the set nullsuppress option and it appeared to work on the first occasion, however it didn't appear to work on all occasions.
Any help will be much appreciated.