Ethernet AT Commands

Note

  • This command set is automatically activated when Ethernet functionality is enabled, requiring no additional configuration.

AT+ETHIP

Functional Description

Configures static IPv4 address and related network parameters for the Ethernet interface.

Command Format

AT+ETHIP=<store_flag>,<ip>[,<gateway>,<netmask>]

Response Format

Success response:

OK

Error response:

ERROR:<error_no>

Parameters

<store_flag>:

Configuration storage flag

  • 0: Configuration takes effect only in current session (not saved to flash)

  • 1: Save configuration to flash (persists after reboot)

  • 2: Delete stored configuration in flash

<ip>:

IPv4 address string (e.g., 192.168.1.100)

<gateway>:

Gateway address

  • Default behavior: Automatically derived from IP address when unspecified

<netmask>:

Subnet mask

  • Default value: 255.255.255.0 (standard Class C subnet mask)

Error Codes

  • 1: Parameter error

Note

  • When store_flag=0 or 1, configuration takes effect immediately after command execution.

  • store_flag=2 only clears flash storage without affecting current runtime configuration.

  • Configuration results can be verified using the AT+WLSTATE command.