Over Tps Commands; Sending Data In Text Format; Sending Data In Binary Format - Lightware MX-FR9 User Manual

Hybrid modular multimedia matrix
Hide thumbs Also See for MX-FR9:
Table of Contents

Advertisement

 
7. Programmer's Reference
7.13. RS-232 over TPS Commands
INFO:

The control interfaces on the router (USB, IP and RS232) have 57600 bit/sec maximum bandwidth,
so heavy traffic should be avoided.
ATTENTION!

If the endpoint (the controlled device) sends more than 54 bytes at once without at least
100ms break between the data packets then the sent data could be lost.
Important Notices
Maximum 128 bytes of data can be sent and 64 bytes of data can be received at once.
There are two methods for sending data: ASCII and binary modes.
The data rate can be 9600, 14400, 19200, 38400, 57600 baud. The number of the stop bit(s) and the
parity can be set up as well.
If the TPS link operation is HDBaseT (and not long reach) mode and if there is no video signal
transmission, then the link can only operate on 9600 baud data rate.
The communication parameters are not detected automatically, so the right values must be set for
both the input and the output boards.
7.13.1. Sending Data in Text Format
Sends the data from the matrix's input or output port in text format, which is after the equation mark.
Command and Response
ȩ {:S#<in2/out2>@<S>I/O=<ascii_text>}
Ȩ No response from the matrix
Example
ȩ {:s#9@so=Blind text\r\n}
Ȩ No response from the matrix
'Blind text' with CrLf is sent out on the 9th output. The matrix does not respond. If the remote controlled
device responds, the matrix is able to receive and show it.
Parameters
Identifier
Parameter Description
<in2>/<out2> Input or output port number Output number in 1- or 2-digit ASCII format (01, 3, 04 etc.)
<I/O>
Input or output port type
<ascii_text> ASCII text
Important Notices about the Escape Characters
The text may contain any characters except '{' and '}', which are used for command framing. The following
escape sequences are supported: \r (carriage return); \n (new line); \t (bs); \x [hex code].
Parameter Values
I = input, O = output
Text to be sent
Applied CPU2 firmware: v3.5.7b8 | LDC software: v2.5.17b2
MX-FR Series Modular Matrix Frames – User's Manual
Example
Send the {power on}\r\n string to the second output:
ȩ {:S#2@SO=\x7Bpower on\x7D\r\n}
It is possible to send the real characters (new line-carriage return) instead of \r\n, but curly brackets must
be escaped. Other characters can also be escaped if it is preferred:
ȩ {:S#1@SO=\x7Bpower\x20on\x7D\r\n}
7.13.2. Sending Data in Binary Format
Sends the data from the matrix's input or output port in binary format.
Command and Response
ȩ {:B#<in2/out2>@<S>I/O=<hex_string>}
Ȩ No response by the matrix
Example
ȩ {:b#9@so=0d0aad}
Ȩ No response by the matrix
'0D 0A AD is sent out on the 9th output. The matrix does not respond. If the remote controlled device
responds, the matrix is able to receive and show it.
Parameters
Identifier
<in2/out2>
Input or output port number Output number in 1- or 2-digit ASCII format (01, 3, 04 etc.)
<I/O>
Input or output port type
<hex_string> HEX string
Every 2 characters represent a hexadecimal code. The maximum length of the data is 64 characters, so the
max length of the string is 128 char. With this method, it is possible to send any special characters.
Receiving Data from the Far Endpoint
Every port can operate either in ASCII or Binary mode. The mode can be set up with the :SERIAL command,
see the next section. Depending on the selected mode, different messages are sent by the router when it
receives data from the far endpoint. These messages arrive from the router asynchronously without any
query command. (The router sends out the message immediately when the data is received). Thus, it may
happen that the message is inserted between another command from the controller and the response from
the router. The controller must be able to handle this case. For example, a simple switch:
Controller:
Router:
Router:
Parameter Description
Parameter Values
I = input, O = output
String to be sent
{2@3} //sending a switch command
(S#I3=Powered on) //asynchrony serial message
(O03 I02) //response to the switch command
143

Advertisement

Table of Contents
loading

Table of Contents