W5500S2E-S1 serial to Ethernet module Introduction W5500S2E-S1 is an industrial grade serial to Ethernet module. It supports TCP server, TCP client and UDP three operating modes. The maximum serial baud rate is 1.152Mbps. W5500S2E-S1 supports WIZS2E ConfigTool (Configuration Tool for Windows(R)), web page configuration and AT command to configure the module. W5500S2E-S1 uses the hardwired TCP/IP protocol Ethernet chip W5500. This enable a faster, stable and secure Ethernet connectivity. With reference schematic(s) and guideline(s) in this user manual, it could be greatly reduced the time and difficulty of the hardware design and development when comparing with other approaches. Features 10/100 Mbps Ethernet interface Support TCP server, TCP client and UDP operating modes Flexible serial interface data packaging condition settings Smart Ethernet cable detection and keep alive features As DHCP client to automatically acquire IP address As DNS client to lookup domain name Support NetBIOS allows user to identify module's name Support user password authorization for security Support serial AT command configuration method Built-in web server for browser and remote configuring Provide user-friendly configuration tool program (WIZS2E ConfigTool) Support local and remote firmware upgrade Specification Serial interface: 3.3V TTL x1: TXD, RXD, GND Default Serial communication parameters o Baud Rate: From 1.2Kbps to 1.152Mbps o Data Bit: 7, 8 o Stop Bit: 0.5, 1, 1.5, 2 o Parity: None, Even, Odd o Flow Control: None, CTS/RTS Supporting software: Tool: WIZS2E ConfigTool Configuration methods: WIZS2E ConfigTool, Web based (via web browser), Serial AT command Power supply: DC 3.3V Size: 34.0 x 24.0 x 12.4 (mm) Operating temperature: -40 ~ +85 (Industrial Grade) Storage environment: -40 ~ +85 , 5 ~ 95% RH W5500S2E-S1 user manual W5500S2E-S1 serial to Ethernet module Document Revision History Version Date V1.0 2016/05/06 Remarks Official Release 1. Specification and text description 2. The maximum parameters length of AT+PASS and AT+NAME is changed to 15 3. V1.1 2017/09/15 Add descriptions of AT+START_MODE and AT+DEBUGMSGEN command 4. Replacement some of the figures 5. Updated the evaluation board information 6. Unified the naming of WIZS2E ConfigTool (Configuration tool for Windows(R) ) 1. 2.2 chapters, the SW1 button description; SW3 pin 2 description changed from GND to VCC, the diagram was also modified 2. Replace "/n/r" by "\r\n" 3. Updated Figure 2-4 Evaluation Board reference design schematic diagram 4. Updated all web page screen captures 5. Modified the interpretation of the AT+NETBIOS command 6. Maximum length of AT+DOMAIN parameter changed to 32 7. Maximum parameter length of the AT+C1_SER_T is changed to 5; range of serial frame interval is: 0~60000 V1.2 2018/04/19 8. Maximum parameter length AT+C1_BIND is changed to 1 9. Maximum parameter length AT+C1_TCPAT is changed to 3 10. Modify the description of the AT+NAME command partially 11. The parameter length AT+MAC is removed 12. The maximum parameter length of AT+DEFAULT and AT+RESET is changed to 15 13. Modify the first 6.4.3.22 section module name 14. AT+DEBUGMSGEN default parameter is changed to 1 15. Chapter 2.2 RJ45 is modified from 10P to 8P and the corresponding description is modified 16. Add Chapter 5.3 WIZS2E ConfigTool new features introduction 17. Update all WIZS2E ConfigTool screen captures Copyright notice Copyright (c) WIZnet H.K. Ltd. All rights reserved. Contact E-mail: supports@wiznet.hk For more information, please visit: http://www.wiznet.com.hk/ W5500S2E-S1 user manual W5500S2E-S1 serial to Ethernet module Table of Contents 1 INTRODUCTION ........................................................................................................... 1 1.1.1 Configuration methods ....................................................................................... 1 1.2 SPECIFICATIONS .......................................................................................................... 1 1.2.1 Electrical characteristics .................................................................................... 1 1.2.2 Dimensions ......................................................................................................... 2 1.2.3 Thermal Characteristics ..................................................................................... 2 2 HARDWARE DESCRIPTION ....................................................................................... 3 2.1 PINOUTS AND PIN DESCRIPTION .................................................................................. 3 2.2 WIZS2E EVALUATION BOARD .................................................................................... 5 2.3 QUICK TESTING GUIDE................................................................................................ 7 3 OPERATING MODES .................................................................................................... 8 3.1 TCP SERVER MODE ..................................................................................................... 8 3.2 TCP CLIENT MODE ...................................................................................................... 9 3.3 UDP MODE ............................................................................................................... 10 4 IP ADDRESS ................................................................................................................... 11 4.1 MODULE IP ADDRESS FACTORY DEFAULT SETTINGS .................................................. 11 4.2 METHOD TO GET THE IP ADDRESS OF THE MODULE .................................................. 11 4.3 MODULE AND HOST COMPUTER NETWORK DETECTION ........................................... 12 4.4 HOW TO CONFIG THE IP ADDRESS OF THE HOST COMPUTER ..................................... 13 5 WIZS2E CONFIGTOOL .............................................................................................. 14 5.1 COLLECT MODULE'S SETTING INFORMATION ........................................................... 14 5.2 MODIFY THE DEVICE SETTINGS ................................................................................ 15 5.3 USEFUL FUNCTIONS .................................................................................................. 15 5.3.1 Switching the network interface........................................................................ 15 5.3.2 Right mouse button ........................................................................................... 15 5.4 FACTORY RESET ........................................................................................................ 16 5.4.1 Factory reset setting by software ...................................................................... 16 5.4.2 Factory reset module through AT command ..................................................... 16 5.4.3 Hardware factory reset method ........................................................................ 17 5.5 FIRMWARE UPGRADE ............................................................................................... 17 6 AT COMMAND CONFIGURATION.......................................................................... 18 6.1 AT COMMAND OVERVIEW ......................................................................................... 18 6.2 ENTER AT COMMAND MODE .................................................................................... 19 6.3 AT COMMAND LIST ................................................................................................... 19 6.3.1 System control command list ............................................................................ 19 6.3.2 Control command list........................................................................................ 19 6.3.3 Serial configuration command list.................................................................... 21 6.4 AT COMMAND DETAILS............................................................................................. 22 6.4.1 Basic commands ............................................................................................... 22 W5500S2E-S1 user manual I W5500S2E-S1 serial to Ethernet module 6.4.2 Control commands ............................................................................................ 22 6.4.3 Device configuration command list .................................................................. 24 6.4.4 Serial control command .................................................................................... 29 6.5 AT COMMAND CONFIGURATION EXAMPLES ............................................................. 33 6.5.1 Set into TCP server mode example ................................................................... 33 6.5.2 TCP client mode example ................................................................................. 34 6.5.3 UDP mode example .......................................................................................... 35 7 WEB PAGE CONFIGURATION ................................................................................. 36 7.1 MAIN PAGE ............................................................................................................... 36 7.2 BASIC SETTINGS ....................................................................................................... 38 7.3 ADVANCE SETTINGS ................................................................................................. 39 7.4 FIRMWARE INFORMATION ......................................................................................... 41 7.5 DEVICE MANAGEMENT ............................................................................................. 41 8 FIRMWARE UPGRADE .............................................................................................. 43 8.1 W5500S2E-S1 FIRMWARE UPGRADE THROUGH CONFIGTOOL ................................ 43 8.2 FIRMWARE UPGRADE THROUGH CONFIGURATION WEB PAGE ................................... 44 W5500S2E-S1 user manual II 1 Introduction 1.1.1 Configuration methods W5500S2E-S1 provides three types configuration methods for user to operate with the module. WIZS2E ConfigTool is a computer software configuration tool. It can be installed and run in Windows(R) environment. Web page configuration allows user locally or remotely to configure the module through web browser. AT command configuration support sending serial commands from the mainboard of the embedded device or from the serial terminal to configure the parameters of WIZS2E modules. 1.2 Specifications 1.2.1 Electrical characteristics 1.2.1.1 Voltage and current characteristics The following table 1-1 and 1-2 was the result tested in 25oC environment. Symbol Types VDD I Ratings Min Normal Max Unit Module Voltage 2.97 3.3 3.6 V Module Current 101 106 157 mA Table 1-1 Voltage and current characteristics W5500S2E-S1 user manual 1 W5500S2E-S1 serial to Ethernet module 1.2.1.2 Current characteristics Working Mode Ratings (mA) Working Mode Ratings (mA) Standby 101 100Mbps without connection 157 10Mbps without connection 106 100Mbps with data communication 157 10Mbps with data communication 106 Table 1-2 Current characteristics 1.2.2 Dimensions For fitting the module into your design, please refer to the reference figure 1-1; It shows all the dimensions of the modules. In the figure, it provides the regulation for three dimensions with the distance of left and right pin headers and the location of the four mounting holes. The pin header has pitch 2.54mm. Figure 1-1 W5500S2E-S1 dimensions top view Figure 1-2 W5500S2E-S1 dimensions side view 1.2.3 Thermal Characteristics Part Number Grade Operating temperature Storage temperature W5500S2E-S1 Industrial Grade -40 ~ +85 -40 ~ +85 Table 1-3 Thermal characters W5500S2E-S1 user manual 2 W5500S2E-S1 serial to Ethernet module 2 Hardware description 2.1 Pinouts and pin description The following section will introduce W5500S2E-S1 pin header explanation and the usage of WIZS2E evaluation board. The following figure 2-1 is the appearance of WIZS2E module. From this figure, we could identify there are 3 rows of pin headers on the module as hardware connectors for users. J1 is a 1x7 single row 2.54mm pin and J2 is 2x7 double row 2.54mm pins. Figure 2-2 is the pin assignment of W5500S2E-S1, table 2-1 and 2-2 are the pin header description of W5500S2E-S1 module. Figure 2-1 W5500S2E-S1 module Figure 2-2 W5500S2E-S1 pinout W5500S2E-S1 user manual 3 W5500S2E-S1 serial to Ethernet module Table 2-1 W5500-S2E J1 pin definition Pin No. Pin Name I/O Features 1 LINK_LED O Ethernet Link Indicator 2 ACT_LED O Ethernet Status Indicator 3 ALIVE O Module operational status indicators 4 TXOP O Ethernet connector TXOP pin 5 TXON O Ethernet connector TXON pin 6 RXIP I Ethernet connector RXIP pin 7 RXIN I Ethernet connector RXIN pin Table 2-2 W5500-S2E J2 pin definition Pin No. Pin Header name I/O Features 1 RSTn I 2 CTS I/O Serial CTS signal pin 3 RTS I/O Serial RTS signal pin 4 TXD O Serial output signal pin 5 RXD I Serial input signal pin 6 GND - GND 7 VCC - VCC 8 RSVD - Reserved 9 RSVD - Reserved 10 RSVD - Reserved 11 DEFAULT I 12 RUN O 13 NC - - 14 NC - - Hardware reset pin Pull low voltage to activate. Within 1-3s for module reset, over 3 seconds is factory reset TCP socket connector indicator (Flash: Connecting; Blink: Connected) W5500S2E-S1 user manual 4 W5500S2E-S1 serial to Ethernet module 2.2 WIZS2E evaluation board Figure 2-3 WIZS2E evaluation board WIZS2E evaluation board provides a simple platform for testing and running an application for WIZS2E modules including W5500S2E-S1. Where S1-J1 and S1-J2 are used to plug in the W5500S2E-S1 module, Z1-J1 and Z1-J2 are used to plug in other models of WIZS2E module (s), which are described in the user manuals of the related modules. The evaluation board integrates RJ45, serial TTL and USB mini interfaces. (The following figure shows "x" means vacant) RJ-45 (J5) interface Pin Assignment Pin Signal Pin Signal 1 RXIN 5 x 2 RXIP 6 TXOP 3 TXON 7 x 4 x 8 x Pin Signal Pin Signal 1 5V 5 3V3 2 GND 6 GND 3 TX 7 RTS 4 RX 8 CTS TTL interface (P2) Pin Assignment 5 6 7 8 1 2 3 4 The USB Mini Interface (J6) Pin Assignment Note: supply 5 V DC power for the evaluation board only. Not for debug or communication Pin Signal Pin Signal 1 5V 4 x 2 x 5 GND 3 x SW3 is power supply pin for other modules, it would be leave open for W5500S2E-S1 Pin W5500S2E-S1 user manual 5 Signal 1 5V 2 Vcc 3 3V3 W5500S2E-S1 serial to Ethernet module W5500S2E-S1 evaluation board buttons Marking Description SW1 (DEFAULT) Press switch for 1-3 seconds for module reset, over 3 seconds to factory reset SW2 (RESET) Hardware reset button Figure 2-4 W5500S2E-S1 evaluation board button description W5500S2E-S1 evaluation board LED Marking Description ACT Ethernet status indicator LINK Ethernet connection indicator DATA Ethernet data communication LED, the Blink speed shows the data speed Table 2-5 W5500S2E-S1 evaluation board LED description Hardware connection explanation W5500S2E-S1 used two sections of pin layouts in 1 x 7 pin and 2 x 7 pin designs. This is to avoid plugging the module in the wrong directing which may damage to the module. Figure 2-4 shows the reference schematic of the evaluation board for developing reference. Figure 2-4 W5500S2E-S1 evaluation board reference schematic W5500S2E-S1 user manual 6 W5500S2E-S1 serial to Ethernet module 2.3 Quick testing guide WIZS2E module can upgrades products or devices from serial interface to Ethernet interface. Evaluation board can be used for a quick test before implement the module into the design. By connection the serial interface to the module and Ethernet interface connected to the host computer, the user could easily control the serial device through Ethernet as the figure 2-5. PC Ethernet W5500S2E-S1 W5500S2E-S1 Serial Serial User Device User Device W5500S2E-S1 Serial User Device Figure 2-5 W5500S2E-S1 module testing evaluation block diagram Using LAN cables and USB to Serial (TTL)cables to connect from the host computer and to the respective LAN ports and TTL ports of the evaluation board. This will create a simple testing network; The IP address of the host computer's wired network card is changed according to the 4.4 chapters, the user can send/receive data through the network port, receive/send from the serial port, and conduct a simple testing and evaluation. W5500S2E-S1 user manual 7 W5500S2E-S1 serial to Ethernet module 3 Operating modes WIZS2E module supports TCP server, TCP client and UDP modes; Below demonstrate these operating modes. 3.1 TCP server mode TCP Client Send Link Request Ethernet TCP/IP Communication Bothway Data Communication RS232 Serial Communication User Device TCP Server Figure 3-1 TCP server mode diagram Figure 3-1 shows, W5500S2E-S1 module open a local port to listen TCP requests in TCP server mode. The default port number is 5000 and it is waiting for client connections. After the connection has created, it will start data communication. W5500S2E-S1 user manual 8 W5500S2E-S1 serial to Ethernet module 3.2 TCP client mode TCP Server Send Link Request Ethernet TCP/IP Communication Bothway Data Communication RS232 Serial Communication User Device TCP Client Figure 3-2 TCP client mode diagram According to figure 3-2, W5500S2E-S1 module will starts to connect to TCP server that set in the module for TCP client mode. If connection fails, client will base on reconnection setting condition and try to connect with the TCP server. After its connected, it will start data communication. W5500S2E-S1 user manual 9 W5500S2E-S1 serial to Ethernet module 3.3 UDP mode Bothway Data Communication without Link Ethernet TCP/IP Communication RS232 Serial Communication User Device Figure 3-3 UDP mode diagram For UDP mode in Figure 3-3, W5500S2E-S1 module is required to have the remote IP address and port number to create an UDP communication. UDP mode communicate is not based on "connection". Therefore, it does not guarantee the target device could receive the data correctly or not. Thus, it requires an upper layer communication protocol to communicate for ensuring the data accuracy. However, since UDP mode is a simple communication protocol, it could provide a better communication speed due to less workload on data accuracy. In fact, UDP are not likely to get data error in network environment under normal workload. In this operating mode, both devices are equal, and they do not differentiate into server or client. W5500S2E-S1 user manual 10 W5500S2E-S1 serial to Ethernet module 4 IP address Before using the module, we need to know some parameters like IP address. This module support "Static" and "DHCP" IP collection method. For "Static" mode, user could manually change the IP address, subnet mask & gateway parameters. The emphasis here is that the IP address of the module cannot be the same as the IP address of other devices in the same LAN. i.e. the module will activate DHCP protocol to collect IP address, subnet mask and gateway information from the DHCP server. 4.1 Module IP address factory default settings WIZS2E Serial to Ethernet module's factory default IP address: 192.168.1.88. 4.2 Method to get the IP address of the module No matter forgotten the IP address of the module or the module is working on DHCP mode, the current IP address of the module could be searched using the WIZS2E ConfigTool. The following steps are the method to use WIZS2E ConfigTool to search the IP address for WIZS2E module: 1. Connect the host computer and the module with LAN cable and power up the module. 2. Run the WIZS2E ConfigTool and it shows as the following 4-1 figure. Figure 4-1 WIZS2E ConfigTool interface 3. Press button, it shows the IP address information as the following figure 4-2. W5500S2E-S1 user manual 11 W5500S2E-S1 serial to Ethernet module Figure 4-2 WIZS2E ConfigTool search result 4.3 Module and host computer network detection Before starting to communicate between the WIZS2E module and the host computer, please ensure the host computer and the module are in the same network segment. The factory default setting for IP address and Subnet mask in WIZS2E module are 192.168.1.88 and 255.255.255.0 respectively. User could follow the flow diagram 4-3 to understand the communication procedure between the module and the host computer. If they are in the same network segment, it could communicate with the module. Otherwise, the host computer needs to change its IP address to communicate with the module. W5500S2E-S1 IP Address 192.168.1.88 W5500S2E-S1 Submask PC Submask 255.255.255.0 and W5500S2E-S1 Subnet PC Subnet Compare 192.168.1.0 Use W5500S2E-S1 to Communicate PC IP Address and The Same Subnet Different Subnet Change IP Address Figure 4-3 WIZS2E module and IP segment of host computer flow diagram W5500S2E-S1 user manual 12 W5500S2E-S1 serial to Ethernet module 4.4 How to config the IP address of the host computer The following procedure is based on Windows(R) 7 Operation System. Press "Start" "Control Panel" "Network Sharing Centre" "Changing adaptor setting" "Local connection" Right Click "Properties" Double Click "Internet protocol version 4 (TCP/IPv4)". After all these procedures, you could get into the result as the following figure shows. Please choose "Using the following IP addresses" for inputting the IP address as 192.168.1.99, the subnet mask is 255.255.255.0 and default gateway into 192.168.1.1. The DNS section could ignore. Finally, please click "Enter" for saving these settings and starts to communicate with WIZS2E module. Figure 4-4 Window 7 (Chinese version) IP address setting interface W5500S2E-S1 user manual 13 W5500S2E-S1 serial to Ethernet module 5 WIZS2E ConfigTool WIZS2E ConfigTool is a Windows(R) configuration tool compatibles to W5500S2E and W7500S2E series modules. WIZS2E ConfigTool can be used to search, enquiry and configure W5500S2E and W7500S2E device features and information. 5.1 Collect module's setting information Click the toolbar's button, WIZS2E ConfigTool will search all WIZS2E module that has connected in the same network segment (Direct connect or under the same router). The figure 5-1 shows the result as mentioned. The search section shows all the modules in MAC address format as the parent node for the list of information of WIZS2E module. By pressing the " " button, it shows the detail information about this module. After pressing the MAC address of that specific module, it will list out all the IP address, serial interface settings and other parameters of this module. This information presents on the Basic settings and Advance Option tab that were next to the search section. Note: Prior configuration, it is recommended that you disable other unrelated network adapters in your host computer (including virtual network adapters, if you use the wired network adapter configuration module to turn off the wireless network card) and ensure that all device IP addresses in the LAN are not conflicting. Figure 5-1 WIZS2E ConfigTool basic settings interface W5500S2E-S1 user manual 14 W5500S2E-S1 serial to Ethernet module Figure 5-2 WIZS2E ConfigTool advance options interface 5.2 Modify the device settings After searching the module, user could directly go to "Basic Settings" and "Advance Options" to configure the module. Please press button to save your configuration. 5.3 Useful features 5.3.1 Switching Ethernet interface To solve the issue that it is impossible to determine whether the wired or wireless network interface is currently used when configuring the module, the tool has added a function of switching the network interface. User can set the network card to search and configure according to the actual situation, click "Update IP list!" The list of network interfaces can be updated. 5.3.2 Right mouse button Right-click on the device list on the left, and the function list will appear as shown in the figure below. There are 3 functions: 1. Expand/collapse all device details 2. The searched devices are sorted by MAC/device type/device name 3. "Search again!": This function is convenient for users to keep the original device list unchanged when batch configuring devices, and the newly searched device information is W5500S2E-S1 user manual 15 W5500S2E-S1 serial to Ethernet module list below the original device list. Figure 5-1 Right mouse click menu 5.4 Factory reset If the customer found out some uncertainties with the WIZS2E module, the user could reset the module back to factory default setting to solve the problem. There are three kinds of method to factory: Software (ConfigTool), AT command and hardware reset. 5.4.1 Factory reset setting by software I. In the WIZS2E ConfigTool, please click the module on the search section that needs to factory reset. II. Please press toolbar's factory reset button to reset the module back to default settings. 5.4.2 Factory reset module through AT command For detail information about this AT command (AT+DEFAULT) for factory reset, please refer section 6.4.2.6. W5500S2E-S1 user manual 16 W5500S2E-S1 serial to Ethernet module 5.4.3 Hardware factory reset method 5.4.3.1 Factory reset through evaluation board Figure 5-3 The evaluation board reset button After providing power to the module, please press the DEFAULT button for more than 3 seconds to apply factory reset procedure. 5.4.3.2 Factory reset through module Figure 54 through the module default PIN to restore factory settings W5500S2E-S1 has a restored factory set PIN. After power on the module, pull down the DEFAULT pin for 3 seconds to activate factory default. 5.5 Firmware Upgrade W5500S2E-S1 supports host computer firmware upgrade and remote firmware upgrade features through web page. For detail information, please refer section 8 Firmware upgrade. W5500S2E-S1 user manual 17 W5500S2E-S1 serial to Ethernet module 6 AT command configuration W5500S2E-S1 supports AT command configuration method. This method could only apply when W5500S2E-S1 is in command mode. User needs to send the AT serial command mentioned in this section, W5500S2E-S1 could be modified by requirement. User could use serial terminal or MCU main board that connected with W5500S2E-S1 for applying these configurations. 6.1 AT command overview AT command is case insensitive. Except the "+++" command, all other commands are starting with string "AT". These commands activate after received CRLF (Carriage-Return Line-Feed). This means "\r\n" ("0x0d 0x0a" in HEX). These commands and related parameters are defined. Sending wrong characters or sending in the inappropriate format will return an error. AT commands have 4 types: 1. +++ Exit from data mode and changed to command mode. 2. Command without parameter Format: AT+ \r\n, No extra parameters or symbol after the command. For example: AT+EXIT\r\n. 3. Query Command Format: AT+?\r\n, this kind of command is checking the command's parameter value. In example: AT+ECHO?\r\n. 4. Commands with parameter Format: AT=,,...\r\n this will set the command's parameter value. Based on users AT command inputs, W5500S2E-S1 will reply related return value. These values included correct and error message as showed on the following 6-1 table. Return Value Type Correct Input message Wrong Input Message Return Value Meaning [Command] Value is: \r\nOK\r\n Command execute correctly Command Invalid\r\nERROR\r\n Command Invalid \r\n Invalid parameter input Password Error\r\nERROR\r\n Password Error Table 6-1 AT command return value list W5500S2E-S1 user manual 18 W5500S2E-S1 serial to Ethernet module 6.2 Enter AT command Mode W5500S2E-S1 has two modes, AT command mode and data mode. In AT command mode, user could use serial terminal or through user's MCU main board to configure the parameters of the module. Command enter will return a value (In echo mode, it will show the serial message). In data mode, all the commands except the "+++" would be ignored to the module. Thus, entering the "+++" command will change the module into AT command mode. Note: "+++" command rules: It needs to send "+" symbol continuously in 3 times to through serial interface to the module. This command requires 1 second gap each before and after this command has entered to activate the correct response from W5500S2E-S1. If not, it will consider as user's data input. This command does not require CRLF (Carriage-Return Line-Feed)(\r\n). The factory default setting of the module is in AT command mode. 6.3 AT command list The following list is the AT command (case insensitive)list and related return value that supports by WIZS2E module. The type "R" stands for read only. "R/W" means it could read and write. "< >" it means mandatory parameter. "[ ]" it means optional parameters. AT commands are classified into four categories: Basic commands, Control commands, device configuration commands and serial configuration commands 6.3.1 System control command list Features Command Terminal check AT Entering command mode +++ Exit command mode AT+EXIT 6.3.2 Control command list Features Command Type Max length Echo AT+ECHO R/W 1 Parameters / Description 0: Close echo 1: Open echo (Default) List of commands AT+LIST R - Queries only: AT+LIST? List of default / current values AT+PRE R 0 Queries only: AT+PRE? Factory reset AT+DEFAULT W 15 Required Password (Case sensitive) Reset AT+RESET W 15 Required Password (Case sensitive) Ethernet send counter AT+NETSEND R 0 Queries only: AT+NETSEND? Ethernet receive counter AT+NETRCV R 0 Queries only: AT+NETRCV? Device uptime AT+RUNTIME R 0 Queries only: AT+RUNTIME? Firmware version AT+VER R 0 Queries only: AT+VER? W5500S2E-S1 user manual 19 W5500S2E-S1 serial to Ethernet module 6.3.3 Device configuration command list Features Command Type Max length Device ID AT+SN R 0 Device type AT+TYPE R 0 Device name AT+NAME R/W 15 Parameters / Description Queries only: AT+SN? Queries only: AT+TYPE? Reply: W5500S2E-S1 Can set into any characters Default: W5500S2E-S1 Device password AT+PASS Must be numbers, alphabets or the mixed of both; blank R/W 15 input is not allowed Device IP address AT+IP R/W 15 Default: 192.168.1.88 Local port number AT+C1_PORT R/W 5 Maximum: 65535, default: 5000 Only available on TCP Client mode: Local port binding AT+C1_BIND R/W 1 0: Disable 1: Enable Device subnet mask AT+MARK R/W 15 Default: 255.255.255.0 Device gateway AT+GATEWAY R/W 15 Default: 192.168.1.1 Operating mode AT+C1_OP 0: TCP server (default) R/W 1 1: TCP Client 2: UDP Start Mode AT+START_MO DE IP address (Remote AT+C1_CLI_I host) P1 Port number AT+C1_CLI_P (Remote host) P1 DNS server address MAC address 0: AT command mode (default); R/W 1 1: Data mode R/W 15 Default: 192.168.1.99 R/W 5 Max: 65535, Default: 5000 AT+DNS R/W 15 Default: 114.114.114.114 AT+MAC R - Queries only: AT+MAC? Format: 00:08:DC:XX:XX:XX (factory preset) IP collection method AT+IP_MODE 0: Static IP mode (default) R/W 1 1: DHCP mode Web port number AT+WEB_PORT R/W 5 Max: 65535, Default: 80 Remote host name AT+DOMAIN R/W 32 Default: www.iwiznet.cn DNS AT+DNSEN R/W 1 Print debug AT+DEBUGMSG R/W 1 information Time to reconnect EN 0: Disable (default) 0: Disable 1: Enable (default) Only available on TCP client mode AT+RECONTIM E 1: Enable R/W 5 Value range: 0~60000; Unit: ms Default: 0 (reconnect immediately) NetBIOS AT+NETBIOS 0: Disable (default) R/W 1 1: Enable W5500S2E-S1 user manual 20 W5500S2E-S1 serial to Ethernet module 6.3.3 Serial configuration command list Features Command Type Max length Parameters / Description Parameters format: Serial port 1 parameters AT+COM1 R/W 10 [baud],[datab],[parity],[stopb],[c] Default: 7,1,0,1,0 0: 1200; 1: 2400; 2: 4800; 3: 9600; 4: 14400; 5: 19200; Baud rate AT+C1_BAUD 6: 38400; 7: 56000; 8: 57600; R/W 2 9: 115200 (default); 10: 128000; 11: 234000; 12: 256000; 13: 468000; 14: 921600; 15: 1152000 Data bit AT+C1_DATAB R/W 1 Stop bit AT+C1_STOPB R/W 1 0: 7 bit 1: 8 bit (default) 0: 0.5 2: 1.5 1: 1 (default) Parity bit AT+C1_PARITY 0: none (default) R/W 1 1: odd Serial flow control AT+C1_SER_C 3: 2 R/W 1 2: even 0: none (default) 1: Hardware flow control Only available on TCP modes Clear out serial buffer AT+C1_BUF_CL S 0: Keeps data in serial after connection has R/W 1 created (default) 1: Clear data in serial after connected has created Data packaging (length) Nagle algorithm wait time (ms) AT+C1_SER_LE N AT+C1_SER_T Value range: 0~2048 byte; R/W 4 Default: 0 (Disable data packaging by size) Value range: 0~60000, unit: ms; R/W 5 Default: 0 (Disable data packaging by period) Only available on TCP modes Inactivity time (ms) AT+C1_IT R/W 5 Value range: 0 ~ 60000, unit: ms; Default: 0 (disable this function) Only available on TCP modes TCP keep alive time (ms) AT+C1_TCPAT R/W 3 Value range: 0~255, unit 5s; Default: 0 (disable this function) Only available on TCP server mode TCP authentication AT+C1_LINK_P 0: No password is required for TCP connection R/W 1 (Default) 1: Required password for TCP connection W5500S2E-S1 user manual 21 W5500S2E-S1 serial to Ethernet module Features Command Type Max length Parameters / Description Only available on TCP client TCP link establishment condition 0: Reconnect after power up the module (default) AT+C1_LINK_T R/W 1 1: Reconnect after received data from serial interface Only available on TCP modes TCP link establishment message 0: No message AT+C1_LINK_M R/W 1 1: Send Device ID 2: Send MAC address 3: Send IP address bytes sent by serial AT+C1_SEND_NUM Queries only: AT+C1_SEND_NUM? R 0 Counter range: 0 ~ 4,294,967,295 bytes received by serial AT+C1_RCV_NUM Queries only: AT+C1_RCV_NUM? R 0 Counter range: 0 ~ 4,294,967,295 6.4 AT command details 6.4.1 Basic commands 6.4.1.1 Terminal check (AT) Command format AT return value Parameters / Description Nil Usage Terminal check OK\r\n Check the terminal device is it working. If it is working normally with the module, it will return "OK" value. If the terminal is not working, it will not return anything. 6.4.2 Control commands 6.4.2.1 Enter command mode (+++) Command format +++ Return value Parameters / Description Nil Usage Exit from data mode AT-Command Interpreter ready\r\n Under W5500S2E-S1's data mode, transmitting "+++" through serial interface in the same time will change the module from data mode to command mode. 6.4.2.2 Exit command mode (AT+EXIT) Command format AT+EXIT\r\n Return value Parameters / Description Nil Usage Exit command mode OK\r\nListening on XXX.XXX.XXX.XXX: XXX \r\n After finished configured the settings in command mode, user needs to input "AT+EXIT\r\n" for saving the settings and exit from the command mode to data mode. Any updated parameter in this session will only be saved into EEPROM after executing this command. W5500S2E-S1 user manual 22 W5500S2E-S1 serial to Ethernet module 6.4.2.3 Echo (AT+ECHO) Command format Parameters / Description AT+ECHO=\r\n Usage Define new value 0: Close Echo feature AT+ECHO?\r\n Query current value 1: Open Echo feature (default) Return value [ECHO] Value is: \r\nOK\r\n Echo means WIZS2E module could directly return any input values to the serial interface. Thus, this option may help some users working more easily through serial terminal software. However, this may cause trouble if the serial is connected to an embedded system. Turn off this function in this case. 6.4.2.4 List of commands (AT+LIST) Command format Parameters / Description AT+LIST?\r\n Usage Nil return value Query current value \r\nOK\r\n 6.4.2.5 List of default / current values (AT+PRE) Command format AT+PER?\r\n return value Parameters / Description Usage Nil Query current value DEFAULT:\r\n\r\nCURRENT:\r\n\r\n 6.4.2.6 Factory reset (AT+DEFAULT) Command format Parameters / Description AT+DEFAULT=\r\n Usage Reset to factory : [device password] Return value default settings OK\r\n\r\n Exact password must be imputed to execute this command. When this command is successfully executed, the module restores the factory default settings and enters to AT command mode. Device password can be queried and set through "AT+PASS". 6.4.2.7 Reset (AT+RESET) Command format AT+RESET=\r\n Return value Parameters / Description Usage : [device password] Reset the module OK\r\n\r\n Exact password must be imputed to execute this command. The module will be in data mode after reset. Device password can be queried and set through "AT+PASS". 6.4.2.8 Ethernet send counter (AT+NETSEND) Command format AT+NETSEND?\r\n Return value Description Usage Nil Query the byte of data sent by Ethernet interface [NETSEND] Value is: \r\nOK\r\n W5500S2E-S1 user manual 23 W5500S2E-S1 serial to Ethernet module Value ranged is 0 to 4,294,967,295. 6.4.2.9 Ethernet receive counter (AT+NETRCV) Command format AT+NETRCV?\r\n return value Description Nil Usage Query the byte of data received from Ethernet interface [NETRCV] Value is: \r\nOK\r\n Value ranged is 0 to 4,294,967,295. 6.4.2.10 Device uptime (AT+RUNTIME) Command format AT+RUNTIME?\r\n Return value Description No Usage Query current value [RUNTIME] Value is: