
7. LW3 Programmers’ Reference
RAP-B511 series
– User's Manual
57
7.10. RS-232 Port Configuration
7.10.1.
Protocol Setting
Command and Response
Ý
SET·/MEDIA/UART/
P1
.ControlProtocol=
<cont_protocol>
Ü
pw
·
/MEDIA/UART/
P1
.ControlProtocol=
<cont_protocol>
Parameters
Identifier
Parameter description
Parameter values
<cont_protocol>
Selected protocol
0
: LW2
1
: LW3
Example
Ý
SET /MEDIA/UART/P1.ControlProtocol=1
Ü
pw /MEDIA/UART/P1.ControlProtocol=1
7.10.2.
BAUD Rate Setting
Command and Response
Ý
SET·/MEDIA/UART/
P1.Baudrate=
<baud_rate>
Ü
pw
·
/MEDIA/UART/
P1.Baudrate=
<baud_rate>
Parameters
Identifier
Parameter description
Parameter values
<baud_rate>
Baud rate
0
:
4800
;
1
:
7200
;
2
:
9600
3
:
14400
;
4
:
19200
;
5
:
38400
6
:
57600
;
7
:
115200
Example
Ý
SET /MEDIA/UART/P1.Baudrate=2
Ü
pw /MEDIA/UART/P1.Baudrate=2
7.10.3.
Databit Setting
Command and Response
Ý
SET·/MEDIA/UART/P1.DataBits=
<databit>
Ü
pw
·
/MEDIA/UART/P1.DataBits=
<databit>
Parameters
Identifier
Parameter description
Parameter values
<databit>
Databit
8
: 8
9
: 9
Example
Ý
SET /MEDIA/UART/P1.DataBits=8
Ü
pw /MEDIA/UART/P1.DataBits=8
7.10.4.
Stopbits Setting
Command and Response
Ý
SET·/MEDIA/UART/P1.StopBits=
<stopbit>
Ü
pw
·
/MEDIA/UART/P1.StopBits=
<stopbit>
Parameters
Identifier
Parameter description
Parameter values
<stopbit>
Stopbit
0
: 1
1
: 1,5
2
: 2
Example
Ý
SET /MEDIA/UART/P1.StopBits=0
Ü
pw /MEDIA/UART/P1.StopBits=0
7.10.5.
Parity Setting
Command and Response
Ý
SET·/MEDIA/UART/P1.Parity=
<parity>
Ü
pw
·
/MEDIA/UART/P1.Parity=
<parity>
Parameters
Identifier
Parameter description
Parameter values
<parity>
Parity
0
: no parity
1
: odd
2
: even
Example
Ý
SET /MEDIA/UART/P1.Parity=0
Ü
pw /MEDIA/UART/P1.Parity=0
7.10.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.10.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.