
Page 100 / 127
Section 8.
LW3 Programmers’ reference
8.8.6. Change the subnet mask (static)
Command format:
SET
●/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Response format:
pw
●/MANAGEMENT/NETWORK.StaticNetworkMask=<netmask>
Example:
> SET●/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
< pw●/MANAGEMENT/NETWORK.StaticNetworkMask=255.255.255.0
Info: Device needs to be restarted to apply changes.
8.8.7. Query the gateway address
Command format:
GET
●/MANAGEMENT/NETWORK.GatewayAddress
Response format:
pr
●/MANAGEMENT/NETWORK.GatewayAddress=<gw_address>
Example:
> GET●/MANAGEMENT/NETWORK.GatewayAddress
< pr●/MANAGEMENT/NETWORK.GatewayAddress=192.168.0.1
8.8.8. Change the gateway address (static)
Command format:
SET
●/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
Response format:
pr●/MANAGEMENT/NETWORK.StaticGatewayAddress=
<gw_address>
Example:
> SET●/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
< pw●/MANAGEMENT/NETWORK.StaticGatewayAddress=192.168.0.5
8.9. GPIO settings
8.9.1. Set the direction of a GPIO pin
Command format:
SET
●/MEDIA/GPIO/P<pin_#>.Direction=<dir>
Response format:
pw
●/MEDIA/GPIO/ P<pin_#>.Direction=<dir>
Legend:
<pin#>:
number of the GPIO pin
<dir>:
direction of the GPIO pin: I=input; O=output
Example:
> SET●/MEDIA/GPIO/P1.Direction=I
< pw●/MEDIA/GPIO/P1.Direction=I
Info: Use the GET command to query the parameter.
8.9.2. Set the output value of a GPIO pin
Command format:
SET
●/MEDIA/GPIO/P<pin_#>.Output=<value>
Response format:
pw
●/MEDIA/GPIO/ P<pin_#>.Output=<value>
Legend:
<pin#>:
number of the GPIO pin
<value>:
value of the GPIO pin: H=high level; O=low level
Example:
> GET●/MEDIA/GPIO/P1.Output
< pw●/MEDIA/GPIO/P1.Output=H
Explanation:
Output level of GPIO pin1 is high.
Summary of Contents for UMX-TPS-TX120
Page 2: ......