
7. LW3 Programmer's Reference
HDMI-TPS-RX220AK – User's Manual
93
Applied firmware package: v1.4.0 | LDC software: 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' message is sent out via the P1 serial port.
7.12.10.
Using Hexadecimal Codes
Hexadecimal codes can be inserted in the ASCII message when using:
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
: the message.
▪
\x
: indicates that the following is a hexadecimal code.
▪
0D
: the hexadecimal code (Carriage Return).
7.12.11.
Sending Pronto Hex Codes in Little-endian Format via IR Port
Command and Response
ç
CALL·/MEDIA/IR/
<out>
:sendProntoHex(
<hex_code>
)
æ
mO·/MEDIA/IR/
<out>
:sendProntoHex
Parameters
Identifier
Parameter description
Parameter values
<out>
Output port of the
Infrared interface
Local Infra output:
D1
; TPS Infra output:
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
length of the whole code in hexa format. If the code is deficient or duplicated, it causes syntax error.
For more details about the pronto hex codes see
section.
Example
ç
CALL /MEDIA/IR/D1:sendProntoHex(00006D0025000300A900A80015 003F00150 03F0
015003F0015001500150015001500150015001500150 0150015003F0015003F001500
3F00150015001500150 015001 500150015001500150015003F0015003F0015003F00150015001500
150015001500150015001500150015001500150015001500150015003F0015003F0015003F0015003
F0015003F0015000207A900A8001500150015006E0E)
æ
mO /MEDIA/IR/D1:sendProntoHex
TIPS AND TRICKS:
Download a code which belongs to your controlled device from a web database from
the Internet.