CN111970750A - Multi-frequency WiFi identification method and device - Google Patents

Multi-frequency WiFi identification method and device Download PDF

Info

Publication number
CN111970750A
CN111970750A CN202010833413.3A CN202010833413A CN111970750A CN 111970750 A CN111970750 A CN 111970750A CN 202010833413 A CN202010833413 A CN 202010833413A CN 111970750 A CN111970750 A CN 111970750A
Authority
CN
China
Prior art keywords
wifi
frequency
public network
network
electronic equipment
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010833413.3A
Other languages
Chinese (zh)
Inventor
徐贤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010833413.3A priority Critical patent/CN111970750A/en
Publication of CN111970750A publication Critical patent/CN111970750A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • H04W36/0085Hand-off measurements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/06Reselecting a communication resource in the serving access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/08Access point devices
    • H04W88/10Access point devices adapted for operation in multiple networks, e.g. multi-mode access points

Abstract

The application discloses a multi-frequency WiFi identification method and device, and belongs to the technical field of mobile communication. The method comprises the following steps: scanning WiFi to be connected in the environment where the electronic equipment is located; identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition; wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi. The embodiment of the application solves the problem that in the prior art, electronic equipment is difficult to identify multi-frequency WiFi equipment.

Description

Multi-frequency WiFi identification method and device
Technical Field
The application belongs to the technical field of mobile communication, and particularly relates to a multi-frequency WiFi identification method and device.
Background
With the rapid development of mobile communication technology, Wireless Fidelity (WiFi or Wi-Fi) has been widely used, and the bandwidth demand of users on WiFi is also increasing. To meet the increasing bandwidth demand, current WiFi standards have started using 5G frequency bands in addition to the 2.4G frequency band to extend the total bandwidth; meanwhile, a wireless router or an Access Point (AP) device supporting two frequency bands is called a multi-frequency WiFi device.
In an operating state, a multi-frequency WiFi (i.e., a multi-frequency WiFi device) usually transmits wireless signals in two or more frequency bands at the same time, and an electronic device can access to a network covered by the two frequency bands as required, so as to achieve the purpose of sharing bandwidth. And under the condition that the bandwidth of the 5G frequency band is much larger, the access to the 5G frequency band can obtain faster network speed. However, since the frequency of the 5G band is higher, the propagation loss is larger, the penetration capability is weaker, and the coverage area is smaller than that of the 2.4G band. Therefore, in order to obtain better network performance, the electronic device needs to actively switch the frequency band in the process of using the multi-frequency WiFi as the access point, and recognizing the multi-frequency WiFi is a precondition for the terminal to actively switch the frequency band.
At present, in order to realize the support of two frequency bands by one device, two sets of radio frequency chips are usually integrated on one device, and from the perspective of the current network layering protocol, the two sets of radio frequency chips are two devices on a data link layer, while the electronic device is difficult to distinguish whether the devices on the two data link layers are two independent devices or two sets of radio frequency chips integrated in one device entity; therefore, it is difficult for the electronic device to identify multi-frequency WiFi; if the multi-frequency WiFi device cannot be identified accurately, the electronic device cannot actively switch the frequency band.
Disclosure of Invention
The embodiment of the application aims to provide a multi-frequency WiFi identification method and device, and the problem that electronic equipment is difficult to identify multi-frequency WiFi equipment can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a multi-frequency WiFi identification method, where the method includes:
scanning WiFi to be connected in the environment where the electronic equipment is located;
identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition;
wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
Optionally, the preset multi-frequency WiFi condition further includes: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
Optionally, the identifying that the WiFi to be connected is a multi-frequency WiFi under the condition that the WiFi to be connected includes a first WiFi and a second WiFi, and the first WiFi and the second WiFi satisfy a preset multi-frequency WiFi condition includes:
acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
acquiring a first WiFi from the WiFi to be connected, and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity;
accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and if the first public network IP address is the same as a second public network IP address of the second WiFi, identifying that the WiFi to be connected is the multi-frequency WiFi.
Optionally, the first WiFi is obtained from the WiFi to be connected, and the second WiFi is obtained from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet a preset similarity requirement, and the method comprises the following steps:
querying historical connection WiFi which meets the preset similarity requirement with the SSID of the WiFi to be connected in the historical connection list; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
Optionally, the first WiFi is obtained from the WiFi to be connected, and the second WiFi is obtained from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet a preset similarity requirement, and the method comprises the following steps:
in the WiFi to be connected, dividing a first WiFi to be connected which exists in the historical connection list into a first WiFi set, and dividing a second WiFi to be connected which does not exist in the historical connection list into a second WiFi set;
screening a first WiFi and a second WiFi with SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
for each first WiFi to be connected, traversing the first WiFi set, screening and the second WiFi to be connected, wherein the first WiFi to be connected meets the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
Optionally, after the identifying that the WiFi to be connected is a multi-frequency WiFi, the method further includes:
acquiring network state parameters of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and performing network switching among the multi-frequency WiFi according to the network state parameters.
In a second aspect, an embodiment of the present application further provides a multi-frequency WiFi identification apparatus, where the multi-frequency WiFi identification apparatus includes:
the scanning module is used for scanning WiFi to be connected in the environment where the electronic equipment is located;
the identification module is used for identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition;
wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
Optionally, the preset multi-frequency WiFi condition further includes: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
Optionally, the identification module comprises:
the list acquisition submodule is used for acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
the screening submodule is used for acquiring a first WiFi from the WiFi to be connected and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity;
the access sub-module is used for accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and the identification submodule is used for identifying the WiFi to be connected as multi-frequency WiFi if the first public network IP address is the same as the second public network IP address of the second WiFi.
Optionally, the screening submodule includes:
the inquiry unit is used for inquiring the SSID of the WiFi to be connected and the historical connection WiFi meeting the preset similarity requirement in the historical connection list; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
Optionally, the screening submodule includes:
a dividing unit, configured to divide, of the WiFi to be connected, a first WiFi to be connected that exists in the historical connection list into a first WiFi set, and divide a second WiFi to be connected that does not exist in the historical connection list into a second WiFi set;
the first screening unit is used for screening a first WiFi and a second WiFi which have SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
the second screening unit is used for traversing the first WiFi set for every first WiFi to be connected, screening and the second WiFi to be connected meeting the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
Optionally, the apparatus further comprises:
the parameter acquisition module is used for acquiring the network state parameters of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and the switching module is used for switching the network among the multi-frequency WiFi according to the network state parameters.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a program or instructions stored on the memory and executable on the processor, where the processor executes the program or instructions to implement the steps in the multi-frequency WiFi identification method described above.
In a fourth aspect, the present application further provides a readable storage medium, which stores a program or instructions, and the program or instructions when executed by a processor implement the steps in the multi-frequency WiFi identification method as described above.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, WiFi to be connected in the environment where the electronic equipment is located is scanned; identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition; presetting the multi-frequency WiFi condition comprises the following steps: the first public network IP address is the same as the second public network IP address, if the first public network IP address is the same as the second public network IP address, the first public network IP address and the second public network IP address are identified as different frequency bands of the multi-frequency WiFi, and the first public network IP address and the second public network IP address can be switched between the first public network IP address and the second public network IP address according to network quality conditions, so that the electronic equipment is connected with a network with high network quality, the uplink and downlink speed of the electronic equipment is improved, and the utilization.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 shows one of the flowcharts of the multi-frequency WiFi identification method provided in the embodiment of the present application;
FIG. 2 shows a schematic diagram of a first example of an embodiment of the present application;
fig. 3 is a second flowchart of a multi-frequency WiFi identification method provided in the present application;
FIG. 4 shows a flow chart of a second example of an embodiment of the present application;
FIG. 5 shows a flow chart of a third example of an embodiment of the present application;
fig. 6 shows a block diagram of a multi-frequency WiFi identification apparatus provided by an embodiment of the present application;
FIG. 7 shows one of the block diagrams of an electronic device provided by an embodiment of the application;
fig. 8 shows a second block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The multi-frequency WiFi identification method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Referring to fig. 1, an embodiment of the present application provides a multi-frequency WiFi identification method, which is optionally applicable to electronic devices including various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, as well as various forms of Mobile Stations (MSs), Terminal devices (Terminal devices), and the like.
The method comprises the following steps:
step 101, scanning WiFi to be connected in an environment where an electronic device is located.
The method comprises the steps that the electronic equipment scans WiFi to be connected in the environment where the electronic equipment is located, wherein the WiFi to be connected can be WiFi accessed by the electronic equipment or non-accessed WiFi; for convenience of description, WiFi that the electronic device has accessed is referred to as historical connection WiFi, and WiFi that has not accessed is referred to as new WiFi hereinafter. Typically, the electronic device records the access parameters, such as password, of the WiFi to which it has access, so as to connect to the WiFi next time.
As a first example, referring to fig. 2, fig. 2 is a schematic diagram of an interface of the electronic device scanning WiFi to be connected, where in a box line shown in S1, a list of WiFi to be connected is shown. Wherein the entry with the S2 identification is the new WiFi.
Step 102, identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet a preset multi-frequency WiFi condition;
the first WiFi and the second WiFi are WiFi in the WiFi to be connected, and the first WiFi and the second WiFi meet preset multi-frequency WiFi conditions in the WiFi to be connected which can be scanned by the electronic equipment.
The preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
In an operating state, a multi-frequency WiFi (i.e., a multi-frequency WiFi device) usually transmits wireless signals in two or more frequency bands at the same time, and an electronic device can access to a network covered by the two frequency bands as required, so as to achieve the purpose of sharing bandwidth. When the multi-frequency WiFi transmits wireless signals of two frequency bands simultaneously, the multi-frequency WiFi may also be referred to as dual-frequency WiFi, that is, the multi-frequency WiFi device in the embodiment of the present application includes a dual-frequency WiFi device.
A first public network Internet Protocol (IP) is a public network IP when the electronic device accesses the first WiFi, and a second public network IP is a public network IP when the electronic device accesses the second WiFi; the public Network IP is a wide area Network IP, and the wide area Network and the local area Network are two access modes of the Internet, and the local area Network converts an Address into a public Network Address based on Network Address Translation (NAT) so as to access an external Network. For multi-frequency WiFi equipment, when the electronic equipment accesses an external network through two WiFi networks of the multi-frequency WiFi equipment, public network IPs of the electronic equipment are the same; therefore, when two WiFi networks occupy the same public network IP, the two WiFi networks are different WiFi frequency bands of the same WiFi device. In this way, after identifying the multi-frequency WiFi, the electronic device may perform network handover according to network conditions.
It can be understood that there may be two or more than two WiFi simultaneously satisfying the preset multi-frequency WiFi condition; for convenience of description, in the embodiment of the present application, two WiFi full of preset multi-frequency WiFi conditions are described, in addition, the WiFi meeting the preset multi-frequency WiFi conditions may further include a third WiFi, a fourth WiFi, … …, an nth WiFi, and the like, where N is a positive integer greater than or equal to 2. The following description is given by exemplifying that WiFi meeting a preset multi-frequency WiFi condition includes a third WiFi, if the to-be-connected WiFi includes a first WiFi, a second WiFi and a third WiFi, and the first WiFi, the second WiFi and the third WiFi meet the preset multi-frequency WiFi condition, the to-be-connected WiFi is identified to be the multi-frequency WiFi, and the electronic device can perform network switching among the first WiFi, the second WiFi and the third WiFi according to a network condition.
In the embodiment of the application, WiFi to be connected in the environment where the electronic equipment is located is scanned; identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition; presetting the multi-frequency WiFi condition comprises the following steps: the first public network IP address is the same as the second public network IP address, if the first public network IP address is the same as the second public network IP address, the first public network IP address and the second public network IP address are identified as different frequency bands of the multi-frequency WiFi, and the first public network IP address and the second public network IP address can be switched between the first public network IP address and the second public network IP address according to network quality conditions, so that the electronic equipment is connected with a network with high network quality, the uplink and downlink speed of the electronic equipment is improved, and the utilization. The embodiment of the application solves the problem that in the prior art, electronic equipment is difficult to identify multi-frequency WiFi equipment.
In an optional embodiment, after the identifying the WiFi to be connected is a multi-frequency WiFi, the method further comprises:
acquiring network state parameters of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and performing network switching among the multi-frequency WiFi according to the network state parameters.
After the first WiFi and the second WiFi are identified to be multi-frequency WiFi, the electronic equipment is connected with one of the networks; in the connected state, the network state parameters of the two WiFi can be detected, so that switching can be performed according to the network quality parameters. Specifically, the network status parameter includes at least one of a signal strength, a distance between the access point device and the electronic device corresponding to the first WiFi and the second WiFi, and an uplink and downlink rate.
If the network state parameter only includes one of the three parameters, for example, the signal strength or the uplink and downlink rates, the network can be switched to a network with stronger signals or a network with higher uplink and downlink rates; if the distance between the access point device corresponding to the first WiFi and the second WiFi and the electronic device is included, a network can be selected according to the distance, for example, the coverage area of a 5G frequency band network is smaller than that of a 2.4G frequency band, if the distance is greater than or equal to a preset distance threshold, the network is switched to the network of the 2.4G frequency band, and otherwise, the network is switched to the 5G frequency band network.
If the network state parameters only comprise at least two of the three parameters, the network state can be evaluated in a weighted summation mode, and a matched WiFi network is selected, so that the electronic equipment is connected with a network with stronger network quality, the uplink and downlink rates of the electronic equipment are improved, and the utilization rate of network resources is improved.
In an optional embodiment, the preset multi-frequency WiFi condition further comprises: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
The Service Set Identifier (SSID) is usually the name of WiFi, and is used to uniquely identify a WiFi network, as shown in fig. 2 as WiFi-1 and WiFi-2 … …; the same SSID is usually used by WiFi devices such as the same wireless router or AP from the same manufacturer, so two WiFi networks of a multi-frequency WiFi device usually use similar or similar SSIDs, for example, SSIDs of two-band WiFi networks of a multi-frequency WiFi device are usually "a-588 DE 8" and "a-588 DE 85G"; wherein, "a-588 DE 8" is a 2.4G frequency band network of the device, and "a-588 DE 85G" is a 5G frequency band network of the device, it can be seen that SSIDs of the networks of the two frequency bands only differ by "5G".
The preset similarity requirement is that the similarity between the first SSID and the second SSID is greater than or equal to a preset threshold value; and if the SSID similarity of the two WiFi networks is greater than or equal to a preset threshold value and the public network IPs of the two WiFi networks are the same, determining that the two WiFi networks are the same network of the WiFi equipment in different frequency bands.
It is understood that SSIDs may also be user-self-named names; for example, the user may set a different name for each WiFi when setting up the wireless router or AP, such as WiFi-1 and WiFi-2 in fig. 2, which may also be self-named names of the user.
Referring to fig. 3, an embodiment of the present application further provides a multi-frequency WiFi identification method, which is optionally applicable to an electronic device, and the method includes:
step 301, scanning WiFi to be connected in an environment where the electronic device is located.
The method comprises the steps that the electronic equipment scans WiFi to be connected in the environment where the electronic equipment is located, wherein the WiFi to be connected can be WiFi accessed by the electronic equipment or non-accessed WiFi; for convenience of description, WiFi that the electronic device has accessed is referred to as historical connection WiFi, and WiFi that has not accessed is referred to as new WiFi hereinafter. In a new general situation, the electronic device records the relevant access parameters, such as password, of the WiFi to which it has access, so as to connect the WiFi next time.
Step 302, acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi.
The network access parameter is used for accessing a historical connection network, and includes a key (a key or a password) or a network access certificate, and normally, after the electronic device is connected to WiFi, the electronic device will automatically record or manually select by a user to record the network access parameter of the WiFi.
Step 303, acquiring a first WiFi from the WiFi to be connected, and acquiring a second WiFi from the historical connection list; and the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity.
Wherein the second WiFi is the historical connection WiFi; firstly, screening a first WiFi and a second WiFi with SSIDs meeting the requirement of preset similarity from the WiFi to be connected and the historical connection list; the second WiFi is the historical connection WiFi, and the network access parameters of the second WiFi are recorded in the electronic equipment.
It is to be understood that the first WiFi may or may not be a historical connection WiFi; that is, the first WiFi may be a historical connectivity WiFi that is currently scannable.
And 304, accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment.
After the first WiFi and the second WiFi with SSIDs meeting the preset similarity requirement are obtained, the electronic equipment tries to access the first WiFi and access the public network according to the network access parameters of the second WiFi; and if the access is successful, acquiring the IP address of the first public network.
For each different frequency band of the multi-frequency WiFi, the same public network IP address is occupied on one hand, and the same network access parameter is adopted to access the network on the other hand.
Step 305, if the first public network IP address is the same as the second public network IP address of the second WiFi, identifying that the WiFi to be connected is a multi-frequency WiFi.
For multi-frequency WiFi equipment, when the electronic equipment accesses an external network through two WiFi networks of the multi-frequency WiFi equipment, public network IPs of the electronic equipment are the same; therefore, when two WiFi networks occupy the same public network IP, the two WiFi networks are different WiFi frequency bands of the same WiFi device. In this way, after identifying the multi-frequency WiFi, the electronic device may perform network handover according to network conditions.
In an alternative embodiment, step 303 comprises:
inquiring the historical connection list, wherein the historical connection list comprises the SSID of the WiFi to be connected and the historical connection WiFi meeting the preset similarity requirement; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
And aiming at each WiFi to be connected, matching the SSID of the WiFi to be connected with the historical connection WiFi meeting the preset similarity requirement in the historical connection list, wherein if the matching is successful, the two WiFi are respectively a first WiFi and a second WiFi.
As a second example, referring to fig. 4, fig. 4 shows a specific application process, which mainly includes the following steps:
step 401, scanning WiFi to be connected in an environment where the electronic device is located.
Step 402, screening a pairing network;
and preferentially scanning historical connection WiFi in a historical connection list of the electronic equipment. And screening two networks with SSIDs meeting the preset similarity requirement from the historical connection list, forming a candidate pair by the two networks and adding the candidate pair into the candidate list.
And scanning the WiFi to be connected in the current environment, and if the SSID of the WiFi to be connected and the SSID of the historical WiFi to be connected meet the preset similarity requirement, forming a candidate pair by the WiFi to be connected and the SSID of the historical WiFi to be connected and adding the candidate pair into a candidate list.
At step 403, an attempt is made to access the network.
And sequentially trying to access the network for the candidate pairs in the candidate list, and using the key or certificate access of the other network in the candidate pairs for the network which is not accessed.
And step 404, if the access is successful, acquiring a public network IP.
After accessing the network, judging whether the public network can be accessed, if so, inquiring the IP of the public network, and recording the IP.
In step 405, if the public network IPs of the candidate pair are the same, the two are different frequency bands of a multi-frequency WiFi.
In an alternative embodiment, step 303 comprises:
the first step, dividing first WiFi to be connected existing in the historical connection list into a first WiFi set, and dividing second WiFi to be connected not existing in the historical connection list into a second WiFi set;
secondly, screening a first WiFi and a second WiFi with SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
and thirdly, traversing the first WiFi set for each first WiFi to be connected, and screening second WiFi to be connected meeting preset multi-frequency WiFi conditions with the first WiFi to be connected, wherein the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
In the first step, firstly, whether the scanned connectable WiFi exists in a historical connection list is divided into a first WiFi set and a second WiFi set; in the second step, screening a first WiFi and a second WiFi with preset similarity requirements from the first WiFi set; in the third step, aiming at each WiFi to be connected in the second WiFi set, traversing the first WiFi set, and screening second WiFi to be connected meeting preset multi-frequency WiFi conditions; if the screening is successful, the first WiFi to be connected is the first WiFi, the second WiFi to be connected is the second WiFi, and the second WiFi to be connected is historical connection WiFi.
As a third example, referring to fig. 5, fig. 5 shows a specific application process, which mainly includes the following steps:
step 501, scanning current WiFi.
Specifically, the electronic device scans for current WiFi; the currently scanned WiFi set is referred to as a, which includes two subsets, a first WiFi set a1 is a set that the electronic device has accessed, and a second WiFi set a2 is a set that the terminal has not accessed.
Step 502, candidate pairs are screened in set A1.
Specifically, candidate pairs C1 through Ck are screened out of the already accessed WiFi set a 1.
Step 503, screening candidate pairs matching in A1 in the set A2.
Specifically, set a2 is traversed, each WiFi in set a2 is matched with each WiFi in a1, and candidate pairs are added if the SSID meets a preset similarity requirement.
The WiFi in A1 is Ci1, the WiFi in A2 is Ci2, and k is more than i and less than or equal to n.
Step 504, traverse each candidate pair, attempting to access one WiFi of the candidate pairs according to the password of the other WiFi.
Specifically, the candidate pair lists C1 to Cn are traversed.
For example, for Ck to Cn, an attempt is made to access Ci1 in candidate pair Ci, and a password or certificate that has been accessed historically is used to successfully query the public network IP where Ci1 is located, that is, the first public network IP; then, according to the network access parameter of Ci1, access Ci2 is attempted, and the public network IP where Ci2 is located, that is, the second public network IP, is successfully queried.
Step 505, if the access is successful and the first public network IP and the second public network IP are determined to be the same, the first public network IP and the second public network IP are different frequency bands of a multi-frequency WiFi.
In the embodiment of the application, WiFi to be connected in the environment where the electronic equipment is located is scanned; identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition; presetting the multi-frequency WiFi condition comprises the following steps: the first public network IP address is the same as the second public network IP address, if the first public network IP address is the same as the second public network IP address, the first public network IP address and the second public network IP address are identified as different frequency bands of the multi-frequency WiFi, and the first public network IP address and the second public network IP address can be switched between the first public network IP address and the second public network IP address according to network quality conditions, so that the electronic equipment is connected with a network with high network quality, the uplink and downlink speed of the electronic equipment is improved, and the utilization.
In the foregoing, the multi-frequency WiFi identification method provided in the embodiment of the present application is introduced, and the multi-frequency WiFi identification apparatus provided in the embodiment of the present application is introduced below with reference to the accompanying drawings.
It should be noted that, in the multi-frequency WiFi identification method provided in the embodiment of the present application, the execution main body may be a multi-frequency WiFi identification device, or a control module in the multi-frequency WiFi identification device for executing the multi-frequency WiFi identification method. In the embodiment of the present application, a multi-frequency WiFi identification method executed by a multi-frequency WiFi identification device is taken as an example to describe the multi-frequency WiFi identification method provided in the embodiment of the present application.
Referring to fig. 6, an embodiment of the present application further provides a multi-frequency WiFi identification apparatus 600, including:
the scanning module 601 is configured to scan WiFi to be connected in an environment where the electronic device is located.
The method comprises the steps that the electronic equipment scans WiFi to be connected in the environment where the electronic equipment is located, wherein the WiFi to be connected can be WiFi accessed by the electronic equipment or non-accessed WiFi; for convenience of description, WiFi that the electronic device has accessed is referred to as historical connection WiFi, and WiFi that has not accessed is referred to as new WiFi hereinafter. In a new general situation, the electronic device records the relevant access parameters, such as password, of the WiFi to which it has access, so as to connect the WiFi next time.
An identifying module 602, configured to identify the WiFi to be connected as a multi-frequency WiFi when the WiFi to be connected includes a first WiFi and a second WiFi, and the first WiFi and the second WiFi satisfy a preset multi-frequency WiFi condition;
the first WiFi and the second WiFi are WiFi in the WiFi to be connected, and the first WiFi and the second WiFi meet preset multi-frequency WiFi conditions in the WiFi to be connected which can be scanned by the electronic equipment. The preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
In an operating state, a multi-frequency WiFi (i.e., a multi-frequency WiFi device) usually transmits wireless signals in two or more frequency bands at the same time, and an electronic device can access to a network covered by the two frequency bands as required, so as to achieve the purpose of sharing bandwidth. When the multi-frequency WiFi transmits wireless signals of two frequency bands simultaneously, the multi-frequency WiFi may also be referred to as dual-frequency WiFi, that is, the multi-frequency WiFi device in the embodiment of the present application includes a dual-frequency WiFi device.
The first IP is a public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is a public network IP when the electronic equipment is accessed to the second WiFi; the public Network IP is a wide area Network IP, and the wide area Network and the local area Network are two access modes of the Internet, and the local area Network converts an Address into a public Network Address based on Network Address Translation (NAT) so as to access an external Network. For multi-frequency WiFi equipment, when the electronic equipment accesses an external network through two WiFi networks of the multi-frequency WiFi equipment, public network IPs of the electronic equipment are the same; therefore, when two WiFi networks occupy the same public network IP, the two WiFi networks are different WiFi frequency bands of the same WiFi device. In this way, after identifying the multi-frequency WiFi, the electronic device may perform network handover according to network conditions.
It can be understood that there may be two or more than two WiFi simultaneously satisfying the preset multi-frequency WiFi condition; for convenience of description, in the embodiment of the present application, two WiFi full of preset multi-frequency WiFi conditions are described, and in addition, the WiFi meeting the preset multi-frequency WiFi conditions may further include a third WiFi, a fourth WiFi, … …, and an nth WiFi. The following description is given by exemplifying that WiFi meeting a preset multi-frequency WiFi condition includes a third WiFi, if the to-be-connected WiFi includes a first WiFi, a second WiFi and a third WiFi, and the first WiFi, the second WiFi and the third WiFi meet the preset multi-frequency WiFi condition, the to-be-connected WiFi is identified to be the multi-frequency WiFi, and the electronic device can perform network switching among the first WiFi, the second WiFi and the third WiFi according to a network condition.
Optionally, in this embodiment of the present application, the preset multi-frequency WiFi condition further includes: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
Optionally, in this embodiment of the present application, the identifying module 602 includes:
the list acquisition submodule is used for acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
the screening submodule is used for acquiring a first WiFi from the WiFi to be connected and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity; wherein the second WiFi is the historical connection WiFi;
the access sub-module is used for accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and the identification submodule is used for identifying the WiFi to be connected as multi-frequency WiFi if the first public network IP address is the same as the second public network IP address of the second WiFi.
Optionally, in an embodiment of the present application, the screening submodule includes:
the inquiry unit is used for inquiring the SSID of the WiFi to be connected and the historical connection WiFi meeting the preset similarity requirement in the historical connection list; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
Optionally, in an embodiment of the present application, the screening submodule includes:
a dividing unit, configured to divide, of the WiFi to be connected, a first WiFi to be connected that exists in the historical connection list into a first WiFi set, and divide a second WiFi to be connected that does not exist in the historical connection list into a second WiFi set;
the first screening unit is used for screening a first WiFi and a second WiFi which have SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
the second screening unit is used for traversing the first WiFi set for every first WiFi to be connected, screening and the second WiFi to be connected meeting the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
Optionally, in an embodiment of the present application, the apparatus further includes:
the parameter acquisition module is used for acquiring the network state parameters of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and the switching module is used for switching the network among the multi-frequency WiFi according to the network state parameters.
In the embodiment of the application, the scanning module 601 scans WiFi to be connected in an environment where the electronic device is located; under the condition that a first WiFi and a second WiFi of the WiFi to be connected meet a preset multi-frequency WiFi condition, an identification module 602 identifies the WiFi to be connected as a multi-frequency WiFi; presetting the multi-frequency WiFi condition comprises the following steps: the first public network IP address is the same as the second public network IP address, if the first public network IP address is the same as the second public network IP address, the first public network IP address and the second public network IP address are identified as different frequency bands of the multi-frequency WiFi, and the first public network IP address and the second public network IP address can be switched between the first public network IP address and the second public network IP address according to network quality conditions, so that the electronic equipment is connected with a network with high network quality, the uplink and downlink speed of the electronic equipment is improved, and the utilization.
The multi-frequency WiFi identification device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the Mobile electronic device may be a Mobile phone, a tablet Computer, a notebook Computer, a palm top Computer, an in-vehicle electronic device, a wearable device, an Ultra-Mobile Personal Computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-Mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (Personal Computer, PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not limited in particular.
The multi-frequency WiFi identification device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The multi-frequency WiFi identification apparatus provided in the embodiment of the present application can implement each process implemented by the multi-frequency WiFi identification apparatus in the method embodiments of fig. 1 to fig. 5, and for avoiding repetition, details are not repeated here.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in this embodiment of the present application, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the above-mentioned multi-frequency WiFi identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 8 is a hardware configuration diagram of an electronic device 800 implementing various embodiments of the present application;
the electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810, and a power supply 811. Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The network module 802 is configured to scan WiFi to be connected in an environment where the electronic device is located;
a processor 810, configured to identify the WiFi to be connected as a multi-frequency WiFi when the WiFi to be connected includes a first WiFi and a second WiFi, and the first WiFi and the second WiFi satisfy a preset multi-frequency WiFi condition;
wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
Optionally, the preset multi-frequency WiFi condition further includes: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
Optionally, the processor 810 is configured to obtain a historical connection list of the electronic device; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
acquiring a first WiFi from the WiFi to be connected, and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity;
accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and if the first public network IP address is the same as a second public network IP address of the second WiFi, identifying that the WiFi to be connected is the multi-frequency WiFi.
Optionally, the processor 810 is configured to query the historical connection list, where the SSID of the WiFi to be connected and the historical connection WiFi meeting the preset similarity requirement are both in the historical connection list; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
Optionally, the processor 810 is configured to divide, of the WiFi to be connected, a first WiFi to be connected that exists in the historical connection list into a first WiFi set, and a second WiFi to be connected that does not exist in the historical connection list into a second WiFi set;
screening a first WiFi and a second WiFi with SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
for each first WiFi to be connected, traversing the first WiFi set, screening and the second WiFi to be connected, wherein the first WiFi to be connected meets the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
Optionally, the processor 810 is configured to obtain a network status parameter of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and performing network switching among the multi-frequency WiFi according to the network state parameters.
In the embodiment of the application, the network module 802 scans WiFi to be connected in an environment where the electronic device is located; under the condition that a first WiFi and a second WiFi of the to-be-connected WiFi meet a preset multi-frequency WiFi condition, the processor 810 identifies the to-be-connected WiFi as a multi-frequency WiFi; presetting the multi-frequency WiFi condition comprises the following steps: the first public network IP address is the same as the second public network IP address, if the first public network IP address is the same as the second public network IP address, the first public network IP address and the second public network IP address are identified as different frequency bands of the multi-frequency WiFi, and the first public network IP address and the second public network IP address can be switched between the first public network IP address and the second public network IP address according to network quality conditions, so that the electronic equipment is connected with a network with high network quality, the uplink and downlink speed of the electronic equipment is improved, and the utilization.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned multi-frequency WiFi identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is configured to run a program or an instruction, implement each process of the above-mentioned multi-frequency WiFi identification method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A multi-frequency WiFi identification method, comprising:
scanning WiFi to be connected in the environment where the electronic equipment is located;
identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition;
wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
2. The multi-frequency WiFi identification method of claim 1, wherein said preset multi-frequency WiFi condition further comprises: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
3. The method according to claim 2, wherein said identifying the WiFi to be connected as a multi-frequency WiFi in a case where the WiFi to be connected includes a first WiFi and a second WiFi and the first WiFi and the second WiFi satisfy a preset multi-frequency WiFi condition comprises:
acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
acquiring a first WiFi from the WiFi to be connected, and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity;
accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and if the first public network IP address is the same as a second public network IP address of the second WiFi, identifying that the WiFi to be connected is the multi-frequency WiFi.
4. The multi-frequency WiFi identification method of claim 3 wherein said obtaining a first WiFi from said WiFi to be connected and obtaining a second WiFi from said historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet a preset similarity requirement, and the method comprises the following steps:
in the WiFi to be connected, dividing a first WiFi to be connected which exists in the historical connection list into a first WiFi set, and dividing a second WiFi to be connected which does not exist in the historical connection list into a second WiFi set;
screening a first WiFi and a second WiFi with SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
for each first WiFi to be connected, traversing the first WiFi set, screening and the second WiFi to be connected, wherein the first WiFi to be connected meets the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
5. A multi-frequency WiFi identification apparatus, the apparatus comprising:
the scanning module is used for scanning WiFi to be connected in the environment where the electronic equipment is located;
the identification module is used for identifying the WiFi to be connected as multi-frequency WiFi under the condition that the WiFi to be connected comprises first WiFi and second WiFi, and the first WiFi and the second WiFi meet the preset multi-frequency WiFi condition;
wherein the preset multi-frequency WiFi condition comprises: the first public network internet interconnection protocol IP address is the same as the second public network IP address; the first public network IP is the public network IP when the electronic equipment is accessed to the first WiFi, and the second public network IP is the public network IP when the electronic equipment is accessed to the second WiFi.
6. The multi-frequency WiFi identification device of claim 5 wherein said preset multi-frequency WiFi conditions further comprise: and the first service set identification SSID of the first WiFi and the second SSID of the second WiFi meet the requirement of preset similarity.
7. The multi-frequency WiFi identification device of claim 6, wherein said identification module comprises:
the list acquisition submodule is used for acquiring a historical connection list of the electronic equipment; the historical connection list comprises historical connection WiFi of the electronic equipment and network access parameters of the historical connection WiFi;
the screening submodule is used for acquiring a first WiFi from the WiFi to be connected and acquiring a second WiFi from the historical connection list; the SSID of the first WiFi and the SSID of the second WiFi meet the requirement of preset similarity;
the access sub-module is used for accessing the first WiFi and accessing a public network according to the network access parameters of the second WiFi to acquire a first public network IP address of the electronic equipment;
and the identification submodule is used for identifying the WiFi to be connected as multi-frequency WiFi if the first public network IP address is the same as the second public network IP address of the second WiFi.
8. The multi-frequency WiFi identification device of claim 7, wherein said screening sub-module comprises:
the inquiry unit is used for inquiring the SSID of the WiFi to be connected and the historical connection WiFi meeting the preset similarity requirement in the historical connection list; the WiFi to be connected is the first WiFi, and the historical connection WiFi is the second WiFi.
9. The multi-frequency WiFi identification device of claim 8, wherein said screening sub-module comprises:
a dividing unit, configured to divide, of the WiFi to be connected, a first WiFi to be connected that exists in the historical connection list into a first WiFi set, and divide a second WiFi to be connected that does not exist in the historical connection list into a second WiFi set;
the first screening unit is used for screening a first WiFi and a second WiFi which have SSIDs meeting the requirement of preset similarity from the first WiFi set;
or the like, or, alternatively,
the second screening unit is used for traversing the first WiFi set for every first WiFi to be connected, screening and the second WiFi to be connected meeting the preset multi-frequency WiFi condition, and then the first WiFi to be connected is the first WiFi, and the second WiFi to be connected is the second WiFi.
10. The multi-frequency WiFi identification device of claim 5, said device further comprising:
the parameter acquisition module is used for acquiring the network state parameters of the multi-frequency WiFi; the network state parameters comprise at least one of signal strength, distances between the access point devices corresponding to the first WiFi and the second WiFi and the electronic device, and uplink and downlink rates;
and the switching module is used for switching the network among the multi-frequency WiFi according to the network state parameters.
CN202010833413.3A 2020-08-18 2020-08-18 Multi-frequency WiFi identification method and device Pending CN111970750A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010833413.3A CN111970750A (en) 2020-08-18 2020-08-18 Multi-frequency WiFi identification method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010833413.3A CN111970750A (en) 2020-08-18 2020-08-18 Multi-frequency WiFi identification method and device

Publications (1)

Publication Number Publication Date
CN111970750A true CN111970750A (en) 2020-11-20

Family

ID=73388781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010833413.3A Pending CN111970750A (en) 2020-08-18 2020-08-18 Multi-frequency WiFi identification method and device

Country Status (1)

Country Link
CN (1) CN111970750A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022141000A1 (en) * 2020-12-28 2022-07-07 华为技术有限公司 Network switching method, terminal device and access point device
CN115243339A (en) * 2022-07-08 2022-10-25 深圳绿米联创科技有限公司 Network access method and device of target equipment, electronic equipment and intelligent home system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753434A (en) * 2009-07-29 2010-06-23 中国科学院自动化研究所 Radio frequency identification router and radio frequency identification network system
US8989101B1 (en) * 2013-06-27 2015-03-24 Google Inc. Systems, methods, and computer-readable media for identifying virtual access points of wireless networks
CN105323244A (en) * 2015-09-22 2016-02-10 小米科技有限责任公司 Method and device for network identification
US20160087826A1 (en) * 2014-09-19 2016-03-24 Po-Kai Huang SYSTEMS, METHODS, AND DEVICES FOR IDENTIFYING Wi-Fi SIGNALS FOR SPATIAL REUSE
WO2017206067A1 (en) * 2016-05-31 2017-12-07 华为技术有限公司 Access point switching method and terminal device
CN107612716A (en) * 2017-08-28 2018-01-19 上海斐讯数据通信技术有限公司 A kind of distribution method and system of intelligent electronic device
CN107920354A (en) * 2017-11-21 2018-04-17 珠海奔图电子有限公司 The connection method of multiband equipment and system
WO2018130080A1 (en) * 2017-01-10 2018-07-19 青岛海信移动通信技术股份有限公司 Wifi data transmission method, device and terminal device
CN110602707A (en) * 2019-09-05 2019-12-20 青岛海信移动通信技术股份有限公司 Method and terminal for connecting wireless network
US20200137671A1 (en) * 2017-05-17 2020-04-30 Espressif Systems (Shanghai) Co., Ltd. Wifi Network, and Networking Method Therefor and Data Transmission Method Therein
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753434A (en) * 2009-07-29 2010-06-23 中国科学院自动化研究所 Radio frequency identification router and radio frequency identification network system
US8989101B1 (en) * 2013-06-27 2015-03-24 Google Inc. Systems, methods, and computer-readable media for identifying virtual access points of wireless networks
US20160087826A1 (en) * 2014-09-19 2016-03-24 Po-Kai Huang SYSTEMS, METHODS, AND DEVICES FOR IDENTIFYING Wi-Fi SIGNALS FOR SPATIAL REUSE
CN105323244A (en) * 2015-09-22 2016-02-10 小米科技有限责任公司 Method and device for network identification
WO2017206067A1 (en) * 2016-05-31 2017-12-07 华为技术有限公司 Access point switching method and terminal device
WO2018130080A1 (en) * 2017-01-10 2018-07-19 青岛海信移动通信技术股份有限公司 Wifi data transmission method, device and terminal device
US20200137671A1 (en) * 2017-05-17 2020-04-30 Espressif Systems (Shanghai) Co., Ltd. Wifi Network, and Networking Method Therefor and Data Transmission Method Therein
CN107612716A (en) * 2017-08-28 2018-01-19 上海斐讯数据通信技术有限公司 A kind of distribution method and system of intelligent electronic device
CN107920354A (en) * 2017-11-21 2018-04-17 珠海奔图电子有限公司 The connection method of multiband equipment and system
CN110602707A (en) * 2019-09-05 2019-12-20 青岛海信移动通信技术股份有限公司 Method and terminal for connecting wireless network
CN111356209A (en) * 2020-02-17 2020-06-30 Oppo广东移动通信有限公司 Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022141000A1 (en) * 2020-12-28 2022-07-07 华为技术有限公司 Network switching method, terminal device and access point device
CN115243339A (en) * 2022-07-08 2022-10-25 深圳绿米联创科技有限公司 Network access method and device of target equipment, electronic equipment and intelligent home system

Similar Documents

Publication Publication Date Title
US9713074B2 (en) Network association in an environment with hidden networks
CN108337707B (en) Wireless network switching method, mobile terminal and storage medium
KR102060373B1 (en) Method and apparatus for connecting short-distance wireless communication in terminal
US20220124581A1 (en) Satellite cell reselection control method and related device
US20230180112A1 (en) Access control method and apparatus, and communication device
US10716043B2 (en) Access point handover method and device
CN114423057B (en) Channel switching method, device, AP equipment and storage medium
CN111278036B (en) Method and device for acquiring MAC address
CN111970750A (en) Multi-frequency WiFi identification method and device
CN107124744B (en) Network switching method and wireless access point
CN110461023B (en) Cell residence method and device for voice service, storage medium and main base station
CN112333794B (en) Network connection method and device
WO2020151622A1 (en) Assessment method and apparatus for position recommendation
CN102857904A (en) Hot spot opening method and device
CN105578567A (en) Network scanning method and terminal
CN112996068B (en) Reselection cell determining method and device, communication equipment and storage medium
WO2022022635A1 (en) Access control method and apparatus, and terminal and network device
CN113543282B (en) Wireless roaming method and system
CN111682913B (en) Method and device for discovering AP and method and device for sending beacon frame by AP in WLAN
US9877248B2 (en) Methods for efficient wireless communications and communication apparatus utilizing the same
EP3637859B1 (en) Hidden hotspot scanning based on a match of mac addresses
CN114258058A (en) Measuring method, measuring device, terminal and network equipment
CN113055961A (en) Wireless network connection method, device, router and storage medium
CN114760655B (en) Method, device, product, medium and equipment for triggering pilot frequency measurement
WO2023245951A1 (en) Switching method and apparatus applied to heterogeneous network, product, medium and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination