Abstract:
The disclosure relates to a wireless communication network. Provided are a method and device for establishing a convenient wireless connection, the method including: configuring a first wireless access device to have a wireless station function; configuring a second wireless access device to have a wireless access point function; the first wireless access device discovering the second wireless access device by scanning wireless access points; the second wireless access device discovering the first wireless access device by scanning wireless stations; after having discovered each other, the first wireless access device and the second wireless access device establishing a wireless connection through negotiation, and after connection establishment, respectively functioning as wireless access points so as to establish a wireless local area network (WLAN) easily accessible by a large number of users. The solution simplifies network interconnection and optimizes the wirelessly connected local area network.

Description:
TECHNICAL FIELD 
       [0001]    The disclosure relates to the wireless communication network, and in particular, to convenient networking and applications of a wireless local area network (WLAN). The disclosure provides a method and a relevant device for rapidly and conveniently establishing a wireless connection of a secure WLAN. 
       BACKGROUND 
       [0002]    With the popularization of the devices supporting the WLAN function and the maturing of the wireless technologies, more and more users contact and use the WLAN, and now it is very popular to use the WLAN in business areas, and the devices having the WLAN function used in places such as homes of users are also gradually popularized. 
         [0003]    In a traditional manner, when a user newly establishes a wireless network, he or she must manually set a network name Service Set Identifier (SSID) and a secure key at a wireless access point (AP), and then when a station (STA) accesses, the AP side performs security check by authenticating the key. In the entire process, it is required that the user has the basic knowledge of the WiFi device and the capability of modifying necessary configurations. Specifically, in this process, a common user needs to know what is the SSID, AP and STA, and needs to know various types of encryption manners and configuration methods, which are very difficult for the users to understand and use, so that the common users feel that the WLAN networking process is very complex. In order to conveniently establish a WLAN and securely add new network application devices to the WLAN, the WiFi Alliance develops a WiFi Protected Setup (WPS) specification. In the specification, it is defined that the installation of an AP and the addition of the network application devices are managed by logic entities such as a keygen. 
         [0004]    At present, AP devices on the market all support the convenient access of the WPS STA, this causes that the number of user accesses in the same AP device has great limitations. When there are a certain number of STAs needing to establish the same wireless local area network, the requirement for convenient access can not be met. 
       SUMMARY 
       [0005]    The embodiments of the disclosure provide a method and device for establishing a convenient wireless connection, so as to be able to better solve the problem of rapidly and conveniently establishing a wireless connection of a WLAN. 
         [0006]    According to one aspect of the embodiment of the disclosure, a method for establishing a convenient wireless connection is provided, including: 
         [0007]    configuring a first wireless access device to have a wireless station function; 
         [0008]    configuring a second wireless access device to have a wireless access point function; 
         [0009]    the first wireless access device discovering the second wireless access device by scanning a wireless access point; 
         [0010]    the second wireless access device discovering the first wireless access device by scanning a wireless station; and 
         [0011]    after the first wireless access device and the second wireless access device respectively discover each other, the first wireless access device and the second wireless access device establishing a wireless connection via negotiation. 
         [0012]    In an example embodiment, before the first wireless access device discovering the second wireless access device by scanning the wireless access point, the method further includes: activating the first wireless access device. 
         [0013]    In an example embodiment, the first wireless access device scans, within a preset time after being activated, wireless access devices having the wireless access point function on all available wireless channels. 
         [0014]    In an example embodiment, the method further includes: 
         [0015]    if the first wireless access device scans and discovers multiple wireless access devices having the wireless access point function within the preset time after being activated, the first wireless access device generating information which is used for indicating that multiple convenient wireless connections are not able to be established at the same time, and notifying a user of the information; and 
         [0016]    if the first wireless access device does not discover any wireless access device having the wireless access point function within the preset time after being activated, the first wireless access device generating information which is used for indicating that there is no wireless access point for interaction, and notifying the user of the information. 
         [0017]    In an example embodiment, before the second wireless access device discovering the first wireless access device by scanning the wireless station, the method further includes: activating the second wireless access device. 
         [0018]    In an example embodiment, the second wireless access device scans, within a preset time after being activated, wireless access devices having the wireless station function on all available wireless channels. 
         [0019]    In an example embodiment, the method further includes: 
         [0020]    if the second wireless access device scans and discovers multiple wireless access devices having the wireless station function within the preset time after being activated, the second wireless access device generating information which is used for indicating that multiple convenient wireless connections are not able to be established at the same time, and notifying the user of the information; and 
         [0021]    if the second wireless access device does not discover any wireless access device having the wireless station function within the preset time after being activated, the second wireless access device generating information which is used for indicating that there is no wireless access point for interaction, and notifying the user of the information. 
         [0022]    In an example embodiment, the second wireless access device is reconfigured to have the wireless station function, and connect to other wireless access device having the wireless access point function. 
         [0023]    According to another aspect of the embodiment of the disclosure, a device for establishing a convenient wireless connection is provided, including: 
         [0024]    a configuration unit which is adapted to configure a first wireless access device to have a wireless station function, and configure a second wireless access device to have a wireless access point function; 
         [0025]    a scanning unit which is adapted to discover the second wireless access point by scanning a wireless access point, and discover the first wireless access device by scanning a wireless station; and 
         [0026]    a connection unit which is adapted to establish, after the first wireless access device and the second wireless access device are respectively discovered, a wireless connection between the first wireless access device and the second wireless access device via negotiation 
         [0027]    In an example embodiment, the device further includes: 
         [0028]    an activation unit which is adapted to activate the first wireless access point before the second wireless access device is discovered by scanning the wireless access point; and activate the second wireless access device before the first wireless access device is discovered by scanning the wireless station. 
         [0029]    Comparing with the related art, the embodiments of the disclosure have the following beneficial effects. 
         [0030]    The embodiments of the disclosure enable the user to conveniently, rapidly, and effectively accomplish the establishment of the WLAN security system. At the same time, the embodiments enlarge the coverage range of the wireless signals, and ensure the quality of the wireless connection, thus achieving the effects of optimizing the network layout and improving the user experience. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0031]      FIG. 1  is a diagram showing the principle of the method for establishing a convenient wireless connection provided in an embodiment of the disclosure; 
           [0032]      FIG. 2  is a working flowchart of the device for establishing a convenient wireless connection provided in an embodiment of the disclosure; 
           [0033]      FIG. 3  is a schematic structural diagram of a wireless access device provided in an embodiment of the disclosure. 
           [0034]      FIG. 4  is a schematic diagram showing the secure and convenient wireless connection provided in an embodiment of the disclosure. 
       
    
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS 
       [0035]    The example embodiments of the disclosure are further illustrated hereinafter in conjunction with the drawings. It should be understood that the embodiments described herein are just to illustrate and explain, rather than limit the disclosure. 
         [0036]      FIG. 1  is a diagram showing the principle of the method for establishing a convenient wireless connection provided in an embodiment of the disclosure. As shown in  FIG. 1 , the method include steps described as follows. 
         [0037]    In Step  101 , a first wireless access device is configured to have a wireless station function, and a second wireless access device is configured to have a wireless access point function. 
         [0038]    In Step  102 , the first wireless access device discovers the second wireless access device by scanning a wireless access point; and the second wireless access device discovers the first wireless access device by scanning a wireless station. 
         [0039]    Before the first wireless access device discovers the second wireless access device by scanning the wireless access point, the first wireless access device is activated. Then, the first wireless access device scans, within a preset time after being activated, wireless access devices having the wireless access point function on all available wireless channels. If the first wireless access device does not discover any wireless access device having the wireless access point function within the preset time after being activated, the first wireless access device generates information which is used for indicating that there is no wireless access point for interaction, and notifying the user of the information. If the first wireless access device discovers one wireless access device having the wireless access point function within the preset time after being activated, the first wireless access device negotiates with the wireless access device and establishes a convenient wireless connection, such as the second wireless access device as described in the present embodiment. If the first wireless access device scans and discovers multiple wireless access devices having the wireless access point function within the preset time after being activated, the first wireless access device generates information which is used for indicating that multiple convenient wireless connections are not able to be established at the same time, and notifies a user of the information. 
         [0040]    Before the second wireless access device discovers the first wireless access device by scanning the wireless station, the second wireless access device is activated. Then, the second wireless access device scans, within a preset time after being activated, wireless access devices having the wireless station function on all available wireless channels. If the second wireless access device does not discover any wireless access device having the wireless station function within the preset time after being activated, the second wireless access device generates information which is used for indicating that there is no wireless access point for interaction, and notifying the user of the information. If the second wireless access device discovers one wireless access device having the wireless station function within the preset time after being activated, the second wireless access device negotiates with the wireless access device and establishes a convenient wireless connection, such as the first wireless access device as described in the present embodiment. If the second wireless access device scans and discovers multiple wireless access devices having the wireless station function within the preset time after being activated, the second wireless access device generates information which is used for indicating that multiple convenient wireless connections are not able to be established at the same time, and notifies the user of the information. 
         [0041]    In Step  103 , after the first wireless access device and the second wireless access device respectively discover each other, the first wireless access device and the second wireless access device establishes a wireless connection via negotiation. After connection accomplishment, the first wireless access device and the second wireless access device are enabled to respectively serve as the wireless access points to establish a conveniently-accessed wireless local area network for a large number of users. 
         [0042]    The second wireless access device is reconfigured to have the wireless station function, and connect to other wireless access device having the wireless access point function. 
         [0043]    An embodiment of the disclosure also provides a device for establishing a convenient wireless connection. The device includes: 
         [0044]    a configuration unit which is adapted to configure a first wireless access device to have a wireless station function, and configure a second wireless access device to have a wireless access point function; 
         [0045]    an activation unit which is adapted to activate the first wireless access point before the second wireless access device is discovered by scanning a wireless access point; and activate the second wireless access device before the first wireless access device is discovered by scanning a wireless station; 
         [0046]    a scanning unit which is adapted to discover the second wireless access point-by scanning the wireless access point, and discover the first wireless access device by scanning the wireless station; and 
         [0047]    a connection unit which is adapted to establish, after the first wireless access device and the second wireless access device are respectively discovered, a wireless connection between the first wireless access device and the second wireless access device via negotiation. 
         [0048]      FIG. 2  is a working flowchart of the device for establishing a convenient wireless connection provided in an embodiment of the disclosure. As shown in  FIG. 2 , the working flow includes steps described as follows. 
         [0049]    In Step  201 , a configuration unit of a wireless access device WLANAP 1  is used to configure the WLANAP 1  to be of an STA mode, after the configuration, the WLANAP 1  not only has the wireless station function (i.e. the STA function), but also has the wireless access point function (i.e. the AP function). A configuration unit of a wireless access device WLANAP 2  is used to configure the WLANAP 2  to be of an AP mode, and the WLANAP 2  has the AP function. 
         [0050]    In Step  202 , the WPS function of the WLANAP 1  serving as the STA device is activated by short pressing (e.g., within three seconds) a WPS press key on the activation unit of the WLANAP 1 . The WPS function of the WLANAP 2  serving as the AP is activated by long pressing the WPS press key on the activation unit of the WLANAP 2 . 
         [0051]    In Step  203 , after the WLANAP 1  is activated, the scanning unit thereof searches wireless access devices which support the WPS PBC function and have the AP function on all available wireless channels within a predetermined time (e.g., within two minutes), and when the wireless access devices having the AP function are found, the number of the found wireless access devices is determined. If the number is one, i.e. the WLANAP 2 , the connection unit sends a WPS negotiation request to the WLANAP 2 , and if both parties are successful in negotiation, a convenient wireless connection between the WLANAP 1  and the WLANAP 2  is established and the information of “the WPS connection is successful” is displayed. If the number is less than one, that is, equal to zero, the information of “no WPS interaction device” is displayed. If the number is greater than one, the information of “multiple WPS connections can not be established simultaneously” is displayed. After the WLANAP 2  is activated, the scanning unit thereof searches wireless access devices which support the WPS PBC function and have the STA function on all available wireless channels within a predetermined time (e.g., within two minutes), and when the wireless access devices having the STA function are found, the number of the found wireless access devices is determined. If the number is one, i.e. the WLANAP 1 , the connection unit sends a WPS negotiation request to the WLANAP 1 , and if both parties are successful in negotiation, a convenient wireless connection between the WLANAP 1  and the WLANAP 2  is established and the information of “the WPS connection is successful” is displayed. If the number is less than one, that is, equal to zero, the information of “no WPS interaction device” is displayed. If the number is greater than one, the information of “multiple WPS connections can not be established simultaneously” is displayed. 
         [0052]      FIG. 3  is a schematic structural diagram of a wireless access device provided in an embodiment of the disclosure. As shown in  FIG. 3 , the wireless access device includes a mode setting button, a triggering module, a WPS module, a drive module and a display module. 
         [0053]    The mode setting button implements the function of the configuration unit. The wireless access device as described in the embodiment of the disclosure has two modes of AP and STA. When the wireless access device is configured to be of the AP mode via the mode setting button, the wireless access device only has the AP function. When the wireless access device is configured to be of the STA mode via the mode setting button, the wireless access device has the AP function and the STA function simultaneously. 
         [0054]    The triggering module and the WPS module implement the function of the activation unit. The triggering module has a button triggering the WPS function. When the wireless access device is in the STA mode, the triggering module has a WPS start press key, when the WPS start press key is long pressed (e.g., more than three seconds), the WPS of the wireless access device serving as the AP is activated; and when the WPS press key is short pressed (within three seconds), the WPS of the wireless access device serving as the STA is activated. The WPS module starts the corresponding WPS function according to the mode setting (the AP mode or the STA mode) of the wireless access device and the operation (long press or short press) of the triggering module. 
         [0055]    The drive module implements the functions of the scanning unit and the connection unit. The drive module has not only the capability of searching the WPS connections, but also the drive program of the WPS wireless connection, etc., and can also send the information about the number of the found WLAN clients supporting the WPS PBC access to the display module. 
         [0056]    The display module is configured to conduct different operations according to the information about the number of the clients supporting the WPS PBC sent by the drive module. When the number of the clients supporting the WPS PBC is one, “the WPS connection is successful” is displayed. When the number of the clients supporting the WPS PBC is less than one, that is, equal to zero, “no WPS interaction device” is displayed. When the number of the clients supporting the WPS PBC is greater than one, “multiple WPS connections can not be established simultaneously” is displayed. 
         [0057]      FIG. 4  is a schematic diagram showing the secure and convenient wireless connection provided in an embodiment of the disclosure. As shown in  FIG. 4 , firstly, the WLANAP 1  is configured to be of the STA mode, and the WPS module of the WLANAP 1  is triggered by the triggering module of the WLANAP 1 . The WLANAP 2  is configured to be of the AP mode, and the WPS module of the wireless connection terminal WLANAP 2  device is triggered by the triggering module of the WLANAP 2 . Then, after the WLANAP 1  is activated, the drive module thereof searches the wireless access devices (i.e. the WLANAPs) which support the WPS PBC function and have the AP function on all available wireless channels within a predetermined time (e.g., within two minutes after the WLANAP 1  is activated). When WLANAPs are found, the number thereof is determined. If the number of the WLANAPs is one, that is, the WLANAP 2  is found, the drive module of the WLANAP 1  sends a WPS negotiation request to the drive module of the WLANAP 2 , and if both parties are successful in the negotiation, a convenient wireless connection between the WLANAP 1  and the WLANAP 2  is established and “the WPS connection is successful” is displayed on the display modules of both parties. If the number of the WLANAPs is less than one, that is, equal to zero, the drive module of the WLANAP 1  notifies the display module to display “no WPS interaction device”. If the number of the WLANAPs is greater than one, the drive module of the WLANAP 1  notifies the display module to display “multiple WPS connections can not be established simultaneously”. After the WLANAP 2  is activated, the drive module thereof searches the WLANAPs which support the WPS PBC function and have the STA function on all available wireless channels within a predetermined time (e.g., within two minutes after the WLANAP 1  is activated). When WLANAPs are found, the number thereof is determined. If the number of the WLANAPs is one, that is, the WLANAP 1  is found, the drive module of the WLANAP 2  sends a WPS negotiation request to the drive module of the WLANAP 1 , and if both parties are successful in the negotiation, a convenient wireless connection between the WLANAP 1  and the WLANAP 2  is established and “the WPS connection is successful” is displayed on the display modules of both parties. If the number of the WLANAPs is less than one, that is, equal to zero, the drive module of the WLANAP 1  notifies the display module to display “no WPS interaction device”. If the number of the WLANAPs is greater than one, the drive module of the WLANAP 1  notifies the display module to display “multiple WPS connections can not be established simultaneously”. 
         [0058]    It can be concluded from the above descriptions that the method for establishing a secure and convenient wireless connection has the following features. The user triggers the WPS module of the wireless connection terminal WLANAP 1 . The WPS module triggers the drive module of the WLANAP 1 . The drive module searches the WLANAPs supporting the WPS PBC function on all available wireless channels, and when having found the WLANAPs, sends the informatics about the number of the found WLANAPs to the display module, and conducts corresponding processing according to the number of the found WLANAPs. Specifically, when the number is zero, the display module displays “no WPS interaction device”; when the number is greater than one, the display module displays “multiple WPS connections can not be established simultaneously”; and when the number is equal to one and the negotiation succeeds, the display module displays “the WPS connection is successful”. The WLANAPs having the STA function can trigger, according to the requirements of the user, to search the WLANAPs which support the WPS PBC function and have the AP function on all available wireless channels; after the searching is completed, the information about the number of the found WLANAPs is sent to the display module thereof, and the display module thereof displays correspondingly according to the number of the found WLANAPs. If the number of the found WLANAPs is one, the WPS negotiation request is sent to the WLANAP, and if the negotiation succeeds, a secure connection is established. The WLANAPs having the AP function can trigger, according to the requirements of the user, to search the WLANAPs (i.e. the WLANSTA terminal devices) which support the WPS PBC function and have the STA function on all available wireless channels; after searching, the information about the number of the found WLANAPs is sent to the display module thereof, and the display module thereof displays correspondingly according to the number of the found WLANAPs, and if the number of the found WLANAPs is one, the WPS negotiation request is sent to the WLANAP, and if the negotiation succeeds, a secure connection is established. 
         [0059]    Furthermore, when many users access the WLAN and the users are widely separated, if the WLANAP 1  and the WLANAP 2  are connected successfully, the WLANAP 2  may be configured to be of the STA mode, so that the WLANAP 2  serves as the STA, which gets connected to the WLANAPS configured to be of the AP mode, thereby furthermore expanding the application scope of the WLAN wireless access devices. 
         [0060]    In summary, the embodiments of the disclosure have the following technical effects: 
         [0061]    1. in the embodiments of the disclosure, the mutual connection between the wireless access devices is implemented by means of the WPS convenient access, thereby simplifying the interconnection between the networks, and helping the user to conduct networking; 
         [0062]    2. in the embodiments of the disclosure, the interconnection between the wireless access devices is implemented, and the signal coverage range of the wireless access devices is also enlarged, thereby optimizing the wireless connection local area network. 
         [0063]    Although the embodiments of the disclosure are described in detail above, the disclosure is not limited thereto, and various modifications can be made by those skilled in the art according to the principles of present invention. Therefore, any modification made according to the principles of present invention is to be understood as falling within the protection scope defined by the claims of the disclosure. 
       INDUSTRIAL APPLICABILITY 
       [0064]    The technical solution provided by the embodiment of the disclosure can be applied to the wireless network field, and can enable the user to conveniently, rapidly, and effectively accomplish the establishment of the WLAN security system, and enlarges the coverage range of the wireless signals, ensures the quality of the wireless connection, thus achieving the effects of optimizing the network layout and improving the user experience.