Home

User Manual

image

Contents

1. Gd aeg A 1 A ec A oe 1 ay S 1 Y w a g wv A a WV Ay A YA aA A A Y 08 ci eo v Q A e A A Ss ot A 9 E o v A a a Ao c o o A I v A A critical P05
2. 6 67 Figure socket Status GUCryINg 68 TNS Wii3 125 Figure 8 15 send data through socket 0 6 69 Figure 8 16 query the receiver 2 3 32 2 2 ie 70 Figure 5 17 2 2 2223 3 3 2323 3 3 311313 13 13 11 111 11 nUE 70 Figure 8 18 system information 2 2224624246
3. 71 Figure 19 firmware UPBraAdE 3 3 33 3 3 1 1 11 1 1 1 7 yp Figure 8 20 web page ol parameter modtLDcatlot 58 74 Figure 5 21 online upgrade tmap oso tcha tutes 3 11 75 Tagute 5 22 the configuration of super terminal 76 Figure 5 23 Instruction DOS 2 gt 24n 3 1 0 17 1 0 80 Figure 9 2 AT Instruction special process flOW ccccccccccccccceesseseesssssnaeeeececeeessessaaeeeeesseeeeceeceeseesneaaeeeeeeeeeeee es 80 Figure 9 5 The 11 117 TNS Wii3 126
4. 14 YAPPLICATIONS 16 3 oF v 1 Y d Ad A a oc 1 wv A 6 1 TNS Wii3 61 Server Server WMOR sesso eene 16 3 SI v 1 Y d AG A I a o cd o 62 TN5 Wii3 Server
5. TNS Wii3 16 vin 19 Reference setting lt gt Wireless setting SSID encryption mode key Access Point lt gt Network setting Enable DHCP gt IP address 192 168 0 X gt Subnet mask 255 255 255 0 Gateway address 192 168 0 1 gt DNS address 192 168 0 1 lt gt Work mode setting gt Enable auto work mode 7 Protocol type TCP gt C S mode server gt Port number I 6000 gt Connection timeout 120s TNS Wii3 vin 20 6 9 TNS Wii3 RS 485 Y g a a 1 a yy yY RS485 422 Ey S w i a o 3 9 e 1 A A 1 9 9 UDP Wifi
6. d gi A o v A cd yY yY Y Ao g eg A q MYY E T A g d gu d updated Client Server 2 background server TCP client Ow ae inv 430 00048835 Le vc 0001594089 V E J AME uh wireless sensor Wireless sensor TCP server TCP server wireless sensorn TCP server d A e d e Y A y ay d Pa Figure 6 2
7. Yo v Lo Plug and Play 1 A Y e A oe CAA A AT command ps 3 M TCP IP Stack DHCP A A 9 o 9 v 9 A 4 Web browser Web server Configuration 5 1 1 KBytes s 115 200 bps 1 WiFi A A 1 d a 1 A o 1 a 9 9 2
8. 1 3111111111 118 Q4 THE MODULE HAS CONNECTED TO THE NETWORK SUCCESSFULLY WHY CAN T IT SHOW DESTINATION HOST UNREACHABLE OR REQUEST TIMED OUT AFTER DOING THE OPERATION PING BETWEEN THE MODULE AND PG 0 7 7 7 7 1 1 119 Q5 IN AUTO WORK MODE THE ICMP CONNECTION SOMETIMES CONNECTS AND SOMETIMES DISCONNECTS AFTER THE MODULE HAS JOINED IN THE NETWORK WHY 119 Q6 IN AUTO WORK MODE WHY DOES THE MODULE NOT CONNECT TO THE NETWORK AUTOMATICALLY AFTER RESETTING ccccecscccccccccccccscscsccccscscsccscscsces 119 Q7 IN AUTO WORK MODE DATA SENT TO THE MODULE THROUGH SERIAL WILL DELAY SOMETIME TO SEND TO THE NETWORK WHY 6966 120 Q8 IN AUTO WORK MODE WHY DOES THE MODULE NOT EXIT THE TRANSMISSION STATE AFTER SEND THE ESCAPE CHARACTER 2 6966 120 Q9 WHY CANNOT THE CONFIGURATION PROGRAM SEARCH FOR THE TARGET MODULE 9 996666 120 Q10 TO MOD
9. server oe G A 1 a e i A e o i A 9 1 A Client 9 A A ES I A A gY 1 dg Plug and Play RS 485 UDP broadcast gp cosmo m dnt 8 25 EE CE mi rms J 625 lt F UM e 00038 10s Tv s BIS DULL i 7 de
10. 192 168 1 107 Port d A A A La 2020 Server Enable Port d Y Y v yY 7 Server 3 1 TNS Wii3 Applications C PES Access Applications amp Gaming Wireless Security Garning Port Renge Forwarding Port Range Triggering DMrz Single Port Forwarding Application Port Port Protocol IP Address Enabled HTTP 0 jeo te w 71921681 0 O FTP 21 21 re 19216811122 1 FTP Data 20 20 rece ww 1921681 0 O Telnet zs zaa mee w 1923691 0 7 O sme 25 25 mee 192146810 TFTP 69 69 uor 1921681 fo O SMS rmct 2702 2702 TOP 19216 81 0 C cTweb server 2020 2020 te ww 1921681 POPS iio 18216810 O 119 iis mee 19216810 O SNMP 161 fas oor ww 1921581 0 oO cvs 1 2401 t 1923168310 SMS 27
11. TNS Wii3 win 121 Q11 Why cannot web pages of the WEB server open A Thereasons maybe include whether the WEB server 1s forbidden Whether the server port is set correctly or not 1f the port is set to the number except 80 then it s needed to input the port number in the address bar while using a browser such as http 192 168 1 100 2000 Q12 When user sets the serial to the baud rate it does not support the module can t be connected to then how to correct it A Resume it to the manufacturer setting the approach is as follow 1 Open the serial debugging software such as terminal2 or Hyperterminal set the serial parameters to 115200bps 8 bits of data bits 1 bit of stop bits no parity of parity bit no flow control 2 Input att no contain quotation marks and contain enter in the sending column of the software choose periodic sending the period is set to 50ms 3 Reset the module if it return OK then stop the periodic sending 4 Send the command AT QVER to look over the return message if the message includes B1 xx field then it joins 1 bootloader mode successfully otherwise it s not in retry from the 2th approach 5 Send the command AT QVER no return 6 Wait for 1 second and reset the module then it can be resume to the manufacturer state TNS Wii3 vin 122
12. POS Y A wv o a Y d c ayy 3 A 9g Y w vA 9 TNS Wii3 2 SPECIFICATION 1 IEEE 802 11 b g 2 2 412 2 484 GHz 3 Ad hoc Infrastructure 4 Authentication WEP64 WEP128 TKIP CCMP AES WEP WPA PSK WPA2 PSK 9 Q7 1 1 w vA s od 1 2 x 4 pin HDR254M 2X4 2 Baudrate 1200 115200 bps 3
13. Client Access Point TP server wireless AP router ape AN ME 25 E wie MO wireless POS device wireless POS device 2 Wireless POS device TCP client TCP client TCP clienti QJ 1 Y wv PSY oc Figure 6 1 Client NU Server TNS Wii3 win 17 3 Config lt gt Wireless setting SSID encryption mode key Access Point lt gt Network setting gt Enable DHCP lt gt Work mode setting gt Enable auto work mode 7 Protocol type TCP gt C S mode client gt Server address
14. 2 DHA DD WARE Per M M M 4 v 7 Q ICK START 6 NETWORK SYSTEM
15. Client sees eene nnne nnns 16 y Y vr 63 TNS Wii3 RS 485 2222222222268828988888 56555556 20 y 1 Y 64 AP Router ADHOC 0 c0 ceeceecnececnscnccaecceccscascascascascascescescescescaecscscascaecs 23 6 5 Server HAL Client i 26 HARDWARE CONNECTIONG 4 i6e90066900090906009 0000906000009 9900090009090009 009000000060 0000090000900000000 000 000000000000 000 009 00000000000 00090000000 0000000 28 WORK MODE 7 71 7 0 1 1 26 7 1 1 Start up mode selgGtlullseusssescsxesd ti a 7 1 E E E E E NR NO EE dd A 26 7 1 2 333 3 3 11 7 7 7 7 11 711 7
16. Serial Hyper terminal A o o 1 23 TCP Test Tool UDP Test Tool 2 4 Driver USB TTL S oy Y A Y A y A Y d 3 Y d Y g a 3 1 Server Client a Firewall g g SAS a y a Y Y A Web browser Access point Router a g A ag o y g 20 aA A g WNW192 168 1 1 admin Application A 9 A To v AA 1 1 ce Access point router IP
17. IP 192 168 0 100 www xyz com gt Port number 2020 A oc d Yo o 3 HTTP 80 TNS Wii3 6 2 TNS Wii3 Ser Client o A ad w 1 Y 1 oe 3 Ad A A ec A o zt A o w
18. 0 29 7 1 3 Command work mode ME CT c N 33 PARAMETER DETAILS 3333 ob Sa CK aC CE aC ed ea RU Rc EO ac GC RC SCR OCCUR UE C OR b ec dO RR ea Kb eens 34 7 2 1 7 1 7 1 1 10 34 7 4 4 Network Parameters c obe eu E xe RE bER EA iepene tnei E WR A DES RERAE RET DAM EU NO HEN S EE V NE QU MN NT P IURE REPERI RNPEDIRU GERE EN NRI TRE 37 7 2 3 Parameters of 0 0 36 7 2 4 3 3 3 3 1 11 41 7 2 5 Port PAFQMELENS PUMP Nn 0 45 7 2 6 7 711111 6 1 90 47 7 2 7 nessen Ensa 7 1 1 49 DEFAULT SETTING 7 18 7 0 5 1 CONFIGURATION THROUGH CONFIGURATION MANAGEMENT SOFTWARE 54 8 1 1 Fm NP E
19. 1 Y a d Aa a a oA Recovery Refresh Search SSID NAM Default SSID TNS Wii3 Key Fied IP Addr 9 w 1 Lo Y Y 3 10 Port Access Point Router Applications amp Single Part Forwarding Wireless Setting SSID 1 Key Index Network Setting v Unable DHCP Subnet Mask aateway Addr Oz Qa Setup TNS Whifi O4 123456783 2N5 Addr Workmode Setting v Auto Workmode rokocolType serverAddr lCPConTime CIS Mode Client v s 0 10000000 0 means forever Wireless Se curity FIAT Restrictions Applicelons amp Cami Pon Range Forwarding PortRange Tiggerng CME internal Port Pao ote amp TCP Tro IP Achlresa Enabled 182 163 1 0 Li 1823EB 1 122 1926810 152 601 192 TES 1 192168 1 0 192 68 1 0 iU D BU TNS Wii3
20. a E aE 54 8 1 2 MOdUlE MANAGEMENTL Seon 55 8 1 3 Configuring parameter i ovina be a E E E EEE EEEE E E E E E E E ETENEE E E E 6 8 1 4 Function TEN sue ee ee gt 62 6 1 5 System information Ea Ou RES RI SAX MR EC TERRE ti 71 124 e TNS Wii3 win 123 win 124 8 1 6 72 8 2 CONFIGURATION THROUGH WEB SERVER 5233233282 XAR 7 7 1 0 7 a 73 8 2 1 Query set configuration param t r RR 2 3 88 0 73 8 2 2 Firmware upgrade on 10 PERPE 8 0 0 75 8 3 CONFIGURATION THROUGH HYPER TERMINAL PROGRAM v5 1111 EO 7 5 9 1 OO 9 1 037 7 77 1117 34 1 0 9 78 9 1 1 DS VIGNE OVA
21. Low 4 USB TTL S Reset USB TTL S LED3 LED3 Search 3 8 LED3 Exit Y yY v o o Exit from transparent transmission mode succeed Configuration FuncTest UpdateFw Systeminfo Port Connect Pot COME Modify meet Export Wireless Setting SSID e MM CH Close d Encry Mode v Key Type v Key Index 9 1 Q2 Q3 O4 Network Setting No Port Device ID Wireless Connect Workmode Setting Auto Workmode rokocolType v CIS Mode v server Addr Part CPConTime s 0 10000000 0 means forever E iX TNS Wii3 vin 11 A I gJ I I Q7 38 Search HIN baud rate port
22. CTS 300 ms nCTS MODE GPIO LED2 i High YMS config Miou 1 d 9 oe Input output Auto Work mode Scan Aas 3 3 V 1 4 TNS Wii3 Y Q a yY 3 4 0 010 START A d d d 1 1 1 TNS Wii3 w dg c A 12 8 USB TTL S E d d 2 E 6 8 6 0 0 0 02 NS ae SS 6844 9 93 OVIN Biss teed 2 1 Wii3 config exe 2 2
23. 20 noos3 oB8 B B l FI a dd wrt 66 H noos Connected 0 00 19 Auto detect TCP IP Figure 8 23 instruction test TNS Wii3 9 AT INSTRUCTION CONTROL PROTOCAL User can ignore this chapter if only using auto work mode 9 1 Syntax Introduction This module uses AT Instruction protocol as user control protocol AT Instruction protocol is based on the instruction of ascii command style The description of syntax format and management process is as follow 9 1 1 Syntax Format B rona Description lt gt means the parts must be included means the optional part B Command Message AT lt CMD gt op paral para2 para3 para4 lt CR gt AT means the leader of Command message CMD means command string Lop means the symbol of Command operator when the command requires parameters it can specify the operation type of parameters it includes means the leader symbol of parameters or returns means to synchronize the modified parameter to flash in the command of parameters setting type means to query the current setting in the command of parameters setting type CR means enter it s OxOd in ASCII TNS Wii3 76 vin 79 n Response message T RSP op paral para2 para3
24. 12 vin 13 3 11 AANA Modify Configuration FuncTest UpdateFw SystemInfo Wireless Setting 1 a 1 Y Y 3 12 Modify parameter completed it will valid after reset Reset Later A 1 QG y a I Y o A A 1 A S 3 13 Reset Now Recovery 3 6 a y 3 14 Wii3 Config TNS Wii3 A Y 3 15 TCP Test Tool Hyper terminal A ot Y c gg j 3 16 Hyperterminal TCP Test Tool y y d d y A TCP Test Tool send
25. ID Using A Modify All Search 4 No Port Device ID X 1 COMB FA3EBTBFFA 39 SSID Access point Router Encrypted Mode Hex ASCII password Unable DHCP Auto working mode Admin prototype TCP C S mode Client Wireless Setting SSID TNS Wifi Encry Mode WEP64 Key Type HEX v Key Index 91 Q2 O3 Q4 al Key 123456789 Network Setting v Unable DHCP l Fied IP Addr Subnet Mask sateway Addr INS Addr Workmode Setting v Auto Workmode rokocolType TCP v Cis Mode Client v yerverAddr 192 158 1 107 Port 2020 CPConTime si 10000000 0 means Forever AA A A Y ag I Y a 1 SSID Encrypt
26. 52 Enable Enable DHCP protocol to dynamically obtain IP address IP address Subnet Mask Gateway address Wee 7 1 Create adhoc when network does not exist Auto Forbid to fix the BSSID address of wireless BSSID network Auto Detect the operating channel of wireless Channel network automatically TNS Wii3 Default connection When it s set to TCP server the default timeout is 120second Auto retry 255 Retry forever automatically Wireless roam Disable Forbid to do the wireless roam Channel list Ox3fff 1 14 channels The data format of serial 1s set to Baud rate 115200 Data bits 8 bits The character is 0x2B that is in ASCII System password 000000 Login password of system is 000000 AT Command mode Baud rate is 115200bps 8 bits of data bits 1 bit of stop bits No parity of parity bit The system command is AT Instruction set GPIO1 mode System The setting of GPIO lis system function TNS Wii3 53 8 CONFIGULATION MANAGEMENT MANUAL 8 1 Configuration through configuration management software 8 1 1 Introduction We offer a configuration hypervisor that can manage TNS Wi13 module easily for configuration query config function test etc it s main function inclu
27. 15 Figure 6 1 Client NU Server 2 22222 222 656 16 Figure 6 2 18 Figure 6 3 RS 485 2 2 22 mc 20 1 11311111111959 9 23 Figure 6 5 Multi netwotrk connection MOdE 424 etai sci eo eimi e o 0 26 Hardware 1111111 0 26 pA QUE 1 11111 0 28 Figure 7 3 3 111 29 Figure 7 4 Automatic riy MC cboaftis IE 311 0 30 Figure 7 5 Exiting from transparent mode timing diagram cccccssssccceesseseessseeeceeesesaeececeseseneeeeeeeeeessenaeeeees 32 11111 55 6 2 Instal wireless driyo 1 111
28. QJ z3gqgqSgo c Y a wv a a AT Command TNS Wii3 vin 27 Reference setting lt gt Wireless setting SSID encryption mode key and so on refer to the setting of wireless AP or router lt gt Network setting 7 IP address 192 168 0 X gt Subnet Mask 255 255 255 0 Gateway address 192 168 0 1 gt DNS address 192 168 0 1 lt gt Work mode setting Disable auto work mode TNS Wii3 vin 28 7 HARDWARE CONNECTION CPU or RS232 clap connect to reset crowt connect to Indicator ight 00 ak LIND BB o9 4nRESET UART RX Q0 xn 74 LINK UART TX Em RXD6 2nCTS MODE GPIO p VOC 33V EL Mpbs4 amp BH inRTS READY IRR cot 2 ciue 7 CP 8B a a A 0 LEES MAC 0007 S N 12070 DART Cis pem 0 Y d Figure 7 1 Hardware Connection TNS Wii3 module provides 8 pin dual in line the lateral row pins 5 8 must be connected as shown above row
29. OK time lt CR gt lt LF gt lt CR gt lt LF gt Parameter time means escape time its range is 100 10000ms its unit is millisecond the smallest step is 100ms TNS Wii3 9 2 4 20 AT WEBS Function Set or query whether to enable the internal WEB server Format AT WEBS enable port lt CR gt OK enable port lt CR gt lt LF gt lt CR gt lt LF gt Parameter enable means the symbol of enabling disabled port means server port number the default setting 1s 80 9 2 4 21 AT PASS Function Set or query the system password Format AT PASS pass CR OK pass lt CR gt lt LF gt lt CR gt lt LF gt Parameter pass means system password it s formed with 6 ASCII characters TNS Wii3 vin 115 92 4 22 AT IOM Function Set or query GPIO1 mode Format AT IOM mode lt CR gt OK mode lt CR gt lt LF gt lt CR gt lt LF gt Parameter mode means work mode 0 7 7 7 7 9 2 4 23 AT CMDM Function Set or query default command mode of the system Format AT CMDN7 mode CR OK mode lt CR gt lt LF gt lt CR gt lt LF gt Parameter mode means the type of command mode Fo 1 Compatible potocol TNS Wii3 vin 116
30. vin 23 64 AP Router ADHOC E5232 carmection device 1 device 2 poe SE uy oases amm mmt mx am No mom om m UT wireless virtual serial connection device 1 device 2 TCP server TCP client Figure 6 4 Wireless virtual serial TNS Wii3 vin 24 Reference setting lt gt Wireless setting gt Network mode adhoc and enable Create adhoc when network does not exist gt SSID my adhoc Encryption mode open gt Others is default lt gt Network setting gt IP address 192 168 0 1 gt Subnet Mask 255 255 255 0 gt Gateway address 192 168 0 1 gt DNS address 192 168 0 1 lt gt Work mode setting gt Enable auto work mode Protocol type TCP C S mode server Port number 6000 V VV WV Connection timeout 0 TNS Wii3 vin 25 lt gt Wireless setting gt Network mode adhoc gt SSID my adhoc Encryption mode open gt Others is default lt gt Network setting Enable DHCP gt IP address 192 168 0 2 gt Subnet Mask 255 255 255
31. Port E eee eared UR te TCPCenTime sO 10000NNN crie mode AT amp CmdMede GP101 Mode System Function Figure 8 4 configure parameters TNS Wii3 56 vin 59 8 1 3 1 Refresh parameter User can refresh the configuration parameter from wireless module and show in the display interface through clicking the refresh parameter s button 8 1 3 2 Submit modification User can click submit modification button after modifying configuration parameter including parameter in advanced setting in the display interface to save the parameters into wireless module New parameters will become effective until wireless module has been reset user can select to reset at once or manually reset later in pop up dialog box after modified it s shown as the following sketch map UAERT IFI Configuration Port Connect Modi fv Wireless Connect Export CH Modify ALL Search Encry Mode Key Type HEX Key Index 1 z 3 4 eS lt Saas 1 COM1 DO1FAYFT Modify parameter completed it will valid after reset Workmode Setting v Auto Workmode ServerAddr 192 1685 1 100 Fort BO010 TCPConTime pc 3 sf0 10000000 0 means forever Figure 8 5 sketch map of submitting modification TNS Wii3 8 1 3
32. para4 lt CR gt lt LF gt lt CR gt lt LF gt means the leader of response message RSP means response string OK means success ERR means fail lt CR gt means enter it s 0x0d in ASCII lt LF gt means newline it s 0x0a in ASCII B8 Data Type String is enveloped with double quotation marks but its content does not include the quotation mark such as this 1s a string Dec means number in decimal such as 10 Hex means number in hexadecimal such as a IP means IP address string such as 192 168 0 1 MAC means MAC address it s formed with 12 hexadecimal numbers such as 001 EE3A80102 TNS Wii3 vin 80 9 1 1 1 Process Flow AT Instruction protocol uses the form of command response most of instructions need a response message after the receiver has processed the instruction if the receiver receive a new command acquire in the process of processing the previous command it will throw the command away stealthily without any response message the process is shown as following figure AT instuction 1 response wm I discard instruction 3 deal vrith instruction 1 response z Figure 9 1 Process flow of AT Instruction Some special commands such as AT SKSND and AT SKRCYV need to transmit binary data behind command or response at this moment data receiver becomes into diaphanous transmission status provisionally a
33. 57 UARI FIFI Configuration Fort Connect Wireless Setting SSID apds Modify ALL Enery Mode OPEH w Eey Index 1 Ha Fort Device ID v1 CHL DOIEESCSBEZI 2 CHL1 001 EESE20067 Kev Hetwork Setting Enabled DHCF IF ddr subnet Mask 259 Gateway Addr INS Server 192 Workmode Setting v Auto Workmade FrotoacolType TCP we CS Mode Client Server Addr 192 168 1 100 Fort e0010 TCEConTime s 010000000 0 means forever Figure 8 3 sketch map of wireless connection TNS Wii3 8 1 3 Configuring parameter This section offers the function of fast query modify configuration parameter of module for user UARI WIFI Configuration Configuration FuneTest UpdateFw SvstemInfo Port Connect i MI i Set CH Wireless Setting Advanced Setting SSID apds Modify ALL Encry Mode OPEN Key T p Key Index 1 2 3 x 1 COML ODIFASFDZADI il Hetwork Setting v 4 Enabled DHCP Chawd s Ef 2 Gls 24 Ms 6 7 IP Adar o 0 0 0 ES MR EM Subnet Mask 0 T rome IN Gateway Addr UD 0 7 tame p 7 INS Server D 0 z aan cae Framing Cyebst i Horkmode Setting Framing Length v Auto Workmode Escape Tees 1 7 FrotocolType CS Mode Escape Character Oi e Others cerverAddr 182 163 1 100
34. 9 2 3 9 AT OVER Function Acquire version of system the version message includes hardware version and firmware version Format AT QVER lt CR gt OK lt hard firm gt lt CR gt lt LF gt lt CR gt lt LF gt Parameter hard means hardware version its format is string such as H1 00 00 1029 firm means firmware version its format is string such as F0 02 02 18 25 25 Jul 28 2010 9 2 4 Parameter Setting Type 9 2 4 1 AT NIP Function Set or query local IP address The dynamic IP address cannot be queried if address type is set to DHCP AT LKSTT command can be used to query Format AT NIP type ip netmask gateway dns CR OK type ip netmask gateway dns lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 99 Parameter type means address type NM Use DHCP to assign dynamic IP address assign static IP address ip means IP address data format is such as 192 168 1 22 not including quotation marks netmask means subnet mask data format 1s the same as IP address gateway means Gateway address data format 1s the same as IP address dns means DNS address data format is the same as IP address 9 2 4 2 AT ATM Function Set or query work mode of module Format AT ATM mode CR OK mode lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 win LO
35. Hyperterminal TNS Wii3 vin 14 a A 3 Ad 5 NETWORK SYSTEM mE Y gY A WiFi 2 Adhoc Infrastructure 5 1 Infrastructure AP STA Q7 A A yY d Ag d Pa R GA AP Access Point Wireless o g A 9 o o v A 9 router oa A Y d ag A STA Station Notebook PDA 1441 c Ad Y v i Infrastructure AP access point STA STA w y AP notebook comp
36. Q13 In Wireless connection state why cannot the specified module be searched for A The reasons includes The signal between the netcard and the specified module is weak System password of wireless connection setting is not consistent with the specified module MAC address in wireless connection setting 1s specified Q14 In some environment the module used why is the quality of wireless connection always bad and how to improve the wireless transmission A The reasons which cause bad quality of wireless connection are multiple such as those the placement of AP is not reasonable the distance between AP and module is too far there are some obvious screens or shelter between AP and module in the environment module works there are some disturbance of 2 4G band and so on Some environmental problems can t be resolved fundamentally it can be only reduced for adverse effects with some methods user can try to do the changes as follow 1 Lay AP in open and no obvious shelter environment as much as possible in particular to avoid large areas of metal and the corners of wall 2 Modify the setting of AP change the channel far from the current channel such as those change the channel from 1 to 6 or from 6 to 13 and so on 3 Modify the maximum rate of advanced wireless parameters reduce it to 1 1 Mbps or even lower TNS Wii3 Contents 1 7 1 Jud Tids
37. Set or query wireless BG mode and maximum send rate Set or query web service TNS Wii3 vin 84 vin 85 WJOIN Join in or create network WPRT Set or query wireless mode 9 2 2 Network Control Type 9 2 2 1 AT WJOIN Function Join Create a wireless network If the type of current network is adhoc and the module cannot search for the same ssid network then it automatically creates a new network or it has been connected then return the message of network connection Format AT WJOIN lt CR gt OK lt bssid gt lt type gt lt channel gt lt b_encry gt lt ssid gt lt rssi gt lt CR gt lt LF gt lt CR gt lt LF gt Parameter bssid means network BSSID it 1s formed with twelve hexadecimal Numbers and the format is 001EE3A34455 TNS Wii3 type means Network Type Infra network adhoc network channel means Channel Number b encry means Encryption Mode ssid means Wireless network name it s formed with 1 32 Character and embedded by double quotation marks rssi means Network Signal Strength it does not include minus its unit is DBm For example 50 means that the strength is 50 DBm 9 2 2 2 AT WLEAV Function Disconnect the current network Format AT WLEAV lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt TN
38. Socket order Input utput Box Get the socket information JS Gee Port Data Length 192 165 1 100 60010 Connect Get the socket information set socket succeed SocketHo Status Peer Addr Fort Data Length 2 Monitor 255 2755 255 255 60000 Figure 8 14 socket status querying Description 1 As shown above the querying results return from two sockets are different Because the second socket type is TCP server which is in monitor state after creating successfully its result does not only contain itself state but also includes the connection information of Clients which are connecting to the server these sockets are created by system automatically as socket3 and socket4 shown in sketch map TNS Wii3 vin 68 8 1 4 7 Socket sending User can send data through socket by clicking send button and inputing socket number the socket of TCP server can t be used to send or receive data directly what is input should be the socket number of the connection between clients and the server and data that need to send the sending accomplishment information will return in the display frame after clicking yes button Socket Send Socket Mo hellothellothellothella Hexadecimal Figure 8 15 send data through socket 8 1 4 8 Socket receiving User can receive data through socket by clicking receive button and inputing socket
39. 3 3 1 78 9 2 INSTRUCTION SET 7 77 1 77 91 63 9 2 1 Instruction List ssssssrssssssssossssssscsssssesessscisosssesidoossissos isisi TENE SA 3 1 11 63 9 2 2 Network Control TYpe rrr cb ened 65 9 2 3 DUSICNICONIPO VP lei ririn ane nEeD EEE E EE EEEO EET EEEE INE E A EEE E E EE E DUE CUN FEMME 94 9 2 4 Parameter Setting Typer 7 cn ec 96 9 2 5 Operation flow of WiFi module in command mode ooooooooooooooeoeeeecceccece 117 APPENDIX A FREQUENT ASK e P Q1 WHY THE MODULE CANNOT SEARCH FOR THE SPECIFIED NETWORK A THE CHANNEL LIST USER SET DOESN T CONTAIN THE CHANNEL WHICH THE SPECIFIED NETWORK WORK IN O OQ e P m 9 KE Q2 WHY CANNOT THE MODULE JOIN IN THE NETWORE uas 1 1 1 1 111 1 0 020 116 Q3 WHY DOES THE MODULE NEED ABOUT 10 SECONDS TO RESPONSE THE COMMAND OR CONNECT TO NETWORK AUTOMATICALLY WHEN ENCRYPTION MODE IS SET TO
40. 3 Restore to factory setting User clicks button to restore the configuration parameters of the wireless module into factory status After restoring the factory setting becomes effect until the module has been reset UARI WIFI Configuration Configuration Fort Connect fireless Connect Import cet CH Close ow i Wireless Setting SSID apds Modify ALL Encry Mode OFEH Ha Fort Device v 1 COMI O01 FASFO Gateway Addr INS Server Workmode Setting Auto Workmode FrotocolType TCP CS Mode ServerAddr 192 1858 1 100 Port ERES DS s 0 10000000 0 means forever Figure 8 6 sketch map of restoring to factory setting 1 TNS Wii3 60 8 1 3 4 Import export parameters User can save all configuration parameters in display interface to the specified configuration file through clicking the export parameters button and apply all parameter which are saved in configuration file through clicking import parameter button What should be noted is that using import parameter function only imports parameters to the display interface the imported parameters can be wrote in wireless module actually until clicking the submit modification UARI WIFI Configuration Configuration FuneTest UpdateFw SystemInfo Fort Connect Modi fy Recovery Export Advance
41. 7 1 1 section or the work mode 1s set to command mode please jump to step 5 directly otherwise it needs to make the module exiting the transparent transmission mode according to following approach at first refer to section 7 1 2 4 5 Open a notepad to edit escape character string the default escape character 1s and save Wait for the time specified by the parameter of escape time its default setting is 2 second select send text file in the transmit menu send escape character string file the module return OK information if success Input AT E instruction to open input return display before it the character that user input cannot TNS Wii3 win 77 be display in the super terminal interface 6 Thus user can use super terminal program to test the most of AT instruction set for example the command of network scan can be insteaded of inputtig AT WSCAN it s shown as the following sketch map SwisTrack TCP Connection Hyper Terminal File Edit view Call Transfer Help AT WSCAN K B Bb88c55d5e8 021f33c3dc91 0 3 001f33c3dc93 0 3 21f33c3dc98 c 9 1 1 B tendao9 wad 002481 b1558 002586325686 0024801389123 8 testbig 46 ag1fc 6ceSde8 8 3 noos 22 00801613dTe88 1 13 8 ua83 wlan89 66 AT QVER 0K H1 66 01 1029 F1 00 60 14 38 35 Sep 6 28180 AT WJOIN K BBlfc ceSde8 8 13 8
42. 8 1 1 SPECIFICATION
43. 9 2 5 Operation flow of WiFi module in command mode Usually the operation flow of WiFi module in command mode is shown as the following figure While module is in use user can decide whether to do the operation of the command line according with the state of system Whether the parameters needs to he modified Set the parameters of the module Initiate networking Chery whether ti networking is successful J Create user socket Start data transmission Figure 9 3 the operation of Wifi module TNS Wii3 117 118 Appendix A Frequent Ask Questions Q1 Why the module cannot search for the specified network A The channel list user set doesn t contain the channel which the specified network working Q2 Why cannot the module join in the network A Please go through the following reasons Whether the parameters SSID Key Channel and so on are consistent with the AP sets or not Whether the module is specified BSSID and the BSSID 1s not consistent with the AP sets Q3 Why does the module need about 10 seconds to response the command or connect to network automatically when encryption mode is set to WPA WPA2 A When encryption mode is set to WPA WPA2 as the key format is ASCII the module must first do the conversion to the key of ASCII format when it s power on this process increases about 10 second
44. It will return a socket number after creating successfully Socket Setting Protocol Type CIS Mode Server Gdde 0 0 0 0 Overtime s 0 10000000 0 means Forever Cancel Figure 8 12 interface of creating socket TNS Wii3 8 1 4 5 HAKI WIFI Configuration Port Connect Wireless Connect CH ih M di fv ALL Na Fort Device ID x 1 COMI OOF ASFOU F ADD Figure 8 13 interface of the result of creating socket close socket Configuration FuncTest UpdateFw SystemIn o tireless Hetwork Ordered Jo fx Socket order Input utput Box Create a socket Create succeed The socket number is 1 User can delete the socket connection through clicking close button and inputing the socket number which is expected to close TNS Wii3 67 8 1 4 6 query socket status User can query socket status through clicking query button and inputing the socket number which is wanted the state of socket will return in the display frame after clicking yes button UA amp RI WIFI Configuration Port Connect tireless Connect Device ID Ho Fort v 1 COMI TCP server socke t used co detert 2 Configuration FuneTest UpdateFw SvstemInfo Wireless Hetwork Ordered
45. MRTS CTS Flow Control 4 3 3 T 1 TCP UDP ARP ICMP DHCP DNS HTTP 2 2 A 1 Yq y 3 Server Transparent 4 3 4 1 Serial port Wii3 Config exe 4 2 Serial port AT command L yY gY A A w 1 A Q7 9 43 Web Browser TNS Wii3 TNS Wii3 Wirel
46. for users use Users can discretionarily control the connection and disconnection of the wireless network by order also can create several different types of TCP IP connection at the same time and keep them transmitting To use this mode please refer to Chapter 9 AT Instruction control protocol TNS Wii3 33 34 7 2 Parameter Details 7 2 1 Wireless parameters 7 2 1 1 SSID SSID SSID AT SSID network identity of Wifi network the length is 1 to 32 ASCII characters VAL AP PS Encryption mode Encryption mode AT ENCRY encryption types of Wifi network options include lt gt OPEN lt gt WEP64 lt gt WEP 128 lt gt WPA PSK TKIP lt gt WPA PSK CCMP lt gt WPA2 PSK TKIP lt gt WPA2 PSK TKIP lt gt WAPI not supported TNS Wii3 35 7 sd 5 Key Format Key format of WiFi network options include lt gt HEX format lt gt ASCII format For WEP encryption the difference between HEX and ASCII formats is the display format of key such as WEP64 encryption its key can be 5 ASCII characters such as 12345 or 10 hexadecimal numbers such as 3132333435 For WPA WPA2 PSK encryption HEX and ASCII formats indicate different meanings HEX format PMK ASCII format PSK 7 2 I 4 Key Index key index nu
47. number the socket of TCP server can t be used to send or receive data directly what 1s input should be the socket number of the connection between clients and the server and data size that expected to receive in pop up dialog box the data will show in the receive frame after clicking receive button shown as figure8 18 Before receiving data please use query command to confirm whether the socket receiver buffer has saved data in it at first TNS Wii3 69 vin 70 X WARI WIFI Configuration BEES Configuration FuncTest UpdateFw SystemInfo Fort Connect Sat Wireless Hetwork Ordered tireless Connect CH zat Socket order Input Output Box Ho Port Device ID x 1 COM DOTIFASFDZADI t the socket information t socket succeed cketHo Status Peer Addr Fort Data Lengt 1 Connect 192 165 1 100 60010 el Figure 8 16 query the receiver buffer Socket Receive hella hella 12346789 Data Bytes Hexadecimal Figure 8 17 socket receiving TNS Wii3 win 71 8 1 5 System information User can query MAC address hardware version information and firmware version information of the module in this section the following sketch map 1s the show UARI WIFI Configuration Configuration FuneTest UpdateFw
48. or division of majuscule and lowercase for example 11223344dd Note2 ASCII character means the numbers 0 9 and characters a z and A Z in ASCII character set which 1s specified by ISO for example 14u6E TNS Wii3 9 2 4 7 AT BSSID Function Set or query bssid address of the target AP The configuration is only effective in infrastructure network Format AT BSSID mode bssid lt CR gt OK mode bssid lt CR gt lt LF gt lt CR gt lt LF gt Parameter mode means BSSID Mode bssid means Network BSSID its size is twelve hexadecimal numbers format is such as 001 EE3A34455 9 2 4 8 AT CHL Function Set or query the specified wireless channel Format AT CHL mode channel lt CR gt OK mode channel lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 105 vin 106 Parameter mode means channel mode 00 channel means wireless channel number effective range is 1 7 14 9 2 4 9 AT CHLL Function Set or query wireless channel list Wireless channel list is used to prescribe work channel range of module The channel not included in the channel list will not be scanned reasonably using this parameter can expedite the speed of scanning and networking of module Format AT CHLL channel listl CR OK cha
49. pins 1 4 are optional feature pins connection as shown above If they are not used you can leave the corresponding pins vacant 7 1 Work mode 7 1 1 Start up mode selection Multi functional pins nCTS MODE GPIO pin 2 is used to select start up mode at the power on and reset phase timing is shown below lt gt Normal startup mode DRESET a a oe mm 0 bf E 4 300ms Figure 7 2 Normal startup mode TNS Wii3 vin 29 nCTS MODE GPIO pin has an internal pull down when it s disconnected module will enter normal startup mode automatically In the normal startup mode the system runs according to the default work mode auto or command in the parameters MA launching configuration mode l l nRESET I I I nCIS MODE GPIO gt MMms Figure 7 3 launching configuration mode In launching configuration mode the system ignores the default work mode parameters and force to operate in the AT Instruction mode this mode is commonly used to modify the parameters with the configuration management program and do the function tests 7 1 2 Auto work mode The module supports auto work mode and it really achieves a serial plug and play it reduces user complexity furthest In this mode user shoul
50. which actually is send its unit is type data steam means original data TNS Wii3 vin 91 9 2 2 7 AT SKRCV Function Read data form RX buffer of the target socket and return after finished After receiving this command and sending the response OK is over module will transmit the data of specified size in binary format Format AT SKRCV lt socket gt lt maxsize gt lt CR gt OK lt size gt lt CR gt lt LF gt lt CR gt lt LF gt data stream Parameter socket means socket number maxsize means maximal data size allows to receive size means actually size of the receiving data data steam means original data TNS Wii3 vin 92 9 2 2 8 AT SKSTT Function Acquire the state of the specified socket the first line of return value means the state of the message of the socket if the socket mode is TCP server then beginning from the first line each line shows a socket state of a client which is joined in the server Format AT SKSTT lt socket gt lt CR gt OK lt socket gt lt status gt host port rx_data lt CR gt lt LF gt socket status host port rx_data lt CR gt lt LF gt lt CR gt lt LF gt Parameter socket means socket number status means socket state Ee 0 host means IP address of the opposite terminal port means port number of the op
51. with AT KEY command except OPEN mode Format AT ENCRY 7 encry mode CR OK encry mode lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 103 Parameter encry mode means encryption mode os weemueweus 7 7 9 2 4 6 AT KEY Function Set or query network key What should be noted is that before using this command to set network key user must set the encryption mode with the command AT ENCRY Format AT KEY format index key CR OK format index key lt CR gt lt LF gt lt CR gt lt LF gt Parameter format means key format TNS Wii3 vin 104 index means key index 1 4 is used in wep key in other encryption modes it s set 0 key means key string it s embedded in double quotation marks according to different encryption modes key size and key format is defined as follows NN mses WEP64 Note 1 characters 26 hexadecimal WEP128 characters 64 hexadecimal WPA PSK TKIP characters 64 hexadecimal WPA PSK CCMP AES characters 64 hexadecimal WPA2 PSK TKIP characters WPA2 64 hexadecimal PSK CCMP AES characters Note 2 5 ASCII characters 13 ASCII characters 8 63 ASCII characters 8 63 ASCII characters 8 63 ASCII characters 8 63 ASCII characters Notel hexadecimal characters means 0 9 and a f
52. 0 gt Gateway address 192 168 0 1 gt DNS address 192 168 0 1 setting of work mode gt Enable auto work mode 7 Protocol type TCP gt C S mode client gt Port number I 6000 gt Server address 192 168 0 1 TNS Wii3 vin 26 6 5 Server way Client Multi network connection Y S rt o 9 H Yu Yo 1 1 5 Client AT Command A S A Auto work mode Socket 4 Server 2 Client 2 control based on AT instuction control terminal of user devices based on serial SOCKET 4 i TCP Client SOCKET I AURET 2 SOCKRET 3 TCP Server TCP Client TCP Server X m i it Hj riis HEB uum ER uim HE vari nD ELE LIE PITT 2 8 iem iwm device device 2 device 3 device 4 TCP client TCP client TCP client TCP client Figure 6 5 Multi network connection mode
53. 01 2701 TCP 1921581 0 A oJ a a A A A A 3 2 3 3 TNS Wi1i3 300 ol 8 ya gv a e A A P cd y LM2575 33 USB TTL S 3 3 V Figure 4 1 USB TTL S Client TNS Wii3 33 USB TTL S Rx Tx GND USB TTL S RS232 3 3 V TTL le
54. 1111111 1 56 Figure 5 5 sketch map of wireless 2 3 2333 3 2 aU VERD RUE 57 Figure 8 4 eie ee tati mite bu 3 3290 56 4 11 59 Figure 8 6 sketch map of restoring to factory setting 0090 60 Figure 7 Sketch map of Importing parameters oer uncta ce SU UsMEE 61 Figure ci 62 cp 2 2 3 223 eaten 5 63 n 1 64 1 1111 1111 65 2 2 2 3 3313 131113 3 1 1 11 1 1 1111 1 1 66 Figure 8 13 interface of the result of creating socket 0000
55. 2 4 16 AT A TPT Function Set or query the auto framing period of data data is automatically set frame period This parameter is only effective when serial is in transparent transmission mode Format AT ATPT period lt CR gt OK period lt CR gt lt LF gt lt CR gt lt LF gt Parameter period means auto framing period its range is 100 10000ms and its units is millisecond the smallest step is 100ms 9 2 4 17 AT ATLT Function Set or query the data auto framing length of data This parameter is only effective when serial is in transparent transmission mode Format AT ATLT length CR OK length lt CR gt lt LF gt lt CR gt lt LF gt Parameter length means auto framing length its range is 64 1024 bytes TNS Wii3 113 uin 114 9 2 4 16 AT ESPC Function Set or query escape characters This parameter is used for serial to exit the transparent transmission mode Format AT ESPC escape lt CR gt OK escape lt CR gt lt LF gt lt CR gt lt LF gt Parameter escape means escape characters its format is two ASCII characters expressed in hexadecimal such as ASCII character should be expressed as 2B 9 2 4 19 AT ESPT Function Set or query escape time This parameter is used for serial to exit the transparent transmission mode Format AT ESPT time lt CR gt
56. BSS MSE Ja Pori Set Wireless Hetwork Ordered Wireless Connect gs lua Socket order Input Output Box Wo Fort Device ID v 1 COMI ATTUver OE HO 00 00 0000 F1 01 008 09 19 06 Sep 19 2010 Figure 8 8 function test page TNS Wii3 vin 63 8 1 4 1 Network scanning User can click scan button to scan network as the following sketch map Scan result will show in the following display frame such as network type encryption network MAC channel signal strength etc UART IFI Configuration E m Configuration FuncTest UpdateFw ovstemInfo Fort Connect p Wireless Network Ordered Wireless Connect PP Socket order Input Output Box Pi WH 0 v l COM1 Scanning scan complete HetMode Encry ESSID Channel Signal SSID Infra Yes DPz1z2T5E352B4 54 1 tp zhang Infra Ho OO023SCD540CEA T4 112 Infra Yes OOZS8EBTCFOCA4 TE 8 Infra Ho OOBOOCSSDSES 50 1 Adhoc Ho OBSTEOLTSBES 5z i 1 Figure 8 9 network scanning TNS Wii3 vin 64 8 1 4 2 Join Disconnect network User can click the button to join or disconnect the wireless network as the following sketch map the result will show in the following d
57. Fort Connect Fort set MAC Address D 1F MA FD EA DD 000 Wireless Connect e Hardware Version p 00 00 0000 Firmware Version HET Modify All Release Time 09 19 08 Sep 1920100 Ho Fort Device ID x 1 COMI OO1FASFOUS ADL Figure 8 18 system information TNS Wii3 vin 72 8 1 6 Firmware upgrade This function will be activated when the module has connected to the wireless network User can acquire the function of module firmware upgrade in this section as the following sketch map shows what should be noted is that please read the notice carefully before upgrading otherwise failure will make the module destroyed UA amp RI WIFI Configuration Conti guration FuncTest UpdateFw SvstemInfo Hotes 1 The module connector must use phisical 2 The baud rate of the module serial port must be set Wireless Connect at 115200bps 8 data bits 1 start bit 1 stop bit no parity no flow control Fort Connect 3 Hever disconnect the serial cable or stop during the updating process it may break the module 4 Once the update complete please powered off and re up electricity and check the version Ho Port Device ID COMI OOLFASFOZADD Please selet the update file E program test TLGLOWAGS Wwersion firmvare v Update Mode Figure 8 19 firmware up
58. IFY THE PARAMETERS WITH CONFIGURATION PROGRAM WHY DOES IT SHOW THE ERROR USED PROHIBITIVE OPERATING SYMBOL ooooooooooooeeeeeee 120 Q11 WHY CANNOT WEB PAGES OE THE WEB SERVER OPEN asxzauas 3 1 7 7 17 121 Q12 WHEN USER SETS THE SERIAL TO THE BAUD RATE IT DOES NOT SUPPORT THE MODULE CAN T BE CONNECTED TO THEN HOW TO CORRECT IT 7 666 121 Q13 IN WIRELESS CONNECTION STATE WHY CANNOT THE SPECIFIED MODULE BE SEARCHED FOR eceeeeeeeeseseesssosesessososessssososessssososesoosocecoooose 122 Q14 IN SOME ENVIRONMENT THE MODULE USED WHY IS THE QUALITY OF WIRELESS CONNECTION ALWAYS BAD AND HOW TO IMPROVE THE WIRELESS TRANSMISSION a TNS Wii3 IMP 77 7 J Figure 4 2 TNS Wii3 USB TTL S JANDA assisen 8 Figure 4 3 an onan esac 7 0 11111560 9 Figure5 1 3 Infrastructure 0 14 Figure 5 2 53 4 4 4 0 1 3 33
59. O Parameter mode means work mode im AEN 9 2 4 3 AT ATRM Function Set or query the message of the connection the module creates automatically in auto work mode Format AT ATRM 7 protocol cs host timeout port CR TOK protocol cs host port lt CR gt lt LF gt lt CR gt lt LF gt Parameter protocol means protocol type TNS Wii3 vin 101 cs means C S mode Server host timeout means that shown as follow destination server name you can input domain name or IP address for example 192 168 1 100 or WWW sina com cn TCP connection timeout period the clients that connect with the server send noting in this effective period will be kicked out effective value range is 1 10000000 its Unit is second 0 means never default setting is 120 seconds port means port number TNS Wii3 vin 102 9 2 4 4 AT SSID Function Set or query wireless network name namely ssid Format AT SSID ssid lt CR gt OK ssid lt CR gt lt LF gt lt CR gt lt LF gt Parameter ssid means wireless network name it s formed with 1 32 characters and embedded in double quotation marks 9 2 4 5 AT ENCRY Function Set or query wireless network encryption mode What should be noted is that every encryption modes need to set correct key to cooperate
60. P server and opening it Q6 In auto work mode why does the module not connect to the network automatically after resetting A The module forces to go into the configuration mode according the state of MODE pin after start up The specific is referred in Section 7 1 1 TNS Wii3 vin 120 Q7 In auto work mode data sent to the module through serial will delay sometime to send to the network why A In auto work mode framing and sending data has two trigger qualification trigger time and trigger length if the length of data doesn t reach the trigger length and it will wait to be framed and sent coercively after trigger time the specific 1s referred in Section 7 1 2 2 Q8 In auto work mode why does the module not exit the transmission state after send the escape character A To exit transparent transmission has strict limits the specific is referred in Section 7 1 2 4 Q9 Why cannot the configuration program search for the target module A The serial setting of configuration program is not consistent with the serial setting of the module The module is in auto work mode please reset it be sure LEDI and LED2 is illumed and then retry the search Q10 To modify the parameters with configuration program why does it show the error used prohibitive operating symbol A Please disconnect the network connection first and then refer the modified parameters
61. S Wii3 86 vin 87 Parameter None 9 2 2 3 AT WSCAN Function Scan and return after finishing Format AT WSCAN lt CR gt OK lt bssid gt lt type gt lt channel gt lt b_encry gt lt ssid gt lt rssi gt lt CR gt lt LF gt lt bssid gt lt type gt lt channel gt lt b_encry gt lt ssid gt lt rssi gt lt CR gt lt LF gt lt CR gt lt LF gt Parameter Same as AT WJOIN 9 2 2 4 AT LKSTT Function Query the network connection status Format AT LKSTT lt CR gt OK status ip netmask gateway dns lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 88 Parameter Status means Connection Status NUM Cet ip means IP address its format is 192 168 1 22 1t does not include quotation marks netmask means Subnet Mask its format 1s same as IP address gateway means Gateway address its format 1s same as IP address dns means DNS address its format is same as IP address 9 2 2 5 AT SKCT Function Create a socket connection In client mode module wait for connection is over success or failure to return and in server mode it return after creating a network Format AT SKCT protocol cs host timeout port CR OK lt socket gt lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 89 Parameter protocol Protocol Typ
62. TRONICS SERVE CO LTD User Manual TNS Wii3 UART WiFi MODULE TA yY TNS Wii3 TNS Wii3 UART Wifi Module MAC F43E61 TA TNS Wii3 UART WiFi module NL 1 9 9 9 T TNS Wi113 Transparent A o y AS QJ Y A A 1 v A 43 I a mode micro controller Server 9 A 1 w 1 gY A dg dg A oe Y A A g a y UART micro cont
63. Un v2 J Set or query bssid address of target AP Set or query target wireless channel number Set or query wireless channel list OQ C Q J 2 lt Set or query default command mode of system Switch serial character to show back Set or query security mode of wireless network Set module into transparent transmission mode es Un J C Set or query escape character Set or query escape time IOC GPIO Control Set or query GPIO mode TNS Wii3 ms B 4 lt ro gt Un Un PMTFE gt Q lt s Jan eri SKCT Un Un Un Un Un 7 E Elg an i BIEIE 7 un un i UART WARC s z gt z es G les ve un Set or query key of wireless network Query network connection state Set or query local IP address Set or query system password Update parameters in memory to Flash Query physical address query version Return to manufacturer setting Close socket connection Create socket connection Receive data through socket connection Set default sending socket connection send data through socket connection query socket connection state set or query SSID Set or Query serial data format Set or query automatic retry times in auto work mode Set or query wireless roam Set or query whether to create Adhoc network automatically
64. Wireless Connect CH Wireless Setting Soll apds Encry Made OFEN Ww Key Index No Fort Device ID Kev v 1 COM OO1FASFDZADD 22 Hetwork Setting Enabled DHCF IP Addr subnet Mask Gateway Addr INS Server Workmode Setting v Auto Workmade cerverAddr 132 1858 1 100 Fort But 1l SHIP ET entum pem s M 10000000 0 means forever Figure 8 7 sketch map of Importing parameters 8 1 3 5 Group modification Group modification will be activated when configuration hypervisor has searched for more than one wireless module If user selects the function the modified parameters will be applied to all of the wireless modules automatically through clicking modify all This function can predigest operation steps and enhance work efficiency when a lot of modules need to be restored to the default configuration TNS Wii3 61 vin 62 8 1 4 Function test This section offers the function of fast testing AT instruction for user the user can jump over this section when using auto work mode Additionally this function cannot work while the module is configured through wireless connection User can send command through shortcut button of usual instruction or inputting AT instruction directly it is shown as the following sketch map UA amp RI WIFI Configuration Configuration Funclest UpdateFw SystemInfo Port Connect
65. assword System password Login Password AT PASS The login password for accessing the module through WEB server or wireless configuration The default setting of system is 000000 TNS Wii3 vin 49 wi 50 VP APA WEB server Used to specify whether to enable the WEB server or not and the server port The default setting of system is enabled the default port is 80 7 2 7 3 Command Mode Command Mode Command Mode AT CMDM Used to specify the control protocol of the module in command mode options include M AT Instruction Compatible Protocol The default setting of system is AT Instruction mode ordinarily user doesn t need to modify this parameter The command mode of compatible protocol 1s used to be compatible with the control protocol of TLG09UA01 02 products If user wants to use this mode please call for the Technical Support for more help TNS Wii3 vin 51 Tai E A GPIOI mode GPIO1 mode GPIO Mode AT IOM Used to specify the work mode of GPIO1 options include System function Input Output The default setting of system is system function 7 3 Default setting SSID The ssid of wireless network is default The encryption mode of wireless network is m TNS Wii3
66. clude lt gt Client M Server TNS Wii3 vin 40 7 2 3 4 Server Address Server Address Server Address AT ATRM In the auto work mode when CS mode of the default connection module creates is Client it s used to specify the server module connects to its input format may be IP address or domain name 7 2 9 9 TCP connection timeout TCP Link TimeOut AT ATRM In the auto work mode when C S mode 1s set to be TCP server it s used to specify the maximum connection time of the client which joined the server in case of no data transfer if there is no data transfer longer than this time the client will be kicked out automatically 7 2 3 6 Port number Used to specify the port number of the default connection module creates in the auto work mode TNS Wii3 vin 41 7 2 4 Advanced wireless parameters 7 2 4 1 Network mode Network Mode AT WPRT Used to specify the network mode of the Wifi network options include lt gt Infrastructure lt gt Ad hoc The default setting is Infrastructure In most cases if what we want to join to is wireless network AP creates using the default setting is just contented Only when user needs to join Adhoc the parameter may be modified to Adhoc 7 2 4 2 Creating adhoc when network does not exist Create adhoc When network Create adh
67. d only configure the necessary parameters After power is on each time module can automatically connect to the default wireless network and server As in the automatic mode the module s serial 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 equipment can be easy for wireless data transmission without any changes TNS Wii3 7 1 2 1 Automatic retry mechanism In auto work mode the connection of the system runs completely and automatically and its working process is shown below F Enter auto work mode ether to exceed retry times loin create wireless network Ether the deTe socket has been created Accident socket connection disconnected unnaturally Create the detault connectiat Accident Wireless network connection disconnected unnaturally Wait and circulate Figure 7 4 Automatic retry mechanism TNS Wii3 30 vin 31 Note 1 the default Automatic retry time of the system is set to forever this means system will retry to connect when the networking is failed or network is disconnected Users can also set a limited number of
68. des lt gt module management i management through serial E management through wireless connection lt parameter configuration modify query module parameters E import export parameters Hu modify parameters for a group of modules BE 6 to default setting lt gt function test BE wireless network command test BE socket command test Bb AT instruction test lt gt firmware upgrade lt gt system information query TNS Wii3 54 55 8 1 2 Module management 6 1 2 I Management through serial connection 1 Connect the TNS Wii3 module to the serial adapter then turn it power on 2 Open the UART WIFI configuration hypervisor select the port number of connection from port list you can select auto unless you make sure 3 Click search module if the connection port is selected to auto and the computer has more than one serial it maybe expend a long time for searching The following sketch map will show after search completed UARI WIFI Configuration Configuration Port Connect Refresh Recovery Wireless Connect Import Advance Wireless Setting Encry Mode OPEN wt Key Type Key Index 1 5 3 Ho Fort Device ID Key 21 COM ODIFA4FDPADD id Hetwork Setting Enabled DHCP IP Addr subnet Mask Gateway Addr INS Server Workmaode Se
69. e cs C S mode aE 221 9 9 the meanings of host_timeout is shown as follows according to protocol and C S mode Name of target server it can be filled with domain name or ip address For example 192 168 1 100 or www sina com cn TCP connection timeout period it means client will be automatically kicked out from server if it send nothing in effective period Effective value range is 1 10000000 Unit second 0 means never default setting is 120 seconds port means Port number socket means socket number TNS Wii3 vin 90 9 2 2 6 AT SKSND Function Send data through the specified socket and return when it is over This command send binary data User should send original data after receiving the response OK of module Module automatically exits transmission after receiving the data of specified length and send data to the network the redundant date will be rejected Otherwise module will be forced to constrainedly exit transmission mode and send the data has been received to the network when the module has waiting for timeout period 1 second Format AT SKSND lt socket gt lt size gt lt CR gt OK lt actual size gt lt CR gt lt LF gt lt CR gt lt LF gt data steam Parameter socket means socket number size means the size of the data which prepare to be send its unit 1s type Actual size means the size of the data
70. e if user wants to do the transmission 1 command through the serial firstly needs to exit the transparent transmission status Meanwhile the module also exit auto work mode The conditions of Module exiting transparent transmission status is shown as following figure ESPC x 3 mimi RN LELEd U d lt t gt Tose gt Tap t Tatpt Figure 7 5 Exiting from transparent mode timing diagram TNS Wii3 Thereinto ESPC escape character Default Ox2B T Escape time Default 2000mS espt Ready to check escape characters if no data longer than 2 Sec T Auto framing period Default 500mS atpt t time between each 3 escape characters choose 90mS must less than Auto framing period 500 mS After having detected the exiting condition as shown above the module puts out OK and confirms the serial exiting transparent transmission and switching to the AT Instruction state 7 1 3 Command work mode The module also provides a command mode based on serial control to use for different applications of users specific requirements In this mode the module works according to user commands issued through the serial user can completely control the module with command including parameters configuration networking control TCP IP connection control and data transmission This is an advanced usage and also the most flexible
71. er Timeout AT ATPT When serial is in transparent transmission mode adnd the data received is less than the length of framing if the waiting time is greater than this parameter specified module will force to frame a network frame by trigger the sending process The timeout period of auto framing has an optional range of 100 10000ms the minimum accuracy is 100ms Note this setting must be less than the escape time The default setting of system is 500mS 0 5 Sec 7 2 6 3 Escape Character Escape Character Escape Character AT ESPC This parameter is specified the escape character used to exit the transparent transmission mode for serial such as when system is in the state of detecting escape character and the data receives is three and only three consecutive escape characters it will exit the transparent transmission mode The default setting of system is Ox2B that is characters in ASCII TNS Wii3 vin 48 7 2 6 4 Escape time Escape Trigger Period AT ESPT When in transparent transmission mode if no data received time is greater than this parameter specifies it will automatically detect the escape characters Optional range is 100 10000ms the minimum accuracy is 100ms Note the setting must be greater than auto framing period The default setting of system is 2 000mS 2 Sec 7 2 7 System parameters ade dals System p
72. ess standard IEEE 802 11 b g Frequency range 2 412 2 484 GHz 802 11b 86 dBm typical Receiver Sensitivity 802 11g 71 dBm typical Wireless 802 11b 18 2 dBm typical Output power 802 11g 15x 1 dBm typical Serial type UART Serial baud rate 1200 115200 bps Operating Voltage 3 3 0 3 V Operating Current 300 mA typical Hardware Storage Temperature 40 to 85 LIC Operating Temperature 0to 75 LIC Network type Infra Adhoc WEP WPA PSK WPA2 PSK Security WEP64 WEP128 TKIP CCMP AES AT for Configuration setting Network protocol TCP UDP ARP ICMP DHCP DNS HTTP Software Maximum sockets 15 connection Client 8 Maximum TCP connection Server 3 4 Maximum UDP connection 5 6 TNS Wii3 o o 3 HARDWARE 3 1 rz 25 4 2 5 SSS WLAN BB MAC D antenna eo Q7 RTS LED1 nRTS nREADY LEDI AU Ready
73. grade TNS Wii3 vin 73 8 2 Configuration through WEB server WEB server has been embedded in this product it can support the function of parameters configuration with IE browser the method 1s as follow Notices 1 Make sure the module has connected to the network successfully before using web page configuration 2 The default port number of the WEB server is 80 so it only needs to input address in address column of browser if user has modified the web server port user must input port number otherwise the net cannot be opened for example when the port number is set to 8080 the access address of the web server is http 192 168 1 20 8080 5 3 Please use Windows IE browser to access the server as well as you can 8 2 1 Query set configuration parameter 1 Open IE browser connect after inputting IP address and the port number sometimes of wireless module in address column the login interface will appear input user name admin and login password of module default password is 000000 2 The configuration web page is shown as the following sketch map if user want to modify configuration parameters of wireless module you need to click save button to submit the modification TNS Wii3 vin 74 Basic Basic Advanced System ool hos 7 Encryption Disable Ke
74. isplay frame UAET IFI Configuration Configuration FuncTest UpdateFw SvstemInfo Port Connect l i pe Wireless Network Ordered Wireless Connect CH Set Socket order Input Output Box x 1 CDM DOTFASFDZADI Lonnect create network Connect create network complete HetMode Encry BSSID Channel SSID Infra Ho Dz3CD54DCEA 1 apds Disconnect network Disconnect network complete Figure 8 10 join disconnect network TNS Wii3 vin 65 8 1 4 3 Query network status User can click the state button to query network connection status as following sketch map the result will show in the following display frame UARI WIFI Configuration Configuration FuneTest UpdateFw SystemInfa Port Connect Port Sat Wireless Hetwork Ordered Wireless Connect cH Gat Socket order Modify All Input utput Box Ko Port Device ID x 1 COMI Query the connect property Query result is Already connected IP Addr 192 188 1 101 Subnethask 255 255 255 0 Gateway 192 168 1 1 InsSerwer 182 1B58 1 1 Figure 8 11 query network status TNS Wii3 uin 66 6 1 4 4 Create socket User can click create button to create socket as the following sketch map Click the Yes button after configured each parameter
75. le will dynamically obtain the network address of the client according to the DHCP protocol 2 IP address IP address Fixed IP Address AT NIP Used to specify static IP address of the local network address of the client it s only effective in the case of disable DHCP 7 2 2 3 Subnet Mask Subnet Mask Subnet Mask AT NIP Used to specify the subnet mask of the local network address it s only effective in the case of exiting DHCP TNS Wii3 38 7 2 2 4 Gateway address Gateway address Gateway Address AT NIP Used to specify the gateway address of the local network address it s only effective in the case of exiting DHCP 7 2 2 5 DNS Server DNS Server DNS Address AT NIP Used to specify the DNS server address of the local network address t s only effective in the case of exiting DHCP 7 2 3 Parameters of work mode 7 2 3 1 Auto work mode Auto Mode Enable ATHATM Used to specify whether auto work mode of the module 1s enabled or not TNS Wii3 uin 39 62 Protocol Type Used to specify the protocol type of the default connection module creates in the auto work mode options include lt gt TCP lt gt UDP 7 2 3 3 CS mode Used to specify the CS mode of the default connection module creates in the auto work mode options in
76. mber of WiFi network this parameter is only effective in WEP encryption mode optional range is 1 to 4 it s no sense in other encryption mode TNS Wii3 36 7 2 1 5 Key Encryption Key AT KEY Key string of Wifi network the keys of different encryption modes and key formats have different length provisions lt gt WEP64 HEX 10 characters lt gt WEP64 ASCII 5 characters lt gt WEP128 HEX 26 characters lt gt WEP128 asc 13 characters lt gt WPA WPA2 PSK HEX 64 characters lt gt WPA WPA2 PSK ASCII 8 63 characters In WPA WPA2 PSK TKIP CCMP encryption mode as the key format is ASCII the module must first do the conversion to the key of ASCII format when it s power on this process increases about 10 seconds to the starting time And When using WPA WPA2 encryption directly using PMK of hexadecimal format can eliminate this delay However some APs does not provide PMK which can be directly input of hexadecimal format in WPA WPA2 mode in this case you can use zi WPA Key Converter exe the WPA key conversion tool to convert PSK to PMK and set to the module TNS Wii3 vin 37 7 2 2 Network Parameters a B DHCP DHCP DHCP Enable AT NIP Used to indicate the network address type of the client if this parameter is enabled the modu
77. mware File E Firmware_1 00 00 img and click the upgrade button then you can upgrade Upgrade your firmware Figure 8 21 online upgrade of firmware 8 3 Configuration through hyper terminal program For the user who hopes to test the function of AT instruction Windows Hyper Terminal which is embedded in Windows operation system can be used to input AT instruction directly for parameter configuration of wireless module and function test What should be descripted is that the serial debugging softwares seral genius serial master etc that referred in preamble all can be used for AT instruction test this section just takes hyper terminal program as an example 1 Open hyper terminal program Windowsstart program accessories communication super terminal program input connection name and icon select serial number and parameters the same as the wireless module what should be descripted is that the option of flow control must be set to none in command mode the setting is shown as following sketch map TNS Wii3 2 3 4 5 vin 76 alr New Connection HyperTerminal File Edit View Data bits 8 Parity None Stop bits 1 Flow control iy sn Restore Defaults T Disconnected Auto detect Figure 8 22 the configuration of super terminal If the wireless module has started configuration mode the
78. n be sent the timeout 1s auto framing period Two parameters above together form the two trigger terms of auto framing the longer the length of auto framing the higher the transmission performance of the system the shorter the auto framing period the higher real time transmission of the system so in practice the two parameters can be adjusted according to the needs to obtain the best effect of transmission TNS Wii3 vin 32 7 1 2 3 Hardware Flow Control Mechanism Module supports hardware flow control mechanism in transparent transmission mode lt gt RTS it indicates the enable signal of module receiver and it s effective when it s low if the following conditions are met simultaneously Wireless network is connected The length of data in Uart receiver buffer is not greater than 3 4 of full lt gt CTS it indicates the enable signal of host receiver and it s effective when it s low once the module detects the ineffective CTS signal it will immediately stop sending data to the serial until CTS becomes effective 7 1 2 4 Exit transparent transmission In auto work mode with default configuration the module s serial is in transparent transmission state At this time all data through the serial receiving are forwarded to the network and similarly data received from the network the module also sent to serial This is a simple data transfer state at this tim
79. nd begins to receive binary numbers flow until it has received the data of which length is prescribed in the lt SIZE gt field of command or message or waits for timeout then it exits transparent transmission mode the flow 1s shown as follow user the system user the sistem return the return the enter transparent AT SKRCV AT SKSNDe lt sizc gt receiving mode e ONSS response and exit the mode after completion data streams cdata stream enter transparent receiving mode and exit the mode after completion Figure 9 2 AT Instruction special process flow TNS Wii3 vin 81 9 1 1 2 Format Examples Example 1 response success message Example 2 response failed message Example 3 Using input parameter Example 4 Using the symbol lt gt Example 5 Using the symbol lt gt D3 TNS Wii3 eD zt vin 82 9 1 1 3 Error Code TNS Wii3 vin 83 9 2 Instruction Set 9 2 1 j Instruction List AT Instruction list Null 3 gt m Set or query data length of automatic framing Set or query work mode of module Set or query period of automatic framing Set or query connection message of socket module creates automatically in auto work mode 2 0 Steet UJ
80. nnel list lt CR gt lt LF gt lt CR gt lt LF gt Parameter channel list means wireless channel list it uses hexadecimal format it begins from the lowest bit each bit means a channel the default setting 1s 3fff that means all of 1 14 channels TNS Wii3 9 2 4 10 AT WPRT Function Set or query wireless network type Format AT WPRT type lt CR gt OK type lt CR gt lt LF gt lt CR gt lt LF gt Parameter type means network type EM Infrastructure network Adhoc network 9 2 4 11 AT WATC Function Set or query whether to enable to create adhoc network automatically This parameter is only effective when wireless network type is set to adhoc it means whether to create a adhoc network with the same SSID when networking is failed Format AT WATC enable lt CR gt OK enable lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 107 vin 108 Parameter enable means the symbol of enabling 9 2 4 12 AT WARM Function Set or query whether to enable the wireless roam Format AT WARM 7 enable CR OK enable lt CR gt lt LF gt lt CR gt lt LF gt Parameter enable means the symbol of enabling TNS Wii3 vin 109 9 2 4 13 AT WARC Function Set or query the function of auto re
81. oc When network AT WATC does not exist does not exist Used to specify whether to automatically create network or not if the network does not exist When Wifi network type is adhoc The default setting of system is disabled This parameter is only effective if the network type is set to Adhoc if users need to create an Adhoc network set this parameter to Enable TNS Wii3 vin 42 7 2 4 3 BG mode Wireless Standard AT WBGR Used to specify the BG mode of the Wifi network options include lt gt B G fixed mode lt gt B mode The default setting of system is B G fixed mode ordinarily user doesn t need to modify this parameter 7 2 4 4 The maximum rate The maximum wireless sending rate options include IM 2M 5 5M I1IM 6M 9M 12M 18M 24M 36M 48M 54M When BG mode is selected to B mode options include only the first 4 items The default setting of system is 36M ordinarily user doesn t need to modify this parameter when the use environment is harsh and wireless signal is worse user can modify this parameter to reduce the sending rate in order to improve the reliability of wireless transmission TNS Wii3 vin 43 7 2 4 5 BSSID BSSID AP BSSID AT BSSID Used to specify the BSSID address of WiFi network options include T Auto lt gt Fixed it needs to in
82. posite terminal rx data means data size in RX buffer TNS Wii3 vin 93 9 2 2 9 AT SKCLS Function Close the specified socket Format AT SKCLS lt socket gt lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter socket means socket number 9 2 2 10 AT SKSDF Function Set the default sending socket of system If user needs to enter transparent transmission mode in command mode using this command can send the transparent data from serial port to the destination Format AT SKSDF lt socket gt lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter socket means socket number TNS Wii3 9 2 3 System control type 9 2 3 1 AT Function Null command Format AT lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None 9 2 3 2 AT Z Function Reset system Format AT Z lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None TNS Wii3 94 vin 95 9 2 3 3 AT E Function Switch serial command to return Format AT E lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None 9 2 3 4 AT ENTM Function Enable the serial to enter to transparent transmission mode System exit this mode when it ha
83. put BSSID address The default setting of system is Auto ordinarily user doesn t need to modify this parameter When join to WiFi network module can detect BSSID address of the network according with SSID and join in When several networks APs create with the same SSID is existed in order to enhance network security user can fix the target AP by modifying this parameter to fix BSSID address Once the parameter is fixed the module will never connect to the network without suited BSSID 7 2 4 6 Channel Channel Number AT CHL Used to specify the channel of WiFi network options include T Auto lt gt Channel 1 14 The default setting of system is Auto ordinarily user doesn t need to modify this parameter When join to WiFi network the module will automatically scan all channels to detect the target network The time module needs to scan each channel is 150ms and the completion of all channel scan takes about 2s In order to reduce the scanning time and improve networking speed user can specify channel number through modifying this parameter What should be noted Once user set it to fixed channels the module scans only the specified channels if the target AP has changed the channel number module will never connect to the network successfully TNS Wii3 7 2 4 7 Auto Retry Auto Retry Count AT CHL This parameter is only effective in auto work mode it s used to specif
84. r of channel is set to the specified channel even if this channel is not included by the channel list networking will still succeed 7 2 5 Port parameters 7 2 S I Baud Rate Baud rate setting of serial options include lt gt 1200 115200bps The default setting of system is 115200bpso TNS Wii3 uin 46 7 2 5 2 Data Bits Length setting of serial data bits options include lt gt 8 bits X 7 bits The default setting of system is 8 bits P29 Stop Bits Length setting of serial stop bits options include lt gt bit lt gt 2 bits The default setting of system is 1 bit TNS Wii3 7 2 5 4 Parity Bit Parity Bit setting of serial options include X no parity lt gt odd parity even parity The default setting of system 15 no parity 7 2 6 Parameters of transparent mode 7 2 6 1 Auto framing length Auto framing length Data Trigger Length AT ATLT When serial is in transparent transmission mode and received data reaches the length specified then module will force to frame data to network by trigger the sending process the optional range is 64 1024 bytes The default setting of system is 512 bytes TNS Wii3 vin 47 7 2 6 2 Auto framing period Auto framing period Data Trigg
85. retries value in this case once the retry number is over the limit the system will try to reconnect any more except resetting the system 2 Socket connection here especially means TCP connection is a virtual connection in the case of non normal disconnection of the wireless network the original Socket connection will not be deleted and restored when the wireless network connection is resumed 162 2 Auto framing system In transparent transmission mode all data in the serial transfers in the form of byte stream and in the network the data transfers at a fixed frame format therefore the data between the serial and network need a conversion process between a stream and a frame For the data transmission in the direction from the network to the serial data conversion from a frame into a stream is very easy but in the contrary direction that is data is converted from the stream to frame format it needs certain rules to restrain The module uses two parameters to specify the conversion rules X Auto framing length When the data length the module received reach the length of auto framing the module will trigger the framing operation and send the data frame to the network lt gt Auto framing period In certain cases such as the data sent 1s little and cause the data in buffer can fill up a data block then the data in buffer is not normally sent At this time timeout mechanism is needed to ensure the small amount of data ca
86. roller 3127 3 wv 1 Y Q7 1200 115200 bps IEEE802 11 b g TCP IP Stack A v 1 y Y o d a d g 1 a a y 9 yY A A A go w zQ I R o 9J A Q7 w Q7 Embedded a Y a E A va I Q A 43 aoe d I A w A v Ad d l Transparent micro controller
87. s received escape character according with escape term in transparent transmission mode Format AT ENTM lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None TNS Wii3 vin 96 9 2 3 5 AT RSTF Function Return to manufacturer settings in flash System need to restart and then the settings become effective Format AT RSTF lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None 9 2 3 6 AT PMTF Function Parameters which are saved in the memory are updated to the flash Format AT PMTF lt CR gt OK lt CR gt lt LF gt lt CR gt lt LF gt Parameter None TNS Wii3 vin 97 9 2 3 7 AT IOC Function GPIO input or output control IO status is allowed to read when GPIO1 is set to input mode the mode of AT IOM is 1 IO status is allowed to write when GPIOI is set to output mode the mode of AT IOM is 2 Format AT IOC status lt CR gt OK status lt CR gt lt LF gt lt CR gt lt LF gt Parameter status means IO Status 9 2 3 8 AT QMAC Function Aquire physical address of the module Format AT QMAC lt CR gt OK lt mac address gt lt CR gt lt LF gt lt CR gt lt LF gt Parameter mac address is twelve hexadecimal Number format is 001 EE3A34455 TNS Wii3 vin 98
88. s to the starting time And When using WPA WPA2 encryption directly using PMK of hexadecimal format can eliminate this delay The specific method 1s referred in Section 7 2 1 5 TNS Wii3 vin 119 Q4 The module has connected to the network successfully why can t it show Destination host unreachable or Request timed out after doing the operation ping between the module and PC A Please check the network setting check whether the IP address and so on is correct or not Check whether the encryption mode is consistent with the AP sets or not because in certain encryption mode such as WEP encryption with open authentication even if the key is not correct module will join in the AP but they can t communicate Maybe certain operating program or Windows Firewall prevents from the operation ping Q5 In auto work mode the ICMP connection sometimes connects and sometimes disconnects after the module has joined in the network why A The module will create a default network connection after joined in network if the TCP server which 1s the default target of the network connection is configured unsuccessfully or not opened the module will disconnect the wireless connection after failed TCP connection and retry to connect in 10 seconds And then it appears that ICMP connection sometimes connects and sometimes disconnects To settle this question is correct configuration of TC
89. try after the wireless network is disconnected or networking is failed This parameter is only effective in the auto work mode Format AT WARC count lt CR gt OK count lt CR gt lt LF gt lt CR gt lt LF gt Parameter count means retry times u 1 254 1 254 times of retry 9 2 4 14 AT WBGR Function Set or query BG mode of the wireless network and the maximum sending rate Format AT WBGR bg mode max rate CR TOK bg mode max rate lt CR gt lt LF gt lt CR gt lt LF gt TNS Wii3 vin 110 Parameter bg mode mean BG mode S o o max rate means the maximum sending rate in B mode only 0 to 3 is effective TNS Wii3 win 111 9 2 4 15 AT UART Function Set or query data format of uart serial Format AT UART baud rate data bit stop bit parity CR OK baud rate data bit stop bit parity CR LF CR LF Parameter baud rate means baud rate effective range 1s from 1200 to 115200 115200 115200 bps 57600 57600 bps 38400 38400 bps TNS Wii3 data bit means data bits stop bit means stop bits ee 8 3 0 2 parity means parity bit L pee TNS Wii3 vin 112 9
90. tting Auto Workmode ServerAddr 192 165 1 100 Fort Bn l TCFCanTime s H 10000000 0 means forever Figure 8 1 serial connection sketch map TNS Wii3 8 1 2 2 Management through wireless connection Note Using this function needs to choose correct wireless adapter and install wireless driver correctly 1 Plug the wireless adapter in computer 5 2 Install wireless driver the successful result is shown as the following sketch map 5 e BS CommVview Atheros 4RS0056 Wireless Network Adapter H Broadcom MetLink TM Gigabit Ethernet ge HIART WIFI Device Ee VMWare Virtual Ethernet Adapter Far YMneti 9 VMware Virtual Ethernet Adapter For nete Figure 8 2 Install wireless driver 3 Open the UART WIFI configuration hypervisor if the driver is installed successfully setting frame of wireless connection will be in activation status 4 Click setting button input system password only the module of which the system password matches with the setting can be scanned 5 Select scan channel from channel list It will scan all channels from 1 to 14 if auto is selected 5 6 Click search module if channel is selected to auto it will expend a long time to search the completed result is shown as the following sketch map TNS Wii3 i vin 56
91. uter server user device gt user device user device d Ad Figure 5 1 3 Infrastructure TNS Wii3 vin 15 5 2 1131 Adhoc o d Ae As A l a ud A 1 A a d y a STA AP noteboot computer user dexice Figure 5 2 Adhoc TNS Wii3 vin 16 Q7 I e Y 6 APPLICATIONS Y oe QJ Y AC A I a 6 I QJ 6 1 TNS Wii3 Client Server A A A Y 1 e A o v v A oe
92. vel Txd Rxd GND Wii3 Rx USB TTL S Txd Tx USB TTL S Rxd MAC 0007 S N 12070 Figure 4 2 TNS Wii3 USB TTL S TNS Wii3 34 Wii3 config exe piis conti rem e w e 3 5 Port Port USB TTL S Port Device Manger Auto 3 6 default Baud rate 115200 bps N 8 1 VART WIFI Configuration Wireless Connect CH Close ul Tes Tene et 100 COO means forever gii j Transparent Transmission y Figure 4 3 Board rate TNS Wii3 vin 10 37 LED3 uag LEDI
93. vice 1 dewred device n LDP Unicast i UDE Unicast LDP Unicast J 1 Q Figure 6 3 RS 485 TNS Wii3 win 2l Reference setting lt gt Wireless setting SSID encryption mode key Access Point lt gt Network setting gt IP address 192 168 0 Y gt Subnet mask 255 255 255 0 Gateway address 192 168 0 1 gt DNS address 192 168 0 1 lt gt Work mode setting gt Enable auto work mode Protocol type UDP C S mode Server broadcast gt Port number 6000 Connection timeout 0 TNS Wii3 vin 22 lt gt Wireless setting gt SSID encryption mode key Access Point lt gt Network setting Enable DHCP gt IP address 192 168 0 X gt Subnet Mask 255 255 255 0 gt Gateway address 192 168 0 1 gt DNS address 192 168 0 1 lt gt Work mode setting gt Enable auto work mode 7 Protocol type UDP gt C S mode Client unicast gt Port number 6000 gt Connection timeout 0 TNS Wii3
94. y Format ASCII 165925 835 4 Wireless Settings Wireless settings is the Key Index basic step for you ta use the wifi module Encryption Key fo The encryption can guarantee the security of your data Save Network Settings Proper Network Settings can ensure DHCP Enable that your network is properly connected Fixed IP Address 10 3 3 174 505 subnet Mask 255 255 255 0 If the auta mode is Gateway Address 10 3 3 1 enabled your wifi module will transmit the DNS Address 10 2 4 51 data transparently Save M Auto Mode Enable Protocol ICP CFS Mode SERVER Serer Address 0 0 0 0 Teg Link TimeQut eo s range D 10000000 Por Number EDDDD Figure 8 20 web page of parameter modification After completing the submission the wireless module will restart automatically the web page will be also refreshed in ten seconds TNS Wii3 vin 75 8 2 2 Firmware upgrade on line The product supports firmware upgrade online through web page it s shown as following sketch map HEEERNPO System car 00 System Infomation 1 1 Advanced System Mac Address pn 1 1 22 33 44 D4 Hardware Version 1 00 01 1029 Fi Versions 00 080 irmware Versions 1 00 00 Mac address hardware Release Time 14 30 36 sep 6 2010 version firmware Firmware Upgrade SEN Select the firmware file Fir
95. y the auto retry number when networking is failed or network disconnects unnaturally options include lt gt Never lt gt Ever lt gt 1 254 The default setting of system is Ever 7 2 4 8 Wireless roam Used to specify whether to enable the function of wireless roam or not The default setting of system 1s disabled What should be noted when the parameter of BSSID is set to fixed wireless roam will become no effect TNS Wii3 vin 44 45 7 2 4 9 Channel List Channel List Channel List AT CHLL Used to specify the wireless region settings the ranges of the 2 4G frequency bands different countries and regions open is different such as the United States is 1 11 channels Europe is 1 to 13 channels and Japan is 1 to 14 channels The system default setting is 1 14 channels ordinarily user doesn t need to modify this parameter Another use of this parameter 1s reducing the time of scanning and networking by modifying the channel range For example we have known the AP may be connected to is in 1 6 11 channels the channel list can be set only 1 6 11 so that the module will only scan these three channels in the process of networking thus the purpose of shortening the networking time is reached Another should be noted is that parameter of channel has higher priority than the parameter of channel list that is when the paramete

Download Pdf Manuals

image

Related Search

Related Contents

Trekstor SurfTab wintron 10.1 pure 32GB 4G Black  KOHLER K-7505-VS Installation Guide  Transferir  Spirit topLine 8010  モニターマウントキット 取扱説明書  rafraissement des connaissances lors de controle  Upright Freezer Use and Care Guide  boceto final sin prod  

Copyright © All rights reserved.
Failed to retrieve file