7. LW3 Programmers’ Reference
UMX-HDMI-140 series– User's Manual
91
Applied firmware package: v1.2.0 | LDC software: v2.4.1b7
7.10.
RS-232 Recognizer
DIFFERENCE:
This feature is available only in
UMX-HDMI-140-Plus
model.
This tool is able to recognize the incoming RS-232 message. It stores the incoming serial data from the
first bit, until the previously defined string (delimiter) or the elapsing timeout after the last bit. The last
incoming serial string is saved in different formats (string, hex, and hash).
#recognizer #rs232recognizer
#rs-232recognizer
7.10.1.
Enable the Recognizer
ç
SET·/MEDIA/UART/P1.RecognizerEnable=
<logical_value>
æ
pw·/MEDIA/UART/P1.RecognizerEnable=
<logical_value>
Parameters
Parameter
Parameter description
Value
Parameter value
<logical_value>
Recognizer enable/
disable setting
true
Enabled
false
Disabled
Example
ç
SET /MEDIA/UART/P1.RecognizerEnable=true
æ
pw /MEDIA/UART/P1.RecognizerEnable=true
7.10.2.
Set the Delimiter Hex
When the delimiter hex string is detected in the incoming serial
data, the device saves the RS-232 message data from the first
bit, until the delimiter (or the data between the two delimiter).
ç
SET·/MEDIA/UART/RECOGNIZER.DelimiterHex=
<delimiter
>
æ
pw·/MEDIA/UART/RECOGNIZER.DelimiterHex=
<delimiter>
Parameters
<delimiter>
It can be max. 8-character long (or 16 hex digit) in
hex
format.
Example
ç
SET /MEDIA/UART/RECOGNIZER.DelimiterHex=3a
æ
pw /MEDIA/UART/RECOGNIZER.DelimiterHex=3a
... Password :
Login name :
...
Delimiter (hex format: 3A)
Stored string
7.10.3.
Set the Timeout
When the set time is elapsed after the last received message, the device saves the data. It can be applied,
when there is no special or easily defined delimiter string in the incoming serial data, but there is a time gap
between the messages.
ç
SET·/MEDIA/UART/RECOGNIZER.TimeOut=
<timeout>
æ
pw·/MEDIA/UART/RECOGNIZER.TimeOut=<
timeout>
Parameters
<timeout>
Timeout value in ms.;
0
: disable the timeout; minimum value: 10.
Example
ç
SET /MEDIA/UART/RECOGNIZER.TimeOut=20
æ
pw /MEDIA/UART/RECOGNIZER.TimeOut=20
7.10.4.
Clear the Stored Last Recognized Serial Message
This method deletes all the stored received serial messages.
Command and Response
ç
CALL·/MEDIA/UART/RECOGNIZER:clear()
æ
mO·/MEDIA/UART/RECOGNIZER:clear
Example
ç
CALL /MEDIA/UART/RECOGNIZER:clear()
æ
mO /MEDIA/UART/RECOGNIZER:clear