6. LW3 Programmers’ Reference
HDMI20-OPTC series – User's Manual
54
Sending Text Message
The command is for sending a text message in ASCII-format.
INFO: Escaping will not be processed using the
tcpText
command.
Command and Response
Ý
CALL•/MEDIA/ETHERNET:tcpText(
<IP_address>
:
<port_no>
=
<message>
)
Ü
mO•/MEDIA/ETHERNET:tcpText
Example
Ý
CALL /MEDIA/ETHERNET:tcpText(192.168.0.20:5555=pwr_on)
Ü
mO /MEDIA/ETHERNET:tcpText
Sending Binary Message
The command is for sending a binary message in HEX format.
Command and Response
Ý
CALL•/MEDIA/ETHERNET:tcpBinary(
<IP_address>
:
<port_no>
=
<message>
)
Ü
mO•/MEDIA/ETHERNET:tcpBinary
Example
Ý
CALL /MEDIA/ETHERNET:tcpBinary(192.168.0.20:5555=0100000061620000cdcc2c40)
Ü
mO /MEDIA/ETHERNET:tcpBinary
6.7.3. Sending Message via UDP Port
The device can be used for sending a message to a certain IP:port address. The three different commands
allow controlling the connected (third-party) devices.
Sending UDP Message
The command is for sending a command messages in ASCII-format with an option for escaping special
characters.
Command and Response
Ý
CALL•/MEDIA/ETHERNET:udpMessage(
<IP_address>
:
<port_no>
=
<message>
)
Ü
mO•/MEDIA/ETHERNET:udpMessage
Example
Ý
CALL /MEDIA/ETHERNET:udpMessage(192.168.0.20:5555=PWR0\x0d\x0a)
Ü
mO /MEDIA/ETHERNET:udpMessage
Escaping in the Message
When commands need to be separated by <CR><LF> charaters to be recognized by the controlled device,
then they need to be escaped. You can use the following format for escaping:
<command
1
><\x0d\x0a><command
2
><\x0d\x0a>...<command
n
><\x0d\x0a>
See more details in
section.
Sending Text Message
The command is for sending a text message in ASCII-format.
INFO: Escaping will not be processed using the
udpText
command.
Command and Response
Ý
CALL•/MEDIA/ETHERNET:udpText(
<IP_address>
:
<port_no>
=
<message>
)
Ü
mO•/MEDIA/ETHERNET:udpText
Example
Ý
CALL /MEDIA/ETHERNET:udpText(192.168.0.20:5555=pwr_on)
Ü
mO /MEDIA/ETHERNET:udpText
Sending Binary Message
The command is for sending a binary message in HEX format.
Command and Response
Ý
CALL•/MEDIA/ETHERNET:udpBinary(
<IP_address>
:
<port_no>
=
<message>
)
Ü
mO•/MEDIA/ETHERNET:udpBinary
Example
Ý
CALL /MEDIA/ETHERNET:udpBinary(192.168.0.20:5555=0100000061620000cdcc2c40)
Ü
mO /MEDIA/ETHERNET:udpBinary