
7. LW3 Programmer's Reference
HDMI-TPS-RX220AK – User's Manual
94
Applied firmware package: v1.4.0 | LDC software: v2.4.0b3
7.12.12.
Sending Pronto Hex Codes in Big-endian Format via IR Port
Command and Response
ç
CALL·/MEDIA/IR/
<out>
:sendProntoHexBigEndian(
<hex_code>
)
æ
mO·/MEDIA/IR/
<out>
:sendProntoHexBigEndian
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 big-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:sendProntoHexBigEndian(0000006d0025000300a900a80015 003f0015003f0015
003f00150015001500150015001500150015001500150015003f0015003f0015003f001500150015001
50015001500150015001500150015003f0015003f0015 003f001500150015001500150015001500150
01500150015001 500150015001500150015003f0015003f0015003f0015003f0015 003f0015070200a
900a80015001500150e6e)
æ
mO /MEDIA/IR/D1:sendProntoHexBigEndian
TIPS AND TRICKS:
Learning raw IR code with a terminal program:
Step 1.
Connect to the HDMI-TPS-RX220AK device with a terminal program (see the details in the
for the Terminal Application Usage
section).
Step 2.
Push the desired button of the remote control to scan the raw IR code.
Step 3.
Remove all the non-hexadecimal characters (e.g. spaces, h characters etc.) from the code.
The pronto hex code which learned by a Lightware device is big-endian format.
7.13.
Sending CEC Commands
INFO:
The hidden first 2 bytes of the CEC command is static, it refers to the logical address of the sender
and the addressee. When the port is input, it is always 04 (from TV to Playback device 1.)., when the port
is output, it is always 40 (from Playback device 1. to TV). Broadcast addressing is also possible (in this
case it is 0F or 4F).
#cec
Port Numbering
Video port type
Parameter
Video port
LW3 port number
Input
<port>
TPS in 1
I1
HDMI in 2
I2
Output
HDMI out 1
O1
HDMI out 2
O2
7.13.1.
Sending an OSD String
Sending the OSD string consists of two steps. First, set the
CEC.OsdString
property with the desired text, after
that, call the
CEC.send(set_osd)
method.
Step 1 – Setting the CEC.OsdString Property
Command and Response
ç
SET·/MEDIA/CEC/
<port>.
OsdString=
<text>
æ
pw·/MEDIA/CEC/
<port>
.OsdString=
<text>
Parameters
<text>
Letters (A-Z) and (a-z), hyphen (-), underscore (_), numbers (0-9), and dot (.). Max length: 14
characters.
Example
ç
SET /MEDIA/CEC/O1.OsdString=Lightware
æ
pw /MEDIA/CEC/O1.OsdString=Lightware
Step 2 – Call the CEC.send(set_osd) method
Command and Response
ç
CALL·/MEDIA/CEC/
<port>
:send(set_osd)
æ
mO /MEDIA/CEC/
<port>
:send
Example
ç
CALL /MEDIA/CEC/I1:send(set_osd)
æ
mO /MEDIA/CEC/I1:send