Network control method, device, user terminal and storage medium

Automatically modify the restricted network into an available network through the network connection service module, solving the inconvenience of user intervention when the network is restricted, achieving convenience and stability, reducing equipment power consumption, and ensuring the accuracy of network control.

CN115379446BActive Publication Date: 2025-08-19GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110546649.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2025-08-19
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

In the prior art, when the network is restricted, users need to intervene in operation, resulting in inconvenience in use, and network detection may continue to consume device power consumption and lead to network control errors.

Method used

The network connection service module automatically triggers the network availability detection module to modify the restricted network into available networks, mimicking user interaction, avoiding user intervention and reducing detection frequency, ensuring network stability and device power consumption.

Benefits of technology

It improves user convenience, reduces device power consumption, avoids network control errors, and ensures the stability and accuracy of network usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115379446B_ABST
    Figure CN115379446B_ABST
Patent Text Reader

Abstract

The present application provides a network control method, device, user terminal and storage medium. In the present application, when the network availability detection module detects that the network is restricted, the network connection service module directly uses the network to provide network services to the user terminal without user intervention, thereby improving the convenience of user use; and, for the interaction between the network availability detection module and the user, the network connection service module imitates the user and automatically triggers the network availability detection module so that the network availability detection module changes the standby network to an available network. Therefore, the network availability detection module will not continue to detect network availability because the standby network is a restricted network, thereby reducing device power consumption; and, the network availability detection module will not continue to feed back detection results to the network connection service module, thereby avoiding network control errors of the network connection service module and ensuring the stability of network use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network processing technology, and in particular to a network control method, device, user terminal and storage medium. Background Art

[0002] With the development and popularization of computer technology, technologies have emerged that provide network services to user terminals such as mobile phones, tablets, and computers. User terminals enjoying network services can use the network to perform business operations. For example, user terminals can request videos from video servers over mobile data / Wi-Fi networks.

[0003] Before using the current network to provide network services to the user terminal, it is necessary to first detect the availability of the current network. If the current network is unavailable, it switches to another network to determine whether the other network can provide network services to the user terminal. If the current network is available, it is directly used to provide network services to the user terminal. If the current network is restricted, it is necessary to notify the user and only use the current network to provide network services to the user terminal after the user agrees to use the restricted current network.

[0004] In the case of network restrictions, user intervention is required to use the current network, which is more troublesome for the user. Summary of the Invention

[0005] Based on this, it is necessary to provide a network control method, device, user terminal and storage medium to address the above technical problems.

[0006] A network control method, applied to a network connection service module, comprising:

[0007] Obtaining an availability detection result obtained by a network availability detection module for detecting the availability of a standby network of a user terminal;

[0008] If the availability detection result indicates that the standby network is a restricted network, the network availability detection module is automatically triggered to modify the standby network into an available network, and use the standby network to provide network services for the user terminal.

[0009] A network control device, applied to a network connection service module, comprising:

[0010] A detection result acquisition module is used to obtain the availability detection result obtained by the network availability detection module on the standby network of the user terminal;

[0011] The network processing module is configured to automatically trigger the network availability detection module to modify the standby network into an available network if the availability detection result indicates that the standby network is a restricted network, and to use the standby network to provide network services for the user terminal.

[0012] A user terminal includes a memory and a processor, wherein the memory stores a computer program and the processor executes the following method: obtaining an availability detection result obtained by a network availability detection module performing an availability detection on a standby network of the user terminal; if the availability detection result indicates that the standby network is a restricted network, automatically triggering the network availability detection module to modify the standby network to an available network, and using the standby network to provide network services for the user terminal.

[0013] A computer-readable storage medium stores a computer program, wherein a processor executes the following method: obtaining an availability detection result obtained by a network availability detection module performing an availability detection on a standby network of a user terminal; if the availability detection result indicates that the standby network is a restricted network, automatically triggering the network availability detection module to modify the standby network to an available network, and using the standby network to provide network services for the user terminal.

[0014] In the above-mentioned network control method, apparatus, user terminal, and storage medium, the network connection service module obtains an availability detection result obtained by the network availability detection module on the user terminal's standby network; if the availability detection result indicates that the standby network is a restricted network, the network connection service module automatically triggers the network availability detection module to modify the standby network to an available network and use the standby network to provide network services to the user terminal. As can be seen, when the network availability detection module detects that the network is restricted, the network connection service module directly uses the network to provide network services to the user terminal without user intervention, thereby improving user convenience. Furthermore, if the processing logic of the network availability detection module cannot be modified by developers other than designated parties (such as Google), the network connection service module imitates the user in the interaction between the network availability detection module and the user, automatically triggering the network availability detection module to cause the network availability detection module to modify the standby network to an available network. Therefore, the network availability detection module does not continuously detect network availability due to the standby network being a restricted network, thereby reducing device power consumption. Furthermore, the network availability detection module does not continuously feedback detection results to the network connection service module, thereby avoiding network control errors of the network connection service module and ensuring stable network usage. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1A diagram showing an application environment of a network control method in one embodiment;

[0016] Figure 2 1 is a flow chart of a network control method according to an embodiment;

[0017] Figure 3 1 is a flow chart of a network control method according to an embodiment;

[0018] Figure 4 A schematic diagram of forming a captive portal authentication module in one embodiment;

[0019] Figure 5 1 is a flow chart of a network control method according to an embodiment;

[0020] Figure 6 is a structural block diagram of a network control device in one embodiment;

[0021] Figure 7 FIG. 4 is a diagram showing the internal structure of a user terminal in one embodiment. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solutions and advantages of this application more clear, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain this application and are not intended to limit this application.

[0023] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0024] The network control method provided by this application can be applied to Figure 1 In the application environment shown. Among them, the network availability detection module can be called the Network Monitor module; the network connection service module can be called the Connectivity Service module. The network connection service module triggers the network availability detection module to perform network availability detection on the standby network (such as mobile data, WiFi); after the network availability detection module completes the detection, it feeds back the network availability detection result of the standby network to the network connection service module; based on the network availability detection result fed back by the network availability detection module, the network connection service module determines whether to use the standby network to provide network services to the user terminal.

[0025] Network availability can be understood as whether the network supports encrypted and plaintext service access between devices. If the network supports both encrypted and plaintext service access between devices, it is considered available. If the network only supports plaintext service access between devices, it is considered restricted. If the network supports neither encrypted nor plaintext service access between devices, it is considered unavailable.

[0026] When detecting the availability of the standby network, the network availability detection module may send an encrypted test packet to the designated server a via the encrypted link of the standby network, and send a plaintext test packet to the designated server b via the plaintext link of the standby network. When the network availability detection module detects the availability of the standby network, the following situations may occur:

[0027] (1) If the value fed back by designated server a to the network availability detection module is 204, the network availability detection module can determine that the encrypted link of the standby network is available, that is, the standby network supports encrypted service access between devices and is an available network;

[0028] (2) Designated server b returns a value of 204 to the network availability detection module, but designated server a does not return any value to the network availability detection module (or the value returned is greater than or equal to 400). In this case, the network availability detection module may determine that the plaintext link of the standby network is available but the encrypted link is unavailable. In other words, the standby network only supports plaintext service access between devices and is a restricted network.

[0029] (3) If neither server a nor server b returns any value to the network availability detection module (or the values returned by both servers are greater than or equal to 400), the network availability detection module may deem that both the encrypted link and the plaintext link of the standby network are unavailable, i.e., the standby network is an unavailable network.

[0030] The following combination Figure 2 The network control method provided by this application mainly includes the following steps:

[0031] Step S201: The network connection service module obtains an availability detection result obtained by the network availability detection module for the standby network of the user terminal;

[0032] In step S202, if the availability detection result indicates that the standby network is a restricted network, the network connection service module automatically triggers the network availability detection module to modify the standby network to an available network, and uses the standby network to provide network services for the user terminal.

[0033] This step is described using WiFi as the standby network as an example: before using WiFi to provide network services to the user terminal, the network connection service module first triggers the network availability detection module to detect whether the WiFi is available; the network availability detection module feeds back the WiFi availability detection result to the network connection service module; after receiving the WiFi availability detection result, if the network connection service module determines that the WiFi availability detection result indicates that the WiFi is a restricted network, the network connection service module automatically triggers the network availability detection module to change the standby network to an available network, and uses the WiFi to provide network services to the user terminal, so that the user terminal can use the WiFi to access services, such as requesting video data from a video server.

[0034] In the above-mentioned network control method, when the network availability detection module detects that the network is restricted, the network connection service module directly uses the network to provide network services to the user terminal without user intervention, thereby improving the convenience of user use; and, when the processing logic of the network availability detection module cannot be modified by developers other than designated parties (such as Google), for the interaction between the network availability detection module and the user, the network connection service module imitates the user and automatically triggers the network availability detection module, so that the network availability detection module changes the standby network to an available network. Therefore, the network availability detection module will not continue to detect network availability because the standby network is a restricted network, thereby reducing device power consumption; and the network availability detection module will not continue to feedback the detection results to the network connection service module, thereby avoiding network control errors of the network connection service module and ensuring the stability of network use.

[0035] In some scenarios, if the user interacts with the network availability detection module through the interface provided by the network availability detection module (such as setAcceptPartialConnectivity, which sets the interface for agreeing to use a restricted network); then, when the network connection service module automatically triggers the network availability detection module to change the standby network to an available network, it can specifically perform the following steps: determine the interface provided by the network availability detection module to the user; and automatically execute the user's operation of calling the interface to trigger the network availability detection module to change the standby network to an available network.

[0036] Exemplarily, when the network availability detection module detects that the standby network is a restricted network, the corresponding flag bits are isValid=false and isPartial=true; the network connection service module calls the above interface to let the network availability detection module change the isValid flag bit to true, that is, changing the standby network from a restricted network to an available network.

[0037] In the above implementation, if the interaction between the network availability detection module and the user is implemented based on an interface, then the network connection service module can directly call the interface to trigger the network availability detection module to modify the network status, without the need for user intervention and reducing the intrusion of changes to the overall logic of network control.

[0038] In a further scenario, after the network availability detection module feeds back the network availability detection result to the network connection service module, if the network connection service module determines that the network availability detection result indicates that the standby network is a restricted network (such as isValid=false and isPartial=true), it will prompt the user; based on the prompt, the user knows that the standby network is a restricted network, calls the above-mentioned interface, interacts with the network availability detection module, and triggers the network availability detection module to change the standby network to an available network.

[0039] Since the network connection service module of the present application imitates the user and interacts with the network availability detection module, in order to avoid interfering with the user, the network connection server module does not display the prompt information that the standby network is a restricted network after determining that the standby network is a restricted network.

[0040] In addition, after the network connection service module interacts with the network availability detection module and automatically triggers the network availability detection module to change the standby network to an available network, the network connection service module can display a prompt information about the standby network being an available network to inform the user that the current network is an available network.

[0041] When the network connection service module displays prompt information indicating whether the standby network is available, it is determined based on the above-mentioned flags; for example, if the flags are isValid = false and isPartial = true, the icon of the restricted network is displayed; for another example, if the flags are isValid = true and isPartial = false, the icon of the available network is displayed. Therefore, after the network availability detection module changes the isValid flag to true and sends it back to the network connection service module, since isPartial is still true, the network connection service module can change the isPartial flag to false and display the icon of the available network.

[0042] In one embodiment, when executing the above step S202, the network connection service module may further execute the following steps: if the availability detection result indicates that the standby network is a restricted network and the user terminal is located in a first preset area, the network availability detection module is automatically triggered to modify the standby network to an available network; wherein, the first preset area is an area where the misjudgment frequency of network availability is higher than a preset misjudgment frequency threshold.

[0043] Among them, network availability misjudgment may be that an actually available network is detected as a restricted network; therefore, if the user terminal is located in an area with a high frequency of network availability misjudgment, the network connection service module will imitate the user's interaction with the network availability detection module, automatically triggering the network availability detection module to modify the standby network to an available network, thereby improving the accuracy of network control.

[0044] Furthermore, determining whether the user terminal is located in an area with a high frequency of false network availability determinations can be achieved using the following methods: ① If the user terminal's SIM (Subscriber Identity Module) is connected to the network, use the MCC (Mobile Country Code) and MNC (Mobile Network Code); ② If the user terminal's SIM cannot connect to the network, use the base station country code.

[0045] In one embodiment, when executing the above step S202, the network connection service module may further execute the following steps: if the availability detection result indicates that the standby network is a restricted network and the user consent level is higher than a preset consent level threshold, the network availability detection module is automatically triggered to modify the standby network to an available network; wherein the user consent level is the degree to which the user agrees to use the restricted network.

[0046] If the user does not have high requirements for network availability, the user will still agree to use the restricted network after learning that the standby network is a restricted network. Therefore, in the above method, if the user agrees to use the restricted network to a high degree, the network connection service module will imitate the user and interact with the network availability detection module, automatically triggering the network availability detection module to modify the standby network to an available network, thereby improving the accuracy of network control and maximizing compliance with the user's actual usage intentions.

[0047] Furthermore, the network connection service module may also perform the following steps: obtaining the user's historical operation information on the restricted network; based on the historical operation information, determining a first historical operation number indicating the user's consent to use the restricted network and a second historical operation number indicating the user's refusal to use the restricted network; and based on the relative size of the first historical operation number and the second historical operation number, determining whether the user's consent level is higher than the preset consent level threshold.

[0048] For example, after the user learns that WiFi is a restricted network, he or she will perform corresponding operations, such as calling the above-mentioned interface to inform the network availability detection module to agree to use the restricted network, or switching to mobile data to detect whether mobile data is a restricted network; therefore, the corresponding operations performed by the above-mentioned user after learning that the network is restricted and the corresponding operation time can be regarded as the user's operation information on the restricted network.

[0049] The network connection service module can obtain multiple operation information within a historical period, and based on the multiple operation information, determine that the first historical operation number representing the user's consent to use the restricted network is 5 times and the second historical operation number representing the user's refusal to use the restricted network is 3 times; since the first historical operation number is greater than the second historical operation number, the network connection service module can determine that the user's consent is high, that is, the user's consent is greater than the preset consent threshold.

[0050] In the above implementation, statistics are collected on the user's historical operation information regarding restrictions, and the degree to which the user agrees to use the restricted network is accurately predicted, thereby improving the accuracy of network control and maximally meeting the user's actual usage intention.

[0051] In some scenarios, the network control process is divided into three main parts: ① Network login, ② Network testing, and ③ Network use. During the ① Network login process, some networks, such as Wi-Fi, require user authentication. Therefore, after the Network Connection Service Module learns that the network requires user authentication, it calls the Captive Portal Authentication Module to identify the authentication URL for logging into the Wi-Fi and presents the user with an authentication interface for login.

[0052] In one embodiment, the network connection service module may further perform the following steps: calling a first mandatory portal authentication module to complete a legitimacy test of a user terminal provided by a designated party, so that the user terminal is classified as a legitimate user terminal by the designated party; calling a second mandatory portal authentication module to obtain an authentication URL for logging into the standby network, so that the user terminal can log in to the standby network via the authentication URL; wherein the first mandatory portal authentication module is provided by the designated party, the second mandatory portal authentication module is provided by a non-designated party, and both the first mandatory portal authentication module and the second mandatory portal authentication module are installed in the user terminal.

[0053] The above-mentioned user terminal legitimacy test may include the GTS test (Google Mobile Services TestSuite); if the user terminal does not use the mandatory portal authentication module provided by a designated party such as Google, the user terminal will fail the above test, resulting in the user terminal being classified as an illegal user terminal; however, since the mandatory portal authentication module provided by designated parties such as Google cannot recognize authentication URLs such as WeChat and Peanut Subway, when logging into the network, the mandatory portal authentication module provided by the designated party will directly feedback to the user that it cannot log in; if a non-designated party directly modifies the mandatory portal authentication module provided by the designated party, the user terminal will fail the GTS test and will be considered an illegal user terminal.

[0054] Therefore, in the above embodiment, two captive portal authentication modules are installed in the user terminal: the first captive portal authentication module, provided by a designated party, is used to complete the aforementioned GTS test to verify that the user terminal is a legitimate user terminal; the second captive portal authentication module, provided by a non-designated party, is used to obtain an authentication URL for logging into networks such as WiFi, such as the WeChat authentication URL or the Peanut Subway authentication URL. Thus, the user can authenticate and log in using the authentication URL, and the user terminal can log in to the WiFi.

[0055] The following combination Figure 3 Taking WiFi as an example, the specific steps of the above embodiment are described: Step S301: The network connection service module triggers the network availability detection module to detect the network availability of the current WiFi network. After completing the network availability detection, the network availability detection module feeds back the network availability detection result to the network connection service module. If the network connection service module determines that the network availability detection result indicates that the standby network requires authentication and login (for example, if the value fed back by the designated server a or the designated server b is not 204 and is between 200 and 399, it can be determined that the standby network requires user authentication and login), the network connection service module invokes the captive portal authentication module. Steps S302a to S303: During non-GTS testing, the network connection service module invokes the second captive portal authentication module to trigger the second captive portal authentication module to obtain an authentication URL for logging into the standby network. The second captive portal authentication module provides the obtained authentication URL to the user for authentication and login. Steps S304 to S305: After the network connection module learns that the user has completed authentication and login, it triggers the network availability detection module again to detect the availability of the standby network. In step S302b, during the GTS test, the network connection service module may call the first captive portal authentication module to complete the GTS test, so that the user terminal is classified as a legitimate user terminal by the designated party.

[0056] Therefore, by setting up two mandatory portal authentication modules on the user terminal, it can not only ensure that the user terminal passes the user terminal legitimacy test and is classified as a legal user terminal, but also ensure that the user can directly authenticate and log in based on the corresponding authentication URL, thereby ensuring the success rate of obtaining the authentication URL and improving the efficiency and accuracy of user authentication and login.

[0057] Furthermore, to ensure the success rate and accuracy of obtaining the authentication URL, the network connection service module may further perform the following steps when calling the second captive portal authentication module to obtain the authentication URL for logging into the standby network: determining whether the user terminal is located in a second preset area; if the second preset area has an authentication URL that cannot be recognized by the first captive portal authentication module; and if so, calling the second captive portal authentication module to obtain the authentication URL for logging into the standby network.

[0058] Exemplarily, the second preset area has a WeChat authentication URL or a Peanut Subway authentication URL, and the WeChat authentication URL or the Peanut Subway authentication URL cannot be recognized by the compulsory portal authentication module provided by the designated party. Therefore, when the user terminal is in the second preset area, the authentication URL used to log in to the WiFi and other networks may be the WeChat authentication URL or the Peanut Subway authentication URL. At this time, the network connection service module can call the second compulsory portal authentication module to obtain the above-mentioned authentication URL to ensure the success rate and accuracy of obtaining the authentication URL.

[0059] It should be noted that the above determination of whether the user terminal is in the second preset area can be performed by the above method of determining whether the user terminal is in the first preset area, which is not described in detail here.

[0060] Furthermore, the second captive portal authentication module is obtained by inserting a preset patch into the third captive portal authentication module; wherein the preset patch carries an authentication URL that cannot be recognized by the first captive portal authentication module; and the third captive portal authentication module is obtained by compiling the source code of the first captive portal authentication module.

[0061] Combine Figure 4 Introducing the above-described embodiment: Step S401 compiles the same source code into different types to obtain a first captive portal authentication module and a third captive portal authentication module. The first captive portal authentication module corresponds to a type that is specified by a designated party and cannot be modified by non-designated parties (e.g., a mainline module type), while the third captive portal authentication module corresponds to a type that can be modified by non-designated parties (e.g., a source code type). Since the first and third captive portal authentication modules share the same source code, they both recognize the same authentication URL. Steps S402 and S403 install a patch containing an authentication URL (e.g., a WeChat authentication URL) that is unrecognizable by the first captive portal authentication module into the third captive portal authentication module to obtain a second captive portal authentication module.

[0062] In the above embodiment, since the third captive portal authentication module is derived from the source code of the first captive portal authentication module, only minor modifications need to be made by patching to obtain the second captive portal authentication module, thereby improving processing efficiency.

[0063] Furthermore, in order to ensure the accuracy of calling the network connection service module and avoid calling errors, the calling names of the first captive portal authentication module and the second captive portal authentication module may be different.

[0064] In order to better understand the above method, the following Figure 5An application example of the network control method of the present application is described in detail. The standby network in this application example is WiFi, which requires user authentication and login, and the user terminal is not in a GTS test state.

[0065] Step S501: The network connection service module triggers the network availability detection module to detect the availability of the current WiFi; after the network availability detection module completes the detection, it feeds back the network availability detection result to the network connection service module;

[0066] In step S502, if the network availability test result indicates that the network is a forwarding network (i.e., login to the network requires the user to authenticate and log in via a specific authentication website), the network connection service module determines whether the user terminal is located in a second preset area. If so, the second captive portal authentication module is invoked; if not, the first captive portal authentication module is invoked. (Even if the GTS test is not being performed and the user terminal is not located in the second preset area, the first captive portal authentication module may still be invoked.)

[0067] Step S503: After any of the captive portal authentication modules is called, the authentication URL of the current WiFi is obtained and provided to the user; the user performs authentication and login on the corresponding authentication interface, and the user terminal logs in to the current WiFi;

[0068] In step S504 to step S505, after the network connection service module learns that the user authentication login is completed, the network connection service module triggers the network availability detection module to perform WiFi availability detection again;

[0069] In steps S506 and S507, the network availability detection module feeds back the WiFi availability detection result to the network connection service module. If the network availability detection module determines that the WiFi availability detection result indicates that the current WiFi is a restricted network, the network availability detection module automatically calls an interface of the network availability detection module, triggering the network availability detection module to modify the current WiFi to an available network.

[0070] Step S508: After the network availability detection module changes the current WiFi to an available network, it feeds back the change result to the network connection service module;

[0071] Step S509: The network connection service module uses the WiFi to provide network services to the user. The network connection service module may also display an icon indicating that the current WiFi is an available network to the user.

[0072] In the above application example, by setting up two captive portal authentication modules on the user terminal, it is possible to ensure that the user terminal passes the user terminal legitimacy test and is classified as a legitimate user terminal, and to ensure that the user can directly authenticate and log in based on the corresponding authentication URL, thereby ensuring the success rate of obtaining the authentication URL and improving the efficiency and accuracy of user authentication and login. In addition, when the network availability detection module detects that the network is restricted, the network connection service module directly uses the network to provide network services to the user terminal without user intervention, thereby improving user convenience. Furthermore, if the processing logic of the network availability detection module cannot be modified by developers other than designated parties (such as Google), the network connection service module simulates the user in the interaction between the network availability detection module and the user, automatically triggering the network availability detection module to change the standby network to an available network. Therefore, the network availability detection module does not need to continuously check network availability even if the standby network is restricted, thereby reducing device power consumption. Furthermore, the network availability detection module does not continuously feedback detection results to the network connection service module, thereby avoiding network control errors of the network connection service module and ensuring stable network usage.

[0073] It should be understood that although Figures 1 to 5 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. In addition, Figures 1 to 5 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The order of execution of these steps or stages is not necessarily one by one, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0074] In one embodiment, Figure 6 As shown, a network control device is provided, which is applied to a network connection service module, and the device includes:

[0075] A detection result acquisition module 601 is used to obtain an availability detection result obtained by the network availability detection module for the standby network of the user terminal;

[0076] The network processing module 602 is configured to automatically trigger the network availability detection module to modify the standby network into an available network if the availability detection result indicates that the standby network is a restricted network, and use the standby network to provide network services for the user terminal.

[0077] In one embodiment, the network processing module 602 is further configured to determine an interface provided by the network availability detection module for the user; and automatically execute the user's operation of calling the interface to trigger the network availability detection module to modify the inactive network to an available network.

[0078] In one embodiment, the apparatus further comprises a first prompt information processing module for not displaying prompt information that the standby network is a restricted network; and a second prompt information processing module for displaying prompt information that the standby network is an available network.

[0079] In one embodiment, the network processing module 602 is further configured to automatically trigger the network availability detection module to modify the standby network to an available network if the availability detection result indicates that the standby network is a restricted network and the user terminal is located in a first preset area; wherein the first preset area is an area where the misjudgment frequency of network availability is higher than a preset misjudgment frequency threshold.

[0080] In one embodiment, the network processing module 602 is further configured to automatically trigger the network availability detection module to modify the standby network to an available network if the availability detection result indicates that the standby network is a restricted network and the user consent level is higher than a preset consent level threshold; wherein the user consent level is the degree to which the user agrees to use the restricted network.

[0081] In one embodiment, the device also includes a user consent statistics module for obtaining historical operation information of the user on the restricted network; based on the historical operation information, determining a first historical operation number representing the user's consent to use the restricted network and a second historical operation number representing the user's refusal to use the restricted network; based on the relative size of the first historical operation number and the second historical operation number, determining whether the user consent is higher than the preset consent threshold.

[0082] In one embodiment, the device further includes an authentication module calling module, which is used to call a first mandatory portal authentication module to complete a user terminal legitimacy test provided by a designated party, so that the user terminal is classified as a legitimate user terminal by the designated party; and call a second mandatory portal authentication module to obtain an authentication URL for logging into the standby network, so that the user terminal can log in to the standby network via the authentication URL; wherein the first mandatory portal authentication module is provided by the designated party, and the second mandatory portal authentication module is provided by a non-designated party, and both the first mandatory portal authentication module and the second mandatory portal authentication module are installed in the user terminal.

[0083] In one embodiment, the authentication module calling module is further used to determine whether the user terminal is located in a second preset area; the second preset area has an authentication website that cannot be recognized by the first mandatory portal authentication module; if so, calling the second mandatory portal authentication module to obtain the authentication website for logging into the standby network.

[0084] In one embodiment, the second captive portal authentication module is obtained by inserting a preset patch into the third captive portal authentication module; wherein the preset patch carries an authentication URL that cannot be recognized by the first captive portal authentication module; and the third captive portal authentication module is obtained by compiling the source code of the first captive portal authentication module.

[0085] For specific definitions of the network control device, please refer to the definitions of the network control method above and will not be repeated here. Each module in the above-mentioned network control device can be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the user terminal in hardware form, or can be stored in the memory of the user terminal in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0086] In one embodiment, a user terminal is provided. The internal structure diagram of the user terminal can be as follows: Figure 7 As shown. The user terminal includes a processor, a memory, a communication interface, a display screen and an input device connected via a system bus. The processor of the user terminal is used to provide computing and control capabilities. The memory of the user terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface of the user terminal is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, an operator network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a network control method is implemented. The display screen of the user terminal can be a liquid crystal display screen or an electronic ink display screen, and the input device of the user terminal can be a touch layer covering the display screen, or a button, trackball or touchpad provided on the user terminal housing, or an external keyboard, touchpad or mouse, etc.

[0087] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the user terminal to which the solution of the present application is applied. The specific user terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0088] In one embodiment, a user terminal is provided, including a memory and a processor. The memory stores a computer program, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0089] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0090] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0091] The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0092] The above embodiments merely represent several implementation methods of the present application. While the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the present invention. It should be noted that a person skilled in the art could make various modifications and improvements without departing from the spirit of the present application, all of which fall within the scope of protection of the present application. Therefore, the scope of protection of the present patent application shall be determined by the appended claims.

Claims

1. A network control method, characterized in that: Applied to a network connection service module, the method includes: Obtaining an availability detection result obtained by a network availability detection module for detecting the availability of a standby network of a user terminal; If the availability detection result indicates that the standby network is a restricted network and the user terminal is located in a first preset area, the network availability detection module is automatically triggered to modify the standby network into an available network and use the standby network to provide network services to the user terminal by automatically executing the user's operation of calling the interface provided by the network availability detection module for the user; a restricted network is a network that supports plaintext service access between devices but does not support encrypted service access; an available network is a network that supports plaintext service access between devices and supports encrypted service access; the first preset area is an area where the frequency of misjudgment of network availability is higher than a preset misjudgment frequency threshold.

2. The method according to claim 1, characterized in that Before automatically triggering the network availability detection module to modify the inactive network into an available network, the method further includes: Not displaying a prompt message indicating that the standby network is a restricted network; After automatically triggering the network availability detection module to modify the inactive network into an available network, the method further includes: Prompt information that the standby network is an available network is displayed.

3. The method according to claim 1 or 2, characterized in that If the availability detection result indicates that the standby network is a restricted network and the user terminal is located in a first preset area, automatically triggering the network availability detection module to modify the standby network into an available network by automatically executing an operation of the user calling an interface provided by the network availability detection module for the user, including: If the availability detection result indicates that the standby network is a restricted network, the user terminal is located in a first preset area, and the user consent level is higher than a preset consent level threshold, the network availability detection module is automatically triggered to change the standby network to an available network by automatically executing an operation of the user calling an interface provided by the network availability detection module for the user; wherein the user consent level is the degree to which the user agrees to use the restricted network.

4. The method according to claim 3, characterized in that The method further comprises: Obtain historical user operation information on restricted networks; Determining, based on the historical operation information, a first historical operation count indicating that the user agrees to use the restricted network and a second historical operation count indicating that the user refuses to use the restricted network; Based on the relative magnitude of the first historical operation times and the second historical operation times, it is determined whether the user consent level is higher than the preset consent level threshold.

5. The method according to claim 1 or 2, characterized in that The method further comprises: calling the first captive portal authentication module to complete a legitimacy test of a user terminal provided by a designated party, so that the user terminal is classified as a legal user terminal by the designated party; calling a second captive portal authentication module to obtain an authentication website address for logging into the standby network, so that the user terminal can log into the standby network via the authentication website address; The first captive portal authentication module is provided by the designated party, the second captive portal authentication module is provided by a non-designated party, and both the first captive portal authentication module and the second captive portal authentication module are installed in the user terminal.

6. The method according to claim 5, characterized in that The calling of the second captive portal authentication module to obtain an authentication URL for logging into the standby network includes: determining whether the user terminal is located in a second preset area; the second preset area has an authentication website that cannot be recognized by the first captive portal authentication module; If so, the second captive portal authentication module is called to obtain an authentication website address for logging into the standby network.

7. The method according to claim 5, characterized in that The second captive portal authentication module is obtained by inserting a preset patch into the third captive portal authentication module; wherein, The preset patch carries an authentication URL that cannot be recognized by the first captive portal authentication module; and the third captive portal authentication module is obtained by compiling the source code of the first captive portal authentication module.

8. A network control device, characterized in that: Applied to a network connection service module, the device includes: A detection result acquisition module is used to obtain the availability detection result obtained by the network availability detection module on the standby network of the user terminal; A network processing module is configured to automatically trigger the network availability detection module to modify the standby network into an available network and use the standby network to provide network services to the user terminal if the availability detection result indicates that the standby network is a restricted network and the user terminal is located in a first preset area, by automatically executing an operation of the user calling an interface provided by the network availability detection module for the user; a restricted network is a network that supports plaintext service access between devices but does not support encrypted service access; an available network is a network that supports plaintext service access between devices and supports encrypted service access; the first preset area is an area where the frequency of false positives of network availability is higher than a preset false positive frequency threshold.

9. A user terminal comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Method and system for network access control

    CN104580185A