7. LW3 Programmers’ Reference
MMX4x2 series – User's Manual
128
Applied firmware package: v1.6.0b19 | LDC software: v2.5.13b5
7.22.
Infrared Message Sending
DIFFERENCE:
This feature and the commands below are available from firmware v1.3.1.
7.22.1.
Sending Pronto Hex Codes in Little-endian Format via IR Port
Command and Response
ç
CALL·/MEDIA/IR/D1:sendProntoHex(
<hex_code>
)
æ
mO·/MEDIA/IR/D1:sendProntoHex
Parameters
Parameter
Parameter description
Values
Value description
<hex_code>
IR code in Pronto hex
format
Accepts a 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 the
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 that belongs to your controlled device from a web database from the
Internet. The downloaded codes are mostly in little-endian format.
7.22.2.
Sending Pronto Hex Codes in Big-endian Format via IR Port
Command and Response
ç
CALL·/MEDIA/IR/D1:sendProntoHexBigEndian(
<hex_code>
)
æ
mO·/MEDIA/IR/D1:sendProntoHexBigEndian
Parameters
Parameter
Parameter description
Values
Value description
<hex_code>
IR code in Pronto hex
format
Accepts a 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 the
section.
Example
ç
CALL /MEDIA/IR/D1:sendProntoHexBigEndian(0000006d0025000300a900a80015 003f0015003f0015
003f00150015001500150015001500150015001500150015003f0015003f0015003f001500150015001
50015001500150015001500150015003f0015003f0015 003f001500150015001500150015001500150
01500150015001 500150015001500150015003f0015003f0015003f0015003f0015 003f0015070200a
900a80015001500150e6e)
æ
mO /MEDIA/IR/D1:sendProntoHexBigEndian
IR code Learning with a terminal program
Step 1.
Connect an IR detector to the IR input port.
Step 1.
Connect to the MMX-4x2 series device with a terminal program.
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 learned by the Lightware device is in
big-endian
format.