Home
RS232 to WIFI (802
Contents
1. Geral WJ 9 L iT wA MIX Figure 37 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 as above UART display 2 Any other input or wrong step to UART port will cause the module still works as original mode transparent transmission Shanghai Wafer Microelectronics Co Ltd Page 34 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 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 describtion to start Ti Sera1sSlt OL Secure let TH MAE fo bg eq MEG IAD 8 id GI God 21 a BA Be og FET ma _ arial Caraz at ok AT HOWE command reply ok AT E Echo on off to turn DAADFT command Wine echo function AT ENTA GoTo Through mode AT NETP Sat Gat tha bet Protocol Paramatars AT UAAT Set cet the UART Parameters ATHAMODE SetsGet the WIFI Gperation Mode 4P or STA AT WSKEY SELGET the security Parameters of WIFI STA mode ATHHSSSIO SET GET The AP S SSID of WIFI STA mode AT WEEBU Set aet tha Login Parameters of WEB page AT MAP Setcet the Parameters of WIFI AP Mode AT WAKEY Set Get the Security Parameters of WIFI AP Mode AT WS
2. nReload Module restore to factory default configuration Input Logics O effective There is 4 7K Ohm pull up resister internal User can assert nReload signal 0 more than 1s through botton or MCU pin then release module will restore to factory default configuration and re start boot up process UART_TXD RXD UART port data transmit and receive signal There are 1K Ohm pull down resister internal User can t add pull up resister at these pins Shanghai Wafer Microelectronics Co Ltd Page 13 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 3 2 10 100M Ethernet Interface WIFI232 A11 modules provide one 10 100M Ethernet PHY layer interface for data transmition or user configuration This Etherent 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 following HE A1llx f CTA 2 A a 1179 PAY TATA Ofyld PAY TXATAOPA PHY Ex 4h ild PAY KXAAR IP CHRO RJAS1E 7OpF i fi ibb pFAK VRI LJ i GND Figure 8 Ethernet Reference Design with Transformer 1 3 2 2 Ethernet Connection without Transformer For this applaction Ethernet will work as internal data transmition interface and save one transformer and RJ 45 connector Ethernet PHY to PHY
3. FT Bacaiva to fila Eacaiva 10 Elle Add lins return Add Jone return Baceiwa As HEZ l Receive As HEX Bacaiva Fausa Eacaiva Pause cave Clear Sure Cl eer Send Opi one Send Options Data From File Data from Eile Auto Checksum kuio Checkeon Auta Clear Input nio Clear Input FT Sand s Har Send Ax Heo Seod Eeoyele Send Recycle Interval 1000 ma Jinan USE Techanlogy Co http an uar en Interval 1000 me Send Land Clear Lid Load Clear r Kondpl Sand 170 Recr 1905 Peet ga Baad Fecv D Heal Shanghai Wafer Microelectronics Co Ltd Page 30 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Figure 30 CommTools Serial Debug Tools PC2 open TCPUDPDbg program and create a new connection If WIFI232 A11 configured as Server mode TCPUDPDbg Tools shall create Client mode connection Or otherwise create a Server mode connection Then click Connect button to create a connection USR TCP232 Test R5737 to Ethernet Convert tester PilalF Opi com 0 Help fH COH pot data meat CObiSettings Nethsork data mcgi Healing Pathan C0MT Baa 57600 DPsip MONE Daia 30 m SlnpE Thi T Open Berr Options Receive ta File Add line return Eacetve be HEE Receive Tauna S re Clear Sand Optigos Dais Grom fila imio Checksum Anio Clee Ing
4. 22 Figure 23 Figure 24 Figure 25 Figure 26 Figure 27 Figure 28 Figure 29 Figure 30 Figure 31 Figure 32 Figure 33 Figure 34 Figure 35 Figure 36 Figure 37 Figure 38 Figure 39 Figure 40 Figure 41 Figure 42 Figure 43 Figure 44 Figure 45 Figure 46 Figure 47 Shanghai Wafer Microelectronics Co Ltd RS232 to WIFI 802 11 b g n converter Module www waferstar com NPF 2 AN DEMO vvs etd aanteseavtaedetes 9 NVF 2 ATT PNS MA uren 9 HF A111 Mechanical Dimension rrrrrrrnnvroronvrrrennrrrrnnrrrrrnnvrrrnnnrernenrrnennvrsennnrnsennvnssennverennrnssnnns 10 HF A112 Mechanical Dimension rrrrrrrrnnvrrronvrrrernrrrernrrrrennvrrennvrrrennrrsennvrsennnresennnnsssnnvnnennrnnsnnns 11 WIFI232 A 11 Evaluation Kluavar4eaesseessisnregneeeenG danene eid 12 WIFI232 A11 Order ITOn iil OM aso sa ecseceesencdesevcoes vases ceiantea een caqraccacsdeenicansacdvachorenveredeentteeraaeeaen 12 WIFI232 A11 Hardware Typical Application cccccccssscccssssccesssceeessseceesseecessseccesseeceesseeeeesseees 13 Ethernet Reference Design with Transformer cccccccccccccssscecessseceesseeeessseccesseecesseeeeesseeeens 14 Ethernet Reference Design without Transformet cccccccccsssccessscceessseeeesseeeessecessseeeeesees 14 UART Interface Reference DeSIGN c ccccccccccssccesssecccsseeceesseccesseeeessseecesseceeseecessseeeeeaeeees 15 User MCU Software Flow Chafrt ccc ccccccccscc
5. IP address 10 10 100 100 Network Protocal TCP Server Port ID 8899 Module 1 Setting Works as AP mode LAN IP address 10 10 100 254 Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 Shanghai Wafer Microelectronics Co Ltd Page 47 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Module 2 Setting Works as STA mode WAN connection type Static IP 10 10 100 101 Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 x LAN IP address 10 10 99 254 Different net segment with WAN port Module 3 Setting Works as STA mode WAN connection type Static IP 10 10 100 102 Network Protocal TCP Client Port ID 8899 Application IP address 10 10 100 100 LAN IP address 10 10 98 254 Different net segment with WAN port x x fx x AP LAN IP 10 10 100 254 PL ll WIFI TCP Client i 10 10 100 100 8899 IP 10 10 100 100 nt TCP Server HF Allx SRI UART I MCU r i ab r 3 i f HF Al lx STA STA LANIPI10 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 17 00 100 4899 10 10 100 100 K899 Figure 47 Wireless Data Acquisition Card Setting Shanghai Wafer Microelectronics Co Ltd Page 48 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com APPENDIX B USER DEVICE PSEUDO CODE REFERENCE F
6. 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 E WIFI TT aA AP STA LAN IP 10 10 100 254 LAN IP 10 16 99 254 TCP Server WAN IP 16 10 100 100 KROG TCP Client TO 10 10 254 599 Figure 39 Configure Transparent Serial Port Connection TCP Q2 Where to Set WIFI232 A11 Module LAN IP and WAN IP through Web Page WIFI232 A11 Wireless LAN IP address setting see AP Interface Setting Page as below Figure IF Address 10 10 100 254 Submet Mask 255 255 256 1 MAC Address jan 68 50 70 0487 DHCP Type E MET a Default DHCP Gateway 40 10 100 254 Apply Cancel Figure 40 Module LAN IP Setting Shanghai Wafer Microelectronics Co Ltd Page 44 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com WIFI232 A11 Wireless WAN IP address seting 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 19 10 99 264 Subnet Mask 255 255 0 0 Default Gateway 10 10 99 254 Apply Cancel Figure 41 Module WAN IP Setting Q3 How to configure transparent serial port application UDP protocol with two WIFI232 A11 modules Network structure as below figure Module 1 Setting Works as AP mode See Mo
7. WIFI 802 11 b g n converter Module www waferstar com Q3 How to configure transparent serial port application UDP protocol with two WIFI232 A11 Mo E E 47 Q4 Where to set WIFI232 A11 module network protocal TCP UDP sessssessseessvesssvessvsensvenssenssnenneeseneeneee 47 Q5 How to configure transparent serial port application Two WIFI232 A11 modules all configured as STA and connection through AP Sn 48 Q6 How to avoid IP address confliction when apply WIFI232 A11 module eeessocssscesssecssoeessceesoceessoess 49 Q7 PC works as server all WIFI232 A11 moduls works as data acquisition card and connect with PC how to configure this application wsscsessicassacscisesssssscocedveivesosccentsadcocsstessaptaceaccessdescreceansectesuestesssisascusstens 49 APPENDIX B USER DEVICE PSEUDO CODE REFERENCE FOR AGREEMENT TRANSMITION MODE ssisssccssenstscnsiasaesssscseasssscussenssbccaisaaeascatdeusssacesecssessboiandsolsseieusesaasanieastesicntestoasasessetuateiasies 51 APPENDIX C CONTACT INFORMATION esseseeseseesossosessosossesoesoscosossessosossesossosossosossossosossossssossesossessssessse 53 Shanghai Wafer Microelectronics Co Ltd Page 4 of 51 market waferstar com LIST OF FIGURES Figure 1 Figure 2 Figure 3 Figure 4 Figure 5 Figure 6 Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 Figure 13 Figure 14 Figure 15 Figure 16 Figure 17 Figure 18 Figure 19 Figure 20 Figure 21 Figure
8. com kK 50 75 110 134 150 200 300 600 1200 1800 2400 4800 9600 19200 3840 0 57600 115200 data_ bits 5 6 7 8 stop bits 1 2 parity NONE EVEN ODD MARK SPACE flowctrl hardware flow control CTSRTS x NFC No flow control x FC flow control After WIFI232 A11 module boots up again the setting will be effective x x 4 2 2 5 AT TMODE Function Set Query data transmition mode Format Query Operation AT TMODE lt CR gt ok lt tmode gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT TMODE lt tmode gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Parameters tmode Data transmition mode kK Through Transparent transmition x Agreement Agreement transmition After WIFI232 A11 module boots up again the setting will be effective 4 2 2 6 AT WMODE Function Set Query WIFI work mode 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 k Parameters mode WIFI work mode AP STA After WIFI232 A11 module boots up again the setting will be effective 4 2 2 7 AT WSKEY Function Set Query WIFI security parameters as STA 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 Shanghai Wafer Microelectronics Co Ltd Page 38 of 51 market Qwaferstar com RS232 to WI
9. conection 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 Tis Rie RiT 178 4 a EG e 50 g g 0g w g C17 DuF mil aul m mil PHY TXqTHOhtd i ae PHY RX z PHY RA PEET i st hele 1 T FAY TX i Ty l PHY_TX LOOM ETH PHY Figure 9 Ethernet Reference Design without Transformer g g 1 3 3 UART Interface UART interace is the serial data transmition interface mainly used for WIFI232 A11 modules Shanghai Wafer Microelectronics Co Ltd Page 14 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com User can add RS 232 chipset on user board and convert the signal to RS 232 voltage to communicate with outside equipment or sensors WIFI232 A11 modules UART interface include 4 general signals TXD RXD RTS CTS The hardware reference design with RS 232 chipset as following VAKT AT DART TEP PART KAP DART TS 1 HOPI AR 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 HFOA11x 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 W
10. waferstar com pl sd data transmission COCA receives data il transmission senses Module reset signal RESET Low 0 effective reset input T The reset duration should be kept more than 300ms paesane WiFi status Indication nlik Oo Te WIFI connection available EIN GPIO oil va 0 No WIFI connection e Pe be configured as GPIO Indicate the module me 0 Finish module boot up status of power on process C 1 Module boot up not finish GPO GPO O o Can be configured as GPIO Restore configuration nReload 1 Module will Restore factory po ad JE default configuration after set this pin O more than 1s then set 1 Ethemet Interface PHY RX 1 1 8V Ethernet Data Interface Eee sea PHY TX Oo o connection AC couple mode 14 Ethernet Interface PHY TX FO Shanghai Wafer Microelectronics Co Ltd Page 9 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 2 2 Mechanical Size WIFI232 A11 series modules include HF A111 25 x40mm and HF A112 30x45mm with different physical size as follows 40 0 Figure 3 HF A111 Mechanical Dimension Shanghai Wafer Microelectronics Co Ltd Page 10 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Zod H 000094 S e868 6 Figure 4 HF A112 Mechanical Dimension 1 2 3 External Antenna WIFI232 A11 modules support internal ante
11. 00M Eth E a P 10 10 106 101 10 19 006 1 PG 168 1101 IF 182 186 1 1 IF Gateway 10 10 100 254 192 168 1 100 Late way 142 166 1 1 Figure 19 WIFI232 A11 Ethernet Interface Networking As STA N Ver For above networking WIFI232 A11 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 10 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 WIFI232 A11 works as router mode but PC2 can t active initiate a connection to PC1 Shanghai Wafer Microelectronics Co Ltd Page 23 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 2 4 3 WIFI232 A11 Ethernet Interface Networking As STA Z Ver STA oo Vel ii w 100M Eth a PAL TJ a HF A11x IF 192 168 1 101 IP 192 168 1 10 P 102163 1 1 IF 192 168 1 100 Gateway 182 188 1 1 Gateway 192 183 1 1 Csteway 187 163 9 1 Figure 20 WIFI232 A11 Ethernet Interface Networking As STA Z Ver For above networking WIFI232 A11 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 wil
12. 1 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 High Flying can provide the auto configuration tool to speed up the module conguration duration Please contact High Flying technical interface to acquire this tool if required 2 8 Firmware Upgrade WIFI232 A11 module supports firmware upgrade online User can upgrade firmware via web access 2 9 GPIO Function WIFI232 A11 module can provide maxiam 7 GPIO 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 Shanghai Wafer Microelectronics Co Ltd Page 25 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 3 OPERATION GUIDELINE 3 1 Configuration via Web Accessing When first use WIFI232 A11 modules user may need some configuration User can connect to HF A11x module s wireless interface with following deault setting information and configure the module through laptop Table 5 WIFI232 A11 Web Access Default Setting Parameters Default Setting SSID HF A11x_AP IP Address 10 10 100 254 Subnet Mask 255 255 255 0 User Name admin Password admin 3 1 1 Open Web Management Int
13. 11 yymmddnnnn yymmdd date nnnn serial number 4 2 2 25 AT VER Function Query module software version information Format Query Operation AT VER lt CR gt ok lt ver gt lt CR gt lt LF gt lt CR gt lt LF gt Parameters ver Module software version information 4 2 2 26 AT H Function Help Format Query Operation AT H lt CR gt ok lt commod help gt lt CR gt lt LF gt lt CR gt lt LF gt k Parameters Shanghai Wafer Microelectronics Co Ltd Page 43 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com APPENDIX A QUESTIONS AND ANSWERS Q1 How to configure transparent serial port application TCP protocol with two WIFI232 A11 modules Network structure as below figure Module 1 Setting Works as AP mode See Mode Selection Page LAN IP address 10 10 100 254 See AP Interface Setting Page k Network Protocal TCP Server Port ID 8899 See Applicaiton Setting Page Module default setting Module 2 Setting Works as STA mode See Mode Selection Page WAN connection type DHCP or Static IP For this example 10 10 100 100 See STA Interface Setting Page K Network Protocal TCP Client Port ID 8899 Application IP address Module 1 s LAN IP address 10 10 100 254 See Applicaiton Setting Page Notes When module 2 works as STA mode module s WiFi interface works as WAN port Module s WAN IP addresss and
14. 2 A11 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 Shanghai Wafer Microelectronics Co Ltd Page 27 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com ie Mede Selasin STA Interface Setting ATA matee Poramseiea me Device Management HF A 11s AP MAC Address Optional Security Hode oren Encryption Type tare m ppt Cancal YAH Connection Type DHCP auto seigi Fite hans 7 tobe Apply Canc Figure 25 STA Interface Setting Page 3 1 5 Application Setting Page This page use to setting the parameters of serial port comminucation such as UART setting and high layer network protocol setting which used support serial communication AF Interface Setting AP Interiace Setting roch ari SSID Security ke Pebini inp Deume Hanasement Wifi Uart Setting Tow could configure the Dart parameters and network parameter ef the wifi art Uan Setting Baudlrate Data Bits oer Parity Mona Shop 1 CTSETS Disable Apply Cancel l de Herrer T Protocol Tce Port EEE IF Address 10 10 i PCE Tims out MAN 600 5 300 Figure 26 Application Setting Page Shanghai Wafer Microelectronics Co Ltd Page 28 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Notes Generally Network pro
15. 3 Transparent Serial Port Application rrarsrnnrrnrrrnnvrnnrrrnnvrnrrrrvrrnrnennvreneernnvennsrnnresssnnvrensennnnesee 33 Wireless Data Acquisition Card Application rrrrrrnnrnnnrrrrrnnrrrnnrrnnrrnvrnnnrsrerrrnsernnrrnerennnrensenn 34 WIFI232 A11 Default UART Port Parameters rrrrrrrrrarennrrrrsnvrrrennvrrrrsnrrnrnnnrnrnnnvrsrenvrnnsnnvresernnne 35 Switch to Configuration Mode rrrrnnnrrronnrrrnnnrrrronnrrnrnnnrnrrnnnrrrennrnsennrnnsnennrnnnnnressnnnnssennrnsennnsee 35 ATT IMSUUCION for Help uuareqaqarnpanmmmoisisesasrnn irei ER aaa 36 Configure Transparent Serial Port Connection TCP r rrrnrrrrnanrrnnonnrnnrnnvrerennrnrennrnnnnnvnennnn 46 Module EAN IF Seinens ierre E EEEE OE EErEE 46 Module WAN IP Setting rrrrrrrrnrrroornrrronnnrrrnnrrrrnnnrrrrennrnsnnnrnrrnnnrennnnnerennrnsnnnrnnsennnrssnnnnssnnnnenenn 47 Configure Transparent Serial Port Connection UDP rrrrrnnrrrrnnnrnnnnnrrnrnnnvrrnnnrrrrnnvrennnnnnen 47 Module Network Protocal TCP Server rrrrrrrnrannrrrrnnvrrrennrrrrrnrrrnrnnrnnsrnnrerernrnssrnnvnssennrnsnnn 48 Module Network Protocal TCP Client rrrrrrrrrnvrnrrnnrrrnrnvrnrnnnrnnnnnrnnrnnvrerennrrnnnnnrenennrnnennnnnsnnnr 48 Module Network Protocal UDP r rrrnrrrrrnnvrrrnnvrrrernvrnrennvrrrrnnrrsrnnrnrsnnnvrseenrressnnnrerennrssesnrsssnnnner 48 Page 5 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Figure 48 Two WIFI232
16. 8899 Application IP address Module 2ff s WAN IP address 10 10 100 100 See Applicaiton Setting Page x LAN IP address 10 10 98 254 Different net segment with WAN port See AP Interface Setting Page if iii AP HF A I ix LAN IP 106 10 100 254 TCP Server y BR99 T Al er rm VP AV WIE ATP TY T F 3 F 3 HF Alix HPU mcu STA STA LAN IP 10 10 99 254 LAN IP 10 1U 94 254 WAN TP 10 10 100 100 WAN IP 10 110 100 10 ILF Server ICF Client HRD 10 10 100 100 899 Figure 46 Two WIFI232 A11 Modules Connection Through AP Q6 How to avoid IP address confliction when apply WIFI232 A11 module The following address allocation method can avoid the IP address confliction for dynamic and static IP address mixed application Module dynamic IP address range from 100 to 200 for last IP address segment Such as default IP 10 10 100 254 When module works as AP the IP address module can allocate to STA is from 10 10 100 100 to 10 10 100 200 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 WIFI232 A11 moduls works as data acquisition card and connect with PC how to configure this application Network structure as below figure Three WIFI232 A11 module setup 3 TCP links with PC server Module 1 works as AP and all devices connect to module 1 through WiFi interface PC Setting
17. A11 Modules Connection Through AP rrrrrrnnvrrnnenrrnnnnvrnrennrnrrnnvrerenvrnsennrnssnnnvesnnn 49 Figure 49 Wireless Data Acquisition Card Setting ccccccccssccccsssceesssceessseceesseecessseeeesseeeesseeeeeeeeens 50 LIST OF TABLES Table 1 WIFI232 A11 Module Technical Specifications rrrrrrrnnnrrnrrrnnvrnnrrrnnrnrnrennrnnnernnvrnerrnnvrnnersrnrressrnnveneenn 8 Table2 WIFI232 A11 Pins Definition resnrrrnvvennvrrnvrennvnrnvnrnnnrennrennnsenenennnnnnvnsnnnsenensnvnnsnvnennvenesevvnssvenenvessnenense 9 Table 3 WIFI232 A11 External Antenna Parameters rrrrrrnrrrrsrrrennrrennrnrenvrrrenrrsrnnrsenvnrenvrersnvesesnnrsenrnsennssnnn 11 Table4 WIFI232 A11 Evaluation Kit Interface Decscription rrvrrrnrvnnrnvrnrssvrrnnsrvnrsrnrnnssnvenssnvrnssssrrnnsenvessenne 12 Table 5 WIFI232 A11 Web Access Default Setting rrrrrrrrrrrvrrrnvrrrvrrenrrrnvrrrvrrrnrerrvnrenrernvrrenrrenresvnsenvsesvesennee 26 Table 6 Error Code DescribtionWIFI232 A11 Web Access Default Setting rrrrrrrrrnrrrronnrrrrrrrrrrnrnnrnnnnnre 37 Table 7 AT Instruction Set LISt ec eeccccccccsssscceccccccsseccecccccssescecccccsesececcceeaesesececceeusscesccccsnesecceecs 37 Shanghai Wafer Microelectronics Co Ltd Page 6 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 PRODUCT OVERVIEW 1 1 General Specification Table 1 WIFI232 A11 Module Technical Specifications om f
18. CAN GET The ap site survey only far 574 Mode AT Z RESET The Module AT MID Gat Tha Module IDG eg STL 4 mmddxxxx yy year mmcmonth dd day xxxx serial nun AT H Help Serial CO 22 i PT G vian Figure 38 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 kK Format Description lt gt Means the parts must be included Means the optional part x Command Message AT lt CMD gt op para 1 para 2 para 3 para 4 lt CR gt AT Prefix of command message K CMD Command string op Symbol of command operator The command requires parameters input x NULL Query the current command parameters setting para n Parameters input for setting if required lt CR gt Enter Key it s 0x0a or 0x0d in ASCII x x Notes When input AT Instruction AT lt CMD gt character will display capital letter automatic and other parts will not change as you input x Response Message lt RSP gt op para 1 para 2 para 3 para 4 lt CR gt lt LF gt lt CR gt lt LF gt x Prefix of response message RSP Response string Shanghai Wafer Microelectronics Co Ltd Page 35 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com ok Success ERR Failure op para n Parameters if query com
19. CR gt lt LF gt x 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 x Parameters wifi_mode WiFi protocal kK 11BG 11B Bl 11G x 11BGN 11N ssid SSID when module works as AP channel WIFI channel selection AUTO CH1 CH14 This Instruction only effective for WIFI232 A11 works as AP After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as STA x k 4 2 2 13 AT WAKEY Function Set Query WIFI security parameters as AP Format Query Operation AT WAKEY lt CR gt ok lt auth encry key gt lt CR gt lt LF gt lt CR gt lt LF gt x 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 Parameters auth Authentication mode k OPEN k SHARED x WPAPSK encry Encryption algorithm x NONE When auth OPEN effective Shanghai Wafer Microelectronics Co Ltd Page 40 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com WEP When auth OPEN effective or SHARED effective TKIP When auth WPAPSk effective AES When auth WPAPSK effective TKIPAES When auth WPAPSk effective key password ASCII code shall less than 64 bit and greater than 8bit This Instruction only effective for WIFI232 A11 works as AP After WIFI232 A11 module boots up again the sett
20. FI 802 11 b g n converter Module www waferstar com 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 Parameters auth Authentication mode k OPEN Kk SHARED WPAPSK encry Encryption algorithm x NONE When auth OPEN effective WEP When auth OPEN or SHARED effective x TKIP When auth WPAPSK effective AES When auth WPAPSK effective key password ASCII code shall less than 64 bit and greater than 8bit This Instruction only effective for WIFI232 A11 works as STA After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 8 AT WSSSID Function Set Query WIFI target AP SSID parameters as STA 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 x 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 x Parameters ap s ssid AP s SSID This Instruction only effective for WIFI232 A11 works as STA After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 9 AT WSLK Function Query WiFi link status as STA Format Query Operation AT WSLK lt CR gt ok lt ret gt lt CR gt lt LF gt lt CR gt lt LF gt Parameters ret Disconnected if no WiFi connection A
21. IFI232 A11 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 Shanghai Wafer Microelectronics Co Ltd Page 15 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com When WIFI232 A11 modules boot up phase the general user board MCU software flow chart will as following Power Up pet ig a a ame nl v Module 6 Husdyr l i IN oler oe M Broken m 7 te ty 7 z y T Agreement Transmittion Transparent Tranemittion lt Select Work Mode gt gt ms am i ar a i Agreement Transmittion Transparent Tranrsminion Waiting time depend on real wireless network Waiting time depend on real Wireless network UART Transmittien UART Ti anspareni Fase On Protocal Data Coomunication Figure 11 User MCU Software Flow Chart WIFI232 A11 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 WIFI232 A11 modules boot up user can select one work mode base on the sett
22. Intern TT UART User Device HF 11x g T UART User Device HF At1x DD Figure 33 Remote Management Application For this remote management application WIFI232 A11 works as STA mode and connects to Internet through wireless AP Module configured as TCP Client and communicates with remote TCP server at Internet Module s serial port connects to user device So user device s data or sampling information can send to remote TCP server for storage or processing Also remote TCP server can send command to control and manage the user device through the wireless network 3 3 3 Transparent Serial Port Application For this transparent serial port application two WIFI232 A11 modules connect as below figures to build up a transparent serial port connection Vy UART eg en User Device Sy X Liser Device HF At1x HF A11x AF SSID HF A11x_AP STA SSL Hr A11x Ar LAN IP 10 10 100 254 WAN IP DHCP Net Prat TOP Server Net Prat TCP Client Protocol Port 8899 Protocol Part 8899 IF Address 10 10 100 254 Figure 34 Transparent Serial Port Application For left side WIFI232 A11 module configured as AP mode and use default SSID and IP address network protocol configured as TCP Server mode and protocol port ID 8899 For right side WIFI232 A11 module configured as STA mode and setting the same SSID CHF A11x AP for this example with left side WIFI232 A11 module enable DHCP network and network protocol config
23. K Error Processing Scheme Figure 12 User Device Send Data to WIFI232 A11 Module Procedure Notes For Error scheme 1 if WIFI232 A11 receives wrong CRC information of SEND command it will reply back SEND ACK NOK If WIFI232 A11 not receives SEND command for the link issue user device need decide to retry This is a procedure WIFI232 A11 module send data to user device procedure User Device HF A11x REC Vs n HF A11x clear the buffer of s n and send new data 5 n 1 RECV Normal Procedure User Dave HF A 11x User Dewe HF A dix m RECY sn RECV sn RECY ACK isen Shot RECVIs n aa change T U i E 5 10 change _RECW s n HF A11x send the data atthe buffer of s n RECY ACK s70 Ta RECY ACR s n l RECV Emor Processing Scheme RECV ACK Error Processing Scheme Figure 13 WIFI232 A11 Module Send Data to User Device Procedure 1 4 2 3 Agreement Transmission CRC Arithmetic CRC arithmetic C language reference code as following u16 calc sum void data u32 len Shanghai Wafer Microelectronics Co Ltd Page 19 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com u32 cksum 0 u16 p data while len gt 1 cksum p len 2 if len cksum cksum gt gt 16 cksum amp Oxffff cksum cksum gt gt 16 return cksum cksum u8 p 1 4 3 Configuration Mode In configuratio
24. OR AGREEMENT TRANSMITION MODE define MAX_DAT_BUF_LEN 1024 Max 1024 can set the real value define AGREE_HEAD_LEN 6 Head Byte Command Word Serial number Reserve Byte define MAX SEND CMD LEN MAX DAT_BUF_LEN 8 define RECV CMD LEN AGREE HEAD LEN 2 II Define data structure struct STRAGREE II unsigned char send_cmd MAX_SEND_CMD_LEN II unsigned short send len M unsigned char send_s int waiting_4 send_ack II II unsigned char recv_cmd RECV_CMD_LEN unsigned short recv_len unsigned char recv_s II int waiting_4_recv_ack II agree_data function do send cmd if is waiting for send ack amp is timeout II send cmd out II else if lis_waiting_for_send_ack generate_new_send_cmd II send cmd out II else add waiting time II function do_recv_cmd if is waiting for recv ack amp is timeout II recv cmd out II else if lis_waiting_for_recv_ack l generate_new_recv_cmd II recv cmd out II 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_s II Shanghai Wafer Microelectronics Co Ltd Page 49 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module agree_data waiting 4 send ack 0 else do nothing function do_recv_ack_cmd if receiv RECV ACK and check OK amp is waiting for recv ack agree da
25. Order Mormaer RA AAEE AG eee 12 io Rardware Relersnee DES Aa 13 1 3 1 Hardware Typical Application rornroronrrrrnnrrronrrronnrrrnnrrrsnvrsnnnrnnnvrrnnnrnsenvrnrenrnsrnvrsernnnsnrsssnnesnn 13 1 3 2 10 100M Ethernet Interface r rrrnrnrrrnrnrnrrrnrornrornrrrnrrnnrrenrrenrrenrrsvrnsrersvrenvrrnvrenvrensrennssnsssnsennn 14 LZ kis Ethernet Connection with Transformer ccccccccssceessecesseessecccsseceeseeeeeecessesessesesseeeeaees 14 13 22 Ethernet Connection without Transformer rrrrrrnvrrrnnvrrnnvrrnnvrrrnnvrrrnnrrnonvrrnnvrrrovrrnsnvrnsnnnene 14 ET URTER 14 1 3 4 Power Ol 1 2 gt gt eR seem ponelupdenkejn 15 WAs Sotware Reference DESIGN Lamssrsserm sedanen assmrsdn 16 1 4 1 Transparent Transmission Mode rrrrrnrrrnnrnrrnvrrernrrnnvrrrsnrnrnnvnrrnvnsennrernvnesnnrsrsnnesennnssnnrsnsnnssene 16 1 4 2 Agreement Transmission Mode rrrrvrrrvrrnvrrnvrrnvrrnvrrnrrnnrrnnrrnvrrsvernvrnnvrenvrenrrensnevsssvssnvrsnsssnsennn 17 1 4 2 1 Agreement Transmission Data Structure rrrrsrrranvrrrnvvrranrrrnnrrronvrrnnvrrrnnrrnonvrrsnvrnenvsnsnnennn 17 1 4 2 2 Agreement Transmission Procedure rrrsrrrrnrvrranvrrnnvrrnnvrrravvrrnnvrnnnvnrenvnrnnnvrnnnvsrnnrerennnssnnn 18 1 4 2 3 Agreement Transmission CRC Arithmetic rrrrrrrnnrrranvrrnnvrrnnvrrrnvrrrenvrrnnnverenvrrenvrnnnvrrrsnnennn 19 1 4 3 Configuration Mode rrrrrvrrnvrnnvrnnvrnnreenrrenrrenrrnvrenvrenvrrnvrensrnnrrsnsrnvensvrnnv
26. P SSID AP s MAC if WiFi connection available Kk RF Off if WiFi OFF This Instruction only effective for WIFI232 A11 works as STA After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 10 AT WSLQ Function Query WiFi signal strength as STA Format Query Operation AT WSLQ lt CR gt ok lt ret gt lt CR gt lt LF gt lt CR gt lt LF gt x Parameters ret x Disconnected if no WiFi connection x AP s WiFi signal strength if WiFi connection available Shanghai Wafer Microelectronics Co Ltd Page 39 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com This Instruction only effective for WIFI232 A11 works as STA After WIFI232 A11 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 WEBU Function Set Query WEB page login parameters Format Query Operation AT WEBU lt CR gt ok lt password gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WEBU lt password gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt x Parameters User name for WEB page access password Password for WEB page access 4 2 2 12 AT WAP x Function Set Query WIFI parameters as AP kl Format Query Operation AT WAP lt CR gt ok lt wifi_mode ssid channel gt lt CR gt lt LF gt lt
27. P 26 3 1 3 AP Interface Setting Page La vvveaasamsenasnmnmnuadeehmevinnasnukimaiesddbiet 27 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 3 1 4 STA Interface Setting Page ccc ccsssccssscesssecessecessecessecceseecessccessecesseeessecesssesensesesees 27 3 1 5 Application Setting Page rrrrnrnrnnnnnnnvrnnnnrrrnnnrrnnrrrnnvrrennrnsnnrnrennrsenvrsesvrssnnrsrnnvesenvsssnnnsssnvssennenene 28 3 1 6 Device Management Page rmrnrrrnrnnnrnanrnannrenrrnnrrnnrrnvrrnnrennrrnvrenvrnnvrnnvrenvennsrnnsrenssensssvrssvssnvssnvene 29 32 VWIFIZS22A1 Usage NO AULI 29 gdl MED TOO meere er E se ee Teron ee ont 29 322 NRK MENN ess Eii 30 UI hhv 30 3 3 TypicalApplicaton ENE 32 3 3 1 Wireless NAN 32 3 3 2 Remote Management Application rrrrrrrnvrrrnrrrnvnrenrnnvrrrnversvrrenrernvrssnrersvrsevnsenrernvrsenrsenvesennee 33 3 3 3 Transparent Serial Port Application rrrrrrrsnnrrrsrorrnnsvrrnnsenvrnrrnvrenervrrnsssnrnssrnrenssnvenssnvrrssssvrsenn 33 3 3 4 Wireless Data Acquisition Card Application r rrrrvrrrrsnrrnnrrvrerssvrnnssnvrnrervrrnsssrrnnssnresssnrenesnnnee 34 a ATANSTRUG TON INTRODUC TION seas csscsscodscsccecucconsienshussen dedonpaavesssesusvenwscoencenvessasscsess EEEN 35 Ai MOORE ATION ModE sesso ratte deca censcecnccnessidececesbsccedocescatcud EE E 35 4 1 1 Switch to Configuration MOde cc ccccccccscccsccesceeseesseesseesscesseesscesseesecessecsecesecesecsecseeseeea
28. RS232 to WIFI 802 11 b g n converter Module www waferstar com RS232 to WIFI converter Module Embedded WiFi Module User Manual WIFI232 A11 V4 0 Overview of Characteristic kx Support IEEE802 11b g n Wireless Standards B Support TCP IP UDP Network Protocols kK Support UART GPIO Ethernet Data Interface x Support Work As STA AP Mode K Support Router Bridge Mode Networking k Support Board Antenna and External Antenna Option x Support Transparent Agreement Transmission Mode i Support AT Instruction Set for Configuration Support Friendly Web Congiration Page x Single 3 3V Power Supply x Smallest Size 25 x 40mm FCC CE Certificated Flexible Software Platform with Linux OS CE FE Shanghai Wafer Microelectronics Co Ltd Page 1 of 51 market Qwaferstar com Shanghai Wafer Microelectronics Co Ltd Page 2 of 51 RS232 to WIFI 802 11 b g n converter Module www waferstar com Table Of Contents BSE FORS satis tas ea gests cats EEA tutes A EENEN E AE E N A NEAT 5 LIST OF TEPPE 6 HSTORV pusen 7 ls PRODUCT TOVERVIEW eects tester eec ccs secs ccnecc s EE iE E Ea E ices 8 ki General PO CHIC AU OM avvek AaS EAEE 8 12 Hardware introduction x occ das ccs ses dace esnia ANA 9 Mga Was PNS MOS TINMILION csicencecoenesavsatasaecarneas tee ncandaecee an NN 9 1 22 Mechanical SIZ Coys eieisaxssacesanssessaveassvsncondeosnesuasesets area NER ES E EEA EE A E a 10 taa Ped feiLuvuvv vvrvevsvjeesssasere ser nen 11 2 PENN 12 tas
29. arget TCP server s IP address Port ID required 8899 Default Made Client Frotocol TOP Port 3898 IP Address 10 10 10 108 TCP Time out MAX Goo s 400 Apply Cancal Figure 44 Module Network Protocal TCP Client Protocal UDP No Server Client selection required Application IP address required it s target device s IP address Port ID required 8899 Default Mode Client Protocol UDF Port EEE IF Address fone oS Figure 45 Module Network Protocal UDP Q5 How to configure transparent serial port application Two WIFI232 A11 modules all configured as STA and connection through AP Network structure as below figure Module 1 Setting We use WIFI232 A11 as AP for this example Works as AP mode and all default setting Module 2 Setting Works as STA mode See Mode Selection Page WAN connection type Static IP 10 10 100 100 See STA Interface Setting Page Shanghai Wafer Microelectronics Co Ltd Page 46 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Network Protocal TCP Server Port ID 8899 See Applicaiton Setting Page x LAN IP address 10 10 99 254 Different net segment with WAN port See AP Interface Setting Page Module 3 Setting Works as STA mode See Mode Selection Page WAN connection type Static IP 10 10 100 101 See STA Interface Setting Page Network Protocal TCP Client Port ID
30. cesssccessseeeesseecesssecessseecessseceesseeeesseecessseeseseeeens 16 User Device Send Data to WIFI232 A11 Module Procedure rrrrrrrrrrnnrnnnnrrnrrnnrrnnnnnrnnrnnnnennnnr 19 WIFI232 A11 Module Send Data to User Device Procedure rrrrrrrrrrrrnrnrnnnnnvrnrannvrrennvrrnnnvnnnnn 19 Multi TCP Link Data Transmition Structure ccc ccccccccsseccesssecessseceesseeeesssecessseccesseeeesaes 20 WIFI232 A11 Functional ArchiteCture ccccccccccsssccessseccesseceesseccessseeeesseecesssecessssccessseceesaeeeenas 21 WIFI232 A11 Basic Wireless Network Structure cccccccccccccssccessssccesseeccssseccessseeeesseceessseeeeas 21 WIFI232 A11 Adhoc Network Structure c ccccccccssscccssssccessseccessceeesseeecesseeeeeseecesaeceesseeeeseeees 22 WIFI232 A11 Ethernet Interface Networking AS AP rmmrrrarrnnnrrrennvrnrnnnrrrrenvrnrennrnrssnnrersenvresnnn 23 WIFI232 A11 Ethernet Interface Networking As STA N Ver mum rrrrrrrnrerrrererorrrrrrreeens 23 WIFI232 A11 Ethernet Interface Networking As STA Z Ver rrmmrrrvrrrrrrrrrervrrrrerrrrrenn 24 WIFI232 A11 Transparent Transmission Demo rrrrrrarsrnnvnnnnrnnvrnnnrsrrrnnsnennrrnnssvnnrnnnsrnnrrnnssssrresenn 25 Open Web Management PagGe c cccccsscccessseceesseceessceeessseccesseccessseecesseeeesseecesseeeesseeeeeseeeens 26 Mod Selection Fage serisine aen aE VE EREE S 27 AP Interface Setting Page rrrrrnnrrrnnnnrnnnnnnrrnenrnnrnnnrerennr
31. common software tools debugging and applying WIFI232 A11 modules User can also select other tools used to debug seral and Ethernet port Serial Debugging Software ComTools Ethernet Debugging Software TCPUDPDbg 3 2 2 Network Connection User can select two methods to connect WIFI232 A11 module base on dedicated application Shanghai Wafer Microelectronics Co Ltd Page 29 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com x Use WIFI232 A11 STA interface WIFI232 A11 and debug PC2 connect to a wireless AP another PC1 or user device connect to HF A11x module with serial port PC1 ii HF A11x Figure 28 STA Interface Debug Connection i Use WIFI232 A11 AP interface Debug PC2 connect to WIFI232 A11 through wireless connection another PC1 or user device connectto WIFI232 A11 module with serial port PC1 H F A 11x Figure 29 AP Interface Debug Connection 3 2 3 Module Debug PC1 open TCP232 Test program setting the same serial port parameters with WIFI232 A11 module and open serial port connection i US TPS be Teel Kaede to Ethernet onvert tester Pils El Opitiens Help rCDMSellings DOK port dats racer Hemert dates cere HetSellng Parttjum DOM C1 Proboocl Cc ka ee fram TCP Cheni ies HONE C2 Serser P 10 10 100 254 Daab E bt C2 Server Pall Stopol bi ki a234 ca Close Connect Eecy Optl ons Eacr Options
32. d as AP mode and all others configured as STA mode All WIFI232 A11 which configured as STA and data server PC wireless connected to WIFI232 A11 which configured as AP to make up a wires network Data server PC open TCP Server protocol and all WIFI232 A11 modules open TCP Client protocol All data acquisition cards datas and sampling information can be transmitted to data server PC for operation Shanghai Wafer Microelectronics Co Ltd Page 33 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 4 ATtINSTRUCTION INTRODUCTION 4 1 Configuration Mode When WIFI232 A11 power up it will defaultly works as transparent transmission mode then user can switch to configuration mode by serial port command WIFI232 A11 UART default parameters setting as below figure Uan Setra Eaudrate Pa i a Hits Figure 36 WIFI232 A11 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 x UART input after module receive and feedback a as confirmation x UART input a after module receive a and feedback ok to go into AT instruction set configuration mode m LIM Sear eE I EFT fe EE AM FET BFE LAG AH ETETE Oe Er T EE N
33. de Selection Page LAN IP address 10 10 100 254 See AP Interface Setting Page k Network Protocal UDP Port ID 8899 Application IP address 10 10 100 100 See Applicaiton Setting Page Module 2 Setting Works as STA mode See Mode Selection Page WAN connection type Static IP 10 10 100 100 See STA Interface Setting Page k Network Protocal UDP Port ID 8899 Application IP address Module 1 s LAN IP address 10 10 100 254 See Applicaiton Setting Page LAN IP address 10 10 99 254 Different net segment with WAN port See AP Interface Setting Page I T 1 a _ yo MCL HF AlIx a fe Ati AF STA LAN IP 10 10 100 254 LAWN P 10 10 99 254 UDP WAN TP 10 10 100 100 10 10 100 1 00 5899 LIDP LO 10 100 254 8899 Figure 42 Configure Transparent Serial Port Connection UDP Q4 Where to set WIFI232 A11 module network protocal TCP UDP WIFI232 A11 network protocol setting see Applicaiton Setting Page as below Figure Protocal TCP Server x Only Port ID required 8899 Default Shanghai Wafer Microelectronics Co Ltd Page 45 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Het Setting Mode Protec TCP Port Jagg IF Address 10 101 PCP Time out ALAR Gon 5 100 Apply Cancel Figure 43 Module Network Protocal TCP Server x Protocal TCP Client Application IP address required it s t
34. eeens 35 42 AT Instruction Set VEN EN avvente 36 221 instruction SYNTAX Format siese E E adsense 36 272 9 ea 0 6110 9 ec Coreei E EA 37 4 2 2 1 FEL 38 4 2 2 2 FEIN sce ot ince EEE E EAN EA AE EEEE EE EE 38 4 2 2 3 ATENE TE n A EE A EAT EAA EEE A 38 4 2 2 4 ATEUA RT ea era A ox cu gies EE A EET TEA E NAO OE A 38 4 2 2 5 ATE TMODE siipipari ni EE EE AR ENERE OEE ESERE EE EEEE 39 4 2 2 6 TENDEN 39 4 2 2 7 TVEN 39 4 2 2 8 TVEDT 40 4 2 2 9 TL 40 4 2 2 10 NE SEG EEE EE T MN santas 40 4 2 2 11 TVEN 41 4 2 2 12 TIP 41 4 2 2 13 PEN 41 4 2 2 14 ATEM S EP he 42 4 2 2 15 FV NN 42 4 2 2 16 PTR NN 42 4 2 2 17 NNN isc EAE AE NEN E EEE AEE AEO T 42 4 2 2 18 FANN 43 4 2 2 19 FOR PN 43 4 2 2 20 FTP NN 43 4 2 2 21 PER aa EE AANE OE EAN EE EEE EAEE EA 44 4 2 2 22 TRELLER 44 4 2 2 23 VL 44 4 2 2 24 TIP 44 4 2 2 25 APER 44 44 4 2 2 26 TE 44 APPENDIX A QUESTIONS AND ANSWERS seesssessseesssessssensssnssesnssesnsnsnssenssnensssnsssensssnnssenssennsesnssesssnenes 46 Q1 How to configure transparent serial port application TCP protocol with two WIFI232 A11 PUNO SS 7 sce ccc edocs cctve ss cva cece ctescet ees teccecenscteaen caeees civ erene ces eeamcesecueuserousty oes tse ecseneeceesececens tues tucccvsseceuseencesseteciyece 46 Q2 Where to Set WIFI232 A11 Module LAN IP and WAN IP through Web Page sscssscssssssseees 46 Shanghai Wafer Microelectronics Co Ltd Page 3 of 51 market Qwaferstar com RS232 to
35. erface Step 1 Connect laptop to SSID HF A11 AP of WIFI232 A11 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 Lannect te 10 10 10 154 Tha s rver 10 30 0025 at arad requires Weer ard parand MAr Tig Thi wr ver fr equest ing bebo User renses sri per ioe sent in an eee manner suter skinn Bourg Secures Conn er hon ser meres El adr w Panini ko le le fr lEenember mer pass nord or com Figure 22 Open Web Management page The WIFI232 A11 web management page support English and Chinese language User can select language 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 High Flying suggests all Web management related operation shall excute 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 3 1 2 Mode Selection Page This page use to setting the module working mode Transparent Transmission or Agreement Transmission and wireless ne
36. ing and user can switch to the configutation mode at any kinds of work mode 1 4 1 Transparent Transmission Mode WIFI232 A11 moduels 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 changes 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 transmittion 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 High Flying recommend when doing large amounts of data transmittion in transparent transmission mode hardware flow control should be enabled so as to fully en
37. ing will be effective But user can set this command when module configured as STA x x fx fx 4 2 2 14 AT MSLP Function Set moduels into power save mode Turn OFF WiFi Format Query Operation AT MSLP lt CR gt ok lt sta gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT MSLP lt on off gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Parameters When Query sta reply if the module in sleep mode On Module not in sleep mode WiFi ON Off Module in sleep mode WiFi OFF When Set Off Set module to sleep mode WiFi OFF On Set module to nomal mode WiFi ON When module go into sleep mode user can input AT MSLP on to re start the module and module go into transparent transmission mode 4 2 2 15 AT WSCAN Function Seek AP when module works as STA mode k Format AT WSCAN lt CR gt ok lt ap_site gt lt CR gt lt LF gt lt CR gt lt LF gt Parameters ap_site AP searched 4 2 2 16 AT TCPLK Function Query if TCP link already buildup ko Format AT TCPLK lt CR gt ok lt sta gt lt CR gt lt LF gt lt CR gt lt LF gt Parameters sta if module already setup TCP link on TCP link setup off TCP link not setup 4 2 2 17 AT WANN Function Set Query WAN setting only effective as STA mode x Format Query Operation AT WANN lt CR gt ok lt mode address mask gateway gt lt CR gt lt LF gt lt CR gt lt LF gt x Set Operation AT WANN l
38. l get assigned IP address from AP For example 192 168 1 101 For module works as bridge mode it can be treated as a transparent device and PC1 PC2 can comminucate without any limit But in this networking WIFI232 A11 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 5 Work Mode WIFI232 A11 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 transmittion User can configure dedicated work mode base on actual requirement and save the configuration information to the flash of WIFI232 A11 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 configurated include xl Wireless Network Parameters Wireless Network Name SSID Security Mode x Encryption Key x TCP UDP Linking Parameters Protocol Type Link Type Server or Client x Target Port ID Number Target Port IP Addre
39. m mem 802 11 b g n Wireless Transmit Power Parameters Configurable Receiver Sensitivity External I PEX Connector Antenna Option Internal On board chip antenna UART 1200bps 230400bps GPIOs Hardware Parameters Storage Temperature 40 C 85 C 25 x 40 X 8mm A111 30X45 X 8mm A112 Network Type Station AP mode Security Mechanisms WEP WAP PSK WAP2 PSK WAPI Encryption WEP64 WEP128 TKIP AES Transparent Transmission and Work Mode Sonware Agreement Transmission mode Serial command Parameters Network Protocol TCP UDP ARP ICMP DHCP DNS HTTP Dimensions and Size Max TCP Connection User Configuration Web Server AT command config User Application SW upper customized apllication SW with Linux systerm Shanghai Wafer Microelectronics Co Ltd Page 7 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 2 Hardware Introduction Figure 1 WIFI232 A11 Demo 1 2 1 Pins Definition PH Y_T X PH Y_T X PH Y_R X PH Y_R X n Read y G PIO nR eload G P I 02 RESET nLink GPIOI I UART RTS GPIO UART CTS GPI 09 UART TXD GPIO UART RXD GPIOIO GND 3 3V Figure 2 WIFI232 A11 Pins Map Table 2 WIF1I232 A11 Pins Definition 3 UART DataTranmit UART TXD O If not use UART function this 4 pins can be configured as GPIO rd Mee Shanghai Wafer Microelectronics Co Ltd Page 8 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www
40. mand or Error code when error happened lt CR gt ASCII 0x0d lt LF gt ASCIII 0x0a x fx fx x x Error Code Table 6 Error Code DescribtionWIFI232 A11 Web Access Default Setting Invalid Command Format Invalid Operation Symbol Invalid Parameter Operation Not Permited 4 2 2 AT Instruction Set Table 7 AT Instruction Set List pene show back function transparent transmition or agreement transmition WSLK Query WiFi link status as STA User Name and Password WAP Set Query WIFI parametersasAP O TCPLK Query if TCP link already buildup WANN Set Query WAN setting only effective as STA mode LANN Set Query LAN setting only effective as AP mode DHCPGW Set Query DHCP gateway address TCPTO Set Query TCP timeout EPHY Open Close ETH interface RELD Restore to factory default setting Re start module Shanghai Wafer Microelectronics Co Ltd Page 36 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com MD oO Query module ID information Query module software version information Help Notes WIFI232 A11 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 Function Open Close show back function Format AT E lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt When WIFI232 A11 module firstly switch from transparent transmissio
41. ment WIFI232 A11 series moduels provide different varient and physical type for detailed application HF A11X XX p 0 0 degr Connector ie pil 0 External IPEX Antenna 1 4 Internal Chip ant l J1 dim Size Ua 345mm Product Number Aii Vender information HF Figure 6 WIFI232 A11 Order Information Shanghai Wafer Microelectronics Co Ltd Page 12 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 3 Hardware Reference Design 1 3 1 Hardware Typical Application User Board HF A Ix UART RXD UART TXD ART RTS ART CTS nReload nkRST GND Figure 7 WIFI232 A11 Hardware Typical Application Notes nRST Module hardware reset signal Input Logics 0 effective There is 100K Ohm pull up resister internal When modul power up or some issue happened MCU need assert nRST signal O at least 300ms then set 1 to keep module fully reset nReady Module boot up ready signal Output Logics 0 effective There is 4 7K Ohm pull up resister internal The module will output O after normal boot up This signal used to judge if module finish boot up and ready for application 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 modue AP mode the module will output O This signal used to judge if module already at WiFi connection status
42. n mode user can finish WIFI232 A11 module configuration management and parmeters 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 1 4 4 Multi TCP Link Connection When WIFI232 A11 module configured as TCP Server it supports Multi TCP link connection and maxiam 32 TCP clients permit to connect to WIFI232 A11 module User can realize multi TCP link connetion at each work mode Multi TCP link connection will work as following structure Upstream All datas from different TCP connection or client will be transmited to the serial port as a sequence Downstream All datas from serial port user will be duplicate and broadcast to every TCP connection or client Detailed multi TCP link data transmition structure as following figure VI Fl 1 ap 1 Leer Device 1 s JEG Liser User Device m NG s ES User Device 3 Figure 14 Multi TCP Link Data Transmition Structure Shanghai Wafer Microelectronics Co Ltd Page 20 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 2 FUNCTIONAL DESCRIPTION 2 1 Wireless Networking WIFI232 A11 module can be configured as both wireless STA and AP base on network type Logically there are two interfaces in WIFI232 A11 One is for STA and ano
43. n to configuration mode show back staus 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 Function Set module into transparent transmition mode Format AT ENTM lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt When operate this command module switch from configuration mode to transparent transmission mode 4 2 2 3 AT NETP Function Set Query network protocol parameters Format Query Operation AT NETP lt CR gt ok lt protocol CS port P 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 Parameters protocol x TCP x UDP CS Network mode X SERVER CLIENT Port protocol port ID Decimal digit and less than 65535 IP Server s IP address when module set as client After WIFI232 A11 module boots up again the setting will be effective 4 2 2 4 AT UART Function Set Query serial port parameters Format Query Operation AT UART lt CR gt Shanghai Wafer Microelectronics Co Ltd Page 37 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module ok lt baudrate data bits stop bit parity flowctr gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT UART lt baudrate data bits stop bit parity gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Parameters baudrate www waferstar
44. nennnnrerennnrenennrssennrnsennnnnsnnnnessnnnsssennnenenns 27 STA Interface Setting Page rrnrrrrnnnrronnnrnrnnnrrrrnnvnrrnnnvrrennrrenennrerennnrssennresennnnssnnnnenennressnnnsenenn 28 Application Setting Page rrrrrrrrnnvrnronvrrnnnnrrnrnnvrrnnnvrnrrnnnrrnrnnrnsennvrssnnnressnnvesesnrnsssnnresennvnssennvssennr 28 Device Management Page mrrrnrrrnnnnrnrnnnnrerennnrrnnnnrnrsnnnrerennrnnennnrerennnrnsnnnrnssnnnnesennnnssnnnnesennnnssenn 29 STA Interface Debug Connection r rrnrrnrnannrnrannvrrnnnvrrrnnnrrnennvrnsennvrsernnrsnnsnvrnssnrnsennvnnsennnnsnnnnn 30 AP Interface Debug Connection rrrrrrnnrnrnnnnrrnnnnrnrnnnnrrnennrerennrerennrnnnnnnnersnnnresnnnresennrssennrnesnnnnee 30 CommTools Serial Debug Tools rrrrrrrrrnvrrranvrrrennrrnrnnvvrrnnnvrrennrrsrnnnrnsennvnnsennrsssnnresesnrnsnnnnsne 30 TCPUDPDbg Tools Create Connection rrrrrsnrrrrnnrrrnnsnrrnnrnrrnennrnnrnnnvrrnnnvrnnnnnrnsnsnrnsennvnssnnnr 31 TGPUDPDLbG Tools Setting a ssscccsosausds snsssesnavews sonsesskasessknndvnuonessovnnevessteeveonvevden dannes edvoasGncnbualectes 31 TCPUDPDbg Tools COnnection ccccccccsseceesssceessseccesseccessseeeesseeceesseceessesessseeceesaeeeens 32 Wireless Control Application rrrnrrrnrnrnnvrnnrnrnnvrnnnrnnnrnnnrsrnrrnnsernvrrnnsresnnrnssesnnrrensennvrsnsssvnrsnssenn 32 Remote Management Application rnrrrrnnrrnnnnnrnrrnnvrrrnnnrrrnrnrrrnnnrrnrnnnnrsnennvnnnnnvenennrnsnnnnnnsnnnne 3
45. nna HF A111 Chip Antenna HF A112 On board PCB Antenna and external antenna option for user dedicated application If user select external antenna WIFI232 A11 modules must be connected to the 2 4G antenna according to IEEE 802 11b g n standards The antenna parameters required as follows Table 3 WIFI232 A11 External Antenna Parameters item Parameters Frequency range 2 47 2 5GHz 50 Ohm VSWR 2 Max 10B Max Connector Type PEX or populate directly Shanghai Wafer Microelectronics Co Ltd Page 11 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 1 2 4 Evaluation Kit High Flying 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 WIFI232 A11 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 Figure 5 WIFI232 A11 Evaluation Kit The external interface description for evaluation kit as follows Table4 WIFI232 A11 Evaluation Kit Interface Decscription Function Name Description O O O OO o eee Module 2x7 2mm DIP connector Z O Z O 2x7 2mm DIP connector LED1 3 3V Power Indicator nReady Indicator LED3 nLink Indicator Used to reset the module Module restore to factory default configuration 1 2 5 Order Information Base on customer detailed require
46. r device use this command to send data receive request to WIFI232 A11 modules RECV frame structure 0 1 2 3 4 5 6 7 x x Command Word 02 Serial Number SS Reserve Part 0000 All reserve part shall set to O Request Data Length LLLL CRC Check CCCC x x i e k x Data Receive Acknowledge Command RECV ACK x WIFI232 A11 module reply this command to acknowledge receive RECV command and insert data as user device request s length or shorter in the frame RECV ACK frame structure 0 1 2 3 4 5 6 L 5 L 6 L 7 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 CRC Check CCCC 1 4 2 2 Agreement Transmission Procedure Agreement transmission mode procedure as following chart This is a procedure user device hope to send data to WIFI232 A11 module User Device HF A1 1x I H SEND S n __ SEND s n 1 S S 73 SEND Normal Procedure Shanghai Wafer Microelectronics Co Ltd Page 18 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com User Device HF A11X User Device HF A11x SEND s n SEN Dis r Not process data and feedback OK SEND Error Processing Scheme SEND AC
47. s DHCP gate address 4 2 2 20 AT TCPTO Function Set Query TCP timeout Format Query Operation AT TCPTO lt CR gt ok lt time gt lt CR gt lt LF gt lt CR gt lt LF gt x Set Operation AT TCPTO lt time gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt x Parameters time TCP timeout time lt 600 600s kK gt 0 0 means no timeout x Default 300s 4 2 2 21 AT EPHY Function Open Close ETH interface 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 Shanghai Wafer Microelectronics Co Ltd Page 42 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Parameters On off Off Close Ethernet port function kK On Open Etherent port function Close module s Etherent port function can reduce the power consumption The default setting for WIFI232 A11 is close Ethernet port function 4 2 2 22 AT RELD Function Restore to factory default setting Format AT RELD lt CR gt ok rebooting lt CR gt lt LF gt lt CR gt lt LF gt This commard restore the module to factory default setting then re start the module 4 2 2 23 AT Z Function Re start module Format AT Z lt CR gt 4 2 2 24 AT MID Function Query module ID information Format Query Operation AT MID lt CR gt ok lt module_id gt lt CR gt lt LF gt lt CR gt lt LF gt Parameters module id Module ID information A
48. s to improve wireless network security Shanghai Wafer Microelectronics Co Ltd Page 22 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com 2 4 Ethernet Interface Communication WIFI232 A11 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 WIFI232 A11 module can configured as Bridge Mode or Router Mode base on different networking technology Notes For different networking requirement WIFI232 A11 may need different firmware to support this function Such as N Ver and Z Ver as following which need customized firmware as customer detailed requirement So please contact with High Flying technical support interface to know more about Ethernet interface networking application 2 4 1 WIFI232 A11 Ethernet Interface Networking As AP PC PC1 l i 100 Eth es amp gt is SS H g IP 10 10 100 101 IP 10 10 100 100 GateWay 10 10 100 254 IP 10 10 100 254 GateWay 10 10 100 254 Figure 18 WIFI232 A11 Ethernet Interface Networking As AP For above networking WIFI232 A11 module works as AP and also the center of this network All devices s IP address in this network shall use the same network segment with WIFI232 A11 and they can intercommunication with this method 2 42 WIFI232 A11 Ethernet Interface Networking As STA N Ver PC y 1
49. snnnrensrensssvssnvsenvssnvsnnssnnee 20 1 4 4 Multi TCP Link CONNECTION ccc cc cceeccsccssceseessesseesecsscesecsscescesecssceaecssseseesssessesseeseseenees 20 2 PUNCTIONAL DESCRIPTION ae 21 20 Wireless NEMI 21 2 1 1 Basic Wireless Network Based On AP Infrastructure srmrrvrrrrrrrnnrronvrrovrrnnvrnovrrenvrnnnnennr 21 2 1 2 Wireless Network Based On Adhoc Network Adh0C c ccccccsceseeesecsscesecesscesecsseesseenaes 21 22 UN 22 23 PUSS Be 22 2 4 Ethernet Interface Communication esesssoesesesesescscsoscesesesesescsesosoesesesesesesoscsocoesesesesescscsseoesesesesesos 23 2 4 1 WIFI232 A11 Ethernet Interface Networking AS AP rmrrrrrrrnnrrrrnrnrennrnrnnvrrenvnnernrrssnnrsrnvnsennnennn 23 2 4 2 WIFI232 A11 Ethernet Interface Networking As STA N Ver mrrrmrvrrvrrvreverrerrerrseens 23 2 4 3 WIFI232 A11 Ethernet Interface Networking As STA Z VeP ccccccccccesccsscesscesecesecesseeseeeseens 24 25 VOR MOE E E A E OR 24 ZB NetWork Protocal ossiani aaa ENEN ai 25 27 Paremete CNN 25 LO MPMI aE N etapa sncevacks cect ec cece ct tas ces sadices canueteerseesstgetencen acne sssees 25 29 PO Fume won sses a 25 3 OPERATION GUIDELINE Luse 26 Sel Gonhguration Vid Web ACCESSING sesiecsescsescics ccecesseissesssceaceeseosauses tenses sie ceeesseisieeet un 26 3 1 1 Open Web Management Interface cc ccccsscesscessccsscesscesecesecesecesecesececesseeseesseesseesseenes 26 DAL Mod H
50. ss xl Serial Port Parameters x Baud Rate Data Bit Parity Check Bit Stop Bit Hardware Flow Control x Work Mode Selection Transparent transmission or Agreement Transmission mode Shanghai Wafer Microelectronics Co Ltd Page 24 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Transparent transmission demo as showing in the following figure a WIFI232 A11 module can be taken as a virtual serial line when UART interface working in transparent transmission mode And user device will realize wireless data transmition almost without any changes 2 UART User Device 3 User Device HF AT1X Figure 21 WIFI232 A11 Transparent Transmission Demo 2 6 Network Protocal WIFI232 A11 module supports TCP UDP network protocol and the port parameters can be set via web accessing or AT instruction set 2 7 Paremeters Configuration WIFI232 A11 module supports two methods to configurate parameters Web Accesssing and AT instruction set Web accessing means users can configure parameters through Web browser When WIFI232 A11 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 High Flying can customized the parameters setting as customer request and ship WIFI232 A1
51. sure reliable data transmission In the applications which doesn t need flow control users can simply leave RTS Shanghai Wafer Microelectronics Co Ltd Page 16 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com CTS pin vacant 1 4 2 Agreement Transmission Mode If user requires keep 100 accurate data transmittion No error rate or user board MCU has limited data processing speed compared with wireless data transimtion rate agreement transmission mode is suggestd in this kinds of application Agreement transmission mode defines transmition data structure verification mode connection mode between both sides which target to fully control and mange the data transmition on the serial port This kinds of mode can keep accurate data transmittion In agreement transmission mode user device or MCU send SEND instruction to WIFI232 A11 modules WIFI232 A11 modules reply SEND ACK instruction to confirm WIFI232 A11 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 WIFI232 A11 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 1st Byte of each frame is command word The 2na Byte of each frame is serial n
52. t mode address mask gateway gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Parameters mode IP setting for WAN port Shanghai Wafer Microelectronics Co Ltd Page 41 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com static Static IP x DHCP Dynamic IP address WAN port IP address mask WAN port subnet mask gateway WAN port gateway address This Instruction only effective for WIFI232 A11 works as STA After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as AP 4 2 2 18 AT LANN Function Set Query LAN setting only effective as AP mode Format Query Operation AT LANN lt CR gt 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 Parameters address LAN port IP address mask LAN port subnet mask This Instruction only effective for WIFI232 A11 works as AP After WIFI232 A11 module boots up again the setting will be effective But user can set this command when module configured as STA 4 2 2 19 AT DHCPGW Function Set Query DHCP gateway address Format Query 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 x Parameters addres
53. ta recv St II agree_data waiting 4 recv_ack 0 II to use the received data else do nothing II function main char cmd init agree str ll init pccom port II do II if read one byte from uart gt cmd if cmd 0x01 do_send_ack_cmd II else if cmd 0x02 do_recv_ack_cmd if want to send data is wait for send ack II do_send_cmd II if want_to_recv_data is_wait_for_recv_ack II do_recv_cmd II while Shanghai Wafer Microelectronics Co Ltd Page 50 of 51 ll www waferstar com market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com APPENDIX C CONTACT INFORMATION Contact us Name Shanghai Wafer Microelectronics Co Ltd Website http www waferstar com Address Room 23E LiangFeng Building NO 8 DongFang Road Shanghai China Email market waferstar com Skype wafer service Phone 86 021 51870528 END OF DOCUMENT If needed We will change the product and document with out notice Shanghai Wafer Microelectronics Co Ltd Page 51 of 51 market Qwaferstar com
54. ther is for AP When WIFI232 A11 works as AP other STA equipments are able to connect to wireless LAN via WIFI232 A11 module Wireless Networking with WIFI232 A11 is very flexible Following figure shows the functional architecture of WIFI232 A11 module GPIO Processing 100M Eth Program UART Figure 15 WIFI232 A11 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 STAs is transmitted through the AP The figure following shows such type of networking User Device HF A11x HF A11x J Figure 16 WIFI232 A11 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 AP this type of network is a loose structure all the STAs in the network can communicate directly Shanghai Wafer Microelectronics Co Ltd Page 21 of 51 market Qwaferstar com RS232
55. to WIFI 802 11 b g n converter Module www waferstar com As showing in the figure below WIFI232 A11 1 can be treat as an AP and WIFI232 A11 2 WIFI232 A11 3 and the laptop are STAs connected to WIFI232 A11 1 Meanwhile all WIFI232 A11 modules can connected to user device via UART interface All WIFI232 A11 modules can be operated and managed through the laptop So it is convenient to O amp M all WIFI232 A11 modules Moreover in such Adhoc network structure the whole coverage of a wireless network can be extended easily User Device yy ELG ART User Device HF A11x N j Figure 17 WIFI232 A11 Adhoc Network Structure 2 2 Security WIFI232 A11 module supports multiple wireless encryption mechanisms and enables to protect the security of user s data transmission the mechanisms include WEP WAP PSK TKIP WAP PSK AES WAP2 PSK TKIP WPA2 PSK AES x xl x el x 2 3 Address Binding WIFI232 A11 module supports the feacture 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 ie SSID ESSID but must correspond to a unique BSSID address ie MAC address Illegal intruders can create a wireless network with the same SSID ESSID it will make STAs 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 addres
56. tocols support three modes TCP Server TCP Client and UDP UDP has no server and client requirement according yo standard 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 WIFI232 A11 module Also the Port ID between two sides of the communciaiton devices must keep the same 3 1 6 Device Management Page This page use to manage WIFI232 A11 module general setting such as administrator setting restart module button restore factory default setting button and update firmware through webpage p Mode Selection Device Management lay AP Interface Setting You mar configure administrator account and password boad default setting or update E STA Interface Settinr cation Settinr p Apple Arminsbator abings b Device Managemeni Aceri admin Password annan Restart Module Restart Module Reatard Load F cbory Desus Load Default Button Load Deiault Locat GEL Bowie Apply Figure 27 Device Management Page Notes 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 botton here the module will re boot up and reflash the memory information with new changes 3 2 WIFI232 A11 Usage Introduction 3 2 1 Software Debug Tools High Flying use two
57. tworking mode AP and STA mode Shanghai Wafer Microelectronics Co Ltd Page 26 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module Select Langasze Engish Appt a Mode Selection Working Mode Configuration mj AP Interface Setting Ep STA Ir Satin Ippica Sary P mf Arnboabon stine AP Bode Brig ga Foini Davia Signo car r s epa Davie Managamani E STA MaE ipi BETTE Apply Gore Figure 23 Mode Selection Page 3 1 3 AP Interface Setting Page This page use to setting the parameters when WIFI232 A11 module works as AP ip Mode Salecticn AP Interface Setting me AP Inierfa ce Getting __ AP Interface Setting seach as SSID S rority ET A Deere re fei Me 2 LA Inferbape sette WF Anpbcabon Setting www waferstar com bk T pg a LTAL oi nedla f 4 Tz me Device barmspement ra OPE Abels Tib J n mase muga T Xoluork ans SSID HF ls AP Hidden E aot babes Ersadsast Yetrork Name SS of Engade Bisa iF holatim Enable amp I a ESKIL Bad St De Tit id BT Frequency Channel AutcSelbct 7 PE HFAT Iz AR Serr Modi ETS Apply camel IP Adee ss 10 410 101 2754 Subnet Mask J05 266 266 SLAC sud pace HESTEN DHCP Type Sarar r Dafault DHF Gater ay Mid 10 100 264 JE Apply Cannel Figure 24 AP Interface Setting Page 3 1 4 STA Interface Setting Page This page use to setting the parameters when WIFI23
58. umber SN User device insert SN when it send command frame the SN will increase one SN 1 after one frame successful transmition 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 Maxiam 1024 Bytes CRC Part Example CCCC which is the CRC result of whole frame Serial transmition sequence for LLLL and CCCC Low byte first then higher byte k Data Transmit Command SEND User device use this command to send data to WIFI232 A11 module SEND frame structure 0 1 2 3 4 5 6 N 5 N 6 N 7 Command Word 01 Serial Numbe SS Reserve Part 0000 All reserve part shall set to O Data Length LLLL Data part DDDD DDDD length Data Content DDDD DDDD CRC Check CCCC Kk k amp amp amp J Data Transmit Acknowledge Command SEND ACK x WIFI232 A11 module reply this command to acknowledge receive SEND frame data x SEND ACK frame structure 0 1 p 3 4 Command Word 01 Serial Number SS Serial Number need keep the same with SEND command s serial number Reserve Part 0000 All reserve part shall set to 0 Acknowledge Information XX C00 OK FF or others NOK kK Data Receive Request Command RECV x x Shanghai Wafer Microelectronics Co Ltd Page 17 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com Use
59. ured as TCP Client mode protocol port ID 8899 Target IP address part setting the same IP address with left side WIFI232 A11 module 10 10 100 254 for this example Shanghai Wafer Microelectronics Co Ltd Page 32 of 51 market waferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com When right side WIFI232 A11 boot up it will find wireless AP SSID WIFI232 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 WIFI232 A11 module through serial port can comminucate each other and think the connection between them is fully transparent 3 3 4 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 WIFI232 A11 module to support wireless connection function 10 10 100 254 TCP Client 10 10 100 100 8899 User Davics P 10 10 100 100 UART W G User Device Net Prot TCP Server 8899 Sp User Device oe User Device HF A11x HF ATtx STA SSID HF Al tx_AP STA SSID HF A11x_AP LAN IP 10 10 99 254 LAN IP 10 10 98 354 WAN IF 10 10 100 101 WAN IP 10 10 100 102 Net Prot TCP Client 10 10 100 100 5899 Net Prot TCP Client 10 10 100 100 3899 Figure 35 Wireless Data Acquisition Card Application As above figure one WIFI232 A11 configure
60. ut Send As Ten Band Fecrola Interval 1000 1 C1 Protocol TEP Chee C2 Server IP 10 10 100 254 C2 Serre Pot aa r E W Connect gt Keer Options Fan Receive to fila Add line return h Eoeoive As HEX Receive Fma Gare Clear Send Options Data Grom Eile date Checksum kuio Clem Input Fond hr Hex Sand Recyela Tntervel 000 ME Sand 170 Aas 1955 ktp Jen usr cn Sand Sere Reset er Esai Gerd Lond Clear Laal Glee l r Bawdy Reen I Fres Figure 31 TCPUDPDbg Tools Connection Now in transparent transmission mode WIFI232 A11 default setting data can be transferred from CommTools program to TCPUDPDbg program or in reverse You can see data in receiver side will keep same as in sender side 3 3 Typical Application Examples 3 3 1 Wireless Control Application UART 3 User Device HF A11x AP SSID HF A11x_AP Figure 32 Wireless Control Application Shanghai Wafer Microelectronics Co Ltd Page 31 of 51 market Qwaferstar com RS232 to WIFI 802 11 b g n converter Module www waferstar com For this wireless control application WIFI232 A11 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 conection with WIFI232 A11 module 3 3 2 Remote Management Application
Download Pdf Manuals
Related Search
Related Contents
mai 2010 – Numéro 36 model 291-95 hidden link aussteller-serviceunterlagen exhibitor service manual ASUS P8H77-M User's Manual Neff D79M24 cooker hood Multi manual Manual PDF Manual de Instruções Copyright © All rights reserved.
Failed to retrieve file