7. LW3 Programmers’ Reference
UMX-HDMI-140 series– User's Manual
95
Applied firmware package: v1.2.0 | LDC software: v2.4.1b7
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
DIFFERENCE:
This feature is available only in
UMX-HDMI-140-Plus
model.
Command and Response
#infra #infrared #ir
ç
CALL·/MEDIA/IR/
<out>
:sendProntoHex(
<hex_code>
)
æ
mO·/MEDIA/IR/
<out>
:sendProntoHex
Parameters
Parameter
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.