Summary of Contents for Jinan USR IOT Technology WIFI232-A
Page 1
Manual Version:V5.0.8 Remarks: This module is applicable to USR-WIFI232-A/B/C and its derivatives, for example USR- WIFI232-2/610. For USR-WIFI232-G/T/S, please refer to the corresponding document. 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 5
Q5: How to configure transparent serial port application: Two WIFI modules all configured as STA and connection through AP?.....................86 Q6: How to avoid IP address confliction when apply USR-WIFI232-A/B/C module?....87 Q7: PC works as server, all WIFI modules works as data acquisition card and connect with PC, how to configure this application?....................
Page 6
Q9:WIFI module operates in STA mode, the PC how to get the IP module?......88 Appendix b: evb reference design......................90 Appendix c: external power shutdown mode reference design............91 Appendix e: Contact Information......................92 Appendix f: Disclaimer..........................92 Appendix g: History............................ 93 Page 6 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
About the serial connection, because the module RS232 is 3.3V TTL level, the computer can not connect to module directly, the user needs to have a TTL to RS232 adapter cable and then connect to the computer. in order to facilitate the test, we provide USR-WIFI232-A/B/C evaluation board for users to choose.
Page 8
Network connection connection The following is the USR-WIFI232-A module example,Other modules are the same.Open Wi-Fi, search network, as shown in below, USR-WIFI232-A/B_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.
USR-WIFI232-A/B/C User Manual http://www.usriot.com Figure 3 WIFI WIFI connection WIFI WIFI connection connection connection Now, nlink led of USR-WIFI232-A Evaluation Board is lighting. communication communication test test 1.3 communication communication test test Module’s default setting: � SSID: SSID: SSID: SSID:USR-WIFI232-A;...
These data fields, do a professional optimization. USR-WIFI232-A/B/C as a hot spot can accommodate 32 clients simultaneously wi-fi access, but also can accommodate 32 TCP client, specific models and parameters of the series modules are...
Case 2: Wifi module mounted on bottom side, follow normal bake rule before process. Note: Window time means from last bake end to next reflow start that has 168 hours space. Page 12 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 14
U A R T_R X D/G P I O4 G N D 3.3V Figure 8 USR-WIFI232- USR-WIFI232- USR-WIFI232- Pins Pins USR-WIFI232-A/B A/B Pins Pins Map Table 3 USR-WIFI232-A/B Pins Definition Description Description Description Description Name Name Name Name Directi Directi...
Out Region Region USR technological suggestions USR-WIFI232-A/B/C 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.
USR provides the evaluation kit to promote user to familiar the product and develop the detailed application. The evaluation kit shown as below, user can connect to USR-WIFI232-A/B/C module with the RS-232 UART port, 100M Eth port or Wireless port to configure the parameters, manage the module or do the some functional tests.
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” at least 300ms, then set” 1” to keep module fully reset. Page 21 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
User board put Ethernet transformer and RJ-45 connector. This is a general 10/100M Ethernet phy layer connection. The reference design as following: (Above is for USR-WIFI232-A/B pin type module, Below is for SMD type USR-WIFI232-C) Page 22 of 93 Jinan USR IOT Technology Limited...
Note: VCC signal at reference design shall base on user board PHY chipset voltage level, such as 2.5V power supply for general Ethernet PHY chipset. (Above is for USR-WIFI232-A/B pin type module, Below is for SMD type USR-WIFI232-C) Page 23 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 24
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 Page 24 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
USR-WIFI232-A/B/C User Manual http://www.usriot.com 3.5.3 UART Interface UART interface is the serial data transmition interface mainly used for USR-WIFI232-A/B/C modules. User can add RS-232 chipset on user board and convert the signal to RS-232 voltage to communicate with outside equipment or sensors. USR-WIFI232-A/B/C modules UART interface include 4 general signals: TXD/RXD/RTS/CTS.
User configuration configuration process process After USR-WIFI232-A/B/C module electric starter, based on user pre-set parameters, automatically connect to wireless networks 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: �...
5, said to wait for the 5S to disconnect; if the sending command, immediately receive the returned data, then immediately disconnected; if it is long connection, this position is 0x00. � Second byte:Reserve Page 27 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Data:0x01(data length :1) Sum check:0x0f (0x00+0x00+0x00+0x21+0x00+0x85+0x00+0xA8+0xC0+0x01=0x0f) 4.2.3 GPIO mode USR-WIFI232-A/B/C 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.
USR-WIFI232-A/B/C module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in USR-WIFI232-A/B/C. One is for STA, and another is for AP. When USR-WIFI232-A/B/C works as AP, other STA equipments are able to connect to wireless LAN via USR-WIFI232-A/B/C module.
Structure 4.3.2 AP Because USR-WIFI232-A/B/C can be set to AP, can also be set to STA, so the USR-WIFI232- A/B/C can be achieved easily wireless ad hoc network. As showing in the figure below, USR-WIFI232-A/B/C (1) can be treat as an AP, and USR- WIFI232-A/B/C (2), USR-WIFI232-A/B/C (3) and the laptop are STAs connected to USR- WIFI232-A/B/C (1).
Network Structure Structure Structure 4.3.3 AP+STA USR-WIFI232-A/B/C module support AP+STA network mode, means module support one AP interface and one STA interface at the same time, as following figure, U s e r D e v i c e U A R T...
USR-WIFI232-A/B/C module provides one 100M Ethernet interface. With this Ethernet interface, user can easily realize the three interface (WiFi, UART, and Ethernet) intercommunication and networking. USR-WIFI232-A/B/C module can configured as Bridge Mode or Router Mode base on different networking technology.
Interface Networking Networking (As (As AP) USR-WIFI232-A/B/C 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 USR-WIFI232-A/B/C and they can ntercommunication with this method.
4.5.1 Auto- Frequency Function When module works as STA, USR-WIFI232-A/B/C will adjust its wireless channel to keep the same channel with associated AP and connect in. When module works as AP and USR-WIFI232-A/B/C 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), USR-WIFI232-A/B/C will think it as the end of one frame and transfer this free-frame to WiFi port, or USR-WIFI232-A/B/C will receive UART data until 4K bytes, then transfer 4KB frame to WiFi port.
Network Setting Setting USR-WIFI232-A/B/C 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.
ID/MAC in front of each data. Registered Package related parameter is set in the "serial port and other Settings" section of the Page 37 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
100, the module will not switch network.Even if the current network signal is not the current network will always search, not heavy to other networks. The function of the specific Settings page refer to section 5.1.4. Page 38 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Sum of data bytes from length bytes to check byte(not contain length bytes and check byte). Command type, 0x01 check Sum of bytes from head (not contained) byte to Page 39 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 40
Check for If the SSID set by PDA exist, check value is 0x01, SSID otherwise is 0x00. Check for 1 If the form of password set by PDA is correct, check Page 40 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Web accessing means users can configure parameters through built-in webpage. When USR- WIFI232-A/B/C 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. Refer to “AT+instruction set” chapter for more detail.
Web Web Accessing Accessing When first use USR-WIFI232-A/B/C modules, user may need some configuration. User can connect to USR-WIFI232-A/B/C module’s wireless interface with following default setting information and configure the module through laptop. Table 9 USR-WIFI232-A/B/C Web Access Default Setting...
This page use to setting the wireless networking mode (AP and STA mode). "Data transmission mode" selection module working mode are "Transparent Mode", "Serial Command mode", "HTTPD Client mode", "GPIO mode". "TCP connection password authentication" can choose whether open TCP password authentication. Page 44 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Selection Selection Page Page Mode Mode Selection Selection Page Page 5.1.4 AP Interface Setting Page This page use to setting the parameters when USR-WIFI232-A/B/C module works as AP. Figure 36 AP Interface Interface Interface Interface Setting Setting Setting 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 46 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
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 USR-WIFI232-A/B/C module. Also the Port ID between two sides of the communication devices must keep the same.
Setting Page Page 5.1.11 Device Management Page This page use to manage USR-WIFI232-A/B/C module general setting, such as administrator setting, restart module button, restore factory default setting button, and update firmware through webpage. Page 49 of 93 Jinan USR IOT Technology Limited...
Introduction Introduction Introduction 5.2.1 Configuration Mode When USR-WIFI232-A/B/C power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. USR-WIFI232-A/B/C UART default parameters setting as below figure Figure 44 USR-WIFI232-A/B/C...
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 to start. Page 51 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 52
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” to restore, then parameters saved. Page 52 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Description Description � < >: Means the parts must be included � [ ]: Means the optional part � � � � Command Command Message Message Command Command Message Message Page 53 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 55
Under the new mode,Settings/query server and IP address(HTTPD HTPSV Client) Under the new mode,Settings/query request type(HTTPD Client) HTPTP Under the new mode,setting/query request path(HTTPD Client) HTPURL HTPHEAD Under the new mode,Settings/query the HTTP header(HTTPD Page 55 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Settings/query Device ID REGID Notes: Notes: Notes: Notes: USR-WIFI232-A/B/C 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 5.2.2.2.1 5.2.2.2.1 5.2.2.2.1 AT+E...
USR-WIFI232-A/B/C User Manual http://www.usriot.com � IP: Server’s IP address when module set as client After USR-WIFI232-A/B/C module boots up again, the setting will be effective. 5.2.2.2.4 AT+UART 5.2.2.2.4 5.2.2.2.4 5.2.2.2.4 AT+UART AT+UART AT+UART � Function: Set/Query serial port parameters; �...
� Httpdclient : Httpd Client Mode � GPIO: GPIO Mode After USR-WIFI232-A/B/C 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 5.2.2.2.9...
USR-WIFI232-A/B/C User Manual http://www.usriot.com � mode:WIFI work mode � � After USR-WIFI232-A/B/C module boots up again, the setting will be effective. 5.2.2.2.10 5.2.2.2.10 5.2.2.2.10 5.2.2.2.10 AT+WSKEY AT+WSKEY AT+WSKEY AT+WSKEY � Function: Set/Query WIFI security parameters as STA; � Format: �...
”AP’ SSID(AP’s MAC” ), if WiFi connection available; � � ”RF Off”, if WiFi OFF; This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C 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 5.2.2.2.13...
USR-WIFI232-A/B/C User Manual http://www.usriot.com This Instruction only effective for USR-WIFI232-A/B/C works as AP. After USR-WIFI232-A/B/C module boots up again, the setting will be effective. But user can set this command when module configured as STA. 5.2.2.2.15 5.2.2.2.15 5.2.2.2.15 5.2.2.2.15 AT+WAKEY...
WAN port subnet mask; � gateway: WAN port gateway address; This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C module boots up again, the setting will be effective. But user can set this command when module configured as AP.
USR-WIFI232-A/B/C User Manual http://www.usriot.com This Instruction only effective for USR-WIFI232-A/B/C works as AP. After USR-WIFI232-A/B/C module boots up again, the setting will be effective. But user can set this command when module configured as STA. Note: AT+WANN check the wan port address of module, AT+LANN check the LAN port address of module, and the two IP cannot be set on the same network segment,If do,Module will be abnormal.
LF > > > > � Parameters: � num: 1~32, default 32. maxima TCP connection; When configure as TCP/Server, USR-WIFI232-A/B/C support maxima 32 TCP connections. If not require so much connection, user can resetting this parameters. 5.2.2.2.27 5.2.2.2.27 AT+TCPB AT+TCPB 5.2.2.2.27...
Close module’s Ethernet port function can reduce the power consumption. The default setting for USR-WIFI232-A/B/C is close Ethernet port function. Use AT + FVEW = disable/enable, so you can set the modules work in LAN port (disable) or wan port (enable), the directive restore factory Settings to take effect.
� Parameters: � ap’s ssid: AP’s SSID This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C 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 5.2.2.2.51 5.2.2.2.51...
USR-WIFI232-A/B/C User Manual http://www.usriot.com This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C module boots up again, the setting will be effective. But user can set this command when module configured as AP. 5.2.2.2.52 5.2.2.2.52 5.2.2.2.52 5.2.2.2.52 AT+WSSSID...
ASCII code, shall less than 64 bit and greater than 8bit This Instruction only effective for USR-WIFI232-A/B/C works as STA. After USR-WIFI232-A/B/C module boots up again, the setting will be effective. But user can set this command when module configured as AP.
� ID: ID number, the range is 0 to 65535 Note: the AT command of AT + REDEN, AT + REGTCP, AT + REGID is supported in V5.01.14 and above version. 6 6 6 6 USR-WIFI232-A/B/C USR-WIFI232-A/B/C USR-WIFI232-A/B/C Usage Usage...
( internal system boot ), Ready lights, said system startup complete, can operate, entering the next step. 6.1.3 Debug As shown above, opened in PC program, set the COM export and open the serial port connection Page 77 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
USR-WIFI232-A/B/C User Manual http://www.usriot.com Because of the USR-WIFI232-A/B/C 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.
Application Application For this wireless control application, USR-WIFI232-A/B/C 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 USR-WIFI232-A/B/C module.
Port Application Application For left side USR-WIFI232-A/B/C 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 USR-WIFI232-A/B/C module, configured as STA mode and setting the same SSID (...
Page 82
Application Application As above figure, one USR-WIFI232-A/B/C configured as AP mode and all others configured as STA mode. All USR-WIFI232-A/B/C which configured as STA and data server PC wireless connected to USR-WIFI232-A/B/C which configured as AP to make up a wires network.
L A N I P :1 0.1 0.9 9.2 5 4 Figure 58 Configure Configure Configure Configure Transparent Transparent Transparent Transparent Serial Serial Serial Serial Port Port Port Port Connection Connection Connection Connection (TCP) (TCP) (TCP) (TCP) Page 83 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
WIFI Module Module LAN and WAN through Web Page Page Page Page? � USR-WIFI232-A/B/C Wireless LAN IP address setting see “AP Interface Setting Page” as below Figure, Figure 59 Module Module Module Module LAN LAN IP IP IP IP Setting Setting...
AP? � Network structure as below figure: � Module 1# Setting: ( We use USR-WIFI232-A/B/C as AP for this example) � Works as AP mode and all default setting; � Module 2# Setting: � Works as STA mode;...
� Network structure as below figure: Three USR-WIFI232-A/B/C module setup 3 TCP links with PC server. Module 1# works as AP and all devices connect to module 1# through WiFi interface; � PC Setting: � IP address: 10.10.100.100;...
PC PC how get the module? module? module? module? All wifi module supports UDP search,they will return to their respective IP, MAC, MID, detailed search process is as follows: Page 88 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 89
Port: 48899) sends local IP address and MAC address and name of the module. (IP, MAC, MID as 10.10.100.254,888 B5D0000E2, guxin). So you can get to the IP address of the module. Page 89 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 91
Appendix c c c c : : : : external external external power power shutdown shutdown mode mode Appendix external power power shutdown shutdown mode mode reference reference design design reference reference design design Page 91 of 93 Jinan USR IOT Technology Limited tec@usr.cn...
Page 92
USR-WIFI232- USR-WIFI232- USR-WIFI232- USR-WIFI232-A A A A / / / / B B B B / / / / C C C C modules, modules, modules, modules, this this this this document document...
Page 93
When tcp or udp server,Tip 80, 8000, 49000 is not available. Ed.V5.0.8 Update on 16-06-2015 Increase customer support center link, remove WAPI encryption. DOCUMENT DOCUMENT END OF OF DOCUMENT DOCUMENT Page 93 of 93 Jinan USR IOT Technology Limited tec@usr.cn...