User Manual WizFi360 FCC ID:2ATUB-WIZFI360PA https://www.iwiznet.cn Manufacture:WIZnet H.K. LTD.
'RFXPHQW 5HYLVLRQ +LVWRU\ Date Revision Changes 2019.04.04 V1.
'LVFODLPHU DQG &RS\ULJKW 1RWLFH The information in this document, including the URL address for reference, is subject to change without notice. The document is provided "as is" without warranty of any kind, including any warranties of merchantability, fitness for a particular purpose, or non-infringement, and any warranties mentioned in the proposal, specification or sample.
&RQWHQWV 9. RF Power Parameters................................................................................................................. 13 10. Command Description .................................................................................................. 14 10.1 %DVLF $7 &RPPDQGV .............................................................................................................................. 15 10.1.1 Overview ...................................................................
10.2 Wi-Fi AT Commands ................................................................................................................... 22 10.2.1 Overview ......................................................................................................................22 10.2.2 Commands ..................................................................................................................23 10.2.2.1ˊ AT+CWMODE Sets the mode( Station/SoftAP/Station+Softap ) .........................
10.2.2.15. AT+CWDHCP_CUR Enables/Disables DHCP; Configuration Not Saved in the Flash 30 10.2.2.16. AT+CWDHCP_DEF 10.2.2.17. AT+CIPSTA Sets the Current IP Address of the WizFi360 Station .................... 32 10.2.2.18. AT+CIPSTA_CUR Sets the Current IP Address of the WizFi360, Configuration ................................................................................................... 32 Not Saved in the Flash 10.2.2.19. Enables/Disables DHCP; Configuration Saved in the Flash.
10.3.2.1. AT+CIPDOMAIN DNS Function ......................................................................... 38 10.3.2.2. AT+CIPSTART Establishes TCP Connection, UDP Transmission .................. 39 TCP Connection: ............................................................................................................................. 39 10.3.2.3. AT+CIPSEND .................................................................................................. 40 10.3.2.4. AT+CIPSENDEX ............
10.3.2.18. AT+CIPDNS_DEF Flash 46 Sets User-defined DNS Servers; Configuration Saved in the 1. Introduction WizFi360 WiFi module is independently developed by WIZnet. The module integrates 32-bit MCU with a main frequency of up to 80MHz. It supports embedded RTOS,PRNG/SHA1/MD5/RC4/DES/3DES/AES/CRC and other encryption and decryption protocols.The1 MB Flash and WiFi MAC/BB/RF/PA/LNA universal encryption hardware accelerator are integrated, and the PCB onboard antenna scheme of 3D BI is adopted.
2. Features • Support IEEE802.11 b/g/n • Integrated 32-bit embedded Cortex-M3 CPU, operating frequency 80MHz, support RTOS • Integrated TCP/IP stack • Integrated PA/LNA/TR-Switch • Integrated encryption hardware accelerator, support PRNG,SHA1,MD5,RC4,DES,3DES,AES,CRC,RSA • Integrated 2.4G RF transceiverˈsupport IEEE802.
15 GND GND 16 PB10 UART1 RTS 17 PA4 UART0 TX 18 PA5 UART0 RX 19 PB7 IO 20 PB8 IO 21 PB11 UART1 RX 22 PB12 UART1 TX 5.
HT20,MCS0 29 dB HT20,MCS7 10 dB 6.
0x40010800~0x400109FF 0x40010A00~0x40010BFF 0x40010C00~0x40010DFF 0x40010E00~0x40010FFF 0x40011000~0x400111FF 0x40011200~0x400113FF 0x40011400~0x400115FF 0x40011600~0x400117FF 0x40011800~0x400119FF 0x40011A00~0x40011BFF 0x40011C00~0x40011DFF 0x40014000~0x4000BFFF 0x4001C000~0x4003BFFF 0x40013C00~0x5FFFFFFF UART0 UART1 GPIOA Timer WDOG GPIOB PWM I²S 7816/UART2 RSV 7.
PB_8(I²S_M_SCL) PB_9(I²S_M_SDA) PB_10(I²S_M_RL) Slave˖ PB_14(I²S_S_SDA) PB_15(I²S_S_SCL) PB_16(I²S_S_RL) Operates as either Master or Slave, support full duplex; Capable of handling 8, 16, 24, 32 bits word size, sampling frequency is up to 128KHz; Support Mono and stereo audio data; Support I²S and MSB justified data format, support PCM A/B data format; Support DMA data transfer, word access only. 8.
10. Command Description Each command set contains four types of AT commands Type Test Command Command Format AT+=? Description Queries the Set Commands’ internal parameters and their range of values. Query Command Set Command AT+? Returns the current value of parameters. AT+=<...> Sets the value of user-defined parameters in commands, and runs these commands. Execute Command AT+ Runs commands with no user-defined parameters.
10.1 %DVLF $7 &RPPDQGV 10.1.1 Overview No. Commands 1 AT 2 AT+RST Restarts the module 3 AT+GMR Checks version information. 4 ATE 5 AT+RESTORE 6 AT+UART 7 AT+UART_CUR The current UART configuration. 8 AT+UART_DEF The default UART configuration, saved in flash. 9 AT+SYSRAM Checks the available RAM size. 10 AT+CIOMODE Configures the mode of GPIO. 11 AT+CIOWRITE Configures the GPIO output level 12 AT+CIOREAD Checks the GPIO input level.
10.1. 2 Commands 10.1.2.1. AT Tests AT Startup Execute Command AT Response OK - Parameters ˊ AT+RST 10.1.2.2 AT+RST Execute Command OK Response - Parameters ˊ AT+GMR 10.1.2.3 Checks Version Information AT+GMR Execute Command OK • ˖information about the AT version. • ˖information about the SDK version. • ˖the duration of time for compiling the BIN. Response Parameters 10.1.2.
Execute Command Response Note AT+RESTORE OK The execution of this command will reset all parameters saved in flash, and restore the factory default settings of the module. The chip will be restarted when this command is executed. ˊ AT+UART 10.1.2.
Example AT+UART=115200,8,1,0,0 ˊ AT+UART_CUR Current UART 10.1.2.
Execute Command Response Parameters Notes AT+UART_DEF? +UART_DEF:,,,, OK • :UART baud rate • : data bits ▶ 5: 5 bit data ▶ 6: 6 bit data ▶ 7: 7 bit data ▶ 8: 8 bit data • : stop bits ▶ 1: 1bit stop bits ▶ 2: 2bit stop bits • : parity bit ▶ 0: None ▶ 1: Odd ▶ 2: Even • : flow control ▶ 0: flow control is not enabled ▶ 1: enable both RTS and CTS • AT+UART_DEF? will return the actual value of UART c
Example AT+SYSRAM? ˊAT+CIOMODE 10.1.2.10 GPIO Execute Command Response Parameters Example AT+CIOMODE=, OK • ˖Operating mode -1˖sets the GPIO as an output -0˖sets the GPIO as an input AT+CIOMODE=6,1 ˊAT+CIOWRITE 10.1.2.11 of a GPIO Execute Command Response Parameters Example 10.1.2.
Response Parameters WizFi360 User Manual OK
Example WizFi360 User Manual AT+CIOREAD=6
10.2 Wi-Fi AT Commands 10.2.1 Overview No. Commands 1 AT+CWMODE 2 AT+CWMODE_CUR Description Sets the Wi-Fi mode (STA/AP/STA+AP) Sets the Current Wi-Fi mode (STA/AP/STA+AP)ˈ configuration not saved in the flash. 3 AT+CWMODE_DEF Sets the default Wi-Fi mode(STA/AP/STA+AP)ˈconfiguration saved in the flash. 4 AT+CWJAP Connects to an AP 5 AT+CWJAP_CUR Connects to an AP, configuration not saved in the flash. 6 AT+CWJAP_DEF Connects to an AP, configuration saved in the flash.
21 AT+CIPAP_CUR Sets the IP address of the WizFi360 SoftAP, configuration not saved in the flash. 22 AT+CIPAP_DEF Sets the IP address of the WizFi360 SoftAP, configuration saved in the flash. 23 AT+CIPSTAMAC_CUR Sets the IP address of the WizFi360 Station MAC, not configuration saved in the flash. 24 AT+CIPSTAMAC_DEF Sets the IP address of the WizFi360 Station MAC, configuration saved in the flash. 25 AT+CWSTARTSMART Starts SmartConfig. 26 AT+CWSTOPSMART Stops SmartConfig.
Response +CWMODE_CUR: e> List of values OK OK OK : ▶ 1:Station mode Parameters ▶ 2:SoftAP mode ▶ 3:SoftAP+Station mode Note Example • Power on device defaults to Station mode AT+CWMODE_CUR=1 10.2.2.3.
• • Note Examples • • ˖channel ˖Signal strength ASCII. • []˖optional parameter, the target AP’s MAC address, used when multiple APs have the same SSID. • ˖ (IRU UHIHUHQFH RQO\) ▶ 1˖connection timeout. ▶ 2˖wrong password. ▶ 3˖cannot find the target AP. ▶ 4˖connection failed. This command requires Station mode to be enabled.Escape character syntax is needed if SSID or password contains any special characters, such as ,or ” or \.
characters, such as ,or ” or \. Note Examples • If multiple APs have the same SSID, the target AP can be found by BSSID AT+CWJAP_CUR=”WIZnet”,”wiznet2018”,”f4:83:cd:9e:d4:40” 10.2.2.6.
ERROR Parameters Example • ˖determines whether the result of command AT+CWLAP will be listed according to RSSI: • ˖determines the parameters shown in the result of AT+CWLAP; 0 means not showing the parameter corresponding to the bit, and 1 means showing it. ▶ bit 0˖determines whether will be shown in the result of AT+CWLAP. ▶ bit 1˖determines whether will be shown in the result of AT+CWLAP. ▶ bit 2˖determines whether will be shown in the result of AT+CWLAP.
hidden>] Response +CWSAP:,,,,< max conn>, • • • • • Parameters • • Note Example • OK or ERROR : string parameter, SSID of AP : string parameter, length of password: 8 ~ 64 bytes ASCII. : channel ID. : encryption method ▶ 0: OPEN ▶ 2:WPA_PSK ▶ 3:WPA2_PSK []( optional˅˖maximum number of Stations to which WizFi360 SoftAP can be connected; within the range of [1, 4]. []( optional˅˖ ▶ 0: SSID is broadcasted.
▶ 0: SSID is broadcasted. (the defaultsetting) ▶ 1: SSID is not broadcasted Example AT+CWSAP_CUR=”WIZnet”,”wiznet2018”,5,3 10.2.2.11.
enabled. 10.2.2.13. AT+CWQAP Disconnect from the AP Commands Response Parameters AT+CWQAP OK - 10.2.2.14.
Sets WizFi360 Station Bit1: ▶ 2: Sets WizFi360 SoftAP and ▶ 0:Station DHCP is disabled Station ▶ 1:Station DHCP is enabled • : ▶ 0: Disables DHCP ▶ 1: Enables DHCP The configuration changes will not be saved in flash.
10.2.2.17. AT+CIPSTA Sets the Current IP Address of the WizFi360 Commands Response Station AT+CIPSTA? AT+CIPSTA=[,,] +CIPSTA: +CIPSTA: +CIPSTA: OK OK Parameters • • Notes Example Notice˖ • ˖string parameter, he IP address of the Only when the WizFi360 WizFi360 Station Station is connected to an • []˖gateway AP can its IP address be • []˖netmask queried.
- If DHCP is enabled, static IP will be disabled; - Whether it is DHCP or static IP that is enabled depends on the last configuration Example AT+CIPSTA_CUR=”192.168.10.100”,”192.168.10.1”,”255.255.255.0” 10.2.2.19.
• []: netmask. • The configuration changes will be saved in the flash. Currently, WizFi360 only supports class C IP addresses. The Set Command interacts with DHCP-related AT commands (AT+CWDHCP-related commands)˖ - If static IP is enabled, DHCP will be disabled; - If DHCP is enabled, static IP will be disabled; - Whether it is DHCP or static IP that is enabled depends on the last configuration. • • Notes Example AT+CIPAP=”192.168.10.100”,”192.168.10.1”,”255.255.255.0” 10.2.2.21.
Response +CIPAP_DEF˖ +CIPAP_DEF˖ +CIPAP_DEF˖ OK OK • Parameters • : string parameter, the IP address of the WizFi360 SoftAP. []: gateway. • []: netmask. • The configuration changes will be saved in the flash Currently, WizFi360 only supports class C IP addresses.
+CIPSTAMAC_DEF˖ OK Response OK Parameters • ˖string parameter, MAC address of the WizFi360 Station • Notes Example The MAC address of WizFi360 SoftAP is different from that of the WizFi360 Station. Please make sure that you do not set the same MAC address for both of them.
• Note Example Irrespective of whether SmartConfig succeeds or not, before executing any other AT commands,please always call AT+CWSTOPSMART to release the internal memory taken up by SmartConfig AT+CWSTOPSMART 10.2.2.27. AT+CWAUTOCONN Auto-Connects to the AP or Not Command AT+ CWAUTOCONN Response OK ˖ -0: does NOT auto-connect to AP on power-up. Parameters -1: connects to AP automatically on power-up.
10.3 TCP/IP-Related AT Commands 10.3.1 Overview No. Command Description 1 AT+CIPDOMAIN 2 AT+CIPSTART Establishes TCP connection, UDP transmission 3 AT+CIPSEND Sends data 4 AT+CIPSENDEX Sends data 5 AT+CIPCLOSE 6 AT+CIFSR 7 AT+CIPMUX 8 AT+CIPSERVER 9 AT+CIPMODE 10 AT+CIPSTO 11 AT+PING 12 AT+CIUPDATE Upgrades the software through network 13 AT+CIPDINFO Shows remote IP and remote port with +IPD 14 +IPD 15 AT+CIPSNTPCFG Configures the time domain and SNTP server.
Response +CIPDOMAIN: OK or DNS Fail ERROR Parameter : the domain name, length should be less than 64 bytes. AT+CWMODE=1 AT+CWJAP=”WIZnet","wiznet2018” AT+CIPDOMAIN=”www.baidu.com” Example 10.3.2.2.
Parameters AT+CIPSTART=”UDP”,”192.168.4.10”,9527,9527,0 Example 10.3.2.3. AT+CIPSEND Commands Response ERROR If the UDP transmission is already established, the response is: ALREADY CONNECTED • : ID of network connection (0~4), used for multiple connections. • : string parameter indicating the connection type: "TCP", "UDP" • : string parameter indicating the remote IP address. • ˖remote port number. • []: optional; UDP port of WizFi360.
• • Parameters • • 10.3.2.4. - AT+CIPSENDEX Command Response Parameters 10.3.2.5. : ID of the connection (0~4), for multiple connections. : data length, MAX: 2048 bytes. []: remote IP can be set in UDP transmission. []: remote port can be set in UDP transmission. 1. Single connection: (+CIPMUX=0) AT+CIPSENDEX=<1ength> 2. Multiple connections: (+CIPMUX=1) AT+CIPSENDEX=<1inkID>,<1ength> 3. Remote IP and ports can be set in UDP transmission: 4.
will be closed. (In server mode, the ID 5 has no effect.) 10.3.2.6.
Set AT+CIPSERVER=[,] Command OK Response Parameters Notes Example 10.3.2.9. ˖ 0: deletes server. 1: creates server. : port number; 5000 by default. • A TCP server can only be created when multiple connections are activated (AT+CIPMUX=1) • A server monitor will automatically be created when the TCP server is created. • When a client is connected to the server, it will take up one connection and be assigned an ID.
• Notes Example WizFi360 configured as a TCP server will disconnect from the TCP client that does not communicate with it until timeout. • If AT+CIPSTO=0, the connection will never time out. This configuration is not recommended AT+CIPMUX=1 AT+CIPSERVER=1,1001 AT+CIPSTO=10 10.3.2.11. AT+PING Ping Packets Command Response Parameters Notes AT+PING= +
Parameters The command is valid in normal command mode. When the module receives network data, it will send the data through the serial port using the +IPD command. • []˖remote IP, enabled by command AT+CIPDINFO=1. []˖remote port, enabled by command AT+CIPDINFO=1. <1inkID>˖ID number of connection. • <1en>˖data length. • ˖data received. 10.3.2.15.
Saved in the Flash Commands Response Parameters Note Example AT+CIPDNS_CUR=[,ˈ] AT+CIPDNS_CUR? [+CIPDNS_CUR:] OK [+CIPDNS_CUR:] OK • ˖ ▶ 0˖disable to use user-defined DNS servers; ▶ 1˖enable to use user-defined DNS servers • ˖optional parameter indicating the first DNS server; • ˖optional parameter indicating the second DNS serve • For command: AT+CIPDNS_CUR=0 (disable to use user-defined DNS servers), "208.67.
Example AT+CIPDNS_DEF=1ˈ"8.8.8.
11. AT command configuration example 11.1 WizFi 360 Sets up TCP Connection as Station AT\r\n \\Tests AT Startup OK\r\n ATE0\r\n \\ Echo Off OK\r\n AT+CWMODE=1\r\n \\ Set WizFi360 to station OK\r\n AT+CWDHCP=0,1\r\n \\Set WizFi360 to station and open DHCP OK\r\n AT+CWJAP=”wiznetsz”,”wiznetsz”\r\n \\ Connects to an AP OK\r\n 12. &RQWDFW XV WIZnet H.K. Ltd.
Single Module FCC Statement This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. Any Changes or modifications not expressly approved by the party responsible for compliance could void the user's authority to operate the equipment.