7. LW3 Programmers' Reference
7.13. CEC Command Sending
The device is able to send and receive Consumer Electronics Control (CEC) commands. This feature is for
remote controlling the source or sink device. CEC is a bi-directional communication via HDMI cable.
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
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 – Set the CEC.OsdString property
Command and Response
SET·/MEDIA/CEC/<port>.OsdString=<text>
ç
pw·/MEDIA/CEC/<port>.OsdString=<text>
æ
Parameters
Parameter
Parameter description
<port>
Video input or video
output port
<text>
The desired OSD string
Example
ç SET /MEDIA/CEC/I2.OsdString=Lightware
æ pw /MEDIA/CEC/I2.OsdString=Lightware
Step 2 – Call the CEC.send(set_osd) method
Command and Response
ç CALL·/MEDIA/CEC/<port>:send(set_osd)
æ mO·/MEDIA/CEC/I2:send
Parameters
The
<port>
parameters means the video input (I1-I4) or video output (O1-O2) port.
Example
ç CALL /MEDIA/CEC/I2:send(set_osd)
æ mO /MEDIA/CEC/I2:send
Values
Value description
I1-I4
Video inputs
O1-O2
Video outputs
Letters (A-Z) and (a-z), hyphen (-), underscore (_),
numbers (0-9), and dot (.). Max length: 14 characters.
Applied firmware package: v1.5.0b8 | LDC software: v2.3.0b1
MMX4x2 series – User's Manual
7.13.2. Sending a CEC Command in Text Format
Command and Response
ç CALL·/MEDIA/CEC/<port>:send(<command>)
æ mO·/MEDIA/CEC/<port>:send
Parameters
The
<port>
parameters means the video input (I1-I4) or video output (O1-O2) port. The followings are
accepted as <command>:
image_view_on
standby
down
left
contents_menu
favorite_menu
number_1
number_2
number_6
number_7
enter
clear
input_select
display_info
volume_up
volume_down
play
stop
fast_forward
eject
stop_record
pause_record
select_media_1
select_media_2
power_toggle
power_on
f2
f3
Example
ç CALL /MEDIA/CEC/I2:send(power_on)
æ mO /MEDIA/CEC/I2:send
7.13.3. Send CEC Command in Hexadecimal Format
ç CALL·/MEDIA/CEC/<port>:sendHex(<hex_code>)
æ mO·/MEDIA/CEC/<port>:sendHex
Parameters
Parameter
Parameter description
<port>
Video input or video output
port
<hex_code>
The desired CEC command
Example
ç CALL /MEDIA/CEC/I2:sendHex(8700E091)
æ mO /MEDIA/CEC/I2:sendHex
ok
back
up
right
root_menu
setup_menu
media_top_menu
media_context_menu number_0
number_3
number_4
number_5
number_8
number_9
dot
channel_up
channel_down
sound_select
power_legacy
page_up
page_down
mute_toggle
mute
unmute
pause
record
rewind
skip_forward
skip_backward
3d_mode
play_forward
play_reverse
select_next_media
select_media_3
select_media_4
select_media_5
power_off
stop_function
f1
f4
Values
Value description
I1-I4
Video inputs
Video outputs
O1-O2
Max. 30 character (15 byte) in hexadecimal format.
98
Need help?
Do you have a question about the MMX4x2-HDMI and is the answer not in the manual?