background image

USR-WIFI232-A/B/C User Manual

http://www.usriot.com

Jinan USR IOT Technology Limited

Page 28 of 93

[email protected]

Destination

Destination

Destination

Destination port

port

port

port::::

Little endian, low byte in the former,such as port 23, here are 0x17 0x00

Target

Target

Target

Target address:

address:

address:

address:

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:

Data:

Data:

Data:

Variable length,the maximum not exceeding 1000bytes.

Sum

Sum

Sum

Sum check:

check:

check:

check:

From the function word to check byte (does not contain a check byte), add Sum check.

The following is an example of a specific application:

send data:0x55 0xaa 0x00 0x0a 0x00 0x00 0x00 0x21 0x00 0x85 0x00 0xA8 0xC0 0x01 0x0f

Length:0x00 0x0a

Function byte:0x00 (UDP;Short connection;IP;cut protocol)

Destination port:0x21 0x00(33)

Target address:0x85 0x00 0xA8 0xC0 (192.168.0.133)

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.

GPIO n IN,

Set GPIOn as input, Response GPIO OK or GPIO NOK;

GPIO n OUT 0, Set GPIOn as output and output

0

, Response GPIO OK or GPIO NOK;

GPIO n OUT 1, Set GPIOn as output and output

1

, Response GPIO OK or GPIO NOK;

GPIO n SW,

Set GPIOn as output and switch the output status, Response GPIO OK or

GPIO NOK;

GPIO n PWM m1 m2, Set GPIOn output a wave: m1 is

high

duration and m2 is

low

duration (Time unit is

ms

and minimal is 10ms), Response GPIO OK or GPIO NOK;

GPIO n GET, Read GPIOn status, Response I0,I1,O0,O1, means

input low

,

input

high

,

output low

,

output high

Notes: n can be 3, 4, 5, 6, 8, 9 corresponding module pin. GPIO 4 can only defined as input and

GPIO 3 can only defined as output.

GPIO READ returns all current IO status, and GPIO n GET said method. Such as, I1I1I0I0I0I0O1,

I said input, O output. 0 low, 1 express high.4 pin is negated. Read the 1 actual 0 actual 1, read

the 0.

4.2.4

HTTPD Client mode

This mode is used to send data to the HTTP server.

After setting the HTTP header format by webpage or AT command, the data sent each time by

UART will add the HTTP header automatically.Convenient for the user directly submit data or

read data from the HTTP server.

Summary of Contents for WIFI232-A

Page 1: ...Fi Module Module Module Module User User User User Manual Manual Manual 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 F...

Page 2: ...USR WIFI232 A B Pins Definition 13 3 1 2 USR WIFI232 Ca Cb Pins Definition 15 3 2 Mechanical Size 16 3 2 1 USR WIFI232 A B 16 3 2 2 USR WIFI232 Ca Cb 17 3 3 Antenna 18 3 3 1 On board Chip Antenna 18 3...

Page 3: ...Registered Package ID MAC 37 4 8 3 Self adaption Baudrate 38 4 8 4 WEB IO 38 4 8 5 Keepalive 38 4 8 6 Multiple STA parameters 38 4 8 7 Websocket 39 4 8 8 Fast access Wi Fi usr link 39 4 9 Palmodic Sig...

Page 4: ...AT WAKEY 61 5 2 2 2 16 AT HIDESSID 61 5 2 2 2 17 AT MSLP 62 5 2 2 2 18 AT WSCAN 62 5 2 2 2 19 AT TCPLK 62 5 2 2 2 20 AT TCPDIS 62 5 2 2 2 21 AT WANN 63 5 2 2 2 22 AT LANN 63 5 2 2 2 23 AT DHCPDEN 64...

Page 5: ...3 Debug 77 6 2 Use Cases 79 6 2 1 Wireless Control Application 79 6 2 2 Remote Management Application 80 6 2 3 Transparent Serial Port Application 80 6 2 4 Wireless Data Acquisition Card Application 8...

Page 6: ...mited Page 6 of 93 tec usr cn 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 Appe...

Page 7: ...rocess you can refer to the official website of our application case http www usriot com Faq cat 47 html http www usriot com Faq cat 47 html http www usriot com Faq cat 47 html http www usriot com Faq...

Page 8: ...32 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 th...

Page 9: ...ters of the corresponding set of network communication parameters you can make serial WIFI communication the steps are as follows 1 Open test software USR TCP232 Test 2 COM Settings area left Choose C...

Page 10: ...reless Standards Standards Standards Standards Support Support Support Support TCP IP UDP TCP IP UDP TCP IP UDP TCP IP UDP Network Network Network Network Protocols Protocols Protocols Protocols Suppo...

Page 11: ...m Antenna Option External I PEX Connector Internal On board chip antenna Hardware Hardware Hardware Hardware Parameters Parameters Parameters Parameters Data Interface UART 300bps 460800bps GPIOs Ethe...

Page 12: ...quired after last baked with window time 168 hours 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 boar...

Page 13: ...Y TRAY TRAY TRAY Size 420 245 34 mm Note Note Note Note 1 tray 5 20 pcs 100 pcs 1 box 2 trays 2 100 pcs 200pcs 1 carton 4 boxes 4 200 pcs 800pcs 3 3 3 3 Hardware Hardware Hardware Hardware Introductio...

Page 14: ...be configured as GPIO pins and can change GPIO pin status through AT command GPIO GPIO3 I O 4 4 4 4 UART Data Receive UART_RXD I GPIO GPIO4 I O 5 5 5 5 UART sends request of data transmission UART_RT...

Page 15: ...Cb Pins Definition Figure 9 USR WIFI232 USR WIFI232 USR WIFI232 USR WIFI232 Ca Cb Ca Cb Ca Cb Ca Cb Figure 10 USR WIFI232 USR WIFI232 USR WIFI232 USR WIFI232 Ca Cb Ca Cb Ca Cb Ca Cb Pins Pins Pins Pin...

Page 16: ...WIFI connection available 1 No WIFI connection 15 Module reset signal nRST I Low 0 effective reset input The reset duration should be kept more than 300ms 16 Indicate the module status of power on pr...

Page 17: ...USR WIFI232 USR WIFI232 A B A B A B A B Mechanical Mechanical Mechanical Mechanical Size Size Size Size 3 2 2 USR WIFI232 Ca Cb USR WIFI232 Ca Cb module Mechanical Dimension Figure 12 USR WIFI232 USR...

Page 18: ...R WIFI232 A B C USR WIFI232 A B C USR WIFI232 A B C Chip Chip Chip Chip Antenna Antenna Antenna Antenna Keep Keep Keep Keep Out Out Out Out Region Region Region Region USR technological suggestions US...

Page 19: ...on 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 test...

Page 20: ...ion Function Name Name Name Name Description Description Description Description External External External External Interface Interface Interface Interface DC jack 5V power input connector DB9 Male s...

Page 21: ...set 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 at least 300ms then set 1 to keep m...

Page 22: ...to factory default configuration Input Logics 0 effective User can assert nReload signal 0 more than 3 s through button or MCU pin then release module will restore to factory default configuration and...

Page 23: ...n without Transformer For this application Ethernet will work as internal data transmition interface and save one transformer and RJ45 connector Ethernet PHY to PHY connection will use AC coupled conn...

Page 24: ...chematic Schematic resistance resistance resistance resistance changes changes changes changes Specific PHY PHY direct connection reference to user manual chapter 1 3 2 2 application of Ethernet witho...

Page 25: ...Reference Design Design Design Design Notes Notes Notes Notes TXD pin is also hardware configuration pin internal module So this pin MUST pull down during module power up USR WIFI232 A B C modules pro...

Page 26: ...t Hardware Flow Control Work Mode Selection Transparent mode Serial command mode GPIO mode The following sections will introduce specific to each part in detail 4 2 4 2 4 2 4 2 Working Working Working...

Page 27: ...ength Length Starting from the function byte to Sum check does not contain the sum check all bytes High byte at the front Function Function Function Function byte byte byte byte Bit0 UDP 0 TCP 1 Bit1...

Page 28: ...O 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 GPIO...

Page 29: ...d of HTTP header definition called the new mode the way at above is called the old mode Users can custom HTTP headers in the way of the new mode can add delete modify the contents of each HTTP header...

Page 30: ...transmitted through the AP The figure following shows such type of networking A P U S R W I F I 2 3 2 A B C U S R W I F I 2 3 2 A B C U S R W I F I 2 3 2 A B C U A R T U s e r D e v i c e Figure 23 US...

Page 31: ...AP interface and one STA interface at the same time as following figure A P User Device UART Phone U S R WIFI 2 3 2 A B C Tcp Client Tcp server Tcp server Tcpb Figure 25 USR WIFI232 A B C USR WIFI232...

Page 32: ...disable the STA scan through the following command AT STTC on off on Scan AP off No Scan AP After re start module this command not saved AT FSTTC on off This command is saved after re staring the mod...

Page 33: ...3 2 A B C A P P C 2 I P 1 0 1 0 1 0 0 1 0 1 GateWay 1 0 1 0 1 0 0 2 5 4 I P 1 0 1 0 1 0 0 2 5 4 I P 1 9 2 1 6 8 1 1 0 1 GateWay 1 9 2 1 6 8 1 1 0 1 I P 1 9 2 1 6 8 1 1 I P 1 9 2 1 6 8 1 1 0 0 GateWay...

Page 34: ...l get assigned IP address from AP For example 192 168 1 101 For module works as bridge mode it can be treated as a transparent device and PC1 PC2 can communicate without any limit But in this networki...

Page 35: ...in to the illegal AP thereby and then network leakage happen Users can prevent STA from joining to illegal network by binding the BSSID address to improve wireless network security 4 6 4 6 4 6 4 6 UAR...

Page 36: ...n Detailed UART auto frame function can refer to AT instruction set UARTF UARTFT UARTFL introduction 4 7 4 7 4 7 4 7 Network Network Network Network Setting Setting Setting Setting USR WIFI232 A B C m...

Page 37: ...the password 0x0d 0x0a the password is Webpage authentication password The default password is admin so the first piece of data should be 0x61 0x64 0x6D 0x69 0x6E 0x0D 0x0A Hex If the password is corr...

Page 38: ...page in WEB IO you can click on the corresponding button to control module pin level Without the need to download and install app any platform any equipment as long as you can into the built in Webpag...

Page 39: ...ion at the same time This function for web applications and for web users with higher response speed if you want to customize the corresponding web page can connect your company Note This function occ...

Page 40: ...rom module to phone PDA HEX FF 00 14 81 02 54 45 53 54 31 00 40 0D 0A 54 45 53 54 32 00 37 0D 0A 1F Explanation The phone PDA send searching command to module the response from module is SSID of route...

Page 41: ...This function is user selected factory setting and RELD instruction will not effective for this function If user not requires this function the default factory setting is Status One Contact with USR...

Page 42: ...al http www usriot com Jinan USR IOT Technology Limited Page 42 of 93 tec usr cn 4 11 4 11 4 11 4 11 Firmware Firmware Firmware Firmware Upgrade Upgrade Upgrade Upgrade USR WIFI232 A B C module suppor...

Page 43: ...fault Default Default Setting Setting Setting Setting SSID USR WIFI232 A B_xxxx IP Address 10 10 100 254 Subnet Mask 255 255 255 0 User Name admin Password admin 5 1 1 Open Web Management Interface St...

Page 44: ...r configuration options and a restart the corresponding instructions below WI FI Setting set the working mode of wifi AP mode or the STA Ethernet Ports Setting open close the Ethernet ports and set up...

Page 45: ...ge This page use to setting the parameters when USR WIFI232 A B C module works as AP Figure 36 AP AP AP AP Interface Interface Interface Interface Setting Setting Setting Setting Page Page Page Page 5...

Page 46: ...Interface Interface Interface Setting Setting Setting Setting Page Page Page Page 5 1 6 Application Setting Page This page use to setting the parameters of serial port communication such as UART sett...

Page 47: ...Server Server Server 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...

Page 48: ...n user agent HTTPD Client mode support POST PUT GET three HTTP request types Is a POST or PUT request way serial data can be added to the back of the HTTP header When the request is a GET data can be...

Page 49: ...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 Figure 42 Advanced Advanced Advanced Adv...

Page 50: ...k click click click the the the the Restart Restart Restart Restart button button button button here here here here the the the the module module module module will will will will re boot re boot re b...

Page 51: ...edback ok ok ok ok to to to to go go go go into into into into AT AT AT AT instruction instruction instruction instruction set set set set configuration configuration configuration configuration mode...

Page 52: ...nstruction for for for for Help Help Help Help We supply software USR WIFI232 Setup to send command easily software setup Figure 47 Serial Serial Serial Serial port port port port parameter parameter...

Page 53: ...software see Net part Figure 49 Search Search Search Search module module module module Click search then will show module click module then you can send command 5 2 2 1 Instruction Syntax Format AT I...

Page 54: ...4 para 1 para 2 para 3 para 4 para 1 para 2 para 3 para 4 CR LF CR LF CR LF CR LF CR LF CR LF CR LF CR LF Prefix of response message RSP Response string ok Success ERR Failure op para n Parameters if...

Page 55: ...ery TCPB server address TCPTOB Set Query TCPB time out time TCPLKB Query TCPB link status EPHY Open Close ETH interface STTC Enable Disable STA port scan function DOMAIN Set Query domain of module web...

Page 56: ...AT ENTM AT ENTM AT ENTM AT ENTM Function Set module into transparent transmission mode Format AT ENTM CR AT ENTM CR AT ENTM CR AT ENTM CR ok CR ok CR ok CR ok CR LF LF LF LF CR CR CR CR LF LF LF LF W...

Page 57: ...rl CR ok CR ok CR ok CR ok CR LF LF LF LF CR CR CR CR LF LF LF LF Parameters baudrate 300 600 1200 1800 2400 4800 9600 19200 38400 57600 115200 230400 345 600 460800 data_bits 5 6 7 8 stop_bits 1 2 pa...

Page 58: ...5 2 2 2 8 AT TMODE AT TMODE AT TMODE AT TMODE Function Set Query data transmission mode Format Query Operation AT TMODE CR AT TMODE CR AT TMODE CR AT TMODE CR ok tmode CR ok tmode CR ok tmode CR ok tm...

Page 59: ...PSK effective key password 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...

Page 60: ...usr password CR ok usr password CR LF LF LF LF CR CR CR CR LF LF LF LF Set Operation AT AT AT AT WEBU WEBU WEBU WEBU usr password usr password usr password usr password CR CR CR CR ok CR ok CR ok CR...

Page 61: ...ion mode OPEN SHARED WPAPSK encry Encryption algorithm NONE When auth OPEN effective WEP When auth OPEN effective or SHARED effective TKIP When auth WPAPSK effective AES When auth WPAPSK effective TKI...

Page 62: ...e start the module and module go into transparent transmission mode 5 2 2 2 18 5 2 2 2 18 5 2 2 2 18 5 2 2 2 18 AT WSCAN AT WSCAN AT WSCAN AT WSCAN Function Seek AP when module works as STA mode Forma...

Page 63: ...LF CR CR CR CR LF LF LF LF Set Operation AT AT AT AT WANN WANN WANN WANN mode address mask gateway mode address mask gateway mode address mask gateway mode address mask gateway CR CR CR CR ok CR ok CR...

Page 64: ...LF CR LF 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 5 2 2 2 24 5 2 2 2 24 5 2 2 2 24 AT AT AT AT DHC...

Page 65: ...ver 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 5 2 2 2 27 5 2 2 2 27 AT TCPB AT TCPB AT TCPB AT TCPB...

Page 66: ...uery Operation AT TCPTOB CR AT TCPTOB CR AT TCPTOB CR AT TCPTOB CR ok time CR ok time CR ok time CR ok time CR LF LF LF LF CR CR CR CR LF LF LF LF Set Operation AT AT AT AT TCPTOB time CR TCPTOB time...

Page 67: ...Sta when query this value feedback On Enable STA port scan function Off Disable STA port scan function 5 2 2 2 34 5 2 2 2 34 5 2 2 2 34 5 2 2 2 34 AT DOMAIN AT DOMAIN AT DOMAIN AT DOMAIN Function Set...

Page 68: ...IDFIR IDFIR on off CR on off CR on off CR on off CR ok CR LF CR LF ok CR LF CR LF ok CR LF CR LF ok CR LF CR LF Parameters On off Enable or Disable Send an ID when module connection is established fun...

Page 69: ...ult setting Format AT AT AT AT RELD CR RELD CR RELD CR RELD CR ok rebooting ok rebooting ok rebooting ok rebooting CR CR CR CR LF LF LF LF CR CR CR CR LF LF LF LF This command restores the module to f...

Page 70: ...5 2 2 2 46 5 2 2 2 46 5 2 2 2 46 AT AT AT AT HTTPTP HTTPTP HTTPTP HTTPTP Function Set Query HTTP request type Format Query Operation AT HTTPTP CR AT HTTPTP CR AT HTTPTP CR AT HTTPTP CR ok Type CR ok...

Page 71: ...T WSSSID AT WSSSID AT WSSSID AT WSSSIDA A A A Function Set query the first AP s ssid of 3 sta parameters settings Format Query Operation AT WSSSID AT WSSSID AT WSSSID AT WSSSIDA A A A CR CR CR CR ok a...

Page 72: ...dule configured as AP 5 2 2 2 53 5 2 2 2 53 5 2 2 2 53 5 2 2 2 53 AT WSKEY AT WSKEY AT WSKEY AT WSKEYA A A A Function Set query the first AP s password of 3 sta parameters settings Format Query Operat...

Page 73: ...ive But user can set this command when module configured as AP 5 2 2 2 55 5 2 2 2 55 5 2 2 2 55 5 2 2 2 55 AT WSKEY AT WSKEY AT WSKEY AT WSKEYC C C C Function Set query the third AP s password of 3 st...

Page 74: ...ode HTTPD Client Format Query Operation AT AT AT AT HTPMODE HTPMODE HTPMODE HTPMODE CR CR CR CR ok ok ok ok type type type type CR CR CR CR LF LF LF LF CR CR CR CR LF LF LF LF Set Operation AT AT AT A...

Page 75: ...T HTP HTP HTP HTPHEAD HEAD HEAD HEAD Function Set Query HTTP header Format Query Operation AT HT AT HT AT HT AT HTPHEAD PHEAD PHEAD PHEAD CR CR CR CR ok ok ok ok head head head head CR CR CR CR LF LF...

Page 76: ...64 5 2 2 2 64 5 2 2 2 64 5 2 2 2 64 AT AT AT AT REGID REGID REGID REGID Function Settings query Device ID Format Query Operation AT AT AT AT REGID REGID REGID REGID CR CR CR CR ok ok ok ok ID ID ID ID...

Page 77: ...d some bad in order not to waste your valuable time look for buying a used FT232 chip scheme suggested switching line about the price 10 Figure 50 Connection Connection Connection Connection diagram d...

Page 78: ...number this is COM1 choose 57600 baud rate such as the WIFI module serial default baud rate open the serial port Network settings in TCP client mode the server IP address input 10 10 100 254 this is...

Page 79: ...lts results results results show show show show that that that that the the the the network network network network and and and and serial serial serial serial port port port port Note Note Note Note...

Page 80: ...rnet User Device User Device Figure 55 Remote Remote Remote Remote Management Management Management Management Application Application Application Application For this remote management application US...

Page 81: ...ight side USR WIFI232 A B C boot up it will find wireless AP SSID USR WIFI232 A B_xxxx for this example and open TCP Client network protocol to connect with left side module s TCP Server All these ope...

Page 82: ...IP 1 0 1 0 1 0 0 2 5 4 Net Prot tcp client 1 0 1 0 1 0 0 1 0 0 8899 User Device User Device Figure 57 Wireless Wireless Wireless Wireless Data Data Data Data Acquisition Acquisition Acquisition Acqui...

Page 83: ...mode See Mode Selection Page WAN connection type DHCP or Static IP For this example 10 10 100 100 See STA Interface Setting Page Network Protocal TCP Client Port ID 8899 Application IP address Module...

Page 84: ...Setting Setting Setting Setting Q3 Q3 Q3 Q3 How How How How to to to to configure configure configure configure transparent transparent transparent transparent serial serial serial serial port port p...

Page 85: ...P UDP Q4 Q4 Q4 Q4 Where Where Where Where to to to to set set set set USR WIFI232 A B C USR WIFI232 A B C USR WIFI232 A B C USR WIFI232 A B C module module module module network network network networ...

Page 86: ...as as as STA STA STA STA and and and and connection connection connection connection through through through through AP AP AP AP Network structure as below figure Module 1 Setting We use USR WIFI232 A...

Page 87: ...tion for dynamic and static IP address mixed application Module dynamic IP address range from 100 to 200 for last IP address segment Such as default IP 10 10 100 254 When module works as AP the IP add...

Page 88: ...SID U S R WIFI 2 3 2 A P _xxxx LAN IP 1 0 1 0 1 0 0 2 5 4 Net Prot tcp client 1 0 1 0 1 0 0 1 0 0 8899 User Device User Device User Device U S R WIFI2 3 2 A B C Figure 66 Wireless Wireless Wireless Wi...

Page 89: ...assword the default password is HF A11ASSISTHREAD the password can be used AT commands AT FASWD set up it s Up to 100 bytes 2 After the module receives a password if the password is correct to the add...

Page 90: ...User Manual http www usriot com Jinan USR IOT Technology Limited Page 90 of 93 tec usr cn Appendix Appendix Appendix Appendix b b b b evb evb evb evb reference reference reference reference design des...

Page 91: ...nology Limited Page 91 of 93 tec usr cn Appendix Appendix Appendix Appendix c c c c external external external external power power power power shutdown shutdown shutdown shutdown mode mode mode mode...

Page 92: ...in in the the the the product product product product sale sale sale sale clause clause clause clause USR USR USR USR does does does does not not not not assume assume assume assume any any any any ot...

Page 93: ...fault open Delete the AT FRLDEN Ed V5 0 4 Update on 14 12 Add the AT setting of three sta parameter sets More advanced Settings page including the port mapping and DDNS Ed V5 0 5 Update on 15 01 2015...

Reviews: