6. LW3 Programmers’ Reference
HDMI20-OPTC series – User's Manual
50
6.8. RS-232 Port Configuration
6.8.1. Querying the RS-232 Opearation Mode
Command format:
GET
●
/MEDIA/UART/<P
1
>.Rs232Mode
Response format:
pw
●
/MEDIA/UART/<P
1
>.Rs232Mode
Legend:
▪
0: Pass-through
▪
1: Control (local)
▪
2: Command injection (local)
Example:
˃
GET /MEDIA/UART/P1.Rs232Mode
˂
pw /MEDIA/UART/P1.Rs232Mode
6.8.2.
Setting the RS-232 Opearation Mode
Command format:
SET
●
/MEDIA/UART/<P
1
>.Rs232Mode=0|1|2
Response format:
pw
●
/MEDIA/UART/<P
1
>.Rs232Mode=0|1|2
Legend: See the previous legend.
Example:
˃
SET /MEDIA/UART/P1.Rs232Mode=1
˂
pw /MEDIA/UART/P1.Rs232Mode=1
6.8.3.
Setting the BAUD Rate
Command format:
SET
●
/MEDIA/UART/<P
1
>.Baudrate=0|1|2|3|4|5|6|7
Response format:
pw
●
/MEDIA/UART/<P
1
>.Baudrate=0|1|2|3|4|5|6|7
Parameters:
.Baudrate
0
1
2
3
4
5
6
7
BAUD rate value
4800
7200
9600
14400
19200
38400
57600
115200
Example:
˃
SET /MEDIA/UART/P1.Baudrate=2
˂
pw /MEDIA/UART/P1.Baudrate=2
6.8.4.
Setting the Databit
Command format:
SET
●
/MEDIA/UART/<P
1
>.DataBits=8|9
Response format:
pw
●
/MEDIA/UART/<P
1
>.DataBits=8|9
Example:
˃
SET /MEDIA/UART/P1.DataBits=8
˂
pw /MEDIA/UART/P1.DataBits=8
6.8.5.
Setting the Stopbits
Command format:
SET
●
/MEDIA/UART/<P
1
>.StopBits=0|1|2
Response format:
pw
●
/MEDIA/UART/<P
1
>.StopBits=0|1|2
Parameters:
.StopBits
0
1
2
Stopbit value
1
1,5
2
Example:
˃
SET /MEDIA/UART/P1.StopBits=0
˂
pw /MEDIA/UART/P1.StopBits=0
6.8.6.
Setting the Parity
Command format:
SET
●
/MEDIA/UART/<P
1
>.Parity=0|1|2
Response format:
pw
●
/MEDIA/UART/<P
1
>.Parity=0|1|2
Parameters:
.Parity
0
1
2
Parity setting
no parity
odd
even
Example:
˃
SET /MEDIA/UART/P1.Parity=0
˂
pw /MEDIA/UART/P1.Parity=0