Network connection control method and related product

文档序号:1712302 发布日期:2019-12-13 浏览:13次 中文

阅读说明:本技术 网络连接控制方法及相关产品 (Network connection control method and related product ) 是由 黄园 于 2019-09-05 设计创作,主要内容包括:本申请实施例公开了一种网络连接控制方法及相关产品,应用于电子设备,所述方法包括:电子设备在检测到双无线高保真Wi-Fi功能开启时,通过所述次Wi-Fi网络接口扫描当前热点,通过查询第一热点集合,所述第一热点集合包括标记为可上网且次Wi-Fi网络接口不需要登录认证的热点对应的第一热点子集,若当前扫描出的多个热点中包括第一热点子集中的第一热点,则通过所述次Wi-Fi网络接口接入所述第一热点。有利于提高网络连接控制的高效性和便捷性。(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 if a plurality of currently scanned hotspots comprise a first hotspot in the first hotspot subset, accessing the first hotspot through the secondary Wi-Fi network interface. The method is favorable for improving the efficiency and convenience of network connection control.)

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;

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.

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 querying the first set of hotspots for the plurality of currently scanned hotspots, the method further comprises:

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.

9. the method of claim 8, 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.

10. 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.

11. a network connection control device is applied to electronic equipment; the wireless network connection device comprises a processing unit, a communication unit and a storage unit, wherein,

The processing unit is used for scanning the current hotspot 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 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.

12. 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-6.

13. 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-6.

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.

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 hotspot 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 the plurality of currently scanned hot spots are not the hot spots in the first hot spot subset, judging whether the plurality of currently scanned hot spots are the hot spots 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 perform new login authentication. At this time, the electronic device may update the current mark of the first hotspot as internet-enabled and the secondary Wi-Fi network interface needs login authentication according to the connection failure information through the primary 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, so that the efficiency of controlling network connection of the electronic device is improved.

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 this example, the electronic device can realize the secondary Wi-Fi network interface access hotspot without changing the content of the current display interface, and 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 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, 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.

Referring to fig. 3, fig. 3 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:

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 main Wi-Fi network interface is connected with the network, the electronic equipment can also perform network connection by inquiring the first hotspot set, so that the situation that the main Wi-Fi network interface is frequently connected with a hotspot which cannot be accessed to the internet or needs to log in for authentication when performing network connection is avoided, after the main Wi-Fi network interface performs 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 performed by the electronic equipment is reduced, and further the experience of a user is 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 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 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 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 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 embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of 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 mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric 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, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种使用无线接口技术的方法以及装置和通信系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!