![Lightware MX2-16x16-DH-8DPi-A-R User Manual Download Page 90](http://html1.mh-extra.com/html/lightware/mx2-16x16-dh-8dpi-a-r/mx2-16x16-dh-8dpi-a-r_user-manual_1915446090.webp)
9. LW3 Programmers’ Reference
MX2-HDMI20 series – User's Manual
90
Applied firmware package: v1.7.0 | LDC software: v2.5.1b5
9.9.4.
Sending CEC Commands Towards the Sink
INFO: The hidden first 2x2 bit of the CEC command is static (always 40), it refers to the logical address of
the sender and the addressee.
4:
sender is a
Playback Device 1
. ;
4:
the addressee is the
TV
.
#cec
9.9.4.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/PORTS/
<out>
/CEC.OsdString=
<text>
Ü
pw·/MEDIA/PORTS/
<out>
/CEC.OsdString=
<text>
Parameters
The following characters are allowed in the text: Letters (A-Z) and (a-z), hyphen (-), underscore (_), numbers
(0-9), and dot (.). Max length: 14 characters.
Example
Ý
SET /MEDIA/PORTS/VIDEO/O1/CEC.OsdString=Lightware
Ü
pw /MEDIA/PORTS/VIDEO/O1/CEC.OsdString=Lightware
Step 2 – Calling the CEC.send(set_osd) Method
Command and Response
Ý
CALL·/MEDIA/PORTS/VIDEO/
<out>
/CEC:send(set_osd)
Ü
mO·/MEDIA/PORTS/VIDEO/
<out>
/CEC:send=OK
Example
Ý
CALL /MEDIA/PORTS/VIDEO/O1/CEC:send(set_osd)
Ü
mO /MEDIA/PORTS/VIDEO/O1/CEC:send=OK
9.9.4.2.
Sending a CEC Command in Text Format
Command and Response
#cec
Ý
CALL·/MEDIA/PORTS/VIDEO/
<out>
/CEC:send(
<command>
)
Ü
mO·/MEDIA/PORTS/VIDEO/
<out>
/CEC:send=OK
Example
Ý
CALL /MEDIA/PORTS/VIDEO/O1/CEC:send(power_on)
Ü
mO /MEDIA/PORTS/VIDEO/O1/CEC:send=OK
The followings are accepted as a
<command>
:
image_view_on
standby
ok
back
up
down
left
right
root_menu
setup_menu
contents_menu
favorite_menu
media_top_menu media_context_menu
number_0
number_1
number_2
number_3
number_4
number_5
number_6
number_7
number_8
number_9
dot
enter
clear
channel_up
channel_down
sound_select
input_select
display_info
power_legacy
page_up
page_down
volume_up
volume_down
mute_toggle
mute
unmute
play
stop
pause
record
rewind
fast_forward
eject
skip_forward
skip_backward
3d_mode
stop_record
pause_record
play_forward
play_reverse
select_next_media
select_media_1
select_media_2
select_media_3
select_media_4
select_media_5
power_toggle
power_on
power_off
stop_function
f1
f2
f3
f4
9.9.4.3.
Sending a CEC Command in Hexadecimal Format
Command and Response
Ý
CALL·/MEDIA/PORTS/VIDEO/
<out>
/CEC:sendHex(
<hex_command>
)
Ü
mO·/MEDIA/PORTS/VIDEO/
<out>
/CEC:sendHex=OK
Parameters
Accepted
<hex_command>
value is max. 30 character long (15 byte) in hexadecimal format. The codes are
separated with a space character.
Example
Ý
CALL /MEDIA/PORTS/VIDEO/O1/CEC:sendHex(87 00 E0 91)
Ü
mO /MEDIA/PORTS/VIDEO/O1/CEC:sendHex=OK