Table of Contents

Advertisement

Quick Links

WIFI232-B2 User Manual
WIFI232 User Manual
Note: This manual is based on the version of the module with firmware V5.01.01 and
above. If the module you use is older version, some of the functions cannot be used.
1 / 102

Advertisement

Table of Contents
loading

Summary of Contents for Waveshare WIFI232-B2

  • Page 1 WIFI232-B2 User Manual WIFI232 User Manual Note: This manual is based on the version of the module with firmware V5.01.01 and above. If the module you use is older version, some of the functions cannot be used. 1 / 102...
  • Page 2: Table Of Contents

    WIFI232-B2 User Manual CONTENS QUICK START ............................ 5 1.1 H ....................... 5 ARDWARE CONNECTION 1.2 N ......................... 5 ETWORK ONNECTION 1.3 C ........................6 OMMUNICATION TEST OVERVIEW ............................8 2.1 D ............................8 ESCRIPTION 2.2 D ..........................8 EVICE EATURES 2.3 D...
  • Page 3 WIFI232-B2 User Manual 4.3.2 AP ............................26 4.3.3 AP+STA ..........................27 ................28 THERNET NTERFACE OMMUNICATION 4.4.1 WIFI232 Ethernet Interface Networking (AP) ........... 28 4.4.2 WIFI232 Ethernet Interface Networking (STA N-Ver) ........29 4.4.3 WIFI232 Ethernet Interface Networking (STA, Z-Ver) ........29 WI-FI .....................
  • Page 4 WIFI232-B2 User Manual 4.9.12 Device Management Page..................49 4.9.13 Module Working Mode ..................50 4.9.14 Switch to Configuration Mode ................51 AT+ INSTRUCTION SET OVERVIEW ..................52 AT+ I ..................52 NSTRUCTION VERVIEW 5.1.1 AT+ Instruction Set and WIFI232-Setup ............52 5.1.2...
  • Page 5: Quick Start

    WIFI232-B2 User Manual 1 Quick Start WIFI232 series product is used to transmit data between RS232 and WIFI TCPIP transparently, user can update the product to WIFI control without knowing the WIFI and TCPIP detail. All the convert work is done by the module. For users, the RS232 side is only as a serial device, the WIFI side is TCPIP Socket data.
  • Page 6: Communication Test

    WIFI232-B2 User Manual The following is the WIFI232 module example. Open Wi-Fi, search network, as shown in below, WIFI232 is the default network name (SSID) of the module. Figure 2 WIFI search Join the network, choose to automatically obtain IP, WIFI module supports DHCP server and it is enabled by default.
  • Page 7 WIFI232-B2 User Manual • Encryption mode: open, none; • UART: 57600, 8, 1, None; • Network parameters: TCP, Sever, 8899, 10.10.100.254; • IP: 10.10.100.254 We just need to follow the corresponding parameters to set the network communication parameters. With the setting, we could make serial <-->WIFI communication.
  • Page 8: Overview

    WIFI232-B2 User Manual WIFI to COM port: PC WIFI -> Module WIFI -> Module RS232->PC RS232. Figure 4 Serial/Network transmission test 2 Overview 2.1 Description WIFI232 module is an integration of 802.11 b/g/n Wi-Fi module, which provide a wireless interface to any equipment with a Serial interface for data transfer. With this...
  • Page 9: Device Parameters

    WIFI232-B2 User Manual  Support IEEE802.11b/g/n Wireless Standards  Support TCP/IP/UDP Network Protocols  Support UART/GPIO/Ethernet Data Interface  Support Router/Bridge Mode Networking  Support Internal/External Antenna Option  Support Transparent Transmission Mode  Support Transparent Transmission Mode  Support AT+ Instruction Set for Configuration ...
  • Page 10: Key Application

    WIFI232-B2 User Manual Operating 3.3V~3.6V Voltage Operating 165mA~305mA Current Operating -25° C~85°C Temperature Storage -40° C~125° C Temperature Dimensions 25x40x8 mm Wireless Station/AP mode Network Type Security WEP/WAP-PSK/WPA2-PSK/WAPI Mechanisms Encryption WEP64/WEP128/TKIP/AES Transparent Mode/Serial Work Mode command/HTTPD Client Mode/GPIO Mode Software...
  • Page 11: Device Handing Instruction

    WIFI232-B2 User Manual Figure 5 Reflow Soldering Profile Item Temperature Time (Sec) Reflow Time above 220°C 35~55 sec Peak-Temp 260 max Table 2 Reflow Soldering Parameter Note: Recommend to supply N2 for reflow oven N2 atmosphere during reflow (O2 < 300ppm) 2.5.2...
  • Page 12: Shipping Information

    WIFI232-B2 User Manual 2.5.3 Shipping information Figure 6 Shipping Information TRAY Size: 420x245x34mm Note: 1 tray = 5x20 pcs = 100 pcs 1 box = 2 trays = 2x100 pcs = 200 pcs 1 carton = 4 boxes = 4x200 pcs = 800 pcs 3.
  • Page 13 WIFI232-B2 User Manual Figure 7 WIFI232 Figure 8 WIFI232 Pins Map Description Name Direction Note Power Ground Vcc 3.3V@350mA 3.3V Power External Power: 3.3V@mA UART Data Transmit UART_TXD If not use UART function, this 4 pins can be GPIO GPIO3...
  • Page 14: Mechanical Size

    WIFI232-B2 User Manual UART send request of status through AT UART_RTS data transmission command GPIO GPIO5 UART receives data transmission UART_CTS permission GPIOGPIO6 Module reset signal “Low (0)” effective reset input RESET The reset duration should be kept more than 300ms...
  • Page 15: Antenna

    WIFI232-B2 User Manual Figure 9 WIFI232 Mechanical Size 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: ➢ Antennal must away from the metal, at least to the distance around the higher components above 10MM ➢...
  • Page 16: Evaluation Kit

    Figure 10 Suggested Module Placement Region Evaluation Kit Waveshare provides the evaluation kit to promote user to familiar the products and develop the detailed application. The evaluation kit shown s below, user can connect to WIFI232 module with the UAER poet, 100M Eth port or Wireless port to configure the parameters, manage the module or do some functional tests.
  • Page 17: Hardware Reference Design

    WIFI232-B2 User Manual 3.5 Hardware Reference Design 3.5.1 Hardware Typical Application Figure 12 WIFI232 Hardware Typical Application Note: nRST- Module hardware reset signal. Input. Logics “0” effective 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”...
  • Page 18: 10/100M Ethernet Interface

    WIFI232-B2 User Manual release, module will restore to factory default configuration and re-start boot up process. User need add 4.7K~10K Ohm pull-up resister external the module UART_TXD/RXD- UART port data transmit and receive signal 3.5.2 10/100M Ethernet Interface WIFI232 modules provide one 10/100M Ethernet PHY layer interface for data transition.
  • Page 19 WIFI232-B2 User Manual Figure 14 Reference Design for Module Without Transformer This module Ethernet interface default is for the application with transformer connection. If you need PHY-PHY directly connection, please refer to the Ethernet connection with transformer design and take AT+FEPTP command as reference.
  • Page 20: Uart Interface

    WIFI232-B2 User Manual 3.5.3 UART Interface UART interface is the serial data transmission interface mainly used for WIFI232 module. User can add RS-232 chipset on user board and convert the signal to RS-232 voltage to communicate with outside equipment or sensors. WIFI232 modules UART interface include 4 general signals: TXD/RXXD/RTS/CTS.
  • Page 21: Working Mode

    WIFI232-B2 User Manual After WIFI232 module electric started, based on user pre-set parameters, automatically connect to wireless network and servers, and enter the working mode is set to open in accordance with the default serial port parameters. The parameters which need to configure include: ➢...
  • Page 22: Serial Command Mode

    WIFI232-B2 User Manual WIFI232 modules support serial interface transparent transmission mode. The benefit of this mode is that achieves a plug and play serial data port, and reduces user complexity furthest. In this mode, user should only configure the necessary parameters.
  • Page 23 WIFI232-B2 User Manual Bit1: (Short connection: 0; Long connection: 1) Bit2: (IP: 0; Domain name: 1) Bit7: (cut protocol: 0; full protocol: 1) currently only supports cut protocol Notes:  Bit1: If it is short connection, it sends data, and then will be disconnected.
  • Page 24: Gpio Mode

    WIFI232-B2 User Manual Target address: 0x85 0x00 0xA8 0xC0 (192.168.0.0133) 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. In GPIO mode, UART (TXD/RXD/CTS/RTS) defined as GPIO and others (nReady/nLink) also defined as GPIO pin.
  • Page 25: At Command Mode

    WIFI232-B2 User Manual Below is the specific application, for example: The first set HTTP parameters using AT instructions: AT+HTTPURL=192.168.1.1,80 The server address and port settings AT+HTTPTP=POST Set the HTTP type, GET, PUT or POST AT+HTTPPH=/set Set the path of header, longest 50 bytes...
  • Page 26: Sta

    WIFI232-B2 User Manual Notes: AP: Wireless Access Point. Founder of a wireless network and the center of the network nodes. Generally, the wireless router we use at home or in office is an AP. STA: Wireless Station. Each terminal connects to a wireless network (such as laptops, PDA and other networking devices) can be called with a STA device.
  • Page 27: Ap+Sta

    WIFI232-B2 User Manual network can be extended easily. Figure 18 WIFI232 STA Network Structure 4.3.3 AP+STA WIFI2323 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 Module enable AP+STA function, module’s STA interface can connect with router...
  • Page 28: Ethernet Interface Communication

    WIFI232-B2 User Manual also active and permit phone/PAD to connect through TCPB, then phone/PAD can control user device and setting the module parameters. The advantages of AP+STA mode are:  Users can easily set and track user device through Phone/PAD and not change the original network setting ...
  • Page 29: Wifi232 Ethernet Interface Networking (Sta N-Ver)

    WIFI232-B2 User Manual Figure 20 WIFI232 Ethernet Interface Networking (AP) WIFI232 module works as AP and the center of this network. All devices’ IP address in this network shall use the same network segment with WIFI232 and they can intercommunication with this method.
  • Page 30: Wi-Fi Parameter Setting

    WIFI232-B2 User Manual Figure 22 WIFI232 Ethernet Interface Networking (STA, Z-Ver) For above networking, WIFI232 module works as STA (Firmware is Z-Version), and module configured as bridge mode. When module connect to AP. all devices connected to module Ethernet interface will get assigned IP addressed IP address from AP (For example: 192.168.1.101).
  • Page 31: Search Function For Sta

    WIFI232-B2 User Manual  WPS2-PSK/AES Note: When use WEP encryption, the password is 10 bits or 26 bits in HEX, or 5 bits or 13 bits in ASCII. The password of WPA-PSK and WPA2-PSK is at least 8 bits. 4.5.3 Search Function for STA When using web configuration STA Interface Setting Page, user can push “Search”...
  • Page 32: Address Binding

    WIFI232-B2 User Manual Figure 24 Search Page in STA Setting After choosing router, it will return to the original page. In this page, the encryption type and encryption algorithm has readied, you just need to input the password as prompt.
  • Page 33: Uart Auto-Frame

    WIFI232-B2 User Manual WIFI232’s default interval time is 500ms. User can also set this interval to fast (10ms) through AT command. But user have to consider that if user MCU can send UART data with 10ms interval, or the UART data may be divide as fragment.
  • Page 34: Socket A

    WIFI232-B2 User Manual WIFI232 module has two TCP/UDP Socket: Socket A and Socket B. Serial data written to the module, will be sent to the Socket A and B simultaneously; TCP/UDP data that module receives through either Socket A or B, will be sent to the serial port.
  • Page 35: New Function

    WIFI232-B2 User Manual New Function 4.8.1 TCP password authentication The feature is available only when the module works as a TCP server, when the TCP client connection module, the module will authenticate each connected TCP. Each TCP client first data is the “password+0x0d+0x0a” (the password is Webpage authentication password).
  • Page 36: Multiple Sta Parameters

    WIFI232-B2 User Manual When the TCP connection mechanism it ass keepalive function. When the module of network anomalies, timely diagnose abnormal to the network and disconnect, when the network has resumed after, and just in time to connect to the server.
  • Page 37: Fast Access Wi-Fi (Usr-Link)

    WIFI232-B2 User Manual web applications, and for web users with higher response speed, if you want to customize the corresponding web page, you can contact with us. 4.8.7 Fast access Wi-Fi (usr-link) When the module work in AP mode, it will open an UDP port to receive fast access Wi-Fi command with the port number 490000.
  • Page 38 WIFI232-B2 User Manual Signal Signal strength of router n, 0~100: 0%- strength 100% Separator fixed value: 0x0D, 0x0A Sum of bytes from head (not contained) check byte to check byte (not contained) Table 5 Fast access WI-FI Response for searching...
  • Page 39: Ready Pin Signal Indication

    WIFI232-B2 User Manual check of SSID. If the SSID is exist, check for check value is 0x01, otherwise is SSID 0x00 check of password. if the form of check for password is correct, the check password value is 0x01, otherwise is 0x00...
  • Page 40: Parameters Configuration

    WIFI232-B2 User Manual The length is 8 bytes as below. (In HEX for example): Name Head Baud Rate Bytes 3 bytes for one The check sum Reduce baud rate vale. Refer to of the font 4 Description erroneous High byte in the addendum bytes.
  • Page 41: Parameter Setting

    WIFI232-B2 User Manual Parameter Setting 4.9.1 Web Management Page When fist user WIFI232 module, user may need some configuration. User can connect the AP interface of WIFI232 module to PC, then configure it on Web Management Page. By default, the SSID of AP interface of WIFI232 module is WIFI232. And the IP...
  • Page 42: Quick Configure

    WIFI232-B2 User Manual The WIFI232 web management page supports English and Chinese language. User can select language environment at the top right corner and click “Apply” button The main menu includes ten pages: “Quick configure”, “Mode Selection”, “AP Interface Setting”, “STA Interface Setting”, “Application Setting”, “Ethernet Setting”, “HTTPD Client Mode”, “WEB IO”, “Advanced”...
  • Page 43: Mode Selection Page

    WIFI232-B2 User Manual  Network Setting: Setting the network parameters, only TCPA related parameters.  Device Management: After complete the configuration above, click reset module 4.9.4 Mode Selection Page This page is used to setting the wireless networking mode (AP and STA mode).
  • Page 44: Sta Interface Setting Page

    WIFI232-B2 User Manual Figure 31 AP Interface Setting Page 4.9.6 STA Interface Setting Page This page is used to set the parameters when WIFI232 works as STA. There are two table on this page, the first one is setting for STA, including the SSID of AP which need to connect to, security setting and son on.
  • Page 45: Application Setting Page

    WIFI232-B2 User Manual Figure 32 STA Interface Setting Page 4.9.7 Application Setting Page This page is used to setting the parameters of serial port communication, such as UART setting, UART Auto-Frame Setting, Ethernet function, Device ID setting and high layer network protocol setting.
  • Page 46 WIFI232-B2 User Manual Figure 33 Application Setting Page Notes: Generally, Network protocol supports four modes: TCP Server, TCP Client, UDP Server and UDP Client. When the module is set as UDP Server, module we remember the UDP Client of last communication, and communicate with this UDP client. If the module is work as UDP Client, it could only communicate with target IP address.
  • Page 47: Ethernet Setting

    WIFI232-B2 User Manual TCP connecting password authentication: When the WIFI232 work in TCP Server mode, it will authenticate the password of client which connected. Note: This authentication only works when the module is set as TCP server. After opening this function, the fist data sent to module is password plus newline when TCP client connect to TCP server of module.
  • Page 48: Web Io Page

    WIFI232-B2 User Manual Figure 35 HTTPD Client Mode Page 4.9.10 WEB IO Page Web IO page only be available when the module works in GPIO Mode. This page sets the IO of module. Figure 36 WEB IO Page 4.9.11 Advanced Setting Page...
  • Page 49: Device Management Page

    WIFI232-B2 User Manual 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.
  • Page 50: Module Working Mode

    WIFI232-B2 User Manual Figure 38 Device Management Page Notes: Restart Module Button: When use setting the parameters of different web pages, could click “Apply” button to confirm the setting, but the setting take effect only after user click the “Restart” Button here, the module will re-boot up and refresh the memory information with new changes.
  • Page 51: Switch To Configuration Mode

    WIFI232-B2 User Manual 4.9.14 Switch to Configuration Mode The steps to switch to configuration mode from transparent transmission mode: ➢ UART input “+++”, after module receives “+++”, it will feedback “a” as confirmation. ➢ UART input “a” for confirming, after module receives “a”, it will feedback “+ok”...
  • Page 52: At+ Instruction Set Overview

    WIFI232-B2 User Manual Figure 41 Command Input Interval 5 AT+ Instruction Set Overview AT+ Instruction Set Overview 5.1.1 AT+ Instruction Set and WIFI232-Setup User can input AT+ Instruction through hyper terminal or other serial debug terminal, also can program the AT+ Instruction to script. User can also input “AT+H” to list all At+ Instruction and description.
  • Page 53 WIFI232-B2 User Manual We supply software WIFI232-Setup to send command easily: Figure 43 Serial Port Parameters Click “Open Com”, send “+++a”, it will reply “+ok” in left side. Then type in and send the command on the right side, after setting, click “AT+RELD” to restore.
  • Page 54: Instruction Syntax Format

    WIFI232-B2 User Manual Figure 45 Search Module Click “Search”, the text box will show the module searched, click module then you can send command as COM. 5.1.2 Instruction Syntax Format AT+ Instruction protocol is based on the instruction of ASCII command style, the description of syntax format as follow ➢...
  • Page 55: At+ Instruction Set

    WIFI232-B2 User Manual  “ERR”: Failure  [op]: =  [para-n]: parameters if query command or Error code when error happened  <CR>: ASCII 0x0d  <LF>: ASCII 0x0a ➢ Error Code Error Code Description Invalid Command Format Invalid Command...
  • Page 56 WIFI232-B2 User Manual MSLP Set modules into power save mode (turn off WIFI) WSCAN Seek AP when module work as STA mode TCPLK Query if TCP link already build-up TCPDIS Enable/Disable TCP (only available as TCP Client) WANN Set/Query WAN setting, only effective as...
  • Page 57 WIFI232-B2 User Manual HTTPUA Set/Query User-Agent of HTTP protocol header HTPSV (New) Set/Query address and IP of Server (HTTPD Client) HTPTP (New) Set/Query request type (HTTPD Client) HTPURL (New) Set/Query path of request (HTTPD Client) HTPHEAD (New) Set/Query HTTP header (HTTPD...
  • Page 58: At+ Instruction Set Description

    WIFI232-B2 User Manual Note: WIIF232 module can works as AP or STA, users have to use different AT+ Instruction to set WIFI parameters when module works as AP or STA mode. AT+ Instruction Set Description 5.2.1 Description of AT+ Instruction 5.2.1.1 AT+E...
  • Page 59 WIFI232-B2 User Manual  protocol:  TCP  UDP  CS:  SERVER  CLIENT  port: protocol port ID, Decimal digit and less than 65535  IP: Server’s IP address when module works as TCP client or UDP (IP address or the domain of server) Effective after restart module.
  • Page 60 WIFI232-B2 User Manual 5.2.1.5 AT+UARTF Function: Enable/Disable auto-frame function Format: Query Operation: AT+UARTF<CR> +ok=<para><CR><LF><CR><LF> Set Operation: AT+UARTF=<para><CR> +ok<CR><LF>CR><LF> Parameters:  para:  enable  disable 5.2.1.6 AT+UARTFT Function: Set/Query auto-frame trigger time Format: Query Operation: AT+UARTFT<CR> +ok=<time><CR><LF>CR><LF> Set Operation: AT+UARTFT=<time><CR>...
  • Page 61 WIFI232-B2 User Manual Query Operation: AT+UARTFL<CR> +ok=<len><CR><LF><CR><LF> Set Operation: ST+UARTFL=<len><CR><LF> +ok<CR><LF><CR><CL> Parameters:  len:  16~4096 (byte) 5.2.1.8 AT+TMODE Function: Set/Query data transmission type Format: Query Operation: AT+TMODE<CR> +ok=<tmode><CR><LF><CR><LF> Query Operation: AT+TMODE=<tmode><CR> +ok<CR><LF><CR><LF> Parameters:  tmode:  Through  Agreement ...
  • Page 62 WIFI232-B2 User Manual Format: Query Operation: AT+WMODE<CR> ok+=<mode><CR><LF><CR><LF> Set Operation: AT+WMODE=<mode><CR> +ok<CR><LF><CR><LF> Parameters:  mode  AP  STA Effective after restart the module 5.2.1.10 AT+WSKEY Function: Set/Query WIIFI encryption parameters as STA Format: Query Operation: AT+WSKEY<CR> +ok=<auth, encry, key><CR><LF><CR><LF>...
  • Page 63 WIFI232-B2 User Manual  TKIP: available when auth=WPAPSK  AES: available when auth=WPAPSK  key:  16/26 bits (HEX): when encry=WEP-H  5/13 bits (ASCII): when encry=WEP-A Note: key must be larger than 8 bits and less than 64 bits, and it is available only in STA mode.
  • Page 64 WIFI232-B2 User Manual  “RF Off”: WIFI is off 5.2.1.13 AT+WEBU Function: Set/Query WEB Page login parameters Format: Query Operation: AT+WEBU<CR> +ok=<user, password><CR><LF><CR><LF> Set Operation: AT+WEBU=<user, password><CR> +ok<CR><LF><CR><LF> Parameters:  user: user name for WEB page access  password: password for WEB page access 5.2.1.14 AT+WAP...
  • Page 65 WIFI232-B2 User Manual  ssid: SSID when module works as AP  channel:  AUTO  CH1~CH11 Note: This instruction only available for WIFI232 works as AP. It is effective after restart the module. Can be set at STA mode.
  • Page 66 WIFI232-B2 User Manual  5/13 bits (ASCII): when encry=WEP-A Note: key must be larger than 8 bits and less than 64 bits, and it is available only in AP mode. It is effective after restart the module, can be set in STA mode.
  • Page 67 WIFI232-B2 User Manual Function: Query if TCP link already build-up Format: AT+TCPLK<CR> +ok=<sta><CR><LF><CR><LF> Parameters:   on  off 5.2.1.19 AT+TCPDIS Function: Set/Query TCP link status (only available as TCP Client) Format: Query Operation: AT+TCPDIS<CR> +ok=<sta><CR><LF><CR><LF> Set Operation: AT+TCPDIS=<on/off><CR> +ok<CR><LF><CR><LF>...
  • Page 68 WIFI232-B2 User Manual Set Operation: AT+WANN=<mode, address, mask, gateway><CR> +ok<CR><LF><CR><LF> Parameters:  mode  static: static IP  DHCP: Dynamic IP  address: IP address of WAN port  mask: subnet mask of WAN port  gateway: gateway address of WAN port 5.2.1.21 AT+LANN...
  • Page 69 WIFI232-B2 User Manual Query Operation: AT+TCPTO<CR> +ok=<time><CR><LF><CR><LF> Set Operation: AT+TCPTO=<time><CR> +ok<CR><LF><CR><LF> Parameters:  time: <= 600s, >=0s. It is 300s by default. TCP timeout: Begin accounting when the TCP channel doesn’t receive any data and clear when receive. If the account is bigger than the TCPTO value, the module will disconnect.
  • Page 70 WIFI232-B2 User Manual Query Operation: AT+TCPB<CR> +ok<CR><LF><CR><LF> Set Operation: AT+TCPB=<on/off><CR> +ok<CR><LF><CR><LF> Parameters:  on: enable the TCPB function  off: disable the TCPB function Note: The setting is effective after restart the module. 5.2.1.25 AT+TCPPTB Function: Set/Query the port number of the TCPB...
  • Page 71 WIFI232-B2 User Manual Set Operation: AT+TCPADDB=<add><CR> +ok<CR><LF><CR><LF> Parameters:  add: address of TCPB Server (Can be IP address of Server or its domain name) Note: The setting is effective after restart the module 5.2.1.27 AT+TCPTOB Function: Set/Query timeout of TCPB...
  • Page 72 WIFI232-B2 User Manual Format: AT+EPHY=<on/off><CR> +ok<CR><LF><CR><LF> Parameters: To reduce the consumption, the Ethernet port is closed by default. With this command, the Ethernet port will be opened immediately, and it is invalid after restart. If you want to open the Ethernet permanently, please use he command AT+FRPHY=on.
  • Page 73 WIFI232-B2 User Manual AT+IDFIR=<on/off><CR> +ok<CR><LF><CR><LF> Parameters:  on/off: It is off by default 5.2.1.33 AT+IDEVE Function: Enable/Disable “Send and ID every time to send data” function Format: AT+IDEVE=<on/off><CR> +ok<CR><LF><CR><LF> Parameters: Enable or disable function that add ID every time send data. It is default disable Note: The ID function should be handled on server.
  • Page 74 WIFI232-B2 User Manual It is enable by default 5.2.1.36 AT+HIDESSID Function: Enable/Disable hid the SSID of AP Format: AT+HIDESSID=<on/off><CR> +ok<CR><LF><CR><LF> Parameters: It is disable by default 5.2.1.37 AT+DOMAIN Function: Set/Query domain name of WEB page login Format: Query Operation: AT+DOMAIN<CR>...
  • Page 75 WIFI232-B2 User Manual Format: AT+Z<CR> 5.2.1.40 AT+MID Function: Query the MID of module Format: AT+MID<CR> +ok=<module_id><CR><LF><CR><LF> Parameters:  module_id: A11-yymmddnnn  yymmdd: Production Data. Year, Month, Day  nnnn: Production Serial Number 5.2.1.41 AT+VER Function: Query software version Format: AT+VER<CR>...
  • Page 76 WIFI232-B2 User Manual Function: Set/Query IP and port of HTTP server Format: Query Operation: AT+HTTPURL<CR> +ok=<ip>,<port><CR><LF><CR><LF> Set Operation: AT+HTTPURL=<ip>,<port><CR> +ok<CR> <LF><CR><LF> Parameters:  ip: ip of HTTP server  port: port of HTTP 5.2.1.44 AT+HTPMODE Function: Switch setting type of HTTP socket header (HTTPD Client)
  • Page 77 WIFI232-B2 User Manual Query Operation: AT+HTTPTP<CR> +ok=<type><CR>< LF ><CR>< LF > Set Operation: AT+HTTPTP=<type><CR> +ok<CR>< LF ><CR>< LF > Parameters:  type  GET  PUT  POST 5.2.1.46 AT+HTTPPH Function: Set/Query path of HTTP protocol header Format: Query Operation: AT+HTTPPH<CR>...
  • Page 78 WIFI232-B2 User Manual Set Operation: AT+HTTPCN=<connection><CR> +ok<CR>< LF ><CR>< LF > Parameters:  connection 5.2.1.48 AT+HTTPUA Function: Set/Query User-Agent of HTTP protocol header Format: Query Operation: AT+HTTPUA<CR> +ok=<User-Agent><CR>< LF ><CR>< LF > Set Operation: AT+HTTPUA=<User-Agent><CR> +ok<CR>< LF ><CR>< LF >...
  • Page 79 WIFI232-B2 User Manual 5.2.1.50 AT+HTPTP Function: Set/Query request type of HTTP (New) Format: Query Operation: AT+HTPTP<CR> +ok=<type><CR>< LF ><CR>< LF > Set Operation: AT+HTPTP=<type><CR> +ok<CR>< LF ><CR>< LF > Parameters:  type:  GET  PUT  POST Note: This setting only valid at HTTPD Client mode, and it is effective after restart module.
  • Page 80 WIFI232-B2 User Manual Format: Query Operation: AT+HTPHEAD<CR> +ok=<head><CR>< LF ><CR>< LF > Set Operation: AT+HTPHEAD=<head><CR> +ok<CR>< LF ><CR>< LF > Parameters:  head: content of HTTP header. Please use “<<CRLF>>” as ENTER for newline. Its maximum length is 200 bytes 5.2.1.53 AT+WSSSIDA...
  • Page 81 WIFI232-B2 User Manual Parameters:  ap’s ssid: SSID of AP Note: This setting is only valid at STA mode, and it is effective after restart module 5.2.1.55 AT+WSSSIDC Function: Set/Query the third AP’s SSID of three STA parameters settings Format: Query Operation: AT+WSSSIDC<CR>...
  • Page 82 WIFI232-B2 User Manual  encry: Encryption algorithm  NONE: valid when auth=OPEN  WEP-H: valid when auth=OPEN/SHARED (WEP, HEX)  WEP-A: valid when auth=OPEN/SHARED (WEP, ASCII)  TKIP: valid when auth=WPAPSK  AES: valid when auth=WPAPSK  key: password  if encry=WEP-H: 10bits or 26bbits (HEX) ...
  • Page 83 WIFI232-B2 User Manual  WEP-A: valid when auth=OPEN/SHARED (WEP, ASCII)  TKIP: valid when auth=WPAPSK  AES: valid when auth=WPAPSK  key: password  if encry=WEP-H: 10bits or 26bbits (HEX)  if encry=WEP-A: 5bits or 13 bits (ASCII)  >8 bits and <64 bits Note: The setting is valid at STA mode, it is effective after restart module.
  • Page 84 WIFI232-B2 User Manual  key: password  if encry=WEP-H: 10bits or 26bbits (HEX)  if encry=WEP-A: 5bits or 13 bits (ASCII)  >8 bits and <64 bits Note: The setting is valid at STA mode, it is effective after restart module. Can be set at AP mode as well.
  • Page 85 WIFI232-B2 User Manual  off: The sockets distribute function is disable Note: The setting is effective after restart module 5.2.1.61 AT+HEARTEN Function: Enable/Disable heartbeat packet function Format: Query Operation: AT+HEARTEN<CR> +ok=<sta.><CR><LF><CR><LF> Set Operation: AT+HEARTEN=<sta.><CR> +ok<CR><LF><CR><LF> Parameters:  sta.  on: the heartbeat packet function is enable ...
  • Page 86 WIFI232-B2 User Manual 5.2.1.63 AT+HEARTDT Function: Set/Query the data of heartbeat packet Format: Query Operation: AT+HEARTDT<CR> +ok=<usr><CR><LF><CR><LF> Set Operation: AT+HEARTDT=<usr><CR> +ok<CR><LF><CR><LF> Parameters:  usr: the length much less than 40 bytes. (HEX) 5.2.1.64 AT+HEARTTM Function: Set/Query interval of heartbeat packet transmission...
  • Page 87 WIFI232-B2 User Manual Set Operation: AT+REBOOTEN=<sta.><CR> +ok<CR><LF><CR><LF> Parameters:  sta.  on: enable  off: disable Note: This setting is effective after restart module 5.2.1.66 AT+REBOOTT Function: Set/Query the time of Boot Timing Format: Query Operation: AT+REBOOTT<CR> +ok=<time><CR><LF><CR><LF> Set Operation: AT+REBOOTT=<time><CR>...
  • Page 88: Module Debug And Use Cases

    WIFI232-B2 User Manual  on: enable (module will reboot if timeout)  off: disable Note: This setting is effective after restart module 5.2.1.68 AT+TIMEOUTT Function: Set/Query timeout Format: Query Operation: AT+TIMEOUTT<CR> +ok=<time><CR><LF><CR><LF> Set Operation: AT+TIMEOUT=<time><CR> +ok<CR><LF><CR><LF> Parameters:  time: 60~65535s. It is 3600s by default.
  • Page 89: Debugging

    WIFI232-B2 User Manual Figure 46 Connection Diagram On the serial connection, module pin leads to 3.3V TTL level, not directly connected with the computer, need to bring the bottom or users are TTL to RS232 connecting line connected to the computer, in order to facilitate the user to test the use of module. We provide a variety of floor for the user to choose, here in the case of WIFI232.
  • Page 90 WIFI232-B2 User Manual Figure 47 "COMM Tools" 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 91 WIFI232-B2 User Manual Figure 48 "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.
  • Page 92: Wireless Control Application

    WIFI232-B2 User Manual Note: Because of the RTS/CTS pin processing difference, currently available on the part of the serial debugging software for the module of the system is not available, please be sure to want to use TCP232-Test we provide testing, ort just RXD TXD GND connected the three lines to the computer, please notice.
  • Page 93: Transparent Serial Port Application

    WIFI232-B2 User Manual For this remote management application, WIFI232 works as STA mode and connects to Internet through wireless AP. Module configured as TCP Client and communicates with remote TCP server at Internet. Module’s serial port connects to user device.
  • Page 94: Wireless Data Acquisition Card Application

    WIFI232-B2 User Manual Notes: IP address of LAN port and WAN port should in different segment, as picture shown, we change to 10.10.99.254 (the address get from left module WAN port DHCP is 10.10.100.xxx) 6.3.4 Wireless Data Acquisition Card Application...
  • Page 95 WIFI232-B2 User Manual Q1: How to configure transparent serial port application (TCP protocol) with two WIFI modules? Network structure as below figure: ➢ Module 1# Setting:  Works as AP model  LAN IP address: 10.10.100.254  Network Protocol: TCP/Server, Port ID: 8899; (Module default setting) ➢...
  • Page 96 WIFI232-B2 User Manual Q3: How to configure transparent serial port application (UDP protocol) with two WIFI modules? : Network structure as below figure: ➢ Module 1# Setting:  Works as AP mode;  LAN IP address: 10.10.100.254;  Network Protocol: UDP, Port ID: 8899; Application IP address:10.10.100.100;...
  • Page 97 WIFI232-B2 User Manual Q4: Where to set WIFI232 module network protocol (TCP/UDP)? WIFI232 network protocol setting as below Figure, ➢ Protocol: TCP Server  Only Port ID required: 8899 (Default) ➢ Protocol: TCP Client  Application IP address required: it’s target TCP server’s IP address;...
  • Page 98 WIFI232-B2 User Manual ➢ Protocol: UDP  No Server/Client selection required;  Application IP address required: it’s target device’s IP address;  Port ID required: 8899 (Default) Q5: How to configure transparent serial port application: Two WIFI modules all configured as STA and connection through AP? Network structure as below figure: ➢...
  • Page 99 WIFI232-B2 User Manual Q6: How to avoid IP address confliction when apply WIFI232 module? The following address allocation method can avoid the IP address confliction for dynamic and static IP address mixed application. ➢ Module dynamic IP address range from 100 to 200 for last IP address segment.
  • Page 100 WIFI232-B2 User Manual ➢ PC Setting:  IP address: 10.10.100.100;  Network Protocol: TCP/Server, Port ID: 8899; ➢ Module 1# Setting:  Works as AP mode;  LAN IP address: 10.10.100.254;  Network Protocol: TCP/Client, Port ID: 8899; Application IP address:10.10.100.100;...
  • Page 101 WIFI232-B2 User Manual Q8: WIFI module support UDP multicast? At present, all the WIFI module does not support UDP multicast function, IP multicast address range is "224.0.0.0~ 239.255.255.255”,When setting module, please don't set this IP section, if set, may cause the module can't normal start.
  • Page 102: Appendix B: External Power Shutdown Mode Reference Design

    WIFI232-B2 User Manual 8 Appendix b: external power shutdown mode reference design 9 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...

Table of Contents