WO2016011741A1 - 自动连接无线局域网的方法及装置 - Google Patents

自动连接无线局域网的方法及装置 Download PDF

Info

Publication number
WO2016011741A1
WO2016011741A1 PCT/CN2014/091574 CN2014091574W WO2016011741A1 WO 2016011741 A1 WO2016011741 A1 WO 2016011741A1 CN 2014091574 W CN2014091574 W CN 2014091574W WO 2016011741 A1 WO2016011741 A1 WO 2016011741A1
Authority
WO
WIPO (PCT)
Prior art keywords
local area
wireless local
area network
list
network list
Prior art date
Application number
PCT/CN2014/091574
Other languages
English (en)
French (fr)
Inventor
李棽
王恒
相里飞
Original Assignee
小米科技有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 小米科技有限责任公司 filed Critical 小米科技有限责任公司
Priority to JP2016535332A priority Critical patent/JP6144428B2/ja
Priority to KR1020157001334A priority patent/KR101678038B1/ko
Priority to MX2015000071A priority patent/MX356724B/es
Priority to RU2015101570/08A priority patent/RU2604429C2/ru
Priority to BR112015001406A priority patent/BR112015001406A2/pt
Priority to US14/620,730 priority patent/US20160029419A1/en
Publication of WO2016011741A1 publication Critical patent/WO2016011741A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present disclosure relates to the field of communications technologies, and in particular, to a method and apparatus for automatically connecting to a wireless local area network.
  • the terminal device can store the name and password of the wireless local area network to which it is connected, so that when the wireless local area network is detected again, the stored password can be used for automatic connection.
  • the wireless local area network includes a WIFI (Wireless Fidelity) network, and various networks based on the IEEE (Institute of Electrical and Electronics Engineers) 802.11 protocol.
  • WIFI Wireless Fidelity
  • IEEE Institute of Electrical and Electronics Engineers 802.11 protocol.
  • the judging method in the related art is to determine whether the names of the two wireless local area networks before and after are the same. If the names are the same, it is determined that the currently detected wireless local area network is the same wireless local area network as the previously connected wireless local area network.
  • the embodiments of the present disclosure provide a method and an apparatus for automatically connecting a wireless local area network, so as to improve the accuracy of determining whether the previously connected wireless local area network and the currently detected wireless local area network are the same wireless local area network, and reducing The probability of automatic connection failure, reducing interference to users.
  • a method for automatically connecting a wireless local area network including:
  • the wireless local area network connection status is an unconnected state and the first wireless local area network is detected, generating a first wireless local area network list according to the currently searched name of the surrounding wireless local area network, wherein the first wireless local area network has the same name in the storage Connection information of the second wireless local area network;
  • the second wireless local area network list is a wireless local area network list of the second wireless local area network
  • the connection request is initiated to the first wireless local area network according to the pre-stored connection information of the second wireless local area network.
  • the generating method of the second wireless local area network list may include:
  • a second wireless local area network list corresponding to the second wireless local area network is generated according to the name of the surrounding wireless local area network obtained by the search.
  • the method may further include:
  • the second wireless local area network list is updated according to the first wireless local area network list.
  • the beneficial effect of the embodiment is that, by updating the second wireless local area network list, the stored second wireless local area network list can be improved, and the matching comparison result obtained by using the improved second wireless local area network list is more accurate, thereby improving the pair.
  • the accuracy of the same WLAN judgment reduces the failure rate of automatic connection.
  • the updating the second wireless local area network list according to the first wireless local area network list may include:
  • the second wireless local area network list is replaced with the first wireless local area network list.
  • the beneficial effect of this embodiment is that by merging the first wireless local area network list with the second wireless local area network list, the entries in the second wireless local area network list can be continuously supplemented, and the second wireless local area network list can be improved; by replacing the second wireless local area network list For the first wireless local area network list, the stored second wireless local area network list can be continuously updated in real time.
  • the method may further include:
  • the first wireless local area network list is stored when the matching comparison result does not meet the preset condition.
  • the beneficial effect of this embodiment is that when the matching comparison result does not meet the preset condition, the first wireless local area network currently detected relative to the second wireless local area network is a newly discovered wireless local area network, which corresponds to its own wireless local area network list. Therefore, the first wireless local area network list is stored for use in subsequent operations.
  • connection to the first wireless local area network according to the pre-stored connection information of the second wireless local area network Initiating a connection request which may include:
  • connection information of the second wireless local area network one by one, initiating a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized;
  • the beneficial effects of this embodiment are that, by sorting the second wireless local area network, using the connection password of the second wireless local area network for automatic connection according to the order, the number of attempts to connect the password for automatic connection can be reduced, thereby reducing the number of automatic connection operations of the terminal device. , saving terminal equipment resources.
  • the matching and comparing the first wireless local area network list with the pre-stored second wireless local area network list to obtain a matching comparison result may include:
  • the beneficial effect of this embodiment is that, compared with the number of identical entries in the two wireless local area network lists, the matching comparison result obtained by using the implementation manner in this embodiment can more accurately reflect the matching of two wireless local area network lists.
  • the degree improves the accuracy of subsequent judgments on the same wireless local area network, and reduces the failure rate of automatic connection.
  • an apparatus for automatically connecting to a wireless local area network including:
  • a detecting module configured to generate, according to the currently searched name of the surrounding wireless local area network, a first wireless local area network list when the wireless local area network connection status is an unconnected state and the first wireless local area network is detected, where the first wireless local area network is Connection information of the second wireless local area network having the same name in the storage;
  • a matching comparison module configured to compare and match the first wireless local area network list with the pre-stored second wireless local area network list to obtain a matching comparison result, where the second wireless local area network list is a wireless local area network of the second wireless local area network List
  • connection module configured to initiate a connection request to the first wireless local area network according to the pre-stored connection information of the second wireless local area network, when the matching comparison result meets the preset condition.
  • the apparatus may further include:
  • a generating module configured to search for a name of a current surrounding wireless local area network when the second wireless local area network is in a connected state; and generate a second wireless local area network list corresponding to the second wireless local area network according to the name of the surrounding wireless local area network obtained by the search .
  • the apparatus may further include:
  • an update module configured to update the second wireless local area network list according to the first wireless local area network list after the connection request is successfully sent to the first wireless local area network.
  • the updating module may include:
  • a first update unit configured to add an entry in the first wireless local area network list that is not included in the second wireless local area network list to the second wireless local area network list;
  • a second update unit configured to replace the second wireless local area network list with the first wireless local area network list.
  • the apparatus may further include:
  • a storage module configured to store the first wireless local area network list when the matching comparison result does not meet the preset condition.
  • connection module may include:
  • a first connecting unit configured to initiate a connection to the first wireless local area network by using connection information of the second wireless local area network one by one when the matching comparison result of the at least two second wireless local area networks meets the preset condition Request until the connection is successful or the connection information has been utilized;
  • a second connecting unit configured to: when the matching comparison result of the at least two the second wireless local area networks meets the preset condition, the at least two second wireless local area networks according to a sequence of matching comparison results from large to small Performing sorting; sequentially using the connection information of the second wireless local area network one by one to initiate a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized.
  • the matching comparison module may include:
  • a matching comparison unit configured to determine a number of the same number of entries in the first wireless local area network list and the second wireless local area network list; and determine a ratio of the number of the same name to the total number of the second wireless local area network list The ratio is used as a matching comparison result corresponding to the second wireless local area network.
  • an apparatus for automatically connecting to a wireless local area network comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the wireless local area network connection status is an unconnected state and the first wireless local area network is detected, generating a first wireless local area network list according to the currently searched name of the surrounding wireless local area network, wherein the first wireless local area network has the same name in the storage Connection information of the second wireless local area network;
  • the second wireless local area network list is a wireless local area network list of the second wireless local area network
  • the connection request is initiated to the first wireless local area network according to the pre-stored connection information of the second wireless local area network.
  • the technical solution provided by the embodiment of the present disclosure may include the following beneficial effects: by performing a matching comparison on a wireless local area network list of a wireless local area network having the same name, and automatically connecting according to the matching comparison result, it is possible to improve the determination of the previously connected wireless local area network and the current Whether the detected wireless local area network is the accuracy of the same wireless local area network, avoids misidentification of different wireless local area networks of the same name into the same wireless local area network, reduces the probability of automatic connection failure, and reduces interference to users.
  • FIG. 1 is a flow chart showing a method of automatically connecting a wireless local area network, according to an exemplary embodiment.
  • FIG. 2 is a flow chart showing a method of automatically connecting a wireless local area network, according to an exemplary embodiment.
  • FIG. 3 is a flow chart showing a method of automatically connecting a wireless local area network according to an exemplary embodiment.
  • FIG. 4 is a block diagram of an apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 5 is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 6A is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 6B is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 7 is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 8A is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 8B is a block diagram of another apparatus for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 9 is a block diagram of an apparatus suitable for automatically connecting to a wireless local area network, according to an exemplary embodiment.
  • FIG. 1 is a flowchart of a method for automatically connecting a wireless local area network according to an exemplary embodiment.
  • the method for automatically connecting a wireless local area network is used for a terminal device such as a mobile phone, a tablet computer, a notebook computer, etc., having a wireless network card.
  • the device includes the following steps S101-S104:
  • step S101 when the wireless local area network connection state is the unconnected state and the first wireless local area network is detected, the first wireless local area network list is generated according to the name of the currently searched surrounding wireless local area network.
  • the first wireless local area network has connection information of a second wireless local area network with the same name in the storage.
  • step S102 the first wireless local area network list is compared with the pre-stored second wireless local area network list to obtain a matching comparison result.
  • the second wireless local area network list is a wireless local area network list of the second wireless local area network.
  • the generating method of the second wireless local area network list may include: searching for the name of the current surrounding wireless local area network when the second wireless local area network is in the connected state; generating the corresponding second according to the name of the surrounding wireless local area network obtained by the search A second wireless local area network list for wireless local area networks.
  • the currently detected first wireless local area network name is D.
  • a wireless local area network named D is connected, and the connected wireless local area name D is a second wireless local area network, and the storage has a second wireless medium.
  • LAN connection information When the second wireless local area network is in the connected state, the name of the current surrounding wireless local area network is searched; and the second wireless local area network list corresponding to the second wireless local area network is generated according to the name of the surrounding wireless local area network obtained by the search, and is marked as the list ListD2.
  • the first WLAN list is labeled as the list ListD1, and the list ListD1 is compared with the list ListD2 according to step S102 to obtain a matching comparison result corresponding to the second WLAN.
  • step S102 can be implemented as the following steps A1-A2.
  • step A1 the number of the same entry in the first wireless local area network list and the name in the second wireless local area network list is determined.
  • step A2 the ratio of the number of identical names to the total number of second wireless local area network lists is determined, and the ratio is used as a matching comparison result corresponding to the second wireless local area network.
  • the comparison result obtained by using the implementation in this embodiment can more accurately reflect the matching degree of the two WLAN lists, thereby improving the subsequent pair of the same wireless.
  • the accuracy of the LAN judgment reduces the failure rate of automatic connection.
  • step S102 is not limited to be implemented in other manners.
  • step S102 may be implemented as: determining a number of the same name of the first wireless local area network list and the stored second wireless local area network list, and determining the number of the same name as the matching comparison result corresponding to the second wireless local area network.
  • step S102 may be implemented to: determine a number of entries of the first wireless local area network list and a name of the stored second wireless local area network list, and determine a ratio of the number of identical names to the total number of entries in the first wireless local area network list, and determine The ratio is taken as the matching comparison result corresponding to the second wireless local area network.
  • step S103 when the matching comparison result meets the preset condition, a connection request is initiated to the first wireless local area network according to the pre-stored connection information of the second wireless local area network.
  • step S103 may be implemented to: when the ratio obtained by the matching comparison is greater than the preset ratio, determine that the matching comparison result meets the preset condition.
  • the first wireless local area network list is a list ListD1 and the second wireless local area network list is a list ListD2.
  • the number of identical entries of the list ListD1 and the list ListD2 is 7, and the total number of entries of the list ListD2 is 10. It can be determined that the match comparison result of the list ListD1 and the list ListD2 is 70%.
  • the preset ratio is set to 60%, and the matching comparison result is 70% larger than the preset ratio of 60%, so it can be determined that the matching comparison result meets the preset condition.
  • step S103 can be implemented according to the technical solution in the following embodiments.
  • step S103 may be implemented to: initiate connection requests to the first wireless local area network by using connection information of the plurality of second wireless local area networks that match the comparison condition by using the matching comparison result, until the connection is successful or the connection information has been Used until now.
  • step S103 may be implemented to: sort the plurality of second wireless local area networks whose matching comparison result meets the preset condition according to the order of matching comparison results; sequentially use the second wireless local area network one by one.
  • the connection information initiates a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized.
  • the steps S102-103 may be performed to: perform the first wireless local area network list and a second wireless local area network list. Matching comparison, obtaining a matching comparison result; if the matching comparison result meets the preset condition, the connection request is initiated to the first wireless local area network according to the connection information of the second wireless local area network; if the matching comparison result does not meet the preset condition, the first The foregoing operation is repeated by comparing a wireless local area network list with a next second wireless local area network list. Do so until the connection is successful or each second WLAN list has been matched for comparison.
  • the second wireless local area network list is updated with the first wireless local area network list.
  • the method further includes updating the second wireless local area network list according to the first wireless local area network list after the connection request to the first wireless local area network is successful.
  • the updating the second wireless local area network list according to the first wireless local area network list may be implemented by: adding an entry in the first wireless local area network list that is not included in the second wireless local area network list to the second wireless local area network list.
  • the list ListD2 stored in step S103 is the second wireless local area network list
  • the first wireless local area network list is the list ListD1
  • the items not included in the list ListD1 by the list ListD2 are added to the list ListD2.
  • the stored list ListD2 can be improved, and the matching comparison result obtained by using the improved list ListD2 is more accurate, thereby improving the accuracy of the judgment of the same wireless local area network and reducing the failure rate of the automatic connection.
  • the foregoing embodiment is an exemplified embodiment, and does not limit the implementation of updating the second wireless local area network list according to the first wireless local area network list.
  • updating the second wireless local area network list according to the first wireless local area network list may be implemented by replacing the second wireless local area network list with the first wireless local area network list.
  • the stored first wireless local area network list can be continuously updated in real time.
  • the method may further include the step of: storing the first wireless local area network list when the matching comparison result does not meet the preset condition.
  • the first wireless local area network list stored in the above steps can be used in subsequent operations.
  • the terminal device may pop up a prompt window prompting to input a connection password.
  • the stored first wireless local area network list is converted into a second wireless local area network list.
  • the stored first wireless local area network list is the wireless local area network list to be verified, and the currently detected first wireless local area network is the wireless local area network to be verified.
  • the wireless local area network is detected again, when the wireless local area network detected again has the same name as the wireless local area network to be inspected, the wireless local area network list to be verified is matched and compared with the wireless local area network list of the wireless network detected again; when the matching comparison result is met.
  • the preset condition is met, the automatic connection is not started, and the terminal device can pop up a prompt window to prompt for the connection password.
  • the list of the wireless LAN to be verified becomes a second wireless local area network list
  • the wireless local area network to be verified becomes a second wireless local area network
  • the input connection password is used as the connection information.
  • the wireless local area network list to be verified may be updated according to the wireless local area network list of the wireless local area network that is detected again.
  • the matching comparison result when the matching comparison result does not meet the preset condition, it indicates that the currently detected first wireless local area network and the second wireless local area network of the same name, although the names are the same, are not the same wireless local area network, and the first wireless currently detected.
  • the local area network is a newly discovered wireless local area network, which corresponds to its own wireless local area network list, so the first wireless office will be
  • the domain network list is stored for use in subsequent operations.
  • the first method provided by the embodiment of the present disclosure enables a terminal device, such as a mobile phone, to automatically connect to a wireless local area network
  • the application is in the following scenario: the terminal device has successfully connected to the second wireless local area network named A, and the name is recorded as WIFI A, when the second wireless local area network is in a connected state, establish a second wireless local area network list ListA2 according to the name of the searched wireless local area network, for example, ListA2 includes five wireless local area networks, respectively: WIFI A, WIFI B, WIFI C , WIFI D, WIFI E.
  • the connection name of the second wireless local area network WIFI A, WIFI A, and the second wireless local area network list ListA2 are stored in the terminal device.
  • the terminal device proceeds as follows:
  • step S201 when the wireless local area network connection state is the unconnected state and the first wireless local area network named A is detected, the first wireless local area network list ListA1 is generated according to the name of the currently searched surrounding wireless local area network.
  • step S202 the first wireless local area network list ListA1 and the second wireless local area network list ListA2 are matched and compared to determine the number of the same name, and the number of the same name is the proportion of the total number of entries in the second wireless local area network list ListA2. As a match comparison result.
  • step S203 it is determined whether the matching comparison result is greater than the setting ratio of 60%. If the matching comparison result is greater than the setting ratio of 60%, step S204 is performed, and if the matching comparison result is less than or equal to the setting ratio of 60%, step S206 is performed.
  • step S204 a connection request is initiated to the first wireless local area network by using the stored connection password of the second wireless local area network WIFI A.
  • step S205 the second wireless local area network list ListA2 is updated according to the first wireless local area network list ListA1.
  • step S206 when the matching comparison result is less than or equal to the setting ratio of 60%, the connection request to the first wireless local area network is abandoned, and the first wireless local area network list ListA1 is stored.
  • the first embodiment by performing a matching comparison on the wireless local area network list of the wireless local area network having the same name, and automatically connecting according to the matching comparison result, it can be improved whether the previously connected wireless local area network and the currently detected wireless local area network are the same wireless local area network.
  • the accuracy rate reduces the probability of misidentifying the duplicated WLAN into the same WLAN, and reduces the probability of automatic connection failure, reducing unnecessary interference to the user.
  • Embodiment 2 The foregoing method provided by the embodiment of the present disclosure enables a terminal device, such as a mobile phone, to automatically connect to a wireless local area network, and the application thereof is in the following scenario: in the terminal device, corresponding to the name of the wireless local area network, WIFI B, two connections are stored.
  • the password is a connection password PasswordB1 and a connection password PasswordB2, and a second wireless local area network list ListB21 is stored corresponding to the connection password PasswordB1, and a second wireless local area network list ListB22 is stored corresponding to the connection password PasswordB2.
  • the terminal device performs the following operations as follows:
  • step S301 when the wireless local area network connection state is the unconnected state and the first wireless local area network named B is detected, the first wireless local area network list ListB1 is generated according to the name of the currently searched surrounding wireless local area network.
  • step S302 the second wireless local area network lists ListB21 and ListB22 are respectively compared with the first wireless local area network list ListB1, and the matching comparison result of each of the second wireless local area network lists ListB21 and ListB22 is obtained.
  • the result of the matching comparison of the second WLAN list ListB21 is that the number of matching second WLAN list ListB21 and the name of the same name in the first WLAN list ListB1 occupies the proportion of the total number of entries in the second WLAN list ListB21.
  • the result of the matching comparison of the second WLAN list ListB22 is that the number of matching second WLAN list ListB22 and the name of the same name in the first WLAN list ListB1 occupies the proportion of the total number of entries in the second WLAN list ListB22.
  • step S303 the matching comparison result of each of the second wireless local area network lists ListB21 and ListB22 is compared with the setting ratio of 60%, respectively.
  • step S304 when the two matching comparison results do not meet the preset condition, the connection request is sent to the first wireless local area network, and the first wireless local area network list ListB1 is stored.
  • step S305 when the number of matching comparison results that meet the preset condition is 1, the connection request corresponding to the second wireless local area network list that meets the preset condition is used to initiate a connection request to the first wireless local area network, and The second wireless local area network list is updated according to the first wireless local area network list List B1.
  • step S305 when the matching comparison result of the second WLAN list ListB21 meets the preset condition, in step S305, the connection password PasswordB1 corresponding to the stored second WLAN list ListB21 is used to initiate a connection request to the first WLAN, and according to The first wireless local area network list List B1 updates the second wireless local area network list ListB21.
  • step S306 when the number of matching comparison results that meet the preset condition is 2, the second wireless local area network lists ListB21 and ListB22 are sorted in order of matching comparison results, and the stored connection passwords are sequentially used one by one. , initiate a connection request to the first wireless local area network until the connection is successful or both connection passwords have been utilized.
  • the matching comparison result of the second wireless local area network list ListB21 and ListB22 obtained in step S302 is 80% and 70%, respectively, and the second wireless local area network list ListB21 and ListB22 are sorted, firstly corresponding to the second wireless local area network list ListB21.
  • the connection password PasswordB1 initiates a connection request to the first wireless local area network. If the connection is successful, the subsequent steps are performed; if the connection fails, the connection request PasswordB2 corresponding to the second wireless local area network list ListB22 is used to initiate a connection request to the first wireless local area network.
  • step S307 after the connection request is successfully initiated to the first wireless local area network, the second wireless local area network list corresponding to the connection password used for the connection is updated according to the first wireless local area network list ListB1.
  • step S308 after the connection request to the first wireless local area network fails, the first wireless local area network list ListB1 is stored.
  • the second embodiment by performing a matching comparison on the wireless local area network list of the wireless local area network having the same name, and automatically connecting according to the matching comparison result, it can be improved whether the previously connected wireless local area network and the currently detected wireless local area network are the same wireless local area network. Accuracy, reduce the misjudgment of the duplicated wireless LAN into the same wireless local area The probability of the network, and reduce the probability of automatic connection failure, reducing unnecessary interference to the user.
  • the device for automatically connecting to a wireless local area network includes:
  • the detecting module 41 is configured to generate a first wireless local area network list according to the name of the currently searched surrounding wireless local area network when the wireless local area network connection state is the unconnected state and the first wireless local area network is detected, wherein the first wireless local area network is in the storage Connection information of a second wireless local area network having the same name;
  • the matching comparison module 42 is configured to compare and match the first wireless local area network list with the pre-stored second wireless local area network list to obtain a matching comparison result, where the second wireless local area network list is a wireless local area network list of the second wireless local area network;
  • the connection module 43 is configured to initiate a connection request to the first wireless local area network according to the pre-stored connection information of the second wireless local area network when the matching comparison result meets the preset condition.
  • the foregoing apparatus may further include:
  • the generating module 44 is configured to search for the name of the current surrounding wireless local area network when the second wireless local area network is in the connected state; and generate a second wireless local area network list corresponding to the second wireless local area network according to the name of the surrounding wireless local area network obtained by the search.
  • the foregoing apparatus may further include:
  • the update module 45 is configured to update the second wireless local area network list according to the first wireless local area network list after the connection request to the first wireless local area network is successful.
  • the above update module 45 may include:
  • the first update unit 451 is configured to add an entry in the first wireless local area network list that is not included in the second wireless local area network list to the second wireless local area network list;
  • the second update unit 452 is configured to replace the second wireless local area network list with the first wireless local area network list.
  • the foregoing apparatus may further include:
  • the storage module 46 is configured to store the first wireless local area network list when the matching comparison result does not meet the preset condition.
  • connection module 43 may include:
  • the first connection unit 431 is configured to initiate a connection request to the first wireless local area network by using the connection information of the second wireless local area network one by one when the matching comparison result of the at least two second wireless local area networks meets the preset condition, until the connection is successful or connected Information has been used; or
  • the second connection unit 432 is configured to: when the matching comparison result of the at least two second WLANs meets the preset condition, sort the at least two second WLANs in descending order of the matching comparison result;
  • the connection request of the second wireless local area network is used one by one to initiate a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized.
  • the matching comparison module 42 may include:
  • the match comparison unit 421 is configured to determine a name in the first wireless local area network list and the second wireless local area network list The number of identical entries is referred to; the ratio of the number of identical names to the total number of second wireless local area network lists is determined, and the ratio is used as the matching comparison result corresponding to the second wireless local area network.
  • the device for automatically connecting to the wireless local area network provided by the embodiment of the present disclosure can improve the judgment of the previously connected wireless local area network and the currently detected wireless network by performing a matching comparison on the wireless local area network list of the wireless local area network having the same name and performing automatic connection according to the matching comparison result. Whether the wireless local area network is the accuracy of the same wireless local area network, reduces the probability of misidentifying the duplicated wireless local area network into the same wireless local area network, reduces the probability of automatic connection failure, and reduces unnecessary interference to the user.
  • FIG. 9 is a block diagram of an apparatus 1200 suitable for automatically connecting to a wireless local area network, the apparatus being applicable to a terminal device, according to an exemplary embodiment.
  • device 1200 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
  • device 1200 can include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, And a communication component 1216.
  • processing component 1202 memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, And a communication component 1216.
  • Processing component 1202 typically controls the overall operation of device 1200, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
  • Processing component 1202 can include one or more processors 1220 to execute instructions to perform all or part of the steps of the above described methods.
  • processing component 1202 can include one or more modules to facilitate interaction between component 1202 and other components.
  • processing component 1202 can include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202.
  • Memory 1204 is configured to store various types of data to support operation at device 1200. Examples of such data include instructions for any application or method operating on device 1200, contact data, phone book data, messages, pictures, videos, and the like.
  • the memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Disk Disk or Optical Disk.
  • Power component 1206 provides power to various components of device 1200.
  • Power component 1206 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 1200.
  • Multimedia component 1208 includes a screen between the device 1200 and a user that provides an output interface.
  • the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
  • the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
  • the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Every The front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capabilities.
  • the audio component 1210 is configured to output and/or input an audio signal.
  • audio component 1210 includes a microphone (MIC) that is configured to receive an external audio signal when device 1200 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
  • the received audio signal may be further stored in memory 1204 or transmitted via communication component 1216.
  • audio component 1210 also includes a speaker for outputting an audio signal.
  • the I/O interface 1212 provides an interface between the processing component 1202 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
  • Sensor assembly 1214 includes one or more sensors for providing status assessment of various aspects to device 1200.
  • sensor assembly 1214 can detect an open/closed state of device 1200, a relative positioning of components, such as the display and keypad of device 1200, and sensor component 1214 can also detect a change in position of one component of device 1200 or device 1200. The presence or absence of contact by the user with the device 1200, the orientation or acceleration/deceleration of the device 1200 and the temperature change of the device 1200.
  • Sensor assembly 1214 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
  • Sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 1214 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 1216 is configured to facilitate wired or wireless communication between device 1200 and other devices.
  • the device 1200 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 1216 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
  • the communication component 1216 also includes a near field communication (NFC) module to facilitate short range communication.
  • NFC near field communication
  • the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • device 1200 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the above methods.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor or other electronic component implementation for performing the above methods.
  • non-transitory computer readable storage medium comprising instructions, such as a memory 1204 comprising instructions executable by processor 820 of apparatus 1200 to perform the above method.
  • the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
  • a device for automatically connecting to a wireless local area network comprising:
  • a memory for storing processor executable instructions
  • processor is configured to:
  • the wireless local area network connection status is an unconnected state and the first wireless local area network is detected, generating a first wireless local area network list according to the currently searched name of the surrounding wireless local area network, wherein the first wireless local area network has the same name in the storage Connection information of the second wireless local area network;
  • the second wireless local area network list is a wireless local area network list of the second wireless local area network
  • the connection request is initiated to the first wireless local area network according to the pre-stored connection information of the second wireless local area network.
  • the processor is further configured to: when the second wireless local area network is in a connected state, search for a name of a current surrounding wireless local area network; generate a second corresponding to the second wireless local area network according to a name of the surrounding wireless local area network obtained by the search Wireless LAN list.
  • the processor is further configured to: after the connection request is initiated to the first wireless local area network, update the second wireless local area network list according to the first wireless local area network list.
  • the processor is further configured to: add an entry in the first wireless local area network list that is not included in the second wireless local area network list to the second wireless local area network list; or
  • the second wireless local area network list is replaced with the first wireless local area network list.
  • the processor is further configured to store the first wireless local area network list when the matching comparison result does not meet the preset condition.
  • the processor is further configured to: when the matching comparison result of the at least two of the second wireless local area networks meets the preset condition, use the connection information of the second wireless local area network one by one to initiate the first wireless local area network Connection request until the connection is successful or the connection information has been utilized; or
  • connection information of the second wireless local area network initiates a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized.
  • the processor is further configured to: determine a number of entries of the first wireless local area network list and names in the second wireless local area network list;
  • a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method of automatically connecting to a wireless local area network, the method comprising:
  • the wireless local area network connection status is an unconnected state and the first wireless local area network is detected, generating a first wireless local area network list according to the currently searched name of the surrounding wireless local area network, wherein the first wireless local area network has the same name in the storage Connection information of the second wireless local area network;
  • the second wireless local area network list is a wireless local area network list of the second wireless local area network
  • the connection request is initiated to the first wireless local area network according to the pre-stored connection information of the second wireless local area network.
  • the method for generating the second WLAN list may include:
  • a second wireless local area network list corresponding to the second wireless local area network is generated according to the name of the surrounding wireless local area network obtained by the search.
  • the method can also include:
  • the second wireless local area network list is updated according to the first wireless local area network list.
  • the updating the second wireless local area network list according to the first wireless local area network list may include:
  • the second wireless local area network list is replaced with the first wireless local area network list.
  • the method can also include:
  • the first wireless local area network list is stored when the matching comparison result does not meet the preset condition.
  • the request to initiate the connection to the first WLAN according to the pre-stored connection information of the second WLAN may include :
  • connection information of the second wireless local area network one by one, initiating a connection request to the first wireless local area network until the connection is successful or the connection information has been utilized;
  • the matching and comparing the first wireless local area network list with the pre-stored second wireless local area network list to obtain a matching comparison result may include:

Abstract

本公开是关于自动连接无线局域网的方法及装置,用以降低自动连接失败的概率,减少对用户的干扰。所述方法包括:在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表;将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果;当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。本公开技术方案可以提高判断同一无线局域网的准确率,降低自动连接失败的概率,减少对用户的干扰。

Description

自动连接无线局域网的方法及装置
本申请基于申请号为201410360907.9、申请日为2014年7月25日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。
技术领域
本公开涉及通信技术领域,尤其涉及自动连接无线局域网的方法及装置。
背景技术
相关技术中,终端设备能够存储其连接过的无线局域网的名称和密码,以便当再次检测到该无线局域网时,可以利用存储的密码进行自动连接。其中,无线局域网包括WIFI(Wireless Fidelity,无线保真)网络,以及基于IEEE(Institute of Electrical and Electronics Engineers,美国电子和电气工程师协会)802.11协议的各种网络。在利用存储的密码进行自动连接时,需要判断当前检测到的无线局域网与之前连接过的无线局域网是否为同一无线局域网。相关技术中的判断方法为,判断前后两个无线局域网的名称是否相同,如果名称相同,则判定当前检测到的无线局域网与之前连接过的无线局域网为同一无线局域网。
但是,现实中存在很多重名的无线局域网,利用无线局域网的名称判断前后两个无线局域网是否为同一无线局域网,可能会出现判断错误,在终端设备侧造成自动连接失败。通常情况下,当自动连接失败时,终端设备会不断弹出窗口,提示用户重新输入密码,对用户造成干扰。
发明内容
为克服相关技术中存在的问题,本公开实施例提供自动连接无线局域网的方法及装置,用以提高判断之前连接过的无线局域网和当前检测到的无线局域网是否为同一无线局域网的准确率,降低自动连接失败的概率,减少对用户的干扰。
根据本公开实施例的第一方面,提供一种自动连接无线局域网的方法,包括:
在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
在一个实施例中,所述第二无线局域网列表的生成方法,可包括:
当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;
根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
在一个实施例中,所述方法还可包括:
当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
本实施例的有益效果在于,通过更新第二无线局域网列表,可以对存储的第二无线局域网列表进行改进,使用改进之后的第二无线局域网列表进行匹配比较所得匹配比较结果更加准确,进而提高对同一无线局域网判断的准确性,降低自动连接的失败率。
在一个实施例中,所述根据所述第一无线局域网列表对所述第二无线局域网列表进行更新,可包括:
将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
将所述第二无线局域网列表替换为所述第一无线局域网列表。
本实施例的有益效果在于,通过将第一无线局域网列表与第二无线局域网列表进行合并,能够不断补充第二无线局域网列表中条目,完善第二无线局域网列表;通过将第二无线局域网列表替换为第一无线局域网列表,可以对存储的第二无线局域网列表进行不断的实时更新。
在一个实施例中,所述方法还可包括:
当在所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
本实施例的有益效果在于,当在匹配比较结果未符合预设条件,说明相对于第二无线局域网当前检测到的第一无线局域网为一新发现的无线局域网,其对应有自己的无线局域网列表,因此将第一无线局域网列表存储,以便后续操作中使用。
在一个实施例中,当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,所述根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,可包括:
逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
本实施例的有益效果在于,通过将第二无线局域网排序,按排序使用第二无线局域网的连接密码进行自动连接,能够减少尝试连接密码进行自动连接的次数,进而减少终端设备的自动连接操作次数,节约终端设备资源。
在一个实施例中,所述将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,可包括:
确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;
确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
本实施例的有益效果在于,与以两个无线局域网列表中相同条目的数目为匹配比较结果相比,采用该实施例中实现方式所得匹配比较结果能更准确地反映两个无线局域网列表的匹配程度,进而提高后续对同一无线局域网判断的准确性,减少自动连接的失败率。
根据本公开实施例的第二方面,提供一种自动连接无线局域网的装置,包括:
检测模块,用于在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
匹配比较模块,用于将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
连接模块,用于当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
在一个实施例中,所述装置还可包括:
生成模块,用于当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
在一个实施例中,所述装置还可包括:
更新模块,用于当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
在一个实施例中,所述更新模块,可包括:
第一更新单元,用于将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
第二更新单元,用于将所述第二无线局域网列表替换为所述第一无线局域网列表。
在一个实施例中,所述装置还可包括:
存储模块,用于当所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
在一个实施例中,所述连接模块,可包括:
第一连接单元,用于当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
第二连接单元,用于当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
在一个实施例中,所述匹配比较模块,可包括:
匹配比较单元,用于确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
根据本公开实施例的第三方面,提供一种自动连接无线局域网的装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
本公开的实施例提供的技术方案可以包括以下有益效果:通过对具有相同名称的无线局域网的无线局域网列表进行匹配比较,根据匹配比较结果进行自动连接,可以提高判断之前连接过的无线局域网和当前检测到的无线局域网是否为同一无线局域网的准确率,避免将重名的不同无线局域网误判成同一无线局域网络,降低自动连接失败的概率,减少对用户的干扰。
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
附图说明
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。
图1是根据一示例性实施例示出的自动连接无线局域网的方法的流程图。
图2是根据一示例性实施例一示出自动连接无线局域网的方法的流程图。
图3是根据一示例性实施例二示出自动连接无线局域网的方法的流程图。
图4是根据一示例性实施例示出的一种自动连接无线局域网的装置的框图。
图5是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图6A是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图6B是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图7是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图8A是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图8B是根据一示例性实施例示出的另一种自动连接无线局域网的装置的框图。
图9是根据一示例性实施例示出的一种适用于自动连接无线局域网的装置的框图。
具体实施方式
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。
图1是根据一示例性实施例示出的自动连接无线局域网的方法的流程图,如图1所示,该自动连接无线局域网的方法用于终端设备如手机、平板电脑、笔记本电脑等具有无线网卡的设备中,包括以下步骤S101-S104:
在步骤S101中、在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表。
其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息。
在步骤S102中、将第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果。
其中,第二无线局域网列表为第二无线局域网的无线局域网列表。
在一实施例中,第二无线局域网列表的生成方法可包括:当第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于第二无线局域网的第二无线局域网列表。
举例而言,当前检测到的第一无线局域网名称为D,在之前,连接过名称为D的无线局域网,该连接过的名称为D的无线局域网为第二无线局域网,存储中具有第二无线局域网的连接信息。在第二无线局域网处于连接状态时,搜索到当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于第二无线局域网的第二无线局域网列表,标记为列表ListD2。第一无线局域网列表标记为列表ListD1,按步骤S102所述,将列表ListD1与列表ListD2进行匹配比较,得到第二无线局域网对应的匹配比较结果。
在一实施例中,步骤S102可实施为如下步骤A1-A2。
在步骤A1中、确定第一无线局域网列表与第二无线局域网列表中的名称相同条目的数目。
在步骤A2中、确定名称相同条目的数目占第二无线局域网列表的总数目的比例,将比例作为第二无线局域网对应的匹配比较结果。
与以两个无线局域网列表中相同条目的数目为匹配比较结果相比,采用该实施例中实现方式所得匹配比较结果能更准确地反映两个无线局域网列表的匹配程度,进而提高后续对同一无线局域网判断的准确性,减少自动连接的失败率。
上述实施例中实施方式为举例说明的实施方式,并不限制采用其他方式实现步骤S102。例如,步骤S102可实施为:确定第一无线局域网列表与存储的第二无线局域网列表的名称相同条目的数目,将确定出的名称相同条目的数目作为第二无线局域网对应的匹配比较结果。或者,步骤S102可实施为:确定第一无线局域网列表与存储的第二无线局域网列表的名称相同条目的数目,确定名称相同条目的数目占第一无线局域网列表中条目的总数目的比例,将确定出的比例作为第二无线局域网对应的匹配比较结果。
在步骤S103中、当匹配比较结果符合预设条件时,根据预存的第二无线局域网的连接信息,向第一无线局域网发起连接请求。
在一实施例中,步骤S103可以实施为:当匹配比较所得的比例大于预设比例时,确定匹配比较结果符合预设条件。
举例而言,第一无线局域网列表为列表ListD1,第二无线局域网列表为列表ListD2。列表ListD1与列表ListD2的相同条目的数目为7,列表ListD2的条目的总数目为10。可以确定出列表ListD1与列表ListD2进行匹配比较后,列表ListD2的匹配比较结果为70%。设置的预设比例为60%,匹配比较结果70%大于预设比例60%,所以可以确定出匹配比较结果符合预设条件。
当至少两个第二无线局域网的匹配比较结果符合预设条件时,步骤S103可按如下实施例中技术方案进行实施。
在一实施例中,步骤S103可实施为:逐个利用匹配比较结果符合预设条件的多个第二无线局域网的连接信息,向第一无线局域网发起连接请求,直到连接成功或连接信息都已被利用过为止。
在另一实施例中,步骤S103可实施为:按照匹配比较结果从大到小的顺序,对匹配比较结果符合预设条件的多个第二无线局域网进行排序;依序逐个利用第二无线局域网的连接信息,向第一无线局域网发起连接请求,直到连接成功或连接信息都已被利用过为止。
此外,本公开中的实施方式并不限于上述实施例中技术方案,当存在多个第二无线局域网时,步骤S102-103可以执行为:将第一无线局域网列表与一第二无线局域网列表进行匹配比较,获得匹配比较结果;如果匹配比较结果符合预设条件,则根据该第二无线局域网的连接信息,向第一无线局域网发起连接请求;如果匹配比较结果未符合预设条件,则将第一无线局域网列表与下一第二无线局域网列表进行匹配比较,重复前述操作。如此操作,直到连接成功或每个第二无线局域网列表都已被匹配比较过。
综上可见,通过对具有相同名称的无线局域网的无线局域网列表进行匹配比较,根据匹配比较结果进行自动连接,可以提高判断之前连接的无线局域网和当前检测到的无线局域网是否为同一无线局域网的准确率,减少将重名的无线局域网误判断成同一无线局域网 络的概率,并降低自动连接失败的概率,减少对用户的不必要干扰。
在一实施例中,利用第一无线局域网列表对第二无线局域网列表进行更新。
上述方法还包括:当向第一无线局域网发起连接请求成功后,根据第一无线局域网列表对第二无线局域网列表进行更新。
其中,根据第一无线局域网列表对第二无线局域网列表进行更新可实施为:将第一无线局域网列表中没有被第二无线局域网列表包含的条目增加到第二无线局域网列表中。
举例而言,在步骤S103中存储的列表ListD2为第二无线局域网列表,第一无线局域网列表为列表ListD1,将列表ListD1中没有被列表ListD2包含的条目增加到列表ListD2中。这样,可以对存储的列表ListD2进行完善,使用完善之后的列表ListD2进行匹配比较所得匹配比较结果更加准确,进而提高对同一无线局域网判断的准确性,降低自动连接的失败率。
上述实施方式为举例说明的实施方式,并不限制采用其他方式实现根据第一无线局域网列表对第二无线局域网列表进行更新。例如,根据第一无线局域网列表对第二无线局域网列表进行更新可实施为:将第二无线局域网列表替换为第一无线局域网列表。通过将第二无线局域网列表替换为第一无线局域网列表,可以对存储的第一无线局域网列表进行不断的实时更新。
在一实施例中,上述方法还可以包括步骤:当在匹配比较结果未符合预设条件时,存储第一无线局域网列表。
上述步骤中存储的第一无线局域网列表可以在后续操作中被使用。
例如,当步骤S103中匹配比较结果未符合预设条件时,自动连接操作未被启动,终端设备可以弹出提示窗口,提示输入连接密码。
当使用输入的连接密码连接第一无线局域网成功后,存储的第一无线局域网列表转化为一第二无线局域网列表。
当使用输入的连接密码连接第一无线局域网没有成功时,存储的第一无线局域网列表为待检验无线局域网列表,当前检测到的第一无线局域网为待检验无线局域网。当再次检测到无线局域网时,当再次检测到的无线局域网与上述待检验无线局域网同名时,将待检验无线局域网列表与再次检测到的无线局域网的无线局域网列表进行匹配比较;当匹配比较结果符合预设条件时,并不启动自动连接,终端设备可以弹出提示窗口,提示输入连接密码。当使用输入的连接密码连接再次检测到的无线局域网成功后,该待检验无线局域网列表成为一第二无线局域网列表,该待检验无线局域网成为一第二无线局域网,将输入的连接密码作为连接信息。并且,可以根据再次检测到的无线局域网的无线局域网列表对上述待检验无线局域网列表进行更新。
综上可见,当匹配比较结果未符合预设条件时,说明当前检测到的第一无线局域网与同名的第二无线局域网,虽然名称相同,但是不为同一无线局域网,当前检测到的第一无线局域网为一新发现的无线局域网,其对应有自己的无线局域网列表,因此将第一无线局 域网列表存储,以便后续操作中使用。
下面以具体实施例来说明本公开实施例提供的技术方案。
实施例一
实施例一利用本公开实施例提供的上述方法,使得终端设备,例如手机,能够自动连接无线局域网,其应用在如下场景:终端设备已经成功连接到名称为A的第二无线局域网,名称记作WIFI A,当该第二无线局域网处于连接状态时,根据搜索到的无线局域网的名称建立第二无线局域网列表ListA2,例如ListA2中包括5个无线局域网,分别为:WIFI A、WIFI B、WIFI C、WIFI D、WIFI E。在终端设备中存储第二无线局域网的名称WIFI A、WIFI A的连接密码、以及第二无线局域网列表ListA2。如图2所示,终端设备接下来进行如下操作:
在步骤S201中、在无线局域网连接状态为未连接状态、且检测到名称为A的第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表ListA1。
在步骤S202中、将第一无线局域网列表ListA1和第二无线局域网列表ListA2进行匹配比较,确定出名称相同条目的数目,将名称相同条目的数目占第二无线局域网列表ListA2中条目的总数目的比例作为匹配比较结果。
在步骤S203中、判断匹配比较结果是否大于设置比例60%,如果匹配比较结果大于设置比例60%,则执行步骤S204,如果匹配比较结果小于等于设置比例60%,则执行步骤S206。
在步骤S204中、利用存储的第二无线局域网WIFI A的连接密码,对第一无线局域网进行发起连接请求。
在步骤S205中、根据第一无线局域网列表ListA1更新第二无线局域网列表ListA2。
在步骤S206中、当匹配比较结果小于等于设置比例60%时,放弃向第一无线局域网发起连接请求,存储第一无线局域网列表ListA1。
本实施例一,通过对具有相同名称的无线局域网的无线局域网列表进行匹配比较,根据匹配比较结果进行自动连接,可以提高判断之前连接的无线局域网和当前检测到的无线局域网是否为同一无线局域网的准确率,减少将重名的无线局域网误判断成同一无线局域网络的概率,并降低自动连接失败的概率,减少对用户的不必要干扰。
实施例二
实施例二利用本公开实施例提供的上述方法,使得终端设备,例如手机,能够自动连接无线局域网,其应用在如下场景:终端设备中,对应于无线局域网的名称WIFI B,存储有两个连接密码,分别为连接密码PasswordB1和连接密码PasswordB2,对应于连接密码PasswordB1存储有一第二无线局域网列表ListB21,对应于连接密码PasswordB2存储有一第二无线局域网列表ListB22。如图3所示,终端设备接下来进行如下操作:
在步骤S301中、在无线局域网连接状态为未连接状态、且检测到名称为B的第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表ListB1。
在步骤S302中、将第二无线局域网列表ListB21和ListB22与第一无线局域网列表ListB1分别进行匹配比较,得出第二无线局域网列表ListB21和ListB22各自的匹配比较结果。
第二无线局域网列表ListB21的匹配比较结果为,匹配出的第二无线局域网列表ListB21与第一无线局域网列表ListB1中名称相同条目的数目,占第二无线局域网列表ListB21中条目的总数目的比例。
第二无线局域网列表ListB22的匹配比较结果为,匹配出的第二无线局域网列表ListB22与第一无线局域网列表ListB1中名称相同条目的数目,占第二无线局域网列表ListB22中条目的总数目的比例。
在步骤S303中、将第二无线局域网列表ListB21和ListB22各自的匹配比较结果与设置比例60%分别进行比较。
在步骤S304中、当两个匹配比较结果都不符合预设条件时,放弃向第一无线局域网发送连接请求,存储第一无线局域网列表ListB1。
在步骤S305中、当符合预设条件的匹配比较结果数量为1时,利用存储的匹配比较结果符合预设条件的第二无线局域网列表对应的连接密码,向第一无线局域网发起连接请求,并根据第一无线局域网列表List B1更新该第二无线局域网列表。
例如,当第二无线局域网列表ListB21的匹配比较结果符合预设条件时,在步骤S305中,利用存储的第二无线局域网列表ListB21对应的连接密码PasswordB1,向第一无线局域网发起连接请求,并根据第一无线局域网列表List B1更新第二无线局域网列表ListB21。
在步骤S306中、当符合预设条件的匹配比较结果数量为2时,按照匹配比较结果从大到小的顺序,对第二无线局域网列表ListB21和ListB22进行排序,依序逐个利用存储的连接密码,向第一无线局域网发起连接请求,直到连接成功或2个连接密码都已被利用过。
例如,在步骤S302中得出的第二无线局域网列表ListB21和ListB22各自的匹配比较结果分别为80%和70%,将第二无线局域网列表ListB21和ListB22排序,先利用第二无线局域网列表ListB21对应的连接密码PasswordB1向第一无线局域网发起连接请求,如果连接成功,则执行后续步骤;如果连接失败,则再利用第二无线局域网列表ListB22对应的连接密码PasswordB2向第一无线局域网发起连接请求。
在步骤S307中、当向第一无线局域网发起连接请求成功后,根据第一无线局域网列表ListB1更新连接所用连接密码对应的第二无线局域网列表。
在步骤S308中、当向第一无线局域网发起连接请求失败后,存储第一无线局域网列表ListB1。
本实施例二,通过对具有相同名称的无线局域网的无线局域网列表进行匹配比较,根据匹配比较结果进行自动连接,可以提高判断之前连接的无线局域网和当前检测到的无线局域网是否为同一无线局域网的准确率,减少将重名的无线局域网误判断成同一无线局域 网络的概率,并降低自动连接失败的概率,减少对用户的不必要干扰。
图4是根据一示例性实施例示出的自动连接无线局域网的装置的框图。如图4所示,该自动连接无线局域网的装置包括:
检测模块41被配置为在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
匹配比较模块42被配置为将第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,第二无线局域网列表为第二无线局域网的无线局域网列表;
连接模块43被配置为当匹配比较结果符合预设条件时,根据预存的第二无线局域网的连接信息,向第一无线局域网发起连接请求。
在一实施例中,如图5所示,上述装置还可包括:
生成模块44被配置为当第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于第二无线局域网的第二无线局域网列表。
在一实施例中,如图6A和图6B所示,上述装置还可包括:
更新模块45被配置为当向第一无线局域网发起连接请求成功后,根据第一无线局域网列表对第二无线局域网列表进行更新。
在一实施例中,如图6A和图6B所示,上述更新模块45可包括:
第一更新单元451被配置为将第一无线局域网列表中没有被第二无线局域网列表包含的条目增加到第二无线局域网列表中;或者
第二更新单元452被配置为将第二无线局域网列表替换为第一无线局域网列表。
在一实施例中,如图7所示,上述装置还可包括:
存储模块46被配置为当匹配比较结果未符合预设条件时,存储第一无线局域网列表。
在一实施例中,如图8A和8B所示,上述连接模块43可包括:
第一连接单元431被配置为当至少两个第二无线局域网的匹配比较结果符合预设条件时,逐个利用第二无线局域网的连接信息,向第一无线局域网发起连接请求,直到连接成功或连接信息都已被利用过;或者
第二连接单元432被配置为当至少两个第二无线局域网的匹配比较结果符合预设条件时,按照匹配比较结果从大到小的顺序,对至少两个第二无线局域网进行排序;依序逐个利用第二无线局域网的连接信息,向第一无线局域网发起连接请求,直到连接成功或连接信息都已被利用过。
在一实施例中,如图4所示,上述匹配比较模块42可包括:
匹配比较单元421被配置为确定第一无线局域网列表与第二无线局域网列表中的名 称相同条目的数目;确定名称相同条目的数目占第二无线局域网列表的总数目的比例,将比例作为第二无线局域网对应的匹配比较结果。
本公开实施例提供的自动连接无线局域网的装置,通过对具有相同名称的无线局域网的无线局域网列表进行匹配比较,根据匹配比较结果进行自动连接,可以提高判断之前连接的无线局域网与当前检测到的无线局域网是否为同一无线局域网的准确率,减少将重名的无线局域网误判断成同一无线局域网络的概率,降低自动连接失败的概率,减少对用户的不必要干扰。
关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。
图9是根据一示例性实施例示出的一种适用于自动连接无线局域网的装置1200的框图,该装置适用于终端设备。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。
参照图9,装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。
处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理元件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其它组件之间的交互。例如,处理部件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。
存储器1204被配置为存储各种类型的数据以支持在设备1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电力组件1206为装置1200的各种组件提供电力。电力组件1206可以包括电源管理系统,一个或多个电源,及其它与为装置1200生成、管理和分配电力相关联的组件。
多媒体组件1208包括在所述装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当设备1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每 个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。
音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。
I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。
传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到设备1200的打开/关闭状态,组件的相对定位,例如所述组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。
通信组件1216被配置为便于装置1200和其它设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其它技术来实现。
在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其它电子元件实现,用于执行上述方法。
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器820执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。
一种自动连接无线局域网的装置,包括:
处理器;
用于存储处理器可执行指令的存储器;
其中,所述处理器被配置为:
在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
该处理器还被配置为:当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
该处理器还被配置为:当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
该处理器还被配置为:将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
将所述第二无线局域网列表替换为所述第一无线局域网列表。
该处理器还被配置为:当在所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
该处理器还被配置为:当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
该处理器还被配置为:确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;
确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种自动连接无线局域网的方法,所述方法包括:
在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
所述第二无线局域网列表的生成方法,可包括:
当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;
根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
所述方法还可包括:
当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
所述根据所述第一无线局域网列表对所述第二无线局域网列表进行更新,可包括:
将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
将所述第二无线局域网列表替换为所述第一无线局域网列表。
所述方法还可包括:
当在所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,所述根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,可包括:
逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
所述将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,可包括:
确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;
确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
本领域技术人员在考虑说明书及实践这里公开的公开后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。

Claims (15)

  1. 一种自动连接无线局域网的方法,其特征在于,包括:
    在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
    将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
    当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
  2. 如权利要求1所述的方法,其特征在于,所述第二无线局域网列表的生成方法,包括:
    当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;
    根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
  4. 如权利要求3所述的方法,其特征在于,所述根据所述第一无线局域网列表对所述第二无线局域网列表进行更新,包括:
    将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
    将所述第二无线局域网列表替换为所述第一无线局域网列表。
  5. 如权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
  6. 如权利要求1所述的方法,其特征在于,当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,所述根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,包括:
    逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
    按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
  7. 如权利要求1所述的方法,其特征在于,
    所述将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,包括:
    确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;
    确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
  8. 一种自动连接无线局域网的装置,其特征在于,包括:
    检测模块,用于在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
    匹配比较模块,用于将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
    连接模块,用于当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
  9. 如权利要求8所述的装置,其特征在于,所述装置还包括:
    生成模块,用于当所述第二无线局域网处于连接状态时,搜索当前周边无线局域网的名称;根据搜索获得的周边无线局域网的名称,生成对应于所述第二无线局域网的第二无线局域网列表。
  10. 如权利要求8所述的装置,其特征在于,所述装置还包括:
    更新模块,用于当向所述第一无线局域网发起连接请求成功后,根据所述第一无线局域网列表对所述第二无线局域网列表进行更新。
  11. 如权利要求10所述的装置,其特征在于,所述更新模块,包括:
    第一更新单元,用于将所述第一无线局域网列表中没有被所述第二无线局域网列表包含的条目增加到所述第二无线局域网列表中;或者
    第二更新单元,用于将所述第二无线局域网列表替换为所述第一无线局域网列表。
  12. 如权利要求8所述的装置,其特征在于,所述装置还包括:
    存储模块,用于当所述匹配比较结果未符合所述预设条件时,存储所述第一无线局域网列表。
  13. 如权利要求8所述的装置,其特征在于,所述连接模块,包括:
    第一连接单元,用于当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过;或者
    第二连接单元,用于当至少两个所述第二无线局域网的匹配比较结果符合所述预设条件时,按照匹配比较结果从大到小的顺序,对所述至少两个第二无线局域网进行排序;依序逐个利用所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求,直到连接成功或所述连接信息都已被利用过。
  14. 如权利要求8所述的装置,其特征在于,
    所述匹配比较模块,包括:
    匹配比较单元,用于确定所述第一无线局域网列表与所述第二无线局域网列表中的名称相同条目的数目;确定所述名称相同条目的数目占所述第二无线局域网列表的总数目的比例,将所述比例作为所述第二无线局域网对应的匹配比较结果。
  15. 一种自动连接无线局域网的装置,其特征在于,包括:
    处理器;
    用于存储处理器可执行指令的存储器;
    其中,所述处理器被配置为:
    在无线局域网连接状态为未连接状态、且检测到第一无线局域网时,根据当前搜索到的周边无线局域网的名称生成第一无线局域网列表,其中,所述第一无线局域网在存储中具有同名的第二无线局域网的连接信息;
    将所述第一无线局域网列表与预存的第二无线局域网列表进行匹配比较,获得匹配比较结果,其中,所述第二无线局域网列表为所述第二无线局域网的无线局域网列表;
    当所述匹配比较结果符合预设条件时,根据预存的所述第二无线局域网的连接信息,向所述第一无线局域网发起连接请求。
PCT/CN2014/091574 2014-07-25 2014-11-19 自动连接无线局域网的方法及装置 WO2016011741A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2016535332A JP6144428B2 (ja) 2014-07-25 2014-11-19 無線lan自動接続方法、無線lan自動接続装置、プログラム、及び記録媒体
KR1020157001334A KR101678038B1 (ko) 2014-07-25 2014-11-19 Wlan 자동 연결방법, 장치, 프로그램 및 기록매체
MX2015000071A MX356724B (es) 2014-07-25 2014-11-19 Metodo y aparato para conectar automaticamente una red inalambrica.
RU2015101570/08A RU2604429C2 (ru) 2014-07-25 2014-11-19 Способ и аппарат для автоматического подключения беспроводной сети
BR112015001406A BR112015001406A2 (pt) 2014-07-25 2014-11-19 método e aparelho para automaticamente conectar rede sem fio
US14/620,730 US20160029419A1 (en) 2014-07-25 2015-02-12 Methods and devices for connecting to wireless network

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410360907.9A CN104105169B (zh) 2014-07-25 2014-07-25 自动连接无线局域网的方法及装置
CN201410360907.9 2014-07-25

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/620,730 Continuation US20160029419A1 (en) 2014-07-25 2015-02-12 Methods and devices for connecting to wireless network

Publications (1)

Publication Number Publication Date
WO2016011741A1 true WO2016011741A1 (zh) 2016-01-28

Family

ID=51672885

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091574 WO2016011741A1 (zh) 2014-07-25 2014-11-19 自动连接无线局域网的方法及装置

Country Status (9)

Country Link
US (1) US20160029419A1 (zh)
EP (1) EP2978265B1 (zh)
JP (1) JP6144428B2 (zh)
KR (1) KR101678038B1 (zh)
CN (1) CN104105169B (zh)
BR (1) BR112015001406A2 (zh)
MX (1) MX356724B (zh)
RU (1) RU2604429C2 (zh)
WO (1) WO2016011741A1 (zh)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015062526A1 (zh) * 2013-10-30 2015-05-07 乐视致新电子科技(天津)有限公司 一种基于无线登录的远程控制方法及装置
CN104105169B (zh) * 2014-07-25 2015-10-14 小米科技有限责任公司 自动连接无线局域网的方法及装置
CN104469482A (zh) * 2014-12-19 2015-03-25 乐视致新电子科技(天津)有限公司 智能终端连接蓝牙设备的控制方法及装置
CN104599473A (zh) * 2015-01-30 2015-05-06 乐视致新电子科技(天津)有限公司 无线通信模式的切换方法及装置
CN106488529B (zh) * 2015-08-24 2020-06-02 中兴通讯股份有限公司 一种接入wifi网络的方法及装置
CN105873093A (zh) * 2015-12-03 2016-08-17 乐视致新电子科技(天津)有限公司 无线网络的连接信息的管理方法、装置及系统
CN106304408A (zh) * 2016-08-24 2017-01-04 刘立辉 一种连接方法
US9878875B1 (en) * 2016-09-30 2018-01-30 Otis Elevator Company Building selection in elevator system supporting mobile device calls
CN107835523A (zh) * 2016-11-16 2018-03-23 深圳平安讯科技术有限公司 一种提供wifi热点的方法及终端
CN106888496B (zh) 2017-02-20 2019-10-18 Oppo广东移动通信有限公司 一种无线保真Wi-Fi连接方法及移动终端
CN108259696B (zh) 2018-04-12 2019-12-17 珠海奔图电子有限公司 成像装置控制方法、装置及应用该方法的电子终端
CN108882380B (zh) * 2018-06-12 2023-06-16 Oppo广东移动通信有限公司 无线通信传输方法、装置、移动终端及计算机可读取存储介质
US11765164B2 (en) * 2019-02-26 2023-09-19 Amazon Technologies, Inc. Server-based setup for connecting a device to a local area network
CN113596943B (zh) * 2021-08-11 2022-08-26 中国联合网络通信集团有限公司 无线网络信息保存方法及终端

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109941A1 (en) * 2007-10-31 2009-04-30 Connect Spot Ltd. Wireless access systems
CN103688564A (zh) * 2011-05-13 2014-03-26 黑莓有限公司 针对网络节点的自动接入
CN104105169A (zh) * 2014-07-25 2014-10-15 小米科技有限责任公司 自动连接无线局域网的方法及装置

Family Cites Families (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100913869B1 (ko) * 2002-10-28 2009-08-26 삼성전자주식회사 무선단말장치 및 무선랜 접속정보를 자동으로 생성하고변경하는 방법
JP2005176021A (ja) * 2003-12-12 2005-06-30 Toshiba Corp 情報処理装置およびプログラム
US8743778B2 (en) * 2006-09-06 2014-06-03 Devicescape Software, Inc. Systems and methods for obtaining network credentials
US8719431B2 (en) * 2006-10-26 2014-05-06 Blackberry Limited Transient WLAN connection profiles
GB2444305B (en) * 2007-01-26 2010-12-22 Key Criteria Connect Ltd Method of identifying devices in mobile and desktop environments
US20080220773A1 (en) * 2007-03-07 2008-09-11 Research In Motion Limited Apparatus, and associated method, for facilitating i-wlan plmn selection
JP4876017B2 (ja) * 2007-04-19 2012-02-15 日立オートモティブシステムズ株式会社 移動体端末、無線lan装置、無線lan接続設定方法
US8050243B2 (en) * 2007-12-07 2011-11-01 Sony Ericsson Mobile Communications Ab Method and system for evaluating proximity to a WLAN for a UMA/GAN compatible electronic device
US8750265B2 (en) * 2009-07-20 2014-06-10 Wefi, Inc. System and method of automatically connecting a mobile communication device to a network using a communications resource database
EP2320702B1 (en) * 2009-11-04 2015-08-12 BlackBerry Limited Method, mobile communication device and communication system controlling wireless transceiver operation in a dual mode mobile communication device
US8396039B2 (en) * 2010-04-15 2013-03-12 Clearwire Ip Holdings Llc Apparatus and method for multimode device handover
WO2012042201A2 (en) * 2010-09-29 2012-04-05 British Telecommunications Public Limited Company Method of determining location
US20120230305A1 (en) * 2011-03-08 2012-09-13 Research In Motion Limited Wi-fi network access and a mobile terminal configured for the same
KR101267983B1 (ko) * 2011-04-21 2013-05-27 아이테크 도쿄 코포레이션 무선랜 기반 피어투피어 응용간 연결 방법, 무선랜 기반 피어투피어 응용간 연결성 유지 방법 및 무선랜 기반 피어 단말
CN102647771B (zh) * 2012-04-10 2016-05-25 华为技术有限公司 无线局域网络的发现与选择方法、设备及系统与终端
CN103874195A (zh) * 2012-12-17 2014-06-18 中国电信股份有限公司 接入点定位方法和装置
US20150327069A1 (en) * 2014-05-07 2015-11-12 Altek Corporation Method of establishing wireless connection and wireless access point device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090109941A1 (en) * 2007-10-31 2009-04-30 Connect Spot Ltd. Wireless access systems
CN103688564A (zh) * 2011-05-13 2014-03-26 黑莓有限公司 针对网络节点的自动接入
CN104105169A (zh) * 2014-07-25 2014-10-15 小米科技有限责任公司 自动连接无线局域网的方法及装置

Also Published As

Publication number Publication date
RU2604429C2 (ru) 2016-12-10
MX2015000071A (es) 2016-03-03
JP6144428B2 (ja) 2017-06-07
EP2978265A1 (en) 2016-01-27
MX356724B (es) 2018-06-11
CN104105169B (zh) 2015-10-14
EP2978265B1 (en) 2019-02-13
KR20160023627A (ko) 2016-03-03
KR101678038B1 (ko) 2016-11-21
US20160029419A1 (en) 2016-01-28
JP2016534624A (ja) 2016-11-04
CN104105169A (zh) 2014-10-15
RU2015101570A (ru) 2016-09-10
BR112015001406A2 (pt) 2017-07-04

Similar Documents

Publication Publication Date Title
WO2016011741A1 (zh) 自动连接无线局域网的方法及装置
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
EP3136698B1 (en) Connection status prompting method and device
WO2016155306A1 (zh) 网络接入方法及装置
WO2016095448A1 (zh) 设备联网方法及装置
WO2019095140A1 (zh) 剩余关键系统信息的公共控制资源集合的周期信息指示方法
WO2016127669A1 (zh) 终端设备接入无线网络的方法及装置
WO2017035994A1 (zh) 外接设备的连接方法及装置
WO2019084879A1 (zh) 剩余关键系统信息的公共资源集合的查找方法及装置
WO2017016148A1 (zh) 基于图像的通信方法及装置
WO2021036382A1 (zh) 图像处理方法及装置、电子设备和存储介质
WO2017036018A1 (zh) 指纹识别方法、装置及移动终端
WO2016015403A1 (zh) 一种接入wi-fi网络的方法及装置
WO2019028746A1 (zh) 无人机接入方法及装置
WO2016173246A1 (zh) 基于云名片的电话呼叫方法及装置
WO2018000710A1 (zh) WiFi信号图标的展示方法、装置和移动终端
WO2017219497A1 (zh) 消息生成方法及装置
WO2017197786A1 (zh) 一种接入基站的方法和装置
WO2017088588A1 (zh) 触摸屏报点的处理方法及装置
WO2021164100A1 (zh) 图像处理方法及装置、电子设备和存储介质
WO2019148349A1 (zh) 小区类型指示方法及装置
WO2017219536A1 (zh) 应用切换方法及装置
CN110928425A (zh) 信息监控方法及装置
US9674768B2 (en) Method and device for accessing wireless network
US10182133B2 (en) Method and device for starting application

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: MX/A/2015/000071

Country of ref document: MX

ENP Entry into the national phase

Ref document number: 2016535332

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20157001334

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2015101570

Country of ref document: RU

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112015001406

Country of ref document: BR

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14898072

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 112015001406

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20150122

122 Ep: pct application non-entry in european phase

Ref document number: 14898072

Country of ref document: EP

Kind code of ref document: A1