
7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
59
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=
<recognized _hex>
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=
<recognized _hash>
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>
Parameters
Identifier
Parameter description
Parameter values
<ci_status>
IR port status
true
: Enable
false
: Disable
Example
Ý
SET /MEDIA/IR/S1.CommandInjectionEnable=true
Ü
pw /MEDIA/IR/S1.CommandInjectionEnable=true
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
Parameter values
<gpio_port>
GPIO port number
P1-P3
<value>
Value of the GPIO pin
H
: High level
L
: Low level
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