Configuration by the Serial Console

Modbus TCP/RTU Gateways (G20, G30)

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

image.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

Print or changes modbus settings.

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.

mbus

Print or changes M-Bus ports settings.

wificonf

Wi-Fi interface configuration

exit

Exit console.

Modbus ports configuration commands
M-Bus ports configuration commands

If a subcommand which normally sets a value is not given an argument, it will print the current value.
Example:
     #>mbus 2 baud
     Set baudrate is 9600


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:

  

Additional notes

After some time of inactivity, session will be disconnected automatically.

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").

Service mode

Entering the service mode is almost the same as entering the serial console. One different is to open FG and GND ports earlier (when the red LED is still blinking).

Available commands in the service mode:

Command

Description

help

Print the help.

credits

Print current credits value for this device.

dev_ident

Print the device identificator 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.


Revision #4
Created 12 August 2025 12:07:52 by Michał Grabski
Updated 25 August 2025 09:38:16 by Michał Grabski