Ethernet Message Sending; Sending Message Via Tcp Port; Udp Message Sending Via Ethernet - Lightware MMX8x4-HT Series User Manual

Multiport matrix switcher
Hide thumbs Also See for MMX8x4-HT Series:
Table of Contents

Advertisement

 
8. LW3 Programmers' Reference
8.17. Ethernet Message Sending
8.17.1. Sending Message via TCP 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.
8.17.1.1. Sending a TCP Message (ASCII-format)
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/ETHERNET:tcpMessage(<IP_address>:<port_no>=<message>)
Ü mO•/MEDIA/ETHERNET:tcpMessage
Example
Ý CALL /MEDIA/ETHERNET:tcpMessage(192.168.0.103:6107=C00)
Ü mO /MEDIA/ETHERNET:tcpMessage
The 'C00' message is sent to the indicated IP:port address.
Example with HEX codes
Ý CALL /MEDIA/ETHERNET:tcpMessage(192.168.0.20:5555=C00\x0a\x0d)
Ü mO /MEDIA/ETHERNET:tcpMessage
The 'C00' message with CrLf (Carriage return and Line feed) is sent to the indicated IP:port address. The
\x sequence indicates the HEXA code; see more information in the
8.17.1.2. Sending a TCP Text (ASCII-format)
The command is for sending a text message in ASCII-format. This method does not allow escaping or inserting
control characters.
Command and Response
Ý CALL•/MEDIA/ETHERNET:tcpText(<IP_address>:<port_no>=<text>)
Ü mO•/MEDIA/ETHERNET:tcpText
Example
Ý CALL /MEDIA/ETHERNET:tcpText(192.168.0.103:6107=pwr_on)
Ü mO /MEDIA/ETHERNET:tcpText
The 'pwr_on' text is sent to the indicated IP:port address.
#message
Escaping
section.
Using Hexadecimal Codes
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
MMX8x4-HT series – User's Manual
8.17.1.3. Sending a TCP Binary Message (HEX-format)
The command is for sending a binary message in Hexadecimal format. This method does not allow escaping
or inserting control characters.
Command and Response
Ý CALL•/MEDIA/ETHERNET.tcpBinary(<IP_address>:<port_no>=<HEX_message>)
Ü mO•/MEDIA/ETHERNET:tcpBinary
Example
Ý CALL /MEDIA/ETHERNET:tcpBinary(192.168.0.103:6107=0100000061620000cdcc2c40)
Ü mO /MEDIA/ETHERNET:tcpBinary
The '0100000061620000cdcc2c40' message is sent to the indicated IP:port address.
INFO: There is no need to insert a space or other separator character between the binary messages.
8.17.2. UDP Message Sending via Ethernet
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.
8.17.2.1. Sending UDP Message (ASCII-format)
The command is for sending a UDP message in ASCII-format. This method allows escaping the control characters.
For more information see the
Command and Response
section.
Ý CALL•/MEDIA/ETHERNET:udpMessage(<IP_address>:<port_no>=<message>)
Ü mO•/MEDIA/ETHERNET:udpMessage
Example
Ý CALL /MEDIA/ETHERNET:udpMessage(192.168.0.103:6107=C00)
Ü mO /MEDIA/ETHERNET:udpMessage
The 'C00' message is sent to the indicated IP:port address.
Example with HEX codes
Ý CALL /MEDIA/ETHERNET:udpMessage(192.168.0.20:9988=C00\x0a\x0d)
Ü mO /MEDIA/ETHERNET:udpMessage
The 'C00' message with CrLf (Carriage return and Line feed) is sent to the indicated IP:port address. The \x
sequence indicates the HEXA code; see more information in the
Escaping
section.
Using Hexadecimal Codes
126
section.

Advertisement

Table of Contents
loading

Table of Contents