Query The Last Recognized Serial Message; Set The Active Timeout; Infrared Port Configuration; Enable Command Injection Mode - Lightware RAP-B511-EU-K User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.11.6. Query the Last Recognized Serial Message (ActiveRx,
ActiveRxHex, ActiveHash)
The recognized data is stored in string, hex and hash format in a
temporary storage. They are erased when the Active Timeout elapsed.
TIPS AND TRICKS: When these properties are set as a condition
in the Event Manager, and the same strings follow each other, the
action will execute every occasion if the active timeout set properly.
Recognized data in string format
Ý GET·/MEDIA/UART/RECOGNIZER.ActiveRx
·
Ü pr
/MEDIA/UART/RECOGNIZER.ActiveRx=<recognized _string>
Parameters
<recognized _string>
Max. 12 byte-long recognized data string.
Example
Ý GET /MEDIA/UART/RECOGNIZER.ActiveRx
Ü pr /MEDIA/UART/RECOGNIZER.ActiveRx=Login:
Recognized data in hex format
Ý GET·/MEDIA/UART/RECOGNIZER.ActiveRxHex
Ü pr·/MEDIA/UART/RECOGNIZER.ActiveRxHex=
Parameters
<recognized _hex>
Recognized data in hex format.
Example
Ý GET /MEDIA/UART/RECOGNIZER.ActiveRxHex
Ü pr /MEDIA/UART/RECOGNIZER.ActiveRxHex= 4C6F67696E3A
Recognized data hash
Ý GET·/MEDIA/UART/RECOGNIZER.ActiveHash
Ü pr·/MEDIA/UART/RECOGNIZER.ActiveHash=
Parameters
<recognized _hash>
Fingerprint code, Max. 32 bit-long recognized data
hash.
Example
Ý GET /MEDIA/UART/RECOGNIZER.ActiveHash
Ü pr /MEDIA/UART/RECOGNIZER.ActiveHash= 2D8A5E38
7.11.7. Set the Active Timeout
This property is responsible for erasing the temporary storage
(ActiveRx, ActiveRxHex, ActiveHash) after the elapsing time. Default
value is 50ms.
SET·/MEDIA/UART/RECOGNIZER.ActivePropertyTimeout=<a_timeout>
Ý
pw·/MEDIA/UART/RECOGNIZER.ActivePropertyTimeout=<a_timeout>
Ü
Parameters
<a_timeout>
active timeout value (ms) between 0 and 255.
Example
Ý SET /MEDIA/UART/RECOGNIZER.ActivePropertyTimeout=255
Ü pw /MEDIA/UART/RECOGNIZER.ActivePropertyTimeout=255
7.12. Infrared Port Configuration
7.12.1. Enable Command Injection Mode
Command and Response
SET·/MEDIA/IR/S1.CommandInjectionEnable=<ci_status>
Ý
pw·/MEDIA/IR/S1.CommandInjectionEnable=<ci_status>
Ü
<recognized _hex>
Parameters
Identifier
<ci_status>
Example
Ý SET /MEDIA/IR/S1.CommandInjectionEnable=true
Ü pw /MEDIA/IR/S1.CommandInjectionEnable=true
<recognized _hash>
RAP-B511 series – User's Manual
Parameter description
Parameter values
IR port status
true: Enable
false: Disable
7.13. GPIO Port Configuration
7.13.1. Set the Direction of a GPIO Pin
Command and Response
SET·/MEDIA/GPIO/<gpio_port>.Direction=<dir>
Ý
pw·/MEDIA/GPIO/<gpio_port>.Direction=<dir>
Ü
Parameters
<dir>
I: input direction of the GPIO pin
O: output direction of the GPIO pin
Example
Ý SET /MEDIA/GPIO/P1.Direction=I
Ü pw /MEDIA/GPIO/P1.Direction=I
7.13.2. Set the Output Level of a GPIO Pin
Command and Response
SET·/MEDIA/GPIO/<gpio_port>.Output=<value>
Ý
pw·/MEDIA/GPIO/<gpio_port>.Output=<value>
Ü
Parameters
Identifier
Parameter description
<gpio_port>
GPIO port number
<value>
Value of the GPIO pin
Example
Ý SET /MEDIA/GPIO/P1.Output=H
Ü pw /MEDIA/GPIO/P1.Output=H
7.13.3. Toggle the Level of a GPIO Pin
It toggles between the high and low level of the chosen output port.
Command and Response
Ý CALL·/MEDIA/GPIO/<gpio_port>:toggle()
Ü pw·/MEDIA/GPIO/ <gpio_port>:toggle
Example
Ý CALL /MEDIA/GPIO/P1:toggle()
Ü mO /MEDIA/GPIO/P1:toggle
59
Parameter values
P1-P3
H: High level
L: Low level

Advertisement

Table of Contents
loading

Table of Contents