Sending A Udp Text (Ascii-Format); Sending A Udp Binary Message (Hex-Format); Tcp Message Recognizer; Setting The Ip Address Of The Tcp Server - Lightware MMX8x4-HT420M User Manual

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

Advertisement

 
8. LW3 Programmers' Reference
8.17.5. Sending a UDP Text (ASCII-format)
The command is for sending a text message in ASCII-format via UDP-protocol. This method does not allow
escaping or inserting control
characters.
Command and Response
ç CALL·/MEDIA/ETHERNET:udpText(<IP_address>:<port_no>=<text>)
æ mO·/MEDIA/ETHERNET:udpText
Example
ç CALL /MEDIA/ETHERNET:udpText(192.168.0.20:9988=open)
æ mO /MEDIA/ETHERNET:udpText
The 'open' text is sent to the indicated IP:port address.
8.17.6. Sending a UDP Binary Message (HEX-format)
The command is for sending a binary message in Hexadecimal format via UDP protocol. This method does
not require escaping or inserting control characters.
Command and Response
ç CALL·/MEDIA/ETHERNET:udpBinary(<IP_address>:<port_no>=<HEX_message>)
æ mO·/MEDIA/ETHERNET:udpBinary
Example
ç CALL /MEDIA/ETHERNET:udpBinary(192.168.0.20:9988=433030)
æ mO /MEDIA/ETHERNET:udpBinary
The '433030' 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.
#message
Applied firmware package: v1.3.0 | LDC software: v2.4.2
MMX8x4-HT series – User's Manual
8.18. TCP Message Recognizer
DIFFERENCE:

This feature and below commands are available from FW package v1.3.0.
This tool can be used to recognize messages coming from a TCP server. You can link an immediate
event Action that is run when a message is recognized, but you can also use it in Event manager.
#tcprecognizer
#message
Preparation
Step 1. Set a TCP client in the Lightware device (three TCP clients can be run at the same time), set the
properties of the target TCP server.
Step 2. Set the DelimiterHex and the TimeOut settings for the proper message processing
Step 3. Make sure the TCP/IP port is opened in the target device (think about Firewall settings in the network).
Step 4. Connect to the TCP server.
Working Method
A message got recognized from the incoming data, if one of the following occurs:
The set DelimiterHex is detected in the message, or
The set TimeOut has been elapsed since receiving the last data bit.
with delimiter
MESSAGE
with timeout
MESSAGE
TimeOut
*
no timeout,
MESSAGE
no delimiter
* In that case, the not-recognized data is kept in the memory (up to 128 bytes). If the DelimiterHex is detected
later, or the TimeOut parameter is set meanwhile, the data appears in the Rx, RxHex, Hash and ActiveRx,
ActiveRxHex, ActiveRxHash properties.
8.18.1. Setting the IP Address of the TCP Server
Command and Response
ç SET·/CTRL/TCP/C<loc>.ServerIP(<IP_address>)
æ pw·/CTRL/TCP/C<loc>.ServerIP(<IP_address>)
Parameters
The
<loc>
parameter can be 1, 2 or 3 as at most three TCP connections can be established at the same time.
Example
ç SET /CTRL/TCP/C1.ServerIP(192.168.1.14)
æ pw /CTRL/TCP/C1.ServerIP(192.168.1.14)
MESSAGE
MESSAGE
ActiveProperty
Delimiter
saved in Rx property
saved in ActiveRx property
Timeout
MESSAGE
MESSAGE
ActiveProperty
saved in Rx property
saved in ActiveRx property
Timeout
138
ActiveRx property is cleared
ActiveRx property is cleared
Time

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mmx8x4-ht400mcMmx8x8-hdmi-4k-aMmx8x8-hdmi-4k-a-usb20

Table of Contents