9. LW3 Programmers’ Reference
MX2-HDMI20 series – User's Manual
77
Applied firmware package: v1.7.0 | LDC software: v2.5.1b5
9.3.3.
Legend for the Control Commands
Command and Response – Example
Ý
GET·/V1/MEDIA/VIDEO/I2.SignalPresent
Ü
pr·/V1/MEDIA/VIDEO/I2.SignalPresent=
<signal_present>
Format
Description
<in>
Input port number
<out>
Output port number
<port>
Input or output port number
<loc>
Location number
<parameter>
Variable defined and described in the command
<expression>
Batched parameters: the underline means that more expressions
or parameters can be placed by using a semicolon, e.g.
I2;I4;I5
or
F27:E1;F47:E2
Sent command
Received response
·
Space character
Further not listed
<parameters>
are defined at each commands.
9.3.4.
Command Types
GET command
The
GET
command can be used to get the child nodes, properties and methods of a specific node. It can also
be used to get the value of a property. Use the dot character (.) when addressing a property:
Ý
GET /.SerialNumber
Ü
pr /.SerialNumber=87654321
GETALL command
The
GETALL
command can be used to get all child nodes, properties and methods of a node with one
command.
Ý
GETALL /MEDIA/PORTS/VIDEO/I1/CEC
Ü
pr /MEDIA/PORTS/VIDEO/I1/CEC.LastReceivedMessage=
Ü
pr /MEDIA/PORTS/VIDEO/I1/CEC.LastSentCommandResult=ACK
Ü
pw /MEDIA/PORTS/VIDEO/I1/CEC.OsdString=
Ü
pw /MEDIA/PORTS/VIDEO/I1/CEC.Broadcast=false
Ü
m- /MEDIA/PORTS/VIDEO/I1/CEC:factoryDefaults
Ü
m- /MEDIA/PORTS/VIDEO/I1/CEC:send
Ü
m- /MEDIA/PORTS/VIDEO/I1/CEC:sendHex
SET command
The
SET
command can be used to modify the value of a property. Use the dot character (.) when addressing
the property:
Ý
SET /MEDIA/PORTS/VIDEO/I1/SETTINGS.Conversion=OFF
Ü
pw /MEDIA/PORTS/VIDEO/I1/SETTINGS.Conversion=OFF
CALL command
A method can be invoked by the
CALL
command. Use the colon character (:) when addressing the method:
Ý
CALL /MEDIA/XP/VIDEO:switch(I1:O1)
Ü
mO /MEDIA/XP/VIDEO:switch
MAN command
The manual is a human readable text that describes the syntax and provides a hint for how to use the
primitives. For every node, property and method in the tree there is a manual, type the MAN command to get
the manual:
MAN /MEDIA/PORTS/VIDEO/I1/SETTINGS.EnablePower
pm /MEDIA/PORTS/VIDEO/I1/SETTINGS.EnablePower [true|false] Enables or disables 3v3 powering on
DP_PWR pin