background image

USR-WIFI232-A/B/C User Manual

http://www.usriot.com

Jinan USR IOT Technology Limited

Page 80 of 93

[email protected]

Figure 54

Wireless

Wireless

Wireless

Wireless Control

Control

Control

Control Application

Application

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.

6.2.2

Remote Management Application

U S R -W I F I 2 3 2 -

A/B/C

S T A

U A R T

U S R -W I F I 2 3 2 -

A/B/C

S T A

U A R T

Internet

User 

Device

User 

Device

Figure 55

Remote

Remote

Remote

Remote Management

Management

Management

Management Application

Application

Application

Application

For this remote management application, USR-WIFI232-A/B/C 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.

So, user device’s data or sampling information can send to remote TCP server for storage or

processing. Also remote TCP server can send command to control and manage the user device

through the wireless network.

6.2.3

Transparent Serial Port Application

For this transparent serial port application, two USR-WIFI232-A/B/C modules connect as below figures

to build up a transparent serial port connection.

Содержание WIFI232-A

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: