8. LW3 Programmers' Reference
ATTENTION! Do not forget to set the TCP/IP port setting which is individual for each RS-232 port and
stored in /MEDIA/UART/<serial_port>.CommandInjectionPort parameter.
8.9.5. Query the RS-232 Command Injection Port Number
Command and Response
Ý GET•/MEDIA/UART/<serial_port>.CommandInjectionPort
Ü pw•/MEDIA/UART/<serial_port>.CommandInjectionPort
Example
Ý GET /MEDIA/UART/P1.CommandInjectionPort
Ü pw /MEDIA/UART/P1.CommandInjectionPort=8001
8.10. Serial Port Messaging
8.10.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
Ý 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.
8.10.2. Sending a Text (ASCII-format) via RS-232
The command is for sending a command message in ASCII-format. This method does not allow escaping the
control 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.
Escaping
section.
#message
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
MMX8x4-HT series – User's Manual
8.10.3. Sending a Binary Message (HEX-format) via RS-232
The command is for sending a command message in Hexadecimal-format. This method does not allow
escaping the control 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.
8.10.4. Using Hexadecimal Codes
Hexadecimal codes can be inserted in the ASCII message when using:
sendMessage command: CALL /MEDIA/UART/P1:sendMessage(C00\x0D)
CALL /MEDIA/ETHERNET:tcpMessage(C00\x0D)
tcpMessage command:
udpMessage command: CALL /MEDIA/ETHERNET:udpMessage(C00\x0D)
▪
C00: the message.
\x: indicates that the following is a hexadecimal code.
▪
▪
0D: the hexadecimal code (Carriage Return).
8.11. IR Port Configuration
8.11.1. Enable the IR Port
Command and Response
#ir #infrared
SET•/MEDIA/IR/<ir_port>.Enable=<ir_port_staus>
Ý
pw•/MEDIA/IR/<ir_port>.Enable=<ir_port_staus>
Ü
Parameters
Identifier
Parameter description
<ir_port>
IR port number
<ir_port_staus>
IR port status
*The number of the ports depends on the model type. The exact port numbering is listed in
section.
Example
Ý SET /MEDIA/IR/D1.Enable=true
Ü pw /MEDIA/IR/D1.Enable=true
Parameter values
D1-D6*
true: Enable
false: Disable
Port Numbering
121