Skip to main content

WIZ-IP32 AT command

AT command will use different color to represent each kind of information.

ColorMeaning
BoldDefault value of the AT command
BlueParameters inputs for the AT command
GreenReturn value of the AT command
RedSpecial note of the AT command or Error message

Overview of AT Command

The AT command supported by WIZ-IP32 serial to Ethernet modules is a standard interface that is not case sensitive and always starts with "AT" and ends with "\r\n". The format of its commands, return values, and parameters is fixed. Generally speaking, AT commands have the following formats:

1、No parameter command

Format: AT+\r\n

Explanation: The command is followed by no parameters or symbols.

Example:

Command: AT+EXIT\r\n

Response: OK\r\n

2、Query command

Format: AT+"command"?\r\n

Description: Used to query the current configuration value of a parameter.

Example:

Command: AT+ECHO?\r\n

Response: [ECHO] Value is: 1\r\nOK\r\n

3、Command with parameters

Format: AT+"command"="parameter"\r\n

Explanation: It is the most commonly used format for setting a certain parameter (except for the DEFAULT command and RESET).

Example:

Command: AT+ECHO=1\r\n

Response: [ECHO] Value is: 1\r\n OK\r\n

AT command Return values

According to the different AT commands input by the user, WIZ-IP32 will reply with the execution results of the commands, as shown in the table below.

Response typeResponseDescription
Error messageCommand Invalid\r\nERROR\r\nCommand error
Error InfoCommand parameter error or mismatch with current working mode
Correct informationOK\r\nParameter free command for correct configuration
[Command] Value is: value\r\nOK\r\nCorrect configuration of query commands and parameterized commands

Enter AT command mode

There are two operating modes for WIZ-IP32 serial to Ethernet modules: AT command mode and data transmission mode. In AT command mode, users can use serial tools or configure various parameters of the module through their MCU, and also support data transmission under AT commands.

Note: If a TCP connection is established before entering AT command mode, the connection will be closed when entering AT command mode.

When WIZ-IP32 is in AT command mode, input the terminal detection command "AT\r\n" to its serial port. If the module correctly receives "AT\r\n", it will reply with "OK\r\n".

When WIZ-IP32 is in data transmission mode, any AT command input to the serial port is invalid. At this point, input "+++" to its serial port, and WIZ-IP32 will switch to AT command mode.

Input rule for "+++": Three "+" must be sent continuously to the serial port at once, and there must be no other characters within 1 second before and after the "+++" in order for WIZ-IP32 to respond correctly and switch to AT command mode.

Note: The default operating mode of WIZ-IP32 at the factory is AT command mode.

AT command list

WIZ-IP32 serial to Ethernet modules support serial AT command configuration parameters and also support data transmission in AT command mode. Therefore, AT commands can be roughly divided into two categories: AT configuration commands and AT data transmission commands.

All WIZSE products are using the same AT command Structure. Due to different solutions, it may have more than 1 serial channel for serial setup and communication.

The following are the information for WIZ-IP32:

WIZ-IP32

Number of ChannelsSerial TypeFormatName of ChannelExample
2RS232C[CH]C1AT+C1_PORT?
RS485C[CH]C2AT+C2_PORT?
Command nameFunctionAttributeMax lengthParameters
ATTerminal detectionR--
ECHOFeedbackRW10: Turn off echo display 1: Open echo (default)
DEBUGMSGENDebug informationRW10: Close debugging information 1: Enable debugging information (default)
NAMEEquipment nameRW15It must be a number, letter, or a combination of both
PASSmodule passwordRW15Must be a number, letter, or a combination of both. Default: admin
DEFAULTRestore factory settingsW15When the parameter is "module password", factory Reset
RESETSave configuration and restart moduleW15When the parameter is' module password ', restart the module
EXITSave configuration and exit AT command modeW--
SAVESave ConfigurationW--
START_MODENext time starting the running modeRW10: AT command mode (default) 1: Data transparent transmission mode
C[CH]_OPWorking modeRW20: TCP Server(default) 1: TCP Client 2: UDP 16: Modbus RTU-TCP Server 17: Modbus RTU-TCP Client 18: Modbus RTU-UDP 32: Modbus ASCII-TCP Server 33: Modbus ASCII-TCP Client 34: Modbus ASCII-UDP
IP_MODEHow to obtain IP addressRW10: Static retrieval (default) 1: DHCP acquisition
IPmodule IP addressRW15Default :192.168.1.88
MASKmodule subnet maskRW15Default :255.255.255.0
GATEWAYmodule gatewayRW15Default :192.168.1.1
DNSDNS server addressRW15Default :114.114.114.114
C[CH]_PORTLocal port numberRW51 ~ 65535; Default: 5000
C[CH]_BINDBind local port numberRW1Valid for TCP client 0: Do not bind local port number (Default) 1: Bind local port number
C[CH]_DNSENDNS functionRW10: Disable DNS function (Default) 1: Enable DNS function
C[CH]_CLI_IP1Remote host IP addressRW15Default: 192.168.1.99
C[CH]_CLI_PP1Remote host port numberRW51~65535; Default: 5000
C[CH]_DOMAIN Remote host domain nameRW32Default: www.w5500.com
C[CH]_RECONTIMEReconnect timeRW5Valid for TCP client The value range is: 0~60000 Unit: ms Default: 0 (reconnect immediately)
NETBIOSNetBIOS functionalityRW10: Disable NetBIOS function (default) 1: Enable NetBIOS functionality
COM[CH]Serial port parametersRW10Default: 9,1,0,1,0
C[CH]_BAUDBaud rateRW20: 1200; 1: 2400; 2: 4800 3: 9600; 4: 14400; 5: 19200 6: 38400; 7: 56000; 8: 57600 9: 115200 (default); 10: 128000 11: 234000; 12: 256000; 13: 468000 14: 921600; 15: 1152000
C[CH]_DATABData bitsRW10:7 digits 1: 8-bit (default)
C[CH]_STOPBstop bitRW10: 0.5 1: 1 (default) 2: 1.5 3: 2
C[CH]_PARITYcheck bitRW10: No verification (default) 1: Odd verification 2: Even verification
C[CH]_SER_CSerial port flow controlRW10: No flow control (default)
C[CH]_BUF_CLSClear serial port bufferRW1Effective during TCP 0: Do not clear serial port buffer after connection (default) 1: Clear the serial port buffer after connection
C[CH]_SER_LENpacket lengthRW4The value range is: 0~2048 bytes Default: 0 (no packet)
C[CH]_SER_TSerial port frame intervalRW5The value range is: 0~60000 Unit: ms Default: 0 (no packet)
C[CH]_ITTimeout disconnect timeRW5Effective during TCP The value range is: 0~60000 Unit: ms Default: 0 (disable this feature)
C[CH]_TCPATHeartbeat detection timeRW3Effective during TCP The value range is: 0~255 Unit: 5s Default: 0 (disable this feature)
C[CH]_LINK_P Connection password verificationRW1Valid on TCP Server 0: Do not verify password after TCP connection is established (default) 1: Verify password after establishing TCP connection
C[CH]_LINK_TConnection establishment conditionsRW1Valid for TCP client 0: Establish connection immediately after power on (default) 1: Establish a connection after receiving data through the serial port
C[CH]_LINK_MSend a message after connectingRW1Valid in TCP mode 0: No message sent after connection establishment (default) 1: After establishing the connection, send the module name 2: Send module MAC address after connection establishment 3: Send module IP address after connection establishment
C[CH]_SEND_NUMThe number of bytes sent by the serial portR-Display range is 0 ~ 4294967295
C[CH]_RCV_NUMSerial port received byte countR-Display range is 0 ~ 4294967295
C[CH]_NETSENDNumber of bytes sent by the network portR-Display range is 0 ~ 4294967295
C[CH]_NETRCVNumber of bytes received by the network portR-Display range is 0 ~ 4294967295
PREList of default and current valuesR--
LISTAll command listsR--
RUNTIMEEquipment operation timeR--
VERmodule firmware version numberR--
MACmodule MAC addressR--
SNEquipment serial numberR--
TYPEmodule TypeR--
WEB_PORTWeb port numberRW51 ~ 65535;Default: 80
LINKPHY connection statusR-0: PHY not connected 1: PHY connected
C[CH]_LISTENEstablish TCP listeningW--
C[CH]_CONNECTApply for TCP connectionW--
C[CH]_TCP_STATUSTCP connection statusR-0: TCP not connected 1: TCP Connected
C[CH]_UDPEstablish UDP communicationW--
C[CH]_SENDThe number of bytes of data to be sentW4Range: 0~2048 Default value: 0 (any length)
C[CH]_RLENNumber of bytes of data to be receivedR--
C[CH]_RCVReceive DataW4Range: 0~2048 Default value: 0 (any length)
C[CH]_CLEARClear the network port receiving cacheW--
C[CH]_DISCONTurn off TCP/UDPW--

AT Control commands

AT(Terminal check)

Command formatParametersFunction Description
ATNilCheck the terminal
ResponseOK\r\n
ExampleCommand: AT\r\n
Response: OK\r\n

Description: In AT command mode, it only provides response check to ensure it is in AT command mode.


ECHO(Enable or disable echoing)

Command formatParametersFunction Description
AT+ECHO?NilQuery current value
AT+ECHO= Parameters0: Disable the echo functionSet new value
1: Enable echo function (Default)
Response[ECHO] Value is: AT+ECHO= Value\r\n OK \r\n
ExampleCommand: AT+ECHO?\r\n
Response: [ECHO] Value is: 1\r\n OK\r\n

Description: The echo function refers to returning the data input from the serial channel as it is, and only exists in AT command mode. Enabling the echo function can help users configure modules more conveniently when using serial software. However, when configuring modules using embedded modules such as microcontrollers, enabling the echo function can cause trouble. It is recommended to disable it at this time.


DEBUGMSGEN(Debug message)

Command formatParametersFunction Description
AT+ DEBUGMSGEN?NilQuery current value
AT+DEBUGMSGEN=Parameters0: Close debugging informationSet new value
1: Enable debugging information (Default)
Response[DEBUGMSGEN] Value is: Value\r\n OK \r\n
ExampleCommand: AT+DEBUGMSGEN=1\r\n
Response: [DEBUGMSGEN] Value is: 1\r\n OK\r\n

Description: This command is used to configure whether the module should enable debugging information. Debugging information includes basic module information and module status change information, which will be output through the serial channel at startup for easy user viewing. If the user does not need this information, the debugging information output can be turned off through this command.


NAME(module name)

Command formatParametersFunction Description
AT+NAME?NilQuery current value
AT+NAME =ParametersThe total length is 15 characters, with the first character being a letter and the remaining 14 characters being any combination of letters, numbers, symbols' - 'or' _ '.Set new value
Default: module P/N
ResponseNAME] Value is: Value\r\nOK\r\n
ExampleCommand: AT+NAME=User1\r\n
Response: [NAME] Value is: User1\r\nOK\r\n

Description: Users can customize module names through this command.

Note: This command can be used in conjunction with the NetBIOS function. If the NetBIOS function is enabled, users can access the module through the module name in the browser. Please refer to the "AT+NETBIOS" command.

PASS(module password)

Command formatParametersFunction Description
AT+PASS?NilQuery current value
AT+PASS=ParametersThe module password must be a combination of numbers, letters, or both, and cannot be empty. It is case sensitive and can be up to 15 bytes longSet new value
Default: admin
Response[PASS] Value is:Value\r\nOK\r\n
ExampleCommand: AT+PASS=Admin1\r\n
Response: [PASS] Value is: Admin1\r\nOK\r\n

Description: The module password is used for restoring factory settings, verifying connection passwords, verifying web login passwords, and saving configurations and restarting the module.

Note:
Factory reset function:
If you need to use the AT command to restore factory settings, you must enter the correct module password. Please refer to the "DEFAULT" command for detailed functions.

Connection password verification function:
In order to improve communication security, WIZ-IP32 modules provide a "connection password verification" function. When the module communicates with the client as a TCP Server, if the "connection password verification" function is turned on, the client needs to enter the module password through the network port after establishing a connection with the module. If the password is correct, communication can begin; If the password is incorrect, you will be prompted to re-enter the correct password. For detailed functions, please refer to the "C 1 _LINK-P" command.

Web login password verification function:
If you need to log in to the module configuration webpage, you must enter the correct module password on the login verification page.

Save configuration and restart module functionality:
To save the current configuration and restart the module, the correct module password must be entered to reset. After using this command, all sockets will be automatically closed. Please refer to the "RESET" command for detailed functions.

DEFAULT(Reset to factory default)

Command formatParametersFunction Description
AT+DEFAULT=Parametersmodule passwordSet new value
default: admin
ResponseOK\r\n
ExampleCommand: AT+DEFAULT=admin\r\n
Response: OK\r\n

Description: The module password must be completely correct in order to restore factory settings. The module password can be queried and set through the "PASS" command.


RESET(Save and restart the module)

Command formatParametersFunction Description
AT+RESET=Parametersmodule passwordSet new value
Default: admin
ResponseOK\r\n
ExampleCommand: AT+RESET=admin\r\n
Response: OK\r\n

Description:

1 Save the current configuration information;

2 Restart the module to make the configuration information take effect;

3 When users need to directly enter data transmission mode during the next power on, they can configure the parameter value of the "AT+START-MODE=1\r\n" command to be 1, and then configure the "RESET" command;

4 The module password can be queried and set through the "PASS" command.


EXIT(Save and exit command mode)

Command formatParametersFunction Description
AT+EXITNilExecute immediately
ResponseOK\r\n
ExampleCommand: AT+EXIT\r\n
Response: OK\r\n

Description:

1 Save the current configuration information

2 Make the configuration information effective

3 Exit AT command mode and enter data transmission mode


SAVE(Save settings)

Command formatParametersFunction Description
AT+SAVENilExecute immediately
ResponseOK\r\n
ExampleCommand: AT+SAVE\r\n
Response: OK\r\n

Description:

1 Save the current configuration information

2 Make the configuration information effective


module information configuration command

START_MODE(Start mode)

Command formatParametersFunction Description
AT+START_MODE?NilQuery current value
AT+START_MODE=Parameters0: AT command mode (default)Set new value
1: Data transparent transmission mode
Response[START_MODE] Value is: Value\r\nOK\r\n
ExampleCommand: AT+START_MODE=1\r\n
Response: [START_MODE] Value is: 1\r\nOK\r\n

Description: This command configures the running mode for the next startup. When users need to directly enter data transmission mode during the next power on, they can configure the parameter value of the "START_MODE" command to be 1, and then configure the "RESET" command.


C[CH]_OP(Operating mode)

Command formatParametersFunction Description
AT+C[CH]_OP?NilQuery current value
AT+C[CH]_OP=Parameters0: TCP Server(default) 1: TCP Client 2: UDPSet new value
16: Modbus RTU-TCP Server 17: Modbus RTU-TCP Client 18: Modbus RTU-UDP
32: Modbus ASCII-TCP Server 33: Modbus ASCII-TCP Client 34: Modbus ASCII-UDP
Response[C[CH]_OP] Value is:Value \r\nOK\r\n
ExampleCommand: AT+C1_OP=1\r\n
Response: [C1_OP] Value is: 1\r\nOK\r\n

Description: When transmitting data in AT command mode, if you need to use this command to modify the operation mode, you need to first call the "DISCON" command to turn off TCP/UDP.


IP_MODE(IP configuration mode)

Command formatParametersFunction Description
AT+IP_MODE?NilQuery current value
AT+IP_MODE=Parameters0: Static retrieval (default)Set new value
1: DHCP acquisition
Response[IP_MODE] Value is: Value\r\nOK\r\n
ExampleCommand: AT+IP_MODE=1\r\n
Response: [IP_MODE] Value is: 1\r\nOK\r\n

Description: When selecting the static retrieval method, users need to set their own IP address, gateway, subnet mask, DNS server address, etc., or they can choose the default settings; When selecting DHCP mode, WIZ-IP32 will dynamically obtain IP information through DHCP servers in the local area network.


IP(IP address)

Command formatParametersFunction Description
AT+IP?NilQuery current value
AT+IP=ParametersDefault: 192.168.1.88Set new value
Response[IP] Value is: Value\r\nOK\r\n
ExampleCommand: AT+IP=192.168.1.88\r\n
Response: [IP] Value is: 1\r\nOK\r\n

Description: The IP address is represented in IPv4 standard format, such as 192.168.1.88; Its maximum length is 15 bytes, and the range of values for each decimal number is from 0 to 255. This setting only takes effect when the IP configuration mode (IP_MODE) is set to 'Static IP Mode'.


MASK(Subnet mask)

Command formatParametersFunction Description
AT+MASK?NilQuery current value
AT+MASK=ParametersDefault: 255.255.255.0Set new value
Response[MASK] Value is: Value\r\nOK\r\n
ExampleCommand: AT+MASK=255.255.255.0\r\n
Response: [MASK] Value is: 255.255.255.0\r\nOK\r\n

Description: The subnet mask is represented in IPv4 standard format, such as 255.255.255.0, with a maximum length of 15 bytes. This setting only takes effect when the IP configuration mode (IP_MODE) is set to 'Static IP Mode'.


GATEWAY(Gateway)

Command formatParametersFunction Description
AT+GATEWAY?NilQuery current value
AT+ GATEWAY =ParametersDefault: 192.168.1.1Set new value
Response[GATEWAY] Value is: Value\r\nOK\r\n
ExampleCommand: AT+GATEWAY=192.168.1.1\r\n
Response: [GATEWAY] Value is: 192.168.1.1\r\nOK\r\n

Description: The gateway IP address is represented in IPv4 standard format, such as 192.168.1.1, with a maximum length of 15 bytes. This setting only takes effect when the IP configuration mode (IP_MODE) is in 'Static IP Mode'.


DNS(DNS server address)

Command formatParametersFunction Description
AT+DNS?NilQuery current value
AT+DNS=ParametersDefault: 114.114.114.114Set new value
Response[DNS] Value is: Value\r\nOK\r\n
ExampleCommand: AT+DNS=114.114.114.114\r\n
Response: [DNS] Value is: 114.114.114.114\r\nOK\r\n

Description: The DNS server address is represented in IPv4 standard format, such as 114.114.114.114, with a maximum length of 15 bytes. This configuration does not accept address inputs ending in ". 0" or ". 255", for example: xxx.xxx.xxx.0 or xxx.xxx.xxx.255.


C[CH]_PORT(Local port number)

Command formatParametersFunction Description
AT+C[CH]_PORT?NilQuery current value
AT+C[CH]_PORT=ParametersRange: 1~65535, Default: 5000Set new value
Response[C[CH]_PORT]Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_PORT=5000\r\n
Response: [C1_PORT] Value is: 5000\r\nOK\r\n

Description: This command is used to configure the local port number. The module operates in TCP Server and UDP mode with the corresponding number of channels, and communicates with the user module through this port.

Note: Some protocols in the Ethernet protocol have default port numbers, which should be avoided. The default occupied port numbers are shown in the appendix.


C[CH]_BIND(Local port binding)

Command formatParametersFunction Description
AT+C[CH]_BIND?NilQuery current value
AT+C[CH]_BIND=Parameters0: Do not bind local port number (default)Set new value
1: Bind local port number
Response[C[CH]_BIND] Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_BIND=1\r\n
Response: [C1_BIND] Value is: 1\r\nOK\r\n

Description: When the module operates in TCP Client mode on the corresponding serial channel, after binding the port number, WIZ-IP32 will always use the local port number configured by the "C[CH]_PORT" command.


C[CH]_DNSEN(DNS enable)

Command formatParametersFunction Description
AT+C[CH]_DNSEN?NilQuery current value
AT+C[CH]_DNSEN=Parameters0: Disable DNS function (default)Set new value
1: Enable DNS function
Response[C[CH]_DNSEN] Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_DNSEN=1\r\n
Response: [C1_DNSEN] Value is: 1\r\nOK\r\n

Description: This setting takes effect only when the module operates in TCP Client or UDP mode on the serial channel. After enabling DNS functionality, WIZ-IP32 can access remote hosts using domain names. WIZ-IP32 performs a DNS query upon each power-up.

Note: 1 If enabled and "C[CH]_DOMAIN" is set, the "C[CH]_CLI_IP1" command becomes invalid. The module communicates with the host defined by "C[CH]_DOMAIN"; 2 If disabled and "C[CH]_CLI_IP1" is set, the "C[CH]_DOMAIN" command becomes invalid. The module communicates with the IP defined by "C[CH]_CLI_IP1"; 3 To use DNS functionality, the module IP information must be configured correctly. It is recommended to configure the module in DHCP mode.

C[CH]_CLI_IP1(Remote host IP address)

Command formatParametersFunction Description
AT+C[CH]_CLI_IP1?NilQuery current value
AT+C[CH]_CLI_IP1=ParametersDefault: 192.168.1.99Set new value
Response[C[CH]_CLI_IP1] Value is: Valuer\nOK\r\n
ExampleCommand: AT+C1_CLI_IP1=192.168.1.99\r\n
Response: [C1_CLI_IP1] Value is: 192.168.1.99\r\nOK\r\n

Description: This command is only effective in TCP Client or UDP mode, used to configure the remote IP address for the corresponding serial channel of WIZ-IP32. The IP address must comply with IPv4 format, such as 192.168.1.99, as defined in the "IP" command.

Note: If the parameter value of the "DNSEN" command is 0, the parameters configured by the command are valid.

C[CH]_CLI_PP1(Remote host port number)

Command formatParametersFunction Description
AT+C[CH]_CLI_PP1?NilQuery current value
AT+C[CH]_CLI_PP1=ParametersRange: 1~65535, default: 5000Set new value
Response[C[CH]_CLI_PP1] Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_CLI_PP1=5000\r\n
Response: [C1_CLI_PP1] Value is: 5000\r\nOK\r\n

Description: The module operates in TCP Client and UDP modes with the corresponding number of channels.

Note: Some protocols in the Ethernet protocol have default port numbers, which should be avoided. The default occupied port numbers are shown in the appendix.


C[CH]_DOMAIN((Remote host name)

Command formatParametersFunction Description
AT+DOMAIN?NilQuery current value
AT+C[CH]_DOMAIN=ParametersDefault: www.w5500.com
The maximum length is 32 characters
Set new value
Response[DOMAIN] Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_DOMAIN=www.w5500.com\r\n
Response: [C1_DOMAIN] Value is: www.w5500.com\r\nOK\r\n

Description: This command configures the remote host's domain name. The setting takes effect when the corresponding module channels operate in TCP Client or UDP mode.

Note: The command takes effect only when the "DNSEN" command's parameter value is set to 1.

C[CH]_RECONTIME(Reconnection interval)

Command formatParametersFunction Description
AT+C[CH]_RECONTIME?NilQuery current value
AT+C[CH]_RECONTIME=ParametersDefault: 0 (immediate reconnection), value range is 0 to 60000, unit: msSet new value
Response[C[CH]_RECONTIME] Value is: Value\r\nOK\r\n
ExampleCommand: AT+C1_RECONTIME=1000\r\n
Response: [C1_RECONTIME] Value is: 1000\r\nOK\r\n

Description: The number of channels corresponding to the module is valid when running in TCP Client and transparent mode. This command sets the time interval for the next connection request between WIZ-IP32 and the remote host after the TCP connection is disconnected.


NETBIOS(NetBIOS)

Command formatParametersFunction Description
AT+NETBIOS?NilQuery current value
AT+NETBIOS=Parameters0: Disable NetBIOS function (default)Set new value
1: Enable NetBIOS functionality
Response[NETBIOS] Value is:Value\r\nOK\r\n
ExampleCommand: AT+NETBIOS=1\r\n
Response: [NETBIOS] Value is: 1\r\nOK\r\n

Description: The NetBIOS protocol can provide module naming services within a local area network. After enabling the NetBIOS function, users can directly access WIZ-IP32's built-in web page by entering "http:// module name" in the browser address bar. The module name is configured using the "NAME" command.

Serial port information configuration command

COM[CH] (Serial parameters)

Command formatParametersFunction Description
AT+COM[CH]?NilQuery current value
AT+COM[CH]=par1,par2, par3,par4,par5par1: Baud rate parameter, refer to the "C[CH]_BAUD" commandSet new value
par2: Data bit parameters, refer to the "C[CH]_DATAB" command
par3: Parity bit parameter, refer to the "C[CH]_PARITY" command
par4: Stop bit parameter, refer to the "C[CH]_STOPB" command
par5: Serial port flow control parameters, refer to the "C[CH]_SER_C" command
Response[COM1] Value is: value1,value2,value3,value4,value5\r\nOK\r\n
Explain: Value1: Baud rate parameter value
Value2: Data bit parameter value
Value3: Parity bit parameter value
Value4: Stop bit parameter value
Value5: Serial port flow control parameter values
ExampleCommand: AT+COM1=9,1,0,1,0\r\n
Response: [COM1] Value is: 9,1,0,1,0\r\nOK\r\n

Description: This command is used to configure or query 5 commonly used parameters of the related serial channel at once, or it can be configured or queried separately with the corresponding command.


C[CH]_BAUD(Baud Rate)

Command formatParametersFunction Description
AT+C[CH]_BAUD?NilQuery current value
AT+C[CH]_BAUD=parameter0:1200; 1:2400; 2:4800 3:9600; 4:14400; 5:19200 6:38400; 7: 56000; 8:57600 9:115200 (default); 10:128000 11:234000; 12:256000; 13: 468000 14:921600; 15:1152000Set new value
Response[C[CH]_BAUD] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_BAUD=9\r\n
Response: [C1_BAUD] Value is: 9\r\nOK\r\n

Description: This command is used to configure or query the baud rate of the related serial channel.


C[CH]_DATAB(Data bit)

Command formatParametersFunction Description
AT+C[CH]_DATAB?NilQuery current value
AT+C[CH]_DATAB=parameter0:7bit 1:8bit (default)Set new value
Response[C[CH]_DATAB] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_DATAB=1\r\n
Response: [C1_DATAB] Value is: 1\r\nOK\r\n

Description: This command is used to configure or query the data bits of the related serial channel.


C[CH]_STOPB(Stop bit)

Command formatParametersFunction Description
AT+C[CH]_STOPB?NilQuery current value
AT+C[CH]_STOPB=parameter0:0.5 1:1 (default) 2:1.5 3:2Set new value
Response[C[CH]_STOPB] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_STOPB=1\r\n
Response: [C1_STOPB] Value is: 1\r\nOK\r\n

Description: This command is used to configure or query the stop bit of the related serial channel.


C[CH]_PARITY(Parity bit)

Command formatParametersFunction Description
AT+C[CH]_PARITY?NilQuery current value
AT+C[CH]_PARITY=parameter0:Nil (default) 1:Odd 2:EvenSet new value
Response[C[CH]_PARITY] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_PARITY=0\r\n
Response: [C1_PARITY] Value is: 0\r\nOK\r\n

Description: This command is used to configure or query the parity of the related serial channel.


C[CH]_SER_C(serial port flow control)

Command formatParametersFunction Description
AT+C[CH]_SER_C?NilQuery current value
AT+C[CH]_SER_C =parameter0: Disable flow control (default)Set new value
Response[C[CH]_SER_C] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_SER_C=0\r\n
Response: [C1_SER_C] Value is: 0\r\nOK\r\n

Description: This command is used to configure or query the serial channel flow control of the related serial channel.


C[CH]_BUF_CLS(Clear Buffer if Connected)

Command formatParametersFunction Description
AT+C[CH]_BUF_CLS?NilQuery current value
AT+C[CH]_BUF_CLS=parameter0: Do not clear the serial port buffer after establishing a connection (default)Set new value
1: Clear the serial port buffer after establishing a connection
Response[C[CH]_BUF_CLS] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_BUF_CLS=1\r\n
Response: [C1_BUF_CLS] Value is: 1\r\nOK\r\n

Description: The module is effective when running in TCP mode and data transparent mode. If the connection suddenly disconnects during data exchange, there may be some data in the serial buffer that has not been sent. This command can be used to determine whether to send this data after the connection is reestablished.


C[CH]_SER_LEN(Serial packaging Length)

Command formatParametersFunction Description
AT+C[CH]_SER_LEN?NilQuery current value
AT+C[CH]_SER_LEN=parameterThe value range is: 0~2048 bytes, default: 0 (not specified Package)Set new value
Response[C[CH]_SER_LEN] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_SER_LEN=10\r\n
Response: [C1_SER_LEN] Value is: 10\r\nOK\r\n

Description: This command sets the package length for each data transmission.


C[CH]_SER_T(Serial data packing Nagle wait time)

Command formatParametersFunction Description
AT+C[CH]_SER_T?NilQuery current value
AT+C[CH]_SER_T=parameterValue range: 0~60000, default: 0 (not subcontracted), unit: msSet new value
Response[C[CH]_SER_T] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_SER_T=1000\r\n
Response: [C1_SER_T] Value is: 1000\r\nOK\r\n

Description: This command sets the serial waiting time. After the waiting time passes, it gathers all the data and transmit in one data package.


C[CH]_IT(Inactivity timeout)

Command formatParametersFunction Description
AT+C[CH]_IT?NilQuery current value
AT+C[CH]_IT=parameterThe time interval for timeout disconnection, with a value range of: 0~60000, unit: ms, default: 0 (disable this function)Set new value
Response[C[CH]_IT] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_IT=1000\r\n
Response: [C1_IT] Value is: 1000\r\nOK\r\n

Description: The command is valid in TCP mode and data transparent mode. When the module operates in TCP mode, whether as a server or client, there may be situations where the other party has disconnected (forced disconnection or network failure), and the module is not aware of the disconnection message and continues to maintain this invalid connection. There will be an error where data cannot be delivered when either party initiates communication.

By setting this parameter, it disconnects the TCP connection when the serial or Ethernet interface does not receive new data within a continuous timeout period during communication. When the value is set to 0, it means disable this function.


C[CH]_TCPAT(TCP keepalive interval)

Command formatParametersFunction Description
AT+C[CH]_TCPAT?NilQuery current value
AT+C[CH]_TCPAT=parameterValue range: 0~255, default: 0 (disable this function), unit: 5sSet new value
Response[C[CH]_TCPAT] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_TCPAT=1\r\n
Response: [C1_TCPAT] Value is: 1\r\nOK\r\n

Description: The module is effective when running in TCP mode and data transparent mode. When using TCP protocol for communication, module will send a "heartbeat detection packet" to the other party at a fixed time period to test whether the connection exists after receiving or sending data communication. If no response is received after sending the 'heartbeat detection packet', the module will automatically disconnect.


Command formatParametersFunction Description
AT+C[CH]_LINK_P?NilQuery current value
AT+C[CH]_LINK_P=parameter0: Do not verify password after TCP connection is established (default)Set new value
1: Verify password after establishing TCP connection
Response[C[CH]_LINK_P] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_LINK_P=1\r\n
Response: [C1_LINK_P] Value is: 1\r\nOK\r\n

Description: The module's serial channel is valid when running in TCP Server mode and data transparent mode. In order to improve communication security, the module will provide a "Connection password verification" function. When the module communicates with the client as a TCP Server and the "Connection Password Verification" function is turned on, the client needs to send the module password as the first packet of data after establishing a connection with the module. If the password is correct, communication can begin; If the password is incorrect, you will be prompted to re-enter the correct password. The module password can be queried and set through the "PASS" command.


Command formatParametersFunction Description
AT+C[CH]_LINK_T?NilQuery current value
AT+C[CH]_LINK_T=parameter0: Establish connection immediately after power on (default)Set new value
1: Establish a connection after receiving data through the serial port
Response[C[CH]_LINK_T] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_LINK_T=1\r\n
Response: [C1_LINK_T] Value is: 1\r\nOK\r\n

Description: This command is valid in TCP Client mode and data transparent mode. This command is used to configure under what conditions the module establishes a connection with TCP Server. When configured as Establish connection after receiving data through serial channel , the module will not initiate a connection to the server until the module's serial channel receives the first packet of data and immediately initiates a connection request to the server. After successful connection, the module's serial channel will send the first packet of data to the server and start normal data transmission mode.


Command formatParametersFunction Description
AT+C[CH]_LINK_M?NilQuery current value
AT+C[CH]_LINK_M=parameter0: Do not send messages (default)Set new value
1: Send module name
2: Send module MAC address
3: Send module IP address
Response[C[CH]_LINK_M] Value is: value\r\nOK\r\n
ExampleCommand: AT+C1_LINK_M=1\r\n
Response: [C1_LINK_M] Value is: 1\r\nOK\r\n

Description: The command is valid in TCP Client mode and is valid in both data transparent mode and AT command transmission data mode. This command is used to configure the information that the module sends immediately after the connection is established.


Management commands

C[CH]_SEND_NUM(Number of bytes sent via serial port)

Command formatParametersFunction Description
AT+C[CH]_SEND_NUM?NilQuery current value
Response[C[CH]_SEND_NUM] Value is: value\r\nOK\r\n
Display range: 0~4294967295
ExampleCommand: AT+C1_SEND_NUM?\r\n
Response: [C1_SEND_NUM] Value is: 2048\r\nOK\r\n

Description: This command is valid when the module is in data transmission mode or AT command transmission mode.


C[CH]_RCV_NUM(Number of bytes received via serial port)

Command formatParametersFunction Description
AT+C[CH]_RCV_NUM?NilQuery current value
Response[C[CH]_RCV_NUM] Value is: value\r\nOK\r\n
Display range: 0~4294967295
ExampleCommand: AT+C1_RCV_NUM?\r\n
Response: [C1_RCV_NUM] Value is: 2048\r\nOK\r\n

Description: This command is valid when the module is in data transmission mode or AT command transmission mode.


C[CH]_NETSEND(Number of bytes sent via network port)

Command formatParametersFunction Description
AT+C[CH]_NETSEND?NilQuery current value
Response[C[CH]_NETSEND] Value is: value\r\nOK\r\n
Display range: 0~4294967295
ExampleCommand: AT+C1_NETSEND?\r\n
Response: [C1_NETSEND] Value is: 2048\r\nOK\r\n

Description: This command is valid when the module is in data transmission mode or AT command transmission mode.


C[CH]_NETRCV(Number of bytes received by the network port)

Command formatParametersFunction Description
AT+C[CH]_NETRCV?NilQuery current value
Response[C[CH]_NETRCV] Value is: value\r\nOK\r\n
Display range: 0~4294967295
ExampleCommand: AT+C1_NETRCV?\r\n
Response: [C1_NETRCV] Value is: 2048\r\nOK\r\n

Description: This command is valid when the module is in data transmission mode or AT command transmission mode.


PRE(List preset values)

Command formatParametersFunction Description
AT+PRE?NilQuery current value
DEFAULT:
[NAME]:WIZ-IP32
[PASS]:admin
[IP]:192.168.1.88
[MARK]:255.255.255.0
[GATEWAY]:192.168.1.1
[DNS]:114.114.114.114
[WEB_PORT]:80
[C1_DOMAIN]:www.w5500.com
[C1_PORT]:5000
[C1_BAUD]:9
[C1_DATAB]:1
[C1_PARITY]:0
[C1_STOPB]:1
[C1_SER_C]:0
[C1_SER_T] :0
[C1_SER_LEN]:0
[C1_CLI_IP1]:192.168.1.99
[C1_CLI_PP1]:5000
[C2_DOMAIN]:www,iwiznet.cn
[C2_PORT]:5001
[C2_BAUD]:9
[C2_DATAB]:1
[C2_PARITY]:0
[C2_STOPB]:1
[C2_SER_C]:0
[C2_SER_T] :0
[C2_SER_LEN]:0
[C2_CLI_IP1]:192.168.1.99
[C2_CLI_PP1]:5000
CURRENT:
[NAME] :WIZ-IP32-xx
[PASS]:admin
[IP]:192.168.1.88
[MARK]:255.255.255.0
[GATEWAY]:192.168.1.1
[DNS]:114.114.114.114
[WEB_PORT]:80
[C1_DOMAIN]:www.w5500.com
[C1_PORT]5000
[C1_BAUD]:9
[C1_DATAB]:1
[C1_PARITY]:0
[C1_STOPB]:1
[C1_SER_C]:0
[C1_SER_T] :0
[C1_SER_LEN]:0
[C1_CLI_IP1]:192.168.1.99
[C1_CLI_PP1]:5000
[C2_DOMAIN]:www.w5500.com
[C2_PORT]:5001
[C2_BAUD]:9
[C2_DATAB]:1
[C2_PARITY]:0
[C2_STOPB]:1
[C2_SER_C]:0
[C2_SER_T] :0
[C2_SER_LEN]:0
[C2_CLI_IP1]:192.168.1.99
[C2_CLI_PP1]:5000
OK

LIST(List all commands)

Command formatParametersFunction Description
AT+LIST?NilQuery current value
[Control Command]
ATAT+ECHOAT+DEBUGMSGEN
AT+NAMEAT+PASSAT+DEFAULT
AT+RESETAT+EXITAT+SAVE
[module Settings Command]
AT+START_MODEAT+C1_OPAT+IP_MODE
AT+IPAT+MARKAT+GATEWAY
AT+DNSAT+C1_PORTAT+C1_BIND
AT+C1_DNSENAT+C1_CLI_IP1AT+C1_CLI_PP1
AT+C1_DOMAINAT+C1_RECONTIMEAT+NETBIOS
AT+C2_OPAT+C2_PORTAT+C2_BIND
AT+C2_DNSENAT+C2_CLI_IP1AT+C2_CLI_PP1
AT+C2_DOMAINAT+C2_RECONTIME
[Management Command]
AT+C1_SEND_NUMAT+C1_RCV_NUMAT+C1_NETSEND
AT+C1_NETRCVAT+C2_SEND_NUMAT+C2_RCV_NUM
AT+C2_NETSENDAT+C2_NETRCVAT+PRE
AT+LISTAT+RUNTIMEAT+VER
AT+MACAT+SNAT+TYPE
AT+WEB_PORT
[Data Transfer Command]
AT+LINKAT+C1_LISTENAT+C1_CONNECT
AT+C1_TCP_STATUSAT+C1_UDPAT+C1_SEND
AT+C1_RLENAT+C1_RCVAT+C1_CLEAR
AT+C1_DISCONAT+C2_LISTENAT+C2_CONNECT
AT+C2_TCP_STATUSAT+C2_UDPAT+C2_SEND
AT+C2_RLENAT+C2_RCVAT+C2_CLEAR
AT+C2_DISCON
OK

RUNTIME(module run time)

Command formatParametersFunction Description
AT+RUNTIME?NilQuery current value
Response[RUNTIME] Value is: value\r\nOK\r\n
Format: ddd-hh-mm-ss, where "d" represents days, "h" represents hours, "m" represents minutes, and "s" represents seconds. The display range is 000-00-00-00~999-23-59-59
ExampleCommand: AT+RUNTIME?\r\n
Response: [RUNTIME] Value is: 003-15-38-42\r\nOK\r\n

VER(Firmware version)

Command formatParametersFunction Description
AT+VER?NilQuery current value
Response[VER] Value is: value\r\nOK\r\n
ExampleCommand: AT+VER?\r\n
Response: [VER] Value is: V1.0\r\nOK\r\n

MAC(module MAC Address)

Command formatParametersFunction Description
AT+MAC?NilQuery current value
Response[MAC] Value is: value\r\nOK\r\n
ExampleCommand: AT+MAC?\r\n
Response: [MAC] Value is: 00.08.DC.11.12.13\r\nOK\r\n

SN(Equipment serial number)

Command formatParametersFunction Description
AT+SN?NilQuery current value
Response[SN] Value is: value\r\nOK\r\n
ExampleCommand: AT+SN?\r\n
Response: [SN] Value is: 20190102-111213\r\nOK\r\n

TYPE(Equipment type)

Command formatParametersFunction Description
AT+TYPE?NilQuery current value
Response[TYPE] Value is: value\r\nOK\r\n
ExampleCommand: AT+TYPE?\r\n
Response: [TYPE] Value is: WIZ-IP32-xx\r\nOK\r\n

WEB_PORT(Web port number)

Command formatParametersFunction Description
AT+WEB_PORT?NilQuery current value
AT+WEB_PORT=parameterSetting range: 1~65535, default: 80Set new value
Response[WEB_PORT] Value is: value\r\nOK\r\n
ExampleCommand: AT+WEB_PORT=80\r\n
Response: [WEB_PORT] Value is: 80\r\nOK\r\n

Description: This port number to access module's web page configuration site through a web browser, and it is not recommended to modify it. If configured with any port number other than 80, when accessing the module through a browser, the address bar should enter "IP: Port", for example: 192.168.1.88:8000.

Note: Some protocols in the Ethernet protocol have default port numbers, which should be avoided. The default occupied port numbers are shown in the appendix.



Detailed description of AT data transmission command

Command formatParametersFunction Description
AT+LINK?NilExecute immediately
Response[LINK] Value is: value\r\nOK\r\n
Explanation: 0: PHY not connected 1: PHY connected
ExampleCommand: AT+LINK?\r\n
Response: [LINK] Value is: 1\r\nOK\r\n

C[CH]_LISTEN(Establish TCP listening)

Command formatParametersFunction Description
AT+C[CH]_LISTENNilExecute immediately
ResponseOK\r\n
TCP listening has been established
Error ResponseError Info\r\n
The module is not in TCP Server mode
ExampleCommand: AT+C1_LISTEN\r\n
Response: OK\r\n

Description: The command is valid when the module is running in TCP Server mode, which means that the command can only be configured correctly when the "C[CH]_OP" command parameter is "0", otherwise an error will be reported. It can be closed through the "DISCON" command.

Note: After configuring this command, it is necessary to check whether the TCP connection has been established through the "C[CH]_TCP_STATUS" command.

C[CH]_CONNECT(Apply for TCP connection)

Command formatParametersFunction Description
AT+C[CH]_CONNECTNilExecute immediately
ResponseOK\r\n TCP connection established
Error ResponseError Info\r\n
The module is not in TCP Client mode, or the connection has timed out
ExampleCommand: AT+C1_CONNECT\r\n
Response: OK\r\n

Description: The command is valid when the module is running in TCP Client mode. This command can only be configured correctly when the parameter of the "C[CH]_OP" command is "1", otherwise an error will be reported. After configuring this command, the module immediately initiates a connection request to the TCP Server. If a TCP connection is not established after 3 seconds, an error message will be reported.

Note: After configuring this command, it is necessary to check whether the TCP connection has been established through the "C[CH]_TCP_STATUS" command.

C[CH]_TCP_STATUS(TCP connection status)

Command formatParametersFunction Description
AT+C[CH]_TCP_STATUS?NilQuery current value
Response[C[CH]_TCP_STATUS] Value is: value\r\nOK\r\n
0: TCP not connected
1: TCP Connected
ExampleCommand: AT+C1_TCP_STATUS?\r\n
Response: [C1_TCP_STATUS] Value is: 1\r\nOK\r\n

Description: This command is valid when running in TCP Server and TCP Client modes for the corresponding serial channel on the device. It is used for checking the TCP connection status.


C[CH]_UDP(Establish UDP communication)

Command formatParametersFunction Description
AT+C[CH]_UDPNilQuery current value
ResponseOK\r\n
UDP communication has been established
Error ResponseError Info\r\n
The module is not in UDP mode
ExampleCommand: AT+C1_UDP\r\n
Response: OK\r\n

Description: The module operates in UDP mode. This command can only be configured correctly when the parameter of the "C[CH]_OP" command is "2", otherwise an error will be reported.


C[CH]_SEND(Number of bytes of data to be sent)

Command formatParametersFunction Description
AT+C[CH]_SEND=parameterSet the length of data to be sent from the serial port, Range: 0~2048, default: 0 (any length)Set new value
Response[C[CH]_SEND] Value is: value\r\nOK\r\n
Example1Assuming the module is in TCP mode and the TCP connection is normal:
Command: AT+C1_TCP_STATUS?\r\n
Response: [C1_TCP_STATUS] Value is: 1\r\nOK\r\n
Command: AT+C1_SEND=5\r\n
Response: [C1_SEND] Value is: 5\r\nOK\r\n
Sending data to module's serial port: 12345 Response: 5
Example2Assuming the module is in TCP mode and the TCP connection is abnormal:
Command: AT+C1_TCP_STATUS?\r\n
Response: [C1_TCP_STATUS] Value is: 0\r\nOK\r\n
Command: AT+C1_SEND=5\r\n
Response: [C1_SEND] Value is: 5\r\nOK\r\n
Sending data to module serial port: 12345 Response: 0

Description:

1 If the module is running in TCP Server or TCP Client mode, before configuring this command, it is necessary to check whether the TCP connection has been established by checking from result of the " TCP_STATUS" command;

2 After successfully configuring the command, the serial port will receive the corresponding return value. The next serial data will be considered as data input and send out data, then it exits the data transmission and enter AT command mode;

3 If the specified sending length is 0, the serial port will default to pack the inputted data at 50ms frame intervals. Starting from the first byte sent through the serial channel, if the idle time of the serial channel exceeds 50ms thereafter, the data will be immediately sent out. If the continuous byte length of the serial channel reaches 2048, the excess will be automatically discarded;

4 If the specified sending length is not 0, the serial channel will be packaged according to its length, and the specified length of characters will be immediately packaged and sent to the module's serial channel. If it exceeds the specified length, the excess part will be automatically discarded; If it is less than the specified length, it will wait indefinitely;

5 After the data is successfully sent from the module's network port, the module's serial channel will immediately output a reply message in the format of "len".len: The number of bytes of data successfully sent from the module's network port, which users can use to determine whether their data has been successfully sent.


C[CH]_RLEN(Number of bytes of data to be received)

Command formatParametersFunction Description
AT+C[CH]_RLEN?NilQuery current value
Response[C[CH]_RLEN] Value is: value\r\nOK\r\n Range: 0~2048
ExampleData to be received: abcdef
Command: AT+C1_RLEN?\r\n
Response: [C1_RLEN] Value is: 6\r\nOK\r\n

Description: This command queries the byte length of the data to be received in the receiving cache of the corresponding channel number network port.


C[CH]_RCV(Receiving data)

Command formatParametersFunction Description
AT+C[CH]_RCV=parameterSpecify the length of data to be received from the serial port, Range: 0~2048, default: 0 (receive all)Set new value and Execute immediately
Response[RCV] Value is: value\r\nOK\r\ndata
Explain: value: Number of received data bytes
data: Received data
ExampleData to be received: abcdef
Command: AT+C1_RCV=0\r\n
Response: [C1_RCV] Value is: 6\r\nOK\r\nabcdef

Description:

1 If the module is running in TCP Server or TCP Client mode, before configuring this command, it is necessary to check whether the TCP connection has been established by checking from result of the " TCP_STATUS" command;

2 After successfully configuring the command, the module serial channel will output data from the network port receiving cache, then exit data reception and enter AT command mode;

3 The size of the cache received by the 3 network ports is 2048 bytes. If the total length of data in the cache received by the network port is equal to 2048 bytes, the network port will no longer receive data;

4 If the length of the data in the cache received by the network port is less than the specified length set by the "RCV" command, it will not be received. Thus, the number of received data bytes is 0.


C[CH]_CLEAR(Clear the network port receiving cache)

Command formatParametersFunction Description
AT+C[CH]_CLEARNilExecute immediately
ResponseOK\r\n
ExampleCommand: AT+C1_CLEAR\r\n
Response: OK\r\n

Description: If the module does not require the network port to receive data from the cache, this command can be used to clear it.


C[CH]_DISCON(Turn off TCP/UDP)

Command formatParametersFunction Description
AT+C[CH]_DISCONNilExecute immediately
ResponseOK\r\n
ExampleCommand: AT+C1_DISCON\r\n
Response: OK\r\n

Description: Close the TCP or UDP connection of the module.


Appendix

Default list of occupied ports in Ethernet protocol

ProtocolPort
Reserve0
TCP port multi-channel server1
Reserve2
ECHO7
Reserve9
Reserve11
Reserve13
Network Status15
FTP20
FTP21
TELNET23
SMTP25
Printer35
Time server37
Name server42
Reserve43
Login Host Protocol49
DNS53
DHCP67
DHCP68
TFTP69
Gopler70
Finger79
HTTP80
Remote TELNET107
SUN111
NNTP119
NTP123
SNMP161
SNMP162
IPX213
Reserve160~223