![Lightware 91540021 Скачать руководство пользователя страница 87](http://html.mh-extra.com/html/lightware/91540021/91540021_user-manual_1915315087.webp)
7.LW3Programmers’Reference
HDMI-TPS-RX110AY series – User's Manual
87
Appliedfirmwarepackage:v1.4.0 | LDCsoftware:v2.4.0b3
7.12.8.
Sending a Text (ASCII-format) via Serial Port
The command is for sending a command message in ASCII-format. This method
does not allow
sending
message with control and non-printable characters.
Command and Response
Î
CALL·/MEDIA/UART/
<port>
:sendText(
<message>
)
Í
mO·/MEDIA/UART/
<port>
:sendText
Example
Î
CALL/MEDIA/UART/P1:sendText(open)
Í
mO/MEDIA/UART/P1:sendText
The 'open' text is sent out via the P1 serial port.
7.12.9.
Sending a Binary Message (HEX-format) via Serial Port
The command is for sending a command message in Hexadecimal-format. This method
does not require
escaping
the control and non-printable characters.
Command and Response
Î
CALL·/MEDIA/UART/
<port>
:sendBinaryMessage(
<message>
)
Í
mO·/MEDIA/UART/
<port>
:sendBinaryMessage
Example
Î
CALL/MEDIA/UART/P1:sendBinaryMessage(433030)
Í
mO/MEDIA/UART/P1:sendBinaryMessage
The'433030'messageissentoutviatheP1serialport.
7.12.10.
Using Hexadecimal Codes
HexadecimalcodescanbeinsertedintheASCIImessagewhenusing:
sendMessage command:
CALL /MEDIA/UART/P1:sendMessage(C00\x0D)
tcpMessage command:
CALL /MEDIA/ETHERNET:tcpMessage(C00\x0D)
udpMessage command:
CALL /MEDIA/ETHERNET:udpMessage(C00\x0D)
▪
C00
:themessage.
▪
\x
:indicatesthatthefollowingisahexadecimalcode.
▪
0D
:thehexadecimalcode(CarriageReturn).
7.12.11.
Sending Pronto Hex Codes in Little-endian Format via IR Port
DIFFERENCE:
This feature is available only in HDMI-TPS-RX110AY-Plus model.
Command and Response
Î
CALL·/MEDIA/IR/
<output_port>
:sendProntoHex(
<hex_code>
)
Í
mO·/MEDIA/IR/
<output_port>
:sendProntoHex
Parameters
Identifier
Parameter description
Parameter values
<output_port>
Output port of the
Infrared interface
LocalInfraoutput:
D1
;TPSInfraoutput:
D2
<hex_code>
Pronto hex format
code
Accepts maximum 765 character-long code in hexadecimal
format (0-9; A-F; a-f) without space character in little-endian
system.
INFO:
This command can send exactly one pronto hex message. The header of the IR code contains the
lengthofthewholecodeinhexaformat.Ifthecodeisdeficientorduplicated,itcausessyntaxerror.
For more details about the pronto hex codes see
section.
Example
Î
CALL/MEDIA/IR/D1:sendProntoHex(00006D0025000300A900A80015003F0015003F0
015003F0015001500150015001500150015001500150 0150015003F0015003F001500
3F00150015001500150 015001 500150015001500150015003F0015003F0015003F00150015001500
150015001500150015001500150015001500150015001500150015003F0015003F0015003F0015003
F0015003F0015000207A900A8001500150015006E0E)
Í
mO/MEDIA/IR/D1:sendProntoHex
TIPSANDTRICKS:
Download a code which belongs to your controlled device from a web database from
the Internet.