Using Hexadecimal Codes; Message Recognizer; Enable The Recognizer - Lightware RAP-B511-EU User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.20.4. Using Hexadecimal Codes
Hexadecimal codes can be inserted in the ASCII message when using:
sendMessage command: CALL /MEDIA/UART/P1:sendMessage(C00\x0D)
tcpMessage command:
CALL /MEDIA/ETHERNET:tcpMessage(C00\x0D)
udpMessage command: CALL /MEDIA/ETHERNET:udpMessage(C00\x0D)
C00: the message.
\x: indicates that the following is a hexadecimal code.
0D: the hexadecimal code (Carriage Return).
RAP-B511 series – User's Manual
7.21. RS-232 Message Recognizer
DIFFERENCE:

This tool can be used to recognize messages coming from the RS-232 port. The message can be used as a
Condition in Event manager and define an Action for it.
Working Method
A message got recognized from the incoming data, if one of the following occurs:
* In that case, the not-recognized data is kept in the memory (up to 128 bytes). If the DelimiterHex is detected
later, or the TimeOut parameter is set meanwhile, the data appears in the Rx, RxHex, Hash and ActiveRx,
ActiveRxHex, ActiveRxHash properties.
7.21.1. Enable the Recognizer
Command and Response
ç
æ
Parameters
<serial_port>
<recognizer_enable>
Example
ç SET /MEDIA/UART/P1.RecognizerEnable=true
æ pw /MEDIA/UART/P1.RecognizerEnable=true
#recognizer
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
This feature and below commands are available from FW package v1.1.0b3.
The set DelimiterHex is detected in the message, or
The set TimeOut has been elapsed since receiving the last data bit.
MESSAGE
MESSAGE
with delimiter
Delimiter
MESSAGE
saved in Rx property
saved in ActiveRx property
MESSAGE
MESSAGE
with timeout
TimeOut
MESSAGE
saved in Rx property
saved in ActiveRx property
*
no timeout,
MESSAGE
no delimiter
SET·/MEDIA/UART/<serial_port>.RecognizerEnable=<recognizer_enable>
pw·/MEDIA/UART/<serial_port>.RecognizerEnable=<recognizer_enable>
Parameter
Parameter description
Values
Serial port number
P1, P2
Recognizer mode
true
false
#rs232recognizer
#rs-232recognizer
97
ActiveProperty
ActiveRx property is cleared
Timeout
ActiveProperty
ActiveRx property is cleared
Timeout
Time
Value description
Recognizer is enabled
Recognizer is disabled

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