Set The Delimiter Hex; Set The Timeout; Querying The Last Recognized Message (String); Querying The Last Recognized Message(Hex) - Lightware RAP-B511-EU User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.21.2. Set the Delimiter Hex
This property stores the delimiter that is between the messages (e.g. Cr, Lf, Space). The value has to be in
hex format (e.g.0D, 0A, 20).
Command and Response
SET·/MEDIA/UART/RECOGNIZER.DelimiterHex=<delimiter>
ç
pw·/MEDIA/UART/RECOGNIZER.DelimiterHex=<delimiter>
æ
Parameters
The
<delimiter>
parameter 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
7.21.3. Set the Timeout
When the set time is elapsed after the last received message and delimiter was not detected, the device
saves the data into the Rx, RxHex, Hash properties. The timeout setting is useful if there is no special or easily
defined delimiter in the incoming data, but there is a time gap between the messages.
Command and Response
SET·/MEDIA/UART/RECOGNIZER.TimeOut=<timeout>
ç
pw·/MEDIA/UART/RECOGNIZER.TimeOut=<timeout>
æ
Parameters
The
<timeout>
parameter sets the timeout value in milli seconds: 0 means the timeout is disabled, min.
value is 10.
Example
ç SET /MEDIA/UART/RECOGNIZER.TimeOut=20
æ pw /MEDIA/UART/RECOGNIZER.TimeOut=20
Delimiter (hex format: 3A)
... Password :
Login name :
...
Stored string
RAP-B511 series – User's Manual
7.21.4. Querying the Last Recognized Message (String)
The recognized message is stored as a string in the below property till the next recognized message or until
the RECOGNIZER.clear() method is called.

TIPS AND TRICKS:
follow each other, the action will execute once. (A Condition can be detected in Event Manager if a change
happens. But if the same string is saved into the property after each other, it will not cause a change.)
Command and Response
ç GET·/MEDIA/UART/RECOGNIZER.Rx
æ pr·/MEDIA/UART/RECOGNIZER.Rx=
Parameters
The
Example
ç GET /MEDIA/UART/RECOGNIZER.Rx
æ pr /MEDIA/UART/RECOGNIZER.Rx=Login:
7.21.5. Querying the Last Recognized Message(Hex)
Command and Response
ç GET·/MEDIA/UART/RECOGNIZER.RxHex
æ pr·/MEDIA/UART/RECOGNIZER.RxHex=
Parameters
The
Example
ç GET /MEDIA/UART/RECOGNIZER.RxHex
æ pr /MEDIA/UART/RECOGNIZER.RxHex=FF1F4C6F67696E3A
7.21.6. Clearing the Last Recognized Stored 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
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
When this property is set as a condition in the Event Manager, and the same strings
<recognized_string>
<recognized_string>
parameter can be max. 12 byte-long recognized data string.
<recognized_hex>
<recognized_hex>
parameter is the recognized data in hex format.
98

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rap-b511-kRap-b511-wRap-b511-sRap-b511-ukRap-b511-us

Table of Contents