Home
USR-WIFIMOD-II user guide
Contents
1. E Set up a wireless network r wifimodII 192 168 1 254 Acquiring network op Fora home or small office address y Unsecured computer ko computer network You are currently connected to this network To disconnect From this network Related Tasks a pi E click Disconnect 3 Learn about wireless networking qy Change the order of TP LINK_14D24E Automatic r preferred networks Qu Change advanced Security enabled wireless network WPA alll settings CMCC Unsecured wireless network all oO Unsecured wireless network anil A Vi As you can see this link can not auto get IP address so set one IP by your self Wireless Network Connection status gt Properties gt Internet properties TCP IP gt fill the tables like follow picture Jinan USR IOT Technology Co Ltd Page 8 of 41 freda usr so BC BARK A Usr cn USR WIFIMOD II User Guide www tcp232 net Internet Protocol TCP IP Properties a ayr General Tou can get P settings assigned automatically if pour network supports this capability Otherwise pou need to ask your network administrator for the appropriate IP settings Obtain an IP address automatically 9 Use the following IP address IP address 192 168 1 105 Subnet mask 255 255 231 T Default gateway E d 168 1 254 Use the following DNS server addresses os Prefered
2. If it is not sweb mode the default home page is the device page itself equivalent to http 192 168 1 254 index htm Access to user space files The user space sweb directory files can be visited through the way like http 192 168 1 254 sweb abc xyz Through the serial port to the requested page Customers in the browser to com request file link forms such as http 192 168 1 254 sweb cgi file usr htm amp clean 1 amp wait 2000 File usr HTM indicating request file named usr HTM can contain path Clean 1 instructs before the feedback of the serial port empty receiving cache first Wait 2000 parameter indicates after outputting message com idle waiting for the longest time is 2000 ms In the browser address bar input the address above WIFIMODII will empty serial receiving buffer and output swebget usr HTM r n string from the serial port r n for the new line operator after that the data serial port receives will be returned to the browser until in 2000 ms no more data be received Jinan USR IOT Technology Co Ltd Page 31 of 41 freda usr so OSM A Usr cn USR WIFIMOD II User Guide www tcp232 net Pay attention to the browser s cache mechanism The default browser cache has visited pages this feature can greatly reduce the number of the same file request Especially sweb mode through the serial port users requests file using the cache mechanism can reduce redundant data volume speed up the br
3. ht 168 1 90 status htm o 9 Gesi H START rosoft Internet Explor p TFE A EEW uw TAM Bo witimodll SE gt AO Dek Zens CG ht 168 1 90 status htm o amp _ _ B a a vn a a func Recw data handleldata WIFIMODII In SWEB directory supplies the SWEB function demo page at the same time provides serial simulation program written by VB used for the simulation of a serial users port equipment the user can view the code to understand SWEB agreement is simple and easy to fit in Jinan USR IOT Technology Co Ltd Page 29 of 41 freda usr so H A BAR HK Usr cn USR WIFIMOD II User Guide www tcp232 net im Bifimodll Zeches Liz E mfx Serial a Ee Cami sl beson og Het GEE HER ml ON OFF ER S We E oio emm ob o5 DE lz i KEE Er ie m m m 6 Sweb Server Root c ifimod Twmii tools erem ab recy log i volt val 0 meter_val 0 oda val 0 progress val 0 line y al 0 onoff val false false false false false E alse false false 5 2 Sweb mode core knowledge Sweb mode is a web server monopoly serial work mode The browser through the sweb path can access to user file 2 1 19 version Whether sweb mode the user can access sweb directory file Sweb mode the browser on the equipment IP access will redirect to sweb index HTML file Sweb mode the browser through the sweb cgi access com
4. Ret is parsed object can directly through the ret Val access val members function cb err d alert Connection Break III the error indicating that the disconnect 5 6 Interact with serial binary data Due to the AJAX process uses utf8 encoding mode for characters user input so we can t follow one s inclinations send the binary data we often use to the module of the serial port in order to solve this problem can use WIFIMODII built in URL Code codec to complete the work URL Code coding method is very simple it is similar to a character substitution mechanism space replace with English letters Numbers _ as usual besides all the other characters use Yo XY manner directly set its hexadecimal code value For example hello China code as hello e4 b8 ad e5 9b bd WIFIMODII module support URL decoding using this function can send arbitrary binary data between the browser and serial transmission Do not use URL Code mode data interaction process as follows Browser sending bar Utf8 encoding WIFIMODII network reception Serial output 61 62 63 abc 61 62 63 61 62 63 Abc Chinese E4 B8 AD gt E4 B8 AD E4 B8 AD E6 96 87 5 E6 96 87 E6 96 87 Jinan USR IOT Technology Co Ltd Page 35 of 41 freda usr so Usr cn USR WIFIMOD II User Guide www tcp232 net O BARK A The way of URL Code data interaction process as follows Browser sending bar Utf8 en
5. STcnS mode STcpt mode Jinan USR IOT Technology Co Ltd Page 3 of 41 freda usr so U sr cn USR WIFIMOD II User Guide www tcp232 net Or BARR A 1 2 Parameter detail 1 IEEE 802 11b g support Ad hoc point to point no need to use AP 2 Support for security standards WEP64 128 WPA RSN WPA2 PSK 3 Static IP setup DHCP Auto IP 4 Serial2Net transparent work mode TCP Server TCP Client UDP support DNS for domain target 5 Handy SWEB mode 1Mega bytes storage and Communication via HTTP Post 6 Support download user data and documents from serial port support browser to up download the serial data support AJAX 7 1M Bytes user flash space for user web page and data 8 Can work with wireless router Infrastructure 9 RS232 baud rate 1200 115200 Data bits and parity can be set 10 Setup all parameters via HTTP web page there are password for page login for Security 11 Support online upgrade operated in browser 12 Provide SWEB page design example 10 templates 1 3 Led status NET amp SERIAL LED blink in every 2seconds means it is work in factory default setting Indicate wireless connection WLAN Blinks means trying On means connected NET Indicate TCP connection status Blink means receiving data Indicate Serial is opened SERIAL Se Blink means receiving data Jinan USR IOT Technology Co Ltd Page 4 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net
6. m By control module s specified Pin By LED NET signal core module pin user can reset system to factory default state Keeping this signal low for 3 seconds when power on or reset module will boot to factory default mode Please refer to detailed module related guide Jinan USR IOT Technology Co Ltd Page 23 of 41 freda usr so A ve wei USR WIFIMOD II User Guide www tcp232 net 3 Work mode settings 3 1 UDP mode 3 2 TCP Server mode 3 3 TCP Client mode 3 4 SWEB mode STEP1 Get Page osoft Internet Explorer RHE ee SEV Gu TAG Re gt HAO Dar yews B 192 168 1 90 status htm Dok D EIER ES GET xx htm osoft Internet Explorer RHE ee EEV hima TAG pm gt RAO Par dems 5 192 168 1 90 status htm 3 HPEH Microsoft Internet Explorer RHE Me SEV Gu TAG ho wifimodi gt BRO P em D Pp i ST gt sta t http 192 168 1 90 status htm Sweb mode l ae func Recw data handleldata 3 5 Virtual COM Port mode Jinan USR IOT Technology Co Ltd Page 24 of 41 freda usr so BC BARR A Usr cn USR WIFIMOD II User Guide www tcp232 net 4 Use sample test 4 1 UDP communication test it is factory mode Test require m Module in factory default state with it s serial port Rx DB9 Pin2 amp Tx DB9 Pin3 short connected mM Laptop connected to module See above section m Using TCP IP debugging tools in UDP mode send any text
7. 1 4 Power supply Input power input is DC 5V 16V maximum current is about 300mA so the power adapter current should not less than 300mA Try to use high quality power adapter supply to make sure the system work ok We supply one 110 220AC to 5V DC power adapter positive outside and negative inside 1 5 Packet list 1 USR WIFIMOD II WIFI to RS232 convert module 1 2 AC to DC Power adapter 1 3 Female to Female Serial cross cable 1 4 CD with user manual and software 1 Jinan USR IOT Technology Co Ltd Page 5 of 41 freda usr so O SAM A Usr cn USR WIFIMOD II User Guide www tcp232 net 2 Configure and use USR WIFIMOD II 2 1 Connect to WIFI module In factory state initial configuration USR WIFIMOD II behaves as below m It s NET amp SERIAL LED Blink in every 2seconds m It will work in ADHOC mode whose SSID is wifimodIl 192 168 1 254 m It holds a static IP address 192 168 1 254 m It works in Udp2Serial mode and serial access port is 55555 wifimodll 192 16 ssID M2 168 1 254 1 26 IP 55555 Factory State You can use laptop with WIFI adapter Ipad or Iphone to connect to WIFIMODII with IP address properly set to same subnet Such as 192 168 1 105 you can use web browser to access the module Steps Power on the USR WIFl mod ll the two leds serial and net flash every 2 seconds show the WIFI module work in factory setting Find one PC with WIFI support open your PC wireless network manag
8. A Search S Z Favorites 4 B ds El 3 Address http 192 168 1 254 index_en htm wifimodII Release your creativity Thanks for choosing wifimodll WifimodII lets the serial devices connect to the wifi mobile or Internet via wireless LAN IEEE802 11b g To communicate with mobile phone or on internet devices should use TCP IP protocol so wifimodll processes the converting serial data to TCP IP wifimodII support HTTP server functions and provides web configeration interface Additionally it provides 1 MegaBytes user space which can be used to store page files User can easily upload customized pages to wifimodII module In addition to traditional UDP TCPC TCPS Net2Serial usage wifimodI support SWEB serial to web mode which provide a very handy way for controlling serial port via javascript in web pages Hx Contact IP addr 192 168 1 254 Group name wifimodIIGroup Module name yy ifi mo d I I RAM Curr 44 Max 68 CPU 14 1324360 8886000 MAC addr 40 2C F4 94 26 F Run time Oh 49m 58s SN 0000100121001057 Firmware 2 4 5 Fresh M Auto S Internet ll 5 20 Pm fam 3 Windows Explorer crx CWINDOWS syste E Writer USR WIFIM 2 2 WIFI network mode choose 3 wifimodII Microsoft As you can see i 2 1 USR WIFIMOD II network is work at computer to computer Ad hoc mode at default factory setting it can also work at
9. E 2 5 2 Sweb mode core knowiedge eee 30 5 3 Page views Of SWED mode 31 5 4 Upload files e EU Bn 32 9 9 mteract wih EE E 33 5 6 Interact with serial binary data 39 5 7 Senior content MIME types erer 40 EE Le A E E E 41 Jinan USR IOT Technology Co Ltd Page 2 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net 1 Introduce of WIFI module 1 1 Introduce Almost all communication devices including PC are using serial transmission In this type devices send and receive data in the order of each byte The serial communication is quite simple to implement but has weaknesses such as short distance and hard maintenance USR WIFIMOD II lets the serial devices connect to the WIFI mobile or Internet via wireless LAN IEEE802 11b g To communicate with mobile phone or on Internet devices should use TCP IP protocol so USR WIFIMOD II processes the converting serial data to TCP IP WIFIMODII support HTTP server functions and provides web configuration interface Additionally it provides 1 Mega Bytes user space which can be used to store page files User can easily upload custom pages to USR WIFIMOD II module In addition to traditional UDP TCP Client TCP Server Net to Serial usage USR WIFIMOD II support SWEB serial to web mode which provide a very handy way for controlling serial port via java script in web pages nz N H En USER PAGES
10. Guide www tcp232 net 2 2 2 infrastructure Mode Figure 2 2 infrastructure The wireless LAN stations communicate through an Access Point AP So at least one AP is needed to make the infrastructure network The wireless LAN station can talk to wired network hosts because AP relays between wireless LAN stations as well as between wireless LAN station and wired LAN Ethernet host Key feature m AP needed more range covered amp transmission stable m More than one node can join in but limited m Dynamic IP can be used Most AP have DHCP server function m WEP WPA RSN security supported Figure 2 3 Wireless distribution system 2 3 Configurate module Module provide web interface for configuration On setup page save button will submit users configuration and save it to file system as a file Module will read user configurate file ONLY when it boot up So a reboot is necessary after click the save bottom on setup page Jinan USR IOT Technology Co Ltd Page 13 of 41 freda usr so U sr cn USR WIFIMOD II User Guide www tcp232 net O BARK A All the following settings can be found on the setup web page 2 3 1 wireless setting Network name link mode Ad Hoc or Infrastructure RSSI low limit 1 Encryption settings According to destination AP security settings 1 In circumstances with more than one AP having same SSID module select AP with best signal strength When association complete mo
11. Infrastructure mode with wireless router WIFIMODII supports IEEE802 11b g The IEEE802 11b and IEEE802 11g support 11Mbps and 54Mbps transmission rate respectively There are two types of wireless LAN networks ad hoc and infrastructure Basic Requisite SS D It is an identifier to identify the particular wireless LAN So the same SSID should be configured to all stations to communicate in the same wireless network In case of infrastructure mode user has to set his station s SSID as same as AP s The maximum value of this parameter is 31 bytes Channe IEEE802 11b g wireless LAN stations communicate through the ISM Industrial Scientific and Medical band whose frequency is about 2 4GHz IEEE802 11 specification divides this band into 14 channels every 5MHz If user installs more than one wireless LAN networks in the same area the channels should be apart more than 4 channels to avoid interferences WIFIMODII module can arrange channels automatically Authentication and Security Authentication Jinan USR IOT Technology Co Ltd Page 11 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net A wireless LAN station should get authentication from the AP in the infrastructure mode There are the Open system and the Shared key for the authentication methods WEP Wired Equivalent Privacy The WEP is a secure protocol for wireless LAN There are two kinds of WEP method 64 bits and 128 bits ke
12. Ltd Page 40 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net Or BARK A 6 Contact us Company Jinan USR IOT Technology Co Ltd Address 1 523 Huizhan Guoji Cheng Gaoxin Qu Jinan Shandong China Tel 86 531 55507297 86 531 88826739 803 Web www tcp232 net Jinan USR IOT Technology Co Ltd Page 41 of 41 freda usr so
13. is an advanced UDP mode the data segment exchanged on serial port include 16 bytes head having IP Port length info 4 Dest IP amp Dest Port play a role in specifying or filtering the target In UDP mode if destination IP and Port be set module will bounded to the target If dest IP or dest Port be set to 0 it means any IP or any Port can sent data to module s serial port To some extent dest IP amp Port can be used as a filter If one of them is 0 the module will record every access to serial port and data from serial port will be forwarded to the most recent visitor In TCP Server WIFIMODII work as a TCP Server if the Destination Port set to 0 it allow any IP connect to it else specified allowed only 5 In TCP Client mode module will send its name amp group name just after connection established This can be used by server to identify module 6 When specified ping keep alive function will be enabled Module will periodically ping the specified IP router s IP recommended if the other did not respond within 1 minute the module will reset itself This feature is used to keep wireless connection for long time work Details for destination setting UDP mode DestiP 192 168 1 5 DestPort 55555 DestiP 192 168 1 5 DestPort 55555 DestiP 192 168 1 20 DestPort 99990 When destination been set explicitly Jinan USR IOT Technology Co Ltd Page 15 of 41 freda usr so On 6 ARK Usr cn USR WIFIMOD II User Gui
14. 995 l KAX I e gt I No explicit destination x l l l ABC I ABC WW I Src 192 168 1 5 55555 a Lal DEF l DEF Dst 192 168 1 5 55555 ee I l l l l eH gpi SG 192 168 1 50 55555 IKI w l Kl D Dst 192 168 1 50 55555 l l l l l Wo MNO SrC 192 168 1 5 55555 I Op pop Oo Sre 192 168 1 50 55555 3 STU l STU l Dst 192 168 1 50 55555 vw ywy DSt 192 168 1 50 55555 gt gt 2 3 3 Network setting IP mode How to set module s IP address Module IP Used if static IP mode is selected Subnet mask Gateway IP DNS DNS IP Jinan USR IOT Technology Co Ltd Page 18 of 41 freda usr so OSM A Usr cn USR WIFIMOD II User Guide www tcp232 net 2 3 4 Serial port setting Module Port on TCPIP Net port used to access module s serial port 1 Receive free time Hold Time 2 Receive packet size LoadMax 2 Baud rate data bits If Parity set to EVEN or ODD this should be set to 9bits stop bits Data Parity Data flow control If use RS485 here must choose RS485 control 1 In most cases there is no need to change this parameter If you need to change be sure NOT set to 12345 this is used for node discovery protocol Also avoid 4530 or 4540 if you do not use silver light or Flash socket technology In TCP server mode set this to 4530 will enable Silver Light Socket authentication mechanism This is used to support user s silver light p
15. For example visit http 192 168 1 254 sweb cgi page will return the com cache data Support three parameters file requested file Wait set serial waiting time Clean instructions to empty serial receive buffer later details GET the default used for file data if don t set wait parameters will use the parameters in the configuration of the default HoldTime instead POST usually is used to send data not setting the wait parametric representing not read serial port if setting wait 0 means not waiting the cache is directly read after sended Clean parameters used for empty serial receiving cache setting clean parameters can eliminate the influence of clutter data before it is suitable for command answer work style The exact process clear the cache Send tip Wait for receiving Read the cache Return to the page Wait parameter is used to specify the time of waiting for the serial port the unit is ms Jinan USR IOT Technology Co Ltd Page 30 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net Or BARR A 5 3 Page views of sweb mode WIFIMODII provide storage space that can be used to store user page file In addition to read local data but WIFIMODII also support from the serial port for file Visit the home page The WIFIMODII Sweb mode the default home page http IP visit will redirect to user space sweb index HTM The user can modify the page to realize custom user interface
16. ONS server aaa ae Advanced After all OK you can confirm the new IP setting just use a command ipconfig in cmd exe Alternate DNS server cy C WINDOWS system3 cmd exe Documents and Settings gt cmd Microsoft Windows AP Version 5 1 2688 GC Copyright 1985 2661 Microsoft Corp Documents and Settings gt ipconfig Mindows IP Configuration Ethernet adapter Wireless Network Connection Connection specific DHS Suffix IP Address 1 a Subnet Mask a a ew ew nne Default Gateway n n 192 168 1 165 200 200 2050 4 192 168 1 254 C 5 Documents and Settings gt m Jinan USR IOT Technology Co Ltd Page 9 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net On BARK ta Now you can use nternet Explorer Browser to visit the web page in WIFIMOD II type http 192 168 1 254 You will be asked to login fill User name and Password both with admin the default setting for WIFIMOD II Connect to 197 168 1 254 Zem wifimodII login User name admin Ve Remember my password Cancel After login you can change to the english version page on the page you can visit and change and save settings Jinan USR IOT Technology Co Ltd Page 10 of 41 freda usr so Belag A Usr cn A wifimodil Microsoft Internet Explorer USR WIFIMOD II User Guide www tcp232 net File Edit View Favorites Tools Help Q Back E L x a
17. On 6 ABH A Usr cn USR WIFIMOD II User Guide www tcp232 net USR WIFIMOD II user guide yi her ye at we Jinan USR IOT Technology Co Ltd Page of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tep232 net CONTENTS Teg AUIS gt Orf WIF ON RM NN E ER 3 gg le 3 t2 Parameter detA E 4 PERES EI TE 4 1 4 Power Supp o 1 5 e AT 9 2 ConfigureanduseUSR WIFIMOD J eee 6 2 1 Connect io VV UF Bn ee 6 2 2 WIFI Network mode chose 11 Z e ee le an ie e e isek bull neydi haa 12 2 252 IMA R Gl M O ierik iznine ln e E a 13 2 3 Configurate module erener 13 gt l ho Coto d e EE 14 29 2 NONI MOdE a E AN RE AD A A MM Y N VE AM 14 2 5 5 NEON Ke SEM sa ra sy s lala ln ony gelenin n ne minbamidadin 18 2 3 4 Serial port SEL N BEN 19 24Recovertofactorysettings eee 21 3 Work Mode EE 24 3A UDP m r EEE EEEE 24 3 2 TCP Server MOC C ME MR MA A A 24 GAS UG CMGI MOG EEN 24 34 SWEB MORG E A A A EE EE aE Renas 24 3 5 Virtual OMPortmodE 24 m4 EA SAMMONS eS E E A EAEE AT EEE T EA A A E A O E A E 25 4 1 UDP communication test it is factory model 25 Ee N Ua C Eeer 25 a NEB FO a E eee E E eee en eer ee 26 5 WEB Server in WIFIMOD M cicsdtsicissccsscesseiscstucassnaausddctevaiadsnueetgdscsdeiageasd oadeseveieca geengieneteianmenesdinuelacces 27 e Ee SUMMAN
18. characters the ASCII can display are not to be coded therefore Module serial port to receive 0x12 0x34 0x56 0x78 Ox9A 0xBC 0xDE 0xF0 Forward to web pages will be 124Vx 9a bc de f0 0x34 4 0x56 V 0x78 x This problem can use sweb the js url2Zarray function to solve this function use url string as input output analytic array unit for byte data such as url2array 124Vx 9a bc de f0 Returns an array eight unit were 0x12 0x34 0x56 0x78 Ox9A OxBC OxDE OxFO Jinan USR IOT Technology Co Ltd Page 39 of 41 freda usr so i U sr cn USR WIFIMOD II User Guide www tcp232 net Or BARR A 5 7 Senior content MIME types MIME type specified Maybe you need to specify the serial data back to the HTTP response head indicating MIME types this request may realize through the designated reg parameters like sweb cgi Req xx specify the type list as follows ee ee es m More content WIFIII module sweb HTM page includes the application of teaching the user can step by step according to the guidance of learn how to use sweb mode In addition in sweb directory also had previously offers many sweb footholds used to display the function of all sweb mode the user can refer to its source code In the SWEB practice section the user can under the tutorial guidance gradually into the web design process We can supply customer designing web function service Jinan USR IOT Technology Co
19. coding WIFIMODII network reception Serial output O o 0 WE4WBBWAD Ant E4 B8 AD E4 B8 AD EB IEB 8 7 HEG IG 87 EB I6B 8 7 E6 96 87 Browser sending bar Utf8 encoding WIFIMODII network reception Serial input 0000019002 40000019002 40000019002 00 01 02 003004 FF 003004 FF 003004 FF 03 04 FF Set reg 20 like sweb cgi Reg 20 can activate WIFIMODII built in URL Code codec Module in the network side receives the data will be as URL Code coded data decoding and then sent to the serial port Data receives from a serial port will go through URL Code coding and sent to the browser Because URL Code code characters totally are ASCII and UTF8 of intersection character part so we can in the browser side send any binary data to the serial port module serial port and any data can also be transmitted to the browser Shall be taken into consideration In order to realize arbitrary binary data forwarding URL Code coding former one byte of data into three bytes increase the transmission burden Users need to ensure that string sent to the module URL Code normative otherwise the module may output abnormal data Users in the web side need to analytic string received similar to 01 FF then can obtain the binary data can use the transition function provided by sweb Js Sweb js API function sweb_send_urlencode dat cb ok cb err Dat send string Cb ok callback functions af
20. de www tcp232 net DestiP 192 168 1 5 DestPort 55555 DestPort 959555 DestiP 192 168 1 20 DestPort 95595 miS j When destination IP not limited With explicit AY destination A A Serial Device DestiP 19216815 i NET Client DestPort 55555 DEF up TI Dst 192 168 1 5 55555 App Oi Sre 192 168 1 5 54321 x Sreportisnot 55555 l ppg Sre 192 168 1 50 55555 oie o aaO W x SrelPisnot 19216815 ABE pe Oi Sre 192 168 1 5 55555 p Jinan USR IOT Technology Co Ltd Page 16 of 41 freda usr so OR BARK www tcp232 net Usr cn USR WIFIMOD II User Guide With PORT f ilter N Serial Device i o NETClient jee 0000 i DestPort 55555 KKK gt No explicit destination x pg O Sre 192 168 1 5 54321 i lt D x Srcportisnot 99999 r6 192168 1 5 55555 wt pHi Sr0 192 168 1 50 55555 With IP filter RM SerialDevice an 1 NET Client I DestiP 19216815 1 DestPort 0 NAN EE 1 No explicit destination x l opp Sre 192 168 1 50 55555 l ii x Sre IP is not 192 168 1 5 aper ape E Sre 192 168 1 5 55555 CHI i GHI i re 192 168 1 5 54321 gd I I Jinan USR IOT Technology Co Ltd Page 17 of 41 freda usr so On BARK A Usr cn USR WIFIMOD II User Guide www tep232 net With dest f ilter AN Serial Device gt NET Client l l DestiP 0 0 0 0 l DestPort 95
21. dule bound to this AP by AP mac add If Roaming enabled module keep checking AP signal all the time When this value drop below user defined threshold module start to rescan in background lead to some performance loss until it find a new AP same SSID with better signal So if not in a multi AP environment and module is not keep moving do not enable it TIP WLAN LED blinks means that it is trying to associate to wireless network When it keeps on means module is on line 2 3 2 Work mode setting Work mode Module s service selection UDP TCPS TCPC 1 SWEB 2 UDPro test 3 Destination IP 4 Destination domain When in tcpc mode dest IP set to 0 0 0 0 this will indicate tcp connection destination e g www domain com After TCP connect 5 Ping IP 6 1 TCP Client mode module try to connect to Destination IP after link to WIFI network in the first 10 times every 15 Seconds try to connect if not connected after the 10 times the retry Frequency change to every 60 Seconds if connection is Disconnected it will retry connect Destination IP and Destination Port is the target for TCP Client to connect if Jinan USR IOT Technology Co Ltd Page 14 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net O BARK A Destination IP set to 0 0 0 0 WIFIMODII will Resolve the target domain this is based on DNS setting 2 SWEB mode see details in SWEB section 3 UDP_Pro mode UDP Pro
22. e will display Attention Form form action target must be set as sweb cgi Jinan USR IOT Technology Co Ltd Page 32 of 41 freda usr so O SAM A Usr cn USR WIFIMOD II User Guide www tcp232 net Form form enctype multipart form data method post two attributes can t be changed Form form only allow one type file document control and submit control cannot contain other input control 5 5 Interact with serial data Under sweb mode exchanging data with serial port is mainly through js script programming mode using the method of AJAX POST in the browser background control data sending and receiving and in the foreground to show This way exchange data will not be effected by the browser cache mechanism Quick access AJAX s way to exchange data will not refresh the page js script can completely control data exchange process partly change page content after processing AJAX requests must be launched by the browser similar to a command answer interactive way The browser uses POST way to sweb cgi to launch request to the implementation of the AJAX process WIFIMODII will respond on the one hand the request processing request data forward to com on the other hand according to the parameters set to return data AJAX transmission data default encoding is utf 8 Chinese will be sent to the serial port in utf 8 coding form if the serial port terminal does not support utf 8 decod
23. er Refresh network list you can see wifimodll 192 168 1 254 as follow picture It is a computer to computer network now connect to it Jinan USR IOT Technology Co Ltd Page 6 of 41 freda usr so OT SARH A Usr cn USR WIFIMOD II User Guide www tcp232 net Wireless Network Connection Network Task Choose a wireless network ci Refresh network list Click an item in the list below bo connect bo a wireless network in range or to get more information TP LINK_14D24E Connected For a home or small office Set up a wireless network T E Security enabled wireless network WP anil A Related Tasks va 1 Learn about wireless Unsecured wireless network aali networking CMEC Ko se Change the order of H preferred networks ye Change advanced A settings Unsecured wireless network aall oO Unsecured wireless network all wifimodl1 1927 168 1 254 Unsecured computer to computer network Because security is not enabled on this network information sent over this network might be visible to others To connect to this network click Connect Then it shows Acquiring network address Jinan USR IOT Technology Co Ltd Page 7 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net On BARK A Wireless Network Connection Network Task Choose a wireless network ci Refresh network list Click an item in the list below bo connect to a wireless network in range or to get more information
24. er is an important part of WIFIMODII design which has made the full display on the device homepage status and function reflecting its effect and function In addition WIFI also make many test and optimization to support WIFI mobile device browser mobile phones can also get the same effect as PC w 19 21 192 168 1 254 wifi seng The provide of user storage space makes it possible for some applications to custom page to write JS script logic to place Flash to deploy Java Applet and sweb model makes the page logical access come into reality The natural principle of this Web interface application is that the server module disposably provides interface framework HTML CSS IMG logic js and many times provides dynamic data ajax mode Users need to connect hardware equipment serial ports prepare static data design web pages and pages logic JS plan dynamic data format serial equipment plan command protocol As below Jinan USR IOT Technology Co Ltd Page 27 of 41 freda usr so On 6 ARK Usr cn USR WIFIMOD II User Guide www tcp232 net SWEB APPLICATION DEMO 1 om a e Working mode as below Jinan USR IOT Technology Co Ltd Page 28 of 41 freda usr so BC BARK A Usr cn USR WIFIMOD II User Guide www tcp232 net STEP1 Get Page Internet Explor kite He SEV Gu TAM pm gt d Oe D ht i atus htm oft Internet Explor RHE ee EEV ma TAG Bho gt AO Per Zeen
25. ing 00 FFabcd clear cache before wait for 100ms sweb send read urlencode 00 FFabcd 100 1 cb_ okch ert serial will output 0x00 Ox FF 0x61 0x62 0x63 0x64 if serial input 0x00 0x01 0x02 0x03 in 100ms function cb ok ret d alert ret value ret will output ret value 00 01 02 03 function cb err d alert Connection Break III the error indicating that the disconnect Application Send static binary data 0 x11 0 x22 0 x99 O x00 function SendBinVal sweb_send_urlencode 11 22 33 44 55 66 77 88 99 00 Binary string expressed as url list of the most simple way is add a character percent before every two Hex that is sent Jinan USR IOT Technology Co Ltd Page 38 of 41 freda usr so Usr cn USR WIFIMOD II User Guide www tcp232 net O BARK A Send the dynamic adjustment of binary data function SendBinVal id val var seg new Array 3 seg 0 170 OxAA seg 1 id no more than 255 seg 2 val no more than 255 sweb_send_urlencode array2url seg The function above has id val two parameters structure a 3 unit array pay attention to that each unit assignment can t be more than 255 Unit assignment through the array2url function this function is sweb built in API the array changed into url string Then send it out through the sweb_send_urlencode function Receiving binary data Note urlencode standard
26. ing display it will appear messy code If the terminal can receive save as files open in the Windows notepad way can normally display Windows notepad support utf 8 decoding Similarly if the Chinese character inputted in the terminal is not sent out in utf 8 coding the data browser receives also can appears messy code If the end support to send the file then it can try to send a utf 8 code files so that the browser end to analyze the Chinese Utf 8 in ASCII character is still single byte and codes the same but the Chinese character use 3 bytes In order to facilitate users to use WIFIMODII factory has packed the ajax process saved as sweb Js file stored in sweb directory Which has been defined function is as follows function sweb_send_utf8 dat cb_ok cb_err Dat send string Cb_ok callback functions after sent successfully Cb err callback functions after failing to send Jinan USR IOT Technology Co Ltd Page 33 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net This function will ask WIFIMODII just to send data to the serial port directly back not to stay Note that this function sends data in UTF8 coding characters that can be printed in ASCII table is sent to the serial port in single byte encoding can t send pure binary data flow function sweb send read utf8 dat wait clean cb ok cb_err Dat send string Wait wait for time parameter the unit is ms Clean before
27. modules setup page CN By sending specific string to module s serial port user can restore module to the factory default state This will be described in detail User defined state If properly configurate module will work in required mode and user could access module wireless Jinan USR IOT Technology Co Ltd Page 21 of 41 freda usr so BC BARK A Usr cn USR WIFIMOD II User Guide www tcp232 net config config improperly properly Factory State OH Recovery AR a Procedure Late kg Deaf State properly User Def State config improperly There are two ways to reset module to factory default state m By sending specific string via serial port By sending wifimod RSTOR without quotes to modules serial port module will boot in factory default mode And remember these must be done within 3 seconds after its reset or Power on a Deaf State Factory State The restore procedure just boot module in default mode giving user a chance to re configurate it But configurate information is not modified Without saving a reboot will lead module to the last configurate state Jinan USR IOT Technology Co Ltd Page 22 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net E Config amp Save amp Reset ete Tate N Reset new configuration must be saved before reset w H f modll recover tool pi Click me in 3 seconds after reboot Restore tool
28. owser s reaction speed WIFIMODII can realize this feature with the browser support in sweb mode the browser from serial requests the same file will be circular to use cache pages in order to reduce serial be taken up For this reason when debug sweb mode the browser refreshes user page in the serial port may not be requested information if the file changes you need to read the data can use the Ctrl F5 IE or Shift F5 Fire Fox to force the page to refresh The details in the page based on serial port development need to be paid attention to In normal use because the customer file generally does not change the cache mechanism will not cause problems Sweb cgi request a document with suffix name to access to other format files wifimodl reimbursement data the browser will make different treatment according to different suffix such as HTM JPG and so on pages elements will be directly displayed if rar hex and so on suffix will prompt to download With the aid of this process it can realize directly saving the com back data to local files through the browser downloads 5 4 Upload files to serial port Sweb mode can upload through the form to com file the form is submitted in the POST way As following form code lt form action Sweb cgi enctype multipart form data method post gt Select upload files lt input type file name files gt lt input type submit value Send gt lt form gt The pag
29. rogram using TCP socket to connect module Port 4540 is the same but for Flash XML Socket authentication 2 Module keep caching Serial input data until 2 conditions occur First incoming data interval longer than Hold Time Sencond cached data longer than Load Max These two conditions will lead cached data packing and forwarding Load Max amp Hold Time details Timeout Here we yo S AR 4 Byte Stream dk NR O lt Se T1 Holdtime rial a Bo o BS LoadMax 16 day 16 16 LoadMax 16 6 maz 6 os O a O a Net Packets If serial RX cache hold data exceed Hold Time Jinan USR IOT Technology Co Ltd Page 19 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net O BARR A Fullload Go T2 lt HoldTime Bo S If serial RX cache get enough data Jinan USR IOT Technology Co Ltd Page 20 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net 2 4 Recover to factory settings Factory default mode WIFIMODII initial wireless mode is AD HOC user can connected to module and configurate it in web browser wifimodlI 192 1684 pl 192 168 1 254 254 Kayda AD HOC N 4 Factory State When in default mode module open 55555 port for UDP to Serial service Deaf state Module may enter into DEAF state if configurate improperly in this state user can not connect to module wireless and can not access
30. send data to serial port whether clear the receiving cache Cb ok callback functions after sent successfully Cb err callback functions after failing to send This function will ask WIFIMODII to send data to the serial port waiting for the specified time return to com to receiving data Such as send requested string This is request sweb send read utf8 This is reguest 500 0 cb okch _ err function cb ok data d alert dat Prompt com to receive data function cb err d alert Connection Break III the error indicating that the disconnect function sweb send read utf8 dat wait clean cb ok cb err Dat send string Wait wait for time parameter the unit is ms Clean before send data to serial port whether clear the receiving cache Cb ok callback functions after sent successfully Cb err callback functions after failing to send Jinan USR IOT Technology Co Ltd Page 34 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net This function will ask WIFIMODII to send data to the serial port waiting for the specified time return to com to receiving data Such as send requested string This is request clear previous cache wait for 100ms sweb send read json This is reguest 100 1 cb ok cb err serial return json form data string such as val 100X function cb ok ret d alert ret value ret val
31. ter sent successfully Cb err callback functions after failing to send This function will prompte wifimodll receive URLCode data and send the data decoding forward to serial ports directly back not to stay The user can according to need send pure binary data flow to the serial port Such as Jinan USR IOT Technology Co Ltd Page 36 of 41 freda usr so Beleg A Usr cn USR WIFIMOD II User Guide www tcp232 net Send request URLCode coded binary string 00 FFabcd clear the cache before waiting for 100 ms Sweb_send_read_urlencode 00 FFabcd cb ok cb err serial will output 0x00 OxFF 0x61 0x62 0x63 0x64 function cb_ok ret d alert send ok function cb err d alert Connection Break III the error indicating that the disconnect function sweb send read urlencode dat wait clean cb_ok cb_err Dat send string Wait wait for time parameter the unit is ms Clean before send data to serial port whether clear the receiving cache Cb ok callback functions after sent successfully Cb err callback functions after failing to send This function will ask WIFIMODII to analytic URL Code data and then move to serial ports waiting for the specified time module will coding com return data transmitted to the browser Jinan USR IOT Technology Co Ltd Page 37 of 41 freda usr so Usr cn USR WIFIMOD II User Guide www tcp232 net O BARK A Such as send requested str
32. to 192 168 1 254 55555 USE ICP 37 lest R5232 to Ethernet Convert tester File F Options Q Help CH COMSettings COM port data receive Network data recerve MHetS etting PortNum COMI l Receive from 192 168 1 254 55555 1 Protocol http www uer on Bad 115200 2 Local host IP DPsiy NONE gt ENER Data B bit Open Discomect Recy Options Recy Options Receive to file Receive to file w Add line return W Add line return Receive As HEX Receive As HEX 3 Local host port Receive Pause Receive Pause Save Clear Save Clear Send Options Send Options Data from file Data from file Auto Checksum Auto Checksum Auto Clear Input Auto Clear Input Send As Hex Send As Hex Send Recycle RemotelP 192 168 1 2b4 Port 55555 Send Recycle Interval 0 ms SHA AEH AES a http fs www Wsr cn Interval 0 ms Send Send Load Clear Load Clear L Ready Send Rec 0 Reset L Ready Send 17 Recy 17 __Reset_ 4 2 Virtual COM Port test Jinan USR IOT Technology Co Ltd Page 25 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net Or BARK A 4 3 SWEB Test k 19 21 192 168 1 254 wifi 123 116 144 155 inde m ei ee Jinan USR IOT Technology Co Ltd Page 26 of 41 freda usr so Uer cn USR WIFIMOD II User Guide www tcp232 net Or BARK A 5 WEB Server in WIFIMODII 2 1 Sweb summary Web serv
33. y WPA Wi Fi Protected Access WPA is a security standard for users of device equipped with Wi Fi wireless connection It is an improvement on and is expected to replace the original Wi Fi security standard Wired Equivalent Privacy WEP There are two modes about the user authentication in WPA security The one is Enterprise which has authentication server and the other one is PSK Pre Shared Key which does not have any server WIFIMODII supports WPA PSK TKIP WPA 2 To final security of Wireless LAN IEEE 802 111 a standard about Wireless LAN has suggested the Counter Mode with Cipher Block Changing Message Authentication Code Protocol CCMP for replacing the TKIP CCMP uses Advanced Encryption Standard AES it is the WPA 2 that adopts the using the method WPA 2 has also both Enterprise and PSK mode WIFIMODII supports WPA 2 PSK AES WIFIMODII supports WEP WPA PSK TKIP and WPA2 PSK AES 2 2 1 Ad hoc Mode Wireless stations communicate each other without the AP So user can make a system more simply It is proper if there s no wired LAN requirement and it is a small network Some people call it peer to peer mode SS Figure 2 1 ad hoc Key feature m AP not essential low cost m More than one node can join in but limited m Static IP needed if DHCP server unavailable E Only WEP security supported Jinan USR IOT Technology Co Ltd Page 12 of 41 freda usr so OS BARR A Usr cn USR WIFIMOD II User
Download Pdf Manuals
Related Search
Related Contents
Data Becker E98 ChipResetter Zanussi ZWF 1421S Owner's Manual このよつなときは “ 日本アンテナ 6o=m型 Liebert XDV Network Card User Manual INGECON SUN SMART ROSETTA - Crem International Sommaire - Instructions Manuals Salt Palace Convention Center Hall A Hall B Hall C Hall Copyright © All rights reserved.
Failed to retrieve file