Setting The Message Header; Sending A Post Message; Sending A Put Message; Tcp Message Recognizer - Lightware UMX-TPS-TX120 User Manual

Hdbaset multimedia extender
Hide thumbs Also See for UMX-TPS-TX120:
Table of Contents

Advertisement

 
7. LW3 Programmers' Reference
7.15.4. Setting the Message Header
Command and Response
SET·/CTRL/HTTP/C1.Header=<header_text>
ç
pw·/CTRL/HTTP/C1.Header=<header_text>
æ
Example
ç SET /CTRL/HTTP/C1.Header=Host: 192.168.0.220\r\nContent-Type: text/xml\r\nAuthorization: Basic
YWRtaW46TGlnaHR3YXJlMDE=
æ pw /CTRL/HTTP/C1.Header=Host: 192.168.0.220\r\nContent-Type: text/xml\r\nAuthorization: Basic
YWRtaW46TGlnaHR3YXJlMDE=
7.15.5. Sending a Post Message
Command and Response
ç CALL·/CTRL/HTTP/C1:post(<body_text>)
æ mO·/CTRL/HTTP/C1:post
Example
ç CALL /CTRL/HTTP/C1:post(<Command><Message><Send><Text>LI1R_P</Text></Send></
Message></Command>)
æ mO /CTRL/HTTP/C1:post
7.15.6. Sending a Put Message
Command and Response
ç CALL·/CTRL/HTTP/C1:put(<body_text>)
æ mO·/CTRL/HTTP/C1:put
Example
ç CALL /CTRL/HTTP/C1:put(<Command><Message><Send><Text>LI1R_P</Text></Send></Message></
Command>)
æ mO /CTRL/HTTP/C1:put
Applied firmware packages: (UMX-TPS): v1.5.0b4 | (WP-UMX-TPS): v1.4.0b8 | (FP-UMX-TPS): v1.4.0b8 | LDC software: v2.5.6b2
UMX-TPS-TX100 series – User's Manual
7.16. TCP Message Recognizer
DIFFERENCE:

This feature is available only in UMX-TPS-TX140K and TX140-Plus models from FW
package v1.5.0b4.
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
*
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.
7.16.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
ActiveProperty
MESSAGE
MESSAGE
TimeOut
saved in Rx property
saved in ActiveRx property
Timeout
127
ActiveRx property is cleared
ActiveRx property is cleared
Time

Advertisement

Table of Contents
loading

This manual is also suitable for:

Umx-tps-tx130Umx-tps-tx140Umx-tps-tx140kUmx-tps-tx140-plusFp-umx-tps-tx120Fp-umx-tps-tx130 ... Show all

Table of Contents