7. LW3 Programmers’ Reference
UMX-HDMI-140 series– User's Manual
105
Applied firmware package: v1.3.0b5 | LDC software: v2.5.6b2
Further Examples
<path>.<property>
Property Value
<pattern>
Scanned result
/MANAGEMENT/STATUS.CpuTemperature
42 C; 0;75; 0;7
%s
42
/MANAGEMENT/STATUS.CpuFirmware
1.3.0b3 r32
%12s
1.3.0b3
/MEDIA/VIDEO/XP.DestinationPortStatus
T00AA;T00AF
%6c
T00AA
/MEDIA/UART/P1.Rs232Configuration
57600, 8N1
%*[^,], %s
8N1
/MEDIA/AUDIO/XP.SourcePortStatus
T000A;T000B;T000F
%*6c%5c
T000B
/MANAGEMENT/NETWORK.HostName
lightware-00005031
lightware-%[0-9] 00005031
7.10.6.
Reformatting a Value
The value of the variable can be changed by adding text as prefix and/or postfix.
ATTENTION!
Think about the length of the value: 15 characters are allowed, the others are truncated.
Command and Response
ç
CALL·/CTRL/VARS/V
<loc>
:printf(
<prefix>
%s
<postfix>
)
æ
mO·/CTRL/VARS/V
<loc>
:printf
Parameters
Parameter
Parameter description
Value Value description
<loc>
The location of the variable
1-30
<prefix>
The text before the original value of the property (optional)
Custom
ASCII characters
%s
The original value of the variable
<postfix>
The text following the original value of the property (optional)
Custom
ASCII characters
Example
ç
GET /CTRL/VARS/V1.Value
ç
pw /CTRL/VARS/V1.Value=01
ç
CALL /CTRL/VARS/V1:printf(PWR%s)
æ
mO /CTRL/VARS/V1:printf
ç
GET /CTRL/VARS/V1.Value
æ
pw /CTRL/VARS/V1.Value=PWR01
The 'PWR' string has been inserted before the original value.
7.11. Ethernet Port Configuration
7.11.1.
Set the DHCP State
ATTENTION!
When you change a network property the new value is stored but the
applySettings
method
must be called always to apply the new settings. When two or more network parameters are changed the
applySettings
method is enough to call once as a final step.
Command and Response
#dhcp #network
#ipaddress
ç
SET·/MANAGEMENT/NETWORK.DhcpEnabled=
<dhcp_status>
æ
pw·/MANAGEMENT/NETWORK.DhcpEnabled=
<dhcp_status>
Parameters
If the
<dhcp_status>
parameter is
true
, the current IP address setting is DHCP, if the parameter is
false
the
current IP address is static.
Example
ç
SET /MANAGEMENT/NETWORK.DhcpEnabled=true
æ
pw /MANAGEMENT/NETWORK.DhcpEnabled=true
ç
CALL /MANAGEMENT/NETWORK:applySettings(1)
æ
mO /MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the device to reboot.
INFO:
The current setting can be queried by the
.
7.11.2.
Change the IP Address (Static)
Command and Response
ç
SET·/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
æ
pw·/MANAGEMENT/NETWORK.StaticIpAddress=
<IP_address>
Example
ç
SET /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
æ
pw /MANAGEMENT/NETWORK.StaticIpAddress=192.168.0.85
ç
CALL /MANAGEMENT/NETWORK:applySettings(1)
æ
mO /MANAGEMENT/NETWORK:applySettings
INFO:
The
applySettings
method will save and apply the new value and results the device to reboot.
INFO:
The current setting can be queried by the
.