Home
USR-WIFI232-X-V4.2 Embedded WiFi Module User Manual
Contents
1. E S S S ZZ AP Interface Setting such as SSID Security yy STA Interface Setting r Application Setting Wireless Network mj Device Management Network Mode 11b g n mixed mode Network Name SSID H Atx AP 0 Hidden isolated Broadcast Network Name SSID Enable C Disable AP Isolation C Enable Disable BSSID 88 8B 5D 70 04 87 Frequency Channel AutoSelect 3 Apply Cancel HF A11x AP Secnrity Mode Disable D Apply Cancel IP Address 1010300254 8 8 Subnet Mask 255 255 2550 MAC Address 88 8B 5D 70 04 87 DHCP Type Sener zl mE Default DHCP Gateway 10 10 100 254 Apply Cancel Figure 26 AP Interface Setting Page 3 1 4 STA Interface Setting Page This page use to setting the parameters when USR WIFI232 X 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 Co Ltd Page 36 of 70 tec Qusr cn 97 BARR A U Sat Ch USR WIFI232 X V4 0 User Manual http en usr cn ii Mode Selection STA Interface Setting You could configure STA interface parameters here Application Setting iy icauon sett STA Interface Parameters m Device Management SSID HF A1 1x AP MAC Address Optional Security Mode OPEN D Encryption Type None D Apply Cancel WAN Connection Type DHCP Auto config D DHCP Mode Hostname I
2. Figure 38 USR WIFI232 X Default UART Port Parameters In configuration mode user can setting the module through AT instruction set which cover all web page setting function 4 1 1 Switch to Configuration Mode Two steps to finish switching from transparent transmission mode to configuration mode gt UART input after module receive and feedback a as confirmation gt UART input a after module receive a and feedback tok to go into AT instruction set configuration mode nSerial CON3 SecureCRT TER m 380 HMO Sai BES IA Hw du sm amp 445393s1 9 Serial COM3 ara Serial COM3 3 1 2647 909 vT100 Figure 39 Switch to Configuration Mode Notes 1 When user input No Enter key required the UART port will display feedback information a and not display input information rr as above UART display Jinan USR IOT Technology Co Ltd Page 44 of 70 tec Qusr cn 97 ARE A U Sat Ch USR WIFI232 X V4 0 User Manual http en usr cn 2 Any other input or wro ng step to UART port will cause the module still works as original mode transparent transmission 4 2 AT Instruction Set Overview 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 j5erial CON3 SecureCkT TER ei BEM E
3. Close Recy Options Receive to file Add line return Receive As HEX Receive Pause Save Clear Send Options Data from file Auto Checksum Auto Clear Input Send As Hex Send Recycle Interval 1000 1000 ms Load Clear Le Ready NetSettings 1 Protocol Network data receive Receive from 10 10 100 254 8899 Jinan USR Technology Co Ltd Jinan USR COM port data receive http fren usr enhttp dien usr cnhttp en u sr ch Ltd Jinan USR Technology 2 Server IP 2 Server Port Ae Disconnect Recv Options Receive to file Add line return Receive s HEX Receive Pause Save Clear Send Options Data from file Auto Checksum Auto Clear Input Send As Hex LocalHost 10 10 100 100 10 100 100 Port Send Recycle Jinan USR Technology Co http en usr en Interval 10 ms Send Send Load Clear Send 90 Recv 48 Reset Ready Send 48 Recv 90 Reset Figure 33 The test results show that the network and serial port Special 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 USR TCP232 Test we provide testing or just RXD TXD GND connected the three line to the computer please leave 3 2 4 Wireless Control Application User Device Jinan USR IOT Tech
4. gt Data Transmit Acknowledge Command SEND ACK Jinan USR IOT Technology Co Ltd Page 21 of 70 tec usr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn B USR WIFI232 X module replies this command to acknowledge receive SEND frame data B SEND ACK frame structure Command Word 01 Serial Number SS Serial Number need keep the same with SEND command s serial number Reserve Part 0000 CAII reserve part shall set to 0 Acknowledge Information XX 00 OK FF or others NOK gt Data Receive Request Command RECH B User device use this command to send data receive request to USR WIFI232 X modules B RECV frame structure 0 l 2 3 4 3 6 J Command Word 02 Serial Number SS Reserve Part 0000 All reserve part shall set to 0 Request Data Length LLLL CRC Check CCCC 9999 gt Data Receive Acknowledge Command RECH ACK B USR WIFI232 X module reply this command to acknowledge receive RECV command and insert data as user device request s length or shorter in the frame B RECV ACK frame structure 6 L5 L 6 L 7 0 1 2 3 4 5 0000 DUE DDDD DDDD CCCC Command Word 02 Serial Number SS Serial Number need keep the same with RECV command s serial number Reserve Part 0000 All reserve part shall set to 0 Data Length LLLL Length shall equal or shorter than request data length Data Content DDDD DDDD C
5. 8 R Net Prot TCP Client 10 10 100 100 8899 Th d b User Device BS UART IP 10 10 100 100 Net Prot TCP Server 8899 W d j User Device USR WIFI232 X User Device hp UART User Device W Til 3 USR WIFI232 X USR WIFI232 X STA SSID HF A11x AP STA SSID HF A11x AP LAN IP 10 10 99 254 LAN IP 10 10 98 254 WAN IP 10 10 100 101 Net Prot TCP Client 10 10 100 100 8899 VWAN IP 10 10 100 102 Net Prot TCP Client 10 10 100 100 8899 Figure 37 Wireless Data Acquisition Card Application As above figure one USR WIFI232 X configured as AP mode and all others configured as STA mode All USR WIFI232 X which configured as STA and data server PC wireless connected to USR WIFI232 X which configured as AP to make up a wires network Data server PC open TCP Server protocol and all USR WIFI232 X modules open TCP Client protocol All data acquisition cards data and sampling information can be transmitted to data server PC for operation Jinan USR IOT Technology Co Ltd Page 43 of 70 tec Qusr cn 97 RE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 4 AT INSTRUCTION INTRODUCTION 4 1 Configuration Mode When USR WIFI232 X power up it will default works as transparent transmission mode then user can switch to configuration mode by serial port command USR WIFI232 X UART default parameters setting as below figure Baudrate 57600 Data Bits la Parity None Stop 1 CTSRTS Disable
6. COMSettings PortNum COM x BaudR 57600 D DPaity NONE x DataB 8 bit StopB D bit Close Recy Options Receive to file Add line return Receive As HEX Receive Pause Save Clear Send Options Data from file Auto Checksum Auto Clear Input Send s Hex Send Recycle Interval 1000 ms ITO NAE Clear Le Ready R5232 USR WIFI232 X V4 0 User Manual COM port data receive Send 170 ur USR Technology Co Ltd Send Recv 1985 Reset L Ready http en usr cn to Ethernet Convert tester Network data receive NetSettings 12 Protocol TCP Client 2 Server IP 10 10 100 254 2 Server Port 8234 Connect Recv Options Receive to file Add line return V Receive As HEX Receive Pause Save Clear Send Options Data from file Auto Checksum Auto Clear Input Send s Hex Send Recycle http en usr cn Interval H O00 ms Send Load Clear Send 0 Recv 0 Reset Figure 31 CommfTools Serial Debug Tools Open test software USR TCP232 Test exe selection of hardware attached to the computer s serial 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 WIFI module default IP address server port number 8899 this m
7. External me Male serial jack of 9 pin and used to connect to DB9 Interface PC RJ45 100MEthinteface Mini USB B type interface AS 5v 1A power input port 2x 2mm DIP connector Power Red 3 3V Power Indicator CTS Green 1 CTS GPIO Indicator Pin type module Evaluation Kit Interface Description RTS Green 2 RTS GPIO Indicator sn EEN nReload GPIO Indicator 3 Ready Green 4 nReady GPIO Indicator Link Green 5 NLink GPIO Indicator Reset Used to reset the module Module restore to factory default configuration Jinan USR IOT Technology Co Ltd Page 16 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 1 3 Hardware Reference Design 1 3 1 Hardware Typical Application User Board USR WIFI232 X UART RXD UART TXD nReady nLink AH LIV 3 3V g 7 g U js KIA TS KOR GND Figure 7 USR WIFI232 X Hardware Typical Application Notes nRST Module hardware reset signal Input Logics 0 effective There is 100K Ohm pull up resister internal 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 nReady Module boot up ready signal Output Logics O effective There is 4 7K Ohm pull up resister internal The module will output 0 or Palmodic Signal after normal boot up This signal used to judge if module finish boot up and ready for
8. Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn USR WIFI232 X va2 Embedded WiFi Module User Manual Overview of Characteristic Support IEEE802 11b g n Wireless Standards Support TCP IP UDP Network Protocols Support UART GPIO Ethernet Data Interface Support Work As STA AP Mode Support Router Bridge Mode Networking Support Internal External Antenna Option Support Transparent Agreement Transmission Mode Support AT Instruction Set for Configuration Support Friendly Web Configuration Page Support Palmodic Signal Support UART Port Auto Frame Function Single 3 3V Power Supply Small Size 25 x 40mm FCC CE Certificated qr C 4 FC Flexible Software Platform with Linux OS 9 9 9 9 9 9 4 Remarks This module is applicable to USR WIFI232 A B C D and its derivatives for USR WIFI232 2 600 62E U SR WIFIMOD II USR WIFI232 L and the series of different please refer to the corresponding document Jinan USR IOT Technology Co Ltd Page 1 of 70 tec usr cn 97 FE A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn TABLE OF CONTENTS t Product 07 21 e issrsirireienriorinreraioriiroierak Pri oN EE ANAE a RAEES TE EE NE r a erai 8 tI General Pece pm 8 1 2 Hardware MN 9 Mote VS NNN 9 1 2 2 Mechanical SIZE meavissvsussiunseevnswsanisdiasensaividoadiinnsettauereidodoesiontivadehauiiniasessenstbondinaxeizeuuacns 12 1 2 3 On board Chip A En RI 13 1 24 ETNE 14 EE ET ONY WANG
9. Query Operation AT TMODE lt CR gt ok lt tmode gt lt CR gt lt LF gt lt CR gt lt LF gt Jinan USR IOT Technology Co Ltd Page 49 of 70 tec usr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn Set Operation AT TMODE lt tmode gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters tmode Data transmission mode lt Through Transparent transmission lt Agreement Agreement transmission After USR WIFI232 X module boots up again the setting will be effective 4 2 2 9 AT WMODE B Function Set Query WIFI work mode B Format Query Operation AT WMODE lt CR gt ok lt mode gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WMODE lt mode gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters mode WIFI work mode gt AP lt gt STA After USR WIFI232 X module boots up again the setting will be effective 4 2 2 10 AT WSKEY B Function Set Query WIFI security parameters as STA B Format Query Operation AT WSKEY lt CR gt ok lt auth encry key gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WSKEY lt auth encry key gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters auth Authentication mode lt gt OPEN lt SHARED lt WPAPSK encry Encryption algorithm lt gt NONE When auth OPEN effective WEP When auth OPEN or SHARED
10. effective TKIP When auth WPAPSK effective AES When auth WPAPSK effective gt Jinan USR IOT Technology Co Ltd Page 50 of 70 tec usr cn TM 9 BARK A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn key password ASCII code shall less than 64 bit and greater than 8bit This Instruction only effective for USR WIFI232 X works as STA After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 11 AT WSSSID m Function Set Query WIFI target AP SSID parameters as STA B Format Query Operation AT WSSSID lt CR gt ok lt ap s ssid gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WSSSID lt ap s ssid gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters ap s ssid AP s SSID This Instruction only effective for USR WIFI232 X works as STA After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 12 AT WSLK B Function Query WiFi link status as STA B Format Query Operation AT WSLK lt CR gt ok lt ret gt lt CR gt lt LF gt lt CR gt lt LF gt B Parameters ret lt gt Disconnected if no WiFi connection AP SSID AP s MAC if WiFi connection available gt RF Off if WiFi OFF This Instruction only effective for USR WIFI232 X works as STA After USR WI
11. nRST AP RSS Lit LG gt D 74LVC1G126 DIODES TI 0 06 pcs S AP2280 1WG 7 s amp AP2280 2WG 7 DIODES 0 13 pcs Jinan USR IOT Technology Co Ltd Page 67 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn APPENDIX D USER DEVICE PSEUDO CODE REFERENCE FOR AGREEMENT TRANSMISSION MODE define MAX DAT BUF LEN 1024 define AGREE HEAD LEN 6 define MAX SEND CMD LEN MAX DAT BUF LEN 8 define BECH CMD LENAGREE HEAD LEN 2 Define data structure struct STRAGREE d SEND AS unsigned char send cmd MAX SEND CMD LEN unsigned short send len unsigned char send s int waiting 4 send ack ll RECV fi unsigned char recv cmd RECV CMD LEN unsigned short recv len unsigned char recv s int waiting 4 recv ack agree data function do send cmd if is waiting for send ack amp is timeout send cmd out else if lis waiting for send ack generate new send cmd send cmd out else add waiting time function do recv cmd if is waiting for recv ack amp is timeout recv cmd out else if es waiting for recv ack generate new recv cm recv cmd out Jinan USR IOT Technology Co Ltd Page 68 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn else add waiting time function do send ack cmd if receiv SEND ACK and check OK amp is waiting for send ack agree data send st agree data waiting 4 sen
12. 4 Al Instrucaon IntroduclliOD o iet r ote e reta r Ro a rope Pena ER e Presa Oa aA 44 TENT TN 44 4 1 1 Switch to Configuration Mode 44 4 2 AT Instruction Set DE VEN TU 45 4 2 1 Instruction Syntax Format 45 4 Se REN 46 TE 47 E A CR EE 47 AUN UE M 48 UM WE8 a OO 48 DNA MIN IESU A E 49 ERN REN qu 49 ET GE GE EEE EEE 49 TT ME ET E 49 TANNER ee 50 TANTEN 50 EE EE EEE NE 51 EE ETG EE GERE EEE EEE o1 aU SNP 51 A ATEN 52 ENE T E 52 RGT IY BN 53 Nd WE VV IN E 53 Jinan USR IOT Technology Co Ltd Page 3 of 70 tec usr cn 97 ARE A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn am DITT hv 53 227219 AT A Ke RE 53 TT MN 54 CN EA A EK hr 54 A ee a 9 oak DACE m 55 TNT eee 55 LL NUM EE E 55 EEG EE 56 VM he 56 EN LG ND DE EEE EE EEE 56 EGGE AG gt EEE 56 EA EEE EG EEE EEE 57 AELS AT ERR GE 57 TN ee 57 ARL TRE he 57 EG ME REE EEE 58 Ae L AFE ene A ar Cen Rec er re reese 58 d2 2 99 4 TM SIS eksen 58 ES EA E d 58 ee ee WIC te TR cre 59 STP NON 59 Appendix A Questions and Answers He HII n eene nnne nenne nennen ees 60 Q1 How to configure transparent serial port application TCP protocol with two WIFI geil WE 60 Q2 Where to Set WIFI
13. Page 33 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn Figure 23 USR WIFI232 X Transparent Transmission Demo 2 10 Network Protocol USR WIFI232 X module supports TCP UDP network protocol and the port parameters can be set via web accessing or AT instruction set 2 11 Parameters Configuration USR WIFI232 X module supports two methods to configuration parameters Web Accessing and AT instruction set Web accessing means users can configure parameters through Web browser When USR WIFI232 X 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 Notes USR can customized the parameters setting as customer request and ship USR WIFI232 X modules with these parameters as factory default configuration It will reduce user s module configuration time for mass production Also if user need different parameters setting for every module USR can provide the auto configuration tool to speed up the module configuration duration Please contact USR technical interface to acquire this tool if required 2 12 Firmware Upgrade USR WIFI232 X module supports firmware upgrade online User can upgrade firmware via web access 2 13 GPIO Function USR WIFI232 X module can provide maximum 7 GP
14. lt LF gt When operate this command module switch from configuration mode to transparent transmission mode Jinan USR IOT Technology Co Ltd Page 47 of 70 tec usr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 4 2 2 3 AT NETP B Function Set Query network protocol parameters B Format Query Operation AT NETP lt CR gt ok lt protocol CS port IP gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT NETP lt protocol CS port IP gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters protocol lt gt TCP gt UDP CS Network mode lt SERVER lt gt CLIENT Port protocol port ID Decimal digit and less than 65535 IP Server s IP address when module set as client After USR WIFI232 X module boots up again the setting will be effective 4 2 2 4 AT UART B Function Set Query serial port parameters B Format Query Operation AT UART CR ok lt baudrate data bits stop bit parity flowctrl CR LF gt lt CR gt lt LF gt SetOperation AT UART lt baudrate data bits stop bit parity CR ok CR LF CR LF B Parameters baudrate lt 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 38400 576 00 115200 230400 345600 460800 data bits lt gt 5 6 7 8 stop bits zs 12 parity zz NONE EVEN ODD MARK SPACE flowctr hardware flow control CTSRTS lt gt NFC No
15. or MCU send SEND instruction to USR WIFI232 X modules USR WIFI232 X modules reply SEND ACK instruction to confirm USR WIFI232 X modules will not active transmit the serial port data to user device it only can transmit the data after receive user device s data transmit request USR WIFI232 X module has 1M byte data FIFO to save data which need to be transmitting to the user device 1 4 2 1 Agreement Transmission Data Structure Agreement transmission mode s command data structure and agreement as following The 15 Byte of each frame is command word The 2 Byte of each frame is serial number SN User device insert SN when it send command frame the SN will increase one SN 1 after one frame successful transmission SN shall reset to 0x00 after arrive OxFF as a cycle period Data Length Example LLLL which is the net length of data part Unit Byte Maximum 1024 Bytes CRC Part Example CCCC which is the CRC result of whole frame Serial transmission sequence for LLLL and CCCC Low byte first then higher byte Data Transmit Command SEND B User device use this command to send data to USR WIFI232 X module B SEND frame structure 6 N 5 N6 Ni 0 1 2 3 4 5 0000 EES DDDD DDDD CCCC Command Word 01 Serial Number SS Reserve Part 0000 All reserve part shall set to 0 Data Length LLLL Data part DDDD DDDD length Data Content DDDD DDDD CRC Check CCCC 0 HE o
16. 3 USR WIFI232 X Ethernet Interface Networking As STA Z Ver 31 2 7 Wireless Distribution System ND 32 E gen F UNGHON e WEEN 32 Jinan USR IOT Technology Co Ltd Page 2 of 70 tec usr cn 97 ARE A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn NN 33 2 10 Network Hrotocol eene nnne enne senes nt esee renes esent nes 34 2 11 Parameters MAN Ne 34 Ke Kg e TE e e ee 34 1 PONNI 34 3 Operation Guidelme Hee eme mH ne nnne nene nes nn eee sene nene ses ee ni enis Sie 3 1 Configuration via Web Acceseimg eee e emen nene nnne nnn nnne nnns 35 3 1 1 Open Web Management Interface eene 35 TT NESEN 36 3 1 3 AP Interface Setting Hage eee eene Henne nnns 36 3 1 4 STA Interface Setting Page eese eene nnne nennt nena a tans a eia 36 3 1 5 Application Setting PAGS Ver hu sved bod rlEU ce beca Sbsstdvitbata Ue Verba o sedvane 3 3 1 6 Device Management Hade esses eene nennen ennt ne nn eees 38 3 2 USR WIFI232 X Usage Introduction ccc ccccccccccccccceeecceeeeececueeceseueeeceeueeceesueecessaeeeeeeees 38 32 1 DOW COG TOOLS RENT 38 32 2 INEeLWOIK CONNEC UOM E 38 ees ae ole AUER olo 39 3 2 4 Wireless Control Applcaton mne 41 3 2 5 Remote Management Applcatnon 0 cece ceccccceeccceeeeceeececueceeueeceeneeeeaeeeesaeeees 42 3 2 6 Transparent Serial Port Appltcaton 42 3 2 7 Wireless Data Acquisition Card Applcatpnon 43
17. Module LAN IP and WAN IP through Web Page 60 Q3 How to configure transparent serial port application UDP protocol with two WIFI geil 61 Q4 Where to set USR WIFI232 X module network protocol TCP UDPJ 61 Q5 How to configure transparent serial port application Two WIFI modules all configured as STA and connection through Ab 62 Q6 How to avoid IP address confliction when apply USR WIFI232 X module 63 Q7 PC works as server all WIFI modules works as data acquisition card and connect with PC how to configure this eelere RE 63 Appendix b evb reference design 65 Appendix C external power shutdown mode reference design 66 Appendix d User Device Pseudo Code Reference For Agreement Transmission Mode 67 Appendix e Contact Informati n RE NE 69 Jinan USR IOT Technology Co Ltd Page 4 of 70 tec usr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn LIST OF FIGURES ICUS VS ED E 8 Figure 2 USR WIFI232 X Pins MD i E Eee oa a Roe xps eat evu reo qul ecntnso Ei nw denies 9 Figure 3 USR WIFI232 X Mechanical Dmension 13 Figure 4 USR WIFI232 X Chip Antenna Keep Out Region 14 Figure 5 Suggested Module Placement Hegion 14 Figure 6 USR WIFI232 X Evaluation ht 17 Figure 7 USR WIFI232 X Hardware Typical Applcaton ccc cecccccceecccceeeeceeeeeceesaeecessaeeeeeeees 18 Figure 8 Ethernet Reference Design with Transtormmer 19 Figu
18. Query Operation AT WAKEY CR ok lt auth encry key gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WAKEY lt auth encry key gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters auth Authentication mode lt gt lt gt lt gt OPEN SHARED WPAPSK encry Encryption algorithm lt gt gt gt gt NONE When auth OPEN effective WEP When auth OPEN effective or SHARED effective TKIP When auth WPAPSK effective AES When auth WPAPSk effective TKIPAES When auth WPAPSk effective Jinan USR IOT Technology Co Ltd Page 52 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn key password ASCII code shall less than 64 bit and greater than 8bit This Instruction only effective for USR WIFI232 X works as AP After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as STA 4 2 2 16 AT MSLP B Function Set modules into power save mode Turn OFF WiFi B Format Query Operation AT MSLP CR ok lt sta gt lt CR gt lt LF CR LF gt SetOperation AT MSLPz on off CR ok CR LF CR LF B Parameters When Query sta reply if the module in sleep mode lt On Module not in sleep mode WiFi ON lt gt Off Module in sleep mode WiFi OFF When Set lt Off Set m
19. WIFI232 xX User DEE USR WIFI232 X REC Nisccnl I 550 RW RKEL Wi n RECV ACK s n even E D esee s not Ah S RECW s n uvis iR change 307 RECV AC Ken m module send mm ME B C i RECV ACKis n 8 the data at the re buffer of s n RECY Error Processing Scheme RECV ACK Error Processing Scheme Figure 13 USR WIFI232 X Module Send Data to User Device Procedure 1 4 2 3 Agreement Transmission CRC Arithmetic CRC aarithmetic C language reference code as following u16 calc sum void data u32 len d u32 cksum 0 u16 p data while len gt 1 cksum p len 2 if len cksum u8 p cksum cksum gt gt 16 cksum amp Oxffff cksum cksum gt gt 16 return cksum 1 4 3 Configuration Mode In configuration mode user can finish USR WIFI232 X module configuration management and parameters setting work In work mode Transparent Transmission or Agreement Transmission user can switch to the configuration mode through AT instruction detailed switch operation refer to AT instruction set chapter Jinan USR IOT Technology Co Ltd Page 24 of 70 tec usr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 1 4 4 Multi TCP Link Connection When USR WIFI232 X module configured as TCP Server it supports Multi TCP link connection and maximum 32 TCP clients permit to
20. application or working at normal mode nLink Module WIFI connection indication Output There is 4 7K Ohm pull up resister internal When module connect to AP STA mode or some WiFi STA connect to module AP mode the module will output 0 This signal used to judge if module already at WiFi connection status nReload Module restore 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 re start boot up process User need add 4 7K 10K Ohm pull up resister external the module If not use this function then can use AT command AT FRLDEN off to disable it Jinan USR IOT Technology Co Ltd Page 17 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn UART TXD RXD UART port data transmit and receive signal There is 1K Ohm pull down resister internal User can t add pull up resister at these pins 1 3 2 10 100M Ethernet Interface USR WIFI232 X modules provide one 10 100M Ethernet PHY layer interface for data transition or user configuration This Ethernet support with transformer and without transformer PHY to PHY 2 kinds of connection 1 3 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 follo
21. flow control lt gt FC flow control After USR WIFI232 X module boots up again the setting will be effective Jinan USR IOT Technology Co Ltd Page 48 of 70 tec Qusr cn 4 2 2 5 4 2 2 6 4 2 2 7 4 2 2 8 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn AT UARTF B Function Open Close UART auto frame function B Format Query Operation AT UARTF CR ok lt para gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT UARTF lt para gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters para lt disable Close auto frame function lt enable Open auto frame function AT UARTFT B Function Set Query UART auto frame trigger time B Format Query Operation AT UARTFT lt CR gt ok lt time gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT UARTFT lt time gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters time Range 100 10000 Unit ms Auto frame trigger time AT UARTFL B Function Set Query UART auto frame trigger length m Format Query Operation AT UARTFL CR ok lt len gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT UARTFL lt len gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters len Range 64 4096 Unit byte Auto frame trigger length AT TMODE B Function Set Query data transmission mode B Format
22. off gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters sta TCPB enable status lt on TCPB enable lt gt off TCPB disable After USR WIFI232 X module boots up again the setting will be effective 4 2 2 26 AT TCPPTB B Function Set Query TCPB port number B Format Query Operation AT TCPPTB lt CR gt ok lt port gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPB lt port gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters port decimal lt 65535 After USR WIFI232 X module boots up again the setting will be effective 4 2 2 27 AT TCPADDB B Function Set Query TCPB server address B Format Query Operation AT TCPADDB lt CR gt ok lt add gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPADDB lt add gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters add TCPB server address can be IP address or url After USR WIFI232 X module boots up again the setting will be effective Jinan USR IOT Technology Co Ltd Page 56 of 70 tec usr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 4 2 2 28 AT TCPTOB B Function Set Query TCPB time out time B Format Query Operation AT TCPTOB lt CR gt ok lt time gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPTOB lt time gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B P
23. page use to manage USR WIFI232 X module general setting such as administrator setting restart module button restore factory default setting button and update firmware through webpage m Mode Selection m AP Interface Setting m STA Interface Setting i Application Setting E Device Management Notes Device Management You may configure administrator account and password load default setting or update firware Adminstrator Settings Account admin Password eee es Apply Cancel Restart Module Restart Module Restart Load Factory Defaults Load Default Button Load Default Update Firmware Location Browse Apply Figure 29 Device Management Page Restart module button When you setting the parameters of different web pages you will 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 3 2 USR WIFI232 X Usage Introduction 3 2 1 Software Debug Tools In order to facilitate the use of my company development of the serial and network debugging two in one test software USR TCP232 Test Jinan USR IOT Technology Co Ltd a x ae VJSR TCP232 Test exe Page 38 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 3 2 2 Network Connection In order to test the serial port to the WIFI network address
24. usr cn Het Setting Mode Protocol UDP d Port FI IP Address 0104304300 t Figure 7 Module Network Protocol UDP Q5 How to configure transparent serial port application Two WIFI modules all configured as STA and connection through AP Network structure as below figure B Module 12 Setting We use USR WIFI232 X as AP for this example lt gt Works as AP mode and all default setting B Module 2 Setting lt Works as STA mode See Mode Selection Page lt gt WAN connection type Static IP 10 10 100 100 See S7A Interface Setting Page lt gt Network Protocal TCP Server Port ID 8899 See Application Setting Page lt LAN IP address 10 10 99 254 Different net segment with WAN port See AP Interface Setting Page m Module 3 Setting lt Works as STA mode See Mode Selection Page lt gt WAN connection type Static IP 10 10 100 101 See S7A Interface Setting Page lt Network Protocal TCP Client Port ID 8899 Application IP address Module 2 s WAN IP address 10 10 100 100 See Application Setting Page lt LAN IP address 10 10 98 254 Different net segment with WAN port See AP Interface Setting Page 14 AP USR WIFI232 X LAN IP 10 10 100 254 TCP Server N 8899 MCU USR WIFI232 X 3 C USR WIFI232 X MCU STA STA LAN IP 10 10 99 254 LAN IP 10 10 98 254 WAN IP 10 10 100 100 WAN IP 10 10 100 101 TCP Server TCP C
25. 0 10 100 254 and all devices connected to module Ethernet interface will get assigned IP address For example 10 10 100 101 So for above networking PC1 at internal subnet can initiate a connection to PC2 For USR WIFI232 X works as router mode but PC2 can t active initiate a connection to PC1 2 6 3 USR WIFI232 X Ethernet Interface Networking As STA Z Ver STA 3 aft Ver PC1 sg 100M Eth hd dl USR WIFI232 X IP 182 168 1 101 IP 192 168 1 10 IP 182 168 1 1 IP 182 168 1 100 Gateway 192 168 1 1 Gateway 192 168 1 1 Gateway 192 168 1 1 Figure 21 USR WIFI232 X Ethernet Interface Networking As STA Z Ver Jinan USR IOT Technology Co Ltd Page 31 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn For above networking USR WIFI232 X 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 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 networking USR WIFI232 X module needs assign a static LAN IP address For example 192 168 1 10 if module also needs communication with AP or configuration through web page 2 7 Wireless Distribution System WDS USR WIFI232 X support Wireless Distribution System WDS function Thro
26. 1 Created on 1 14 2012 Ed V4 0 Update AT command information on 6 25 2012 Ed V4 1 Update 2 1 3 AT STA function using notes and related commands Add built in antenna 1 2 3 Update Appendix B C on 10 15 2012 Ed V4 2 Update EVB reference design and picture Jinan USR IOT Technology Co Ltd Page 7 of 70 tec usr cn On 5 ARK er ep USR WIFI232 X V4 0 User Manual 1 PRODUCT OVERVIEW 1 1 General Specification Table 1 Frequency range Transmit Power Wireless Parameters Receiver Sensitivity Antenna Option Data Interface Operating Voltage Operating Current Hardware Parameters Operating Temperature Storage Temperature Dimensions and Size Network Type Security Mechanisms Encryption Work Mode Software Parameters Serial command Network Protocol Max TCP Connection User Configuration User Application SW Jinan USR IOT Technology Co Ltd Page 8 of 70 USR WIFI232 X Module Technical Specifications Class item Parameters Certification FCC CE Wireless standard 802 11 b g n 2 412GHz 2 484GHz 802 11b 20 dBm Max Agreement Transmission mode TCP UDP ARP ICMP DHCP DNS HTT P 2 Web Server AT command config Support customized application SW with Linux system http en usr cn tec usr cn BASH U Sat Ch USR WIFI232 X V4 0 User Manual http en usr cn 1 2 Hardware Introduction E OSEWIFI USR WIFI2322 amp JJ USR WIFI1232 A USR WIFI232 B USR WIF
27. 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn B lt CR gt Enter Key it s OxOa or 0x0d in ASCII Notes When input AT Instruction AT lt CMD gt character will display capital letter automatic and other parts will not change as you input Response Message lt RSP gt op para 1 para 2 para 3 para 4 CR LF CR LF B Prefix of response message B RSP Response string ok Success ERR Failure op 7 para n Parameters if query command or Error code when error happened CR ASCII 0x0d lt LF gt ASCIII Ox0a Error Code Table6 Error Code Description USR WIFI232 X Web Access Default Setting EEE Invalid Command Format Invalid Command Invalid Operation Symbol Invalid Parameter Operation Not Permitted 4 2 2 AT Instruction Set Table7 AT Instruction Set List Instruction Description Z oO O null E Open Close show back function Set Query network protocol parameters Set Query serial port parameters transparent transmission or agreement transmission Set Query WIFI work mode AP or STA WSKEY Set Query WIFI security parameters as STA WSSSID Set Query WIFI target AP SSID parameters as STA WSLK Query WiFi link status as STA WEBU Set Query WEB page login parameters Jinan USR IOT Technology Co Ltd Page 46 of 70 tec usr cn 97 FE A U Sai CH USR WIFI232 X V4 0 Use
28. 9 Protocol Port 8899 IP Address 10 10 100 254 Figure 36 Transparent Serial Port Application For left side USR WIFI232 X module configured as AP mode and use default SSID and IP address network protocol configured as TCP Server mode and protocol port ID 8899 Jinan USR IOT Technology Co Ltd Page 42 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn For right side USR WIFI232 X module configured as STA mode and setting the same SSID HF A11 AP for this example with left side USR WIFI232 X module enable DHCP network and network protocol configured as TCP Client mode protocol port ID 8899 Target IP address part setting the same IP address with left side USR WIFI232 X module 10 10 100 254 for this example When right side USR WIFI232 X boot up it will find wireless AP SSID HF A11 AP for this example and open TCP Client network protocol to connect with left side module s TCP Server All these operation will be automatic and after finished the two user devices connected to USR WIFI232 X module through serial port can communicate each other and think the connection between them is fully transparent 3 2 7 Wireless Data Acquisition Card Application For this wireless data acquisition card application one PC works as data server and every data acquisition card connects with a USR WIFI232 X module to support wireless connection function AP SSID HF A11x AP LAN IP 10 10 100 254
29. 99 2 4 UART Frame Scheme 2 4 1 UART Free Frame USR WIFI232 X support UART free frame function If user select open this function module will check the intervals between any two bytes when receiving UART data If this interval time exceeds defined Jinan USR IOT Technology Co Ltd Page 29 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn value 50ms default USR WIFI232 X will think it as the end of one frame and transfer this free frame to WiFi port or USR WIFI232 X will receive UART data until 4K bytes then transfer 4KB frame to WiFi port USR WIFI232 X s default interval time is 50ms User can also set this interval to fast 10ms through AT command But user have to consider if user MCU can send UART data with 10ms interval or the UART data may be divide as fragment Through AT command AT FUARTTE fash normal user can set the interval time fast 10ms and normal 50ms This command is factory default setting command and AT RELD can t change its value 2 4 2 UART Auto Frame USR WIFI232 X support UART auto frame function If user select open this function and setting auto frame trigger length and auto frame trigger time parameters then module will auto framing the data which received from UART port and transmitting to the network as pre defined data structure gt Auto frame trigger length The fixed data length that module used to transmitting to the network gt Auto fra
30. EE 15 1 3 Hardware Reference Desom 17 1 3 1 Hardware Typical Application rn 17 1 3 2 10 100M Ethernet Intertace nemen 18 1 3 2 1 Ethernet Connection with Troanstormer 18 1 3 2 2 Ethernet Connection without Transtormmer 18 URI NTN 18 LPO TTV 19 1 4 Software Reference eegne 19 1 4 1 Transparent Transmission Mode mener enne 20 1 4 2 Agreement Transmission Mode ccc cccceccccceeececeseeeceeeeeccesseeeceseeeeeseeeceeeaeeeeeaes 21 1 4 2 1 Agreement Transmission Data Gtruchure ccc ccccccccessseccceeaseeeeeeeaeeeeeeeeanes 21 1 4 2 2 Agreement Transmission Hrocecdure ccc cccccccseeccceeecceseeececeaeeeeeseeeceeaeeeeeeaes 22 1 4 2 3 Agreement Transmission CRC Arthmeic cecccccccsseccceeeseeeeeceeseeeeeeeaeeeees 24 14 3 Configuration IOC TR TUE 24 1 4 4 Multi TCP Link CGonnechon meme nne 24 EEG Saee ce E AEAEE ET 25 1460 OPIO FUNCION ME 25 EAM OGG el CC 26 2 PNAN VANN 2f 2 1 Wireless Ee d Le NER REO ESER S 2f 2 1 1 Basic Wireless Network Based On AP ntrasiruchurel ees 2f 2 1 2 Wireless Network Based On Adhoc Network Adhoc 2f 2 1 3 Wireless Network Based On AbrGTIA cccccccccesecceeeeccecseeeceeeeeeceeaeeeeesaeeenas 28 E Ee E teen e IO EE 29 SEET 29 TATE NN 29 2A MEA Re RE 29 202 URORT 30 2 9 Address EITIOITIO E 30 2 6 Ethernet Interface Communication 30 2 6 1 USR WIFI232 X Ethernet Interface Networking As Ab 31 2 6 2 USR WIFI232 X Ethernet Interface Networking As STA N Ver 31 2 6
31. FI232 X module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 13 AT WEBU B Function Set Query WEB page login parameters B Format Query Operation AT WEBU CR ok lt usr password gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WEBU lt usr password gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters usr User name for WEB page access password Password for WEB page access Jinan USR IOT Technology Co Ltd Page 51 of 70 tec Qusr cn 97 5 Adi P Usr cn 4 2 2 14 AT WAP USR WIFI232 X V4 0 User Manual http en usr cn B Function Set Query WIFI parameters as AP B Format Query Operation AT WAP CR ok lt wifi_mode ssid channel gt lt CR gt lt LF CR LF gt Set Operation AT WAP lt wifi_mode ssid channel gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters wifi mode WiFi protocols lt gt gt gt gt 11BG 11B 11G 11BGN 11N ssid SSID when module works as AP channel WIFI channel selection lt gt lt gt AUTO CH1 CH11 This Instruction only effective for USR WIFI232 X works as AP After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as STA 4 2 2 15 AT WAKEY B Function Set Query WIFI security parameters as AP B Format
32. I232 C USR WIFI232 D TTL UART ENTFIBERER Ei TIL CART TEE E AE SAKEN ERE FARGE eH HORER Shaft IFE EAST ergeet Figure 1 USR WIFI232 X 1 2 1 Pins Definition Pin type module Pins Map PHY II PHY TX PHY RX PHY RX nReady G PIO 9 nReload G PIO 10 RESET nLink G PIO 8 UART RTS GPIO 5 UART CTS GPIO 6 UART TXD GPIO 3 UART RXD GPIO 4 GND 3 3V SMD type module Pins Map NC nLINK nRST NC nReady PHY RX nReload e PHY TX GND PHY TX GND 1 UART CTS UART1 RXD UART RTS UART1 TXD UART RXD Output 1 8V UART TXD GND GND ANT 3 3V GND t 3 3V Figure 2 USR WIFI232 X Pins Map Jinan USR IOT Technology Co Ltd Page 9 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn Table2 USR WIFI232 X Pins Definition Pin type module Definition Pin Fa ON on 10 11 12 13 14 UART sends request of SE RT K data transmission GPIO GPIO6 Description Name Directio Note n Ground GND j Powr o 3 3V 350mA power input UART Data Transmit UART TX If not use UART function this GPIO pins and can change UART Data Receive UART RX GPIO pin status through AT D command GPO PIA 110 GPIO v vo oa receives data UART CT transmission Fa permission Module reset signal RESET Low 0 effective reset input mms The reset duration should be kept more than 300ms WiFi status Indication ni
33. IO pins Refer to 1 2 1 Pin Definition charter which include 4 UART pins and 3 general use pins can be customized as GPIO pins if these functions are not required As GPIO functional pin user devices can read write GPIO pins status through AT instruction set Jinan USR IOT Technology Co Ltd Page 34 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 3 OPERATION GUIDELINE 3 1 Configuration via Web Accessing When first use USR WIFI232 X modules user may need some configuration User can connect to USR WIFI232 X module s wireless interface with following default setting information and configure the module through laptop Table 5 USR WIFI232 X Web Access Default Setting Default Setting SSID HF A11 AP IP Address 10 10 100 254 Password admin 3 1 1 Open Web Management Interface Step 1 Connect laptop to SSID USR WIFI232 X AP of USR WIFI232 X module via wireless LAN card Step 2 After wireless connection OK Open Wen browser and access http 10 10 100 254 Step 3 Then input user name and password in the page as following and click OK button The server 10 10 10 254 at GoAhead requires a username and password Warning This server is requesting that yourusername and password be sentir an insecure manner basic a thentication Figure 24 Open Web Management page The USR WIFI232 X web management page support English and Chinese language User can select lan
34. NO faint MEG IAW FHM o ei NONE command reply ok AT E Echo on off to turn on off command line echo function AT ENTM Goto Through Mode AT NETP Set Get the Net Protocol Parameters AT UART Set Get the UART Parameters AT WMODE Set Get the wIFI Operation Mode AP or STA AT WSKEY Set Get the Security Parameters of WIFI STA Mode AT WSSSID Set Get the AP s SSID of WIFI STA Mode AT WEBU Set Get the Login Parameters of WEB page AT WAP Set Get the Parameters of WIFI AP Mode AT WAKEY Set Get the Security Parameters of WIFI AP Mode AT WSCAN Get The AP site Survey only for STA Mode AT Z Reset the Module AT MID zx The Module ID eg All yymmddxxxx yy year mm month dd day xxxx serial num AT H Help Serial COM3 22 1 2647 989 vT100 Figure 40 AT H Instruction for Help 4 2 1 Instruction Syntax Format AT Instruction protocol is based on the instruction of ASCII command style the description of syntax format as follow Format Description B lt gt Means the parts must be included m Means the optional part gt Command Message AT lt CMD gt op para 1 para 2 para 3 para 4 lt CR gt B Ali Prefix of command message CMD Command string m op Symbol of command operator The command requires parameters input NULL Query the current command parameters setting B para n Parameters input for setting if required Jinan USR IOT Technology Co Ltd Page 45 of
35. OT Technology Co Ltd Page 60 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn LAN Setup IP Address 10 10 10 254 Subnet Mask 255 255 255 0 MAC Address 88 8B 5D 70 04 87 DHCP Type Server D Default DHCP Gateway 10 10 100 254 Apply Cancel Figure 2 Module LAN IP Setting gt USR WIFI232 X Wireless WAN IP address setting see STA Interface Setting Page as below Figure User can set WAN connection type to DHCP and STATIC IP WAN Connection Type STATIC fixed IP static Mode subnet Mask 25525500 Default Gateway 0 10 39 254 Apply Cancel Figure 3 Module WAN IP Setting Q3 How to configure transparent serial port application UDP protocol with two WIFI modules gt Network structure as below figure B Module 1 Setting lt Works as AP mode See Mode Selection Page lt LAN IP address 10 10 100 254 See AP Interface Setting Page lt Network Protocal UDP Port ID 8899 Application IP address 10 10 100 100 See Application Setting Page B Module 2 Setting lt Works as STA mode See Mode Selection Page lt gt WAN connection type Static IP 10 10 100 100 See STA Interface Setting Page lt Network Protocal UDP Port ID 8899 Application IP address Module 1 s LAN IP address 10 10 100 254 See Application Setting Page lt LAN IP address 10 10 99 254 Different net segmen
36. RC Check CCCC 1 4 2 2 Agreement Transmission Procedure Agreement transmission mode procedure as following chart Jinan USR IOT Technology Co Ltd Page 22 of 70 tec usr cn Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn This is a procedure user device hope to send data to USR WIFI232 X module User Device USR WIFI232 X SENDis n SEND ACK s n OK SEND Normal Procedure User Device USR WIFI232 X User Device USR WIFI232 X SEND GS n SENDi s n SEND ACK s n NOK SEND ACK s n OK mise SEND s n SEND s n1 ep ear A Hot process data and f g MD pr s n MK SEND ACK s n OK gt in T MOR Ok feedback OK SEND Error Processing Scheme SEND ACK Error Processing Scheme Figure 12 User Device Send Data to USR WIFI232 X Module Procedure Notes For Error scheme 1 if USR WIFI232 X receives wrong CRC information of SEND command it will reply back SEND ACK NOK If USR WIFI232 X not receives SEND command for the link issue user device need decide to retry This is a procedure USR WIFI232 X module send data to user device procedure User Device USR WIFI232 X REC Vis n RECY ACK s n RECV s n 1 module clear the buffer of s n and send RECV Hormal Procedure Hen EI Jinan USR IOT Technology Co Ltd Page 23 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn User Devive USR
37. Sai CH USR WIFI232 X V4 0 User Manual http en usr cn Module Broken Waiting time depend on real wireless network Waiting time depend on real wireless network UART Transparent Data Coomunication UART Transmittion Base On Protocal Figure 11 User MCU Software Flow Chart USR WIFI232 X modules provide two kinds of work mode and one configuration mode Work mode is Transparent Transmission and Agreement Transmission Configuration mode is through AT instruction set to finish module setting and configuration When USR WIFI232 X modules boot up user can select one work mode base on the setting and user can switch to the configuration mode at any kinds of work mode 1 4 1 Transparent Transmission Mode USR WIFI232 X 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 As in this mode the module s serial port always work in the transparent transmission mode so users only need to think of it as a virtual serial cable and send and receive data as using a simple serial In other words the serial cable of users original serial devices is directly replaced with the module user devices can be easy for wireless data transmission without any ch
38. TA mode B Format Query Operation AT WANN CR ok lt mode address mask gateway gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WANN lt mode address mask gateway gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters mode IP setting for WAN port lt gt static Static IP lt DHCP Dynamic IP address WAN port IP address mask WAN port subnet mask gateway WAN port gateway address This Instruction only effective for USR WIFI232 X works as STA After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 21 AT LANN B Function Set Query LAN setting only effective as AP mode B Format Query Operation AT LANN CR ok lt address mask gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT LANN lt address mask gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters address LAN port IP address mask LAN port subnet mask Jinan USR IOT Technology Co Ltd Page 54 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn This Instruction only effective for USR WIFI232 X works as AP After USR WIFI232 X module boots up again the setting will be effective But user can set this command when module configured as STA 4 2 2 22 AT DHCPGW B Function Set Query DHCP gateway address B Format Q
39. User Manual http en usr cn support this function Such as N Ver and Z Ver as following which need customized firmware as customer detailed requirement So please contact with USR technical support interface to know more about Ethernet interface networking application 2 6 1 USR WIFI232 X Ethernet Interface Networking As AP PC1 z di sig 100 Eth JERN EG HL Fess aa LE TL ee i p USR WIFI232 X IP 10 10 100 101 AP IP 10 10 100 100 GateWay 10 10 100 254 IP 10 10 100 254 GateWay 10 10 100 254 Figure 19 USR WIFI232 X Ethernet Interface Networking As AP For above networking USR WIFI232 X 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 X and they can intercommunication with this method 2 6 2 USR WIFI232 X Ethernet Interface Networking As STA N Ver STA Soft N Ver PC1 oe PC2 100m Eth Wen 0 yd USR WIFI232 X i IP 10 10 100 104 P 10 10 100 254 P 192 155 1101 IP 182 168 1 1 IP 192 188 1 100 Gateway 10 10 100 254 SE EE Gateway 192 188 1 1 Figure 20 USR WIFI232 X Ethernet Interface Networking As STA N Ver For above networking USR WIFI232 X module works as STA Firmware is N Version and module configured as router mode When module connect to AP it will get wireless port IP address from AP For example 192 168 1 100 At the same time module also form a subnet Default 1
40. a from serial port user will be duplicate and broadcast to each TCP connection Jinan USR IOT Technology Co Ltd Page 25 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 1 4 6 GPIO Function USR WIFI232 X module support 2 GPIO mode GPIO 1 and GPIO 2 At GPIO 1 mode UART TXD RXD CTS RTS defined as GPIO and others nReady nLink nReload defined as functional pin At GPIO 2 all these 7 pins defined as GPIO So GPIO mode not supports UART communication When module works at GPIO mode PC and other equipments can setup connection TCP UDP through WiFi then read write GPIO information through command gt GPIOnNIN Set GPIOn as input Response GPIO OK or GPIO NOK gt GPIO n OUT 0 Set GPIOn as output and output 0 Response GPIO OK or GPIO NOK gt GPIO n OUT 1 Set GPIOn as output and output 1 Response GPIO OK or GPIO NOK gt GPIO n SW Set GPIOn as output and switch the output status Response GPIO OK or GPIO NOK gt GPIO n PWM m1 m2 Set GPlOn 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 gt GPIO n GET Read GPIOn status Response 10 11 00 01 means input low input high output low output high Notes n can be 3 4 5 6 8 9 10 corresponding module pin GPIO 4 and 10 can only defined as input and GPIO 3 can only defined as output GPIO READ returns all current IO status
41. ace PHY RX EN WiFi status Indication Module reset signal Low 0 effective reset input 1 WIFI connection available 0 No WIFI connection Can be configured as GPIO The reset duration should be kept more than 300ms Jinan USR IOT Technology Co Ltd Page 11 of 70 tec Qusr cn 97 ARE A Usr cn USR WIFI232 X V4 0 User Manual 16 Indicate the module status O of power on process nReady 7 nReload Restore configuration UART RXD UART1 Data Receive UART1 Data Transmit Output 1 8V 2 4GHz Antenna 1 2 2 Mechanical Size UART TXD 12 13 NC USR WIFI232 X modules physical size as follows Pin type module Mechanical Size Jinan USR IOT Technology Co Ltd Page 12 of 70 http en usr cn 0 Finish module boot up process 1 Module boot up not finish Can be configured as GPIO Module will Restore factory default configuration after set this pin 0 more than 1s then set 1 oV biocompatible with port isolation 1 8V 300mA to Eth application the 50ohm control line impedance tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 25 0 23 1 0 6 1 0 1 0 0 9 SMD module Mechanical Dimension 40 0 Figure 3 USR WIFI232 X Mechanical Dimension 1 2 3 On board Chip Antenna USR WIFI232 X supports a built in antenna options when customers choose a built in antenna must
42. and GPIO n GET said method Such as 11111010101001 said input O output 0 low 1 express high 4 and 10 of the two pin is negated Read the 1 actual 0 actual 1 read the O 1 4 7 Palmodic Signal Base on selected factory default setting nReady signal can have two output statuses gt Status One The module will output 0 after normal boot up This signal used to judge if module finish boot up and ready for application gt Status Two The module will output Palmodic Signal after normal boot up The palmodic signal is 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 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 Hi flying for more detailed support Jinan USR IOT Technology Co Ltd Page 26 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 2 FUNCTIONAL DESCRIPTION 2 1 Wireless Networking USR WIFI232 X module can be configured as both wireless STA and AP base on network type Logically there are two interfaces in USR WIFI232 X One is for STA and another is for AP When USR WIFI232 X works as AP other STA equipments are able to connect to wireles
43. anges The transparent transmission mode can fully compatible with user s original software platform and reduce the software development effort for integrate wireless data transmission Notes Transparent transmission mode as a low level phy layer data transmitting can t keep zero error rates by itself User can enable UART port s hardware flow control CTS RTS function or though higher layer protocol such as TCP to lower error rate and mange the data completeness USR recommend when doing large amounts of data transmitting in transparent transmission mode hardware flow control should be enabled so as to fully ensure reliable data transmission In the applications which doesn t need flow control users can simply leave RTS CTS pin vacant Jinan USR IOT Technology Co Ltd Page 20 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 1 4 2 Agreement Transmission Mode If user requires keep 100 accurate data transmitting No error rate or user board MCU has limited data processing speed compared with wireless data transmitting rate agreement transmission mode is suggested in this kinds of application Agreement transmission mode defines transmission data structure verification mode connection mode between both sides which target to fully control and mange the data transmission on the serial port These kinds of mode can keep accurate data transmitting In agreement transmission mode user device
44. ansmitting User can configure dedicated work mode base on actual requirement and save the configuration information to the flash of USR WIFI232 X then module will go into the appointed work mode after power up For a module which already finished parameters setting it will try to connect a wireless network and server with these parameters after power up and serial interface is also active with pre configured parameters Then all the data is transferred directly between serial interface and Wifi interface without any interpreted The parameters which need to configure include Wireless Network Parameters B Wireless Network Name SSID B Security Mode B Encryption Key gt TCP UDP Linking Parameters B Protocol Type B Link Type Server or Client B Target Port ID Number B Target Port IP Address Serial Port Parameters B Baud Rate B Data Bit B Parity Check Bit B Stop Bit B Hardware Flow Control gt Work Mode Selection B Transparent transmission or Agreement Transmission mode Transparent transmission demo as showing in the following figure a USR WIFI232 X module can be taken as a virtual serial line when UART interface working in transparent transmission mode And user device will realize wireless data transmission almost without any changes y VART R ccn ES ART User Device mg ht REN D CT ens EH j E B A User Device USR WIFI232 X USR WIFI232 X Ng Jinan USR IOT Technology Co Ltd
45. arameters time TCPB time out time lt 600 600s gt 0 No time out default 300 After USR WIFI232 X module boots up again the setting will be effective 4 2 2 29 AT TCPLKB B Function Query TCPB link status B Format AT TCPCKB CR ok lt sta gt lt CR gt lt LF CR LF gt B Parameters sta TCPB link status lt gt on TCPB link OK lt gt off TCPB link not available 4 2 2 30 AT EPHY B Function Open Close ETH interface B Format Set Operation AT EPHY lt on off gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters On off lt gt Off Close Ethernet port function lt On Open Ethernet port function If you want to keep the Ethernet port open please use the AT FEPHY on Close module s Ethernet port function can reduce the power consumption The default setting for USR WIFI232 X is close Ethernet port function 4 2 2 31 AT FUDLX H Function Open Close RS485 a Format AT FUDLX lt onloff gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Enable or prohibit 485 control functions the 485 control pin RTS Jinan USR IOT Technology Co Ltd Page 57 of 70 tec usr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 4 2 2 32 AT RELD B Function Restore to factory default setting B Format AT RELD lt CR gt ok rebooting lt CR gt lt LF gt lt CR gt lt LF gt This command restores the module to factory default se
46. as an AP and USR WIFI232 X 2 USR WIFI232 X 3 and the laptop are STAs connected to USR WIFI232 X 1 Meanwhile all USR WIFI232 X modules can connected to user device via UART interface All USR WIFI232 X modules can be operated and managed through the laptop So it is convenient to O amp M all USR WIFI232 X modules Moreover in such Adhoc network structure the whole coverage of a wireless network can be extended easily User Device Ay User Device USR WIFI232 X 3 j Figure 17 USR WIFI232 X Adhoc Network Structure USR WIFI232 X 2 1 3 Wireless Network Based On AP STA USR WIFI232 X module support AP STA network mode means module support one AP interface and one STA interface at the same time as following figure User Device rane e a e ST qm QO UART WP pa NN T TCPB on rcp e Server fame TCP TCP Client Phone N IPAD Uo Figure 18 USR WIFI232 X AP STA Network Structure When module enables AP STA function Module s STA interface can connect with router and connect to TCP server in the network At the same time module s AP interface is also active and permit Jinan USR IOT Technology Co Ltd Page 28 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn phone PAD to connect through TCPB then phone PAD can control user device and and setting the module parameters The advantage of AP STA mode is gt Users can easily setting and track use
47. atic IP 10 10 100 101 lt Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 lt LAN IP address 10 10 99 254 Different net segment with WAN port B Module 3f Setting lt Works as STA mode lt gt WAN connection type Static IP 10 10 100 102 lt Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 lt LAN IP address 10 10 98 254 Different net segment with WAN port Jinan USR IOT Technology Co Ltd Page 64 of 70 tec Qusr cn 97 BARR A U Sr cn USR WIFI232 X V4 0 User Manual http en usr cn AP LAN IP 10 10 100 254 PC WIFI TCP Client 12 10 10 100 100 8899 IP 10 10 100 100 TCP Server USR WIFI232 X 8899 WIFI WIFI 2H 3 USR WIFI232 X STA STA LAN IP 10 10 99 254 LAN IP 10 10 98 254 WAN IP 10 10 100 101 WAN IP 10 10 100 102 TCP Client TCP Client 10 10 100 100 8899 10 10 100 100 8899 Figure 9 Wireless Data Acquisition Card Setting Jinan USR IOT Technology Co Ltd Page 65 of 70 tec Qusr cn 97 BARK A U Sr cn USR WIFI232 X V4 0 User Manual http en usr cn APPENDIX B EVB REFERENCE DESIGN Es 2 E POWER Jinan USR IOT Technology Co Ltd Page 66 of 70 tec Qusr cn Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn APPENDIX C EXTERNAL POWER SHUTDOWN MODE REFERENCE DESIGN I VART CTS de UART CTS PWA EN UART RTS Pb i j UART RTS
48. cate with outside equipment or sensors USR WIFI232 X modules UART interface include 4 general Jinan USR IOT Technology Co Ltd Page 18 of 70 tec Qusr cn 97 AEE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn signals TXD RXD RTS CTS The hardware reference design with RS 232 chipset as following USR WIF 1232 47c1i MALE RIGHT ANGLEC 04 ot J15 A d 100N SERIAL DEBUG PORT UART RTS 11 UART_TXD 10 Jh UART RXD L2 x 13 s UART CTS 9 1 8 Figure 10 UART Interface Reference Design Notes TXD pin is also hardware configuration pin internal module So this pin MUST pull down during module power up USR WIFI232 X 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 1 3 4 Power Interface USR WIFI232 X module support single 3 3V power supply The peak current shall about 350mA and normal WiFi working current shall about 200mA The power save WiFi OFF mode will about 100mA Decoupling at power pin suggested At least one 100uF and one 10uF capacitor required at user board and put near module power input pin will increase the reliability and performance 1 4 Software Reference Design When USR WIFI232 X modules boot up phase the general user board MCU software flow chart will as following Jinan USR IOT Technology Co Ltd Page 19 of 70 tec usr cn 97 FE A U
49. comply with the following built in antenna module placement of notes and general rules Jinan USR IOT Technology Co Ltd Page 13 of 70 tec Qusr cn 97 BARR A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn gt Bein the user s PCB board and the red region 6X8MM corresponding to the region cannot be placed components and with GND gt Antenna must away from the metal at least to the distance around the higher components above 10MM Antenna cant be shielded by any meal enclosure All cover include plastic shall away from antenna at least I0MM Figure 4 USR WIFI232 X Chip Antenna Keep Out Region USR technological suggestions USR WIFI232 X 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 2 ses m D E a B Mu FR Figure 5 Suggested Module Placement Region 8 ei 1 2 4 External Antenna USR WIFI232 X modules support internal antenna and external antenna option for user dedicated application If user select external antenna USR WIFI232 X modules must be connected to the 2 4G antenna according to IEEE 802 11b g n standards The antenna parameters required as follows Table3 USR WIFI232 X External Antenna Parameters Parameters Frequency range 2 4 2 5GHz m
50. connect to USR WIFI232 X module User can realize multi TCP link connection at each work mode Multi TCP link connection will work as following structure Upstream All dates from different TCP connection or client will be transmitted to the serial port as a sequence Downstream All data from serial port user will be duplicate and broadcast to every TCP connection or client Detailed multi TCP link data transmission structure as following figure WIFI ee _ User ps Kee Device 1 Toe IE tce lt cC use User Device 9 lt USR WIFI232 X Z E Device 2 E User Device 3 Figure 14 Multi TCP Link Data Transmission Structure 1 4 5 TCPB Function USR WIFI232 X support 2xTCP function which means module can support 2 network connections at the same time The 2 net work connection called TCPB TCPB only works as TCP Client and its configuration can only through AT command not Web configuration supported The command as following gt AT TCPB on Enable TCPB function gt AT TCPPTB lt port gt Set TCPB port number gt AT TCPADDB lt IP or domain Set TCPB s server address gt AT TCPTOB time Set TCPB timeout gt AT TCPLKB Query TCPB link status Detailed command description refer to AT instruction chapter After enable TCPB function two network interfaces work mode like Multi TCP Link All dates from each TCP connection will be transmitted to the serial port as a sequence and all dat
51. conversion we will module serial connected with the computer network and computer links to WIFI Due to the need to have both a WIFI and serial special requirements only a minority of the notebook computer can achieve the user can use the desktop with a USB card or use the notebook computer with a USB to serial line way the author uses the desktop and WIFI card form test desktop with serial Note there USB transfer RS232 the line quality uneven some good and some bad in order not to waste your valuable time look for buying a used FT232 chip scheme suggested switching line about the price 9 r nummum Figure 30 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 we provide a variety of floor for the user to choose here in the case of USR WIFI232 2 Hardware connectivity for module power supply the red power indicator light wait about 20 seconds internal LINUX system boot Ready lights said system startup complete can operate entering the next step 3 2 3 Module Debug As shown above opened in PC program set the COM export and open the serial port connection Jinan USR IOT Technology Co Ltd Page 39 of 70 tec Qusr cn 97 5 ARK er ep amp USR ICP232 Test File F Options 0 Help H
52. d ack 0 else do nothing function do_recv_ack_cmd if receiv RECV ACK and check OK amp is waiting for recv ack d agree data recv st agree data waiting 4 recv ack 0 to use the received data else do nothing function main char cmd init agree str init pccom port do if read one byte from uart gt cmd d if cmd 0x01 do send ack cmd else if cmd 0x02 do recv ack cmd if want to send data is wait for send ack do send cmd if want to recv datal is wait for recv ack do recv cmd while Jinan USR IOT Technology Co Ltd Page 69 of 70 tec Qusr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn APPENDIX E CONTACT INFORMATION Contact us Company Jinan USR IOT Technology Co Ltd Address 1 523 Huizhan Guoji Cheng Gaoxin Qu Jinan Shandong China Tel 86 531 55507297 86 531 88826739 803 Web http en usr cn Skype lisausr Email sales Qusr cn tec Qusr cn END OF DOCUMENT Jinan USR IOT Technology Co Ltd Page 70 of 70 tec Qusr cn
53. guage environment at the top right corner and click Apply button The main menu include five pages Mode Selection AP Interface Setting STA Interface Setting Application Setting and Device Management Notes Default USR suggests all Web management related operation shall execute at AP mode Even you need configure STA parameters and want module works as STA mode If user selects STA mode and still want to configurate the module through Web browser you have to access the module through another AP and get the module IP address through this AP Jinan USR IOT Technology Co Ltd Page 35 of 70 tec Qusr cn TM On BARE A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn 3 1 2 Mode Selection Page This page use to setting the module working mode Transparent Transmission or Agreement Transmission and wireless networking mode AP and STA mode Select Language English D Apply m Mode Selection Working Mode Configuration m AP Interface Setting You may configure the Uart WIFI module wifi mode and data transfor mode ip STA Interface Setting ap Application Setting AP Mode Access Point iy Device Management C STA Mode Station Mode Data Transfor Mode Agreement Mode D Apply eg Figure 25 Mode Selection Page 3 1 3 AP Interface Setting Page This page use to setting the parameters when USR WIFI232 X module works as AP m Mode Selection AP Interface Setting p
54. gure 31 CommrTools Serial Debug Tools cc ceccccccesseeccceeeseecceeeaeeecceeaueeeecesaueeeeceeaueeseeeeas 41 Figure 32 TCP UDPDbg Tools Create Connechon 41 Figure 33 The test results show that the network and serial port 42 Figure 34 Wireless Control Applcatpnon emnes 42 Figure 35 Remote Management Appilaton nene 43 Figure 36 Transparent Serial Port Applaton enne 43 Figure 37 Wireless Data Acquisition Card Apoplcaton 44 Figure 38 USR WIFI232 X Default UART Port Harameters 45 Figure 39 Switch to Configuration MOZQe ret tont nhe re arto eu no Oran one eoa ausa pe cre head 45 Figure 40 AT H Instruction for Help 46 Figure 41 Shipping Information 60 Jinan USR IOT Technology Co Ltd Page 5 of 70 tec Qusr cn 97 5 ARE A U S cn USR WIFI232 X V4 0 User Manual http en usr cn LIST OF TABLES Table 1 USR WIFI232 X Module Technical Gpoechhcatons eee cccecccceeeceeeecsseesceeaeseseness T Table2 USR WIFI232 X Pins Detnmon meme 9 Table 3 USR WIFI232 X External Antenna Harameters 15 Table4 USR WIFI232 X Evaluation Kit Interface UDescrptpon ee cccccceeccceeeeseeeeeeees 17 Table 5 USR WIFI232 X Web Access Default Gettng ceecccccseeeceeeeeeseaeeccesueeeeeeaes 36 Table 6 Error Code DescribtionUSR WIFI232 X Web Access Default Gettng ee 47 Per AT Instruction E mm 47 Jinan USR IOT Technology Co Ltd Page 6 of 70 tec usr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn HISTORY Ed V3
55. lient 8890 10 10 100 100 8899 Figure 8 Two USR WIFI232 X Modules Connection Through AP Jinan USR IOT Technology Co Ltd Page 63 of 70 tec Qusr cn BARK U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn Q6 How to avoid IP address confliction when apply USR WIFI232 X module gt The following address allocation method can avoid the IP address confliction for dynamic and static IP address mixed application B Module dynamic IP address range from 100 to 200 for last IP address segment lt gt Such as default IP 10 10 100 254 When module works as AP the IP address module can allocate to STA is from 10 10 100 100 to 10 10 100 200 B So if user needs to set static IP for dedicated STA internal network the available IP address range can start from 10 10 100 1 to 10 10 100 99 Q7 PC works as server all WIFI modules works as data acquisition card and connect with PC how to configure this application Network structure as below figure Three USR WIFI232 X module setup 3 TCP links with PC server Module 1 works as AP and all devices connect to module 1 through WiFi interface B PC Setting IP address 10 10 100 100 lt gt Network Protocal TCP Server Port ID 8899 B Module 1 Setting lt Works as AP mode lt gt LAN IP address 10 10 100 254 lt Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 B Module 2 Setting lt Works as STA mode lt gt WAN connection type St
56. me trigger time After the trigger time if UART port received data can t reach auto frame trigger length then module will transmitting available data to the network and bypass the auto frame trigger length condition Detailed UART auto frame function can refer to AT instruction set UARTF UARTFT UARTFL introduction 2 5 Address Binding USR WIFI232 X module supports the feature of binding the BSSID address of target network According to the provisions of 802 11 protocol different wireless networks can have a same network name i e SSID ESSID but must correspond to a unique BSSID address i e MAC address Illegal intruders can create a wireless network with the same SSID ESSID it will make SIAs in the network to join 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 2 6 Ethernet Interface Communication USR WIFI232 X module provides one 10 100M Ethernet interface With this Ethernet interface user can easily realize the three interface WiFi UART and Ethernet intercommunication and networking USR WIFI232 X module can configured as Bridge Mode or Router Mode base on different networking technology Notes For different networking requirement USR WIFI232 X may need different firmware to Jinan USR IOT Technology Co Ltd Page 30 of 70 tec Qusr cn Qr BATH A U Sai CH USR WIFI232 X V4 0
57. nh O 1 WIFI connection available GPIO GPIO8 0 No WIFI connection Can be configured as GPIO Indicate the module nReady 0 or Palmodic Signal status of power on Finish module boot up process GPIO GPIO9 I O 1 Module boot up not finish Can be configured as GPIO Restore configuration nReload Module will Restore factory GPIO GPIO10 I O default configuration after set set 1 I Ethernet Interface PHY_RX 1 8V Ethemet Data Interface Ethernet Interface PHY RX iT Support transformer and direct Fthernet Interface PHY TX Oo connection AC couple mode Ethernet Interface PHY TX O Jinan USR IOT Technology Co Ltd Page 10 of 70 tec Qusr cn 97 5 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn SMD type module Definition Pin Description Name Directi Note 3 18 19 GND GND Power Ground 20 24 26 1 2 VCC 3 3V Power 3 3V 350mA power input 4 UART Data Transmit UART TXD EN If notuse UART function this 4 pins can GPIO GPIO lO De configured as GPIO pins and can change GPIO pin status 5 UART Data Receive UART_RXD through AT command GPIO GPIO UART sends request of UART_RTS data transmission GPIO GPIO e UART receives data UART CTS transmission permission GPIO GPIO6 1 8V Ethernet Data e Ethernet Interface PHY TX E Interface Module with external 1 8V reference Ethernet Interface PHY TX NM Ethernet Interface PHY RX NE EN Ethernet Interf
58. nology Co Ltd USR WIF1232 X AP SSID HF A11x AP Figure 34 Wireless Control Application Page 41 of 70 tec Qusr cn Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn For this wireless control application USR WIFI232 X 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 X module 3 2 5 Remote Management Application Zap SL ECH User Device USR WIFI232 X Figure 35 Remote Management Application For this remote management application USR WIFI232 X 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 devices 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 3 2 6 Transparent Serial Port Application For this transparent serial port application two USR WIFI232 X modules connect as below figures to build up a transparent serial port connection W UART et GN SS CHART User Device User Device j USR WIFI232 X USR WIFI232 X AP SSID HF A11x AP STA SSID HF A11x AP LAN IP 10 10 100 254 WAN IP DHCP Net Prot TCP Server Net Prot TCP Client Protocol Port 889
59. odule default monitor TCP port number click the link to establish TCP connection Then click the create connection J mSR TCE232 Tezt ES Filed Optical Reie Qf o Receive ie file i Add lire return Receive As MEI o Receive Foose San Clear Sand Options Bata fre file l Auto keck Aute Clear Ingut Saad Aa Har Send Easycle Intarwval lo mt L r Bandy x pu Send Jinan USR Tachzslagr Co Lad Autre l an uir en Zem Rey i ta Ethernet Convert tester Fecr pkticar Receive ie file Adi line return Receive As WEI Receive Puare care Eliit Sond phiear Bata from file Aute Chackium date Clear Input M Send Ar Hax Semi Roryela Interval in Sr kend Gang Rae Le Beaty Bee 0 Rag Figure 32 TCP UDPDbg Tools Create Connection Jinan USR IOT Technology Co Ltd Page 40 of 70 tec Qusr cn 97 5 ARK er ep USR WIFI232 X V4 0 User Manual http en usr cn Because of the USR WIFI232 X 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 USR ICP232 Test RS232 to Ethernet Convert tester File F Options Q Help H COMSettings PortNum coMi ES BaudR 57600 v DPaty NONE xl DataB 8 bit StopB 1 bit v
60. odule to sleep mode WiFi OFF lt On Set module to normal mode WiFi ON When module go into sleep mode user can input AT MSLPzon to re start the module and module go into transparent transmission mode 4 2 2 17 AT WSCAN B Function Seek AP when module works as STA mode B Format AT WSCAN CR ok lt ap site CR LF gt lt CR gt lt LF gt B Parameters ap site AP searched 4 2 2 18 AT TCPLK B Function Query if TCP link already build up B Format AT TCPLK CR ok lt sta gt lt CR gt lt LF gt lt CR gt lt LF gt B Parameters sta if module already setup TCP link lt on TCP link setup lt gt Off TCP link not setup 4 2 2 19 AT TCPDIS B Function Open Cose TCP Only TCP Client available B Format Query Operation Jinan USR IOT Technology Co Ltd Page 53 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn AT TCPDIS lt CR gt ok lt sta gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPDIS lt on off gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters sta set query TCP link status lt on TCP link available When setting on module will connect to TCP server right away lt gt off TCP link not available when setting off module will disconnect with TCP server and not connect again 4 2 2 20 AT WANN B Function Set Query WAN setting only effective as S
61. pedance 50 Ohm VSWR 2 Max Return Loss 10dB Max Connector Type PEX or populate directly Jinan USR IOT Technology Co Ltd Page 14 of 70 tec usr cn 97 BARR A U Sat Ch USR WIFI232 X V4 0 User Manual http en usr cn 1 2 5 Evaluation Kit 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 X 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 Pin type module Evaluation Kit SMD module Evaluating Kit Jinan USR IOT Technology Co Ltd Page 15 of 70 tec Qusr cn 97 AEE A U Sat Ch USR WIFI232 X V4 0 User Manual http en usr cn Figure 6 USR WIFI232 X Evaluation Kit The external interface description for evaluation kit as follows Table A USR WIFI232 X Evaluation Kit Interface Description Function Name Description External _ DB9 Male serial jack of 9 pin and used to connect toPC RJ45 L100M EI Interface i Module 2x72mmDlPconnedor gt Power Red 33VPowerlndicator lt TXD TXDindiato RXD Lydia Ready nReady GPIO Indicator Lih nbink GPIO Indicator o Beton Reset f Weca o rosot ho E ee Reload Module restore to factory default configuration SMDmodule Evaluation Kit Interface Description
62. r optional Apply Cancel Figure 27 STA Interface Setting Page 3 1 5 Application Setting Page This page use to setting the parameters of serial port communication such as UART setting and high layer network protocol setting which used support serial communication mj Mode Selection AP Interface Setting ip AP Interface Setting i AP Interface Setting such as SSID Security ip STA Interface Setting By Ap D lication Setting Wireless Network m Device Management Wifi Uart Setting You could configure the Uart parameters and network parameters of the wifi uart application Baudrate 57600 DI Data Bits EES Parity None v Stop 1 CTSRTS Disable v Apply Cancel Mode Server zl Protocol TCP v Port fog IP Address 01010100 TCP Time out MAX 600 s Bo Cancel Figure 28 Application Setting Page Notes Generally Network protocols support three modes TCP Server TCP Client and UDP UDP has no server and client requirement according to standard Jinan USR IOT Technology Co Ltd Page 37 of 70 tec usr cn Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en 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 X module Also the Port ID between two sides of the communication devices must keep the same 3 1 6 Device Management Page This
63. r Manual http en usr cn UserName and Password o WAKEY Set Query WIFI security parameters asAP MSLP Set modules into power save mode Turn OFF WiFi Query if TCP link already build up TCPDIS Open Cose TCP Only TCP Client available LANN Set Query LAN setting only effective as AP mode Set Query DHCP gateway address Set Query TCP timeout MAXSK Set Query maxima TCP connection Open Close TCPB function TCPPTB Set Query TCPB port number Set Query TCPB server address TCPTOB SetQueryTCPB imeouttime lt lt TCPLKB_ Query TCPB link status o O RELD Restore to factory default setting Z Restatmodle S O MD Query module ID information VER Query module software version information H Help Notes USR WIFI232 X 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 2 2 1 AT E B Function Open Close show back function B Format AT E lt CR gt ok CR LF gt lt CR gt lt LF gt When USR WIFI232 X module firstly switch from transparent transmission to configuration mode show back status is open input AT E to close show back function input AT E again to open show back function 4 2 2 2 AT ENTM B Function Set module into transparent transmission mode B Format AT ENTM lt CR gt ok lt CR gt lt LF gt lt CR gt
64. r device through Phone PAD and not change the orginal network setting Users can easily setting module s parameters through WiFi when module works as STA mode AP STA Mode Setting AP STA mode need serial AT command to enable as follows gt AT FAPSTA on Enable AP STA mode gt Then when you configure module works as STA mode it s AP interface still active AP STA Mode Notes When user enable AT STA function the STA port need to keep connected with other router AP or STA port will have to scan the AP frequently which will affect AP port function and may cause some date loss So if user confirm STA port can t connect with AP at some time user can disable the STA scan through the following command gt AT STTC on off on Scan AP off NO Scan AP After re start module this command not saved gt AT FSTTC on loff This command is saved after re staring the module 2 2 Auto Frequency Function When module works as STA USR WIFI232 X will adjust its wireless channel to keep the same channel with associated AP and connect in When module works as AP and USR WIFI232 X enable Auto frequency function then when module boot up it will select the best wireless channel based on surrounding environment 2 3 Security USR WIFI232 X module supports multiple wireless encryption mechanisms and enables to protect the security of user s data transmission the mechanisms include WEP WPA PSK TKIP WPA PSK AES WPA2 PSK TKIP WPA2 PSK AES 99
65. re 9 Ethernet Reference Design without Transtormmer 19 Figure 10 UART Interface Reference Desgn cc ceeccccccessseecceneeeecceeeueeeceeaueeeeceeauaeeeceeauaeseeeeas 20 Figure 11 User MCU Software Flow Chart 21 Figure 12 User Device Send Data to USR WIFI232 X Module Procedure 24 Figure 13 USR WIFI232 X Module Send Data to User Device rocedure eens 25 Figure 14 Multi TCP Link Data Transmission Giruchire e 26 Figure 15 USR WIFI232 X Functional Archtechre cece cccccccceceeeeeccessaeeeceessaeeeceessaeeeeeeaas 28 Figure 16 USR WIFI232 X Basic Wireless Network Gtruchure 28 Figure 17 USR WIFI232 X Adhoc Network Gtruchure eee 29 Figure 18 USR WIFI232 X AP STA Network ZGtruchure eene 29 Figure 19 USR WIFI232 X Ethernet Interface Networking As Ab 32 Figure 20 USR WIFI232 X Ethernet Interface Networking As STA Ne 32 Figure 21 USR WIFI232 X Ethernet Interface Networking As STA Z VMert 32 Figure 22 WDS Networking Demo 33 Figure 23 USR WIFI232 X Transparent Transmission Demo 35 Figure 24 Open Web Management page 36 Figure 25 Mode Selection age cecccccccsssscccccessecccecaseeccceeuueececeesseccsceaeeecceesuueeecseeaueeseseeaaeeees 3 Figure 26 AP Interface Setting Hage eee HI e nm ene en enne nnne enne 3 Figure 27 STA Interface Setting age e Hem enne enn n enne nnns n nnne 38 Figure 28 Application Setting age e Ine HI en Henne nennen nns 38 Figure 29 Device Management Hade 39 Figure SOX GINS eio piel e zia D 40 Fi
66. s LAN via USR WIFI232 X module Wireless Networking with USR WIFI232 X is very flexible Following figure shows the functional architecture of USR WIFI232 X module Processing Program Figure 15 USR WIFI232 X Functional Architecture Notes AP that is the wireless Access Point the founder of a wireless network and the center of the network nodes The wireless router we use at home or in office may be an AP STA short for Station each terminal connects to a wireless network such as laptops PDA and other networking devices can be called with a STA device 2 1 1 Basic Wireless Network Based On AP Infrastructure Infrastructure it s also called basic network It built by AP and many STAs which join in The characters of network of this type are that AP is the center and all communication between SIAs is transmitted through the AP The figure following shows such type of networking User Device PN USR WIFI232 Figure 16 USR WIFI232 X Basic Wireless Network Structure 2 1 2 Wireless Network Based On Adhoc Network Adhoc Adhoc It s also called independent basic service set and it s built by two or more STAs without Jinan USR IOT Technology Co Ltd Page 27 of 70 tec Qusr cn TM OE A Usr cn USR WIFI232 X V4 0 User Manual http en usr cn AP this type of network is a loose structure all the STAs in the network can communicate directly As showing in the figure below USR WIFI232 X 1 can be treat
67. t with WAN port See AP Interface Setting Page Jinan USR IOT Technology Co Ltd Page 61 of 70 tec usr cn Qr BATH A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn E 28 WIFI AP STA LAN IP 10 10 100 254 LAN IP 10 10 99 254 UDP WAN IP 10 10 100 100 10 10 100 100 8899 UDP 10 10 100 254 8899 Figure 4 Configure Transparent Serial Port Connection UDP Q4 Where to set USR WIFI232 X module network protocol TCP UDP gt USR WIFI232 X network protocol setting see Application Setting Page as below Figure B Protocol TCP Server lt gt Only Port ID required 8899 Default Net Setting Mode Server v Protocol TcP v Port np IP Address 10 10 TCP Time out MAX 600 s 300 Apply Cancel Figure 5 Module Network Protocols TCP Server B Protocol TCP Client lt Application IP address required it s target TCP server s IP address lt gt Port ID required 8899 Default Net Se Mode Client v Protocol TCP v Port pg IP Address o1010410 TCP Time out MAX 600 s 300 Apply Cancel Figure 6 Module Network Protocol TCP Client m Protocol UDP lt No Server Client selection required lt Application IP address required it s target device s IP address lt gt Port ID required 8899 Default Jinan USR IOT Technology Co Ltd Page 62 of 70 tec usr cn 97 AEE A U Sai CH USR WIFI232 X V4 0 User Manual http en
68. tting and then re starts the module 4 2 2 33 AT Z B Function Re start module B Format AT Z lt CR gt 4 2 2 34 AT MID B Function Query module ID information B Format Query Operation AT MID CR ok lt module id gt lt CR gt lt LF gt lt CR gt lt LF gt B Parameters module id Module ID information lt Al11 yymmddnnnn yymmdd date nnnn serial number 4 2 2 35 AT VER B Function Query module software version information B Format Query Operation AT VER lt CR gt ok lt ver gt lt CR gt lt LF gt lt CR gt lt LF gt B Parameters ver Module software version information 4 2 2 36 AT H m Function Help B Format Query Operation AT H CR ok lt command help CR LF CR LF gt B Parameters command help command introduction Jinan USR IOT Technology Co Ltd Page 58 of 70 tec Qusr cn 97 5 A sik A U Sr cn USR WIFI232 X V4 0 User Manual http en usr cn 5 PACKAGE INFORMATION 5 1 Shipping Information TRAY BOX Size 450 255 34 mm Size 450 250 80 mm UNA HAVNE N NUM Vi MAMM AU ag CARTON Figure 41 Shipping Information Note 1 tray 5 20pcs 100 pcs 1 box 2 trays 2 100 pcs 200pcs 1 carton 4 boxes 4 200 pcs 800pcs Jinan USR IOT Technology Co Ltd Page 59 of 70 tec Qusr cn 97 FE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn APPENDIX A QUESTIONS AND ANSWERS Q1 How to config
69. uery Operation AT DHCPGW lt CR gt ok lt address gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT DHCPGW lt address gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters address DHCP gate address 4 2 2 23 AT TCPTO B Function Set Query TCP timeout B Format Query Operation AT TCPTO lt CR gt ok lt time gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPTO lt time gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters time TCP timeout time lt lt 600 600s lt gt 0 0 means no timeout lt gt Default 300s 4 2 2 24 AT MAXSK B Function Set Query maxima TCP connection B Format Query Operation AT MAXSK CR ok lt num gt lt CR gt lt LF CR LF gt SetOperation AT MAXSK num CR ok lt CR gt lt LF gt lt CR gt lt LF gt B Parameters num 1 32 default 32 maxima TCP connection When configure as TCP Server USR WIFI232 X support maxima 32 TCP connections If not require so much connection user can resetting this parameters Jinan USR IOT Technology Co Ltd Page 55 of 70 tec usr cn 97 ARE A U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 4 2 2 25 AT TCPB B Function Open Close TCPB function B Format Query Operation AT TCPB lt CR gt ok lt sta gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TCPB lt on
70. ugh WDS serval APs can connect each other and build a big WiFi network WDS network structure as following figure the center 3 USR WIFI232 X work as AP mode and enable WDS function they build a big WDS network All other USR WIFI232 X work as STA mode and can connect with any AP in the WDS network All modules include AP and STA are in the same local area network LAN The server can connect with one AP through WiFi or Ethernet connection then server can connect with every user device and control them as in the same local area network Through AT command AT FVER w to enable WDS function Also WDS function can set through the web page User Device STA User Device on v I Pr Dm Bs io 3 User Device User Device a User Device GES wart Ban Se vart y bu i uart User Device at Figure 22 WDS Networking Demo 2 8 Search Function for STA When using web configuration STA Interface Setting Page user can push Search button to find surrounding AP and find a AP to associated Jinan USR IOT Technology Co Ltd Page 32 of 70 tec Qusr cn BARK U Sai CH USR WIFI232 X V4 0 User Manual http en usr cn 2 9 Work Mode USR WIFI232 X modules provide two kinds of work mode Transparent transmission mode and Agreement Transmission mode Transparent transmission mode achieves a plug and play serial data port and reduces user complexity Agreement Transmission mode can keep 100 accurate data tr
71. ure transparent serial port application TCP protocol with two WIFI modules gt Network structure as below figure m Module 1 Setting lt Works as AP mode See Mode Selection Page lt LAN IP address 10 10 100 254 See AP Interface Setting Page lt gt Network Protocal TCP Server Port ID 8899 See Application Setting Page Module default setting m Module 2 Setting lt Works as STA mode See Mode Selection Page lt gt WAN connection type DHCP or Static IP For this example 10 10 100 100 5ee STA Interface Setting Page lt Network Protocal TCP Client Port ID 8899 Application IP address Module 1 s LAN IP address 10 10 100 254 See Application Setting Page lt Notes When module 2 works as STA mode modules WiFi interface works as WAN port Module s WAN IP address and LAN IP address shall be setting different segment So module 2 s LAN IP address must change to other segment For this sample we change to 10 10 99 254 See AP Interface Setting Page H8 2H WIFI USR WIFI232 X Z USR WIFI232 X AP STA LAN IP 10 10 100 254 LAN IP 10 10 99 254 TCP Server WAN IP 10 10 100 100 SEA TCP Client 10 10 100 254 8899 Figure 1 Configure Transparent Serial Port Connection TCP Q2 Where to Set wiri Module LAN IP and WAN IP through Web Page gt USR WIFI232 X Wireless LAN IP address setting see AP Interface Setting Page as below Figure Jinan USR I
72. wing USR WIF 1232 Y U20 Ta 2 d u19 PHY TX4TXOM4 S e 118 J i M i p e YE 1 MaAd 3 PHY TX4lXOP4 IC LL I I 5 i P Ee PHY RX4RXIM4 T R173 5 E MB4 MN 5 PHY RX4RXIP4 r 4 IT9 SO 7 l i R174 S j 16740 C15 Pa 1J HGI RJ 45X1F l 1000pF 2KVNI e CG Figure 8 Ethernet Reference Design with Transformer 1 3 2 2 Ethernet Connection without Transformer For this application Ethernet will work as internal data transmition interface and save one transformer and RJ 45 connector Ethernet PHY to PHY connection will use AC coupled connection This is a space and cost optimized solution Hardware reference design as following 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 4 R1 R R1 is USR WIF 1232 EROS i e 50 0 1uF N N N N PHY TX4TXOM L2 pp JAY rx 3 0 1uF PHY TXATXOP4 l PHY RX 1u PHY RX4FXIM4 2 L PHY TX 0 1uF PHY_RX4RXIP4 pay TX4 100M ETH PHY Figure 9 Ethernet Reference Design without Transformer 1 3 3 UART Interface UART interface is the serial data transmition interface mainly used for USR WIFI232 X modules User can add RS 232 chipset on user board and convert the signal to RS 232 voltage to communi
Download Pdf Manuals
Related Search
Related Contents
TEAS 9.5.03 -00 Ultrasonic investigation with breast dummy Samsung SGH-F300 Felhasználói kézikönyv WE800 Weather Station User Manual - Global Water Instrumentation Sta Maria - Câmara Municipal de Celorico da Beira BA Boston RCC45 i ASSMANN Electronic AK-610106-020-E serial cable [OUTREACH] - CRMADDON Factory Quelle place pour le modafinil dans le traitement du SAS TesiMod BT5N - Sütron electronic GmbH Mercury 2006 Automobile User Manual Copyright © All rights reserved.
Failed to retrieve file