Summary of Contents for Jinan USR IOT Technology USR-WIFI232-A2
Page 1
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. Jinan USR IOT Technology Limited Page 1 of 76 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-A2 evaluation board for users to choose.
1.2 Network connection The following is the USR-WIFI232-A2 module example,Other modules are the same.Open Wi-Fi, search network, as shown in below, USR-WIFI232-A2_3378(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-A2 User Manual http://www.usriot.com Figure 3 WIFI connection Now, nlink led of USR-WIFI232-A2 Evaluation Board is lighting. 1.3 communication test Module’s default setting: SSID:USR-WIFI232-A2; 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. USR-WIFI232-A2 as a hot spot can accommodate 32 clients simultaneously wi-fi access, but also can accommodate 32 TCP client.
Shelf life in sealed bag: 12 months, at <30℃ and <60% relative humidity (RH) After bag is opened, devices that will be re-baked required after last baked with window time 168 hours. Recommend to oven bake with N2 supplied. Jinan USR IOT Technology Limited Page 11 of 76 tec@usr.cn...
Window time means from last bake end to next reflow start that has 168 hours space. 3 Hardware Introduction 3.1 Pins Definition 3.1.1 USR-WIFI232-A2 Pins Definition Figure 6 USR-WIFI232-A2 Figure 7 USR-WIFI232-A2 Pins Map Table 3 USR-WIFI232-A2 Pins Definition Description Name Directio...
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-A2 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.
Page 15
2x7 2mm DIP connector, connect WIFI module Power 3.3V Power Indicator (Red) TXD Indicator RXD Indicator Ready nReady/GPIO Indicator Link nLink/GPIO Indicator Button Reset Used to reset the module. Reload Module restore to factory default configuration. Jinan USR IOT Technology Limited Page 15 of 76 tec@usr.cn...
USR-WIFI232-A2 User Manual http://www.usriot.com 3.5 Hardware Reference Design 3.5.1 Hardware Typical Application USR-WIFI232-A2 Hardware Typical Application Figure 10 Notes: 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”...
3.5.2.1 Ethernet Connection with Transformer 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-A2 pin type module) Ethernet Reference Design with Transformer Figure 11 3.5.2.2 Ethernet Connection without Transformer...
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 USR-WIFI232-A2 modules. Jinan USR IOT Technology Limited Page 18 of 76...
Figure 14 Notes: TXD pin is also hardware configuration pin internal module. So this pin MUST pull-down during module power up. USR-WIFI232-A2 modules provide internal pull-down resister, user can’t add pull-up/pull-down resister on user board, which may cause module can’t work.
4.2 Working mode 4.2.1 Transparent Mode USR-WIFI232-A2 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.
If it is IP, is 4 bytes, for example, 192.168.0.7 said 0x07 0x00 0xA8 0xC0; if it is a domain name, then the address of indefinite length,ending with the’\0'. Data: Variable length,the maximum not exceeding 1000bytes. Jinan USR IOT Technology Limited Page 21 of 76 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-A2 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-A2 module can be configured as both wireless STA and AP base on network type. Logically there are two interfaces in USR-WIFI232-A2. One is for STA, and another is for AP. When USR-WIFI232-A2 works as AP, other STA equipments are able to connect to wireless LAN via USR-WIFI232-A2 module.
Figure 16 4.3.2 AP Because USR-WIFI232-A2 can be set to AP, can also be set to STA, so the USR-WIFI232-A2 can be achieved easily wireless ad hoc network. As showing in the figure below, USR-WIFI232-A2 (1) can be treat as an AP, and USR-WIFI232- A2 (2), USR-WIFI232-A2 (3) and the laptop are STAs connected to USR-WIFI232-A2 (1).
USR-WIFI232-A2 STA Network Structure Figure 17 4.3.3 AP+STA USR-WIFI232-A2 module support AP+STA network mode, means module support one AP interface and one STA interface at the same time, as following figure, USR-WIFI232-A2 AP+STA Network Structure Figure 18 When module enables AP+STA function, Module’s STA interface can connect with router and connect to TCP server in the network.
USR-WIFI232-A2 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-A2 module can configured as Bridge Mode or Router Mode base on different networking technology.
USR-WIFI232-A/B/C Ethernet Interface Networking (As AP) Figure 19 USR-WIFI232-A2 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-A2 and they can ntercommunication with this method.
4.5 WI-FI parameter setting 4.5.1 Auto- Frequency Function When module works as STA, USR-WIFI232-A2 will adjust its wireless channel to keep the same channel with associated AP and connect in. When module works as AP and USR-WIFI232-A2 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-A2 will think it as the end of one frame and transfer this free-frame to WiFi port, or USR-WIFI232-A2 will receive UART data until 4K bytes, then transfer 4KB frame to WiFi port.
4.7 Network Setting USR-WIFI232-A2 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.
In this way, the module of baud rate will be as the USR-VCOM to change at any time, and don't have to restart the module.If restart the module, baud rate and will come back to before. Jinan USR IOT Technology Limited Page 31 of 76...
This module can realize the function of the websocket server, allowing serial real-time interaction with the web module, replace the previous HTTP GET, POST, corresponding faster.This module provides the corresponding websocket test page for user testing, specific page is as follows:(web Page:10.10.100.254/websocketen.html) Jinan USR IOT Technology Limited Page 32 of 76 tec@usr.cn...
0.5Hz square wave with dutyfactor 1:1. User can query this signal to judge if moduleis active “live” or need to re-boot. When module switches to command mode, it will output “0”, which used to distinguish work mode and command mode. Notes: Jinan USR IOT Technology Limited Page 34 of 76 tec@usr.cn...
USR Technology for more detailed support. 4.10 Parameters Configuration USR-WIFI232-A2 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 USR- WIFI232-A2 module connected to wireless network, parameters configuration is done on a PC connected to the same wireless network.
Web Accessing and AT command set 4.12 Configuration via Web Accessing When first use USR-WIFI232-A2 modules, user may need some configuration. User can connect to USR-WIFI232-A2 module’s wireless interface with following default setting information and configure the module through laptop.
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. Jinan USR IOT Technology Limited Page 37 of 76 tec@usr.cn...
This page use to setting the parameters when USR-WIFI232-A/B/C module works as STA. Such as SSID of AP which module need to connected, and also select the networking type: DHCP or static IP address. Jinan USR IOT Technology Limited Page 38 of 76 tec@usr.cn...
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. Jinan USR IOT Technology Limited Page 39 of 76 tec@usr.cn...
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: Ethernet Setting Page Figure 32 Jinan USR IOT Technology Limited Page 40 of 76 tec@usr.cn...
GET, data can be added to the back of the path in the HTTP header.The specific way of sending data can consult section 4.2.4. HTTPD Client Mode Page Figure 33 4.12.9 WEB IO WEB IO Page Figure 34 Jinan USR IOT Technology Limited Page 41 of 76 tec@usr.cn...
4.12.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. Jinan USR IOT Technology Limited Page 42 of 76 tec@usr.cn...
4.13 AT command Introduction 4.13.1 Configuration Mode When USR-WIFI232-A2 power up, it will default works as transparent transmission mode, then user can switch to configuration mode by serial port command. USR-WIFI232-A2 UART default parameters setting as below figure USR-WIFI232-A2 Default UART Port Parameters...
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. Jinan USR IOT Technology Limited Page 44 of 76 tec@usr.cn...
Page 45
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. Jinan USR IOT Technology Limited Page 45 of 76...
AT+Instruction protocol is based on the instruction of ASCII command style, the description of syntax format as follow. Format Description < >: Means the parts must be included [ ]: Means the optional part Command Message Jinan USR IOT Technology Limited Page 46 of 76 tec@usr.cn...
Open/Close show back function ENTM Set module into transparent transmission mode NETP Set/Query network protocol parameters UART Set/Query serial port parameters UARTF Open/Close UART auto-frame function UARTFT Set/Query UART auto-frame trigger time Jinan USR IOT Technology Limited Page 47 of 76 tec@usr.cn...
Page 48
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 Jinan USR IOT Technology Limited Page 48 of 76 tec@usr.cn...
Settings/query Upload Manner REGTCP Settings/query Device ID REGID Notes: USR-WIFI232-A2 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. 4.13.2.2.1 AT+E Function: Open/Close show back function;...
USR-WIFI232-A2 User Manual http://www.usriot.com IP: Server’s IP address when module set as client After USR-WIFI232-A2 module boots up again, the setting will be effective. 4.13.2.2.4 AT+UART Function: Set/Query serial port parameters; Format: Query Operation AT+UART<CR> +ok=<baudrate,data_bits,stop_bit,parity,flowctrl><CR>< LF ><CR>< LF >...
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. 4.13.2.2.12 AT+ WSLK Jinan USR IOT Technology Limited Page 52 of 76 tec@usr.cn...
Note: The ID function requires that the server carries out corresponding processing.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, byte behind) plus two bytes radix-minus-one Jinan USR IOT Technology Limited Page 61 of 76 tec@usr.cn...
But user can set this command when module configured as AP. 4.13.2.2.54 AT+WSKEYB Function: Set/query the second AP‘s password of 3 sta parameters settings . Format: Jinan USR IOT Technology Limited Page 65 of 76 tec@usr.cn...
TKIP: When ”auth= WPAPSK”, effective or “WPA2PSK”, effective AES: When “auth= WPAPSK”, effective or “WPA2PSK”, effective key: password, ASCII code, shall less than 64 bit and greater than 8bit Jinan USR IOT Technology Limited Page 66 of 76 tec@usr.cn...
Note: the AT command of AT + REDEN, AT + REGTCP, AT + REGID is supported in V5.01.14 and above version. 5 USR-WIFI232-A2 Usage Introduction 5.1 Module Debug 5.1.1 Software Debug Tools In order to facilitate the use of my company, development of the serial and network debugging two-...
( internal system boot ), Ready lights, said system startup complete, can operate, entering the next step. 5.1.3 Debug As shown above, opened in PC program, set the COM export and open the serial port connection Jinan USR IOT Technology Limited Page 70 of 76 tec@usr.cn...
Page 71
IP address, server port number 8899, this module default monitor TCP port number, click the link to establish TCP connection,Then click the create connection. “TCP UDPDbg” Tools Create Connection Figure 45 Jinan USR IOT Technology Limited Page 71 of 76 tec@usr.cn...
USR-WIFI232-A2 User Manual http://www.usriot.com Because of the USR-WIFI232-A2 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.
Also remote TCP server can send command to control and manage the user device through the wireless network. 5.2.3 Transparent Serial Port Application For this transparent serial port application, two USR-WIFI232-A2 modules connect as below figures to build up a transparent serial port connection. Transparent Serial Port Application...
USR-WIFI232-A2 User Manual http://www.usriot.com For left side USR-WIFI232-A2 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-A2 module, configured as STA mode and setting the same SSID (”USR- WIFI232-A/B_xxxx”...
USR-WIFI232-A2 User Manual http://www.usriot.com As above figure, one USR-WIFI232-A2 configured as AP mode and all others configured as STA mode. All USR-WIFI232-A2 which configured as STA and data server PC wireless connected to USR- WIFI232-A2 which configured as AP to make up a wires network.
Page 76
Increase customer support center link, remove WAPI encryption. Ed.V5.0.9 Update on 29-06-2015 V5.01.19 Modify the BUG Ed.V5.0.9 Update on 03-08-2015 Amend the company address.Modify some describe errors END OF DOCUMENT Jinan USR IOT Technology Limited Page 76 of 76 tec@usr.cn...