![Lightware MMX8x4-HT Series Скачать руководство пользователя страница 121](http://html1.mh-extra.com/html/lightware/mmx8x4-ht-series/mmx8x4-ht-series_user-manual_1915437121.webp)
8. LW3 Programmers' Reference
MMX8x4-HT series – User's Manual
121
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
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
section.
#message
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.
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)
tcpMessage command:
CALL /MEDIA/ETHERNET:tcpMessage(C00\x0D)
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
Parameter values
<ir_port>
IR port number
D1-D6*
<ir_port_staus>
IR port status
true
: Enable
false
: Disable
*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