Sending Message Via The Communication Ports; Sending A Tcp Message (Ascii-Format) Via Tcp Port; Sending A Tcp Text (Ascii-Format) Via Tcp Port; Sending A Tcp Binary Message (Hex-Format) Via Tcp Port - Lightware UMX-TPS-TX100 Series User Manual

Hide thumbs Also See for UMX-TPS-TX100 Series:
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.11. Sending Message via the Communication Ports
7.11.1. Sending a TCP Message (ASCII-format) via TCP Port
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
7.11.2. Sending a TCP Text (ASCII-format) via TCP Port
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
Explanation
The 'pwr_on' text is sent to the indicated IP:port address.
Escaping
section.
Using Hexadecimal Codes
UMX-TPS-TX100 series – User's Manual
7.11.3. Sending a TCP Binary Message (HEX-format) via TCP Port
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
Explanation
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.
7.11.4. Sending UDP Message (ASCII-format) via TCP Port
The command is for sending a UDP message in ASCII-format. This method allows escaping the control characters.
For more information see the
section.
Command and Response
Î 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
92
section.

Advertisement

Table of Contents
loading

Table of Contents