Page 1
WAVESHARE ELECTRONICS WIFI232 User Manual WIFI232 User Manual Note: this article is based on the firmware version for V5.01.01 and above version of the module, if the version is lower than this version, some function is not supported. Page 1 of 81...
Page 5
Q5: How to configure transparent serial port application: Two WIFI modules all configured as STA and connection through AP? ..................... 77 Q6: How to avoid IP address confliction when apply WIFI232 module? ......... 78 Q7: PC works as server, all WIFI modules works as data acquisition card and connect with PC, how to configure this application? ..................
RS232 port. The setup work only need do once, then it will save the setting forever. This chapter is a user guide for WIFI232 series products. We suggest users follow the guide to test module at first, and will have a good understanding of the modules. Users can also choose the chapter which you are interested in to read.
The following is the WIFI232 module example,Other modules are the same.Open Wi-Fi, search network, as shown in below, WIFI232 _3378(A/B determined according to the specific type of module, XXXX is the MAC address after the four) is the default network name (SSID) of the module.
WAVESHARE ELECTRONICS WIFI232 User Manual Figure 3 WIFI connection Now, nlink led of WIFI232 Evaluation Board is lighting. 1.3 communication test Module’s default setting: SSID:WIFI232; Encryption mode:open,none; UART:57600,8,1,None; Network parameters:TCP,Server,8899,10.10.100.254; IP:10.10.100.254; We just need to follow the parameters of the corresponding set of network communication parameters, you can make serial <-->...
These data fields, do a professional optimization. WIFI232 as a hot spot can accommodate 32 clients simultaneously wi-fi access, but also can accommodate 32 TCP client. 2.2 Device Features ...
Support Friendly Web Configuration Page Support Palmodic Signal Support UART Auto-Frame Function Single +3.3V Power Supply FCC/CE Certificated 2.3 Device Paremeters Table 1 WIFI232 Module Technical Specifications Class Item Parameters Certification FCC/CE Wireless standard 802.11 b/g/n Frequency range 2.412GHz-2.484GHz 802.11b: +20 dBm (Max.)
WAVESHARE ELECTRONICS WIFI232 User Manual Recommend to oven bake with N2 supplied. Baked required with 24 hours at 125±5℃ before rework process for two modules, one is new module and two is board with module. Recommend to store at ≦10% RH with vacuum packing.
Figure 9 WIFI232 Mechanical Size 3.3 Antenna 3.3.1 On-board Chip Antenna WIFI232 supports a built-in antenna options, when customers choose a built-in antenna, must comply with the following built-in antenna module placement of notes and general rules: Be in the user's PCB board, and the red region ( 6X8mm ) corresponding to the region cannot be placed components and with GND;...
WAVESHARE ELECTRONICS WIFI232 User Manual Waveshare technological suggestions WIFI232 module be placed in the following areas of user board, in order to reduce the antenna and a wireless signal influence, at the same time, please consult with technology and technical support staff to assist module placement and associated regions of Layout design.
Page 17
WAVESHARE ELECTRONICS WIFI232 User Manual Figure 12 WIFI232 module Evaluation Kit Page 17 of 81...
WAVESHARE ELECTRONICS WIFI232 User Manual 3.5 Hardware Reference Design 3.5.1 Hardware Typical Application Figure 13 WIFI232 Hardware Typical Application Notes: Module hardware reset signal. Input. Logics “0” effective. nRST- There is 100K Ohm pull-up resister internal up to 3.3V. When module power up or some issue happened, MCU need assert nRST signal “0”...
There is 1K Ohm pull-down resister internal. User can‟t add pull-up resister at these pins. 3.5.2 10/100M Ethernet Interface WIFI232 modules provide one 10/100M Ethernet PHY layer interface for data transition or user configuration. This Ethernet support with transformer and without transformer (PHY-to-PHY) 2 kinds of connection.
2. Cable TX connected to RX. In PHY-PHY direct connection, PHY chip dose not support direct/ cross self-adaption 3.Your PHY chip on board should better to be forced into 100M work mode 3.5.3 UART Interface UART interface is the serial data transmition interface mainly used for WIFI232 modules. Page 20 of 81...
3.5.4 Power Interface WIFI232 module support single +3.3V power supply. The peak current shall about 350mA and normal WiFi working current shall about 200mA. The power save (WiFi OFF) mode will about...
4.2 Working mode 4.2.1 Transparent Mode WIFI232 modules support serial interface transparent transmission mode. The benefit of this mode is achieves a plug and play serial data port, and reduces user complexity furthest. In this mode, user should only configure the necessary parameters. After power on, module can automatically connect to the default wireless network and server.
WAVESHARE ELECTRONICS WIFI232 User Manual 4.2.2 Serial command mode In this mode, the user can send the serial data to a different server address, this pattern can be use udp or TCP client sends data to the server. Customer MCU send packets according to the following format, parsing module is finished, only the n bytes of data sent to the destination address.When data is returned, not analytical data from...
Data:0x01(data length :1) Sum check:0x0f (0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f) 4.2.3 GPIO mode WIFI232 module support GPIO mode:At GPIO,UART (TXD/ RXD/CTS/RTS) defined as GPIO and others (Ready/Link/) also defined as GPIO pin. When module works at GPIO mode, PC and other equipments can setup connection (TCP/UDP) through WiFi, then read/write GPIO information through command.
WIFI232 module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in WIFI232. One is for STA, and another is for AP. When WIFI232 works as AP, other STA equipments are able to connect to wireless LAN via WIFI232 module. Wireless Networking with WIFI232 is very flexible.
Page 26
Figure 17 WIFI232 Basic Wireless Network Structure 4.3.2 AP Because WIFI232 can be set to AP, can also be set to STA, so the WIFI232 can be achieved easily wireless ad hoc network. As showing in the figure below, WIFI232 (1) can be treat as an AP, and WIFI232(2), WIFI232 (3) and the laptop are STAs connected to WIFI232 (1).
WAVESHARE ELECTRONICS WIFI232 User Manual 4.3.3 AP+STA WIFI232 module support AP+STA network mode, means module support one AP interface and one STA interface at the same time, as following figure, Figure 19 WIFI232 AP+STA Network Structure When module enables AP+STA function, Module‟s STA interface can connect with router and connect to TCP server in the network.
Figure 20 WIFI232 Ethernet Interface Networking (As AP) WIFI232 module works as AP and also the center of this network. All devices‟ IP address in this network shall use the same network segment with WIFI232 and they can ntercommunication with this method.
At the same time, module also form a subnet (Default 10.10.100.254) and all devices connected to module Ethernet interface will get assigned IP address (For example: 10.10.100.101).So as shown, PC1 at internal subnet can initiate a connection to PC2 (For WIFI232 works as router mode), but PC2 can‟t active initiate a connection to PC1.
WIFI232 User Manual 4.5.1 Auto- Frequency Function When module works as STA, WIFI232 will adjust its wireless channel to keep the same channel with associated AP and connect in. When module works as AP and WIFI232 enable Auto-frequency function, then when module boot up, it will select the best wireless channel based on surrounding environment.
UART data. If this interval time exceeds defined value (50ms default), WIFI232 will think it as the end of one frame and transfer this free- frame to WiFi port, or WIFI232 will receive UART data until 4K bytes, then transfer 4KB frame to WiFi port.
WAVESHARE ELECTRONICS WIFI232 User Manual 4.7.1 Socket A Socket A has three work mode: TCP Server, TCP Client, UDP.The setting method, please refer to the AT+NETP command instruction. When Socket A configured as TCP Server, it supports Multi-TCP link connection, and maximum 32 TCP clients permitted to connect to Socket A.
WAVESHARE ELECTRONICS WIFI232 User Manual The TCP connection of this function can be Webpage in "TCP connection password authentication" is opened or disable. Please refer to the specific "5.1.6" section. 4.8.2 Upload ID This function only applies to the module as a TCP client, in front of the data when module connected to the server with two bytes of ID (ID the range is 0 ~ 65535, the high byte before, and the low byte behind) plus two bytes ID radix-minus-one complement.Module is the default ID is...
WAVESHARE ELECTRONICS WIFI232 User Manual Page:10.10.100.254/websocketen.html) Figure 25 Websocket Page Click on the "connect" page and then implements a connection, so a serial port with page can send or receive data from each other.This module websocket server support 8 client connection same time.
Page 35
WAVESHARE ELECTRONICS WIFI232 User Manual Signal Signal strength of router 1,0~100:0%~100% strength1 separator Separator signal strength1, fixed value: 0x0D,0x0A … … … ……… SSID n Unsized The SSID of router n separator Separator of SSID n, fixed value:0x00 Signal Signal strength of router n,0~100:0%~100%...
WIFI232 module supports two methods to configuration parameters: Web Accessing and AT+instruction set. Web accessing means users can configure parameters through built-in webpage. When WIFI232 module connected to wireless network, parameters configuration is done on a PC connected to the same wireless network. AT+instruction set configuration means user configure parameters through serial interface command.
5 Web Accessing and AT+instruction set 5.1 Configuration via Web Accessing When first use WIFI232 modules, user may need some configuration. User can connect to WIFI232 module‟s wireless interface with following default setting information and configure the module through laptop.
WAVESHARE ELECTRONICS WIFI232 User Manual 5.1.2 Quick Configure This page provides users with a method of rapid configuration module.Users according to the steps to configure the parameters and restart the module page, you can let the module is normal work, reduced the configuration steps and time.Of course the options on this page is less, if some detailed configuration, still need to the corresponding configuration page.
"TCP connection password authentication" can choose whether open TCP password authentication. Figure 28 Mode Selection Page 5.1.4 AP Interface Setting Page This page use to setting the parameters when WIFI232 module works as AP. Figure 29 AP Interface Setting Page 5.1.5 STA Interface Setting Page This page use to setting the parameters when WIFI232 module works as STA.
WAVESHARE ELECTRONICS WIFI232 User Manual Figure 30 STA Interface Setting Page 5.1.6 Application Setting Page This page use to setting the parameters of serial port communication, such as UART setting,UART AutoFrame Setting,Ethernet function,Device ID setting and high layer network protocol setting which used support serial communication.
Page 41
Besides module working as TCP Server (IP address not required in this mode). User must set the IP address of the device which need communicate with WIFI232 module. Also the Port ID between two sides of the communication devices must keep the same.
WAVESHARE ELECTRONICS WIFI232 User Manual 5.1.7 Ethernet Setting This page is used to set Ethernet front-end ports of the module, It can be open or closed.And also can be set to the WAN port to use, this module can be used as a secondary router, making it easy for users to network.Specific Settings page is as follows:...
WAVESHARE ELECTRONICS WIFI232 User Manual 5.1.9 WEB IO Figure 34 WEB IO Page 5.1.10 Advanced Page Under the advanced Settings page, the user can set the port mapping and function of DDNS, without having to go on a router Settings, reduce the complexity of setting, the port mapping and DDNS, can be in the public environment, by entering the peanut shell domain name and port, can quickly and easily find the module.
5.2 AT+instruction Introduction 5.2.1 Configuration Mode When WIFI232 power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. WIFI232 UART default parameters setting as below figure...
WAVESHARE ELECTRONICS WIFI232 User Manual In configuration mode, user can setting the module through AT+ instruction set, which cover all web page setting function. 5.2.1.1 Switch to Configuration Mode Two steps to finish switching from transparent transmission mode to configuration mode.
Page 46
WIFI232 User Manual Figure 39 ”AT+H” Instruction for Help We supply software WIFI232-Setup to send command easily, software setup: Figure 40 Serial port parameter Click “Open Com”, send “+++a”, it will reply +ok in left side, then type in and send the command you need to send, then click “AT+RELD”...
WAVESHARE ELECTRONICS WIFI232 User Manual Figure 41 software of WIFI232-Setup Above is by COM, also you can send by WIFI: First, connect with PC, open the software, see Net part Figure 42 Search module Click search, then will show module, click module then you can send command.
WAVESHARE ELECTRONICS WIFI232 User Manual Notes: WIFI232 module can works as AP or STA, user have to use different AT+ Instruction to set WiFi parameters when module works as AP or STA mode. 5.2.2.2.1 AT+E Function: Open/Close show back function;...
NONE,EVEN,ODD,MARK,SPACE flowctrl:hardware flow control (CTSRTS) NFC: No flow control FC: flow control After WIFI232 module boots up again, the setting will be effective. 5.2.2.2.5 AT+UARTF Function: Open/Close UART auto-frame function; Format: Query Operation AT+ UARTF<CR>...
Httpdclient Httpd Client Mode GPIO: GPIO Mode After WIFI232 module boots up again, the setting will be effective. Note: No CMD.After power on, the module will not work in the AT command mode by default. 5.2.2.2.9 AT+WMODE Function: Set/Query WIFI work mode;...
ASCII code, shall less than 64 bit and greater than 8bit This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP.
”AP‟ SSID(AP‟s MAC” ), if WiFi connection available; ”RF Off”, if WiFi OFF; This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP. 5.2.2.2.13 AT+WEBU ...
ASCII code, shall less than 64 bit and greater than 8bit; This Instruction only effective for WIFI232 works as AP. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as STA.
WAVESHARE ELECTRONICS WIFI232 User Manual AT+ MSLP=<on/off><CR> +ok<CR>< LF ><CR>< LF > Parameters: When Query,sta reply if the module in sleep mode; On - Module not in sleep mode (WiFi ON); Off - Module in sleep mode(WiFi OFF);...
WAN port subnet mask; gateway: WAN port gateway address; This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP. 5.2.2.2.22 AT+ LANN ...
WAVESHARE ELECTRONICS WIFI232 User Manual +ok<CR><LF><CR><LF> Parameters: sta. If Enable/Disable LAN DHCP server function; on: Enable LAN DHCP function off: Disable LAN DHCP function 5.2.2.2.24 AT+ DHCPGW Function: Set/Query DHCP gateway address; Format: ...
WAVESHARE ELECTRONICS WIFI232 User Manual num: 1~32, default 32. maxima TCP connection; When configure as TCP/Server, WIFI232 support maxima 32 TCP connections. If not require so much connection, user can resetting this parameters. 5.2.2.2.27 AT+TCPB Function: Open/Close TCPB function;...
+ok<CR>< LF ><CR>< LF > Parameters: time: TCPB time out time, <=600 (600s), >=0 (No time out), default 300 After WIFI232 module boots up again, the setting will be effective. 5.2.2.2.31 AT+TCPLKB Function: Query TCPB link status;...
WAVESHARE ELECTRONICS WIFI232 User Manual Function: Enable/Disable “Send an ID when module connection is established” function; Format: Query Operation AT+IDFIR<CR> +ok=<on/off><CR><LF><CR><LF> Set Operation AT+IDFIR=<on/off><CR> +ok<CR><LF><CR><LF> Parameters: On/off: Enable or Disable “Send an ID when module connection is established”...
WAVESHARE ELECTRONICS WIFI232 User Manual 5.2.2.2.40 AT+RELD Function: Restore to factory default setting; Format: AT+ RELD<CR> +ok=rebooting…<CR>< LF ><CR>< LF > This command restores the module to factory default setting, and then re-starts the module. 5.2.2.2.41 AT+Z ...
Parameters: ap‟s ssid: AP‟s SSID This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP. 5.2.2.2.51 AT+WSSSIDB Set/query the second AP„s ssid of 3 sta parameters settings .
ASCII code, shall less than 64 bit and greater than 8bit This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP.
ASCII code, shall less than 64 bit and greater than 8bit This Instruction only effective for WIFI232 works as STA. After WIFI232 module boots up again, the setting will be effective. But user can set this command when module configured as AP.
WIFI232. Hardware connectivity, for module power supply, the red power indicator light, wait about 6 seconds ( internal system boot ), Ready lights, said system startup complete, can operate, entering the next step.
Page 69
WAVESHARE ELECTRONICS WIFI232 User Manual Figure 44 “CommTools” Serial Debug Tools Open test software TCP232-Test.exe, selection of hardware attached to the computer's serial number, this is COM10, choose 57600 baud rate, such as the WIFI module serial default baud rate, open the serial port.
Page 70
Figure 45 “TCP UDPDbg” Tools Create Connection Because of the WIFI232 module default support for transparent transmission mode, so now you can debug tools two-way data, all data will be wholly intact transmission to the other side of display. The testing process can be seen in module TXD and RXD indicator lights in the data through the flashing.
6.2.1 Wireless Control Application Figure 47 Wireless Control Application For this wireless control application, WIFI232 works as AP mode. Module‟s serial port connects to user device. So, control agent (Smart phone for this example) can manage and control the user device through the wireless connection with WIFI232 module.
Figure 49 Transparent Serial Port Application For left side WIFI232 module, configured as AP mode and use default SSID and IP address, network protocol configured as TCP/Server mode, and protocol port ID: 8899. For right side WIFI232 module, configured as STA mode and setting the same SSID (”WIFI232” for this example)with left side WIFI232 module, enable DHCP network and network protocol configured...
Page 73
WIFI232 User Manual Figure 50 Wireless Data Acquisition Card Application As above figure, one WIFI232 configured as AP mode and all others configured as STA mode. All WIFI232 which configured as STA and data server PC wireless connected to WIFI232 which configured as AP to make up a wires network.
Figure 51 Configure Transparent Serial Port Connection (TCP) Q2: Where to Set WIFI Module LAN IP and WAN IP through Web Page? WIFI232 Wireless LAN IP address setting see “AP Interface Setting Page” as below Figure, Page 74 of 81...
WIFI232 User Manual Figure 52 Module LAN IP Setting WIFI232 Wireless WAN IP address setting see “STA Interface Setting Page” as below Figure, User can set WAN connection type to DHCP and STATIC IP. Figure 53 Module WAN IP Setting...
WIFI232 User Manual Figure 54 Configure Transparent Serial Port Connection (UDP) Q4: Where to set WIFI232 module network protocol (TCP/UDP)? WIFI232 network protocol setting see “Application Setting Page” as below Figure, Protocol: TCP Server Only Port ID required: 8899 (Default) Figure 55 Module Network Protocols: TCP/Server ...
STA and connection through AP? Network structure as below figure: Module 1# Setting: ( We use WIFI232 as AP for this example) Works as AP mode and all default setting; Module 2# Setting: ...
PC, how to configure this application? Network structure as below figure: Three WIFI232 module setup 3 TCP links with PC server. Module 1# works as AP and all devices connect to module 1# through WiFi interface;...
WAVESHARE ELECTRONICS WIFI232 User Manual Module 1# Setting: Works as AP mode; LAN IP address: 10.10.100.254; Network Protocal:TCP/Client, Port ID: 8899; Application IP address:10.10.100.100; Module 2# Setting: Works as STA mode; WAN connection type: Static IP: 10.10.100.101;...
WAVESHARE ELECTRONICS WIFI232 User Manual Q9:WIFI module operates in STA mode, the PC how to get the IP module? All wifi module supports UDP search,they will return to their respective IP, MAC, MID, detailed search process is as follows: PC via UDP broadcast (broadcast address: xx.xx.xx.255, Port: 48899) sent a password, the default password is: "HF-A11ASSISTHREAD", the password can be used AT commands (AT...
Appendix c: Disclaimer This document provides information about WIFI232 modules, this document does not grant any license to intellectual property rights. Except the responsibility declared in the product sale clause, WAVEAHARE does not assume any other responsibilities. In addition,...
Need help?
Do you have a question about the WIFI232 and is the answer not in the manual?
Questions and answers