6. LW3 Programmers’ Reference
HDMI20-OPTC series – User's Manual
40
6.3.
LW3 commands
6.3.1.
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.
The response format
The first two characters of a response unambiguously identify the type of the element that the response
line concerns. The first character is the type of the element (node, property or method), the second is for
miscellaneous information (e.g. read/write rights).
The defined prefixes are:
‘n-’:
node
‘pr’:
property - only readable
‘pw’:
property - writable, readable
‘m-’:
method executable
After the prefix, the response contains the full path of the node, property or method after a space character.
Get all children of a node
Get all of the child nodes of a parent node, with one GET command.
Command format:
GET
●
[nodePath]
Response format: n-
●
[nodePath]
Example:
˃
GET /MEDIA
˂
n- /MEDIA/VIDEO
˂
n- /MEDIA/UART
˂
n- /MEDIA/ETHERNET
Get all child nodes, properties and methods of a node
Get all child nodes, properties and methods of a node with one command, without using a wild card.
Command format:
GETALL
●
[nodePath]
Response format: (for nodes)
n-
●
[nodePath]
Response format: (for properties)
pX
●
[nodePath].[propertyName]=[parameter]
Legend:
X can be:
‘r’:
read-only
‘w’:
read-write
Response format: (for methods)
m-
●
[nodePath]:[methodName]
Example:
˃
GETALL /EDID
˂
n- /EDID/F
˂
n- /EDID/D
˂
n- /EDID/U
˂
n- /EDID/E
˂
pr /EDID.EdidStatus=D1:E1;D1:E2
˂
m- /EDID:copy
˂
m- /EDID:delete
˂
m- /EDID:reset
˂
m- /EDID:switch
˂
m- /EDID:switchAll
Get all properties and methods of a node
Get all properties and methods of a node, with one GET command and asterisk character.
Command format:
GET
●
[nodePath].*
Response format: (for properties)
pX
●
[nodePath].[propertyName]=[parameter]
Legend:
X can be:
‘r’:
read-only
‘w’:
read-write
Response format: (for methods)
m-
●
[nodePath]:[methodName]