Wiznet W7500S2E Series User Manual Download Page 43

W7500S2E serial to Ethernet module 

W7500S2E user manual 

40 

6.7

 

AT command script examples 

6.7.1

 

TCP server mode script example 

AT\r\n 

OK\r\n 

AT+DEBUGMSGEN=0\r\n 

[DEBUGMSGEN] Value is:0\r\nOK\r\n 

AT+ECHO=0\r\n 

[ECHO] Value is:0\r\nOK\r\n 

AT+START_MODE=1\r\n 

[START_MODE] Value is:1\r\nOK\r\n 

AT+C1_OP=0 \r\n 

[C1_OP] Value is:0\r\nOK\r\n 

AT+IP_MODE=0\r\n 

[IP_MODE] Value is:0\r\nOK\r\n 

AT+IP=192.168.1.88\r\n 

[IP] Value is:192.168.1.88\r\nOK\r\n 

AT+C1_PORT=5000\r\n 

[C1_PORT] Value is:5000\r\nOK\r\n 

AT+RESET=admin\r\n 

OK\r\n 

//Terminal check 

 

//Disable  debug  message 

 

//Echo on 

 

//Configure  start  mode  into  “Data  pass-through  mode” 

 

//Configure into TCP server mode 

 

//Set into static IP mode 

 

//Set local IP address 

 

//Set the local port number 

 

//Save  the  setting,  restart  in  enter  data  pass-through  mode 

 

 

Summary of Contents for W7500S2E Series

Page 1: ...485 transceiver Flexible data packet condition for the serial interface Support DHCP to configure IP address and other network configuration parameters Support DNS for remote server domain name looku...

Page 2: ...and 3 3 Revised structure of documentation V1 1 2019 02 19 Add new Data transfer command Revised structure of documentation Remove obsolete information Updated all images V1 1 1 2019 03 19 Move Facto...

Page 3: ...pass through mode 13 5 WIZS2E ConfigTool 13 5 1 Reading module information 13 5 2 Modify the device settings 14 5 3 Reset the module 14 5 4 Useful features 14 6 Introduction of AT command 16 6 1 AT co...

Page 4: ...3 Voltage input DC 3 3V 4 Operating temperature 40 C 85 C W7500S2E C1 1 W7500 MCU integrated with W7500S2E firmware 2 Operating temperature 40 C 85 C 3 For hardware details please visit the W7500 web...

Page 5: ...trical characteristics VIN 3 3V Table 1 3 W7500S2E Z1 electrical characteristics VIN 5 0V Symbol Types Ratings Min Typical Max Unit VIN Module voltage 4 4 5 0 6 0 V IIN Module current 75 66 55 mA Curr...

Page 6: ...Please refer to the figure below which shows the dimension of the module W7500S2E Z1 layout and dimension Figure 1 1 W7500S2E Z1 dimension top view Figure 1 2 W7500S2E Z1 dimension side view A power L...

Page 7: ...module W7500S2E user manual 4 W7500S2E R1 layout and dimension Figure 1 3 W7500S2E R1 dimension top view Figure 1 4 W7500S2E R1 dimension side view A power LED locates on the top of each module with...

Page 8: ...D O UART TXD signal 7 RXD I UART RXD signal 8 RTS O UART flow control RTS signal 485EN O Configurable as 485 enable pin This function is supported by firmware version is 2 2 or above 9 DEFAULT I Facto...

Page 9: ...l 485EN O Configurable as 485 enable pin This function is supported by firmware version is 2 2 or above 9 DEFAULT I Factory reset pin pull down over 3s 10 RESET I Reset pin pull down over 200ms 11 GND...

Page 10: ...OP 3 TXON 7 4 8 P2 interface pin Assignment Pin Signal Pin Signal 1 5V 5 3V3 2 GND 6 GND 3 TX 7 RTS 4 RX 8 CTS The mini USB Interface J6 pin assignment Note This mini USB connector is only for the pow...

Page 11: ...button over 3 seconds for factory reset SW2 RESET Hardware reset button WIZS2E breakout board LED description Table 2 4 WIZS2E breakout board LED description LED Description ACT Ethernet ACT indicato...

Page 12: ...W7500S2E serial to Ethernet module W7500S2E user manual 9 2 W7500S2E R1 reference schematic Figure 2 5 W7500S2E R1 reference schematic...

Page 13: ...ser manual 10 2 3 Quick testing guide WIZS2E module can convert any devices with serial interface to have Ethernet connectivity easily Figure 2 6 W7500S2E module testing evaluation block diagram TCP I...

Page 14: ...ished 3 2 TCP client mode Figure 3 2 TCP client mode diagram In TCP client mode W7500S2E connects to a preset TCP server If failure to connect it can be configured to re connect continuously They can...

Page 15: ...s 4 If the TCP connection is closed module will act as below In TCP server mode it will listen on a local port again and wait for a TCP client connection In TCP client mode it will reconnect to the pr...

Page 16: ...r details please refer to chapter 5 5 WIZS2E ConfigTool WIZS2E ConfigTool is Windows software compatibles to all WIZS2E modules It can be used to read configure all settings and firmware updating for...

Page 17: ...your configuration and restart 5 3 Reset the module First click the Reset button and then to click the Reset Now button to reset the module without saving any setting 5 4 Useful features Switching PC...

Page 18: ...the list on the left side the function list will appear as shown in the figure below 1 Expand collapse all device details 2 The device list can be sorted by MAC address or device type or device name 3...

Page 19: ...with parameter Format AT command parameter r n These commands are for configure certain settings Example Command AT ECHO 1 r n Response ECHO Value is 1 r n OK r n 3 Read commands Format AT command r n...

Page 20: ...nd symbol continuously in 3 times through the serial port with 1 second time gap both before and after the 6 4 AT command list W7500S2E module serial to Ethernet module supports serial AT command for...

Page 21: ...nt mode 0 Disable default 1 Enable DNSEN DNS for remote host R W 1 0 Disable default 1 Enable C1_CLI_IP1 Remote host IP address R W 15 Default 192 168 1 99 C1_CLI_PP1 Remote host port number R W 5 1 6...

Page 22: ...Disable Default 1 Enable C1_LINK_T Connection Condition R W 1 Valid only in TCP client mode 0 Connect when power on default 1 Connect when receiving data from serial C1_LINK_M Send Hello Message R W 1...

Page 23: ...onnected LISTEN Listening on TCP W CONNECT Initiate TCP connection W TCP_STATUS TCP connection status R 0 TCP closed 1 TCP connected UDP Establish UDP W SEND Send the length W 4 Range 0 2048 Default 0...

Page 24: ...e is 1 r nOK r n In AT command mode echo on means the module could directly respond any input command line to the serial interface Thus this option may help users more easily through serial terminal s...

Page 25: ...and cannot be null Default admin Set Response PASS Value is value r nOK r n Example Command AT PASS Admin1 r n Response PASS Value is Admin1 r nOK r n The password is used for factory reset TCP passwo...

Page 26: ...command mode Command format Parameters Usage AT EXIT Nil Execute Response OK r n Example Command AT EXIT r n Response OK r n It will save the current settings Restart the module and make the settings...

Page 27: ...1 r nOK r n This defines the starting mode after power on or reboot or executing the RESET command C1_OP Operating mode Command format Parameters Usage AT C1_OP Nil Read AT C1_OP parameter 0 TCP Serve...

Page 28: ...16 254 1 maximum length of IP address is 15 bytes This value is effective only if IP configuration mode IP_MODE is in Static IP mode MARK Subnet mask Command format Parameters Usage AT MARK Nil Read...

Page 29: ...t Parameters Usage AT C1_PORT Nil Read AT C1_PORT parameter Local port number Default 5000 Set Response C1_PORT Value is value r nOK r n Example Command AT C1_PORT 5000 r n Response C1_PORT Value is 5...

Page 30: ...st IP address Command format Parameters Usage AT C1_CLI_IP1 Nil Read AT C1_CLI_IP1 parameter Default 192 168 1 99 Set Response C1_CLI_IP1 Value is value r nOK r n Example Command AT C1_CLI_IP1 192 168...

Page 31: ...TIME parameter Range 0 60000 Unit ms Set Default 0 reconnect immediately Response RECONTIME Value is value r nOK r n Example Command AT RECONTIME 1000 r n Response RECONTIME Value is 1000 r nOK r n Th...

Page 32: ...is value r nOK r n Example Command AT C1_BAUD 10 r n Response C1_BAUD Value is 10 r nOK r n C1_DATAB Data bit Command format Parameters Usage AT C1_DATAB Nil Read AT C1_DATAB parameter 0 7 bit 1 8 bit...

Page 33: ...r nOK r n This command with parameter equal 1 enables the hardware serial flow control This may improve the data accuracy for high speed transmission Note This command with parameter equals 2 will ena...

Page 34: ...Inactivity timeout Command format Parameters Usage AT C1_IT Nil Read AT C1_IT parameter Value range 0 60000 unit ms Default 0 disable this function Set Response C1_IT Value is value r nOK r n Example...

Page 35: ...ving data from serial Set Response C1_LINK_T Value is value r nOK r n Example Command AT C1_LINK_T 1 r n Response C1_LINK_T Value is 1 r nOK r n This command is valid only in TCP client mode data pass...

Page 36: ...0 4 294 967 295 Example Command AT C1_RCV_NUM r n Response C1_RCV_NUM Value is 2048 r nOK r n This command is valid for both data pass through mode AT data transfer mode NETSEND Network sent byte Com...

Page 37: ...114 114 WEB_PORT 80 C1_PORT 5000 C1_BAUD 11 115200 C1_DATAB 1 8 C1_PARITY 0 NONE C1_STOPB 0 1 C1_SER_C 0 C1_SER_T 0 C1_SER_LEN 0 C1_CLI_IP1 192 168 1 99 C1_CLI_PP1 5000 CURRENT NAME W7500S2E Z1 PASS...

Page 38: ...n VER Firmware version Command format Parameters Usage AT VER Nil Read Response VER Value is value r nOK r n Example Command AT VER r n Response VER Value is V1 9 r nOK r n MAC MAC address Command for...

Page 39: ...For example http 192 168 1 88 8080 if port is 8080 Note If the module is in TCP server mode the web configuration port must be the difference to the local port number C1_PORT 6 6 AT Data transfer comm...

Page 40: ...e After execute this command TCP connection can be monitor with the TCP_STATUS command or the voltage level of the TCP_STATUS pin This command is supported by firmware version 2 2 and above TCP_STATUS...

Page 41: ...n status before using this command Reference to TCP_STATUS for details If this command execute successfully the serial port will get the response value The next input send to the serial port will be r...

Page 42: ...ata from the network receiving buffer Then the module will be gone back to AT command mode If the data in the network buffer has length equal to 2 048bytes module will not receive further data If the...

Page 43: ...r n AT C1_OP 0 r n C1_OP Value is 0 r nOK r n AT IP_MODE 0 r n IP_MODE Value is 0 r nOK r n AT IP 192 168 1 88 r n IP Value is 192 168 1 88 r nOK r n AT C1_PORT 5000 r n C1_PORT Value is 5000 r nOK r...

Page 44: ...P_STATUS Value is 1 r nOK r n AT SEND 5 r n OK r n Serial sends data 12345 Serial receives 5 TCP server sends data abcdef AT RLEN r n RLEN Value is 6 r nOK r n AT RCV 3 r n RCV Value is 3 r nOK r n ab...

Page 45: ...page At the address field of the browser type the IP address of your module The default IP address of WIZS2E module is 192 168 1 88 You may first search for your module IP by the ConfigTool software F...

Page 46: ...00S2E webserver is 5 minutes After 5 minutes of inactivity re login is required Figure 7 3 Basic Settings page Network Setting Setting Description Default MAC Address MAC address of the module Not con...

Page 47: ...r CTS RTS mode NONE Save Settings Click to save all these settings Reset Click to Restart Need to click Save Settings to apply the setting 7 3 Advance Options Figure below shows the advance settings p...

Page 48: ...rom the Ethernet side If the password is wrong it requires re entering password until it receives a correct password Default No disable Send Hello Message Define message sent when TCP connection succe...

Page 49: ...r new password Maximum for 15 bytes It must be numbers alphabets or the combination of both It does not accept blank as input value Confirm Password Re enter the new password Set Submit button for ren...

Page 50: ...en click Factory Reset button to factory reset the module back to default settings 8 2 By using AT command For details of AT command default to factory reset please refer to the command DEFAULT in sec...

Page 51: ...ure the IP address of the module needs to be in the same subnet with the host computer Then perform the steps below a Click Search b Click the designated module c Click Upload Firmware button d Choose...

Page 52: ...solely responsible for the choice selection and use of WIZnet products and WIZnet assumes no liability for application assistance or the design of Purchasers products No license express or implied to...

Reviews: