Skip to content
  • There are no suggestions because the search field is empty.

How can OmniServer recognize square brackets in my data?

I am using OmniServer to read data in from my device?  Some of the characters in my data are square brackets, [ or ].  I have defined these in the message in my OmniServer protocol where they should be and my data stream from the device matches my protocol definition.  However, my data is still not recognized in the I/O Monitor and is blue instead of green.  How can I get these characters to be recognized by OmniServer?

In OmniServer, the square brackets are special characters that are used by OmniServer to indicate which sequences in the message should be included in Error Detection Code (EDC) calculations.  As such, OmniServer doesn't recognize square brackets by default.

In order to have OmniServer recognize square brackets, a backslash \ has to be placed in the message definition before each square bracket.  This effectively "escapes" the special character status of the square bracket, allowing OmniServer to see the square brackets in your data stream.