7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
96
Applied firmware package: v1.1.0b3b3 | LDC software: v2.5.1b5
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
Parameter values
<rs232_mode>
RS-232 operation mode
0
: Disconnect
1
: Control
2
: Command injection
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.
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
section.
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.