Configuration by the Serial Console

Modbus Ethernet Wi-Fi Gateways (G11 - G13)

Another way to configure the device is via a serial console. In case of the G11 - G13 Modbus gateways an additional USB/UART converter is needed.

Procedure to enter serial console mode

a5a95447-11ad-467f-afc0-dd83c392aa44.png

List of all commands

Command

Description

help

Print the help.

conn

Print active TCP connections.

net_stat

Print lwIP statistics.

eth_mac

Print or change MAC address.

wifi_mac

Print or change Wi-Fi MAC address

ipconfig

Print or change the network configuration.

http_port

Print or change default http port.

telnet_port

Print or change default telnet port.

modbus_tcp_port

Print or change modbus port.

ping

Check internet connection with the desired host.

defaults

Reset application variables to defaults

restart

Restart the system.

user

Print or change user configuration.

sys_heap_usage

Print current heap usage.

modbus

Print or changes modbus settings.

modbus_ports

Print or changes modbus ports settings.

modbus_routing

Print or change modbus routing settings.

wificonf

Wi-Fi interface configuration

exit

Exit console.

Modbus ports configuration commands

PORT_NUMBER is a number of ports in modbus gateway and it is counted from 0.

Network settings

The following commands might be helpful to change network settings according to target LAN parameters, 

Changing username or password

To change username or password, use user command. Available commands:

Service mode

Procedure to enter service mode

List of commands in the service mode

Command

Description

help

Print the help.

credits

Print current credits value for this device.

dev_ident

Print the device identification value.

restart

Restart the system.

serial_num

Print the serial number of this device.

version

Display the bootloader version.

xmodem

Download image to the internal flash using xmodem.

defaults

Reset application variables to defaults.

ipconfig

Print or change the network configuration.

flash_read

Read bytes from flash memory.

md

Read bytes from memory address.

In the service mode, the “ipconfig” command can only show a last static IP address.

Factory reset

To restore default settings, type “defaults”. After that, user will be asked for type “default network” to reset the network settings as well. Then user will be informed if the process is successful.
Default login details:
- login: admin
- password: admin123
- IP: 192.168.100.100

Additional notes

In order to avoid issues like connecting to host, type “help” to get more information.

To get more details about every particular command, append “help” after each commands (example: "ipconfig help").


Revision #3
Created 2 July 2025 12:32:45 by Michał Grabski
Updated 3 July 2025 08:05:31 by Michał Grabski