WO2018149137A1 - 无线保真Wi-Fi连接方法及相关产品 - Google Patents

无线保真Wi-Fi连接方法及相关产品 Download PDF

Info

Publication number
WO2018149137A1
WO2018149137A1 PCT/CN2017/103174 CN2017103174W WO2018149137A1 WO 2018149137 A1 WO2018149137 A1 WO 2018149137A1 CN 2017103174 W CN2017103174 W CN 2017103174W WO 2018149137 A1 WO2018149137 A1 WO 2018149137A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection
target
ssid
records
access point
Prior art date
Application number
PCT/CN2017/103174
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 EP17896742.8A priority Critical patent/EP3562257B1/en
Publication of WO2018149137A1 publication Critical patent/WO2018149137A1/zh
Priority to US16/535,850 priority patent/US10873900B2/en

Links

Images

Classifications

    • 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/08Access restriction or access information delivery, e.g. discovery data delivery
    • 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
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/20Monitoring; Testing of receivers
    • H04B17/26Monitoring; Testing of receivers using historical data, averaging values or statistics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/56Allocation or scheduling criteria for wireless resources based on priority criteria
    • H04W72/566Allocation or scheduling criteria for wireless resources based on priority criteria of the information or information source or recipient
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/18Management of setup rejection or failure
    • 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 invention relates to the field of communications technologies, and in particular, to a wireless fidelity Wi-Fi connection method and related products.
  • Wi-Fi Wireless Fidelity
  • the mobile terminal is connected to a hidden access point (AP), and the service set identifier (SSID), the encryption method, and the password are all matched before the connection can be normally performed.
  • AP hidden access point
  • SSID service set identifier
  • the embodiment of the invention provides a wireless fidelity Wi-Fi connection method and related products, which can improve the connection efficiency of a hidden AP in case of an incorrect SSID input.
  • a first aspect of the embodiments of the present invention provides a wireless fidelity Wi-Fi connection method, including:
  • X parameters of the target access point include at least a target SSID of the target access point, where X is a positive integer;
  • M Wi-Fi connection records are determined from the historical Wi-Fi connection data according to the current network environment information, and each of the M Wi-Fi connection records is Wi-Fi
  • the connection record contains a successfully connected access point, and the M is a positive integer
  • Wi-Fi scanning is performed according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • a second aspect of the embodiments of the present invention provides a wireless fidelity Wi-Fi connection apparatus, including:
  • An acquiring unit configured to acquire X parameters of the target access point, where the X parameters include at least a target SSID of the target access point, where X is a positive integer;
  • a first scanning unit configured to perform Wi-Fi scanning according to the X parameters
  • a determining unit configured to determine, according to current network environment information, M Wi-Fi connection records from the historical Wi-Fi connection data when the target access point is not scanned, where the M Wi-Fi connection records are Each Wi-Fi connection record contains a successfully connected access point, and the M is a positive integer;
  • a second scanning unit configured to perform Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • an embodiment of the present invention provides a mobile terminal, including: a processor and a memory; and one or more programs, where the one or more programs are stored in the memory, and configured to be The processor executes, the program including instructions for some or all of the steps as described in the first aspect.
  • an embodiment of the present invention provides a computer readable storage medium, wherein the computer readable storage medium is configured to store a computer program, wherein the computer program causes a computer to perform the first aspect of the embodiment of the present invention. Instructions for some or all of the steps described in the section.
  • an embodiment of the present invention provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to execute Some or all of the steps described in the first aspect of the invention.
  • the computer program product can be a software installation package.
  • FIG. 1 is a flow chart of a first embodiment of a wireless fidelity Wi-Fi connection method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for connecting a wireless fidelity Wi-Fi according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for connecting a wireless fidelity Wi-Fi according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an embodiment of a wireless fidelity Wi-Fi connection apparatus according to an embodiment of the present invention.
  • FIG. 4b is a schematic structural diagram of a determining unit of the wireless fidelity Wi-Fi connecting apparatus described in FIG. 4a according to an embodiment of the present invention
  • FIG. 4c is another schematic structural diagram of a first determining module of the determining unit depicted in FIG. 4b according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of another determining unit of the wireless fidelity Wi-Fi connecting apparatus described in FIG. 4a according to an embodiment of the present disclosure
  • FIG. 4e is another schematic structural diagram of a determining unit of the wireless fidelity Wi-Fi connecting apparatus described in FIG. 4a according to an embodiment of the present invention
  • 4f is a schematic structural diagram of a second scanning unit of the wireless fidelity Wi-Fi connecting apparatus described in FIG. 4a according to an embodiment of the present disclosure
  • FIG. 4g is still another schematic structural diagram of a second scanning unit of the wireless fidelity Wi-Fi connection device described in FIG. 4a according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
  • the embodiment of the present invention provides a wireless fidelity Wi-Fi connection method and related products, which can improve the connection efficiency of a hidden AP in case of an incorrect SSID input.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the invention.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the mobile terminal described in the embodiments of the present invention may include a smart phone (such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.), a tablet computer, a palmtop computer, a notebook computer, a mobile Internet device (MID, Mobile Internet Devices), or a wearable device.
  • a smart phone such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a tablet computer such as an Android mobile phone, an iOS mobile phone, a Windows Phone mobile phone, etc.
  • a palmtop computer such as a notebook computer
  • MID Mobile Internet Devices
  • the target access point may be an access point designated by the user.
  • the user inputs information such as the SSID, encryption method, password, and the like of the access point.
  • Wi-Fi scanning can be performed according to the SSID, and can be used to search for an access point that is the same as the SSID of the access point.
  • the Wi-Fi scan can be performed according to the SSID and the encryption method, and can be used to search for an access point that is the same as the SSID and the encryption method of the access point.
  • Wi-Fi scanning can be performed according to the SSID, encryption method and password, and can be used to search for an access point with the same SSID, encryption method and password of the access point. .
  • the current network environment may be understood as the network environment where the current mobile terminal is located, and the current network environment information may include, but is not limited to, the current scan result (for example, performing Wi-Fi scanning, Obtaining access point information of surrounding access points, which may include, but is not limited to, signal strength, location, SSID, BSSID, encryption mode, etc., current location of the mobile terminal, and the like.
  • the current scan result for example, performing Wi-Fi scanning
  • Obtaining access point information of surrounding access points which may include, but is not limited to, signal strength, location, SSID, BSSID, encryption mode, etc., current location of the mobile terminal, and the like.
  • each Wi-Fi connection record may include a successfully connected access point
  • each The Wi-Fi connection record may also include attribute information of the successfully connected access point, network environment information (eg, location of the mobile terminal, signal strength of surrounding access points, etc., attribute information of surrounding access points),
  • the attribute information may include at least one of the following: an SSID, a BSSID, an encryption method, a password, whether it is hidden (hidden or non-hidden), and the like.
  • a Wi-Fi connection record can be generated, and the SSID, BSSID, encryption mode, password, whether it is hidden, and the location of the mobile terminal of the access point are recorded.
  • the Wi-Fi connection record in the embodiment of the present invention may further include an access point that has not been successfully connected.
  • an access point that has not been successfully connected means that the mobile terminal does not perform Wi- on the access point.
  • Fi connection or an access point that has made a Wi-Fi connection to the access point but failed to connect, for example, taking a hidden access point a as an example, when performing Wi-Fi scanning with the SSID of A,
  • the access point can be searched, but because the password of the input a is incorrect, the access point cannot be accessed, but a Wi-Fi connection record can be generated.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a method for connecting a wireless fidelity Wi-Fi according to an embodiment of the present invention.
  • the wireless fidelity Wi-Fi connection method described in this embodiment includes the following steps:
  • the X parameters include at least a target SSID of the target access point, where X is a positive integer.
  • the parameters of the target access point may include, but are not limited to, an SSID, a BSSID, an encryption mode, and a password.
  • the above X is an integer greater than or equal to 1.
  • the above X parameters can be input by the user or read from the memory of the mobile terminal (for example, a plurality of SSIDs are pre-stored in the mobile terminal, and one SSID can be read by the person).
  • the target access point may be scanned, and of course, the access point may not be scanned.
  • the access point is not scanned.
  • non-hidden access points and other access points with empty SSIDs ie, hidden access points
  • each Wi-Fi connection record in the M Wi-Fi connection records includes a successfully connected access point, and the M is a positive integer.
  • the foregoing information according to the current network environment may be a network environment where the mobile terminal is currently located.
  • the M network Wi-Fi connection records may be determined from the historical Wi-Fi connection data by using the current network environment information, and each of the M Wi-Fi connection records is in the Wi-Fi connection record.
  • the connection record contains a successfully connected access point, M is a positive integer.
  • determining the M Wi-Fi connection records from the historical Wi-Fi connection data according to the current network environment information may include the following steps:
  • the access point information of the N access points whose SSID is empty may be obtained from the scan result, where N is a positive integer.
  • determining, according to the access point information of the N access points, the M Wi-Fi connection records from the historical Wi-Fi connection data may include the following steps:
  • the Wi-Fi connection record including the successfully connected access point can be selected from the historical Wi-Fi connection data, and thus, a Wi-Fi connection record can be obtained, and A is an integer not less than M. Further, the Wi-Fi connection record that is the same as the BSSID of any of the N access points and the encryption method corresponding to the BSSID can be found from the A Wi-Fi connection records. For example, taking one of the N access points as an example, the BSSID and the encryption mode of the access point may be: bssid1, wpa_psk, and the A-Wi-Fi connection record may be recorded according to the bssid1 and wpa_psk. Each Wi-Fi connection record in the traversal is traversed to find the same Wi-Fi connection record containing bssid1 and wpa_psk.
  • performing Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records may include the following steps:
  • the target SSID may be matched with the SSID in the M Wi-Fi connection records. Specifically, each character of the target SSID may be connected to each Wi-Fi in the Wi-Fi connection record. Each character of the SSID of the Fi connection record is matched to obtain a matching value between the target SSID and the SSID of each Wi-Fi connection record in the M Wi-Fi connection records, and thus, M matching values are obtained. For example, the number of the same characters in the two SSIDs can be determined. For example, if the two SSIDs are ssid and ssid1 respectively, the number of identical characters between the two SSIDs is 4, and the matching value is considered to be 4.
  • the scan priority order of the M Wi-Fi connection records may be further determined according to the M matching values.
  • the scan priority order of the M Wi-Fi connection records may be determined in descending order of the matching values.
  • Wi-Fi scanning may be performed according to the scanning priority order and the above M Wi-Fi connection records.
  • the M Wi-Fi connection records include A, B, C, and D, and the scanning priority order is B, C, A, D, the Wi-Fi scan can be performed according to the Wi-Fi connection record B.
  • the Wi-Fi scan can be performed according to the access point information of the successfully connected access point in the Wi-Fi connection record B.
  • performing Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records may include the following steps:
  • the SSID is considered to match the target SSID, and the preset range may be: there is a difference of no more than one character, for example, the target SSID is cathay007, and the SSID in a Wi-Fi connection record is cathau007, Then, the two can be matched.
  • the embodiment of the present invention can provide a fault tolerance mechanism, thereby improving the connection efficiency of the hidden AP.
  • the target SSID may be matched with the M SSIDs in the M Wi-Fi connection records, and when there is the same first SSID as the target SSID, the Wi may be performed according to the Wi-Fi connection record corresponding to the first SSID.
  • the following scenarios may be used.
  • a completely correct SSID is specified to scan and find an AP. Otherwise, the SSID may be scanned with a slight error.
  • the designated AP is unable to connect.
  • the SSID is abcd1
  • the SSID of the AP when the Wi-Fi scan is performed is abcd. Therefore, the specified AP cannot be scanned, and the AP cannot be connected.
  • all the APs in the historical Wi-Fi connection data that are successfully connected and the BSSID and the encryption mode and the SSID are empty may be found according to the BSSID of all APs whose current SSID is empty.
  • the Wi-Fi connection record stores the AP information in these Wi-Fi connection records in a list L.
  • the SSID matching value can be sorted by using the input SSID and the AP in the list L. Further, the SSID of the AP in the L is sequentially selected according to the matching value from the highest to the low, and if the scanning is performed, the connection is performed. Otherwise, according to the The matching value continues to scan until the APs in list L are scanned again. In this way, the success rate of connecting to the hidden AP can be increased.
  • the X parameters of the target access point are obtained, where the X parameters include at least the target SSID of the target access point, X is a positive integer, and Wi-Fi scanning is performed according to the X parameters, and scanning is performed.
  • M Wi-Fi connection records are determined from the historical Wi-Fi connection data according to the current network environment information, and each Wi-Fi connection record in the M Wi-Fi connection records includes a successful connection.
  • the access point, M is a positive integer, and performs Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • the M Wi-Fi connection record including the successfully connected access point may be determined from the historical Wi-Fi connection data, and according to the SSID and target SSID of M Wi-Fi connection records Wi-Fi scanning can improve the success rate of scanning to the target access point, thereby improving the connection efficiency of the hidden AP.
  • FIG. 2 it is a schematic flowchart of a second embodiment of a wireless fidelity Wi-Fi connection method according to an embodiment of the present invention.
  • the wireless fidelity Wi-Fi connection method described in this embodiment includes the following steps:
  • X parameters of the target access point include a target SSID of the target access point, a first target encryption mode, and a first target password.
  • the mobile terminal can determine the current location of the mobile terminal by using a Global Positioning System (GPS), or the mobile terminal can determine the current location of the mobile terminal by using a Wi-Fi positioning technology.
  • the current location of the mobile terminal can be represented by latitude and longitude. For example, the current location can be expressed as 113°46' east longitude and 22°27' north latitude.
  • the location of an AP scanned by the current Wi-Fi is taken as the location of the mobile terminal, and the location of the AP may be marked on the indoor map. Is a point (a point indicating the location of the mobile terminal).
  • each Wi-Fi connection record in the historical Wi-Fi connection data may include one location. Therefore, it can be determined from the historical Wi-Fi connection data that the location of the included mobile terminal is within a preset range centered on the current location and includes P Wi-Fi connection records of the successfully connected access point, where M is A positive integer, P is a positive integer not less than M.
  • each Wi-Fi connection record in the M Wi-Fi connection records includes the first target encryption mode. And the first target password.
  • the mobile terminal may traverse the P Wi-Fi connection records according to the first target encryption mode and the first target password, and obtain M Wi-Fi connection records.
  • the user After each time the AP is connected, the user records the SSID, BSSID, encryption mode, password, and location of the mobile terminal to form a Wi-Fi connection record of the AP, and saves the mobile to the mobile.
  • the file In a file of the terminal, the file can be set to be inaccessible only, and is used to record information of all successfully connected APs, thereby obtaining historical Wi-Fi connection data.
  • the mobile terminal can determine the location of the mobile terminal, and in the historical Wi-Fi connection data, find all Wis that include the AP that has successfully connected and the encryption mode and password are within the preset range of the location (for example, 10 meters).
  • the -Fi connection record stores the AP information in these Wi-Fi connection records in a list L.
  • the SSID of the AP in the list L is matched with the SSID of the input L to obtain a plurality of matching values, and the scanning priority order may be determined according to the matching value from high to low, and the list L is sequentially designated according to the scanning priority order.
  • the SSID of the AP is scanned, and if it is scanned, the connection can be made; otherwise, the scanning is continued according to the scanning priority until all the APs in the list L are scanned.
  • the M Wi-connections including the successfully connected access points can be determined from the historical Wi-Fi connection data according to the current location of the mobile terminal.
  • the -Fi connection record and Wi-Fi scanning based on the SSID and the target SSID recorded by the M Wi-Fi connection can improve the success rate of scanning to the target access point, thereby improving the connection efficiency of the hidden AP.
  • FIG. 3 is a schematic flowchart diagram of a third embodiment of a method for connecting a wireless fidelity Wi-Fi according to an embodiment of the present invention.
  • the wireless fidelity Wi-Fi connection method described in this embodiment includes the following steps:
  • X parameters of the target access point include a target SSID, a second target encryption mode, and a second target password of the target access point, where X is a positive integer.
  • each Wi-Fi connection record in the Q Wi-Fi connection record includes the At least T BSSIDs of B access points, the T being a positive integer less than or equal to the B.
  • the above T can be set by the user or the system defaults.
  • the above B access points may include B BSSIDs, and the mobile terminal may determine, from the historical Wi-Fi connection data, Q Wi-Fi connection records including the successfully connected access points, and Q Wi-Fi connection records.
  • Each Wi-Fi connection record includes at least T BSSIDs of B access points (ie, at least T BSSIDs of B BSSIDs), and T is a positive integer less than or equal to B.
  • M Wi-Fi connection records are selected from the Q Wi-Fi connection records, and the encryption mode of the successfully connected access points in each Wi-Fi connection record in the M Wi-Fi connection records is The second target encryption mode, the password is the second target password.
  • these surrounding APs (the surrounding APs that satisfy the condition can be called neighbor information of the AP) constitute the Wi-Fi connection record of the AP, and multiple Wi-Fi connection records can constitute historical Wi-Fi connection data, It is saved to the native file.
  • the SSID of the AP in the list L is matched with the SSID of the input L to obtain a plurality of matching values, and the scanning priority order may be determined according to the matching value from high to low, and the list L is sequentially designated according to the scanning priority order.
  • the SSID of the AP is scanned, and if it is scanned, the connection can be made; otherwise, the scanning is continued according to the scanning priority until all the APs in the list L are scanned.
  • the access point information of the access point whose surrounding signal strength is greater than a certain threshold value of the mobile terminal is from the historical Wi-Fi connection data.
  • FIG. 4 is a schematic structural diagram of an embodiment of a wireless fidelity Wi-Fi connection apparatus according to an embodiment of the present invention.
  • the wireless fidelity Wi-Fi connection device described in this embodiment includes: an obtaining unit 401, a first scanning unit 402, a determining unit 403, and a second scanning unit 404, as follows:
  • the obtaining unit 401 is configured to acquire X parameters of the target access point, where the X parameters include at least a target SSID of the target access point, where X is a positive integer;
  • a first scanning unit 402 configured to perform Wi-Fi scanning according to the X parameters
  • the determining unit 403 is configured to: when the target access point is not scanned, determine M Wi-Fi connection records from the historical Wi-Fi connection data according to the current network environment information, where the M Wi-Fi connection records Each Wi-Fi connection record contains a successfully connected access point, and the M is a positive integer;
  • the second scanning unit 404 is configured to perform Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • FIG. 4b is a specific refinement structure of the determining unit 403 of the wireless fidelity Wi-Fi connecting apparatus described in FIG. 4a, and the determining unit 403 may include: a first obtaining module 4031 and The first determining module 4032 is specifically as follows:
  • the first obtaining module 4031 is configured to obtain, from the scan result, access point information of N access points whose SSID is empty, where N is a positive integer;
  • the first determining module 4032 is configured to determine, according to the access point information of the N access points, the M Wi-Fi connection records from the historical Wi-Fi connection data.
  • FIG. 4c is a specific refinement structure of the first determining module 4032 of the determining unit 403 described in FIG. 4b, the first determining module 4032 may include: a first selecting module 501 and a second The module 502 is determined as follows:
  • the first selection module 501 is configured to select, from the historical Wi-Fi connection data, a Wi-Fi connection record that includes the successfully connected access point, and obtain a Wi-Fi connection record, where the A is not less than the An integer of M;
  • the second determining module 502 is configured to determine, in the A Wi-Fi connection record, a BSSID of any one of the N access points and a Wi-Fi connection record of an encryption mode corresponding to the BSSID, The M Wi-Fi connection records.
  • the X parameters further include a first target encryption mode and a first target password, as shown in FIG. 4d, which is a specific refinement of the determining unit 403 of the wireless fidelity Wi-Fi connection device described in FIG. 4a.
  • the determining unit 403 may include: a second obtaining module 4033, a third determining module 4034, and a second selecting module 4035, as follows:
  • a second obtaining module 4033 configured to acquire a current location
  • the third determining module 4034 is configured to determine, from the historical Wi-Fi connection data, that the location of the included mobile terminal is within a preset range centered on the current location and includes a P that is successfully connected. a Wi-Fi connection record, the P being a positive integer not less than the M;
  • a second selecting module 4035 configured to select the M Wi-Fi connection records from the P Wi-Fi connection records, where each Wi-Fi connection record in the M Wi-Fi connection records includes The first target encryption mode and the first target password are described.
  • the specific implementation manner that the second obtaining module 4033 obtains the current location is:
  • the X parameters further include a second target encryption mode and a second target password, as shown in FIG. 4e, which is a specific part of the determining unit 403 of the wireless fidelity Wi-Fi connection device described in FIG. 4a.
  • the determining unit 403 may include: a third obtaining module 4036, a fourth determining module 4037, and a third selecting module 4038, as follows:
  • the determining unit includes:
  • the third obtaining module 4036 is configured to obtain access point information of B access points whose surrounding signal strength values are greater than a preset threshold, where B is a positive integer;
  • the fourth determining module 4037 is configured to determine, from the historical Wi-Fi connection data, Q Wi-Fi connection records that include successfully connected access points, each of the Q Wi-Fi connection records.
  • the Wi-Fi connection record includes at least T BSSIDs of the B access points, the T being a positive integer less than or equal to the B;
  • a third selecting module 4038 configured to select the M Wi-Fi connection records from the Q Wi-Fi connection records, where each of the M Wi-Fi connection records is recorded
  • the encryption method of the successfully connected access point is the second target encryption mode, and the password is the second target password.
  • FIG. 4f is a specific refinement structure of the second scanning unit 404 of the wireless fidelity Wi-Fi connection device described in FIG. 4a, and the second scanning unit 404 may include: a first matching module. 4041.
  • the fifth determining module 4042 and the first scanning module 4043 are specifically as follows:
  • the first matching module 4041 is configured to match the target SSID with the SSID in the M Wi-Fi connection records to obtain the M matching values.
  • a fifth determining module 4042 configured to determine, according to the M matching values, a scan priority order of the M Wi-Fi connection records
  • the first scanning module 4043 is configured to perform Wi-Fi scanning according to the scanning priority order and the M Wi-Fi connection records.
  • the specific implementation manner of the first matching module 4041 matching the target SSID with the SSID in the M Wi-Fi connection records is:
  • Each character of the target SSID is matched with each character of the SSID of each Wi-Fi connection record in the M Wi-Fi connection records.
  • FIG. 4g is a specific refinement structure of the second scanning unit 404 of the wireless fidelity Wi-Fi connection device described in FIG. 4a, and the second scanning unit 404 may include: a second matching module. 4044 and the second scanning module 4045 are as follows:
  • the second matching module 4044 is configured to match the target SSID with the SSID in the M Wi-Fi connection records to obtain a target Wi-Fi connection record.
  • the second scanning module 4045 is configured to perform Wi-Fi scanning according to the target Wi-Fi connection record.
  • X parameters of the target access point are acquired, and the X parameters include at least the target SSID of the target access point, and X is positive.
  • An integer, according to the X parameters for Wi-Fi scanning when scanning the target access point, determining M Wi-Fi connection records from the historical Wi-Fi connection data according to the current network environment information, M Wi-Fi Each Wi-Fi connection record in the Fi connection record contains a successfully connected access point, M is a positive integer, and Wi-Fi scanning is performed according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • the M Wi-Fi connection record including the successfully connected access point may be determined from the historical Wi-Fi connection data, and according to the Wi-Fi scanning is performed on the SSID and the target SSID recorded by the M Wi-Fi connection, which can improve the success rate of scanning to the target access point, thereby improving the connection efficiency of the hidden AP.
  • the wireless fidelity Wi-Fi connection device described in the device embodiment of the present invention is presented in the form of a functional unit.
  • the term "unit” as used herein shall be understood to mean the broadest possible meaning, and the object for implementing the functions described for each "unit” may be, for example, an integrated circuit ASIC, a single circuit for executing one or more software or firmware.
  • a processor shared, dedicated or chipset
  • memory of the program combinatorial logic, and/or other suitable components that perform the functions described above.
  • the function of the acquiring unit 401 for acquiring the X parameters of the target access point may be implemented by the mobile terminal shown in FIG. 5, and may be specifically executed by the processor 3000 by calling the executable program code in the memory 4000. Get the X parameters of the target access point.
  • FIG. 5 it is a schematic structural diagram of an embodiment of a mobile terminal according to an embodiment of the present invention.
  • the mobile terminal described in this embodiment includes: at least one input device 1000; at least one output device 2000; at least one processor 3000, such as a CPU; and a memory 4000, the input device 1000, the output device 2000, the processor 3000, and The memory 4000 is connected by a bus 5000.
  • the input device 1000 may be a touch panel, a physical button, or a mouse.
  • the output device 2000 described above may specifically be a display screen.
  • the above memory 4000 may be a high speed RAM memory or a non-volatile memory such as a magnetic disk memory.
  • the above memory 4000 is used to store a set of program codes, and the input device 1000, the output device 2000, and the processor 3000 are used to call the program code stored in the memory 4000, and perform the following operations:
  • the processor 3000 is configured to:
  • X parameters of the target access point include at least a target SSID of the target access point, where X is a positive integer;
  • M Wi-Fi connection records are determined from the historical Wi-Fi connection data according to the current network environment information, and each of the M Wi-Fi connection records is Wi-Fi
  • the connection record contains a successfully connected access point, and the M is a positive integer
  • Wi-Fi scanning is performed according to the target SSID and the SSID included in the M Wi-Fi connection records.
  • the processor 3000 determines, according to the current network environment information, the M Wi-Fi connection records from the historical Wi-Fi connection data, including:
  • the processor 3000 determines, according to the access point information of the N access points, the M Wi-Fi connection records from the historical Wi-Fi connection data, including:
  • the X parameters further include a first target encryption mode and a first target password
  • the M Wi-Fi connection records are determined from the historical Wi-Fi connection data according to the current network environment information.
  • each Wi-Fi connection record in the M Wi-Fi connection records includes the first target encryption mode and The first target password is described.
  • the foregoing processor 3000 acquires a current location, including:
  • the X parameters further include a second target encryption mode and a second target password
  • determining M Wi-Fi connection records from the historical Wi-Fi connection data according to the current network environment information include:
  • each Wi-Fi connection record in the Q Wi-Fi connection records including the At least T BSSIDs of B access points, the T being a positive integer less than or equal to the B;
  • the encryption mode is the second target encryption mode
  • the password is the second target password
  • the processor 3000 performs Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records, including:
  • Wi-Fi scanning is performed according to the scanning priority order and the M Wi-Fi connection records.
  • the processor 3000 matches the target SSID with the SSID in the M Wi-Fi connection records, including:
  • Each character of the target SSID is connected to each of the M Wi-Fi records in the Wi-Fi
  • Each character of the SSID of the connection record is matched.
  • the processor 3000 performs Wi-Fi scanning according to the target SSID and the SSID included in the M Wi-Fi connection records, including:
  • Wi-Fi scanning is performed according to the target Wi-Fi connection record.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes some or all of the wireless fidelity Wi-Fi connection methods described in the foregoing method embodiments. step.
  • Embodiments of the present invention also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program, the computer program being operative to cause a computer to perform the operations as recited in the above method embodiments Some or all of the steps of any wireless fidelity Wi-Fi connection method.
  • embodiments of the present invention can be provided as a method, apparatus (device), or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the present invention is a flow of a method, apparatus (device) and computer program product according to an embodiment of the present invention.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

本发明实施例提供了一种无线保真Wi-Fi连接方法及相关产品,所述方法包括:获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;根据所述X个参数进行Wi-Fi扫描;在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。通过本发明实施例可在SSID输入错误的情况下,提高隐藏AP的连接效率。

Description

无线保真Wi-Fi连接方法及相关产品
本发明要求2017年2月20日递交的发明名称为“一种无线保真Wi-Fi连接方法及移动终端”的申请号201710090717.3的在先申请优先权,上述在先申请的内容以引入的方式并入本文本中。
技术领域
本发明涉及通信技术领域,具体涉及一种无线保真Wi-Fi连接方法及相关产品。
背景技术
随着信息技术的快速发展,移动终端(如手机、平板电脑等等)使用越来越普及,用户对移动终端的要求也越来越高,不仅需要较高的处理速度,而且对无线保真(Wireless Fidelity,Wi-Fi)的依赖也越来越强。随着移动终端以及Wi-Fi的普及,通过移动终端来接入Wi-Fi网络也越来越频繁。
通常情况下,移动终端在连接隐藏接入点(Access Point,AP),需要在服务集标识(Service Set Identifier,SSID)、加密方式、以及密码都匹配才可以正常的连接。
发明内容
本发明实施例提供了一种无线保真Wi-Fi连接方法及相关产品,可以在SSID输入错误的情况下,提高隐藏AP的连接效率。
本发明实施例第一方面提供了一种无线保真Wi-Fi连接方法,包括:
获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
根据所述X个参数进行Wi-Fi扫描;
在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
本发明实施例第二方面提供了一种无线保真Wi-Fi连接装置,包括:
获取单元,用于获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
第一扫描单元,用于根据所述X个参数进行Wi-Fi扫描;
确定单元,用于在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
第二扫描单元,用于根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
第三方面,本发明实施例提供了一种移动终端,包括:处理器和存储器;以及一个或多个程序,所述一个或多个程序被存储在所述存储器中,并且被配置成由所述处理器执行,所述程序包括用于如第一方面中所描述的部分或全部步骤的指令。
第四方面,本发明实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质用于存储计算机程序,其中,所述计算机程序使得计算机执行如本发明实施例第一方面中所描述的部分或全部步骤的指令。
第五方面,本发明实施例提供了一种计算机程序产品,其中,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如本发明实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明实施例提供的一种无线保真Wi-Fi连接方法的第一实施例流 程示意图;
图2是本发明实施例提供的一种无线保真Wi-Fi连接方法的第二实施例流程示意图;
图3是本发明实施例提供的一种无线保真Wi-Fi连接方法的第三实施例流程示意图;
图4a是本发明实施例提供的一种无线保真Wi-Fi连接装置的实施例结构示意图;
图4b是本发明实施例提供的图4a所描述的无线保真Wi-Fi连接装置的确定单元的结构示意图;
图4c是本发明实施例提供的图4b所描述的确定单元的第一确定模块的又一结构示意图;
图4d是本发明实施例提供的图4a所描述的无线保真Wi-Fi连接装置的确定单元的又一结构示意图;
图4e是本发明实施例提供的图4a所描述的无线保真Wi-Fi连接装置的确定单元的又一结构示意图;
图4f是本发明实施例提供的图4a所描述的无线保真Wi-Fi连接装置的第二扫描单元的结构示意图;
图4g是本发明实施例提供的图4a所描述的无线保真Wi-Fi连接装置的第二扫描单元的又一结构示意图;
图5是本发明实施例提供的一种移动终端的实施例结构示意图。
具体实施方式
相关技术中,如果输错了错误的SSID,则无法搜索到用户需要连接的隐藏AP,因此,导致Wi-Fi连接效率太低。因此,本发明实施例提供了一种无线保真Wi-Fi连接方法及相关产品,可以在SSID输入错误的情况下,提高隐藏AP的连接效率。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳 动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置展示该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本发明实施例所描述移动终端可以包括智能手机(如Android手机、iOS手机、Windows Phone手机等)、平板电脑、掌上电脑、笔记本电脑、移动互联网设备(MID,Mobile Internet Devices)或穿戴式设备等,上述仅是举例,而非穷举,包含但不限于上述移动终端。
需要说明的是,本发明实施例中,目标接入点可为用户指定的一个接入点。在接入点为隐藏接入点的情况下,用户输入该接入点的SSID、加密方式、密码等信息。在只输入接入点的SSID时,可根据该SSID进行Wi-Fi扫描,可用于搜索与该接入点的SSID相同的接入点。在只输入接入点的SSID和加密方式时,可根据该SSID和加密方式进行Wi-Fi扫描,可用于搜索与该接入点的SSID以及加密方式都相同的接入点。在输入接入点的SSID、加密方式以及密码时,可根据该SSID、加密方式以及密码进行Wi-Fi扫描,可用于搜索与该接入点的SSID、加密方式以及密码都相同的接入点。
需要说明的是,本发明实施例中,当前网络环境可理解为当前移动终端所在的网络环境,其当前网络环境信息可包括但不仅限于:当前的扫描结果(例如,进行Wi-Fi扫描,可得到周围接入点的接入点信息,该接入点信息可包括但不仅限于:信号强度、位置、SSID、BSSID、加密方式等等),移动终端的当前位置等等。
需要说明的是,本发明实施例中的历史Wi-Fi连接数据可包含多条Wi-Fi连接记录,每一Wi-Fi连接记录中可包含一个成功连接过的接入点,当然,每一Wi-Fi连接记录还可包含该成功连接过的接入点的属性信息、网络环境信息(例如,移动终端的位置、周围的接入点的信号强度等、周围接入点的属性信息),该属性信息可包括以下至少一个:SSID、BSSID、加密方式、密码、是否隐藏(隐藏或者非隐藏)等。当然,在移动终端每次成功接入某个接入点之后,可生成一条Wi-Fi连接记录,记录下该接入点的SSID、BSSID、加密方式、密码、是否隐藏以及移动终端的位置。进一步地,本发明实施例中的Wi-Fi连接记录还可以包含未成功连接过的接入点,例如,未成功连接过的接入点意思是指移动终端未对该接入点进行Wi-Fi连接,或者,对该接入点进行过Wi-Fi连接但连接失败的接入点,例如,以某个隐藏接入点a为为例,当以A的SSID进行Wi-Fi扫描时,可搜索到该接入点,但是,由于输入a的密码错误,从而,导致无法接入该接入点,但是,可生成一条Wi-Fi连接记录。
请参阅图1,为本发明实施例提供的一种无线保真Wi-Fi连接方法的第一实施例流程示意图。本实施例中所描述的无线保真Wi-Fi连接方法,包括以下步骤:
101、获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数。
其中,目标接入点的参数可包括但不仅限于:SSID、BSSID、加密方式和密码。上述X为大于或等于1的整数。上述X个参数可由用户自行输入,或者,从移动终端的存储器中读取(例如,移动终端中预先保存了多个SSID,可读取人一个SSID)。
102、根据所述X个参数进行Wi-Fi扫描。
其中,移动终端根据上述X个参数进行Wi-Fi扫描时,可能扫描到目标接入点,当然,也可能扫描不到接入点。例如,在SSID输入错误的情况下,就扫描不到接入点。在该情况下,依旧可扫描得到非隐藏的接入点,以及其他SSID为空的接入点(即隐藏接入点)。
103、在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi 连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数。
其中,上述根据当前网络环境信息可为移动终端当前所处网络环境。在移动终端扫描不到目标接入点时,可通过当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,上述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,M为正整数。
可选地,上述步骤102中,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,可包括如下步骤:
31)、从扫描结果中获取SSID为空的N个接入点的接入点信息,所述N为正整数;
32)、根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录。
其中,在移动终端进行Wi-Fi扫描之后,可从扫描结果中获取SSID为空的N个接入点的接入点信息,N为正整数。
可选地,上述步骤32中,根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,可包括如下步骤:
321)、从所述历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,得到A条Wi-Fi连接记录,所述A为不小于所述M的整数;
322)、确定所述A条Wi-Fi连接记录中包含所述N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式的Wi-Fi连接记录,得到所述M条Wi-Fi连接记录。
其中,可从历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,因而,可得到A条Wi-Fi连接记录,A为不小于M的整数。进一步地,可从A条Wi-Fi连接记录寻找与N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式均相同的Wi-Fi连接记录。例如,以N个接入点中的某个接入点为例,可以该接入点的BSSID和加密方式分别为:bssid1,wpa_psk,则可以根据该bssid1,wpa_psk对A条Wi-Fi连接记录中的每一Wi-Fi连接记录进行遍历,以找到包含bssid1和wpa_psk相同的Wi-Fi连接记录。
104、根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行 Wi-Fi扫描。
可选地,上述步骤104中,根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,可包括如下步骤:
41)、将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到所述M个匹配值;
42)、根据所述M个匹配值确定所述M条Wi-Fi连接记录的扫描优先级顺序;
43)、根据所述扫描优先级顺序以及所述M条Wi-Fi连接记录进行Wi-Fi扫描。
其中,上述步骤41中,可将目标SSID与M条Wi-Fi连接记录中的SSID进行匹配,具体地,可将目标SSID的每一字符与M条Wi-Fi连接记录中的每一Wi-Fi连接记录的SSID的每一字符进行匹配,以得到目标SSID与M条Wi-Fi连接记录中的每一Wi-Fi连接记录的SSID之间的匹配值,如此,可得到M个匹配值。例如,可判断两个SSID中相同字符的个数,如:两个SSID分别为:ssid和ssid1,则两个SSID之间相同字符的个数为4,则可认为匹配值为4。如此,可进一步根据上述M个匹配值确定M条Wi-Fi连接记录的扫描优先级顺序,例如,可按照匹配值由大到小的顺序确定M条Wi-Fi连接记录的扫描优先级顺序。进而,可根据扫描优先级顺序以及上述M条Wi-Fi连接记录进行Wi-Fi扫描,例如,M条Wi-Fi连接记录包含A、B、C和D,扫描优先级顺序为B、C、A、D,则可优先根据Wi-Fi连接记录B进行Wi-Fi扫描,例如,可根据Wi-Fi连接记录B中的成功连接过的接入点的接入点信息进行Wi-Fi扫描。
可选地,上述步骤104中,根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,可包括如下步骤:
45)、将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到目标Wi-Fi连接记录;
46)、根据所述目标Wi-Fi连接记录进行Wi-Fi扫描。
其中,上述步骤45中,将目标SSID与M条Wi-Fi连接记录中的SSID进行匹配时,若目标SSID与M条Wi-Fi连接记录中的某一SSID之间的差别在 预设范围内,则认为该SSID与目标SSID匹配,预设范围可为:存在不多于一个字符的差异,例如,目标SSID为cathay007,而某一Wi-Fi连接记录中的SSID为cathau007,则可认为两者匹配,当然,在实际应用中,不排除用户笔误的情况,因而,本发明实施例可提供一种容错机制,从而,可提高隐藏AP的连接效率。又例如,可将目标SSID与M条Wi-Fi连接记录中的M个SSID进行匹配,当存在与目标SSID一样的第一SSID时,可根据该第一SSID对应的Wi-Fi连接记录进行Wi-Fi扫描,或者,可从第一SSID对应的Wi-Fi连接记录中提取成功连接过的接入点的加密方式,根据该加密方式以及目标SSID进行Wi-Fi扫描。
在具体实现中,本发明实施例中,可用于如下场景,通常情况下,在连接隐藏AP的时候就指定了完全正确的SSID来扫描找到AP,否则,SSID稍有一点错误,就无法扫描到指定的AP,进而导致无法连接,例如,指定SSID为abcd1,而进行Wi-Fi扫描时候的AP的SSID为abcd,如此,就无法扫描到指定AP,导致连接不上AP。本发明实施例可根据当前扫描到的SSID为空的所有AP的BSSID,找到与历史Wi-Fi连接数据中的所有包含成功连接过并且BSSID及加密方式与SSID为空的某个AP一样的AP的Wi-Fi连接记录,将这些Wi-Fi连接记录中的AP信息保存在一个列表L中。然后,可用输入的SSID与列表L中的AP进行SSID匹配值排序,进而,根据匹配值从高到低依次指定L中的AP的SSID进行扫描,如果扫描到,则进行连接,否则,可根据匹配值继续扫描直到列表L中的AP都被扫描一遍。如此,可增加连接到隐藏AP的成功率。
通过本发明实施例,获取目标接入点的X个参数,该X个参数至少包含所述目标接入点的目标SSID,X为正整数,根据该X个参数进行Wi-Fi扫描,在扫描不到目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,M为正整数,根据目标SSID和M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。虽然在SSID输入错误的情况下,扫描不到目标接入点时,但可从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的M条Wi-Fi连接记录,并根据该M条Wi-Fi连接记录的SSID和目标SSID 进行Wi-Fi扫描,可提高扫描到目标接入点的成功率,从而,提高隐藏AP的连接效率。
与上述一致地,请参阅图2,为本发明实施例提供的一种无线保真Wi-Fi连接方法的第二实施例流程示意图。本实施例中所描述的无线保真Wi-Fi连接方法,包括以下步骤:
201、获取目标接入点的X个参数,所述X个参数包含所述目标接入点的目标SSID、第一目标加密方式以及第一目标密码。
202、根据所述X个参数进行Wi-Fi扫描。
203、在扫描不到所述目标接入点时,获取当前位置。
其中,移动终端可通过全球定位系统(Global Positioning System,GPS)确定移动终端的当前位置,或者,移动终端可通过Wi-Fi定位技术确定移动终端的当前位置。上述移动终端的当前位置可用经纬度进行表示,例如,当前位置可表示为东经113°46',北纬22°27'。当然,若是采用Wi-Fi定位技术确定移动终端的当前位置,那么,将当前Wi-Fi扫描到的某一AP的位置作为该移动终端的位置,该AP的位置若标记在室内地图上可作为是一个点(一个表示移动终端位置的点)。
204、从历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以所述当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,所述P为不小于M的正整数,所述M为正整数。
其中,历史Wi-Fi连接数据中的每一Wi-Fi连接记录可包含一个位置。因而,可从历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,M为正整数,P为不小于M的正整数。
205、从所述P条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述第一目标加密方式和所述第一目标密码。
其中,移动终端可根据第一目标加密方式和第一目标密码对P条Wi-Fi连接记录进行遍历,得到M条Wi-Fi连接记录。
206、根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
其中,上述步骤201、202以及步骤206的具体描述可参照图1所描述的无线保真Wi-Fi连接方法的相应步骤,在此不再赘述。
例如,用户在每次连接上一个AP后,就记录下该AP的SSID、BSSID、加密方式、密码以及该移动终端的位置来组成该AP的Wi-Fi连接记录,并将其保存到该移动终端的某个文件中,该文件可设置为只进不出,用于记录所有成功连接过的AP的信息,从而,得到历史Wi-Fi连接数据。移动终端可确定该移动终端的位置,并在历史Wi-Fi连接数据中查找在该位置的预设范围内(如10米)的所有包含成功连接过,并且加密方式及密码一样的AP的Wi-Fi连接记录,将这些Wi-Fi连接记录中的AP信息保存在一个列表L中。然后,用输入的SSID与列表L中的AP的SSID进行匹配,得到多个匹配值,可根据匹配值从高到低的顺序确定扫描优先级顺序,根据该扫描优先级顺序依次指定列表L中的AP的SSID进行扫描,如果扫描到,则可进行连接,否则,根据该扫描优先级继续扫描直到列表L中的所有AP都被扫描一遍。
如此,可在SSID输入错误的情况下,扫描不到目标接入点时,但可根据移动终端的当前位置从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的M条Wi-Fi连接记录,并根据该M条Wi-Fi连接记录的SSID和目标SSID进行Wi-Fi扫描,可提高扫描到目标接入点的成功率,从而,提高隐藏AP的连接效率。
与上述一致地,请参阅图3,为本发明实施例提供的一种无线保真Wi-Fi连接方法的第三实施例流程示意图。本实施例中所描述的无线保真Wi-Fi连接方法,包括以下步骤:
301、获取目标接入点的X个参数,所述X个参数包含所述目标接入点的目标SSID、第二目标加密方式以及第二目标密码,所述X为正整数。
302、根据所述X个参数进行Wi-Fi扫描。
303、在扫描不到所述目标接入点时,获取周围信号强度值大于预设阈值的B个接入点的接入点信息,所述B为正整数。
其中,在扫描不到目标接入点时,依旧可以得到其他接入点的接入点信息,因而,可从扫描结果中选取周围信号强度值大于预设阈值的B个接入点的接入点信息,上述B为正整数。
304、从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,所述Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述B个接入点中的至少T个BSSID,所述T为小于或等于所述B的正整数。
其中,上述T可由用户自行设置或者系统默认。上述B个接入点可包含B个BSSID,移动终端可从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含B个接入点中的至少T个BSSID(即B个BSSID中的至少T个BSSID),T为小于或等于B的正整数。
305、从所述Q条Wi-Fi连接记录中选取M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为所述第二目标加密方式,密码为所述第二目标密码。
其中,从Q条Wi-Fi连接记录中选取M条Wi-Fi连接记录,M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为第二目标加密方式,密码为第二目标密码。
306、根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
其中,上述步骤301、302以及步骤306的具体描述可参照图1所描述的无线保真Wi-Fi连接方法的相应步骤,在此不再赘述。
例如,用户每次成功连接上一个AP之后,可记录下该AP的BSSID、加密方式、密码,以及最多M个(如M=5个)周围的信号强度大于R的(如R=-80db)AP,这些周围的AP(这些满足条件的周围的AP可称为该AP的邻居信息)组成该AP的Wi-Fi连接记录,多条Wi-Fi连接记录可构成历史Wi-Fi连接数据,将其保存到本机文件中。移动终端可根据当前扫描到的AP信息,取最多M个信号强度大于R的扫描到的AP,与历史记录保存过的AP的邻居信息进行匹配,如果这M个扫描到的AP的BSSID与历史记录中的任何一个AP的邻居信息中的至少N(N<M,如N=3)个AP的BSSID相等,则初步匹 配成功,可将这些初步匹配成功的历史Wi-Fi连接记录中的AP中加密方式及密码与第二目标加密方式和第二目标密码一样的历史Wi-Fi连接记录中的AP信息保存在一个列表L中。然后,用输入的SSID与列表L中的AP的SSID进行匹配,得到多个匹配值,可根据匹配值从高到低的顺序确定扫描优先级顺序,根据该扫描优先级顺序依次指定列表L中的AP的SSID进行扫描,如果扫描到,则可进行连接,否则,根据该扫描优先级继续扫描直到列表L中的所有AP都被扫描一遍。
如此,可在SSID输入错误的情况下,扫描不到目标接入点时,但可根据移动终端的周围信号强度大于某一阈值的接入点的接入点信息从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的M条Wi-Fi连接记录,并根据该M条Wi-Fi连接记录的SSID和目标SSID进行Wi-Fi扫描,可提高扫描到目标接入点的成功率,从而,提高隐藏AP的连接效率。
与上述一致地,以下为实施上述无线保真Wi-Fi连接方法的装置,具体如下:
请参阅图4a,为本发明实施例提供的一种无线保真Wi-Fi连接装置的实施例结构示意图。本实施例中所描述的无线保真Wi-Fi连接装置,包括:获取单元401、第一扫描单元402、确定单元403和第二扫描单元404,具体如下:
获取单元401,用于获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
第一扫描单元402,用于根据所述X个参数进行Wi-Fi扫描;
确定单元403,用于在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
第二扫描单元404,用于根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
可选地,如图4b,图4b为图4a所描述的无线保真Wi-Fi连接装置的确定单元403的具体细化结构,所述确定单元403可包括:第一获取模块4031和 第一确定模块4032,具体如下:
第一获取模块4031,用于从扫描结果中获取SSID为空的N个接入点的接入点信息,所述N为正整数;
第一确定模块4032,用于根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录。
进一步可选地,如图4c,图4c是图4b所描述的确定单元403的第一确定模块4032的具体细化结构,所述第一确定模块4032可包括:第一选取模块501和第二确定模块502,具体如下:
第一选取模块501,用于从所述历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,得到A条Wi-Fi连接记录,所述A为不小于所述M的整数;
第二确定模块502,用于确定所述A条Wi-Fi连接记录中包含所述N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式的Wi-Fi连接记录,得到所述M条Wi-Fi连接记录。
可选地,所述X个参数还包括第一目标加密方式以及第一目标密码,如图4d,图4d为图4a所描述的无线保真Wi-Fi连接装置的确定单元403的具体细化结构,所述确定单元403可包括:第二获取模块4033、第三确定模块4034和第二选取模块4035,具体如下:
第二获取模块4033,用于获取当前位置;
第三确定模块4034,用于从所述历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以所述当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,所述P为不小于所述M的正整数;
第二选取模块4035,用于从所述P条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述第一目标加密方式和所述第一目标密码。
可选地,第二获取模块4033获取当前位置的具体实现方式为:
通过全球定位系统或者Wi-Fi定位技术获取当前位置。
可选地,所述X个参数还包括第二目标加密方式以及第二目标密码,如图4e,图4e为图4a所描述的无线保真Wi-Fi连接装置的确定单元403的具体 细化结构,所述确定单元403可包括:第三获取模块4036、第四确定模块4037和第三选取模块4038,具体如下:
所述确定单元包括:
第三获取模块4036,用于获取周围信号强度值大于预设阈值的B个接入点的接入点信息,所述B为正整数;
第四确定模块4037,用于从所述历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,所述Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述B个接入点中的至少T个BSSID,所述T为小于或等于所述B的正整数;
第三选取模块4038,用于从所述Q条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为所述第二目标加密方式,密码为所述第二目标密码。
可选地,如图4f,图4f为图4a所描述的无线保真Wi-Fi连接装置的第二扫描单元404的具体细化结构,所述第二扫描单元404可包括:第一匹配模块4041、第五确定模块4042和第一扫描模块4043,具体如下:
第一匹配模块4041,用于将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到所述M个匹配值;
第五确定模块4042,用于根据所述M个匹配值确定所述M条Wi-Fi连接记录的扫描优先级顺序;
第一扫描模块4043,用于根据所述扫描优先级顺序以及所述M条Wi-Fi连接记录进行Wi-Fi扫描。
可选地,第一匹配模块4041将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配的具体实现方式为:
将所述目标SSID的每一字符与所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录的SSID的每一字符进行匹配。
可选地,如图4g,图4g为图4a所描述的无线保真Wi-Fi连接装置的第二扫描单元404的具体细化结构,所述第二扫描单元404可包括:第二匹配模块4044和第二扫描模块4045,具体如下:
第二匹配模块4044,用于将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到目标Wi-Fi连接记录;
第二扫描模块4045,用于根据所述目标Wi-Fi连接记录进行Wi-Fi扫描。
可以看出,通过本发明实施例所描述的无线保真Wi-Fi连接装置,获取目标接入点的X个参数,该X个参数至少包含所述目标接入点的目标SSID,X为正整数,根据该X个参数进行Wi-Fi扫描,在扫描不到目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,M为正整数,根据目标SSID和M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。虽然在SSID输入错误的情况下,扫描不到目标接入点时,但可从历史Wi-Fi连接数据中确定出包含成功连接过的接入点的M条Wi-Fi连接记录,并根据该M条Wi-Fi连接记录的SSID和目标SSID进行Wi-Fi扫描,可提高扫描到目标接入点的成功率,从而,提高隐藏AP的连接效率。
需要注意的是,本发明装置实施例所描述的无线保真Wi-Fi连接装置是以功能单元的形式呈现。这里所使用的术语“单元”应当理解为尽可能最宽的含义,用于实现各个“单元”所描述功能的对象例如可以是集成电路ASIC,单个电路,用于执行一个或多个软件或固件程序的处理器(共享的、专用的或芯片组)和存储器,组合逻辑电路,和/或提供实现上述功能的其他合适的组件。
举例来说,获取单元401,用于获取目标接入点的X个参数的功能可以由图5所示的移动终端来实现,具体可以通过处理器3000通过调用存储器4000中的可执行程序代码,获取目标接入点的X个参数。
与上述一致地,请参阅图5,为本发明实施例提供的一种移动终端的实施例结构示意图。本实施例中所描述的移动终端,包括:至少一个输入设备1000;至少一个输出设备2000;至少一个处理器3000,例如CPU;和存储器4000,上述输入设备1000、输出设备2000、处理器3000和存储器4000通过总线5000连接。
其中,上述输入设备1000具体可为触控面板、物理按键或者鼠标。
上述输出设备2000具体可为显示屏。
上述存储器4000可以是高速RAM存储器,也可为非易失存储器(non-volatile memory),例如磁盘存储器。上述存储器4000用于存储一组程序代码,上述输入设备1000、输出设备2000和处理器3000用于调用存储器4000中存储的程序代码,执行如下操作:
上述处理器3000,用于:
获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
根据所述X个参数进行Wi-Fi扫描;
在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
可选地,上述处理器3000根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
从扫描结果中获取SSID为空的N个接入点的接入点信息,所述N为正整数;
根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录。
可选地,上述处理器3000根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
从所述历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,得到A条Wi-Fi连接记录,所述A为不小于所述M的整数;
确定所述A条Wi-Fi连接记录中包含所述N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式的Wi-Fi连接记录,得到所述M条Wi-Fi连接记录。
可选地,上述处理器3000,所述X个参数还包括第一目标加密方式以及第一目标密码,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
获取当前位置;
从所述历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以所述当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,所述P为不小于所述M的正整数;
从所述P条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述第一目标加密方式和所述第一目标密码。
可选地,上述处理器3000,获取当前位置,包括:
通过全球定位系统或者Wi-Fi定位技术获取当前位置。
可选地,上述处理器3000,所述X个参数还包括第二目标加密方式以及第二目标密码,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
获取周围信号强度值大于预设阈值的B个接入点的接入点信息,所述B为正整数;
从所述历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,所述Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述B个接入点中的至少T个BSSID,所述T为小于或等于所述B的正整数;
从所述Q条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为所述第二目标加密方式,密码为所述第二目标密码。
可选地,上述处理器3000根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,包括:
将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到所述M个匹配值;
根据所述M个匹配值确定所述M条Wi-Fi连接记录的扫描优先级顺序;
根据所述扫描优先级顺序以及所述M条Wi-Fi连接记录进行Wi-Fi扫描。
可选地,上述处理器3000将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,包括:
将所述目标SSID的每一字符与所述M条Wi-Fi连接记录中的每一Wi-Fi 连接记录的SSID的每一字符进行匹配。
可选地,上述处理器3000根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,包括:
将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到目标Wi-Fi连接记录;
根据所述目标Wi-Fi连接记录进行Wi-Fi扫描。
本发明实施例还提供一种计算机存储介质,其中,该计算机存储介质可存储有程序,该程序执行时包括上述方法实施例中记载的任何一种无线保真Wi-Fi连接方法的部分或全部步骤。
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种无线保真Wi-Fi连接方法的部分或全部步骤。
尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。
本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。
本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流 程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (20)

  1. 一种无线保真Wi-Fi连接方法,其特征在于,包括:
    获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
    根据所述X个参数进行Wi-Fi扫描;
    在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
    根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
  2. 根据权利要求1所述的方法,其特征在于,所述根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
    从扫描结果中获取SSID为空的N个接入点的接入点信息,所述N为正整数;
    根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录。
  3. 根据权利要求2所述的方法,其特征在于,所述根据所述N个接入点的接入点信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
    从所述历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,得到A条Wi-Fi连接记录,所述A为不小于所述M的整数;
    确定所述A条Wi-Fi连接记录中包含所述N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式的Wi-Fi连接记录,得到所述M条Wi-Fi连接记录。
  4. 根据权利要求1所述的方法,其特征在于,所述X个参数还包括第一目标加密方式以及第一目标密码;
    所述根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
    获取当前位置;
    从所述历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以所述当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,所述P为不小于所述M的正整数;
    从所述P条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述第一目标加密方式和所述第一目标密码。
  5. 根据权利要求4所述的方法,其特征在于,所述获取当前位置,包括:
    通过全球定位系统或者Wi-Fi定位技术获取当前位置。
  6. 根据权利要求1所述的方法,其特征在于,所述X个参数还包括第二目标加密方式以及第二目标密码;
    所述根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,包括:
    获取周围信号强度值大于预设阈值的B个接入点的接入点信息,所述B为正整数;
    从所述历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,所述Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述B个接入点中的至少T个BSSID,所述T为小于或等于所述B的正整数;
    从所述Q条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为所述第二目标加密方式,密码为所述第二目标密码。
  7. 根据权利要求1至6任一项所述的方法,其特征在于,所述根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,包括:
    将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到 所述M个匹配值;
    根据所述M个匹配值确定所述M条Wi-Fi连接记录的扫描优先级顺序;
    根据所述扫描优先级顺序以及所述M条Wi-Fi连接记录进行Wi-Fi扫描。
  8. 根据权利要求7所述的方法,其特征在于,所述将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,包括:
    将所述目标SSID的每一字符与所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录的SSID的每一字符进行匹配。
  9. 根据权利要求1至6任一项所述的方法,其特征在于,所述根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描,包括:
    将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到目标Wi-Fi连接记录;
    根据所述目标Wi-Fi连接记录进行Wi-Fi扫描。
  10. 一种无线保真Wi-Fi连接装置,其特征在于,包括:
    获取单元,用于获取目标接入点的X个参数,所述X个参数至少包含所述目标接入点的目标SSID,所述X为正整数;
    第一扫描单元,用于根据所述X个参数进行Wi-Fi扫描;
    确定单元,用于在扫描不到所述目标接入点时,根据当前网络环境信息从历史Wi-Fi连接数据中确定出M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中每一Wi-Fi连接记录包含一个成功连接过的接入点,所述M为正整数;
    第二扫描单元,用于根据所述目标SSID和所述M条Wi-Fi连接记录中包含的SSID进行Wi-Fi扫描。
  11. 根据权利要求10所述的装置,其特征在于,所述确定单元包括:
    第一获取模块,用于从扫描结果中获取SSID为空的N个接入点的接入点信息,所述N为正整数;
    第一确定模块,用于根据所述N个接入点的接入点信息从历史Wi-Fi连接 数据中确定出M条Wi-Fi连接记录。
  12. 根据权利要求11所述的装置,其特征在于,所述第一确定模块包括:
    第一选取模块,用于从所述历史Wi-Fi连接数据选取包含成功连接过的接入点的Wi-Fi连接记录,得到A条Wi-Fi连接记录,所述A为不小于所述M的整数;
    第二确定模块,用于确定所述A条Wi-Fi连接记录中包含所述N个接入点中任一接入点的BSSID以及该BSSID对应的加密方式的Wi-Fi连接记录,得到所述M条Wi-Fi连接记录。
  13. 根据权利要求10所述的装置,其特征在于,所述X个参数还包括第一目标加密方式以及第一目标密码;
    所述确定单元包括:
    第二获取模块,用于获取当前位置;
    第三确定模块,用于从所述历史Wi-Fi连接数据中确定出包含的移动终端的位置处于以所述当前位置为中心的预设范围内且包含成功连接过的接入点的P条Wi-Fi连接记录,所述P为不小于所述M的正整数;
    第二选取模块,用于从所述P条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述第一目标加密方式和所述第一目标密码。
  14. 根据权利要求10所述的装置,其特征在于,所述X个参数还包括第二目标加密方式以及第二目标密码;
    所述确定单元包括:
    第三获取模块,用于获取周围信号强度值大于预设阈值的B个接入点的接入点信息,所述B为正整数;
    第四确定模块,用于从所述历史Wi-Fi连接数据中确定出包含成功连接过的接入点的Q条Wi-Fi连接记录,所述Q条Wi-Fi连接记录中的每一Wi-Fi连接记录包含所述B个接入点中的至少T个BSSID,所述T为小于或等于所 述B的正整数;
    第三选取模块,用于从所述Q条Wi-Fi连接记录中选取所述M条Wi-Fi连接记录,所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录中的成功连接过的接入点的加密方式为所述第二目标加密方式,密码为所述第二目标密码。
  15. 根据权利要求10至14任一项所述的装置,其特征在于,所述第二扫描单元包括:
    第一匹配模块,用于将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到所述M个匹配值;
    第五确定模块,用于根据所述M个匹配值确定所述M条Wi-Fi连接记录的扫描优先级顺序;
    第一扫描模块,用于根据所述扫描优先级顺序以及所述M条Wi-Fi连接记录进行Wi-Fi扫描。
  16. 根据权利要求15所述的装置,其特征在于,所述第一匹配模块具体用于:
    将所述目标SSID的每一字符与所述M条Wi-Fi连接记录中的每一Wi-Fi连接记录的SSID的每一字符进行匹配。
  17. 根据权利要求10至14任一项所述的装置,其特征在于,所述第二扫描单元包括:
    第二匹配模块,用于将所述目标SSID与所述M条Wi-Fi连接记录中的SSID进行匹配,得到目标Wi-Fi连接记录;
    第二扫描模块,用于根据所述目标Wi-Fi连接记录进行Wi-Fi扫描。
  18. 一种移动终端,其特征在于,包括:
    处理器和存储器;其中,所述处理器通过调用所述存储器中的代码或指令以执行如权利要求1至9任意一项所述的方法。
  19. 一种计算机存储介质,其特征在于,其用于存储计算机程序,其中,所述计算机程序使得计算机执行如权利要求1-9任一项所述的方法。
  20. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如权利要求1-9任一项所述的方法。
PCT/CN2017/103174 2017-02-20 2017-09-25 无线保真Wi-Fi连接方法及相关产品 WO2018149137A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP17896742.8A EP3562257B1 (en) 2017-02-20 2017-09-25 Wireless fidelity (wi-fi) connection method and related product
US16/535,850 US10873900B2 (en) 2017-02-20 2019-08-08 Method for wireless fidelity connection and related products

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710090717.3A CN106804055B (zh) 2017-02-20 2017-02-20 一种无线保真Wi-Fi连接方法及移动终端
CN201710090717.3 2017-02-20

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US16/535,850 Continuation US10873900B2 (en) 2017-02-20 2019-08-08 Method for wireless fidelity connection and related products

Publications (1)

Publication Number Publication Date
WO2018149137A1 true WO2018149137A1 (zh) 2018-08-23

Family

ID=58988505

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/103174 WO2018149137A1 (zh) 2017-02-20 2017-09-25 无线保真Wi-Fi连接方法及相关产品

Country Status (4)

Country Link
US (1) US10873900B2 (zh)
EP (1) EP3562257B1 (zh)
CN (1) CN106804055B (zh)
WO (1) WO2018149137A1 (zh)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106804055B (zh) * 2017-02-20 2019-05-28 Oppo广东移动通信有限公司 一种无线保真Wi-Fi连接方法及移动终端
CN106686587B (zh) 2017-02-20 2020-01-14 Oppo广东移动通信有限公司 一种无线保真Wi-Fi连接方法、移动终端及介质
EP3637859B1 (en) 2017-07-04 2021-11-24 Huawei Technologies Co., Ltd. Hidden hotspot scanning based on a match of mac addresses
CN110431868B (zh) * 2017-08-23 2022-05-31 华为技术有限公司 一种Wi-Fi热点的连接方法及终端
CN108601066B (zh) * 2018-06-20 2021-09-21 上海尚往网络科技有限公司 无线接入点连接、连接效率计算方法、装置、设备及介质
CN109195204B (zh) * 2018-11-12 2021-02-12 Oppo广东移动通信有限公司 无线网络接入方法及装置、计算机可读介质、通信终端
JP7418114B2 (ja) * 2019-11-27 2024-01-19 キヤノン株式会社 通信装置、その制御方法、およびそのプログラム
CN111465083B (zh) * 2020-04-15 2023-03-31 浙江大华技术股份有限公司 热点连接结果的反馈方法及装置、存储介质、电子装置
CN112564942A (zh) * 2020-11-19 2021-03-26 深圳市晨北科技有限公司 物联网设备的配网控制方法及装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722693A (zh) * 2004-06-22 2006-01-18 日本电气株式会社 无线lan通信系统、无线lan连接方法及无线lan终端装置
US8041319B2 (en) * 2004-12-23 2011-10-18 Avaya Inc. Method and apparatus to intelligently perform scanning and assist scanning by profiling scanning history
CN105188056A (zh) * 2015-08-17 2015-12-23 深圳市江波龙科技有限公司 一种WiFi设备与接入点的连接方法及装置
CN105657781A (zh) * 2014-11-14 2016-06-08 深圳市腾讯计算机系统有限公司 接入WiFi网络的方法及装置
CN106804055A (zh) * 2017-02-20 2017-06-06 广东欧珀移动通信有限公司 一种无线保真Wi‑Fi连接方法及移动终端

Family Cites Families (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366511B2 (en) * 2004-12-20 2008-04-29 Nokia Corporation Apparatus, and associated method, for facilitating network scanning by a WLAN terminal operable in a multiple-network WLAN system
US8224518B2 (en) * 2008-08-18 2012-07-17 Trimble Navigation Limited Automated recordation of crane inspection activity
US8695063B2 (en) * 2009-10-11 2014-04-08 Blackberry Limited Authentication failure in a wireless local area network
EP3018940B1 (en) * 2011-04-08 2017-10-18 BlackBerry Limited Configuration of a mobile station according to the type of wireless local area network (wlan) deployment
CN102231887A (zh) * 2011-06-21 2011-11-02 深圳市融创天下科技股份有限公司 一种查找隐藏ssid的ap的方法、系统和终端设备
WO2014033887A1 (ja) * 2012-08-30 2014-03-06 富士通株式会社 移動端末装置、制御方法および制御プログラム
US8831643B2 (en) 2012-11-05 2014-09-09 Qualcomm Incorporated Systems and methods for utilizing hidden access points
WO2014108755A1 (en) * 2013-01-11 2014-07-17 Nokia Corporation Verifying stored location data for wlan access points
CN103826323A (zh) * 2014-02-26 2014-05-28 深圳市金立通信设备有限公司 一种无线网络连接的方法、终端及移动终端
CN104302015A (zh) * 2014-09-15 2015-01-21 浙江生辉照明有限公司 隐藏ssid的自动适配wi-fi网络连接方法及系统
JP6304308B2 (ja) * 2016-06-06 2018-04-04 富士通株式会社 移動端末装置、制御方法および制御プログラム
CN106255106A (zh) * 2016-07-26 2016-12-21 广东欧珀移动通信有限公司 一种无线网络连接方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1722693A (zh) * 2004-06-22 2006-01-18 日本电气株式会社 无线lan通信系统、无线lan连接方法及无线lan终端装置
US8041319B2 (en) * 2004-12-23 2011-10-18 Avaya Inc. Method and apparatus to intelligently perform scanning and assist scanning by profiling scanning history
CN105657781A (zh) * 2014-11-14 2016-06-08 深圳市腾讯计算机系统有限公司 接入WiFi网络的方法及装置
CN105188056A (zh) * 2015-08-17 2015-12-23 深圳市江波龙科技有限公司 一种WiFi设备与接入点的连接方法及装置
CN106804055A (zh) * 2017-02-20 2017-06-06 广东欧珀移动通信有限公司 一种无线保真Wi‑Fi连接方法及移动终端

Also Published As

Publication number Publication date
CN106804055A (zh) 2017-06-06
CN106804055B (zh) 2019-05-28
US10873900B2 (en) 2020-12-22
EP3562257A1 (en) 2019-10-30
US20190364493A1 (en) 2019-11-28
EP3562257A4 (en) 2020-05-20
EP3562257B1 (en) 2023-10-25

Similar Documents

Publication Publication Date Title
WO2018149137A1 (zh) 无线保真Wi-Fi连接方法及相关产品
US10299197B2 (en) Wireless fidelity connection method, mobile terminal and storage medium
EP3277027B1 (en) Wi-fi connection method, mobile terminal and storage medium
WO2017020654A1 (zh) 无线网络接入方法和装置
WO2018103402A1 (zh) 无线保真Wi-Fi扫描方法及相关产品
US11070529B2 (en) Method for wireless fidelity connection and related products
WO2018103405A1 (zh) 识别接入点和热点的方法及相关产品
US10728223B2 (en) WI-FI connection method, mobile terminal and storage medium
WO2018103403A1 (zh) 无线保真Wi-Fi扫描方法及相关产品
US11044766B2 (en) Method for Wi-Fi connection and related products
US11323873B2 (en) Method for wireless fidelity connection and related products
US20180176781A1 (en) Method and device for managing wireless access point
CN106793016B (zh) 一种无线保真Wi-Fi连接方法及移动终端
WO2018184414A1 (zh) 注册方法、设备及存储介质

Legal Events

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

Ref document number: 17896742

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2017896742

Country of ref document: EP

Effective date: 20190723

NENP Non-entry into the national phase

Ref country code: DE