ZENNiO AVANCE Y TECNOLOGÍA www.zennio.com
14
2.2.3. SPECIAL CHARACTERS
As mentioned before, there is a set of special characters that can be added to
the defined frames to give them a greater a versatility, thus enabling the
generation and detection of a greater set of messages.
Besides, this type of characters intend to allow the utilization of regular
expressions in the frame definition.
Two groups can be distinguished: special characters for reception and special
characters for transmission and reception. Next, an explanation:
Special characters for reception: these characters can only be used in
the parameterization of frames that will be received through the serial
port; if they are used in the parameterization of frames to be sent, this
will generate an error message.
?1, ?2,… , ?9: the next 1, 2,…, 9 bytes will be ignored when
analyzing the frame.
Example: it is parameterized the sending of a “1” value through
the 1 bit communication objet number 2 if SKX receives the
following frame through the serial port: “AA?223”. The terminal
equipment starts sending frames, including the following:
“AA857D23”
SKX sends the corresponding object with a “1”
value, since the two bytes 857D are ignored, as it was specified
by parameter, and the fixed part of the frame matches the
parameterized one.
“AA112223”
same case as before. Now, SKX ignores the
bytes 1122.
“AA685AB923”
SKX Advance will not send the value of the
object, since the fixed part of the received frame does not match
the parameterized one. The device will ignore the 2 bytes that
follow AA (685A), as configured, and it will interpret B923 as the
fixed part of the frame and, as it does not match the defined 23,
the object number 2 will not send the “1” value.
**: it indicates that zero or more bytes of any value will appear
until finding the fixed part of the frame defined by parameter
(excluding the keys @h, @f, @1, @2). Therefore, the **
characters will represent the minimum set of characters found
before the detection of the constant part after **.
Example: it is parameterized the sending of the value “50”
through the 1 byte communication object number 41 when
receiving through the serial port the frame: “23**AB”. The
terminal equipment sends this: