W7500S2E-R1 serial to Ethernet module Introduction W7500S2E-R1 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 460,800Mbps. W7500S2E-R1 supports WIZS2E ConfigTool (Configuration Tool for Windows(R)), web page configuration and AT command to configure the module. W7500S2E-R1 uses W7500 MCU with hardwired TCP/IP protocol. 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 with auto-negotiation and RJ45 connector 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 firmware upgrade by ConfigTool Specification Serial interface: 3.3V TTL x1: TXD, RXD, GND Default Serial communication parameters o Baud Rate: From 300bps to 460,800bps o Data Bit: 7, 8 o Stop Bit: 1, 2 o Parity: None, Even, Odd o Flow Control: None, CTS/RTS Configuration methods o WIZS2E ConfigTool o Web based (via web browser) o Serial AT command Power supply: Input Power: DC 3.3V Size: 44.45 x 31.75 x 23 (mm) Operating temperature: -40 ~ +85 (Industrial Grade) Storage environment: -40 ~ +85 , 5 ~ 95% RH W7500S2E-R1 user manual I W7500S2E-R1 serial to Ethernet module Document Revision History ersion Date V1.0 2017-09-19 Remarks First release 1. Description of AT+NETBIOS command is revised 2. Parameters of AT+C1_STOPB command is changed to 0:1, 1:2 3. Maximum length of the AT+C1_SER_T command parameter is changed to 5, value range is changed to 0~60000 4. Parameter of the Terminal check (AT) query command is removed 5. Replace all "/n/r " in the text with "\r\n" 6. Maximum length of the AT+C1_BIND command parameter is changed to 1 7. Maximum length of the AT+C1_TCPAT command parameter is changed to 3 8. Description of the AT+NAME command is updated 9. Chapter 2.2: Pin 2 of SW3 description in changes from GND to Vcc; picture has also been modified 10. Updated Figure 2-4 Evaluation Board Reference Design Schematic V1.1 2018-05-30 11. Maximum length of the AT+MAC command parameter is removed 12. Stop Bit is changed to 1, 2 in the specification 13. Power supply is changed to DC 3.3V in the specification 14. Chapter 1.2.2: "upper and lower parts" is changed to "left and right" 15. Chapter 7.2: Baud Rate and Stop Bit is revised 16. Chapter 7.3: Device Name has maximum length 15 bytes 17. Chapter 7.4: Password has maximum length 15 bytes 18. Power supply is changed to DC 3.3V 19. Maximum length of the AT+DEFAULT and AT+RESET command parameters in the list of AT commands is modified to 15 20. Default value of AT+DEBUGMSGEN parameter is modified to 1 21. Chapter 5.3, WIZS2E ConfigTool new function introduction is added 22. All WIZS2E ConfigTool screen captures are updated 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/ W7500S2E-R1 user manual II W7500S2E-R1 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 ......................................................................................................... 1 1.2.3 Thermal Characteristics ..................................................................................... 2 2 HARDWARE DESCRIPTION ....................................................................................... 3 2.1 PIN ASSIGNMENT ........................................................................................................ 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 ...................................................................................................... 8 3.3 UDP MODE ................................................................................................................. 9 4 IP ADDRESS .................................................................................................................. 10 4.1 MODULE IP ADDRESS FACTORY DEFAULT SETTINGS ................................................. 10 4.2 METHOD TO GET THE IP ADDRESS OF THE MODULE ................................................. 10 4.3 MODULE AND HOST COMPUTER NETWORK DETECTION ............................................ 11 4.4 HOW TO SET THE IP ADDRESS OF THE HOST COMPUTER ........................................... 12 5 WIZS2E CONFIGTOOL .............................................................................................. 13 5.1 COLLECT MODULE'S SETTING INFORMATION ........................................................... 13 5.2 MODIFY THE DEVICE SETTINGS ................................................................................ 14 5.3 USEFUL FEATURES .................................................................................................... 14 5.3.1 Switching Ethernet Interface ............................................................................ 14 5.3.2 Right mouse button ........................................................................................... 14 5.4 FACTORY RESET ........................................................................................................ 15 5.4.1 Factory reset setting by software ...................................................................... 15 5.4.2 Factory reset module through AT command ..................................................... 15 5.4.3 Hardware factory reset method ........................................................................ 16 5.5 FIRMWARE UPGRADE ............................................................................................... 16 6 AT COMMAND CONFIGURATION.......................................................................... 17 6.1 AT COMMAND OVERVIEW ......................................................................................... 17 6.2 ENTER AT COMMAND MODE .................................................................................... 18 6.3 AT COMMAND LIST ................................................................................................... 18 6.3.1 System control command list ............................................................................ 18 6.3.2 Control command list........................................................................................ 18 6.3.3 Serial configuration command list.................................................................... 19 6.4 AT COMMAND DETAILS............................................................................................. 21 6.4.1 Basic commands ............................................................................................... 21 W7500S2E-R1 user manual III W7500S2E-R1 serial to Ethernet module 6.4.2 Control commands ............................................................................................ 21 6.4.3 Device configuration command list .................................................................. 23 6.4.4 Serial control command .................................................................................... 28 6.5 AT COMMAND CONFIGURATION EXAMPLES ............................................................. 31 6.5.1 Set into TCP server mode example ................................................................... 31 6.5.2 TCP client mode example ................................................................................. 32 6.5.3 UDP mode example .......................................................................................... 33 7 WEB PAGE CONFIGURATION ................................................................................. 34 7.1 MAIN PAGE ............................................................................................................... 34 7.2 BASIC SETTINGS ....................................................................................................... 36 7.3 ADVANCE SETTINGS ................................................................................................. 37 7.4 DEVICE MANAGEMENT ............................................................................................. 39 8 FIRMWARE UPGRADE .............................................................................................. 41 8.1 W7500S2E-R1 FIRMWARE UPGRADE THROUGH CONFIGTOOL ................................ 41 W7500S2E-R1 user manual IV 1 Introduction 1.1.1 Configuration methods W7500S2E-R1 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 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 one mounting holes. The pin header has pitch 2.54mm. W7500S2E-R1 user manual 1 W7500S2E-R1 serial to Ethernet module Figure 1-1 W7500S2E-R1 dimensions top view Figure 1-2 W7500S2E-R1 dimensions side view 1.2.3 Thermal Characteristics Part Number Grade Operating temperature Storage temperature W7500S2E-R1 Industrial Grade -40 ~ +85 -40 ~ +85 Table 1-3 Thermal characters W7500S2E-R1 user manual 2 W7500S2E-R1 serial to Ethernet module 2 Hardware description 2.1 Pin assignment The following section will introduce W7500S2E-R1 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 2 rows of pin headers on the module as hardware connectors for users. J1 is a 1x12 single row 2.54mm pin and J2 is 1x11 single row 2.54mm pins. Figure 2-2 is the pin assignment of W7500S2E-R1, table 2-1 and 2-2 are the pin header description of W7500S2E-R1 module. Figure 2-1 W7500S2E-R1 module Figure 2-2 W7500S2E-R1 pinout W7500S2E-R1 user manual 3 W7500S2E-R1 serial to Ethernet module Table 2-1 W7500S2E-R1 J1 pin definition Pin No. Pin Name I/O Function 1 NC11 - - 2 NC10 - - 3 NC9 - - 4 NC8 - - 5 DATA_LED O Ethernet Status Indicator 6 TXD O Serial output signal 7 RXD I Serial input signal 8 RTS I/O Serial RTS signal 9 DEFAULT I Active low, pull down over 3s for factory reset 10 RESET I Hardware reset pin 11 GND - GND 12 GND - GND Table 2-2 W7500S2E-R1 J2 pin definition Pin No. Pin Name I/O Function 13 VCC - VCC 14 VCC - VCC 15 LINK_LED O Ethernet link indicator 16 NC7 - - 17 NC6 - - 18 NC5 - - 19 NC4 - - 20 NC3 - - 21 CTS I/O 22 NC2 - - 23 NC1 - - W7500S2E-R1 user manual 4 Serial CTS signal pin W7500S2E-R1 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 W7500S2E-R1. Where Z1-J1 and Z1-J2 are used to plug in the W7500S2E-R1 module, S1-J1 and S1-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) Note: When the evaluation board is connected to the W7500S2E-R1 module, the RJ45 on the evaluation board is disabled automatically. TTL interface (P2) Pin Assignment Pin Signal Pin Signal 5 6 7 8 1 5V 5 3V3 1 2 3 4 2 GND 6 GND 3 TX 7 RTS 4 RX 8 CTS USB Mini Interface (J6) Pin Assignment supply 5 V DC power for the evaluation board only. Note: 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 W7500S2E-R1 Pin Signal Pin Signal 1 5V 3 3V3 2 Vcc W7500S2E-R1 evaluation board buttons introduction Marking Description SW1 (DEFAULT) Press switch for 1-3 seconds for soft reset, over 3 seconds to factory reset SW2 (RESET) Hardware reset button Table 2-4 W7500S2E-R1 evaluation board button description W7500S2E-R1 evaluation board LED description W7500S2E-R1 user manual 5 W7500S2E-R1 serial to Ethernet module 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 W7500S2E-R1 evaluation board LED description Hardware connection explanation W7500S2E-R1 used two sections of pin layouts in 1 x 12 pin and 1 x 11 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 W7500S2E-R1 evaluation board reference schematic W7500S2E-R1 user manual 6 W7500S2E-R1 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 E t h e r n e t W7500S2E-R1 W7500S2E-R1 Serial Serial W7500S2E-R1 Serial User Device User Device User Device Figure 2-5 W7500S2E-R1 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. W7500S2E-R1 user manual 7 W7500S2E-R1 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 Link REQEUST Data Communication TCP/IP RS232 Serial User Device TCP Server Figure 3-1 TCP server mode diagram Figure 3-1 shows, W7500S2E-R1 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. 3.2 TCP client mode TCP Server Link REQUEST Data Communication TCP/IP RS232 Serial User Device TCP Client Figure 3-2 TCP client mode diagram According to figure 3-2, W7500S2E-R1 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. W7500S2E-R1 user manual 8 W7500S2E-R1 serial to Ethernet module 3.3 UDP mode Data Communication without Link TCP/IP RS232 Serial User Device Figure 3-3 UDP mode diagram For UDP mode in Figure 3-3, W7500S2E-R1 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. W7500S2E-R1 user manual 9 W7500S2E-R1 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. W7500S2E-R1 user manual 10 W7500S2E-R1 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. W7500S2E-R1 IP Address 192.168.1.88 W7500S2E-R1 Submask PC Submask 255.255.255.0 and W7500S2E-R1 Subnet PC Subnet Compare 192.168.1.0 Use W7500S2E-R1 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 W7500S2E-R1 user manual 11 W7500S2E-R1 serial to Ethernet module 4.4 How to set 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 W7500S2E-R1 user manual 12 W7500S2E-R1 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 W7500S2E-R1 user manual 13 W7500S2E-R1 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 W7500S2E-R1 user manual 14 W7500S2E-R1 serial to Ethernet module 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 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. W7500S2E-R1 user manual 15 W7500S2E-R1 serial to Ethernet module 5.4.3 Hardware factory reset method 5.4.3.1 Factory reset through evaluation board Figure 5-2 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 5-3 through the module default PIN to restore factory settings W7500S2E-R1 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 W7500S2E-R1 supports host computer firmware upgrade. For detail information, please refer section 8 Firmware upgrade. W7500S2E-R1 user manual 16 W7500S2E-R1 serial to Ethernet module 6 AT command configuration W7500S2E-R1 supports AT command configuration method. This method could only apply when W7500S2E-R1 is in command mode. User needs to send the AT serial command mentioned in this section, W7500S2E-R1 could be modified by requirement. User could use serial terminal or MCU main board that connected with W7500S2E-R1 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, W7500S2E-R1 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\nook\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 W7500S2E-R1 user manual 17 W7500S2E-R1 serial to Ethernet module 6.2 Enter AT command Mode W7500S2E-R1 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 W7500S2E-R1. 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 Typ Features Command Max length Parameters / Description e Echo 0: Close echo AT+ECHO R/W 1 1: Open echo (Default) List of commands AT+LIST R 0 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? W7500S2E-R1 user manual 18 W7500S2E-R1 serial to Ethernet module 6.3.3 Device configuration command list Max Features Command Type Parameters / Description length Device ID AT+SN R 0 Device type AT+TYPE R 0 Queries only: AT+SN? Queries only: AT+TYPE? Reply: W7500S2E-R1 Can set into any characters Device name AT+NAME R/W 15 Device password AT+PASS R/W 15 Default: W7500S2E-R1 Must be numbers, alphabets or the mixed of both; blank 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 0: TCP server (default) Operating mode AT+C1_OP R/W 1 1: TCP 2: UDP 0: AT command mode (default); Start Mode AT+START_MODE R/W 1 IP address (Remote host) AT+C1_CLI_IP1 R/W 15 Default: 192.168.1.99 Port number (Remote host) AT+C1_CLI_PP1 R/W 5 Max: 65535, Default: 5000 DNS server address AT+DNS R/W 15 Default: 114.114.114.114 MAC address AT+MAC R - 1: Data transmission mode Queries only: AT+MAC? Format: 00: 08: DC: XX: XX: XX (factory preset) IP collection method 0: Static IP mode (default) AT+IP_MODE 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 0: Disable (default) 1: Enable Print debug information 0: Disable AT+DEBUGMSGEN R/W 1 1: Enable (default) Only available on TCP client mode Time to reconnect AT+RECONTIME R/W 5 Value range: 0~60000; Unit: ms Default: 0 (reconnect immediately) NetBIOS 0: Disable (default) AT+NETBIOS R/W 1 1: Enable 6.3.3 Serial configuration command list W7500S2E-R1 user manual 19 W7500S2E-R1 serial to Ethernet module Max Features Command Type Parameters / Description length Parameters format: Serial port 1 parameters AT+COM1 R/W 10 [baud],[datab],[parity],[stopb],[c] Default: 7,1,0,1,0 0: 300; 1: 600; 2: 1200; 3: 2400; 4: 4800; 5: 9600; Baud rate 6: 14400; 7: 19200; 8: 38400; AT+C1_BAUD R/W 2 9: 56000; 10: 57600; 11: 115200 (default); 12: 128000; 13: 230400; 14: 256000; 15: 460800 Data bit AT+C1_DATAB R/W 1 Stop bit AT+C1_STOPB R/W 1 0: 7 bit 1: 8 bit (default) 0: 1 (default) 1: 2 Parity bit 0: none (default) AT+C1_PARITY R/W 1 1: odd 2: even Serial flow control 0: none (default) AT+C1_SER_C R/W 1 1: Hardware flow control Only available on TCP modes Clear out serial buffer 0: Keeps data in serial after connection has created AT+C1_BUF_CLS R/W 1 (default) 1: Clear data in serial after connected has created Data packaging (length) Value range: 0~2048 byte; AT+C1_SER_LEN R/W 4 Default: 0 (Disable data packaging by size) Nagle algorithm wait time (ms) Value range: 0~60000, unit: ms; AT+C1_SER_T 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 0: No password is required for TCP connection AT+C1_LINK_P R/W 1 (Default) 1: Required password for TCP connection W7500S2E-R1 user manual 20 W7500S2E-R1 serial to Ethernet module Max Features Command Type Parameters / Description length Only available on TCP client TCP link establishment 0: Reconnect after power up the module (default) AT+C1_LINK_T condition R/W 1 1: Reconnect after received data from serial interface Only available on TCP modes TCP link 0: No message establishment AT+C1_LINK_M message R/W 1 1: Send Device ID 2: Send MAC address 3: Send IP address bytes sent by serial AT+C1_SEND_NU Queries only: AT+C1_SEND_NUM? R 0 M bytes received by serial Counter range: 0 ~ 4,294,967,295 Queries only: AT+C1_RCV_NUM? 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 W7500S2E-R1'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 Parameters / Description AT+EXIT\r\n Nil Return value OK\r\nListening on XXX.XXX.XXX.XXX: XXX \r\n Usage Exit command mode 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. W7500S2E-R1 user manual 21 W7500S2E-R1 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 Nil return value \r\nOK\r\n Usage Query current value 6.4.2.5 List of default / current values (AT+PRE) Command format Parameters / Description Usage AT+PER?\r\n Nil Query current value return value DEFAULT: \r\n\r\nCURRENT: \r\n\r\n 6.4.2.6 Factory reset (AT+DEFAULT) Command format AT+DEFAULT=\r\n Return value Parameters / Description Usage Reset to factory : [device password] 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 Value ranged is 0 to 4,294,967,295. W7500S2E-R1 user manual 22 W7500S2E-R1 serial to Ethernet module 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: