7. LW2 Programmers’ Reference
MMX8x4-HT series – User's Manual
93
Applied firmware package: v1.2.2b5 | LDC software: v2.2.1
7.5.4.
Set the Gateway Address
Gateway address can be set as follows.
Command and Response
{IP_GATEWAY=
<gateway_addr>
}
(IP_GATEWAY=
<gateway_addr>
)CrLf
Parameters
See the
Example
{ip_gateway=192.168.0.50}
(IP_GATEWAY=192.168.0.50)
INFO:
The gateway address can be queried by typing the “ip_gateway=?” command. The response
contains the static IP gateway address that is stored in the device even if DHCP is enabled. In that case,
the latest valid gateway address (for static IP) is stored.
7.5.5.
Apply Network Settings
Apply the network settings and restart the network interface.
Command and Response
{ip_apply}
(IP_APPLY)CrLf
Example
{ip_apply}
(IP_APPLY)
7.6.
GPIO Settings
DIFFERENCE:
These commands are available in MMX8x4-HT420M and MMX8x8-HDMI-4K-A-USB20
models.
7.6.1.
Set GPIO State
GPIO state can be changed.
#gpio
Command and Response
{GPIO
<port_nr>
=
<direction>
;
<output_level>
}
(GPIO
<port_nr>
=
<direction>
;
<output_level>
)CrLf
Parameters
Identifier
Parameter description
Parameter values
<direction>
Direction of the signal
I:
input
O:
output
<output_level>
Current level of the pin
H:
high
L:
low
Example
{GPIO1=I;H}
(GPIO1=I)
INFO:
The GPIO state can be queried by typing the {GPIO
<port_nr>
=?}
command.
7.7.
Relay Settings
These commands are available in MMX8x4-HT420M model.
7.7.1.
Set Relay Connection State
Relay connection state can be changed to be opened or closed.
#relay
Command and Response
{RELAY
<port_nr>
=
<direction>
;
<state>
}
(RELAY
<port_nr>
=
<direction>
;
<state>
)CrLf
Parameters
Identifier
Parameter description
Parameter values
<direction>
Direction of the signal
O:
it is always O (output)
<state>
Current state of the pin
O:
opened
C:
closed
Example
{RELAY1=O;O}
(RELAY1=O;O)
INFO:
The RELAY state can be queried by typing the {RELAY
<port_nr>
=?}
command.