Home

- Jinan USR IOT Technology Limited

image

Contents

1. 31 How to use HTTP protocol Make sure module in STA mode join in router can get access to the Internet We assume to access to this address http community thingspeak com blog news Use AT HTTPURL set host http community thingspeak com 80 Format AT HT TPURL http community thingspeak com 80 Use AT HTTPPH set local blog news Format AT HT TPPH blog news Use AT HTTPCN set connection method keep alive Format AT HT TPCN keep alive Use AT HTTPUA set user agent according to you here we set www usr cn Format AT HT TRPUA www usr cn Use AT HTTPTP set request mode GET or POST Format AT tHT TPTP GET Use AT HTTPDT send request or data 1 Use GET no need to send data Format AT HT TPDT 2 Use POST send data assume 123 Format AT tHT TPDT 123 Jinan USR IOT Technology Limited 17 20 tec usr cn N USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW UST SO AT HTTPURL http community thingspeak com 80 0k AT HTTPPH blog news 0k AT HTTPUA www usr cn 0k AT HTTPTP GET 0k tf HTTP 1 1 200 OK Date Mon 20 Jan 2014 00 53 24 GMT Server Apache Last Modified Fri 26 Apr 2013 00 51 54 GMT Accept Ranges bytes Content Length 76 Accept Encoding Keep Alive timeout 5 max 100 connection Keep Alive Content Type text html ase managed by puppet gt lt html gt lt pre gt pageok lt pre gt 32 How to change module factory settings Use AT command AT CFGTF to save current param
2. I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ Wwww usr SO USR WIFI232 T S G2 FAQ 1 USR WIFI232 module peripheral Circuit ee eecceccccccccccssesssssssssessesecceeeceseesssseeessseseeesseseesesssseeeass 2 2 5V MCU connect with 3 3V module CIPCUlt ec ecceesccccccesesssscceccecesssssesecccessssaeeeecessesseeeeceeseseeees 3 3 Design reference for USR WIFI232 Sb antenna lead Out ccccccecccceeessssceecceeessssseeeeeeesssnssees 3 4 WIFI module power CONSUMPTION CetAallS eee eeeeeeeeeeeeeeeneeceeeeeeeeeeeeeeeeeeeeeeececeeceeeceeeeeeeeeeeeeeeeees 4 9 Mo dule can n t start COMCCUY cocci sscac sswaaveddosssdessadoedswscntsatnes erotines trissa lecdesasasueiaacencdelebedubnss euadesaccnatonsaeeeaes 4 6 Unable to restore factory defaults after pressing nReload seeeseeessssesrrresssssrrrrrssssrrrrrrsssrrreressserreress 5 7 Can t get module SSID after power On essssssesssserisssssrerrssssereerssserrretsssssrttessssssrirerssssrrtettsssrrreerssserreeesses 5 8 How to set module in STA mode AP s SSID and password esssssesssssssrsrrrrsssrrrrrrssserrrrrsssrerrrrsrssern 5 9 Get module wifi network but can t JOIN It ec cccceessceccccessssseeecccsssssseeeecessesssseesccesesseseeeceeeesensaees 5 10 How to use Smart link TUN CU OM i cvccscssssccssccisssvavdecncbusiusadesvasnesduiduevacscasswadedec oncavacewebaicgensesiandametdsbundddencwsascnaese 5 Ti HOW touse WPS UNCION enero iaae ET TE 5 12 Smart link conf
3. in STA mode is assigned by your router Default username and password admin 2 Select Upgrade SW page Jinan USR IOT Technology Limited 8 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ www UST SO x English Upgrade Software System Work Mode Current version V1 0 04a STA Setting ee Fits AP Setting a Other Setting Account Upgrade SW Restart Restore 3 Choose firmware and Upload x English Upgrade Software system Work Mode Current version V1 0 04a STA Setting EISE USR WIFI232 T_2M_14F_update bin AP Setting Other Setting Account Upgrade SW Restart Restore Jinan USR IOT Technology Limited 9 20 tec usr cn A USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO Fax English Upgrade Software Uploading please wait patiently 4 Will show as below picture if succeed Paa lieh Sx English Rebooting Successful You can choose to manually close the page or reconnect the WIFI module of network and then login to the configuration interface Method 2 1 Log in special upgrade interface In AP mode 10 10 100 254 iweb html in STA mode it is IP address assigned by router iweb html 2 Choose the first part Upgrade firmware choose the firmware and click Upload Upgrade firmware WIF1232 T UPGARDE bin Upgrade customized webpage ATER Upload Jinan USR IOT Technology Limited 10 20 tec usr cn USR IOT
4. byte or 13 byte other ASCII code shall less than 64 byte and greater than 8 byte 1 WEP password has Hex and Ascii format pls choose WEP H or WEP A according to content WEP support 64 and 128 bit encryption for 64 bit encryption the key is 10 Hex characters 0 9 and A F or 5 ASCII characters For 128 bit encryption key is 26 Hex characters or 13 ASCII characters 2 WPAPSK WPAZ2PSK mixed encryption choose WPA2PSK 3 TKIP AES mixed encryption choose AES 38 Module frozen when transmit data data above 100 byte In transmission if the data contain 100 0 module will be frozen This is limited by chip mechanism users should try to avoid the 100 0 Jinan USR IOT Technology Limited 20 20 tec usr cn
5. module circuit Ri Di es user board 10K 1N4148 WiFi module 3 Design reference for USR WIFI232 Sb antenna lead out The antenna pin is used to lead out SMA connector see below image Need 50ohm impedance this can be done by PCB manufacture users should indicate the requirement in PCB design Jinan USR IOT Technology Limited 3 20 tec usr cn A USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ www UST SO 4 WIFI module power consumption details AP Associated 20sAfterBootup 87 33 2654 No Data NoAPAssociated s First100s First100s 598 18317 AP Associated _ Date Rate 5KB s f 16319 4959 __ Date Rate 10KB s_ 166 34 5055 BootUp 20s After Bootup 177 86 5406 No Data 100s After Bootup 178 86 5436 Date Rate 5KB s_ 18223 5539 Data Tranmit Date Rate 10KB s 18542 s635 Date Rate 10KB s Boot Up No Data 100s After Bootup 169191 5127 Date Rate 1KB s_ 170 445 5165 Date Rate 5KB s 176 814 5358 O Data Tranmit Date Rate 10KB s 184 635 5595 Date Rate 10KB s Dual Direction bisa Deep Sleep Not supported yet will be added future 5 Module can not start correctly Phenomenon of problem nready light is out or nready pin is high level 1 Check module power voltage should be 3 3 0 3V current should be above 300mA 2 Check if the nReload and nReset pin connect to pull up resistor This is necessary Jinan USR IOT Technology Limit
6. no limitation about data amount can keep transmitting But as the UART and NET transmit speed is different may cause data congestion and data loss Data buffer is 1K so we suggest you send data within 1K at a time Data will loss if over 1K If users usually send large amount of data we recommend module USR WIF1232 A B C 37 AT WSKEY command for router To set mixed encryption When set router password AT command format AT WSKEY gt Function Set Query STA security parameters Setting is valid after reset gt Format Query Operation AT WSKEY lt CR gt ok lt auth encry key gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT WSKEY lt auth encry key gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters Auth Authentication mode OPEN SHARED WPAPSK WPA2PSK Encry Encryption algorithm NONE When auth OPEN effective WEP H When auth OPEN or SHARED effective HEX format WEP A When auth OPEN or SHARED effective ASCII format TKIP When auth WPAPSK WPA2PSK effective AES When auth WPAPSK WPA2PSK effective Jinan USR IOT Technology Limited 19 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO Key password when encry WEP H the password is the hexadecimal number must be 10 byte or 26 byte When encry WEP A the password is the ASCII code must be 5
7. when set network parameterS eeeeeeeseseererersrssssssrrrerrerrsrssssree 15 25 To switch TCP connection target without reset essseseseeessseesrrrssseerrrrssssssrreerssssrireresssrrreresssrereeese 15 26 Can t establish stable TCP connection with PC or phOn eeeesesseeeseeseseessseseererersrssssssrrrereeressssssee 16 2 7 Can t connect to module TCP SOPrVel uu eee ccccccsssssecceccessssseececcesessssceeceeeessssaeescecessssaeeeecessenaeeeeces 16 28 TCP connection unstable applicable to UDP cece ccccssssccecesssesececsseseceessseeeecesseseeeeseeteees 16 DD TOF UMEO eee catecaseastencs ones apcenticnsaventane bisected cane ecatesaserecicsasancseceentent a dcatt sandeep ostaeena oro aieriavasgecetina cious 17 30 TCP server dead links NAN GUING sisicciccs css cecdisess scovscscscsaidaacedecerasendadectsscdaassessneedeisseucacenabiesededacodsadeasasdsocsnces 17 Fle HOWTO use HTTP DEOL OCO acca cere ettactevcnrect ie sacaaheeecacetevevtn ence AE O EE E cecetenccnsst 17 32 How to change module factory SettINGS ic ccecccccccccsssssececcceeesssseeecceeessssseeeecceessaeeeeceeeeettsaeesees 18 33 If the settings will be Saved if power GOWN ccccecccccccceeesssceeccecesssesecceceessssceeecccesessseeeeeceserttseeeeees 18 34 How to SENG by UDP DIOAOCAS Usescic sssicccrsassssacweussnccaswialivare dusdeadeccsinciadadeoessdsdeacomopenddsdaVinarcbschaksecssovacsaades 18 39 Max transmit 4 COU CTICY ocoes eccnaisconecc
8. 05 port 80 then socket A settings as follows By IP AT NETP TCP client 80 61 135 169 105 By DNS AT NETP TCP client 80 www baidu com 25 To switch TCP connection target without reset Assume that previous TCP client destination IP and port 192 168 1 1 9000 need set to be 192 168 1 88 8899 Steps as follows Step 1 Send a To AT command mode Step 2 AT TCPDIS off Close previous TCP connection Step 3 AT NETP TCP client 8899 192 168 1 88 Change TCP client destination IP and port Step 4 AT TCPDIS on Open TCP connection Step 5 AT TCPLK Check if the TCP connection succeed if not need to wait Step 6 AT ENTM Jinan USR IOT Technology Limited 15 20 tec usr cn I USR IOT Be Honest Do Best USR WIF1232 T S G2 FAQ WWW USI SO To transparent transmission mode Step 7 Send data Send any data Step 8 Receive data Receive data you sent Step 9 Send a To AT command mode Step 10 AT TCPDIS off Close TCP connection Step 11 AT ENTM To transparent transmission mode 26 Can t establish stable TCP connection with PC or phone To check module power voltage and current Voltage should be 3 3 0 3V current should be above 300mA If the power is not enough or stable TCP connection will not be stable 27 Can t connect to module TCP server 1 Check if the module start well refer to question 5 Make sure power is enough if not module will restart when create TCP connection so it may be failed 2 Check ho
9. Be Honest Do Best USR WIFI232 T S G2 FAQ Wwww usr so 3 Will show as below picture if succeed http 192 168 10 data_success html a amp 192 168 10 111 data_ success html QAR AMAA RL RAPE Eo Baez Update successful 17 Upgrade customized webpage 1 Log in special upgrade interface In AP mode 10 10 100 254 iweb html in STA mode it is IP address assigned by router iweb html 2 Choose the second part Upgrade customized webpage choose the firmware and click Upload Ly http 192 168 10 111 iweb html Lickel 192 168 10 111 iweb html B jaks AMSA BRL RAM g Bes Upgrade firmware ABE Ho Upgrade customized webpage Ipb_web bin 3 Will show as below picture if succeed ihttp 192 168 10 data_success html amp 192 168 10 111 data_success html B BARS JERS LO BAM E ees Update successful 18 How to realize PWM GPIO function Different module pins are different details pls see user manual chapter 4 1 3 and appendix B 1 Set module mode to pwm use AT TMODE pwn take effect after restart 2 Set module indicate function use AT LPTIO take effect after restart see below table for different module settings Jinan USR IOT Technology Limited 11 20 tec usr cn x USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ Www usr SO USR WIFI232 S GPIO PWM pwm off Transparent transmission throughput lpt200 nLink nReady WPS USR WIF1232
10. FA LED With router TP LINK TL WR340G Encryption Phone ee EE brand TKPAES Jinan USR IOT Technology Limited 6 20 tec usr cn A 13 WPS configure failed USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO The same as Smart link WPS configuration is not 100 successful If step is correct but failed pls choose other method 1 Your router should support WPS some old router on the market do not support WPS function 2 Support WPAPSK and WPAZ2PSK encryption only Testing data as follows connect failed w hen WPS on router don t support this encryption 14 Can t switch to AT command mode Phenomenon of problem input a but module does not reply a get SSID but no passw ord when WPS on router don t support WPAPSK encryption when WPS on Router only support WWPA2PSK AES encryption when WPS on Router only support WRAPSK AES encryption when WPS on Routeronly support WRA2PSK AES encryption w hen WPS on Router don t support WPAPSK encryption w hen WPS on Router don t support WPAPSK encryption 1 Make sure module start well If indicate function is open ready pin should be low If it is high pls refer to question 5 2 Make sure UART settings are the same as PC Including baud rate data parity stop bit and hardware flow control If you can not determine these settings pls reload to factory defaults 115200 N 8 1 no flow control 3 If still not succeed pls cont
11. T GPIO PWM pwm off Transparent transmission throughput on nLink nReady WPS USR WIFI232 G2 GPIO PWM pwm lpt200 Transparent transmission throughput off nLink nReady WPS 19 How to set module network connection parameters Socket A and Socket B 1 Two ways to set Socket A 1 Use AT command AT NETP to set TCP server TCP client UDP server UDP client AT NETP gt gt Function Set Query SOCKA network protocol parameters Setting is valid after reset Format Query Operation AT NETP lt CR gt ok lt protocol CS port IP gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT NETP lt protocol CS port IP gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt Parameters Protocol TCP UDP CS SERVER CLIENT Port protocol port ID Decimal digit and less than 65535 IP Server s IP address when module set as client If set as UDP SERVER the module will save the IP address and port of the latest UDP packet received The data will be sent to the saved IP address and port If the module hasn t saved any IP address and port when power up The data will be sent to the IP address and port which is set by this command If set as UDP CLIENT the data will always be sent to the IP address and port set by this command 2 Use Webpage Jinan USR IOT Technology Limited 12 20 tec usr cn Qe A USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ Serial Port Pa
12. act USR Technology for help Jinan USR IOT Technology Limited 7 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW UST SO 15 How to switch Transparent mode and AT command mode You can switch by AT command also use AT T MODE to set default work mode when start 1 Transparent transmission mode to AT command mode 2 steps as follows gt Input module will reply a gt Input a module will reply ok G serial com3 SecureCRI File Edit View Options Transfer Script Tools Window oe RF Lod a x Enter host lt AlttR gt A JA p E y oe Ea Help a ok lt Note gt gt When input t and a UART no response as above picture gt Input and a should be done in a certain period of time See following time picture input s input ari input oi input air show a Remark no need to add Enter key after and a besides the time interval for characters before and after should be over 50ms and within 3s 2 AT command mode to Transparent transmission mode Use AT ENTM command AT ENTM gt Function to transparent transmission mode gt Format AT ENTM lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt After this command module will switch to transparent transmission mode 16 Upgrade by Webpage Method 1 Note USR WIFI232 S does not support method 1 1 Log in built in webpage In AP mode default 10 10 100 254
13. ed 4 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO 6 Unable to restore factory defaults after pressing nReload 1 Check if the nReload pin connect to pull up resistor If didn t connect with GND only can not realize factory defaults 2 Communicate with module UART switch to AT command mode check if is on for AT RLDEN If it is not on send command AT RLDEN on 7 Can t get module SSID after power on Checking steps 1 Test if nReady pin is low level test if the module start well If did not start ok see question5 2 Restore factory defaults with nReload to see if can get module SSID now 3 Test module UART function setup uart parameters first baud rate 115200 8 data byte 1 stop byte PC send to module UART to check if the module can reply a If reply a module switch into AT command mode AT WMODE to check working mode no SSID in STA mode this is normal AT WAP to check SSID 4 If all failed contact USR Technology for help 8 How to set module in STA mode AP s SSID and password 3 method 1 Webpage Restore to factory defaults module default in AP mode User s PC or phone join module wifi network log in built in webpage to configure Note USR WIFI232 S do not support webpage configuration 2 AT command AT WMODE AT WSSSID AT WSKEY 3 Smart link we supply Android and IOS version app and user manual in CD 4 WPS function Smart link and WPS wil
14. eters as factory defaults Steps as follows 1 Set module parameters by AT command Need to set all parameters to avoid missing and incorrect factory settings 2 Send AI CFGTF to save current settings Besides USR Technology can supply software for configuration 33 If the settings will be saved if power down For parameters that module set can be saved when power down no need to set again But data will loss after reload If need to set factory defaults pls refer to question32 34 How to send by UDP broadcast Both Socket A and Socket B can support UDP transmission In UDP client mode can send UDP broadcast Method set UDP client destination IP to be 255 Example send broadcast in 192 168 1 segment port 9000 AT command see follows socket A AT NETP UDP client 9000 192 168 1 255 Socket B AT SOCKB UDP client 9000 192 168 1 255 Jinan USR IOT Technology Limited 18 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO 35 Max transmit frequency Max transmit frequency is 200ms per time That is to day the interval between two transmission should be above 200ms Or data packages will be sent at a time 36 Module MAX transmit rate and amount Module transmit rate is related to baud rate and network status If network well transmission speed is limited by COM buad rate Commonly used baud rate is 115200 rate is about 10k s Max baud rate is 460800 rate is about 46k s There is
15. iguration failed eeeeeeeeeeeeeeesereseseeserrsssssrrrrssssesrrrrsssssrrrsresssrirerssssriretesssrrreeesssrrreeesssssrees 6 TNPSC S NS en E E A T 14 Can t switch to AT command MoOde eessesseeeeesessserressssserrrrssssrrrrrssssereetssseerettesssssreeressssreereesssrreeeessseereeest T 15 How to switch Transparent mode and AT command MoOde eeeseeseseseeeessssererrrrrsssessrrrrrrererersssrerrrrens 8 16 Upgrade by WebPage eee cccccccssssssececccessssssccecceeessssaeeececcssssueeseccssesseeesccesesssseeeccecessssseesecesseeaeeeeees 8 17 Upgrade customized webpage eseeeeeeesssssrrrressssrrrrrrsssrrrerrsssrrreressserrettsssserittessssstteressssrrretesssrrreeesssereet 11 18 How to realize PWM GPIO FUNCTION ic cceecccecccccsssssseeccccessssseeeeccesesseseeeccecessnseeeccecesestseeeeeeseeas 11 19 How to set module network connection parameters Socket A and Socket B ees 12 20 How does the module connect to 2 different NETWOFK cee cccceessseceeccecessssceeceesessssseeeeeeeseessees 14 21 How to distinguish data from Socket A or Socket Bu ccceeccccccesesssceecceeessssseeececeesssseeeeeeseeeas 14 22 How to send data to Socket A OMY sesiicicssscecasccisessacdinusesnsn sacdndendanduvasecdnpons sedanusisebsssaeddsavaiesssddcidsnsaasaoveners 14 23 How to send data to Socket B onlyY eseeeesseeseeresssssrrrrrssssrrrrrrsssrrrertsssrereresssssrrreesssssrreerssssrrreeesssrrreee 14 24 How to use DNS instead of IP
16. l be much more convenient 9 Get module wifi network but can t join it 1 For external version make sure the antenna connection well 2 Check if other STAs have join the network In AP mode 2 STAs can join in AP STA mode only 1 STA can join 10 How to use Smart link function Software and user manual in CD 11 How to use WPS function Press router WPS button open router WPS function Module open WPS function by button Then module will connect with router automatically Jinan USR IOT Technology Limited 5 20 tec usr cn A 12 Smart link configuration failed USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ www UST SO Smart link configuration is not 100 successful If your steps is correct but configuration failed pls choose webpage configuration 1 Support Primary router only do not support secondary router 2 With WPA2PSK and AES encryption success rate is high 3 Will failed if your phone does not support Below is the testing data Deiane Dsisnoe J Dstanos Owe wem _ wmm mem OO re ma nee on Router module snd module snd module snd brand AEA I A e router m phone m phone m SLA E Quali ed contain silures FA LED Router don t support this Encryption Testing description 1 Distance between phone and module is within 5m distance between module snd router is over 5m 2 Esch testing is over 5 times sil succeed as PASS fail 1 2 tmes ss Qualified others ss
17. le connect to 2 different network Module has two channel Socket A and Socket B To set these parameters is ok Refer to question 19 21 How to distinguish data from Socket A or Socket B In transparent transmission module can not distinguish data from Socket A and Socket B Data received from UART will be sent to Socket A and Socket B at the same time As well no matter the data is received by Socket Aor Socket B module will send to UART without any distinguish If users need to distinguish data from Socket A and Socket B pls refer to question 22 amp 23 22 How to send data to Socket A only To send data to socket A only module should be in AT command mode use AT SEND and AT RECV see details AT SEND gt Function Send Data to SOCKA at Command Mode gt Format AT SEND lt data_lenth gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters data_lenth Lenth of send data Range 0 1000 Byte The UART port will feedback a gt and then wait 3 seconds for input after this command is sent OK The data received from UART port is sent to SOCKA If the interval of two bytes is more than 10ms the data will be sent instantly AT RECV gt Function Receive Data from SOCKA at Command Mode gt Format AT RECV lt data_lenth gt lt CR gt ok lt data_lenth data_content gt lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters data_lenth Lenth of receive data Range 0 1000 Byte data_content c
18. ncececaaisnmstesi an sastd wiatsaliceatovoeueadadsed honacatues EEE Ei iaa N EDAEN DENKE 19 36 Module MAX transmit rate ANd AMOUNL cece cccccssssseececceeessseceeccecessssseeccecessssaseeeeeeseestseeeeeeeeeeas 19 37 AT WSKEY command for router To set mixed ENcryptiOn ccc cece ccesesssecceessseeeeeeessseeeeeesaes 19 38 Module frozen when transmit data data above 100 byte cece ccesesseeecesssseeceeeseeeenens 20 Jinan USR IOT Technology Limited 1 20 tec usr cn N USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ www UST SO 1 USR WIFI232 module peripheral circuit See follow drawing Requirements 1 nReload nReset and PWR_SW pin must connect with pull up resistor 5 10K is ok 2 Power input must have filter capacitor usually 10uF Power voltage should be 3 0 3 6V Current at least 300mA Ul Si WIFR32 S PERSER GND VDD 3V3 nLink nReload nReady UARTO TXD UART RXD l 3 4 6 7 nReset 8 LNY USR WIF1232 S circuit WIFI232 T USR WIF1232 T circuit Jinan USR IOT Technology Limited 2 20 tec usr cn x USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW uST SO VDD_3V3 tas fuo fua fua fua fua fu Pe 5 i 1S lgie 1f ee de ls Th UARTO TX UARTO RX 5 g Link Rard VDD_3V3 RI 47K sReloed he Tho u De Pe fen Do fed RE K Mst P_i GND VDD_3V3 U3 USR WIFI232 G2 USR WIF1232 G2 circuit 2 5V MCU connect with 3 3V
19. ontents of receive data If not receive any data in 3 second then feedback ok 0 From above command we can see this way has strict request for time 23 How to send data to Socket B only Similar to socket A use AT command AT SNDB and AT RCVB AT SNDB gt Function Send Data to SOCKB at Command Mode gt Format Jinan USR IOT Technology Limited 14 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO AT SNDB lt data_lenth gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters data_lenth Lenth of send data Range 0 1000 Byte The UART port will feedback a gt and then wait 3 seconds for input after this command is sent OK The data received from UART port is sent to SOCKA If the interval of two bytes is more than 10ms the data will be sent instantly AT RCVB gt Function Receive Data from SOCKA at Command Mode gt Format AT RCVB lt data_lenth gt lt CR gt ok lt data_lenth data_content gt lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters data_lenth Lenth of receive data Range 0 1000 Byte data_content contents of receive data If not receive any data in 3 second then feedback ok 0 From above command we can see this way has strict request for time 24 How to use DNS instead of IP when set network parameters Users can use DNS to replace IP address Assume that we set to connect to baidu server server IP is 61 135 169 1
20. rameters Setting System Baud Rate Work Mode STA Setting AP Setting Other Setting Account Upgrade SW Restart Restore Data Bit Parity Bit Stop Bit CTSRTS Network Parameters setting Protocol TCP Server Port ID 888 Server Address 192 168 1 1 TCP Time Out Setting 2 To set Socket B Use AT command AT SOCKB WWW USI SO Fx English AT SOCKB gt Function Set Query SOCKB network protocol parameters Setting is valid after reset gt Format Query Operation AT SOCKB lt CR gt ok lt protocol port IP gt lt CR gt lt LF gt lt CR gt lt LF gt Set Operation AT SOCKB lt protocol port IP gt lt CR gt ok lt CR gt lt LF gt lt CR gt lt LF gt gt Parameters Protocol TCP Only for TCP Client UDP UDP Client UDPS UDP Server Port Protocol Port in decimal less than 65535 IP Destination IP address domain name is support If set as UDP SERVER the module will save the IP address and port of the latest UDP packet received The data will be sent to the saved IP address and port If the module hasn t saved any IP address and port when power up The data will be sent to the IP address and port which is set by this command If set as UDP CLIENT the data will always be sent to the IP address and port set by this command Jinan USR IOT Technology Limited 13 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO 20 How does the modu
21. w many TCP clients have connect to TCP Server max 5 TCP connection 3 To confirm if transmission well by AT command send if reply a 4 If UART well to check if the module is in TCP Server port 8899 use AT NETP 28 TCP connection unstable applicable to UDP Two phenomenon for unstable module Module in TCP Server PC or phone as TCP Client to connect to TCP Server after a period of time TCP connection will disconnect Module in TCP Client PC as TCP Server often see TCP client access disconnect can t keep stable connection Reason Possible 1 Usually caused by unstable power unstable voltage or insufficient current Usually appears when power by USB suggest to check or change voltage Refer to question 5 This reason usually applicable to UDP unstable problem Possible 2 Module TIMEOUT settings Socket A use AT TCPTO command or webpage Socket B use AT TCPTOB TCP connection disconnect Is similar to timeout maybe caused by time out pls change and test again Jinan USR IOT Technology Limited 16 20 tec usr cn I USR IOT Be Honest Do Best USR WIFI232 T S G2 FAQ WWW USI SO 29 TCP Timeout This is the time that PC does not receive any data 30 TCP server dead links handling Module in TCP server if TCP Client did not disconnect correctly will generate TCP server dead links The way to remove TCP dead links is by timeout mechanism that is to say all TCP connections will be off in a certain period of time

Download Pdf Manuals

image

Related Search

Related Contents

König SEC-PCM10  User Manual - Unical Lattner Condensing Hot Water Boilers  Tektronix 2245A User's Manual  ATA Nº 06, DE 09 DE MARÇO DE 1999  Traxxas Summit  Basics of operation  Speeltoren Patrick  5000HD SERIES LIGHT CURTAINS  EA983SF-46(ケーブルロック)取扱説明書  

Copyright © All rights reserved.
Failed to retrieve file