7. LW3 Programmers’ Reference
MODEX-F15-OPTS, MODEX-F15-OPTM series – User's Manual
68
7.10.
Sending Message via the Communication Ports
7.10.1.
Send Message via TCP Port
The device can be used for sending a message to a certain IP:port address. The feature allows controlling a
connected (third-party) device, below command is for sending an ASCII-format text message:
Command format
:
CALL
●
/MEDIA/ETHERNET.tcpText(<IP_address>”:”<port_no>”=”<message>)
Response format
:
mO
●
/MEDIA/ETHERNET:tcpText
Example
:
˃
CALL /MEDIA/ETHERNET.tcpText(192.168.0.20:5555=pwr_on)
˂
mO /MEDIA/ETHERNET:tcpText
Send HEX or BIN Message
Message can be sent in other formats by the following methods:
▪
tcpMessage
: sending in HEX format.
▪
tcpBinary
: sending in BIN format.
The command- and response formats are the same as above mentioned.
INFO: Use the udpMessage, udpText, and udpBinary commands to send a UDP message.
7.10.2.
Send Message via an RS-232 Port
The RS-232 ports can be used for sending a message to the other end of the serial channel. The feature
allows controlling a connected (third-party) device, below command is for sending an ASCII-format text
message:
Command format
:
CALL
●
/MEDIA/UART/<P
n
>.sendText(<message>)
Response format
:
mO
●
/MEDIA/UART/<Pn>:sendText
Example
:
˃
CALL /MEDIA/UART/P2.sendText(pwr_on)
˂
mO /MEDIA/UART/P2:sendText
Send Message in HEX or BIN Format
Message can be sent in other formats by the following methods:
▪
sendMessage
: sending in HEX format.
▪
sendBinaryMessage
: sending in BIN format.
7.11. Infrared Port Configuration
7.11.1.
Command Injection Mode
Command format
:
SET
●
/MEDIA/IR/<S|D
n
>.CommandInjectionEnable=true|false
Response format
:
pw
●
/MEDIA/IR/<S|D
n
>.CommandInjectionEnable=true|false
Example
:
˃
SET /MEDIA/IR/S1.CommandInjectionEnable=true
˂
pw /MEDIA/IR/S1.CommandInjectionEnable=true
7.12.
EDID Management
7.12.1. Query the Emulated EDIDs
Command format
:
GET
●
/EDID.EdidStatus
Response format
:
pr
●
/EDID.EdidStatus=<E_loc>:<E
1
>;<E_loc>:<E
2
>;…;<E_loc>:<E
n
>
Example
:
˃
GET /EDID.EdidStatus
˂
pr EDID.EdidStatus=D1:E1
Explanation
:
Emulated EDID memory for input port is listed with the EDID number that is currently emulated on the input.
7.12.2. Query the Validity of a Dynamic EDID
Command format
:
GET
●
/EDID/D/D
n
.Validity
Response format
:
pr
●
/EDID/D/D
n
.Validity=true|false
Example
:
˃
GET /EDID/D/D1.Validity
˂
pr EDID/D/D1.Validity=true
Explanation
:
The ‘Validity’ property is true, valid EDID is stored in D1 memory place.