In this embodiment, the mobile station 100 is applied in a wireless local area network (WLAN). The mobile station 100 may be a laptop computer, a wireless fidelity (WiFi) phone, etc. The mobile station 100 includes a starting module 110, a display module 120, a transforming module 130, a transmitting module 140, a receiving module 150, and a setting module 160.
The starting module 110 is used for starting a communication parameter setting mode of the mobile station 100. In this embodiment, the mobile station 100 includes an input module such as a button (not shown). A communication parameter setting instruction is generated after the button has been pressed for a predetermined period of time such as 5 seconds. The starting module 110 starts the communication parameter setting mode of the mobile station 100 when the communication parameter setting instruction is generated.
The display module 120 indicates whether the mobile station 100 is in the communication parameter setting mode. The display module 120 includes a display device (not shown) and a display driver (not shown). The display device may be a light emitting diode (LED) or a liquid crystal display (LCD). In this embodiment, the display device is an LED. When the mobile station 100 is in a communicating mode, the LED is turned off by the display driver. When the mobile station 100 is in the communication parameter setting mode, the display driver turns on the LED.
The transforming module 130 performs Hash transformation on a media access control (MAC) address of the mobile station 100 creating a MAC address information packet.
The transmitting module 140 transmits a communication parameter setting request frame 300 (as shown in
The receiving module 150 is used for receiving predefined communication parameters sent by the access point 200.
The setting module 160 is used for setting communication parameters of the mobile station 100 according to the predefined communication parameters sent by the access point 200. In this embodiment, the setting module 160 saves the service set identifier (SSID), the channel number, the encrypt key, and the operation mode in a memory of the mobile station 100. The mobile station 100 communicates with the access point 200 in a normal mode after setting the communication parameters.
In this embodiment, the access point 200 is applied in the WLAN. The mobile station 100 and the access point 200 communicate with each other according to the Institute of Electrical and Electronics Engineers (IEEE) 802.11 protocol. The access point 200 includes a storage module 210, a starting module 220, a display module 230, a receiving module 240, a transforming module 250, a determination module 260, and a transmitting module 270.
The storage module 210 stores the predefined communication parameters. In this embodiment, the predefined communication parameters are necessary communication parameters of the mobile station 100, which include a setting identifier code such as a service set identifier (SSID), a channel number, an encryption key such as a wired equivalent privacy (WEP) key, an operation mode, and so on.
The starting module 220 starts a communication parameter setting mode of the access point 200. In this embodiment, the access point 200 includes an input module such as a button (not shown). A communication parameter setting instruction is generated after the button has been pressed for a predetermined period of time such as 5 seconds. The starting module 220 starts the communication parameter setting mode of the access point 200 when the communication parameter setting instruction is generated.
The display module 230 indicates whether the access point 200 is in the communication parameter setting mode. The display module 230 includes a display device (not shown) and a display driver (not shown). The display device may be an LED or an LCD. In this embodiment, the display device is the LED. When the access point 200 is in the communicating mode, the display driver turns off the LED. When the access point 200 is in the communication parameter setting mode, the display driver turns on the LED.
The receiving module 240 receives the communication parameter setting request frame 300 sent by the mobile station 100.
The transforming module 250 performs Hash transformation on the MAC address of the mobile station 100 creating a MAC address information packet.
The determination module 260 determines whether the mobile station 100 is a legal user. In this embodiment, the determination module 260 determines whether the mobile station 100 is a legal user by comparing the Hash transformation results of a same message done by the transforming module 130 and the transforming module 250. If the transforming module 130 and the transforming module 250 perform Hash transformation on a same massage and get the same results, the determination module 260 determines that the mobile station 100 is a legal user. Otherwise, the mobile station 100 is an illegal user.
The transmitting module 270 transmits data to the mobile station 100. In this embodiment, the data sent by the transmitting module 270 includes communication parameter setting response frames and the predefined communication parameters.
In this embodiment, the communication parameter setting request frame 300 includes a destination address field 310, a source address field 320, and a payload field 330. The destination address field 310 includes the MAC address of the access point 200. The source address field 320 includes the MAC address of the mobile station 100. The payload field 330 includes a MAC address information packet of the mobile station 100.
In detail, the MAC address information packet is the result of the Hash transformation of the MAC address of the mobile station 100. After the access point 200 receives the communication parameter setting request frame 300, the transforming module 250 performs a Hash transformation of the source address of the communication parameter setting request frame 300, namely the MAC address of the mobile station 100. If the determination module 260 determines the Hash transformation result of the MAC address of the mobile station 100 is the same as the MAC address information packet, the mobile station 100 is a legal user.
In step S400, the access point 200 receives a communication parameter setting instruction, and enters into a communication parameter setting mode.
In this embodiment, a button is configured in the access point 200, and the communication parameter setting instruction is generated after the button has been pressed for 5 seconds. After the access point 200 enters into the communication parameter setting mode, the driver of the display module 230 turns on the LED of the display module 230.
In step S402, the mobile station 100 receives a communication parameter setting instruction, and enters into a communication parameter setting mode.
In this embodiment, a button is configured in the mobile station 100, and the communication parameter setting instruction is generated after the button has been pressed for 5 seconds. After the mobile station 100 enters into the communication parameter setting mode, the driver of the display module 120 turns on the LED of the display module 120.
In step S404, the mobile station 100 sends the communication parameter setting request frame 300 to the access point 200.
In this embodiment, after the mobile station 100 and the access point 200 enter into the communication parameter setting mode, SSIDs of the mobile station 100 and the access point 200 are both set to a default character string “SAME-SSID”. Therefore, the mobile station 100 can send the communication parameter request frame 300 to the access point 200.
In step S406, the access point 200 determines whether the mobile station 100 is a legal user.
In this embodiment, the communication parameter setting request frame 300 sent by the mobile station 100 includes the MAC address information packet of the mobile station 100. The MAC address information packet is the result of the Hash transformation of the MAC address of the mobile station 100, and is stored in the payload field 330. After the access point 200 receives the communication parameter setting request frame 300, the transforming module 250 does Hash transformation of the source address stored in the source address field 320. The determination module 260 determines whether the Hash transformation result of the source address done by the access point 200 is the same as the MAC address information packet. If the results are the same, the mobile station 100 is a legal user, and step S408 is next. If the results are different, the mobile station 100 is an illegal user. In such case the access point 200 stops setting communication parameters for the mobile station 100.
In step S408, the access point 200 transmits a communication parameter setting response frame to the mobile station 100, and establishes a secure channel between the access point 200 and the mobile station 100.
In step S410, the access point 200 transmits the predefined communication parameters to the mobile station 100 via the secure channel.
In this embodiment, the predefined communication parameters are stored in the storage module 210. The predefined communication parameters include the SSID provided by the access point 200, the channel number, the encrypted key, and the operating mode. The SSID is different from the default SSID character string “SAME-SSID”, and can be changed by the access point 200 periodically, thereby improving the security of the wireless area network system.
In step S412, the mobile station 100 sets communication parameters of the mobile station 100 according to the predefined communication parameters.
In this embodiment, after the receiving module 150 receives the predefined communication parameters sent by the transmitting module 270, the setting module 160 saves the predefined communication parameters in a memory of the mobile station 100. Afterwards, the mobile station 100 can communicate with the access point 200 in a communicating mode. The driver of the display module 120 turns off the LED of the display module 120. Thus, the communication parameters of the mobile device 10 are automatically set.
The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or limited to the invention in the form disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art. The embodiment was chosen and described in order to best explain the principles of the invention, the practical application, and to enable others of ordinary skill in the art to understand the invention for various embodiments with various modifications as are suited to the particular use contemplated.
Number | Date | Country | Kind |
---|---|---|---|
200610062433.5 | Sep 2006 | CN | national |