Operation Mode; Command Injection Mode; Message Sending; Sending A Message (Ascii-Format) Via Rs-232 - Lightware RAP-B511-EU User Manual

Room automation panel
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.19.6. RS-232 Operation Mode
Command and Response
SET·/MEDIA/UART/P1.Rs232Mode=<rs232_mode>
ç
pw·/MEDIA/UART/P1.Rs232Mode=<rs232_mode>
æ
Parameters
Identifier
Parameter description
<rs232_mode>
RS-232 operation mode 0: Disconnect
Example
ç SET /MEDIA/UART/P1.Rs232Mode=1
æ pw /MEDIA/UART/P1.Rs232Mode=1

INFO:
See more information about RS-232 modes in the
7.19.7. Command Injection Mode
Command and Response
SET·/MEDIA/UART/P1.CommandInjectionEnable=<CI_enable>
ç
pw·/MEDIA/UART/P1.CommandInjectionEnable=<CI_enable>
æ
Parameters
true: Command injection enable
false: Command injection disable
Example
ç SET /MEDIA/UART/P1.CommandInjectionEnable=true
æ pw /MEDIA/UART/P1.CommandInjectionEnable=true
ATTENTION!

The Command injection status is stored in another read-only property: /MEDIA/UART/
P1.CommandInjectionStatus.
Parameter values
1: Control
2: Command injection
Settings for Other Interfaces
section.
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
RAP-B511 series – User's Manual
7.20. RS-232 Message Sending
7.20.1. Sending a Message (ASCII-format) via RS-232
The command is for sending a command message in ASCII-format. This method allows escaping the control
characters. For more information see the
Command and Response
#message
ç CALL·/MEDIA/UART/P1:sendMessage(<message>)
æ mO·/MEDIA/UART/P1:sendMessage
Example
ç CALL /MEDIA/UART/P1:sendMessage(PWR0)
æ mO /MEDIA/UART/P1:sendMessage
The 'PWR0' message is sent out via the P1 serial port.
7.20.2. Sending a Text (ASCII-format) via RS-232
The command is for sending a command message in ASCII-format. This method does not require escaping
the control and non-printable characters.
Command and Response
ç CALL·/MEDIA/UART/P1:sendText(<message>)
æ mO·/MEDIA/UART/P1:sendText
Example
ç CALL /MEDIA/UART/P1:sendText(open)
æ mO /MEDIA/UART/P1:sendText
The 'open' text is sent out via the P1 serial port.
7.20.3. Sending a Binary Message (HEX-format) via RS-232
The command is for sending a binary message in Hexadecimal format. This method does not require escaping
the control and non-printable characters.
Command and Response
ç CALL·/MEDIA/UART/P1:sendBinaryMessage(<message>)
æ mO·/MEDIA/UART/P1:sendBinaryMessage
Example
ç CALL /MEDIA/UART/P1:sendBinaryMessage(433030)
æ mO /MEDIA/UART/P1:sendBinaryMessage
The '433030' message is sent out via the P1 serial port.
Escaping
section.
96

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