background image

www.linksprite.com 

 

 

1

 / 

50

 

 

 
 
 

 

LS-UART-WiFi Module User Manual 

 
 

May 2010 

 
 
 
 
 
 
 

 

)PIGXVSRMGW

GSQ -RG

[[[ IPIGXVSRMGW

GSQ

Содержание UART2WF

Страница 1: ...www linksprite com 1 50 LS UART WiFi Module User Manual May 2010 PIGXVSRMGW GSQ RG IPIGXVSRMGW GSQ...

Страница 2: ...meter Explanation 18 3 5 Automatic networking 20 3 6 Manual networking 21 3 7 TCP Monitor Mode Test 23 3 8 Text Transfer Test 24 3 9 Document Trabsfer Test 26 3 10 The Answers of Familiar Questions 27...

Страница 3: ...4 3 16 Message of TCP Failed Sending 40 4 4 Configuration parameters 41 4 4 1 System parameters 41 4 4 2 Network parameters 41 4 5 Programming Guide 43 4 5 1 The Example of Network Control 43 4 5 2 T...

Страница 4: ...wep128 data transmission Support automatic networking mode and manual networking mode o In the automatic mode the module can automatically scan the target network and can automatically reconnect when...

Страница 5: ...cation deployment of new wires and the following construction often become a bottleneck In contrast WLAN can be embedded in the monitoring and control terminals therefore reduces the wire deployment a...

Страница 6: ...www linksprite com 6 50 2 Function Descriptions 2 1 Block Diagram...

Страница 7: ...www linksprite com 7 50...

Страница 8: ...need to be set to connect to the target network This module supports up to seven target networks and users can set seven groups of network parameters Each group of network parameter includes BSSID Th...

Страница 9: ...tomatic connection mode without any user intervention WLAN module automatically scans and connects to the network after the power on reset If one of the following situations occurs WLAN module will au...

Страница 10: ...nected automatically and user will receive a confirmation message after successful connection After that user can send data normally If the connection is disconnected accidentally in the process the m...

Страница 11: ...automatically This encryption mode must be used with the AP designed by LinkSprite CCMP In the encryption mode of WPI user needs to set 16 byte key Broadcast is achieved from AP automatically This enc...

Страница 12: ...al time but low integrity data transmission such as audio and video data transmission UDP format is also good for data broadcasting When Data Link Layer of the WLAN module uses UDP format the informat...

Страница 13: ...Transparent transmission means that the WLAN module transmits transparently the data it receives from the serial user port to the network The data transmission model is as following The module must m...

Страница 14: ...ts reliable data transmission and can handle out of order loss damage of data in the process of transmission When TCP format is used in Link Layer it is highly recommended that the user enables ACK wh...

Страница 15: ...ich do not support the TCP Monitoring mode Enable TCP Monitoring After connecting with the AP the WLAN module returns the message of successful connection to user Then WLAN module enters TCP Monitorin...

Страница 16: ...communicates with WLAN module through the computer serial port The functions include 1 Send command to control the WLAN module 2 Receive and analyze the message sent by the WLAN module 3 Set or inquir...

Страница 17: ...1 conduct the data transmission testing with client software 2 Use as server for online update of the WLAN module firmware 3 2 Client Software The client software connects to WLAN module through the c...

Страница 18: ...s and displays the result in the export window Parameters configuration It analyzes and modifies the system parameters and the seven groups of network parameters of WLAN module In the connection statu...

Страница 19: ...ing sending and receiving text receiving document In this mode the server does not support sending document TCP Testing First set up a TCP server and set the Link Layer data format of WLAN module to T...

Страница 20: ...configuration button Please do not set the parameter during transmission 2 Choose parameter index 3 Check the box of encryption setting and modify the encryption method 4 Click the Save button 5 Modif...

Страница 21: ...P data formats Local IP address This is the IP address of the WLAN module It is arbitrarily defined by user but it must be a valid IP address of the target AP and is not used by other devices It is wo...

Страница 22: ...a format is UDP Otherwise this parameter can be ignored Serial Baud Rate It defines the data rate of the serial port It configures the serial transmission data rate of the WLAN module Please refer to...

Страница 23: ...matically scan network after power on reset If it finds a target network it automatically connects and sends out an confirmation message of a successful connection as shown here 3 6 Manual Connection...

Страница 24: ...com 24 50 1 Click the Join button 2 Choose the group number of the network parameters then click OK 3 Connect successfully Disconnect the connection 1 Click Leave button 2 Disconnect successfully Sca...

Страница 25: ...tus after a successful connection 3 Use the Internet Explorer in tester 2 and connect to the WLAN module Fill in IP address and port number with the their actual values 4 After receiving a request the...

Страница 26: ...nection button and choose disconnect to disconnect the TCP connection as shown below 6 In the Internet Explorer window the character string that was typed in the client software is shown 3 8 Text Tran...

Страница 27: ...www linksprite com 27 50...

Страница 28: ...ksprite com 28 50 3 9 Document Transmission Test The client and server software also support the document transmission As an example the process that the client sends a document to the server is shown...

Страница 29: ...on Why does the message of Notice Module disconnected appear when a user command is sent in the client software Check if the serial port setting of the client software is accurate Check if the WLAN mo...

Страница 30: ...AP If so format conversion is needed Here is an example of the format conversion for a 64 bit WEP key If the key of AP uses hexadecimal format Suppose the key of AP is 10 hexadecimal numbers 12345678...

Страница 31: ...rd has nothing to do with the WLAN module In the demo system the tow sides of the communication are IP of the WLAN module device IP of the network card in the server computer Question when UDP format...

Страница 32: ...T serial is defined in the corresponding serial protocol Serial data may include control data and user data Control Data The definition and transmission mechanism of control data between a user termin...

Страница 33: ...range of its value is 0 15 In data frame if it is the retry of the previous frame then the sequence number remain unchanged Otherwise the sequence number increments 1 every time In ACK acknowledgement...

Страница 34: ...send the next frame as following Continuous sending mode The data frame whose A is set to 0 uses this transmission mode The sender can continuously send frame after it has sent a frame of data It does...

Страница 35: ...st execute the command it receives In this system command can only be originated by a host computer MESSAGE It defines the message that the sender wants to send to the receiver The sender does not nee...

Страница 36: ...ommand to Scan Network FLG 0x00 PORTMASK Channel mask The first byte represents channels 1 8 Bit0 represents Channel 1 Bit1 represents Channel 2 etc The lower 6 bits of the second byte represent chann...

Страница 37: ...er BSSID BSSID of network LEN Length of SSID SSID SSID of network 4 3 4 Command to Connect to a Network FLG 0x01 IDX 0 indicates default configuration network 1 7 indicate which group of network confi...

Страница 38: ...work 4 3 6 Command to disconnect network FLG 0x02 RES 0 disconnects normally Others disconnect abnormally 4 3 7 Message of Network Disconnected FLG 0x42 RES 0 disconnects normally Others disconnect ab...

Страница 39: ...Meaning 0x00 Reserved 0x01 BSSID 0x02 Channel 0x03 SSID 0x04 Encryption method 0x05 Secret Key 0x06 Data format of Link Layer 0x07 Service Port 0x08 IP address of device 0x09 IP address of server 0x0...

Страница 40: ...ength of INFO field INFO Parameter content 4 3 9 Message of Setting Parameters FLG 0x43 RES 0 successful others failed 4 3 10 Command to Inquire Parameters FLG 0x04 PB Group number of network paramete...

Страница 41: ...Group number of network parameter M Parameter ID Its definition is same as setting parameter LEN Length of INFO field INFO Parameter content 4 3 12 Reset Order FLG 0x05 RES Not defined 4 3 13 Message...

Страница 42: ...ersion 4 3 14 Command to connect a TCP connection FLG 0x06 RES 0 Set up a connection 1 Disconnect a connection Other reserved 4 3 15 Message of TCP connection Status FLG 0x46 RES 0 connection is succe...

Страница 43: ...ission mode 0 close 1 enable this mode is only valid in automatic connection mode and UDP data format TCP Server Mode Its length is 1 byte It defines the TCP monitor mode 0 close 1 enable this mode is...

Страница 44: ...truct KEY_WPI INT8U Unicast 32 INT8U pad 22 KEY_WPI CCMP typedef struct KEY_CCMP INT8U Unicast 16 INT8U pad 38 KEY_CCMP Data Type Its length is 1 byte It defines the data format of Link Layer Valid va...

Страница 45: ...SubnetGate 2 1 SubnetGate 3 1 Then only SubnetGate 3 is in use others are ignored SerIpAddr Its length is 4 bytes It defines the IP address of data center server The format is same as StaIpAddr SerMac...

Страница 46: ...t to the target network defined in the first group of parameters Create the following command where the highlighted blue part is to connect 01 to first group of parameters 01 The returned message of s...

Страница 47: ...of privacy keys the keys are 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 0x30 Create the following command look at the highlighted blue part 4 5 3 Example of sending data Example 1 Sen...

Страница 48: ...0xc5 0xb7 0x26 0x53 0xc2 0xb0 0x21 0x5a 0xcb 0xb9 0x28 0x5d 0xcc 0xbe 0x2f 0xe0 0x71 0x03 0x92 0xe7 0x76 0x04 0x95 0xee 0x7f 0x0d 0x9c 0xe9 0x78 0x0a 0x9b 0xfc 0x6d 0x1f 0x8e 0xfb 0x6a 0x18 0x89 0xf2...

Страница 49: ...al protocol a new PB field is added 5 M field of Parameter ID in parameter setting command parameter inquiry command parameter inquiry message of user serial protocol is redefined 6 In the initializat...

Страница 50: ...c Add 1410 Cannon Mountain Dr Longmont CO 80503 Tel 720 204 8599 Email sales linksprite com Support support linksprite com Web www linksprite com PIGXVSRMGW GSQ RG EWX 4EVO ZI SPYQFMERE 3 KIRIVEP IPIG...

Отзывы: