![Lightware DP-TPS-TX210 Скачать руководство пользователя страница 118](http://html.mh-extra.com/html/lightware/dp-tps-tx210/dp-tps-tx210_user-manual_1915323118.webp)
7.LW3Programmer'sReference
HDMI-TPS-TX200series–User'sManual
118
Appliedfirmwarepackage:v1.3.2b3 | LDCsoftware:v2.5.7b2
7.19.2.
Further Commands
Command and Response
ç
CALL·/MEDIA/CEC/
<port>
:send(
<command>
)
æ
mO·/MEDIA/CEC/
<port>
:send
Parameters
The
<port>
parametermeansthevideoinput(I1-I4)orvideooutput(O1-O2)port.Thefollowingisaccepted
as
<command>
:
image_view_on
standby
text_view_on
active_source
get_cec_version
set_osd
clear_osd
give_power_status
The
set_osd
commandrequirestosendalsoanothercommand,seethefollowingsection.
Example
ç
CALL/MEDIA/CEC/I2:send(standby)
æ
mO/MEDIA/CEC/I2:send
7.19.3.
Sending an OSD String
TheOSDstringsendingconsistsoftwosteps.First,
set the
OsdString
property with the desired text, then call
the
send
method.
Command and Response
ç
SET·/MEDIA/CEC/
<port>.
OsdString=
<text>
æ
pw·/MEDIA/CEC/
<port>
.OsdString=
<text>
ç
CALL·/MEDIA/CEC/
<port>
:send(set_osd)
æ
mO·/MEDIA/CEC/I2:send
Parameters
Parameter
Parameterdescription
Values
Valuedescription
<port>
Videoinputorvideo
output port
I1-I4
Videoinputs
O1-O2
Videooutputs
<text>
ThedesiredOSDstring
Letters(A-Z)and(a-z),hyphen(-),underscore(_),
numbers(0-9),anddot(.).Maxlength:14characters.
Example
ç
SET/MEDIA/CEC/I2.OsdString=Lightware
æ
pw/MEDIA/CEC/I2.OsdString=Lightware
ç
CALL/MEDIA/CEC/I2:send(set_osd)
æ
mO/MEDIA/CEC/I2:send
7.19.4.
Sending CEC Commands in Hex Format
ç
CALL·/MEDIA/CEC/
<port>
:sendHex(
<hex_code>
)
æ
mO·/MEDIA/CEC/
<port>
:sendHex
Parameters
Parameter
Parameterdescription
Values
Valuedescription
<port>
Videoinputorvideooutput
port
I1-I4
Videoinputs
O1-O2
Videooutputs
<hex_code>
The desired CEC command
Max.30character(15byte)inhexadecimalformat.
Example
ç
CALL/MEDIA/CEC/I2:sendHex(8700E091)
æ
mO/MEDIA/CEC/I2:sendHex
7.19.5. Querying the Last Received CEC Message
ç
GET/MEDIA/CEC/
<port>
.LastReceivedMessage
æ
pr/MEDIA/CEC/
<port>
.LastReceivedMessage=
<CEC_message>
Parameters
Parameter
Parameterdescription
Values
Valuedescription
<port>
Videoport
I1-I4
or
O1-O2
<CEC_message>
ThelastincomingCECmessage
from the connected device.
Example
ç
GET/MEDIA/CEC/I2.LastReceivedMessage
æ
pr/MEDIA/CEC/I2.LastReceivedMessage=give_power_status
TIPSANDTRICKS:
ThispropertycanbeaconditionintheEventmanager.Whentheconnecteddevice
sendsstatusinformationviaCEC,itcouldbeatriggerforanaction.