WizFi320 User Manual WizFi320 User Manual (Version 0.1) FCC ID : 2AKKW-WIZFI320 © 2021 WIZnet Co., Ltd. All Rights Reserved. For more information, please visit our website at http://www.wiznet.io/ © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual Document Revision History Version Date 0.1 2021/06/10 Revision Description Initial draft © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual Contents 1. 2. 3. 4. 5. Overview ................................................................................................................................... 4 Pin Definitions ........................................................................................................................... 6 2.1 Pin Layout ....................................................................................................6 2.2 Pin Description ........................................
WizFi320 User Manual 1. Overview WizFi320 is a powerful, generic Wi-Fi+BT+BLE MCU module that targets a wide variety of applications ranging from low-power sensor networks to the most demanding tasks. At the core of this module is the ESP32-DOWD-V3 chip. The chip embedded is designed to be scalable and adaptive. There are two CPU cores that can be individually controlled, and the CPU clock frequency is adjustable from 80 MHz to 240 MHz.
WizFi320 User Manual AFH Hardware Audio CVSD and SBC Module interfaces UART, SPI, SDIO, I²C, I²S, LED PWM, GPIO, ADC, DAC On-chip sensor Hall sensor Integrated crystal 40 MHz crystal Integrated SPI flash 4MB Operating voltage/Power supply 3.0 V~3.6V Operating current Average: 80 mA Minimum current delivered by power u l Recommended operating temperature r n Package size 500 mA (16±0.10) mm x (24±0.10) mm x (3±0.
WizFi320 User Manual 2. Pin Definitions 2.1 Pin Layout Figure 1: WizFi320 Pin Layout (Top View) © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual 2.2 Pin Description WizFi320 has 38 pins. See pin definitions in Table 2. Table 2: Pin Definitions Name No. Type Function EN 1 I Module-enable signal. Active high.
WizFi320 User Manual 3. Functional Description This chapter describes the modules and functions integrated in WizFi320. 3.1 CPU and Internal Memory ESP32-DOWD-V3 contains two low-power Xtensa® 32-bit LX6 microprocessors. The internal memory includes: • 448 KB of ROM for booting and core functions. • 520 KB of on-chip SRAM for data and instructions.
WizFi320 User Manual 4. Electrical Characteristics 4.1 Absolute Maximum Ratings Stresses beyond the absolute maximum ratings listed in Table 3 below may cause permanent damage to the device. These are stress ratings only, and do not refer to the functional operation of the device that should follow the recommended operating conditions. Table 3: Absolute Maximum Ratings Symbol Parameter Min Max Unit VDD33 Power supply voltage -0.3 3.
WizFi320 User Manual © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual Notes: 1. Please see Appendix IO_MUX of ESP32 Datasheet for IO’s power domain. VDD is the I/O voltage for a particular power domain of pins. 2. For VDD3P3_CPU and VDD3P3_RTC power domain, per-pin current sourced in the same domain is gradually reduced from around 40 mA to around 29 mA, VOH>=2.64 V, as the number of current-source pins increases.3. Pins occupied by flash and/or PSRAM in the VDD_SDIO power domain were excluded from the test. 4.
WizFi320 User Manual 4.5 BLE Radio 4.5.1 Receiver Table 7: Receiver Characteristics – BLE PARAMETER Sensitivity @0.1% BER Maximum received signal @0.
WizFi320 User Manual 4.6 Reflow Profile Figure2: Reflow Profile © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual 4.7 Recommended PCB Land Pattern © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual 5. testing Guide line 5.1 Peripheral Circuit Reference Design © Copyright 2021 WIZnet Co., Ltd. All rights reserved.
WizFi320 User Manual 5.2 Wi-Fi AT Commands • AT+CWMODE: Set the Wi-Fi mode (Station/SoftAP/Station+SoftAP). • AT+CWSTATE: Query the Wi-Fi state and Wi-Fi information. • AT+CWJAP: Connect to an AP. • AT+CWRECONNCFG: Query/Set the Wi-Fi reconnecting configuration. • AT+CWLAPOPT: Set the configuration for the command AT+CWLAP. • AT+CWLAP: List available APs. • AT+CWQAP: Disconnect from an AP. • AT+CWSAP: Query/Set the configuration of an ESP SoftAP.
WizFi320 User Manual Query the Wi-Fi mode of ESP devices. Command: AT+CWMODE? Response: +CWMODE: OK Set Command Function: Set the Wi-Fi mode of ESP devices. Command: AT+CWMODE=[,] Response: OK Parameters • • : o 0: Null mode. Wi-Fi RF will be disabled. o 1: Station mode. o 2: SoftAP mode. o 3: SoftAP+Station mode.
WizFi320 User Manual Example AT+CWMODE=3 AT+CWSTATE: Query the Wi-Fi state and Wi-Fi information Query Command Function: Query the Wi-Fi state and Wi-Fi information of ESP devices. Command: AT+CWSTATE? Response: +CWSTATE:,<"ssid"> OK Parameters • : current Wi-Fi state. o 0: ESP station has not started any Wi-Fi connection. o 1: ESP station has connected to an AP, but does not get an IPv4 address yet. o 2: ESP station has connected to an AP, and got an IPv4 address.
WizFi320 User Manual Command: AT+CWJAP? Response: +CWJAP:,,,,,,, , OK Set Command Function: Connect an ESP station to a targeted AP.
WizFi320 User Manual +CWJAP: ERROR Parameters • : the SSID of the target AP. o • • • • • Escape character syntax is needed if SSID or password contains special characters, such , , " , or \\ . : password, MAX: 64-byte ASCII. : the MAC address of the target AP. It cannot be omitted when multiple APs have the same SSID. : channel. : signal strength. : PCI Authentication.
WizFi320 User Manual o bit 0: PMF capable, advertizes support for protected management frame. Device will prefer to connect in PMF mode if other device also advertizes PMF capability. o bit 1: PMF required, advertizes that protected management frame is required. Device will not associate to non-PMF capable devices. • : (for reference only) o 1: connection timeout. o 2: wrong password. o 3: cannot find the target AP. o 4: connection failed. o others: unknown error occurred.
WizFi320 User Manual Because of the parallel timing, this print may be before or after OK , or it may not be printed because the AP does not support IPv6. Example // If the target AP's SSID is "abc" and the password is "0123456789", the command should be: AT+CWJAP="abc","0123456789" // If the target AP's SSID is "ab\,c" and the password is "0123456789"\", the command should be: AT+CWJAP="ab\\\,c","0123456789\"\\" // If multiple APs all have the SSID of "abc", the target AP can be found by BSSID: AT+CWJAP=
WizFi320 User Manual o 0: The ESP station will not reconnect to the AP when disconnected. o [1,7200]: The ESP station will reconnect to the AP at the specified interval when disconnected. • : the number of attempts the ESP device makes to reconnect to the AP. This parameter only works when the parameter is not 0. Default: 0. Maximum: 1000. o 0: The ESP station will always try to reconnect to AP.
WizFi320 User Manual showing the corresponding parameters; if you set them as 0, it means NOT showing the corresponding parameters. • o bit 0: determine whether will be shown. o bit 1: determine whether will be shown. o bit 2: determine whether will be shown. o bit 3: determine whether will be shown. o bit 4: determine whether will be shown. o bit 5: determine whether will be shown. o bit 6: determine whether will be shown.
WizFi320 User Manual Example // The first parameter is 1, meaning that the result of the command AT+CWLAP will be ordered according to RSSI; // The second parameter is 31, namely 0x1F, meaning that the corresponding bits of are set to 1. All parameters will be shown in the result of AT+CWLAP.
WizFi320 User Manual • : string parameter showing SSID of the AP. • : signal strength. • : string parameter showing MAC address of the AP. • : channel. • : Wi-Fi scan type: • o 0: active scan o 1: passive scan : the minimum active scan time per channel. Unit: millisecond. Range [0,1500]. If the scan type is passive, this parameter is invalid. • : the maximum active scan time per channel. Unit: millisecond. Range [0,1500].
WizFi320 User Manual AT+CWLAP="Wi-Fi" AT+CWQAP: Disconnect from an AP Execute Command Command: AT+CWQAP Response: OK AT+CWSAP: Query/Set the configuration of an ESP SoftAP Query Command Function: Query the configuration parameters of an ESP SoftAP. Command: AT+CWSAP? Response: +CWSAP:,,,,, OK Set Command Function: Set the configuration of an ESP SoftAP.
WizFi320 User Manual • o 2: WPA_PSK o 3: WPA2_PSK o 4: WPA_WPA2_PSK []: maximum number of stations that ESP SoftAP can connect. Range: [1,10]. • []: o 0: broadcasting SSID (default). o 1: not broadcasting SSID. Notes • This command works only when AT+CWMODE=2 or AT+CWMODE=3. • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1.
WizFi320 User Manual Disconnect all stations that are connected to the ESP SoftAP. Command: AT+CWQIF Response: OK Set Command Function: Disconnect a specific station from the ESP SoftAP. Command: AT+CWQIF= Response: OK Parameter • : MAC address of the station to disconnect. AT+CWDHCP: Enable/Disable DHCP Query Command Command: AT+CWDHCP? Response: Set Command Function: Enable/disable DHCP. Command: AT+CWDHCP=, Response: OK © Copyright 2021 WIZnet Co., Ltd.
WizFi320 User Manual Parameters • • • : o 0: disable o 1: enable : o Bit0: Station DHCP o Bit1: SoftAP DHCP : the status of DHCP o o o Bit0: 0: Station DHCP is disabled. 1: Station DHCP is enabled. 0: SoftAP DHCP is disabled. 1: SoftAP DHCP is enabled. Bit1: Bit2 (ESP32 only): 0: Ethernet DHCP is disabled. 1: Ethernet DHCP is enabled. Notes • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1.
WizFi320 User Manual +CWDHCPS=,, OK Set Command Function: Set the IP address range of the ESP SoftAP DHCP server. Command: AT+CWDHCPS=,,, Response: OK Parameters • : o 1: Enable DHCP server settings. The parameters below have to be set. o 0: Disable DHCP server settings and use the default IP address range. • : lease time. Unit: minute. Range [1,2880].
WizFi320 User Manual Command: AT+CWAUTOCONN= Response: OK Parameters • : o 1: Enable automatic connection to an AP when powered on. (Default) o 0: Disable automatic connection to an AP when powered on. Note • The configuration changes will be saved in the NVS area. Example AT+CWAUTOCONN=1 AT+CWAPPROTO: Query/Set the 802.
WizFi320 User Manual Note • Currently ESP devices only support 802.11b or 802.11bg or 802.11bgn mode. • By default, PHY mode of ESP8266 device is 802.11bg mode, and PHY mode of non ESP8266 device is 802.11bgn mode. AT+CWSTAPROTO: Query/Set the 802.11 b/g/n Protocol Standard of Station Mode Query Command Command: AT+CWSTAPROTO? Response: +CWSTAPROTO= OK Set Command Command: AT+CWSTAPROTO= Response: OK Parameters • : o bit0: 802.11b protocol standard. o bit1: 802.
WizFi320 User Manual Query the MAC address of the ESP Station. Command: AT+CIPSTAMAC? Response: +CIPSTAMAC: OK Set Command Function: Set the MAC address of an ESP station. Command: AT+CIPSTAMAC= Response: OK Parameters • : string parameter showing MAC address of an ESP station. Notes • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1. • The MAC address of ESP SoftAP is different from that of the ESP Station.
WizFi320 User Manual Query the MAC address of the ESP SoftAP. Command: AT+CIPAPMAC? Response: +CIPAPMAC: OK Set Command Function: Set the MAC address of the ESP SoftAP. Command: AT+CIPAPMAC= Response: OK Parameters • : string parameter showing MAC address of the ESP SoftAP. Notes • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1. • The MAC address of ESP SoftAP is different from that of the ESP station.
WizFi320 User Manual Query the IP address of the ESP Station. Command: AT+CIPSTA? Response: +CIPSTA:ip:<"ip"> +CIPSTA:gateway:<"gateway"> +CIPSTA:netmask:<"netmask"> +CIPSTA:ip6ll:<"ipv6 addr"> +CIPSTA:ip6gl:<"ipv6 addr"> OK Set Command Function: Set the IPv4 address of the ESP station. Command: AT+CIPSTA=<"ip">[,<"gateway">,<"netmask">] Response: OK Parameters • <”ip”>: string parameter showing the IPv4 address of the ESP station. • <”gateway”>: gateway. • <”netmask”>: netmask.
WizFi320 User Manual o The last configuration overwrites the previous configuration. Example AT+CIPSTA="192.168.6.100","192.168.6.1","255.255.255.0" AT+CIPAP: Query/Set the IP Address of an ESP SoftAP Query Command Function: Query the IP address of the ESP SoftAP. Command: AT+CIPAP? Response: +CIPAP:ip:<"ip"> +CIPAP:gateway:<"gateway"> +CIPAP:netmask:<"netmask"> +CIPAP:ip6ll:<"ipv6 addr"> +CIPAP:ip6gl:<"ipv6 addr"> OK Set Command Function: Set the IPv4 address of the ESP SoftAP.
WizFi320 User Manual • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1. • The set command correlates with the commands that set DHCP, such as AT+CWDHCP. o If static IP address is enabled, DHCP will be disabled; o If DHCP is enabled, static IP address will be disabled; o The last configuration overwrites the previous configuration. Example AT+CIPAP="192.168.5.1","192.168.5.1","255.255.255.
WizFi320 User Manual o 2: WPA_PSK o 3: WPA2_PSK o 4: WPA_WPA2_PSK o 5: WPA2_ENTERPRISE o 6: WPA3_PSK o 7: WPA2_WPA3_PSK Notes • For more details on SmartConfig, please see ESP-TOUCH User Guide. • SmartConfig is only available in the ESP station mode. The message Smart get Wi-Fi info means that SmartConfig has • successfully acquired the AP information. ESP device will try to connect to • the target AP. Message Smartconfig connected Wi-Fi is printed if the connection is successful.
WizFi320 User Manual Set Command Command: AT+WPS=[,] Response: OK Parameters • : o 1: Enable WPS (Wi-Fi Protected Setup) that uses PBC (Push Button Configuration) mode. o • 0: Disable WPS that uses PBC mode. : Wi-Fi authentication mode floor. ESP-AT will not connect to the AP whose authmode is lower than this floor.
WizFi320 User Manual • : o 1: Enable the mDNS function. The following three parameters need to be set. o 0: Disable the mDNS function. The following three parameters does not need to be set. • : mDNS host name. • : mDNS service name. • : mDNS port.
WizFi320 User Manual Parameters • : the SSID of the Enterprise AP. o • Escape character syntax is needed if SSID or password contains any special characters, such as , , " , or \\ . : WPA2 Enterprise authentication method. o 0: EAP-TLS. o 1: EAP-PEAP. o 2: EAP-TTLS. • : identity for phase 1. String limited to 1 ~ 32. • : username for phase 2. Range: 1 ~ 32 bytes. For the EAPPEAP and EAP-TTLS method, you must set this parameter.
WizFi320 User Manual AT_EAP_MALLOC_FAILED 0x8001 AT_EAP_SET_USERNAME_FAILED 0x8006 AT_EAP_SET_PASSWORD_FAILED 0x8007 AT_EAP_GET_CA_LEN_FAILED 0x8008 AT_EAP_READ_CA_FAILED 0x8009 AT_EAP_SET_CA_FAILED 0x800A AT_EAP_GET_CERT_LEN_FAILED 0x800B AT_EAP_READ_CERT_FAILED 0x800C AT_EAP_GET_KEY_LEN_FAILED 0x800D AT_EAP_READ_KEY_FAILED 0x800E AT_EAP_SET_CERT_KEY_FAILED 0x800F AT_EAP_ENABLE_FAILED 0x8010 AT_EAP_ALREADY_CONNECTED 0x8011 AT_EAP_GET_SSID_FAILED 0x8012 AT_EAP_SSID_NULL 0x8013
WizFi320 User Manual AT_EAP_MALLOC_FAILED 0x8001 AT_EAP_METHOD_SECURITY_UNMATCHED 0x801F AT_EAP_PARAMETER_COUNTS_ERROR 0x8020 AT_EAP_GET_WIFI_MODE_ERROR 0x8021 AT_EAP_WIFI_MODE_NOT_STA 0x8022 AT_EAP_SET_CONFIG_FAILED 0x8023 AT_EAP_METHOD_ERROR 0x8024 Note • The configuration changes will be saved in the NVS area if AT+SYSSTORE=1. • This command requires Station mode to be active. • TLS mode will use client certificate. Please make sure it is enabled.
WizFi320 User Manual OK If the Station mode is not enabled, the command will return: ERROR Parameters • : the host name of the ESP Station. Maximum length: 32 bytes. Note • The configuration changes are not saved in the flash. Example AT+CWMODE=3 AT+CWHOSTNAME="my_test" AT+CWCOUNTRY: Query/Set the Wi-Fi Country Code Query Command Function: Query Wi-Fi country code information.
WizFi320 User Manual • : o 0: will change the county code to be the same as the AP that the ESP device is connected to. o 1: the country code will not change, always be the one set by command. • : country code. Maximum length: 3 characters. • : the channel number to start. Range: [1,14]. • : total number of channels. Note • The configuration changes are not saved in the flash.
WizFi320 User Manual OEM/integrators Installation Manual the modules limited to OEM installation only the OEM integrator is responsible for ensuring that the end-user has no manual instruction to remove or install module. the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed. Instructions to the OEM/integrator The OEM integrator must include the instructions or statements required by part 15.19 and 15.
WizFi320 User Manual additional FCC certification if they meet the following conditions. Otherwise, additional FCC approvals must be obtained. The host product with the module installed must be evaluated for simultaneous transmission requirements. The user’s manual for the host product must clearly indicate the operating requirements and conditions that must be observed to ensure compliance with current FCC RF exposure guidelines.
WizFi320 User Manual OEM/integrators Installation Manual the modules limited to OEM installation only the OEM integrator is responsible for ensuring that the end-user has no manual instruction to remove or install module. the OEM integrator is still responsible for testing their end-product for any additional compliance requirements required with this module installed. Instructions to the OEM/integrator The OEM integrator must include the instructions or statements required by part 15.19 and 15.
WizFi320 User Manual The host product with the module installed must be evaluated for simultaneous transmission requirements. The user’s manual for the host product must clearly indicate the operating requirements and conditions that must be observed to ensure compliance with current FCC RF exposure guidelines. To comply with FCC regulations limiting both maximum RF output power and human exposure to RF radiation, use this module only with the included onboard antenna.