CN110572829B - Network connection control method and related product - Google Patents
Network connection control method and related product Download PDFInfo
- Publication number
- CN110572829B CN110572829B CN201910838280.6A CN201910838280A CN110572829B CN 110572829 B CN110572829 B CN 110572829B CN 201910838280 A CN201910838280 A CN 201910838280A CN 110572829 B CN110572829 B CN 110572829B
- Authority
- CN
- China
- Prior art keywords
- hotspot
- login authentication
- network interface
- subset
- hotspots
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/06—Authentication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment of the application discloses a network connection control method and a related product, which are applied to electronic equipment, wherein the method comprises the following steps: when the electronic equipment detects that the double wireless high-fidelity Wi-Fi function is started, scanning a current hotspot through the secondary Wi-Fi network interface, inquiring a first hotspot set, wherein the first hotspot set comprises a first hotspot subset which is marked as a hotspot capable of surfing the Internet and the secondary Wi-Fi network interface does not need login authentication, and accessing the first hotspot through the secondary Wi-Fi network interface if a plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset. The method is favorable for improving the efficiency and convenience of network connection control.
Description
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to a network connection control method and a related product.
Background
At present, mobile terminals such as mobile phones and the like have increasingly common use of Wireless Fidelity (Wi-Fi) functions, chipmakers design hardware products supporting dual Wi-Fi at present, based on the hardware capability, one mobile terminal device can be connected with two different Wi-Fi hotspots at the same time, and the use scene of the dual Wi-Fi functions includes a dual-frequency Wireless router in a user home and other public Wi-Fi (such as an airport, a high-speed rail station, a market, a campus and the like). Many public Wi-Fi hotspots need to log in and authenticate after connection to normally surf the internet.
In the prior art, because the primary Wi-Fi network interface and the secondary Wi-Fi network interface use different Wi-Fi media access control MAC addresses, the primary Wi-Fi network interface and the secondary Wi-Fi network interface need to perform login authentication respectively to connect to the Wi-Fi network, but if the secondary Wi-Fi network interface is frequently and automatically connected to a hotspot requiring login authentication, the network connection efficiency of the secondary Wi-Fi network interface is low.
Disclosure of Invention
The embodiment of the application provides a network connection control method and a related product, aiming at improving the efficiency and convenience of network connection control.
In a first aspect, an embodiment of the present application provides a network connection control method, which is applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes:
when the starting of the double wireless high-fidelity Wi-Fi function is detected, scanning a current hotspot through the secondary Wi-Fi network interface;
inquiring a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which a Wi-Fi network interface does not need login authentication, the second hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which Wi-Fi network interface needs login authentication, and the third hotspot subset is a set marked as a hotspot which can not be accessed to the Internet;
and if the plurality of currently scanned hotspots comprise a first hotspot in the first hotspot subset, performing login authentication according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In a second aspect, an embodiment of the present application provides a network connection control apparatus, which is applied to an electronic device; the wireless network connection device comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is used for transmitting the starting signal through the communication unit and scanning the current hot spot through the secondary Wi-Fi network interface when the starting of the double wireless high-fidelity Wi-Fi function is detected; the system comprises a first hotspot set, a second hotspot set and a third hotspot set, wherein the first hotspot set comprises the first hotspot subset, the second hotspot subset and the third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface needs login authentication, and the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots; and if the plurality of currently scanned hotspots comprise a first hotspot in the first hotspot subset, performing login authentication according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing steps in any method of the first aspect of the embodiment of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps described in any one of the methods in the second aspect of the present application.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to perform some or all of the steps described in any one of the methods of the second aspect of the present application. The computer program product may be a software installation package.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the electronic equipment scans a current hotspot through a secondary Wi-Fi network interface when detecting that a double wireless high-fidelity Wi-Fi function is started, and then inquires a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the first hotspot is accessed through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot for connection, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notification, and be beneficial to improving the high efficiency and convenience of network connection control.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a schematic flowchart of a network connection control method according to an embodiment of the present application;
fig. 1B is a schematic interface diagram of a login authentication notification according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another network connection control method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another network connection control method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 5 is a block diagram of functional units of a network connection control apparatus according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, 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 only a part of the embodiments of the present application, and not all of the embodiments. 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.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a schematic flowchart of a network connection control method provided in an embodiment of the present application, and is applied to an electronic device; the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, the method comprising:
s101, when the electronic equipment detects that the double wireless high-fidelity Wi-Fi function is started, scanning a current hotspot through the secondary Wi-Fi network interface.
Wherein the current hotspot is a hotspot where the electronic device can receive signals.
S102, the electronic device queries a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, and the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots.
The implementation manner of the electronic device querying the first hotspot set according to the currently scanned multiple hotspots may be: and the electronic equipment queries the first hotspot set by taking the hotspot identifications of the currently scanned hotspots as query identifications. The hotspot identification may be a name of the hotspot, and the hotspot identification may also be a media access control MAC address of the hotspot.
The specific implementation manner of the electronic device querying the first hotspot set according to the currently scanned multiple hotspots may be that the electronic device queries the first hotspot subset from the multiple hotspots, queries the second hotspot subset, and queries the sequence of querying the third hotspot subset from the multiple hotspots. When querying a hotspot subset, the hotspots corresponding to the currently scanned multiple hotspots can be sequentially queried according to the order of the distances between the hotspot devices and the electronic device from near to far.
For example, the electronic device determines whether the closest hotspot is a hotspot in the first subset of hotspots; if yes, accessing the nearest hot spot through the secondary Wi-Fi network interface; if not, judging whether the hot spot close to the second hot spot is the hot spot in the first hot spot subset; accessing the determined hot spots through the secondary Wi-Fi network interface until the plurality of currently scanned hot spots are determined to be the hot spots in the first hot spot subset; and finally, when none of the plurality of currently scanned hot spots is the hot spot in the first hot spot subset, judging whether the plurality of currently scanned hot spots is the hot spot in the second hot spot subset, wherein the judging mode is not repeated.
Therefore, in this example, the electronic device can quickly determine the hot spot preferentially connected by querying the pre-obtained hot spot set classified, so that the electronic device is prevented from being frequently connected to the hot spot requiring the user to log in for authentication or the hot spot incapable of surfing the internet in the network connection process, and the network connection efficiency of the electronic device is improved.
S103, if the plurality of currently scanned hot spots include a first hot spot in a first hot spot subset, accessing the first hot spot through the secondary Wi-Fi network interface.
The specific implementation manner that login authentication is performed according to the historical login authentication information and the first hotspot is accessed through the secondary Wi-Fi network interface after the login authentication is passed is as follows: the electronic equipment acquires a connection password of the first hotspot from the historical login authentication information; sending a connection request to the first hotspot, wherein the connection request comprises the connection password; and receiving a connection notification of the first hotspot, and accessing the first hotspot through the secondary Wi-Fi network interface.
Further, if the login authentication password of the first hotspot does not change, the electronic device can successfully access the first hotspot, if the first hotspot network cannot surf the internet, the mark of the first hotspot is updated to be not surfable, the updated first hotspot is moved to the third hotspot subset, if the login authentication password of the first hotspot changes, the electronic device cannot successfully access the first hotspot, connection failure information is generated, the connection failure information reflects that the login authentication password is invalid, and the Wi-Fi needs to be authenticated from new login. At this time, the electronic device may update, according to the connection failure information, the current mark of the first hotspot as internet-enabled and the secondary Wi-Fi network interface needs to log in for authentication through the master Wi-Fi network interface, and move the updated first hotspot to the second hotspot subset.
As can be seen, in this example, when a hotspot where internet access is available and the secondary Wi-Fi network interface does not need login authentication is detected, the electronic device can access the hotspot through the secondary Wi-Fi network interface, thereby improving the efficiency of network connection control of the electronic device.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the electronic equipment scans a current hotspot through a secondary Wi-Fi network interface when detecting that a double wireless high-fidelity Wi-Fi function is started, and then inquires a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the first hotspot is accessed through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot for connection, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notification, and be beneficial to improving the high efficiency and convenience of network connection control.
In one possible example, the electronic device accessing the first hotspot through the secondary Wi-Fi network interface includes: the electronic equipment keeps the current display interface unchanged; and the electronic equipment performs login authentication on a background according to historical login authentication information, and accesses the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
The historical login authentication information comprises a historical login authentication password or a historical login authentication interface presenting the login authentication password. The historical login authentication password may be login authentication information input by a user, or the historical login authentication password may be login authentication information acquired from a server.
The implementation manner of the electronic device performing login authentication in the background according to historical login authentication information and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed may be: the electronic equipment acquires login authentication information closest to the current time point from the historical login authentication information; and performing login authentication on a background according to the login authentication information closest to the time point, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
Further, after accessing the first hotspot, the electronic device may display the network identifier of the first hotspot on the current display interface.
Therefore, in this example, the electronic device can perform login authentication at the background while keeping the current display interface unchanged, so that the intelligence of the electronic device for network connection control is improved, and the user experience is further improved.
In one possible example, the electronic device accessing the first hotspot through the secondary Wi-Fi network interface includes: the electronic equipment keeps the current display interface unchanged; the electronic device accesses the first hotspot through the secondary Wi-Fi network interface.
The step of accessing the electronic device to the first hotspot through the secondary Wi-Fi network interface may be to request a hotspot login authentication password from a server through the secondary Wi-Fi network interface, and perform login authentication according to the login authentication password to access the network hotspot.
Therefore, in the example, the electronic device can realize the access hotspot of the secondary Wi-Fi network interface without changing the content of the current display interface, so that the experience degree of the user is improved.
In one possible example, performing login authentication in a background according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed, includes: the electronic equipment acquires at least one login authentication information interface corresponding to the successful login authentication of the first hotspot stored in advance; the electronic equipment extracts at least one login authentication password of the first hotspot from the at least one login authentication information interface; and the electronic equipment performs login authentication according to the at least one login authentication password background, and accesses the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
The login authentication information interface is an interface including a login authentication password, wherein the login authentication information interface corresponding to the successful login authentication of the first hotspot stored in advance can be a login authentication information interface at a time point closest to the current time point, and the login authentication information interface corresponding to the successful login authentication of the first hotspot stored in advance can also be a plurality of login authentication information interfaces containing different login authentication passwords.
The login authentication information interface corresponding to the time period closest to the current time and closest to the current time point can be used as a target interface, and when the electronic equipment performs login authentication, the login authentication password of the target interface is directly extracted for login authentication.
Further, when the login authentication password is multiple, the electronic device performs login authentication according to the at least one login authentication password background, and after the login authentication is passed, accesses the first hotspot through the secondary Wi-Fi network interface may be: the electronic equipment determines the priority of the at least one login authentication password according to the last login time corresponding to the at least one login authentication password; and performing login authentication by using the at least one login authentication password background according to the priority, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
The determining of the priority of the at least one login authentication password according to the last login time corresponding to the at least one login authentication password may be determining the priority according to a sequence from near to far from the current time point of the last login time corresponding to the at least one login authentication password, where the closer the distance is, the higher the priority is.
For example, the electronic device obtains the historical login authentication passwords of the first hotspot from the historical login authentication information, where the historical login authentication passwords are 11111111, 22222222, 33333333, 444444, the last login time corresponding to 11111111 is 18 years, 8 months and 1 day, the last login time corresponding to 22222222 is 18 years, 9 months and 1 day, the last login time corresponding to 33333333 is 18 years, 10 months and 1 day, and the last login time corresponding to 44444444 is 18 years, 11 months and 1 day, the electronic device firstly uses 44444444 to perform login authentication operation, and accesses the first hotspot through the Wi-Fi network interface after passing login authentication, does not pass authentication login, then uses 33333333, secondly uses 22222222, and finally uses 11111111111.
Therefore, in this example, the electronic device can obtain the login authentication password from the historical login authentication information to perform login authentication, so that the effectiveness of network control is improved.
In one possible example, the electronic device accessing the first hotspot through the secondary Wi-Fi network interface includes: the electronic equipment sends a login authentication request to a server through the secondary Wi-Fi network interface; the electronic equipment receives login authentication response information sent by the server, wherein the login authentication response information comprises a login authentication password of the first hotspot; and the electronic equipment performs login authentication on a background according to the login authentication response information, and accesses the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
Therefore, the electronic equipment can access the first hotspot through the secondary Wi-Fi network interface according to the login authentication password by acquiring the login authentication password from the server.
In one possible example, after the electronic device queries the first hotspot set according to the currently scanned hotspots, the method further includes: if the currently scanned multiple hotspots do not include any hotspot in the first hotspot subset and include a second hotspot in the second hotspot subset, the electronic device displays a login authentication notification on a current display interface; the electronic equipment acquires login authentication information input by a user, performs login authentication according to the login authentication information, and accesses the second hotspot through the secondary Wi-Fi network interface after the login authentication is passed; the electronic device updates the first set of hotspots via the master Wi-Fi network interface.
The login authentication notification may include hotspot information of the second hotspot, and a login authentication password input window of the second hotspot.
For example, if there is no hotspot correspondingly marked as an internet-enabled hotspot and for which the secondary Wi-Fi network interface does not need login authentication among the currently scanned hotspots, but the hotspot correspondingly marked as an internet-enabled hotspot and for which the secondary Wi-Fi network interface needs login authentication is a hotspot a, the electronic device generates a login authentication notification, displays the login authentication notification on the current display interface, and refers to fig. 1B, where fig. 1B is an interface schematic diagram of a login authentication notification provided in an embodiment of the present application.
As can be seen, in this example, after determining that there is no hotspot marked as internet-enabled and the secondary Wi-Fi network interface does not need login authentication, the electronic device is beneficial to improving the efficiency of network connection control by acquiring the hotspot marked as internet-enabled and the secondary Wi-Fi network interface needs login authentication.
In one possible example, the electronic device updates the first set of hotspots via the master Wi-Fi network interface, including: the electronic equipment acquires the second hotspot in the second hotspot subset through the main Wi-Fi network interface; the electronic equipment updates the mark of the second hotspot to be internet-enabled through the main Wi-Fi network interface and the secondary Wi-Fi network interface does not need login authentication; the electronic device adds the updated marked second hotspot to the first hotspot subset through the master Wi-Fi network interface.
In the specific implementation, if the electronic device performs login authentication on the hotspot B which can be accessed to the internet and needs login authentication on the secondary Wi-Fi network interface, and accesses the hotspot B through the secondary Wi-Fi network interface after the login authentication is passed, the first hotspot set is updated through the main Wi-Fi network interface, and after the login authentication needed on the secondary Wi-Fi network interface which can be accessed to the internet is updated to be accessible and the secondary Wi-Fi network interface does not need login authentication, the hotspot B is moved to the first hotspot subset from the second hotspot subset.
As can be seen, in this example, the electronic device updates the first hotspot set in real time according to the network connection condition of the secondary Wi-Fi network interface, which is beneficial to improving the intelligence of network connection control.
In one possible example, before the electronic device queries the first hotspot set according to the currently scanned hotspots, the method further includes: the electronic equipment scans the current hotspot through the main Wi-Fi network interface; the electronic equipment performs connection test on the Wi-Fi hotspots which are not marked in the scanned Wi-Fi hotspots through the main Wi-Fi network interface to obtain the test result of the Wi-Fi hotspots which are not marked; if the test result is that the Wi-Fi hotspot meets a first preset condition, marking the Wi-Fi hotspot as internet-enabled and a secondary Wi-Fi network interface does not need login authentication, and adding the marked Wi-Fi hotspot to the first hotspot subset, wherein the first preset condition comprises that the Wi-Fi hotspot is accessed by the primary Wi-Fi network interface through the first login authentication and is available; if the test result is that the Wi-Fi hotspot meets a second preset condition, the Wi-Fi hotspot is marked to be internet-enabled, a Wi-Fi network interface needs login authentication, the marked Wi-Fi hotspot is added to the second hotspot subset, and the second preset condition comprises that the Wi-Fi hotspot is internet-enabled after access and needs to pass the first login authentication.
In addition, if the main Wi-Fi network interface accesses the Wi-Fi hotspot through first login authentication and the Wi-Fi hotspot is unavailable, marking the Wi-Fi hotspot as unavailable for surfing the internet, and adding the marked Wi-Fi hotspot to the third hotspot subset.
And the test results comprise the test results of whether the Wi-Fi hotspots which are not marked can surf the internet and whether the plurality of Wi-Fi hotspots pass the login authentication.
Further, before the electronic device adds the marked Wi-Fi hotspot to the corresponding hotspot subset, the method further includes: the electronic equipment judges whether a corresponding hotspot set exists or not; if the corresponding hotspot set exists, determining whether the corresponding hotspot subset exists, if so, adding the marked Wi-Fi hotspot to the corresponding hotspot subset, if not, creating the corresponding hotspot subset, and adding the marked Wi-Fi hotspot to the corresponding hotspot subset; and if the corresponding hot spot set does not exist, creating the corresponding hot spot set.
As can be seen, in this example, the electronic device tests the scanned interface through the master Wi-Fi network interface to obtain a corresponding hotspot set, and implements Wi-Fi hotspot access of the secondary Wi-Fi network interface according to the hotspot set, which is beneficial to implementing connection resource sharing and improving convenience of network connection control.
In one possible example, before the electronic device scans for a current hotspot over the secondary Wi-Fi network interface, the method further comprises: the electronic equipment scans the current hotspot through the main Wi-Fi network interface; the electronic equipment queries the first hotspot set according to the currently scanned hotspots; if the plurality of currently scanned hotspots comprise a third hotspot in the first hotspot subset, login authentication is carried out according to historical login authentication information, and the third hotspot is accessed through the main Wi-Fi network interface after the login authentication is passed; the electronic equipment updates the first hotspot set according to the connection result of the main Wi-Fi network interface.
In a specific implementation, when the electronic device detects that a plurality of hotspots currently scanned by the main Wi-Fi network interface include a hotspot C marked as internet-enabled and the secondary Wi-Fi network interface does not need login authentication, a historical login authentication password is acquired for login authentication, the hotspot C is accessed through the main Wi-Fi network interface after the login authentication is passed, the mark of the hotspot C is updated to be unavailable (in connection with the main Wi-Fi network interface), and the first hotspot set is updated.
Further, if the hotspot C finds that the login authentication fails during the authentication login process, if the login authentication password of the hotspot C fails or the hotspot C is detected to be unavailable to access the internet after the hotspot C is detected to be accessed, the mark of the hotspot C is updated immediately, and the corresponding first hotspot set is updated immediately.
As can be seen, in this example, when the master Wi-Fi network interface performs network connection, the electronic device may also perform network connection by querying the first hotspot set, so as to avoid frequent connection of hotspots that may not be on-line or that need to log in for authentication when the master Wi-Fi network interface performs network connection, and after the master Wi-Fi network interface performs network connection, the first hotspot set is updated, and network connection is performed according to the updated first hotspot set, so that frequent generation of notification information is reduced, thereby reducing effectiveness of network connection performed by the electronic device, and further affecting user experience.
In one possible example, before the electronic device scans for a current hotspot over the secondary Wi-Fi network interface, the method further comprises: the electronic equipment scans the current hotspot through the main Wi-Fi network interface; the electronic equipment queries the second hotspot set according to the currently scanned hotspots, wherein the second hotspot set comprises a fourth hotspot subset, a fifth hotspot subset and a sixth hotspot subset, the fourth hotspot subset is a set of hotspots which are marked as being capable of being uploaded and a main Wi-Fi network interface does not need login authentication, the fifth hotspot subset is a set of hotspots which are marked as being capable of being uploaded and a main Wi-Fi network interface does not need login authentication, and the sixth hotspot subset is a set of hotspots which are marked as being not capable of being uploaded; and if the plurality of currently scanned hotspots comprise a fourth hotspot in a fourth hotspot subset, performing login authentication according to historical login authentication information, and accessing the fourth hotspot through the main Wi-Fi network interface after the login authentication is passed.
As can be seen, in this example, the electronic device may respectively correspond to one hotspot set through the primary Wi-Fi network interface and the secondary Wi-Fi network interface, and connect the Wi-Fi hotspots through the respective hotspot sets, so as to improve the validity of Wi-Fi network connection.
Referring to fig. 2, fig. 2 is a schematic flowchart of a network connection control method according to an embodiment of the present application, and the method is applied to an electronic device; as shown in the figure, the network connection control method includes:
s201, when the electronic equipment detects that the double wireless high-fidelity Wi-Fi function is started, scanning a current hotspot through the secondary Wi-Fi network interface;
s202, the electronic equipment queries a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, and the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots;
s203, if the plurality of currently scanned hotspots include a first hotspot in a first hotspot subset, accessing the first hotspot through the secondary Wi-Fi network interface;
s204, if any one of the plurality of currently scanned hot spots does not comprise any hot spot in the first hot spot subset and comprises a second hot spot in the second hot spot subset, displaying a login authentication notification on a current display interface;
s205, the electronic equipment acquires login authentication information input by a user, performs login authentication according to the login authentication information, and accesses the second hotspot through the secondary Wi-Fi network interface after the login authentication is passed;
s206, the electronic equipment updates the first hotspot set through the main Wi-Fi network interface.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the electronic equipment scans a current hotspot through a secondary Wi-Fi network interface when detecting that a double wireless high-fidelity Wi-Fi function is started, and then inquires a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the first hotspot is accessed through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot to connect, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notifications, and be beneficial to improving the high efficiency and convenience of network connection control.
In addition, after determining that no hotspot marked as internet-enabled and the secondary Wi-Fi network interface does not need login authentication is marked, the electronic equipment acquires the hotspot marked as internet-enabled and the secondary Wi-Fi network interface needs login authentication, so that the high efficiency of network connection control is improved.
In accordance with the embodiment shown in fig. 1A, please refer to fig. 3, fig. 3 is a schematic flowchart of a network connection control method provided in the embodiment of the present application, and is applied to an electronic device; as shown in the figure, the network connection control method includes:
s301, when the electronic equipment detects that the double wireless high-fidelity Wi-Fi function is started, scanning a current hotspot through the main Wi-Fi network interface;
s302, the electronic device queries the first hotspot set according to the currently scanned multiple hotspots, where the first hotspot set includes a first hotspot subset, a second hotspot subset, and a third hotspot subset, the first hotspot subset is a set of hotspots that is marked as a hotspot that can be accessed to the internet and that does not need login authentication for the secondary Wi-Fi network interface, the second hotspot subset is a set of hotspots that is marked as a hotspot that can be accessed to the internet and that needs login authentication for the secondary Wi-Fi network interface, and the third hotspot subset is a set of hotspots that is marked as a hotspot that cannot be accessed to the internet;
s303, if the plurality of currently scanned hotspots comprise a third hotspot in the first hotspot subset, performing login authentication according to historical login authentication information, and accessing the third hotspot through the main Wi-Fi network interface after the login authentication is passed;
s304, the electronic equipment updates the first hotspot set according to the connection result of the main Wi-Fi network interface;
s305, the electronic equipment scans the current hotspot through the secondary Wi-Fi network interface;
s306, the electronic equipment queries the updated first hotspot set according to the currently scanned hotspots;
s307, if the plurality of currently scanned hotspots include a first hotspot in the first hotspot subset, accessing the first hotspot through the secondary Wi-Fi network interface.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the electronic equipment scans a current hotspot through a secondary Wi-Fi network interface when detecting that a double wireless high-fidelity Wi-Fi function is started, and then inquires a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the first hotspot is accessed through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot for connection, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notification, and be beneficial to improving the high efficiency and convenience of network connection control.
In addition, when the electronic device is in network connection with the main Wi-Fi network interface, the first hotspot set can be inquired for network connection, so that the situation that the main Wi-Fi network interface is frequently connected with hotspots which cannot be accessed to the Internet or need login authentication when in network connection is avoided, after the main Wi-Fi network interface is in network connection, the first hotspot set is updated, network connection is performed according to the updated first hotspot set, and frequent generation of notification information is reduced, so that the effectiveness of network connection of the electronic device is reduced, and the experience degree of a user is further influenced.
Consistent with the embodiments shown in fig. 1A, fig. 2, and fig. 3, please refer to fig. 4, and fig. 4 is a schematic structural diagram of an electronic device 400 provided in an embodiment of the present application, as shown in the figure, the electronic device 400 includes an application processor 410, a memory 420, a communication interface 430, and one or more programs 421, where the one or more programs 421 are stored in the memory 420 and configured to be executed by the application processor 410, and the one or more programs 421 include instructions for performing the following steps;
when the starting of the double wireless high-fidelity Wi-Fi function is detected, scanning a current hotspot through the secondary Wi-Fi network interface;
inquiring a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which a Wi-Fi network interface does not need login authentication, the second hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which Wi-Fi network interface needs login authentication, and the third hotspot subset is a set marked as a hotspot which can not be accessed to the Internet;
and if the plurality of currently scanned hot spots comprise a first hot spot in a first hot spot subset, accessing the first hot spot through the secondary Wi-Fi network interface.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the method comprises the steps that when the electronic equipment detects that the double wireless high-fidelity Wi-Fi function is started, a current hotspot is scanned through a secondary Wi-Fi network interface, then a first hotspot set is inquired according to a plurality of currently scanned hotspots, the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set which is marked as a hotspot capable of surfing the Internet and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set which is marked as a hotspot capable of surfing the Internet and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set which is marked as a hotspot incapable, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the electronic equipment accesses to the first hotspot through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot for connection, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notification, and be beneficial to improving the high efficiency and convenience of network connection control.
In one possible example, in connection with the accessing the first hotspot over the secondary Wi-Fi network interface, the instructions in the one or more programs 421 are further to: keeping the current display interface unchanged; and performing login authentication on a background according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, in connection with the accessing the first hotspot over the secondary Wi-Fi network interface, the instructions in the one or more programs 421 are further to: keeping the current display interface unchanged; accessing the first hotspot through the secondary Wi-Fi network interface.
In one possible example, in terms of performing login authentication in the background according to the historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed, the instructions in the one or more programs 421 are further configured to: acquiring at least one login authentication information interface corresponding to successful login authentication of the first hotspot, which is stored in advance; extracting at least one login authentication password of the first hotspot from the at least one login authentication information interface; and performing login authentication on a background according to the at least one login authentication password, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, in connection with the accessing the first hotspot over the secondary Wi-Fi network interface, the instructions in the one or more programs 421 are further to: sending a login authentication request to a server through the secondary Wi-Fi network interface; receiving login authentication response information sent by the server, wherein the login authentication response information comprises a login authentication password of the first hotspot; and performing login authentication on a background according to the login authentication response information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, the instructions in the one or more programs 421 are further to: after querying the first hotspot set according to the currently scanned hotspots, if any hotspot in the first hotspot subset is not included in the currently scanned hotspots and a second hotspot in the second hotspot subset is included in the currently scanned hotspots, displaying a login authentication notification on a current display interface; obtaining login authentication information input by a user, performing login authentication according to the login authentication information, and accessing the second hotspot through the secondary Wi-Fi network interface after the login authentication is passed; updating the first set of hotspots via the master Wi-Fi network interface.
In one possible example, in connection with the updating the first set of hotspots via the master Wi-Fi network interface, the instructions in the one or more programs 421 are specifically to: obtaining the second hotspot in the second subset of hotspots via the master Wi-Fi network interface; updating the mark of the second hotspot to be internet-enabled through the main Wi-Fi network interface, wherein the secondary Wi-Fi network interface does not need login authentication; adding the updated marked second hotspot to the first hotspot subset through the master Wi-Fi network interface.
In one possible example, the one or more programs 421 further include instructions for performing the steps of: scanning a current hotspot through the main Wi-Fi network interface before the querying of a first hotspot set according to the currently scanned hotspots; performing connection test on the unmarked Wi-Fi hotspots in the scanned Wi-Fi hotspots through the main Wi-Fi network interface to obtain the test result of the unmarked Wi-Fi hotspots; if the test result is that the Wi-Fi hotspot meets a first preset condition, marking the Wi-Fi hotspot as internet-enabled and a secondary Wi-Fi network interface does not need login authentication, and adding the marked Wi-Fi hotspot to the first hotspot subset, wherein the first preset condition comprises that the Wi-Fi hotspot is accessed by the primary Wi-Fi network interface through the first login authentication and is available; if the test result is that the Wi-Fi hotspot meets a second preset condition, the Wi-Fi hotspot is marked to be internet-enabled, a Wi-Fi network interface needs login authentication, the marked Wi-Fi hotspot is added to the second hotspot subset, and the second preset condition comprises that the Wi-Fi hotspot is internet-enabled after access and needs to pass the first login authentication.
In one possible example, the one or more programs 421 further include instructions for performing the steps of: scanning a current hotspot through the primary Wi-Fi network interface before the scanning of the current hotspot through the secondary Wi-Fi network interface; inquiring the first hotspot set according to the currently scanned hotspots; if the plurality of currently scanned hotspots comprise a third hotspot in the first hotspot subset, login authentication is carried out according to historical login authentication information, and the third hotspot is accessed through the main Wi-Fi network interface after the login authentication is passed; and updating the first hotspot set according to the connection result of the main Wi-Fi network interface.
In one possible example, the one or more programs 421 further include instructions for performing the steps of: scanning a current hotspot through the primary Wi-Fi network interface before the scanning of the current hotspot through the secondary Wi-Fi network interface; querying the second hotspot set according to the currently scanned hotspots, wherein the second hotspot set comprises a fourth hotspot subset, a fifth hotspot subset and a sixth hotspot subset, the fourth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface does not need login authentication, the fifth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface needs login authentication, and the sixth hotspot subset is a set marked as a hotspot which can not be on-line; and if the plurality of currently scanned hotspots comprise a fourth hotspot in a fourth hotspot subset, performing login authentication according to historical login authentication information, and accessing the fourth hotspot through the main Wi-Fi network interface after the login authentication is passed.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 5 is a block diagram showing functional units of a network connection control apparatus 500 according to an embodiment of the present application. The network connection control apparatus 500 is applied to an electronic device, and includes a processing unit 501, a communication unit 502, and a storage unit 503, wherein,
when detecting that the dual-wireless high-fidelity Wi-Fi function is started, the processing unit 501 transmits the start signal through the communication unit 502, and scans the current hotspot through the secondary Wi-Fi network interface; inquiring a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which a Wi-Fi network interface does not need login authentication, the second hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which Wi-Fi network interface needs login authentication, and the third hotspot subset is a set marked as a hotspot which can not be accessed to the Internet; and if the plurality of currently scanned hot spots comprise a first hot spot in a first hot spot subset, accessing the first hot spot through the secondary Wi-Fi network interface.
It can be seen that, in the embodiments of the present application, a network connection control method and related products are provided, which are applied to an electronic device, where the electronic device includes a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method includes: the electronic equipment scans a current hotspot through a secondary Wi-Fi network interface when detecting that a double wireless high-fidelity Wi-Fi function is started, and then inquires a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and the secondary Wi-Fi needs login authentication, the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots, and if the plurality of currently scanned hotspots comprise the first hotspot in the first hotspot subset, the first hotspot is accessed through the secondary Wi-Fi network interface. Therefore, after the electronic equipment has the double wireless high-fidelity Wi-Fi function, the electronic equipment can inquire the current hotspot scanned by the secondary Wi-Fi network interface through the hotspot set obtained through the historical connection record, find out a proper Wi-Fi hotspot for connection, reduce the frequency of connecting to the Wi-Fi hotspot needing login authentication, further reduce the display of login authentication notification, and be beneficial to improving the high efficiency and convenience of network connection control.
In one possible example, in terms of the accessing the first hotspot through the secondary Wi-Fi network interface, the processing unit 501 is further specifically configured to: keeping the current display interface unchanged; and performing login authentication on a background according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, in terms of the accessing the first hotspot through the secondary Wi-Fi network interface, the processing unit 501 is further specifically configured to: keeping the current display interface unchanged; accessing the first hotspot through the secondary Wi-Fi network interface.
In a possible example, in terms of performing login authentication in a background according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed, the processing unit 501 is further specifically configured to: acquiring at least one login authentication information interface corresponding to successful login authentication of the first hotspot, which is stored in advance; extracting at least one login authentication password of the first hotspot from the at least one login authentication information interface; and performing login authentication on a background according to the at least one login authentication password, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, in terms of the accessing the first hotspot through the secondary Wi-Fi network interface, the processing unit 501 is further specifically configured to: sending a login authentication request to a server through the secondary Wi-Fi network interface; receiving login authentication response information sent by the server, wherein the login authentication response information comprises a login authentication password of the first hotspot; and performing login authentication on a background according to the login authentication response information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
In one possible example, the processing unit 501 is further configured to: after querying the first hotspot set according to the currently scanned hotspots, if any hotspot in the first hotspot subset is not included in the currently scanned hotspots and a second hotspot in the second hotspot subset is included in the currently scanned hotspots, displaying a login authentication notification on a current display interface; obtaining login authentication information input by a user, performing login authentication according to the login authentication information, and accessing the second hotspot through the secondary Wi-Fi network interface after the login authentication is passed; updating the first set of hotspots via the master Wi-Fi network interface.
In one possible example, in terms of the updating the first hotspot set through the master Wi-Fi network interface, the processing unit 501 is specifically configured to: obtaining the second hotspot in the second subset of hotspots via the master Wi-Fi network interface; updating the mark of the second hotspot to be internet-enabled through the main Wi-Fi network interface, wherein the secondary Wi-Fi network interface does not need login authentication; adding the updated marked second hotspot to the first hotspot subset through the master Wi-Fi network interface.
In one possible example, the processing unit 501 is further configured to: scanning a current hotspot through the master Wi-Fi network interface before querying a first hotspot set according to the currently scanned hotspots; performing connection test on the unmarked Wi-Fi hotspots in the scanned Wi-Fi hotspots through the main Wi-Fi network interface to obtain the test result of the unmarked Wi-Fi hotspots; if the test result is that the Wi-Fi hotspot meets a first preset condition, marking the Wi-Fi hotspot as internet-enabled and a secondary Wi-Fi network interface does not need login authentication, and adding the marked Wi-Fi hotspot to the first hotspot subset, wherein the first preset condition comprises that the Wi-Fi hotspot is accessed by the primary Wi-Fi network interface through the first login authentication and is available; if the test result is that the Wi-Fi hotspot meets a second preset condition, the Wi-Fi hotspot is marked to be internet-enabled, a Wi-Fi network interface needs login authentication, the marked Wi-Fi hotspot is added to the second hotspot subset, and the second preset condition comprises that the Wi-Fi hotspot is internet-enabled after access and needs to pass the first login authentication.
In one possible example, the processing unit 501 is further configured to: scanning a current hotspot through the primary Wi-Fi network interface before the scanning of the current hotspot through the secondary Wi-Fi network interface; inquiring the first hotspot set according to the currently scanned hotspots; if the plurality of currently scanned hotspots comprise a third hotspot in the first hotspot subset, login authentication is carried out according to historical login authentication information, and the third hotspot is accessed through the main Wi-Fi network interface after the login authentication is passed; and updating the first hotspot set according to the connection result of the main Wi-Fi network interface.
In one possible example, the processing unit 501 is further configured to: scanning a current hotspot through the primary Wi-Fi network interface before the scanning of the current hotspot through the secondary Wi-Fi network interface; querying the second hotspot set according to the currently scanned hotspots, wherein the second hotspot set comprises a fourth hotspot subset, a fifth hotspot subset and a sixth hotspot subset, the fourth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface does not need login authentication, the fifth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface needs login authentication, and the sixth hotspot subset is a set marked as a hotspot which can not be on-line; and if the plurality of currently scanned hotspots comprise a fourth hotspot in a fourth hotspot subset, performing login authentication according to historical login authentication information, and accessing the fourth hotspot through the main Wi-Fi network interface after the login authentication is passed.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the above-described units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.
Claims (12)
1. A network connection control method is applied to an electronic device, the electronic device comprises a primary Wi-Fi network interface and a secondary Wi-Fi network interface, and the method comprises the following steps:
when the starting of the double wireless high-fidelity Wi-Fi function is detected, scanning a current hotspot through the secondary Wi-Fi network interface;
inquiring a first hotspot set according to a plurality of currently scanned hotspots, wherein the first hotspot set comprises a first hotspot subset, a second hotspot subset and a third hotspot subset, the first hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which a Wi-Fi network interface does not need login authentication, the second hotspot subset is a set marked as a hotspot which can be accessed to the Internet and for which Wi-Fi network interface needs login authentication, and the third hotspot subset is a set marked as a hotspot which can not be accessed to the Internet; sequentially querying the first hotspot subset, the second hotspot subset and the third hotspot subset according to a plurality of currently scanned hotspots; when inquiring each hotspot subset, sequentially inquiring according to the sequence of the distances between hotspot devices corresponding to a plurality of currently scanned hotspots and the electronic equipment from near to far;
if the plurality of currently scanned hot spots comprise a first hot spot in a first hot spot subset, accessing the first hot spot through the secondary Wi-Fi network interface;
before querying the first hotspot set according to the currently scanned hotspots, the method further includes: scanning a current hotspot through the master Wi-Fi network interface; performing connection test on the unmarked Wi-Fi hotspots in the scanned Wi-Fi hotspots through the main Wi-Fi network interface to obtain the test result of the unmarked Wi-Fi hotspots; if the test result is that the Wi-Fi hotspot meets a first preset condition, marking the Wi-Fi hotspot as internet-enabled and a secondary Wi-Fi network interface does not need login authentication, and adding the marked Wi-Fi hotspot to the first hotspot subset, wherein the first preset condition comprises that the Wi-Fi hotspot is accessed by the primary Wi-Fi network interface through the first login authentication and is available; if the test result is that the Wi-Fi hotspot meets a second preset condition, the Wi-Fi hotspot is marked to be internet-enabled, a Wi-Fi network interface needs login authentication, the marked Wi-Fi hotspot is added to the second hotspot subset, and the second preset condition comprises that the Wi-Fi hotspot is internet-enabled after access and needs to pass the first login authentication.
2. The method of claim 1, wherein the accessing the first hotspot through the secondary Wi-Fi network interface comprises:
keeping the current display interface unchanged;
and performing login authentication on a background according to historical login authentication information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
3. The method of claim 1, wherein the accessing the first hotspot through the secondary Wi-Fi network interface comprises:
keeping the current display interface unchanged;
accessing the first hotspot through the secondary Wi-Fi network interface.
4. The method of claim 2, wherein the performing login authentication in a background according to the historical login authentication information and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is performed comprises:
acquiring at least one login authentication information interface corresponding to successful login authentication of the first hotspot, which is stored in advance;
extracting at least one login authentication password of the first hotspot from the at least one login authentication information interface;
and performing login authentication on a background according to the at least one login authentication password, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
5. The method of claim 3, wherein the accessing the first hotspot through the secondary Wi-Fi network interface comprises:
sending a login authentication request to a server through the secondary Wi-Fi network interface;
receiving login authentication response information sent by the server, wherein the login authentication response information comprises a login authentication password of the first hotspot;
and performing login authentication on a background according to the login authentication response information, and accessing the first hotspot through the secondary Wi-Fi network interface after the login authentication is passed.
6. The method of any of claims 1-5, wherein after querying the first set of hotspots based on the currently scanned plurality of hotspots, the method further comprises:
if the currently scanned multiple hotspots do not include any hotspot in the first hotspot subset and include a second hotspot in the second hotspot subset, displaying a login authentication notification on a current display interface;
obtaining login authentication information input by a user, performing login authentication according to the login authentication information, and accessing the second hotspot through the secondary Wi-Fi network interface after the login authentication is passed;
updating the first set of hotspots via the master Wi-Fi network interface.
7. The method of claim 6, wherein the updating the first set of hotspots via the master Wi-Fi network interface comprises:
obtaining the second hotspot in the second subset of hotspots via the master Wi-Fi network interface;
updating the mark of the second hotspot to be internet-enabled through the main Wi-Fi network interface, wherein the secondary Wi-Fi network interface does not need login authentication;
adding the updated marked second hotspot to the first hotspot subset through the master Wi-Fi network interface.
8. The method of any of claims 1-5, wherein prior to scanning for a current hotspot over the secondary Wi-Fi network interface, the method further comprises:
scanning a current hotspot through the master Wi-Fi network interface;
inquiring the first hotspot set according to the currently scanned hotspots;
if the plurality of currently scanned hotspots comprise a third hotspot in the first hotspot subset, login authentication is carried out according to historical login authentication information, and the third hotspot is accessed through the main Wi-Fi network interface after the login authentication is passed;
and updating the first hotspot set according to the connection result of the main Wi-Fi network interface.
9. The method of any of claims 1-5, wherein prior to scanning for a current hotspot over the secondary Wi-Fi network interface, the method further comprises:
scanning a current hotspot through the master Wi-Fi network interface;
querying the second hotspot set according to the currently scanned hotspots, wherein the second hotspot set comprises a fourth hotspot subset, a fifth hotspot subset and a sixth hotspot subset, the fourth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface does not need login authentication, the fifth hotspot subset is a set marked as a hotspot which can be on-line and for which a main Wi-Fi network interface needs login authentication, and the sixth hotspot subset is a set marked as a hotspot which can not be on-line;
and if the plurality of currently scanned hotspots comprise a fourth hotspot in a fourth hotspot subset, performing login authentication according to historical login authentication information, and accessing the fourth hotspot through the main Wi-Fi network interface after the login authentication is passed.
10. A network connection control device is applied to electronic equipment; the network connection control device comprises a processing unit, a communication unit and a storage unit, wherein,
the processing unit is used for scanning the current hot spot through the secondary Wi-Fi network interface when the starting of the double wireless high-fidelity Wi-Fi function is detected; the system comprises a first hotspot set, a second hotspot set and a third hotspot set, wherein the first hotspot set comprises the first hotspot subset, the second hotspot subset and the third hotspot subset, the first hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface does not need login authentication, the second hotspot subset is a set of hotspots which are marked as internet-enabled hotspots and a secondary Wi-Fi network interface needs login authentication, and the third hotspot subset is a set of hotspots which are marked as internet-disabled hotspots; sequentially querying the first hotspot subset, the second hotspot subset and the third hotspot subset according to a plurality of currently scanned hotspots; when each hotspot subset is queried, sequentially querying according to the sequence from near to far of the distances between the hotspot devices corresponding to the currently scanned hotspots and the electronic equipment; if the plurality of currently scanned hot spots comprise a first hot spot in a first hot spot subset, accessing the first hot spot through the secondary Wi-Fi network interface;
the processing unit is configured to scan a current hotspot through a master Wi-Fi network interface before querying a first hotspot set according to the currently scanned hotspots; performing connection test on the unmarked Wi-Fi hotspots in the scanned Wi-Fi hotspots through the main Wi-Fi network interface to obtain the test result of the unmarked Wi-Fi hotspots; if the test result is that the Wi-Fi hotspot meets a first preset condition, marking the Wi-Fi hotspot as internet-enabled and a secondary Wi-Fi network interface does not need login authentication, and adding the marked Wi-Fi hotspot to the first hotspot subset, wherein the first preset condition comprises that the Wi-Fi hotspot is accessed by the primary Wi-Fi network interface through the first login authentication and is available; if the test result is that the Wi-Fi hotspot meets a second preset condition, the Wi-Fi hotspot is marked to be internet-enabled, a Wi-Fi network interface needs login authentication, the marked Wi-Fi hotspot is added to the second hotspot subset, and the second preset condition comprises that the Wi-Fi hotspot is internet-enabled after access and needs to pass the first login authentication.
11. An electronic device comprising a processor, a memory, a communication interface, and one or more programs stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-9.
12. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910838280.6A CN110572829B (en) | 2019-09-05 | 2019-09-05 | Network connection control method and related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910838280.6A CN110572829B (en) | 2019-09-05 | 2019-09-05 | Network connection control method and related product |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110572829A CN110572829A (en) | 2019-12-13 |
CN110572829B true CN110572829B (en) | 2022-08-16 |
Family
ID=68777926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910838280.6A Active CN110572829B (en) | 2019-09-05 | 2019-09-05 | Network connection control method and related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110572829B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111526515A (en) * | 2020-04-29 | 2020-08-11 | Oppo广东移动通信有限公司 | Network connection method, device, terminal and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104640174A (en) * | 2015-02-05 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Method and device for promoting wireless network access points |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
CN106102098A (en) * | 2016-05-27 | 2016-11-09 | 华为技术有限公司 | A kind of method and device accessing WIFI network |
CN106792829A (en) * | 2017-01-10 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | Lift method, device and the terminal device of terminal WIFI message transmission rates |
CN107333286A (en) * | 2017-08-04 | 2017-11-07 | 广东欧珀移动通信有限公司 | Wifi hotspot connection management method, device and terminal device |
CN108135000A (en) * | 2018-03-05 | 2018-06-08 | 上海连尚网络科技有限公司 | A kind of authentication method and equipment |
CN109640310A (en) * | 2019-02-12 | 2019-04-16 | Oppo广东移动通信有限公司 | Data transfer control method and Related product |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017166131A1 (en) * | 2016-03-30 | 2017-10-05 | 华为技术有限公司 | Wi-fi hot spot recommendation method, terminal and graphical user interface |
-
2019
- 2019-09-05 CN CN201910838280.6A patent/CN110572829B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104640174A (en) * | 2015-02-05 | 2015-05-20 | 腾讯科技(深圳)有限公司 | Method and device for promoting wireless network access points |
CN105759937A (en) * | 2016-02-03 | 2016-07-13 | 努比亚技术有限公司 | Method for lowering terminal power consumption and terminal |
CN106102098A (en) * | 2016-05-27 | 2016-11-09 | 华为技术有限公司 | A kind of method and device accessing WIFI network |
CN106792829A (en) * | 2017-01-10 | 2017-05-31 | 青岛海信移动通信技术股份有限公司 | Lift method, device and the terminal device of terminal WIFI message transmission rates |
CN107333286A (en) * | 2017-08-04 | 2017-11-07 | 广东欧珀移动通信有限公司 | Wifi hotspot connection management method, device and terminal device |
CN108135000A (en) * | 2018-03-05 | 2018-06-08 | 上海连尚网络科技有限公司 | A kind of authentication method and equipment |
CN109640310A (en) * | 2019-02-12 | 2019-04-16 | Oppo广东移动通信有限公司 | Data transfer control method and Related product |
Also Published As
Publication number | Publication date |
---|---|
CN110572829A (en) | 2019-12-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102158417B1 (en) | Cross-terminal sign-free method and device | |
EP3072334B1 (en) | Method, system and apparatus for automatically connecting to wlan | |
CN104967997B (en) | A kind of Wi-Fi cut-in method, Wi-Fi equipment, terminal device and system | |
CN103746812B (en) | A kind of access authentication method and system | |
CN105682015A (en) | Method and device for establishing wireless connection | |
KR101720043B1 (en) | System and method for authentication in wireless lan | |
EP3122144A1 (en) | Device and method for accessing wireless network | |
US10716043B2 (en) | Access point handover method and device | |
US20180124691A1 (en) | Method and apparatus for accessing wireless network with smart device | |
CN107567017B (en) | Wireless connection system, device and method | |
JP2015508613A (en) | An extensible framework for wireless network connectivity | |
CN112822756B (en) | Communication method, system, base station and terminal | |
CN108293055A (en) | Method, apparatus and system for authenticating to mobile network and for by the server of device authentication to mobile network | |
US7822412B2 (en) | System and method for accessing a wireless network | |
CN106713522B (en) | Wireless fidelity Wi-Fi connection method and mobile terminal | |
CN113132929B (en) | Equipment network access method and device, computer equipment and storage medium | |
KR101460766B1 (en) | Security setting system and the control method for using clurster function in Wireless network system | |
CN110944319A (en) | 5G communication identity authentication method, equipment and storage medium | |
CN110475315B (en) | Network connection control method and related product | |
EP4290931A1 (en) | Information processing methods, devices, and storage medium | |
CN106028323B (en) | network access method, terminal and access point | |
CN110572829B (en) | Network connection control method and related product | |
CN104994501A (en) | Connection method of wireless network and terminal equipment | |
US10187796B2 (en) | Authentication and association method and system | |
JP2014197262A (en) | Device control program and information processing apparatus |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |