8. LW3 Programmers' Reference
MMX8x4-HT series – User's Manual
120
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
8.9. Serial Port Configuration
ATTENTION!
MMX8x4 series handles many serial ports. The following parameters can be set individually
on each port; the exact port numbering is listed in
section.
8.9.1.
Protocol Setting
Command and Response
#protcol
Ý
SET•/MEDIA/UART/
<serial_port>
.ControlProtocol=
<cont_protocol>
Ü
pw•/MEDIA/UART/
<serial_port>
.ControlProtocol=
<cont_protocol>
Parameters
Identifier
Parameter description
Parameter values
<serial_port>
Serial port number
P1-P10*
<cont_protocol>
Selected protocol
0
: LW2
1
: LW3
*The number of the ports depends on the model type. The exact port numbering is listed in
section.
Example
Ý
SET /MEDIA/UART/P1.ControlProtocol=1
Ü
pw
/MEDIA/UART/P1.ControlProtocol=1
8.9.2.
BAUD Rate Setting
Command and Response
#rs-232 #rs232
Ý
SET•/MEDIA/UART/
<serial_port>
.Baudrate=
<baudrate>
Ü
pw•/MEDIA/UART/
<serial_port>
.Baudrate=
<baudrate>
Parameters
Identifier
Parameter
description
Parameter values
<serial_port>
Serial port
number
P1-P10*
<baudrate>
Baud rate value
0
: 4800;
1
: 7200;
2
: 9600
3
: 14400;
4
: 19200;
5
: 38400
6
: 57600;
7
: 115200
*The number of the ports depends on the model type. The exact port numbering is listed in
section.
Example
Ý
SET /MEDIA/UART/P1.Baudrate=2
Ü
pw
/MEDIA/UART/P1.Baudrate=2
8.9.3.
Operation Mode Setting
Command and Response
Ý
SET•/MEDIA/UART/
<serial_port>
.Rs232Mode=
<rs232_mode>
Ü
pw•/MEDIA/UART/
<serial_port>
.Rs232Mode=
<rs232_mode>
Parameters
Identifier
Parameter description
Parameter values
<serial_port>
Serial port number
P1-P10*
<rs232_mode>
RS-232 operation mode
0
: Disconnect
1
: Control
2
: Command injection
*The number of the ports depends on the model type. The exact port numbering is listed in
section.
Example
Ý
SET /MEDIA/UART/P2.Rs232Mode=1
Ü
pw
/MEDIA/UART/P2.Rs232Mode=1
8.9.4.
Command Injection Mode
Command and Response
#commandinjection
Ý
SET•/MEDIA/UART/
<serial_port>
.CommandInjectionEnable=
<ci_stat>
Ü
pw•/MEDIA/UART/
<serial_port>
.CommandInjectionEnable=
<ci_stat>
Parameters
Identifier
Parameter description
Parameter values
<serial_port>
Serial port number
P1-P10*
<ci_enable>
Command injection status
true
: Command
injection enable
false
: Command
injection disable
*The number of the ports depends on the model type. The exact port numbering is listed in
section.
Example
Ý
SET /MEDIA/UART/P2.CommandInjectionEnable=true
Ü
pw
/MEDIA/UART/P2.CommandInjectionEnable=true
ATTENTION!
The Command injection status is stored in another read-only property which is True if
both above mentioned properties are set to the proper state; if so, Command injection mode is active:
/MEDIA/UART/
<serial_port>
.CommandInjectionStatus.