Online method, electronic device, chip system, storage medium and program product
Patent Information
- Application Number
- CN202510574470.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2026-10-30
AI Technical Summary
[0004]但在一些场景中,电子设备虽然处于WIFI覆盖区域、连接至WIFI网络,但WIFI网络的信号质量较差,而电子设备总是优先利用WIFI上网的方式,可能给用户带来不好的用网体验
[0064]应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
Smart Images

Figure CN123021291A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a method for accessing the Internet, electronic devices, chip systems, storage media, and software products. Background Technology
[0002] Electronic devices typically support Wireless Fidelity (WIFI) and cellular network capabilities, allowing them to access the network.
[0003] It should be understood that Wi-Fi networks are usually free or much cheaper than mobile data plans, and their transmission speeds are generally higher than 4G / 5G mobile data. Therefore, in some scenarios covered by Wi-Fi, users usually prefer to use Wi-Fi networks to save money or obtain higher transmission speeds. If a user leaves the Wi-Fi coverage area, the electronic device can switch to the cellular network, or when the user re-enters the Wi-Fi coverage area, the electronic device will prioritize using Wi-Fi to access the internet.
[0004] However, in some scenarios, although electronic devices are in a Wi-Fi coverage area and connected to the Wi-Fi network, the Wi-Fi signal quality is poor. Since electronic devices always prioritize using Wi-Fi to access the internet, this may lead to a poor internet experience for users. Summary of the Invention
[0005] This application provides an internet access method, electronic device, chip system, storage medium, and program product, which are applied in the field of terminal technology. They can suppress electronic devices from using WIFI to access the internet in scenarios where the signal quality of the WIFI network is worse than that of the cellular network, so that the electronic devices still use the cellular network to access the internet, which is beneficial to improving the user's internet experience.
[0006] In a first aspect, embodiments of this application propose an internet access method applicable to electronic devices. The method includes: at a first moment, the electronic device accesses the internet using a cellular network; at a second moment, the electronic device connects to a Wi-Fi network, and the cellular network connection of the electronic device is not disconnected; when the electronic device is in a target suppression scenario, the electronic device is suppressed from accessing the internet using Wi-Fi, so that the electronic device still accesses the internet using a cellular network, wherein the signal quality of the Wi-Fi network is lower than the signal quality of the cellular network in the target suppression scenario, and the second moment occurs after the first moment.
[0007] In some implementations, when an electronic device is connected to a Wi-Fi network, it always prioritizes using Wi-Fi for internet access, regardless of the Wi-Fi signal quality. The method provided in this application can suppress the electronic device's use of Wi-Fi for internet access in scenarios where the Wi-Fi signal quality is lower than that of the cellular network, allowing the device to still use the cellular network. This helps maintain network stability for the electronic device and improves the user experience.
[0008] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: a third moment, in which the electronic device accesses the Internet via a Wi-Fi network, the third moment being before the first moment; and a fourth moment, in which the electronic device disconnects from the Wi-Fi network, the fourth moment being after the first moment and before the second moment.
[0009] In one possible implementation, for example Figure 1 The illustration shows a process from the 14th floor to the 7th floor. On the 14th floor, the electronic device uses Wi-Fi to access the internet. Upon entering the elevator, the device can immediately connect to the cellular network and use it to access the internet, preventing a decline in Wi-Fi signal quality and a poor user experience. However, as the elevator descends, the Wi-Fi signal may drop. It may reconnect when the user stops on the 7th floor and the elevator doors open. As the elevator continues its descent, the Wi-Fi signal weakens again. Some electronic devices may not recognize this scenario and will not immediately switch to cellular again, resulting in continued use of the weak Wi-Fi signal until the signal is completely lost. The method provided in this application can identify such scenarios when the electronic device is connected to Wi-Fi and suppress its use of Wi-Fi, allowing it to continue using the cellular network and improving the user experience in these situations.
[0010] In conjunction with the first aspect, in some implementations of the first aspect, for example, the target suppression scenario includes one or more scenarios among elevator suppression scenario, private local area network suppression scenario, or network sensitive application suppression scenario.
[0011] In conjunction with the first aspect, in some implementations of the first aspect, the judgment conditions for the elevator suppression scenario include: during a first time period, the electronic device is in a closed elevator and the electronic device is in a moving state.
[0012] In some implementations, cellular indoor base stations can be set up in elevators, while the routers for WIFI are usually set up outside the elevator area. Therefore, it can be assumed that the signal quality of WIFI network in elevator scenarios is lower than that of cellular network, but this application does not limit this.
[0013] Optionally, the criteria for determining the elevator suppression scenario may also include: the signal quality of the Wi-Fi network is lower than that of the cellular network, or the signal quality of the Wi-Fi network is less than or equal to a preset threshold. Optionally, the preset threshold may be the average signal quality of the cellular network over a period of time.
[0014] In conjunction with the first aspect, in some implementations of the first aspect, the judgment conditions for the private local area network suppression scenario include: the type of the WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a first threshold; and / or, the type of the WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the ratio of the connection duration of the WIFI network connected to the electronic device in the second time period to the total connection duration of the electronic device to the WIFI network is less than or equal to a second threshold.
[0015] Optionally, a private local area network can be, for example, a corporate network or a campus network, but this application does not specifically limit it.
[0016] Optionally, the network type of a private local area network can be a network type. The network type can be determined by its encryption method and access method. For example, if the encryption method of the WIFI network is EAP and / or its access method is portal authentication, the WIFI network can be considered as a network.
[0017] The first threshold can have a similar meaning to threshold 2 mentioned above. Optionally, the first threshold can also be the average signal quality of the cellular network over a period of time. If the signal quality of the Wi-Fi network to which the electronic device is connected is less than or equal to the first threshold, it can indicate that the signal quality of the current Wi-Fi network is inferior to that of the cellular network.
[0018] The second time period can have a similar meaning to time period 3 mentioned above, and the second threshold can have a similar meaning to threshold 3 mentioned above, so they will not be elaborated further here. If the ratio of the connection time of the electronic device to the WIFI network during the second time period to the total connection time of the electronic device to the WIFI network is less than or equal to the second threshold, it can be understood that the current WIFI network is not frequently used by the user, indicating that the user may not stay in the current WIFI environment for a long time.
[0019] In conjunction with the first aspect, in some implementations of the first aspect, the conditions for determining that the electronic device is in a network-sensitive application suppression scenario include: at least one network-sensitive application is running in the electronic device, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold; and / or, at least one network-sensitive application is in a target operating state in the electronic device, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold, wherein the electronic device in the target operating state has higher requirements for network signal quality than in other operating states.
[0020] Optionally, the network-sensitive application can be a specified application, and the target running state can also be a specified state, but this application does not limit this.
[0021] It should be understood that network-sensitive applications refer to applications that have high requirements for network signal quality, such as audio and video call applications and real-time combat game applications. The scenario described in the embodiments of this application is a scenario where an electronic device is running a network-sensitive application and is in motion. In this scenario, the requirements for network signal quality of the electronic device are higher than when the electronic device is running a normal application and is stationary.
[0022] In conjunction with the first aspect, in some implementations of the first aspect, the judgment condition for the network sensitive application suppression scenario further includes: the traffic consumption of the application running on the electronic device is less than or equal to the fourth threshold.
[0023] The fourth threshold can be a data usage threshold. If the data usage of the applications running on the electronic device is less than or equal to the fourth threshold, it can be understood that the applications running on the electronic device are not downloading anything, which means there are no data-intensive tasks. In this case, suppressing Wi-Fi access and using cellular data can help avoid unnecessary charges for users from data-intensive applications and improve the user experience.
[0024] In conjunction with the first aspect, in certain implementations of the first aspect, when the electronic device is in a target suppression scenario, suppressing the electronic device from using Wi-Fi to access the Internet includes: when the electronic device is in a target suppression scenario and a first condition is met, suppressing the electronic device from using Wi-Fi to access the Internet; the first condition includes: the electronic device is in a screen-on state; the penalty timer in the electronic device is not started, the penalty timer is started when the user turns on the Wi-Fi switch and / or turns off the cellular switch; the signal quality of the cellular network is greater than or equal to a fifth threshold; and the cellular network's bandwidth is greater than or equal to a sixth threshold.
[0025] It should be understood that when an electronic device is in screen-on mode, the user is likely using the device and may require a stable network. The absence of a penalty timer can be interpreted as the user not expressing a preference for using Wi-Fi. Cellular signal quality greater than or equal to the fifth threshold indicates good network conditions. Cellular data allowance greater than the sixth threshold can be interpreted as sufficient cellular data. Therefore, under the target suppression scenario and when the first condition is met, suppressing the electronic device's use of Wi-Fi and allowing it to continue using cellular data is beneficial for maintaining network stability and improving the user's network experience.
[0026] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the electronic device is in an exit target suppression scenario, the electronic device cancels the suppression of WIFI internet access.
[0027] In conjunction with the first aspect, in some implementations of the first aspect, the exit target suppression scenario includes one or more scenarios such as exit elevator suppression scenario, exit dedicated local area network suppression scenario, or exit network sensitive application suppression scenario.
[0028] In conjunction with the first aspect, in some implementations of the first aspect, the judgment conditions for exiting the elevator suppression scenario include any one or more of the following:
[0029] The electronic device remains stationary throughout the third time period and is not located in a closed elevator during this period. This can be understood as the electronic device having left the elevator environment, and the WIFI signal is not obstructed by the elevator. In this case, canceling the suppression of WIFI access helps save users' cellular data.
[0030] The movement amplitude of the electronic device during the third time period is less than or equal to the seventh threshold, and the electronic device is not in a closed elevator during the third time period; thus, it can also be understood that the electronic device has left the elevator environment, and the WIFI signal is not blocked by the elevator. At this time, canceling the suppression of WIFI access is beneficial to saving users' cellular data.
[0031] The first timer times out; the first timer starts when it is determined that the electronic device is in an elevator suppression scenario, and the first timer is used to set the maximum duration for the electronic device to be in the elevator suppression scenario. This is beneficial for timely exiting the elevator suppression scenario in case of other incorrect judgments, avoiding the electronic device being in the elevator suppression scenario for a long time, and further avoiding the negative user experience caused by long-term suppression of WIFI internet access.
[0032] In conjunction with the first aspect, in some implementations of the first aspect, the judgment conditions for exiting the private local area network suppression scenario include any one or more of the following:
[0033] If the electronic device is stationary during the fourth time period and the WIFI network signal quality of the electronic device is always greater than or equal to the eighth threshold during the fourth time period, it means that the electronic device is stationary during the fourth time period and is in an environment with good WIFI network signal quality, and the electronic device can exit the dedicated local area network suppression scenario.
[0034] If the ratio of the connection duration of the WIFI network connected to the electronic device in the second time period to the total connection duration of the WIFI network connected to the electronic device is greater than or equal to the second threshold, and the WIFI network signal quality of the electronic device is consistently greater than or equal to the ninth threshold in the fifth time period, it can be understood that the WIFI network currently connected to the electronic device is a network commonly used by the user. This can be further understood as the user staying on this network for a relatively long time, and the WIFI signal quality of the electronic device remains good in the fifth time period, allowing the electronic device to exit the dedicated local area network suppression scenario.
[0035] The electronic device remains in a mobile state during the sixth time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the tenth threshold during the sixth time period; this can be understood as the electronic device still moving, but the WIFI signal quality is always good during the sixth time period, and the electronic device can exit the dedicated local area network suppression scenario.
[0036] The second timer times out; the second timer starts when it is determined that the electronic device is in a dedicated LAN suppression scenario, and the second timer is used to set the maximum duration for which the electronic device is in the dedicated LAN suppression scenario. This is beneficial for timely exiting the dedicated LAN suppression scenario in case of other incorrect judgments, avoiding the electronic device being in the dedicated LAN suppression scenario for a long time, and further avoiding the bad user experience caused by long-term suppression of WIFI access.
[0037] In conjunction with the first aspect, in some implementations of the first aspect, the tenth threshold > the ninth threshold > the eighth threshold. This implies that a better Wi-Fi signal quality is needed in mobile situations to ensure a good user experience. Setting different thresholds makes the judgment conditions more flexible and user-friendly, which is more conducive to optimizing the user experience.
[0038] In conjunction with the first aspect, in some implementations of the first aspect, the judgment conditions for exiting the network sensitive application suppression scenario include any one or more of the following:
[0039] The network-sensitive application exits, or the target running state of the network-sensitive application exits; this means that the scenario with high network demand has disappeared, and the electronic device can exit the network-sensitive application suppression scenario.
[0040] The electronic device remains stationary during the seventh time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the eleventh threshold during the seventh time period; this indicates that the electronic device is stationary and the WIFI network signal is stable, and the electronic device can exit the network sensitive application suppression scenario.
[0041] The electronic device remains in a mobile state during the eighth time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the twelfth threshold during the eighth time period; this indicates that although the electronic device is moving, the WIFI network signal is stable, and the electronic device can exit the network sensitive application suppression scenario.
[0042] The electronic device has started an application whose data consumption is less than or equal to the fourth threshold; this can be understood as an application in the electronic device starting a download task. In order to avoid suppressing WIFI access and causing users to incur cellular charges, the electronic device can exit the network sensitive application suppression scenario.
[0043] The third timer times out; the third timer starts when it is determined that the electronic device is in a network-sensitive application suppression scenario, and the third timer is used to set the maximum duration for which the electronic device is in the network-sensitive application suppression scenario. This allows for timely exit from the network-sensitive application suppression scenario in case of other incorrect judgments, avoiding prolonged periods of network-sensitive application suppression and further preventing long-term suppression of Wi-Fi access, which could lead to a poor user experience.
[0044] In conjunction with the first aspect, in some implementations of the first aspect, the twelfth threshold is greater than the eleventh threshold. This implies that a better Wi-Fi signal quality is needed in mobile situations to ensure a good user experience. Setting different thresholds makes the judgment conditions more flexible and user-friendly, which is more conducive to optimizing the user experience.
[0045] In conjunction with the first aspect, in certain implementations of the first aspect, when the electronic device is in the exit target suppression scenario, the electronic device cancels the suppression of the WIFI network, including: when the electronic device is in the exit target suppression scenario and meets a second condition, the electronic device cancels the suppression of the WIFI network; the second condition includes any one or more of the following: the electronic device is in a screen-off state (which can be understood as the user is temporarily not using the electronic device, and canceling the WIFI network suppression at this time has little impact on the user experience); the application running in the foreground of the electronic device is the system desktop (which can also be understood as the user is temporarily not using the electronic device, and canceling the WIFI network suppression at this time has little impact on the user experience); the WIFI network signal quality of the electronic device is greater than or equal to the thirteenth threshold (which can be understood as the WIFI network signal quality is greater than or equal to the thirteenth threshold). (If the quality is good, even if the WIFI network suppression is canceled, the user can still have a smooth network); or, the sum of the votes of all voting bits in the electronic device is zero (which can be understood as the electronic device not having a target suppression scenario); wherein, the voting bits include a first voting bit, a second voting bit, and a third voting bit; the first voting bit is set to a non-zero value when the electronic device is in the elevator suppression scenario, and to a zero value when the electronic device is exiting the elevator suppression scenario; the second voting bit is set to a non-zero value when the electronic device is in the private LAN suppression scenario, and to a zero value when the electronic device is exiting the private LAN suppression scenario; the first voting bit is set to a non-zero value when the electronic device is in the network sensitive application suppression scenario, and to a zero value when the electronic device is exiting the network sensitive application suppression scenario.
[0046] In conjunction with the first aspect, in some implementations of the first aspect, the method further includes: when the electronic device meets the third condition, the electronic device cancels the suppression of WIFI Internet access; the third condition can be understood as the condition corresponding to the protection mechanism described above, and the priority of the third condition can be higher than the second condition, that is, once the electronic device meets the third condition, regardless of whether it meets the second condition, it can cancel the suppression of WIFI Internet access.
[0047] The third condition includes one or more of the following:
[0048] The electronic device responds to a user's action of turning off the cellular network. This can be understood as the user manually choosing not to use the cellular network, thus the suppression of Wi-Fi access should be lifted under any circumstances.
[0049] The electronic device responds to a user's action by turning off the Wi-Fi network. Thus, Wi-Fi cannot connect, and there is no need to suppress Wi-Fi access.
[0050] The electronic device's Wi-Fi network connection is disconnected. Therefore, there is no need to suppress Wi-Fi access.
[0051] The electronic device activates flight mode in response to user input. Internet access is disabled in flight mode, thus eliminating the need to suppress Wi-Fi connectivity.
[0052] The electronic device responds to a user operation by turning off the first switch; when the first switch is on, the electronic device is allowed to suppress Wi-Fi access. The first switch can be understood as the network acceleration switch described above. The electronic device only executes the Wi-Fi suppression process provided in this application embodiment when the switch is on. If the user turns off the switch, Wi-Fi access will no longer be suppressed.
[0053] The cellular network signal quality of the electronic device is less than or equal to the fourteenth threshold. This indicates that the cellular network signal quality is poor, possibly inferior to the current Wi-Fi network signal, so there is no need to continue suppressing Wi-Fi access.
[0054] The cellular network bandwidth of the electronic device is less than or equal to the fifteenth threshold. This indicates insufficient cellular bandwidth, and continuing to suppress Wi-Fi access may incur cellular charges for the user; therefore, the suppression of Wi-Fi access should be lifted.
[0055] The fourth timer times out; the fourth timer starts when the sum of the votes for all voting bits in the electronic device is greater than zero. The fourth timer is used to set the maximum duration for which Wi-Fi internet access is suppressed. This helps to limit the duration for which Wi-Fi internet access is suppressed by the electronic device to a reasonable range, helps to avoid Wi-Fi being suppressed for too long in an unnecessarily long time, and helps to improve the user experience.
[0056] In conjunction with the first aspect, in some implementations of the first aspect, the electronic device includes a first module, a second module, a third module, a fourth module, a fifth module, a sixth module, and a seventh module. The first module is used to manage the network connection of the electronic device. The second module is used to notify the third module of the network connection status of the electronic device. The third module is used to obtain a scenario judgment result from one or more of the fourth module, the fifth module, or the sixth module. The fourth module is used to determine whether the electronic device is in an elevator suppression scenario. The fifth module is used to determine whether the electronic device is in a private local area network suppression scenario. The sixth module is used to determine whether the electronic device is in a network sensitive application suppression scenario. The seventh module is used to determine whether the electronic device meets a first condition, where the first condition is the condition of suppressing Wi-Fi internet access. The electronic device connecting to a Wi-Fi network includes: the first module connecting to the Wi-Fi network. The method further includes: the second module obtaining a WIFI connection notification from the first module and transmitting the WIFI connection notification to the third module; the electronic device being in a target suppression scenario includes: the third module, upon receiving the WIFI connection notification, obtaining a scenario judgment result from one or more of the fourth, fifth, or sixth modules, the scenario judgment result including the target suppression scenario; suppressing the electronic device from accessing the internet via WIFI includes: the third module issuing an instruction to the seventh module to suppress WIFI access; the seventh module, upon determining that the electronic device meets the first condition, instructing the first module to deduct points from the WIFI network card; the first module deducting points from the WIFI network card so that the score of the WIFI network card is less than the score of the cellular network card, and setting the cellular network card as the network card used by the electronic device for accessing the internet.
[0057] In conjunction with the first aspect, in some implementations of the first aspect, the fourth module is further used to determine whether the electronic device is in an elevator suppression scenario, the fifth module is further used to determine whether the electronic device is in a dedicated local area network suppression scenario, the sixth module is further used to determine whether the electronic device is in a network sensitive application suppression scenario, and the seventh module is further used to determine whether the electronic device meets a second condition, the second condition being the condition for canceling the suppression of WIFI internet access; the electronic device being in an exit target suppression scenario includes: the third module obtaining a scenario judgment result from one or more of the fourth module, the fifth module, or the sixth module, the scenario judgment result including the exit target suppression scenario; the electronic device canceling the suppression of WIFI internet access includes: the third module issuing an instruction to the seventh module to cancel the suppression of WIFI internet access; the seventh module, upon determining that the electronic device meets the second condition, instructing the first module to add points to the WIFI network card; the first module adding points to the WIFI network card, such that the score of the WIFI network card is greater than the score of the cellular network card, and setting the WIFI network card as the network card used by the electronic device for internet access.
[0058] Secondly, embodiments of this application provide an internet access device, which can be an electronic device, or a chip or chip system within an electronic device. When the internet access device is an electronic device, the processing unit can be a processor. The internet access device may further include a storage unit, which can be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to cause the electronic device to implement an internet access method described in the first aspect or any possible implementation of the first aspect. When the internet access device is a chip or chip system within an electronic device, the processing unit can be a processor. The processing unit executes the instructions stored in the storage unit to cause the electronic device to implement an internet access method described in the first aspect or any possible implementation of the first aspect. The storage unit can be a storage unit within the chip (e.g., a register, cache, etc.), or a storage unit located outside the chip within the electronic device (e.g., a read-only memory, random access memory, etc.).
[0059] Thirdly, embodiments of this application provide an electronic device including one or more processors and a memory, the memory being coupled to one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, and one or more processors calling the computer instructions to cause the electronic device to perform the methods described in the first aspect or any possible implementation of the first aspect.
[0060] Fourthly, embodiments of this application provide a computer-readable storage medium, which includes a computer program or instructions that, when executed on a computer, cause the computer to perform the methods described in the first aspect or any possible implementation thereof.
[0061] Fifthly, embodiments of this application provide a computer program product, which includes computer program code. When the computer program code is run on a computer, it causes the computer to perform the methods described in the first aspect or any possible implementation of the first aspect.
[0062] Sixthly, this application provides a chip or chip system including one or more processors and a communication interface. The communication interface and the one or more processors are interconnected via a circuit. The one or more processors are used to run computer programs or instructions to perform the methods described in the first aspect or any possible implementation of the first aspect. The communication interface in the chip can be an input / output interface, pins, or circuits, etc.
[0063] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).
[0064] It should be understood that the second to sixth aspects of this application correspond to the technical solutions of the first aspect of this application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0065] Figure 1 This is a schematic diagram of a problem scenario provided in an embodiment of this application;
[0066] Figure 2 This is a schematic diagram illustrating another problem scenario provided by an embodiment of this application;
[0067] Figure 3 This is a schematic diagram illustrating yet another problem scenario provided in the embodiments of this application;
[0068] Figure 4 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0069] Figure 5 A schematic flowchart illustrating an internet access method provided in an embodiment of this application;
[0070] Figure 6This application provides a schematic diagram of an elevator suppression scenario and the process of exiting the elevator suppression scenario.
[0071] Figure 7 This application provides a schematic diagram illustrating a dedicated local area network (DLAN) suppression scenario and the process of exiting the DLAN suppression scenario.
[0072] Figure 8 This application provides a schematic diagram illustrating a network-sensitive application suppression scenario and the process of exiting the network-sensitive application suppression scenario.
[0073] Figure 9 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of this application;
[0074] Figure 10 This is a schematic diagram of a chip structure provided in an embodiment of this application. Detailed Implementation
[0075] To facilitate a clear description of the technical solutions in the embodiments of this application, some terms and technologies involved in the embodiments of this application will be briefly introduced below:
[0076] 1. Wireless Fidelity (WIFI)
[0077] WiFi is a wireless local area network (WLAN) communication technology based on the IEEE 802.11 standard, certified and promoted by the WiFi Alliance. It enables devices to connect to the internet via radio waves without the need for physical cabling. Its core function is to convert wired network signals into wireless signals, allowing mobile phones, computers, and other terminals to freely access the internet within the coverage area.
[0078] 2. Cellular network
[0079] Also known as mobile network, cellular mobile network, mobile data, cellular data, etc. The core of a cellular network is dividing a large area into multiple small communication areas (called "cells"), each controlled by a base station. The base station communicates with mobile devices (such as mobile phones, tablets, laptops, etc.) via radio signals. When a mobile device enters a cell, it automatically connects to the base station of that cell to transmit voice, data, and other information.
[0080] It should be understood that cellular networks are typically provided by the operator associated with the Subscriber Identity Module (SIM).
[0081] 3. Portal Authentication Network
[0082] Portal authentication for Wi-Fi (also known as Captive Portal authentication) is a common method of network access, typically used in public places such as coffee shops, airports, and hotels to provide Wi-Fi service. When a user connects to a Wi-Fi network, they are redirected to a login page (i.e., the Portal page), where they need to enter credentials (such as a username and password) or accept the terms of service to access the internet.
[0083] In some implementations, the portal authentication network can typically be a dedicated local area network for enterprises, schools, etc.
[0084] 4. Extensible Authentication Protocol (EAP) Encryption
[0085] EAP encryption is a framework protocol for network authentication, widely used in wireless networks (such as Wi-Fi), wired networks, and other network environments requiring authentication. EAP encryption is typically used for encryption in dedicated local area networks (LANs) such as those in enterprises and schools.
[0086] 5. Other terms
[0087] In the embodiments of this application, terms such as "first" and "second" are used to distinguish identical or similar items with substantially the same function and purpose. For example, "first chip" and "second chip" are used only to distinguish different chips and do not limit their order of execution. Those skilled in the art will understand that terms such as "first" and "second" do not limit the quantity or execution order, and that "first" and "second" do not necessarily imply that they are different.
[0088] It should be noted that, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design scheme described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.
[0089] In this application embodiment, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0090] 6. Electronic equipment
[0091] The electronic devices in this application embodiment may include handheld devices, vehicle-mounted devices, etc., that have WIFI and cellular network functions. For example, some electronic devices include: mobile phones, tablets, PDAs, laptops, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, in-vehicle devices, wearable devices, electronic devices in 5G networks, or future evolution of public land mobile communication networks. The embodiments of this application do not limit the scope of electronic devices in a network (PLMN).
[0092] By way of example and not limitation, in this embodiment, the electronic device can also be a wearable device. Wearable devices, also known as wearable smart devices, are a general term for devices that utilize wearable technology to intelligently design and develop everyday wearables, such as glasses, gloves, watches, clothing, and shoes. Wearable devices are portable devices that are worn directly on the body or integrated into the user's clothing or accessories. Wearable devices are not merely hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are feature-rich, large in size, and can achieve complete or partial functions without relying on a smartphone, such as smartwatches or smart glasses, as well as those that focus on a specific type of application function and require the use of other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.
[0093] Furthermore, in this application embodiment, the electronic device can also be an electronic device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.
[0094] The electronic device in this application embodiment may also be referred to as: electronic device, user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication equipment, user agent, or user device, etc.
[0095] In this embodiment, the electronic device includes a hardware layer, an operating system layer running on top of the hardware layer, and an application layer running on the operating system layer. The hardware layer includes hardware such as a central processing unit (CPU), a memory management unit (MMU), and main memory. The operating system can be any one or more computer operating systems that implement business processing through processes, such as Linux, Unix, Android, iOS, or Windows. The application layer includes applications such as browsers, address books, word processing software, and instant messaging software.
[0096] Electronic devices typically support Wireless Fidelity (WIFI) and cellular network capabilities, allowing them to access the network.
[0097] It should be understood that Wi-Fi networks are usually free or much cheaper than mobile data plans, and their transmission speeds are generally higher than 4G / 5G mobile data. Therefore, in some scenarios covered by Wi-Fi, users usually prefer to use Wi-Fi networks to save money or obtain higher transmission speeds. If a user leaves the Wi-Fi coverage area, the electronic device can switch to the cellular network, or when the user re-enters the Wi-Fi coverage area, the electronic device can switch back to the Wi-Fi network.
[0098] Figure 1 An example is shown of a possible scenario, in Figure 1 In the scenario shown, each floor of the building where the user is located has Wi-Fi coverage. The user, carrying electronic device 101, takes the elevator from the 14th floor to the 1st floor. Before entering the elevator on the 14th floor, electronic device 101 is connected to Wi-Fi. After entering the elevator on the 14th floor and during the elevator's downward movement, the network quality of the electronic device is poor due to the enclosed space of the elevator or the potentially weak Wi-Fi signal between floors. However, in some implementations, indoor cellular base stations are installed in the elevator. The cellular signal inside the enclosed elevator may be better than the Wi-Fi signal. The electronic device can immediately connect to the cellular network and use it to access the internet after detecting that it has entered the elevator, thus maintaining network connectivity. Furthermore, as the elevator continues downward to the 7th floor, one possible scenario is that the elevator stops on the 7th floor, the elevator door opens, but the user does not exit the elevator. If the elevator stops on the 7th floor and / or the elevator door is open, the electronic device detects that the Wi-Fi signal has been restored. In some implementations, the electronic device can switch back to the Wi-Fi network to save on cellular costs. However, since the user's destination is the 1st floor, and the user did not exit the elevator when they reached the 7th floor, the Wi-Fi signal in the elevator may still be weak as the user continues to descend from the 7th floor. In some implementations, electronic devices may not recognize this scenario and will not immediately switch to the cellular network again. What may happen is that the electronic device connects to the cellular network only after the Wi-Fi signal is so weak that it disconnects, and then reconnects to the Wi-Fi when the user reaches the 1st floor and the Wi-Fi signal quality is good. This means that during the process of going from the 7th floor to the 1st floor, the user may be connected to a Wi-Fi environment with poor signal quality for a period of time, making it difficult to have a smooth network experience.
[0099] Figure 2An exemplary scenario illustrates another possible scenario where all buildings have Wi-Fi coverage, and the Wi-Fi coverage extends to a certain outdoor area of each building. In some implementations, users can connect to the Wi-Fi in various buildings using the same username and password. For example... Figure 2 As shown, a user wants to travel from building 1 to building 4, passing through buildings 2 and 3 along the way. While in building 1, the user's electronic device 101 connects to the building's Wi-Fi. When the user leaves the Wi-Fi coverage area of building 1, the Wi-Fi connection drops. However, when the user passes through building 2, they may be within the building's Wi-Fi coverage area, allowing the electronic device to connect. But since the user hasn't entered building 2, they may be at the edge of the coverage area, resulting in a weak Wi-Fi signal and poor network quality. The user continues moving, and upon leaving the building's coverage area, the Wi-Fi connection drops again. The user may then pass through building 3, where the electronic device may reconnect to the Wi-Fi, again experiencing poor network conditions due to being at the edge of the coverage area. Subsequently, the user leaves the building's coverage area again, and the electronic device disconnects again until entering the building's Wi-Fi coverage area. As the user moves from the edge of building 4 into the building, the Wi-Fi signal gradually improves.
[0100] In some implementations, when a user moves between buildings, if the electronic device's Wi-Fi connection drops, it can connect to the cellular network to maintain connectivity, reconnecting when it re-enters the Wi-Fi coverage area. However, on the one hand, the process of switching between Wi-Fi and cellular networks may involve switching the electronic device's Internet Protocol Address (IP address). During this process, address conflicts or lease renewal delays may cause brief network outages, leading to perceived network lag or latency and a poor user experience. On the other hand, in... Figure 2 In the scenario shown, when a user is near the edge of a building's Wi-Fi coverage area, even if the electronic device is connected to the Wi-Fi network, the Wi-Fi signal at the edge is poor, making it difficult to provide the user with a smooth internet experience.
[0101] Figure 3 An example illustrates yet another possible scenario, in Figure 3 In the scenario shown, the user is using electronic device 101 for activities with high bandwidth and network latency requirements, such as audio / video calls or real-time multiplayer games. This application does not limit this scope. Figure 3 The example given is a user making an audio / video call using electronic device 101. Figure 3 As shown, the user makes audio and video calls using electronic device 101 while moving, such as Figure 3 In route 1 shown, as the user moves from a cellular network coverage area to a Wi-Fi coverage area, the electronic device 101 initially uses the cellular network. When the user reaches the edge of the Wi-Fi coverage area, the electronic device switches to the Wi-Fi network. However, due to network switching or poor Wi-Fi signal at the edge of the coverage area, the user may experience stuttering in audio and video calls. As the user moves deeper into the center of the Wi-Fi coverage area, the Wi-Fi signal stabilizes, and the call quality improves. Figure 3 As shown in Route 2, the electronic device 101 initially uses the cellular network. When the user reaches the edge of the WIFI coverage area, the electronic device switches to the WIFI network. However, due to network switching or poor WIFI signal at the edge of the WIFI coverage area, the user may experience lag in audio and video calls. Then, the user leaves the WIFI coverage area, the WIFI connection is lost, and the electronic device switches back to the cellular network. The frequent switching of networks may cause the user to experience lag again.
[0102] comprehensive Figures 1-3 As can be seen from the scenario shown, if an electronic device switches from cellular network to Wi-Fi network when the user stays in a Wi-Fi coverage area for a short period of time, or at the edge of the Wi-Fi coverage area, the user's network experience may be poor due to issues such as network switching and Wi-Fi signal quality.
[0103] In view of this, embodiments of this application provide an internet access method, electronic device, chip system, storage medium, and program product that can suppress the electronic device from using WIFI to access the internet in scenarios where the signal quality of the WIFI network is worse than that of the cellular network (which can be understood as the target suppression scenario described below), so that the electronic device still uses the cellular network to access the internet, thereby maintaining the network stability of the electronic device in this specific scenario and improving the user's internet experience.
[0104] Specific scenarios could be, for example, those described above. Figures 1-3 This application applies to scenarios with poor WIFI signal quality, but does not specifically limit this to such scenarios.
[0105] To facilitate understanding of this application, the software structure of the electronic device involved in the embodiments of this application will first be described. It should be understood that the software system of the electronic device can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. Taking the layered architecture Android system as an example, its software structure can be divided into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0106] The target module involved in this application embodiment is mainly deployed in the application framework layer of the system software architecture and can interact with other modules besides the target module. For example, the modules that can interact with the target module mainly include: ConnectionService (CS) module, Artificial Intelligence (AI) module, sensor module, and setting module, etc.
[0107] The CS module can be used to manage the network connection of electronic devices, such as deciding whether the electronic device uses Wi-Fi or cellular data; the AI module, also known as the aware module, can perceive the user's environment and needs through the integration of sensor, network and user behavior data, such as perceiving application information and the scene in which the electronic device is located; the sensor module can perceive the motion state of electronic devices based on sensors; and the settings module can manage the various on / off states of electronic devices, such as the Wi-Fi on / off state and the cellular data on / off state.
[0108] In one possible implementation, the CS module can score the Wi-Fi and cellular networks connected to the electronic device. When the electronic device is connected to both Wi-Fi and cellular networks at the same time, the CS module can set the network card with the higher score as the default network card, and the electronic device will then use the default network card to access the Internet.
[0109] Figure 4 An exemplary illustration shows the structure of the target module of the electronic device in the application framework layer according to an embodiment of this application. For example... Figure 4 As shown, the target module can be divided into a framework layer, a decision layer, and an execution layer.
[0110] In some implementations, the framework layer modules are used to interact with modules outside the target module. This is achieved by listening to, actively querying, or calling system status and interfaces, and then converting these into internal events or interfaces, which are then provided to the decision-making and execution layers. The information exchanged between the target module's framework layer modules and modules outside the target module includes, but is not limited to: Wi-Fi and cellular information, sensor information, and smart elevator prediction information.
[0111] Optionally, the framework layer may include the following modules: module 1 for elevator scene detection based on interaction with the AI module. In this embodiment, the AI module can be used to detect whether the electronic device is in an elevator scene; module 2 for sensing whether the electronic device is moving based on interaction with the sensor module. Module 2 may also be called a Mobile Sensor Data Perception (MSDP) module. In this embodiment, the MDSP module may be used to sense whether the electronic device is in a moving scene, for example; module 3 for triggering decisions based on interaction with the CS module; and module 4 for monitoring the network switch (WIFI switch, cellular network switch) status of the electronic device.
[0112] Optionally, module 3 may include a WIFI type determination module, a network connection module, an application scenario perception module, etc.
[0113] In some implementations, the decision layer is responsible for identifying scenarios and selecting strategies to suppress Wi-Fi internet access. For example, taking an elevator scenario, when Wi-Fi reconnection occurs and the electronic device is in an elevator scenario, a module in the decision layer (such as module 5 described below) decides to issue a command to suppress CS from setting Wi-Fi as the default network card. If it detects that the device has exited the elevator scenario, the module can decide to issue a command to cancel the command to suppress CS from setting Wi-Fi as the default network card.
[0114] Optionally, the decision-making layer may include the following modules: elevator scene judgment module (corresponding to...) Figure 1 ), dedicated LAN scenario judgment module (corresponding Figure 2 ), and network sensitive application scenario judgment module (corresponding to Figure 3 Module 5, which decides whether to suppress Wi-Fi access, and module 6, which decides whether to switch Wi-Fi to cellular network (applied in...). Figure 1 The scene shown is from the 14th floor to the 7th floor. Figure 4 (Not shown in the image). Among them, the elevator scene judgment module, the dedicated local area network scene judgment module, and the network sensitive application scene judgment module are used to realize scene judgment. Module 5 can decide whether to suppress WIFI Internet access and whether to unsuppress WIFI Internet access based on the scene judgment results.
[0115] In some implementations, the execution layer provides and encapsulates an interface to suppress / unsuppress the CS setting of the WIFI as the default network card. Through this interface, the execution layer modules can notify the CS to set the WIFI network card to an unavailable state, allowing the CS and other applications to continue using the cellular network card for internet access, or notify the CS to set the WIFI network card to an available state to unsuppress WIFI internet access.
[0116] Optionally, the execution layer may include the following modules: module 7 for notifying the CS to switch from Wi-Fi to the cellular network (applied in...). Figure 1 The scene shown is from the 14th floor to the 7th floor. Figure 4 (Not shown in the image) Module 8, used to notify CS to suppress / unsuppress WIFI internet access.
[0117] It should be noted that the module names involved in the embodiments of this application can all be defined as other names, as long as they can achieve the function of each module, and no specific restrictions are placed on the module names.
[0118] Next, further, in combination Figure 5 The internet access method 500 provided in this application embodiment will be described in general. This method 500 can be applied to an electronic device, which includes... Figure 4 The software structure shown Figure 9 The hardware structure shown is not specifically limited in this application.
[0119] This method 500 can be understood as being executed by an electronic device, or implemented by various modules within the target module of the electronic device through internal interaction or interaction with modules outside the target module; this application does not specifically limit this. The interaction process between modules given below is merely exemplary and does not constitute a specific limitation on the embodiments of this application.
[0120] Method 500 includes the following steps:
[0121] S501, Get WIFI connection notification.
[0122] Optionally, the WIFI connection notification can be obtained from the CS module by the network connection module included in module 3 of the target module. The WIFI connection notification can be understood as including WIFI status information for time period 1, such as including one or more of the following: WIFI connection time, WIFI disconnection time, WIFI connection duration, or WIFI disconnection duration, etc.
[0123] In some implementations, a Wi-Fi connection notification can indicate that a Wi-Fi connection has been established. This could refer to the first Wi-Fi connection within a certain period of time, or to a reconnection after a Wi-Fi disconnection within a certain period of time. However, this application does not limit this to any particular implementation.
[0124] For example, a Wi-Fi connection can be understood as the Wi-Fi connection state being disconnected and then reconnected within time period 1, for example... Figure 1 The problem scenario shown in the figure Figure 1 The illustrated problem scenario refers to a situation where the Wi-Fi connection of electronic device 101 is lost during the journey from the 14th floor to the 7th floor, but reconnects when the elevator stops at the 7th floor; or, for example... Figure 2 The problem scenario shown in the figure Figure 2 The problem scenario described refers to the situation where the Wi-Fi connection of electronic device 101 disconnects after leaving the Wi-Fi coverage area of building 1 and reconnects after entering the Wi-Fi coverage area of building 2; or, for example, Figure 3 The problem scenario shown Figure 3 The problem scenario shown refers to Figure 3 The scenario shown in Route 1 or Route 2, where an electronic device enters the edge of the WIFI coverage area and a WIFI connection occurs.
[0125] S502, Obtain the scene judgment result.
[0126] Optionally, the scene judgment result can be obtained by module 5 in the target module from the elevator scene judgment module, the dedicated local area network scene judgment module, and the network sensitive application scene judgment module.
[0127] In some implementations, the scenario judgment result may include a suppressed scenario and a canceled suppressed scenario. The suppressed scenario includes one or more of the following: elevator suppression scenario, dedicated local area network suppression scenario, or network sensitive application suppression scenario. The canceled suppressed scenario includes one or more of the following: exiting elevator suppression scenario, exiting dedicated local area network suppression scenario, or exiting network sensitive application suppression scenario.
[0128] It is worth noting that the elevator suppression scenario can be understood as similar to... Figure 1 The problem scenario shown, the dedicated LAN suppression scenario, can be understood as similar to... Figure 2 The problem scenario shown, the network sensitive application suppression scenario, can be understood as similar to... Figure 3 The problem scenarios are as described, but this application does not specifically limit them.
[0129] The judgment conditions for the above scenario judgment results will be explained in detail below.
[0130] 1) Elevator suppression scenario, exiting elevator suppression scenario
[0131] The elevator scene determination module determines whether the current scene is an elevator suppression scene or exits the elevator suppression scene based on information obtained from the AI module and the sensor module.
[0132] In one possible implementation, if the AI module predicts that an electronic device is entering an enclosed elevator based on changes in elevator fence and Wi-Fi signal quality (e.g., the signal quality of the Wi-Fi currently connected to the electronic device decreases by more than a preset threshold over a period of time), and the sensor module predicts that the elevator is in motion based on gravity acceleration sensors, the elevator scene determination module determines the current scene to be an elevator suppression scene. That is, the conditions for determining an elevator suppression scene include: the electronic device entering the enclosed elevator and the elevator being in motion.
[0133] Optionally, the prediction result of the AI module can be actively notified to the elevator scene judgment module by the AI module through module 1, and the prediction result of the sensor module can also be actively notified to the elevator scene judgment module by the sensor module through the MSDP module, or the elevator scene judgment module can request the prediction result from both module 1 and the MSDP module. This application does not limit the method of obtaining the prediction result or the order in which the elevator scene judgment module obtains the two prediction results. In some implementations, it can be set that the prediction result is valid if the time difference between the elevator scene judgment module obtaining the two prediction results does not exceed a threshold of 1, otherwise it is discarded, but this application does not specifically limit this.
[0134] In one possible implementation, the judgment conditions for exiting the elevator suppression scenario include any one or more of the following ① to ③. When the above elevator suppression scenario occurs, the elevator scenario judgment module can consider the current scenario to belong to the exit elevator suppression scenario if the information obtained includes any one of the following.
[0135] ① The electronic device is stationary during time period 2 (assuming the electronic device is in an elevator scenario, the electronic device can also be understood as an elevator). The electronic device is not in a closed elevator during time period 2.
[0136] ② The movement amplitude of the electronic device within time period 2 does not exceed threshold 2 and the electronic device is not in a closed elevator within time period 2.
[0137] ③ Timer 1 times out. In one implementation, Timer 1 can be started when the elevator scene determination module determines that the elevator suppression scene has been entered, but this application does not specifically limit this. Timer 1 can be used to set the maximum duration for which the electronic device can be in the elevator suppression scene.
[0138] The moving or stationary state of the elevator can be obtained by the MSDP module from the sensor module or detected by the sensor module based on gravity acceleration sensors, etc. Whether the electronic device is in a closed elevator can be obtained by module 1 from the AI module or predicted by the AI module, but this application does not make specific limitations on this.
[0139] 2) Dedicated LAN suppression scenario, exiting dedicated LAN suppression scenario
[0140] Optionally, a private local area network may refer to a corporate network, a campus network, etc., but this application does not specifically limit this.
[0141] In some implementations, the dedicated LAN scenario determination module determines whether the current scenario is a dedicated LAN suppression scenario or exits the dedicated LAN suppression scenario based on information obtained from modules such as the WIFI type determination module, MSDP module, and network connection module.
[0142] In one possible implementation, the judgment conditions for a private LAN suppression scenario include the following ① and / or ②. If the information obtained by the private LAN scenario judgment module includes any of the following, the current scenario can be considered to include a private LAN suppression scenario.
[0143] ① The type of WIFI currently connected to the electronic device is a network type, the electronic device is in a mobile state, and the signal quality of the WIFI currently connected to the electronic device is less than or equal to the threshold 2.
[0144] ②The type of WIFI currently connected to the electronic device is a network type, the electronic device is in a mobile state, and the ratio of the connection duration of the WIFI currently connected to the electronic device within time period 3 to the total connection duration of the electronic device to WIFI does not exceed the threshold 3.
[0145] In one possible implementation, the electronic device can determine its Wi-Fi type as a network if it determines that the current Wi-Fi encryption type is Extensible Authentication Protocol (EAP), the access method is access via portal authentication, or multiple hotspots can access the same network using the same username and password.
[0146] In some implementations, if the ratio of the connection duration of the Wi-Fi currently connected to the electronic device within time period 3 to the total connection duration of the electronic device to the Wi-Fi does not exceed the threshold of 3, it can be understood that the Wi-Fi is not a commonly used Wi-Fi by the user.
[0147] Optionally, time period 3 may refer to a historical week preceding the current moment, but this application does not specifically limit this.
[0148] Optionally, the Wi-Fi currently connected to the electronic device and some Wi-Fi devices connected to the electronic device during time period 3 can be accessed through the same set of user plane and password (e.g., access methods for campus networks and enterprise networks). The total duration of the aforementioned electronic device's connection to Wi-Fi can refer to the total duration of the Wi-Fi that can be accessed using the same set of user plane and password (the same campus network / enterprise network) as the current Wi-Fi, but this application does not make specific limitations on this.
[0149] In one possible implementation, the conditions for exiting the private LAN suppression scenario include any one or more of the following ① to ④. When the above-mentioned private LAN suppression scenario occurs, the information obtained by the private LAN scenario judgment module includes any one of the following to determine that the current scenario includes exiting the private LAN suppression scenario.
[0150] ① If the electronic device remains stationary during time period 4, and the Wi-Fi signal quality connected to the electronic device during time period 4 is greater than or equal to threshold 4, then it can be assumed that the user is not moving and the Wi-Fi signal quality is good.
[0151] ② The ratio of the connection duration of the currently connected Wi-Fi network within time period 3 to the total connection duration of the electronic device is greater than or equal to threshold 3 (which can be understood as the current Wi-Fi being a frequently used Wi-Fi network), and the signal quality of the connected Wi-Fi networks within time period 5 is greater than or equal to threshold 5. Therefore, it can be considered that the user's current Wi-Fi network is a frequently used Wi-Fi network, the user is likely to stay there for an extended period, and the current Wi-Fi signal quality is good; thus, suppressing Wi-Fi access can be lifted.
[0152] ③ During time period 6, the electronic device remains in motion, and the Wi-Fi signal quality connected to the electronic device during time period 6 is greater than or equal to threshold 6. Therefore, it can be considered that although the user is still moving, the Wi-Fi signal quality is good and does not affect the user's use.
[0153] Optionally, the relationship between the above thresholds 4, 5 and 6 can be: threshold 6 > threshold 5 > threshold 4. This means that better WIFI signal quality is needed in mobile situations to ensure user experience, but this application does not make specific limitations on this.
[0154] Optionally, the durations of time periods 4, 5, and 6 can be the same or different. In some implementations, the durations of time periods 4, 5, and 6 can all be set to 10 seconds, but this application does not impose any specific limitations on this.
[0155] ④ Timer 2 timeout. In some implementations, Timer 2 is started when the Dedicated LAN Scene Judgment Module determines that the device has entered the Dedicated LAN Suppression Scene. It is used to set the maximum duration for which the electronic device can be in the Dedicated LAN Suppression Scene.
[0156] Optionally, the encryption type and access method of WIFI can be obtained from the CS module by the dedicated LAN scenario judgment module through the WIFI type judgment module; the mobile / stationary state of the electronic device can be obtained from the MSDP module by the dedicated LAN scenario judgment module and determined by the sensor module based on the sensor; the signal quality and connection duration of WIFI can be obtained from the network connection module by the dedicated LAN scenario judgment module, and the network connection module can obtain this information from the CS module.
[0157] 3) Scenarios for suppressing network-sensitive applications, and exiting scenarios for suppressing network-sensitive applications.
[0158] In some implementations, the network sensitive application scenario judgment module determines whether the current scenario is a network sensitive application suppression scenario or exits the network sensitive application suppression scenario based on information obtained from modules such as the application scenario perception module, MSDP module, and network connection module.
[0159] In one possible implementation, the judgment conditions for network sensitive application suppression scenarios include the following ① to ④, where ④ is an optional condition. The network sensitive application scenario judgment module can consider the current scenario to belong to the network sensitive application suppression scenario if it obtains the following information.
[0160] ① At least one network-sensitive application is running in the electronic device, and / or at least one network-sensitive application is in a target running state.
[0161] Network-sensitive applications can be understood as applications with high network quality requirements, such as applications that conduct audio and video calls over the network, or real-time battle games. The target running state can refer to, for example, an application that conducts audio and video calls over the network being in an audio and video call state, or a real-time battle game being in a battle state. This application does not limit the specific meaning of network-sensitive applications or target running states in its embodiments.
[0162] ②The electronic device is in motion.
[0163] ③ The quality of the WIFI signal currently connected to the electronic device is less than or equal to the threshold 7.
[0164] Optionally, the information obtained by the network sensitive application scenario judgment module may also include: ④ There are no applications running on the electronic device that consume more or less traffic than the threshold 8.
[0165] It should be understood that if the data consumption of an application running on an electronic device is greater than or equal to the threshold 8, it can be considered that the application is downloading and consuming a large amount of data. In order to avoid causing cellular charges to users, when there are applications on an electronic device that consume more than or equal to the threshold 8, Wi-Fi access may not be suppressed.
[0166] In one possible implementation, if the user's remaining cellular data allowance is greater than or equal to threshold 9, the network sensitive application scenario judgment module will judge any one of the above conditions ① to ④. A user's remaining cellular data allowance greater than or equal to threshold 9 can be understood as having sufficient remaining cellular data. If the network sensitive application suppression scenario is met and Wi-Fi access is suppressed, the user will have ample cellular data usage, which helps avoid incurring additional cellular charges.
[0167] In one possible implementation, the judgment conditions for exiting the network sensitive application suppression scenario include any one or more of the following ① to ⑤. When the above network sensitive application suppression scenario occurs, the network sensitive application scenario judgment module can consider the current scenario to belong to the exit network sensitive application suppression scenario if it obtains any of the following information.
[0168] ①The above-mentioned network-sensitive applications exit, or the target running state of the network-sensitive applications exits.
[0169] ② During time period 7, the electronic device remains stationary and the WIFI signal quality is greater than or equal to the threshold 10.
[0170] ③ During time period 8, the electronic device remains in a mobile state and the WIFI signal quality is greater than or equal to the threshold 11.
[0171] Optionally, the durations of time period 7 and time period 8 can be the same or different, and the threshold 11 can be greater than the threshold 10, but this application does not make any specific restrictions on these.
[0172] ④ Applications consuming data at or above the threshold of 8. To conserve cellular data, the restriction on Wi-Fi access can be lifted when applications consume data at or above the threshold of 8.
[0173] ⑤ Timer 3 times out. In some implementations, Timer 3 is started when the network sensitive application scenario judgment module determines that the device has entered a dedicated LAN suppression scenario. It is used to set the maximum duration for which the electronic device can be in the network sensitive application suppression scenario.
[0174] Optionally, the information such as whether at least one network-sensitive application is running / exiting, whether at least one network-sensitive application is in the target running state, and application traffic consumption can be obtained by the network-sensitive application scenario judgment module from the application scenario perception module; the mobile / stationary state of the electronic device can be obtained by the network-sensitive application scenario judgment module from the MSDP module; and the signal quality of WIFI can be obtained by the network-sensitive application scenario judgment module from the network connection module.
[0175] S503. Based on the WIFI connection notification and the scenario judgment result, determine whether there is a scenario that needs to suppress WIFI access; if there is a scenario that needs to suppress WIFI access, then execute S504; if not, then return or end the process.
[0176] In one possible implementation, when module 5 receives a WIFI connection notification, it obtains the scenario judgment result from the elevator scenario judgment module, the dedicated local area network scenario judgment module, and the network sensitive application scenario judgment module.
[0177] Optionally, if a WIFI connection notification is received and the scenario judgment result includes any one of the following scenarios: elevator suppression scenario, dedicated local area network suppression scenario, or network sensitive application suppression scenario, it can be understood that there is a scenario where WIFI internet access needs to be suppressed.
[0178] S504. Determine whether the scenario requiring suppression of WIFI access meets the conditions for suppressing WIFI access; if yes, execute S505; otherwise, return or end the process.
[0179] S505, suppress Wi-Fi internet access.
[0180] In some implementations, when module 5 determines that there is a scenario where internet access needs to be suppressed, module 5 can instruct module 8 to determine whether the scenario where internet access needs to be suppressed meets the conditions for suppressing internet access. If so, module 8 instructs CS to suppress internet access.
[0181] It should be understood that for each scenario requiring suppression of Wi-Fi access, module 8 can determine whether the conditions for suppressing Wi-Fi access are met when the scenario occurs. Optionally, the conditions for suppressing Wi-Fi access include: ① the electronic device is in screen-on state; ② the penalty timer is not started; ③ the cellular signal quality is greater than or equal to threshold 12; ④ the user's cellular data allowance is greater than or equal to threshold 9.
[0182] Optionally, the electronic device system can notify each module of the screen-on event, or module 8 can obtain the screen-on event through a common system interface; this application does not limit this.
[0183] It is worth noting that the penalty timer is activated when the electronic device detects that the user manually turns on the Wi-Fi switch and / or turns off the cellular switch, which can be understood as the user subjectively preferring to use Wi-Fi for internet access. Therefore, the failure of the penalty timer to activate can be interpreted as the user not expressing a preference for using Wi-Fi, and the logic of suppressing Wi-Fi access based on the embodiments of this application does not conflict with the user's wishes.
[0184] Optionally, this application embodiment manages the concurrent occurrence of multiple suppression scenarios through a "voting mechanism". Each suppression scenario can correspond to a voting bit. When the suppression scenario is a scenario that needs to suppress WIFI Internet access and meets the conditions for suppressing WIFI Internet access, the bit corresponding to the suppression scenario can be marked as 1 to indicate that the number of votes for the scenario is +1.
[0185] For example, if the elevator suppression scenario is determined to be a scenario requiring suppression of Wi-Fi access based on the Wi-Fi connection notification and the scenario judgment result, and the electronic device meets the aforementioned conditions for suppressing Wi-Fi access when the elevator suppression scenario occurs, then module 8 will mark the bit corresponding to the elevator suppression scenario as 1. The same applies to dedicated LAN suppression scenarios and network-sensitive application suppression scenarios, and will not be elaborated further.
[0186] In one possible implementation, if the sum of the votes for all voting bits is not zero, module 8 suppresses Wi-Fi internet access. Specifically, this can be understood as module 8 in the electronic device instructing the CS module to deduct points from the Wi-Fi network card so that the CS's score for Wi-Fi and cellular networks is lower than that for the cellular network card, and setting the cellular network card as the default network card, that is, the electronic device uses cellular internet access.
[0187] Furthermore, after a scenario arises where internet access needs to be suppressed, the electronic device continues to execute S506.
[0188] S506. Based on the scenario judgment result, determine whether there is a scenario that needs to cancel the suppression of WIFI access; if there is a scenario that needs to cancel the suppression of WIFI access, then execute S507; if not, then return or end the process.
[0189] In one possible implementation, when a scenario requires internet access to be suppressed, module 5 can periodically obtain a scenario judgment result from the elevator scenario judgment module, the dedicated local area network scenario judgment module, and the network sensitive application scenario judgment module; or, the elevator scenario judgment module, the dedicated local area network scenario judgment module, and the network sensitive application scenario judgment module can notify module 5 of the scenario judgment result in real time, but this application does not specifically limit this.
[0190] Optionally, if the scenario judgment result includes one or more of the following: exiting the elevator suppression scenario, exiting the dedicated local area network suppression scenario, or exiting the network sensitive application suppression scenario, it can be understood that there is a scenario where it is necessary to cancel the suppression of WIFI internet access.
[0191] S507. Determine whether the scenario requiring the removal of WIFI network access suppression meets the conditions for removing WIFI network access suppression; if yes, execute S508; otherwise, return or end the process.
[0192] S508, Remove the restriction on WIFI internet access.
[0193] In some implementations, when module 5 determines that there is a scenario where internet access needs to be unblocked, module 5 can instruct module 8 to determine whether the scenario where internet access needs to be unblocked meets the conditions for unblocking internet access. If so, module 8 instructs CS to unblock internet access.
[0194] It should be understood that for each scenario requiring the removal of Wi-Fi network access suppression, when that scenario occurs, the corresponding voting bit can be marked as 0, indicating the exit from the suppression scenario, and the number of votes for that scenario is 0. For example, when exiting the elevator suppression scenario, the electronic device can mark the corresponding voting bit as 0 to indicate that the number of votes for that scenario is 0. The same applies to exiting dedicated LAN suppression scenarios and exiting network-sensitive application suppression scenarios, and will not be elaborated further.
[0195] Furthermore, for each scenario requiring the removal of Wi-Fi network suppression, module 8 can determine whether the scenario meets the conditions for removing Wi-Fi network suppression when it occurs. Optionally, the conditions for removing Wi-Fi network suppression include any one or more of the following: ① The electronic device is in a screen-off state; ② The application running in the foreground of the electronic device is the system desktop; ③ The Wi-Fi signal quality is greater than or equal to the threshold 13; ④ The sum of the votes for all voting bits is 0.
[0196] In this embodiment, if the conditions for canceling the suppression of Wi-Fi access are met, the electronic device will cancel the suppression of Wi-Fi access. Specifically, this can be understood as module 8 in the electronic device instructing the CS module to add points to the Wi-Fi network card so that the CS's score for Wi-Fi and cellular networks is greater than that for the cellular network card, and the Wi-Fi network card is set as the default network card, that is, the electronic device uses Wi-Fi to access the internet.
[0197] In one possible implementation, the embodiments of this application set up a protection mechanism to suppress WIFI internet access. When the situation corresponding to the protection mechanism occurs, the electronic device immediately cancels the suppression of WIFI internet access.
[0198] Optionally, the protection mechanism corresponds to any one or more of the following situations: ① The user turns off the cellular network switch; ② The user turns off the WIFI switch or the WIFI connection is disconnected; ③ The user turns on airplane mode; ④ The user turns off the network acceleration switch; ⑤ The cellular signal quality is less than or equal to threshold 14; ⑥ The cellular data allowance is less than or equal to threshold 15; ⑦ Timer 4 times out.
[0199] It should be understood that the network acceleration switch is a switch item related to this application. When this switch is turned on, the electronic device can execute this application. Timer 4 is different from Timer 1, Timer 2 and Timer 3 mentioned above. The set duration of Timer 4 can be greater than the set duration of Timer 1, Timer 2 and Timer 3. Timer 4 can be turned on when the sum of the votes on the voting bits is greater than 0, and is used to set the maximum duration of suppressing WIFI Internet access.
[0200] Optionally, the set duration of timer 4 can be 50 minutes, and the set durations of timer 1, timer 2 and timer 3 can all be 30 minutes, but this application does not specifically limit this.
[0201] To further understand this application, the following will be combined with... Figure 4 The software modules in, and Figures 6-8 The judgment, entry, and exit of each suppression scenario involved in this application are described in detail.
[0202] Figure 6 An elevator suppression scenario and a process 600 for exiting the elevator suppression scenario are illustrated exemplarily. Process 600 may include the following steps:
[0203] S601, the network connection module transmits a WIFI connection notification to module 5.
[0204] Optionally, the WIFI connection notification may be obtained by the network connection module from the CS module.
[0205] In one possible implementation, module 5 executes S602 when the WIFI connection notification indicates a WIFI connection.
[0206] S602, Module 5 queries the elevator scene judgment module to see if the current scene is an elevator suppression scene. If yes, the elevator scene judgment module executes S603. If no, the process ends (or the process ends after the elevator scene judgment module returns a negative result to Module 5).
[0207] S603, the elevator scene judgment module returns the scene judgment result to module 5. The scene judgment result indicates that the current scene includes the elevator suppression scene.
[0208] For example, the elevator suppression scenario described in the embodiments of this application can be, for example, Figure 1 The image shows a scenario where the elevator connects to Wi-Fi when it stops on the 7th floor and the elevator doors open. However, as the elevator continues to descend, the Wi-Fi signal drops sharply but does not disconnect, and the connection to the cellular network remains. The purpose of this application is to identify this scenario and ensure that electronic devices, while connected to Wi-Fi, do not use Wi-Fi for internet access. In other words, the electronic devices continue to use cellular internet access, thus reducing the negative user experience caused by poor Wi-Fi signal quality due to the elevator doors closing and the elevator continuing its descent if the device were to switch to Wi-Fi. It should be noted that... Figure 1 The scenarios described are merely illustrative and do not constitute a specific limitation on the embodiments of this application.
[0209] It should be understood that before the elevator scene judgment module executes S603, steps S604 and S605 are also included.
[0210] S604, Module 1 transmits information 1 to the elevator scene judgment module, which instructs the electronic device to enter the enclosed elevator.
[0211] Optionally, the information 1 may be obtained by module 1 from the AI module, or it may be derived by module 1 from the elevator fence based on the prediction from the AI module. This application does not specifically limit this.
[0212] Optionally, S604 can be executed by module 1 after receiving information 1, or it can be executed by the elevator scene module after requesting it from module 1. This application does not make specific limitations on this.
[0213] The S605 and MSDP modules transmit information 2 to the elevator scene judgment module, which indicates that the elevator is in a moving state.
[0214] Optionally, this information 2 can be obtained by the MSDP module from the sensor module, or it can be predicted by the MSDP module based on data from the sensor module. This application does not specifically limit this. The elevator being in a moving state can include the elevator being in an upward state or a downward state.
[0215] Optionally, S605 can be executed proactively by the MSDP module after receiving information 2, or it can be executed after the elevator scene module requests it from the MSDP module. This application does not make specific limitations on this.
[0216] In one possible implementation, there may be a time difference between when the scene judgment module obtains information 1 and information 2. If the time difference does not exceed the threshold 1, the scene judgment module executes the above S603.
[0217] Optionally, in this embodiment of the application, the elevator scene judgment module can be implemented by an elevator scene judgment class, but this application does not specifically limit it.
[0218] Following S603 above, module 5 executes S606.
[0219] S606, Module 5 notifies Module 8 that there is a scenario in the current scene that requires suppressing WIFI internet access.
[0220] S607 and Module 8 determine whether the conditions for suppressing WIFI access are met. If yes, execute S608; otherwise, return.
[0221] The conditions for suppressing Wi-Fi access have been described above and will not be repeated here.
[0222] S608, Module 8 indicates that the CS module suppresses Wi-Fi internet access.
[0223] It should be understood that the CS module can be used to manage the network connectivity of electronic devices. After an electronic device connects to Wi-Fi, the CS module in the device scores the Wi-Fi network card. After the device connects to a cellular network, the CS module also scores the cellular network card. When both Wi-Fi and cellular networks are connected, the CS module sets the network card with the higher score in the Wi-Fi and cellular networks as the default network card, and the electronic device uses this default network card to access the internet.
[0224] It is worth noting that before scoring, the CS needs to detect the corresponding network card, such as identifying the network card type. The implementation process of this application embodiment can occur during the CS module's detection of the WIFI network card. This can be understood as interfering with the detection process of the WIFI network card, so that the score of the WIFI network card is less than that of the cellular network card. In this way, after the detection is completed, the CS still keeps the cellular network card as the default network card, and the electronic device can continue to use cellular to access the Internet.
[0225] In some implementations, the CS module scores network cards based on their type. For example, when the CS module detects a network card connection, it identifies its type at the initial connection stage. If the network card is a Wi-Fi card, it scores 80 points; if it is a cellular network card, it scores 60 points. The core idea is that Wi-Fi networks typically have good signal quality, high throughput, and do not incur user charges. Therefore, this scoring method tends to favor Wi-Fi when both Wi-Fi and cellular connections are available. However, in the elevator suppression scenario of this application embodiment, the Wi-Fi signal quality is not good, and such a scoring result may lead to a poor user experience. In this application embodiment, the instruction by module 8 in S608 to suppress Wi-Fi internet access can be understood as instructing CS to deduct points from the Wi-Fi network card, that is, to reduce the default score of the Wi-Fi network card to be less than the default score of the cellular network card. This way, the cellular network card can remain the default network card, thus suppressing Wi-Fi internet access.
[0226] Optionally, after the CS module suppresses Wi-Fi access, it can execute S609.
[0227] S609 and CS modules return the suppression results to module 8.
[0228] Thus, electronic devices have achieved the ability to maintain cellular internet access even in elevator-like environments.
[0229] Optionally, if the elevator scene determination module determines that the current scene includes an elevator suppression scene, the electronic device starts Timer 1 and enters the waiting phase to exit the elevator suppression scene. The function of Timer 1 has been described above and will not be repeated here.
[0230] Furthermore, the elevator continues to move, and S610 to S616 will now describe the implementation process of this application in the case of an elevator exit suppression scenario.
[0231] S610, the elevator scene judgment module notifies module 5 that the current scene includes exiting the elevator suppression scene.
[0232] S611, Module 5 notifies Module 8 that there is a scenario where it is necessary to cancel the suppression of WIFI internet access.
[0233] S612, Module 8 determines whether the conditions for canceling the suppression of WIFI access are met. If yes, then execute S613; otherwise, return.
[0234] The conditions for disabling Wi-Fi access restriction have been described above and will not be repeated here.
[0235] S613, Module 8 instructs the CS module to cancel the suppression of WIFI internet access.
[0236] "Cancel the suppression of Wi-Fi access" can be understood as the CS module canceling the deduction of points for the Wi-Fi network card, or the CS module adding points to the Wi-Fi network card. This makes it easier for the CS module to score the Wi-Fi network card higher than the cellular network card. Furthermore, the CS module sets the Wi-Fi network card with the higher score as the default network card, so that electronic devices can use the Wi-Fi network card to access the Internet.
[0237] For example, the exit elevator suppression scenario could be, for instance, Figure 1 The scenario shown is a user exiting the elevator after reaching the first floor of their destination. The purpose of this application is to identify this scenario and, before the electronic device reconnects to the WIFI and CS modules to complete the scoring of the WIFI network card, cancel the deduction of points for the WIFI network card in the previous process, or add points to the WIFI network card based on the previous WIFI network card score, so that the score of the WIFI network card is greater than the score of the cellular network card in this scenario.
[0238] certainly, Figure 1 The illustrated elevator exit suppression scenario is merely exemplary and does not constitute a specific limitation on the embodiments of this application. In one implementation, the user's WIFI connection may remain connected throughout the process of moving from the 7th floor to the 1st floor. If module 8 instructs the CS module to cancel the suppression of WIFI internet access, the CS module cancels the deduction of points for the WIFI network card in the previous process, or adds points to the WIFI network card based on the previous WIFI network card score, and updates the default network card to the WIFI network card with the higher current score.
[0239] Optionally, after S613, the CS module executes S614.
[0240] The S614 and CS modules return the suppression results.
[0241] Before S610, steps S615 and S616 are also included.
[0242] S615, Module 1 transmits information 3 to the elevator scene judgment module, which indicates that the electronic device is not in a closed elevator during time period 2.
[0243] S616, MSDP module transmits information 4 to elevator scene judgment module, which indicates that the elevator is stationary or the operating range of electronic equipment within time period 2 does not exceed threshold 2.
[0244] The conditions for the elevator scene determination module to determine whether the current scene belongs to the elevator exit suppression scene have been described above and will not be elaborated here. The elevator scene module can determine that the current scene includes the elevator exit suppression scene based on any one or more of the timing status of information 3, information 4, or timer 1, as well as the above-mentioned conditions for determining whether the elevator exit suppression scene belongs to the elevator exit suppression scene, and then execute S610.
[0245] Figure 7 An exemplary procedure 700 for a private local area network (LAN) suppression scenario and exiting the LAN suppression scenario is illustrated. Procedure 700 may include the following steps:
[0246] S701, the network connection module transmits the WIFI connection notification to module 5.
[0247] When the WIFI connection notification indicates that a WIFI connection is established, module 5 executes S702.
[0248] S702, Module 5 queries the Dedicated LAN Scene Judgment Module to check if the current situation is a Dedicated LAN Suppression Scene. If yes, the Dedicated LAN Scene Judgment Module executes S703; otherwise, the process ends.
[0249] S703, the dedicated local area network scene judgment module returns the scene judgment result to module 5. The scene judgment result indicates that the current scene includes the dedicated local area network suppression scene.
[0250] For example, the dedicated local area network suppression scenario described in the embodiments of this application can be, for example, Figure 2 The scenario shown illustrates where, during a user's journey from building 1 to building 2, electronic device 101 disconnects from the Wi-Fi in building 1 and uses cellular internet, then reconnects to the Wi-Fi in building 2 after entering the edge of the Wi-Fi coverage area. Alternatively, it could be... Figure 2 The illustration shows similar scenarios such as a user moving from floor 2 to floor 3, or from floor 3 to floor 4. Taking a user moving from floor 1 to floor 2 as an example, when the user passes by floor 2, the electronic device 101 connects to the WIFI of floor 2. However, due to the poor WIFI signal quality at the edge of the WIFI coverage area, the user experience is poor. Therefore, the purpose of this application embodiment is to identify such scenarios and suppress WIFI access while maintaining cellular access in such scenarios to improve the user experience.
[0251] Optionally, in this embodiment of the application, the dedicated local area network scenario judgment module can be implemented by a dedicated local area network scenario judgment class, but this application does not specifically limit it.
[0252] Before the dedicated LAN scenario judgment module executes S703, it also includes S704 and S705.
[0253] S704, the dedicated local area network scenario judgment module obtains information 5, which includes: the current WIFI type (encryption method / authentication method), the current WIFI signal quality, the current WIFI connection duration within time period 3, and the total duration of the electronic device's connection to WIFI.
[0254] Optionally, information 5 may be obtained by the dedicated local area network scenario judgment module from the network connection module. This process may be implemented based on the interaction between the WIFI historical information query class and the WIFI information database, but this application does not make specific limitations on this.
[0255] The S705 and MSDP modules transmit information 6 to the dedicated LAN scene judgment module, which indicates that the electronic device is in a mobile state.
[0256] In one possible implementation, the dedicated LAN scenario judgment module, based on information 5, information 6, and the dedicated LAN suppression scenario judgment conditions described above, executes S703 if it determines that the information obtained by the dedicated LAN scenario judgment module satisfies any one of the above-mentioned dedicated LAN suppression scenario judgment conditions.
[0257] Furthermore, process 700 also includes the following steps:
[0258] S706, Module 5 notifies Module 8 that there is a scenario in the current scene that requires suppressing WIFI internet access.
[0259] S707 and Module 8 determine whether the conditions for suppressing WIFI access are met. If yes, execute S608; otherwise, return.
[0260] S708, Module 8 indicates that the CS module suppresses Wi-Fi internet access.
[0261] Optionally, after the CS module suppresses Wi-Fi access, it can execute S709.
[0262] S709 and CS modules return the suppression results to module 8.
[0263] The implementation process of S706 to S709 is similar to that of S606 to S609 above, and will not be described again.
[0264] Thus, electronic devices have been able to maintain cellular internet access even in scenarios where a dedicated local area network is restricted.
[0265] Optionally, if the dedicated LAN scenario determination module determines that the current scenario includes a dedicated LAN suppression scenario, the electronic device starts timer 2 and enters the process of waiting to exit the dedicated LAN suppression scenario. The function of timer 2 has been described above and will not be repeated here.
[0266] S710 to S716 then describe the determination of the exit from the private local area network suppression scenario and the implementation process of this application under this scenario.
[0267] S710, the dedicated local area network scenario judgment module obtains information 7, which may include: the current WIFI signal quality, the current WIFI connection duration in time period 3, the total duration of the electronic device connected to WIFI, and the current WIFI signal quality in time periods 4, 5, and 6.
[0268] S711, the dedicated local area network scene judgment module obtains information 8, information 8 indicates the time period during which the electronic device is in a moving state, and / or indicates the time period during which the electronic device is in a stationary state.
[0269] Optionally, the dedicated LAN judgment module can acquire information 7 and information 8 in real time (e.g., once every 1 second), or the network connection module can notify the dedicated LAN scenario judgment module of information 7 in real time, and the MSDP module can notify the dedicated LAN scenario judgment module of information 8 in real time. This application does not make specific limitations in this regard.
[0270] In one possible implementation, the dedicated LAN scenario judgment module, based on information 7, information 8, the timing of timer 2, and the judgment conditions for exiting the dedicated LAN suppression scenario described above, executes S712 if it determines that the information obtained by the dedicated LAN scenario judgment module satisfies any one of the judgment conditions for exiting the dedicated LAN suppression scenario.
[0271] S712, the dedicated LAN scenario judgment module notifies module 5 that the current scenario includes the exit from the dedicated LAN suppression scenario.
[0272] For example, exiting a private LAN suppression scenario could be, for instance, Figure 2 The scenario shown depicts a user entering the WIFI coverage area of Building 4 and moving from the edge of the WIFI coverage area to the center of the WIFI coverage area. In this scenario, the WIFI signal quality is good. In this scenario, removing the suppression of WIFI access is beneficial to saving users' cellular data charges and bringing users a better internet experience.
[0273] S713, Module 5 notifies Module 8 that there is a scenario where it is necessary to unblock the suppression of WIFI internet access.
[0274] S714, Module 8 determines whether the conditions for canceling the suppression of WIFI access are met. If yes, then execute S715; otherwise, return.
[0275] The conditions for disabling Wi-Fi access restriction have been described above and will not be repeated here.
[0276] S715, Module 8 instructs the CS module to cancel the suppression of WIFI internet access.
[0277] Optionally, after S715, the CS module executes S716.
[0278] The S716 and CS modules return the suppression results.
[0279] The implementation process of S713 to S716 is similar to that of S611 to S614, and will not be described again.
[0280] Figure 8 An exemplary illustration is provided of a network-sensitive application suppression scenario and the process of exiting the network-sensitive application suppression scenario 800.
[0281] Process 800 may include the following steps:
[0282] S801, the network connection module transmits the WIFI connection notification to module 5.
[0283] When the WIFI connection notification indicates that a WIFI connection is established, module 5 executes S802.
[0284] S802, Module 5 queries the Network Sensitive Application Scenario Judgment Module to see if the current scenario is a network sensitive application suppression scenario. If yes, the Network Sensitive Application Scenario Judgment Module executes S803; otherwise, the process ends.
[0285] S803, the network sensitive application scenario judgment module returns the scenario judgment result to module 5. The scenario judgment result indicates that the current scenario includes the network sensitive application suppression scenario.
[0286] For example, a scenario for suppressing network-sensitive applications could be... Figure 3 The illustration depicts a scenario where a user reaches the edge of Wi-Fi coverage, connects to Wi-Fi but experiences a weak signal. The purpose of this application is to identify this scenario and enable electronic devices to connect to Wi-Fi but not use it for internet access, thus continuing to use cellular data. This reduces the impact of network signal quality fluctuations on network-sensitive applications and improves the user experience.
[0287] Optionally, in this embodiment of the application, the network sensitive application scenario judgment module can be implemented by a network sensitive application scenario judgment class, but this application does not specifically limit it.
[0288] It should be understood that before the elevator scene judgment module executes S803, steps S804 and S805 are also included.
[0289] S804, the application scenario perception module transmits information 9 to the network sensitive application scenario judgment module. Information 9 indicates that at least one network sensitive application is running in the electronic device, and / or that at least one network sensitive application is in the target running state.
[0290] The S805 and MSDP modules transmit information 10 to the network sensitive application scenario judgment module, which indicates that the electronic device is in a mobile state.
[0291] S806, the network connection module transmits information 11 to the network sensitive application scenario judgment module, which indicates the current signal quality of WIFI.
[0292] In one possible implementation, the network sensitive application scenario judgment module, based on information 9, information 10, information 11 and the judgment conditions of the aforementioned network sensitive application suppression scenario, executes the aforementioned S803 when it is determined that the information obtained by the network sensitive application scenario judgment module meets the judgment conditions of the aforementioned network sensitive application suppression scenario.
[0293] Furthermore, process 800 also includes the following steps:
[0294] S807, Module 5 notifies Module 8 that there is a scenario in the current scene that requires suppressing WIFI internet access.
[0295] S808 and module 8 determine whether the conditions for suppressing WIFI access are met. If yes, execute S809; otherwise, return.
[0296] S809, Module 8 indicates that the CS module suppresses Wi-Fi internet access.
[0297] Optionally, after the CS module suppresses Wi-Fi access, it can execute S810.
[0298] The S810 and CS modules return the suppression results to module 8.
[0299] The implementation process of S807 to S810 is similar to that of S606 to S609 and S706 to S709 mentioned above, and will not be described again.
[0300] Thus, electronic devices can maintain cellular internet access even when network-sensitive applications are suppressed.
[0301] Optionally, if the network sensitive application scenario judgment module determines that the current scenario includes a network sensitive application suppression scenario, the electronic device starts timer 3 and enters the process of waiting for the network sensitive application suppression scenario to appear. The function of timer 3 has been described above and will not be repeated here.
[0302] Next, S811 to S818 describe the judgment of the scenario of suppressing the exit of network sensitive applications and the implementation process of this application in this scenario.
[0303] S811, the application scenario perception module transmits information 12 to the network sensitive application scenario judgment module. The information 12 indicates one or more of the following: the traffic consumption of each application running in the electronic device, the exit of all network sensitive applications in the electronic device, or the exit of all network sensitive applications from the target running state.
[0304] The S812 and MSDP modules transmit information 13 to the network sensitive application scenario judgment module. This information 13 indicates the real-time status (movement / stationary) of the electronic device.
[0305] S813, the network connection module transmits information 14 to the network sensitive application scenario judgment module, which indicates the real-time signal quality of the current WIFI.
[0306] In one possible implementation, the network sensitive application scenario judgment module executes S814 if it determines that the information obtained by the network sensitive application scenario judgment module satisfies any one of the above-mentioned judgment conditions for exiting the network sensitive application suppression scenario, based on the timing status of information 12, information 13, information 14, and timer 3, as well as the judgment conditions for exiting the network sensitive application suppression scenario.
[0307] S814, The network sensitive application scenario judgment module notifies module 5 that the current scenario includes the exit network sensitive application suppression scenario.
[0308] For example, exiting network-sensitive application suppression scenarios may include, for instance, scenarios where network-sensitive applications are suppressed. Figure 3 Route 1 illustrates a scenario where a user enters the center of a WIFI coverage area. In this scenario, the WIFI signal quality is good. In this scenario, removing the suppression of WIFI access helps save on cellular data charges and provides users with a better internet experience.
[0309] S815, Module 5 notifies Module 8 that there is a scenario where it is necessary to unblock WIFI internet access.
[0310] S816, Module 8 determines whether the conditions for canceling the suppression of WIFI access are met. If yes, then execute S817; otherwise, return.
[0311] The conditions for disabling Wi-Fi access restriction have been described above and will not be repeated here.
[0312] S817, Module 8 instructs the CS module to cancel the suppression of WIFI internet access.
[0313] Optionally, after S817, the CS module executes S818.
[0314] The S818 and CS modules return the suppression results.
[0315] The implementation process of S815 to S818 is similar to that of S611 to S614 and S713 to S716, and will not be described again.
[0316] Optionally, the judgment on whether the suppression / cancellation of WIFI Internet access is satisfied and the execution of suppression / cancellation of Internet access in the above processes 600, 700 and 800 can be performed by the shelf implementation class for suppressing WIFI switching. This application does not make specific limitations on this.
[0317] It should be understood that processes 600, 700, and 800 can be implemented in parallel. The execution of each process does not affect the scenario of whether or not to suppress / cancel WIFI internet access. When the conditions for suppressing / cancel WIFI internet access are met before the process of suppressing / cancel WIFI internet access is executed, the concurrent situation of multiple scenarios is managed through the "voting mechanism" described above, and the result of whether or not to suppress / cancel WIFI internet access is determined by comprehensive analysis.
[0318] The following describes a method for accessing the Internet provided in this application. This method can be applied to electronic devices, and the software structure of the electronic devices can be as follows: Figure 4 As shown, the hardware structure can be as follows: Figure 9 As shown, but this application does not specifically limit it.
[0319] The method includes: at a first moment, the electronic device uses a cellular network to access the Internet; at a second moment, the electronic device connects to a Wi-Fi network, and the cellular network connection of the electronic device is not disconnected; when the electronic device is in a target suppression scenario, the electronic device is suppressed from using Wi-Fi to access the Internet, so that the electronic device still uses a cellular network to access the Internet, and the signal quality of the Wi-Fi network is lower than that of the cellular network in the target suppression scenario, and the second moment is after the first moment.
[0320] For example, the target suppression scenario can be described above. Figure 1 The problem scenario shown Figure 2 The problem scenario shown or Figure 3 The problem scenario is illustrated, but this application does not specifically limit it.
[0321] In some implementations, when an electronic device is connected to a Wi-Fi network, it always prioritizes using Wi-Fi for internet access, regardless of the Wi-Fi signal quality. The method provided in this application can suppress the electronic device's use of Wi-Fi for internet access in scenarios where the Wi-Fi signal quality is lower than that of the cellular network, allowing the device to still use the cellular network. This helps maintain network stability for the electronic device and improves the user experience.
[0322] As one possible scenario, at the third moment before the first moment mentioned above, the electronic device uses the WIFI network to access the Internet. At the fourth moment, the electronic device disconnects from the WIFI network. The fourth moment is after the first moment and before the second moment.
[0323] In one possible implementation, for example Figure 1 The illustration shows a process from the 14th floor to the 7th floor. On the 14th floor, the electronic device uses Wi-Fi to access the internet. Upon entering the elevator, the device can immediately connect to the cellular network and use it to access the internet, preventing a decline in Wi-Fi signal quality and a poor user experience. However, as the elevator descends, the Wi-Fi signal may drop. It may reconnect when the user stops on the 7th floor and the elevator doors open. As the elevator continues its descent, the Wi-Fi signal weakens again. Some electronic devices may not recognize this scenario and will not immediately switch to cellular again, resulting in continued use of the weak Wi-Fi signal until the signal is completely lost. The method provided in this application can identify such scenarios when the electronic device is connected to Wi-Fi and suppress its use of Wi-Fi, allowing it to continue using the cellular network and improving the user experience in these situations.
[0324] For example, the target suppression scenario includes one or more of the following scenarios: elevator suppression scenario, private local area network suppression scenario, or network sensitive application suppression scenario.
[0325] As an optional embodiment, the judgment conditions for the elevator suppression scenario include: during the first time period, the electronic device is in a closed elevator and the electronic device is in a moving state.
[0326] The first time period can have a similar meaning to the threshold 1 mentioned above, and will not be elaborated here.
[0327] In some implementations, cellular indoor base stations can be set up in elevators, while the routers for WIFI are usually set up outside the elevator area. Therefore, it can be assumed that the signal quality of WIFI network in elevator scenarios is lower than that of cellular network, but this application does not limit this.
[0328] Optionally, the criteria for determining the elevator suppression scenario may also include: the signal quality of the Wi-Fi network is lower than that of the cellular network, or the signal quality of the Wi-Fi network is less than or equal to a preset threshold. Optionally, the preset threshold may be the average signal quality of the cellular network over a period of time.
[0329] As an optional embodiment, the judgment conditions for the private LAN suppression scenario include: the type of the WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a first threshold; and / or, the type of the WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the ratio of the connection duration of the WIFI network connected to the electronic device in the second time period to the total connection duration of the electronic device to the WIFI network is less than or equal to a second threshold.
[0330] The first threshold can have a similar meaning to threshold 2 mentioned above. Optionally, the first threshold can also be the average signal quality of the cellular network over a period of time. If the signal quality of the Wi-Fi network to which the electronic device is connected is less than or equal to the first threshold, it can indicate that the signal quality of the current Wi-Fi network is inferior to that of the cellular network.
[0331] The second time period can have a similar meaning to time period 3 mentioned above, and the second threshold can have a similar meaning to threshold 3 mentioned above, so they will not be elaborated further here. If the ratio of the connection time of the electronic device to the WIFI network during the second time period to the total connection time of the electronic device to the WIFI network is less than or equal to the second threshold, it can be understood that the current WIFI network is not frequently used by the user, indicating that the user may not stay in the current WIFI environment for a long time.
[0332] Optionally, a private local area network can be, for example, a corporate network or a campus network, but this application does not specifically limit it.
[0333] Optionally, the network type of a private local area network can be a network type. The network type can be determined by its encryption method and access method. For example, if the encryption method of the WIFI network is EAP and / or its access method is portal authentication, the WIFI network can be considered as a network.
[0334] As an optional embodiment, the judgment conditions for an electronic device being in a network-sensitive application suppression scenario include: at least one network-sensitive application is running in the electronic device, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold; and / or, at least one network-sensitive application is in a target operating state in the electronic device, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold, and the electronic device's requirement for network signal quality is higher in the target operating state than in other operating states.
[0335] Optionally, the network-sensitive application can be a specified application, and the target running state can also be a specified state, but this application does not limit this.
[0336] It should be understood that network-sensitive applications refer to applications that have high requirements for network signal quality, such as audio and video call applications and real-time combat game applications. The scenario described in the embodiments of this application is a scenario where an electronic device is running a network-sensitive application and is in motion. In this scenario, the requirements for network signal quality of the electronic device are higher than when the electronic device is running a normal application and is stationary.
[0337] The third threshold can, for example, have a similar meaning to threshold 7 described above. Alternatively, the third threshold can also be the average signal quality of the cellular network over a period of time. If the signal quality of the Wi-Fi network to which the electronic device is connected is less than or equal to the third threshold, it can also be understood as the signal quality of the current Wi-Fi network being inferior to that of the cellular network.
[0338] As an optional embodiment, the judgment condition for network sensitive application suppression scenarios also includes: the traffic consumption of the application running on the electronic device is less than or equal to the fourth threshold.
[0339] The fourth threshold can have a similar meaning to threshold 8 described above. The fourth threshold can be a data usage threshold. If the data consumption of applications running on the electronic device is less than or equal to the fourth threshold, it can be understood that the applications running on the electronic device are not downloading anything, that is, there are no data-intensive tasks. In this case, suppressing Wi-Fi access and using cellular data helps avoid unnecessary charges for users from data-intensive applications, thus improving the user experience.
[0340] As an optional embodiment, when the electronic device is in a target suppression scenario, suppressing the electronic device from using WIFI to access the Internet includes: when the electronic device is in a target suppression scenario and a first condition is met, suppressing the electronic device from using WIFI to access the Internet; the first condition includes: the electronic device is in a screen-on state; the penalty timer in the electronic device is not started, and the penalty timer is started when the user turns on the WIFI switch and / or turns off the cellular switch; the signal quality of the cellular network is greater than or equal to a fifth threshold; and the cellular network's traffic margin is greater than or equal to a sixth threshold.
[0341] The first condition has a similar meaning to the condition for suppressing WIFI access described above. The fifth threshold has a similar meaning to threshold 12 described above. The sixth threshold has a similar meaning to threshold 9 described above. These will not be elaborated on here.
[0342] It should be understood that when an electronic device is in screen-on mode, the user is likely using the device and may require a stable network. The absence of a penalty timer can be interpreted as the user not indicating a preference for Wi-Fi. Cellular signal quality greater than or equal to the fifth threshold indicates good network conditions. Cellular data allowance greater than the sixth threshold indicates sufficient cellular data. In this situation, suppressing Wi-Fi and continuing to use cellular data helps maintain network stability and improves the user's online experience.
[0343] As an optional embodiment, the above method further includes: when the electronic device is in an exit target suppression scenario, the electronic device cancels the suppression of WIFI Internet access.
[0344] For example, exiting the target suppression scenario includes one or more of the following scenarios: exiting the elevator suppression scenario, exiting the dedicated local area network suppression scenario, or exiting the network sensitive application suppression scenario.
[0345] As an optional embodiment, the judgment conditions for exiting the elevator suppression scenario include any one or more of the following: the electronic device remains stationary throughout the third time period and is not in a closed elevator during the third time period; the movement amplitude of the electronic device during the third time period is less than or equal to the seventh threshold and the electronic device is not in a closed elevator during the third time period (which can be understood as the electronic device having left the elevator environment, and the WIFI signal not being blocked by the elevator, so the suppression of WIFI access can be canceled); or, the first timer times out; the first timer is started when it is determined that the electronic device is in the elevator suppression scenario, and the first timer is used to set the maximum duration for which the electronic device is in the elevator suppression scenario.
[0346] The third time period can have a similar meaning to time period 2 described above, and the seventh threshold can have a similar meaning to threshold 2 described above, so it will not be repeated here.
[0347] It should be understood that the first timer is used to set the maximum duration for which electronic devices are in the elevator suppression scenario. This is beneficial for timely exiting the elevator suppression scenario in case of other errors in judgment, avoiding prolonged exposure of electronic devices to the elevator suppression scenario, and further avoiding prolonged suppression of WIFI access, which would lead to a poor user experience.
[0348] As an optional implementation, the criteria for exiting the private LAN suppression scenario include one or more of the following:
[0349] If the electronic device is stationary during the fourth time period and the Wi-Fi network signal quality of the electronic device is consistently greater than or equal to the eighth threshold during the fourth time period, this indicates that the electronic device is stationary during the fourth time period and is in an environment with good Wi-Fi network signal quality, and the electronic device can exit the dedicated local area network suppression scenario.
[0350] If the ratio of the connection duration of the Wi-Fi network connected to the electronic device in the second time period to the total connection duration of the electronic device to the Wi-Fi network is greater than or equal to the second threshold, the electronic device remains in a mobile state during the fifth time period, and the Wi-Fi signal quality of the electronic device is consistently greater than or equal to the ninth threshold during the fifth time period, then it can be understood that the Wi-Fi network currently connected to the electronic device is a network commonly used by the user. This can be further understood as the user staying on this network for a relatively long time, and the Wi-Fi signal quality of the electronic device remains good during the fifth time period. In this case, the electronic device can exit the dedicated local area network suppression scenario.
[0351] If the electronic device remains in motion during the sixth time period and its Wi-Fi signal quality remains greater than or equal to the tenth threshold during the sixth time period, it can be understood that although the electronic device is still moving, its Wi-Fi signal quality remains good during the sixth time period, and the electronic device can exit the dedicated local area network suppression scenario.
[0352] The second timer times out; the second timer starts when it determines that the electronic device is in a private LAN suppression scenario. The second timer is used to set the maximum duration for which the electronic device is in the private LAN suppression scenario. This allows for timely exit from the private LAN suppression scenario in case of other incorrect judgments, avoiding prolonged exposure of the electronic device to the private LAN suppression scenario and further preventing a poor user experience caused by prolonged suppression of Wi-Fi access.
[0353] The fourth time period can have a similar meaning to the time period 4 described above; the eighth threshold can have a similar meaning to the threshold 4 described above; the second time period can have a similar meaning to the time period 3 described above; the second threshold can have a similar meaning to the threshold 3 described above; the fifth time period can have a similar meaning to the time period 5 described above; the ninth threshold can have a similar meaning to the threshold 5 described above; the sixth time period can have a similar meaning to the time period 6 described above; and the tenth threshold can have a similar meaning to the threshold 6 described above. These will not be elaborated further here.
[0354] Optionally, the tenth threshold > the ninth threshold > the eighth threshold. This could mean that better Wi-Fi signal quality is needed when the user is mobile to ensure a good user experience, but this application does not specifically limit this.
[0355] As an optional implementation, the judgment conditions for exiting the network sensitive application suppression scenario include any one or more of the following:
[0356] The network-sensitive application exits, or the target running state of the network-sensitive application exits; this means that the scenario with high network demand has disappeared, and the electronic device can exit the network-sensitive application suppression scenario.
[0357] If the electronic device remains stationary during the seventh time period and the Wi-Fi network signal quality of the electronic device is consistently greater than or equal to the eleventh threshold during the seventh time period, it indicates that the electronic device is stationary and the Wi-Fi network signal is stable, and the electronic device can exit the network-sensitive application suppression scenario.
[0358] If the electronic device remains in motion during the eighth time period and the WIFI network signal quality of the electronic device is consistently greater than or equal to the twelfth threshold during the eighth time period, it indicates that although the electronic device is moving, the WIFI network signal is stable, and the electronic device can exit the network sensitive application suppression scenario.
[0359] The electronic device has launched an application whose data consumption is less than or equal to the fourth threshold. This can be understood as an application on the electronic device starting a download task. In order to avoid suppressing Wi-Fi access and causing users to incur cellular charges, the electronic device can exit the network sensitive application suppression scenario.
[0360] The third timer times out; the third timer starts when it determines that the electronic device is in a network-sensitive application suppression scenario. The third timer is used to set the maximum duration for which the electronic device is in the network-sensitive application suppression scenario. This allows for timely exit from the network-sensitive application suppression scenario in case of other incorrect judgments, avoiding prolonged periods of network-sensitive application suppression and further preventing a poor user experience caused by prolonged suppression of Wi-Fi access.
[0361] Among them, the seventh time period has a similar meaning to the time period 7 described above, the eleventh threshold has a similar meaning to the threshold 10 described above, the eighth time period has a similar meaning to the time period 8 described above, the twelfth threshold has a similar meaning to the threshold 11 described above, and the fourth threshold has a similar meaning to the threshold 8 described above, and will not be described again.
[0362] As an optional implementation, the twelfth threshold is greater than the eleventh threshold. This means that mobile electronic devices may require better Wi-Fi signal quality to ensure a better user experience.
[0363] As an optional embodiment, when the electronic device is in the exit target suppression scenario, the electronic device cancels the suppression of the WIFI network, including: when the electronic device is in the exit target suppression scenario and meets the second condition, the electronic device cancels the suppression of the WIFI network; the second condition includes any one or more of the following: the electronic device is in a screen-off state (which can be understood as the user is temporarily not using the electronic device, and canceling the WIFI network suppression at this time has little impact on the user experience); the application running in the foreground of the electronic device is the system desktop (which can also be understood as the user is temporarily not using the electronic device, and canceling the WIFI network suppression at this time has little impact on the user experience); the WIFI network signal quality of the electronic device is greater than or equal to the thirteenth threshold (which can be understood as the WIFI network signal quality is good). At this point, if the WIFI network suppression is canceled, the user can still have a smooth network connection; or, the sum of the votes of all voting bits in the electronic device is zero (which can be understood as the electronic device not having a target suppression scenario); where the voting bits include the first voting bit, the second voting bit, and the third voting bit; the first voting bit is set to a non-zero value when the electronic device is in the elevator suppression scenario, and to a zero value when the electronic device is exiting the elevator suppression scenario; the second voting bit is set to a non-zero value when the electronic device is in the private LAN suppression scenario, and to a zero value when the electronic device is exiting the private LAN suppression scenario; the first voting bit is set to a non-zero value when the electronic device is in the network sensitive application suppression scenario, and to a zero value when the electronic device is exiting the network sensitive application suppression scenario.
[0364] The thirteenth threshold has a similar meaning to the threshold 13 described above.
[0365] It should be understood that when it is determined that the electronic device is in the exit target suppression scenario and the second condition is met, the electronic device cancels the suppression of the WIFI network, which is beneficial to improving the user's network experience.
[0366] As an optional embodiment, the above method further includes: when the electronic device meets the third condition, the electronic device cancels the suppression of Wi-Fi access. The third condition can be understood as the condition corresponding to the protection mechanism described above. The priority of the third condition can be higher than that of the second condition. That is, once the electronic device meets the third condition, it can cancel the suppression of Wi-Fi access regardless of whether it meets the second condition.
[0367] The third condition includes one or more of the following:
[0368] Electronic devices respond to user actions by switching off cellular networks; this can be understood as the user manually choosing not to use cellular networks, so the suppression of Wi-Fi access should be lifted under any circumstances.
[0369] Electronic devices respond to user actions by turning off the Wi-Fi network; thus, Wi-Fi cannot connect, and there is no need to suppress Wi-Fi access.
[0370] The Wi-Fi network connection of electronic devices is disconnected; thus, there is no need to suppress Wi-Fi access.
[0371] Electronic devices activate flight mode in response to user input; since internet access is disabled in flight mode, there is no need to suppress Wi-Fi access.
[0372] The electronic device responds to the user's operation by turning off the first switch; when the first switch is on, the electronic device is allowed to suppress WIFI internet access; the first switch can be understood as the network acceleration switch described above. The electronic device only executes the WIFI suppression process provided in the embodiments of this application when the switch is on. If the user turns off the switch, WIFI internet access will no longer be suppressed.
[0373] The cellular network signal quality of the electronic device is less than or equal to the fourteenth threshold; this means that the cellular network signal quality is poor, possibly inferior to the current WIFI network signal, so there is no need to continue suppressing WIFI access.
[0374] The cellular network bandwidth of the electronic device is less than or equal to the fifteenth threshold; this indicates that the cellular bandwidth is insufficient, and continuing to suppress Wi-Fi access may result in cellular charges for users. The suppression of Wi-Fi access should be lifted.
[0375] The fourth timer times out; the fourth timer starts when the sum of the votes for all voting bits in the electronic device is greater than zero. The fourth timer is used to set the maximum duration for which Wi-Fi access is suppressed. This helps to limit the duration for which Wi-Fi access is suppressed by the electronic device to a reasonable range, avoids Wi-Fi being suppressed for too long unnecessarily, and improves the user experience.
[0376] As an optional embodiment, the electronic device includes a first module, a second module, a third module, a fourth module, a fifth module, a sixth module, and a seventh module. The first module manages the network connection of the electronic device. The second module notifies the third module of the network connection status of the electronic device. The third module obtains a scenario judgment result from one or more of the fourth, fifth, or sixth modules. The fourth module determines whether the electronic device is in an elevator suppression scenario. The fifth module determines whether the electronic device is in a private local area network suppression scenario. The sixth module determines whether the electronic device is in a network sensitive application suppression scenario. The seventh module determines whether the electronic device meets a first condition, which is a condition for suppressing Wi-Fi internet access. The electronic device connects to a Wi-Fi network, including: the first module connecting to the Wi-Fi network. The method further includes: a second module obtaining a WIFI connection notification from a first module and passing the WIFI connection notification to a third module; the electronic device being in a target suppression scenario includes: upon receiving a WIFI connection notification, the third module obtaining a scenario judgment result from one or more of a fourth, fifth, or sixth module, the scenario judgment result including the target suppression scenario; suppressing the electronic device from using WIFI to access the internet includes: the third module issuing an instruction to a seventh module to suppress WIFI internet access; the seventh module, upon determining that the electronic device meets a first condition, instructing the first module to deduct points from the WIFI network card; the first module deducting points from the WIFI network card so that the score of the WIFI network card is less than the score of the cellular network card, and setting the cellular network card as the network card used by the electronic device to access the internet.
[0377] The first module can be similar in meaning to the CS module described above; the second module can be similar in meaning to the network connection module described above; the third module can be similar in meaning to module 5 described above; the fourth module can be similar in meaning to the elevator scenario judgment module described above; the fifth module can be similar in meaning to the dedicated LAN scenario judgment module described above; the sixth module can be similar in meaning to the network sensitive application scenario judgment module described above; and the seventh module can be similar in meaning to module 8 described above. These will not be elaborated further here.
[0378] The process of this embodiment can be referred to the description at S501 to S505 in method 500 above.
[0379] As an optional embodiment, the fourth module is further used to determine whether the electronic device is in the elevator exit suppression scenario, the fifth module is further used to determine whether the electronic device is in the dedicated local area network exit suppression scenario, the sixth module is further used to determine whether the electronic device is in the network sensitive application exit suppression scenario, and the seventh module is further used to determine whether the electronic device meets the second condition, the second condition being the condition for canceling the suppression of WIFI internet access; the electronic device being in the exit target suppression scenario includes: the third module obtaining the scenario judgment result from one or more of the fourth, fifth, or sixth modules, the scenario judgment result including exiting the target suppression scenario; the electronic device canceling the suppression of WIFI internet access includes: the third module issuing an instruction to the seventh module to cancel the suppression of WIFI internet access; the seventh module, if it determines that the electronic device meets the second condition, instructs the first module to add points to the WIFI network card; the first module adds points to the WIFI network card, making the score of the WIFI network card greater than the score of the cellular network card, and sets the WIFI network card as the network card used by the electronic device for internet access.
[0380] The process of this embodiment can be referred to the description in S506 to S508 of method 500 above, and will not be explained again.
[0381] The internet access method provided in the embodiments of this application has been described above. The apparatus for executing the above method, provided in the embodiments of this application, is described below. Those skilled in the art will understand that the methods and apparatus can be combined and referenced together, and the related apparatus provided in the embodiments of this application can execute the steps in the above method.
[0382] Figure 9 A schematic diagram of the hardware structure of electronic device 900 is shown.
[0383] Electronic device 900 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0384] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 900. In other embodiments of this application, the electronic device 900 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0385] The wireless communication function of electronic device 900 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0386] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 900 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.
[0387] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 900. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0388] In this embodiment of the application, the electronic device can achieve cellular Internet access based on a wireless communication module.
[0389] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 900, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0390] In this embodiment of the application, the electronic device can achieve WIFI Internet access based on the wireless communication module 160.
[0391] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 900. The accelerometer sensor 180E can detect the magnitude of the acceleration of the electronic device 900 in various directions (generally three axes). In this embodiment, the electronic device can use the gyroscope sensor, accelerometer sensor, etc. to obtain the moving / stationary state of the electronic device.
[0392] The internet access method provided in this application can be applied to electronic devices with both Wi-Fi and cellular functionality. The software structure of the electronic device can be as follows: Figure 4 As shown, the hardware structure can be as follows Figure 9 As shown, the specific form of the electronic device can be referred to the above description, and will not be repeated here.
[0393] Figure 10 An exemplary schematic diagram of a chip structure provided in an embodiment is shown. The chip 1000 includes one or more (including two) processors 1001, communication lines 1002, communication interfaces 1003, and memory 1004.
[0394] In some implementations, memory 1004 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0395] The methods described in the embodiments of this application can be applied to or implemented by the processor 1001. The processor 1001 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuit in the hardware of the processor 1001 or by instructions in the form of software. The processor 1001 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. The processor 1001 can implement or execute the various processing-related methods, steps, and logic block diagrams disclosed in the embodiments of this application.
[0396] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 1004, and processor 1001 reads information from memory 1004 and, in conjunction with its hardware, completes the steps of the above method.
[0397] The processor 1001, memory 1004 and communication interface 1003 can communicate with each other via communication line 1002.
[0398] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.
[0399] In the embodiments of this application, the chip 1000 may also be a chip system, such as a system on chip (SOC), and this application does not limit it in this regard.
[0400] This application provides an electronic device, which includes: one or more processors and a memory; the memory is coupled to one or more processors, and stores computer program code, which includes computer instructions; one or more processors invoke the computer instructions to cause the electronic device to perform the methods described in the above embodiments.
[0401] This application provides a chip or chip system. The chip or chip system is applied to an electronic device and includes one or more processors. These processors invoke computer instructions to cause the electronic device to execute the methods described in the above embodiments. Its implementation principle and technical effects are similar to the related embodiments described above, and will not be repeated here.
[0402] This application also provides a computer-readable storage medium. The computer-readable storage medium includes computer instructions. When these computer instructions are executed on an electronic device, they cause the electronic device to perform the methods described in the above embodiments. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. If implemented in software, the functionality can be stored as one or more instructions or code on or transmitted on the computer-readable medium. The computer-readable medium can include computer storage media and communication media, and can also include any medium that can transfer a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0403] In one possible implementation, a computer-readable medium may include RAM, ROM, compact disc read-only memory (CD-ROM) or other optical disc storage, disk storage or other magnetic storage devices, or any other medium targeted to carry or to store the required program code in the form of instructions or data structures, and accessible by a computer. Furthermore, any connection is appropriately referred to as a computer-readable medium. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. As used herein, disks and optical discs include optical discs, laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0404] This application provides a computer program product, which includes computer program code. When the computer program code is run on an electronic device, the electronic device performs the method described in the above embodiments.
[0405] This application describes embodiments of methods, apparatus (systems), and computer program products according to embodiments of this application with reference to flowchart illustrations and / or block diagrams. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processing unit of a general-purpose computer, special-purpose computer, embedded processor, or other programmable device to produce a machine, such that the instructions, which execute via the processing unit of the computer or other programmable data processing device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0406] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention and are not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for accessing the Internet, characterized in that, Applied to electronic devices, the method includes: At the first moment, the electronic device uses a cellular network to access the Internet; At the second moment, the electronic device is connected to a Wi-Fi network, and the cellular network connection of the electronic device is not disconnected; when the electronic device is in a target suppression scenario, the electronic device is suppressed from using Wi-Fi to access the Internet, so that the electronic device still uses the cellular network to access the Internet. In the target suppression scenario, the signal quality of the Wi-Fi network is lower than the signal quality of the cellular network. The second moment is after the first moment.
2. The method according to claim 1, characterized in that, The method further includes: At the third moment, the electronic device accesses the Internet via a WIFI network, and the third moment occurs before the first moment. At the fourth moment, the electronic device disconnects from the WIFI network, which occurs after the first moment and before the second moment.
3. The method according to claim 1 or 2, characterized in that, The target suppression scenarios include one or more of the following: elevator suppression scenario, dedicated local area network suppression scenario, or network sensitive application suppression scenario.
4. The method according to claim 3, characterized in that, The judgment conditions for the elevator suppression scenario include: During the first time period, the electronic device was in a closed elevator and was in a moving state.
5. The method according to claim 3, characterized in that, The criteria for determining the dedicated local area network suppression scenario include: The type of the WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a first threshold; and / or, The type of WIFI network connected to the electronic device is a network type, the electronic device is in a mobile state, and the ratio of the connection duration of the WIFI network connected to the electronic device in the second time period to the total connection duration of the electronic device to the WIFI network is less than or equal to the second threshold.
6. The method according to claim 3, characterized in that, The conditions for determining whether the electronic device is in a network-sensitive application suppression scenario include: The electronic device has at least one network-sensitive application running, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold; and / or, The electronic device has at least one network-sensitive application in a target operating state, the electronic device is in a mobile state, and the signal quality of the WIFI network connected to the electronic device is less than or equal to a third threshold. In the target operating state, the electronic device has higher requirements for network signal quality than in other operating states.
7. The method according to claim 6, characterized in that, The judgment criteria for network-sensitive application suppression scenarios also include: The data usage of the application running on the electronic device is less than or equal to the fourth threshold.
8. The method according to any one of claims 1 to 7, characterized in that, When the electronic device is in a target suppression scenario, suppressing the electronic device from accessing the Internet via Wi-Fi includes: When the electronic device is in a target suppression scenario and the first condition is met, the electronic device is prevented from accessing the Internet via Wi-Fi. The first condition includes: the electronic device is in a screen-on state; the penalty timer in the electronic device is not started, and the penalty timer is started when the user turns on the WIFI switch and / or turns off the cellular switch; the signal quality of the cellular network is greater than or equal to the fifth threshold; and the cellular network's traffic margin is greater than or equal to the sixth threshold.
9. The method according to any one of claims 1 to 8, characterized in that, The method further includes: When the electronic device is in the exit target suppression scenario, the electronic device cancels the suppression of WIFI Internet access.
10. The method according to claim 9, characterized in that, The exit target suppression scenario includes one or more of the following scenarios: exit elevator suppression scenario, exit dedicated local area network suppression scenario, or exit network sensitive application suppression scenario.
11. The method according to claim 10, characterized in that, The judgment conditions for exiting the elevator suppression scenario include any one or more of the following: The electronic device remains stationary throughout the third time period, and the electronic device is not in a closed elevator during the third time period. The movement amplitude of the electronic device during the third time period is less than or equal to the seventh threshold, and the electronic device is not in a closed elevator during the third time period; or, The first timer times out; the first timer starts when it is determined that the electronic device is in the elevator suppression scenario, and the first timer is used to set the maximum duration for which the electronic device is in the elevator suppression scenario.
12. The method according to claim 10, characterized in that, The judgment conditions for exiting the dedicated local area network suppression scenario include any one or more of the following: During the fourth time period, the electronic device is in a stationary state, and the WIFI network signal quality of the electronic device is always greater than or equal to the eighth threshold during the fourth time period. The ratio of the connection duration of the WIFI network connected to the electronic device in the second time period to the total connection duration of the WIFI network connected to the electronic device is greater than or equal to the second threshold, and the WIFI network signal quality of the electronic device is always greater than or equal to the ninth threshold in the fifth time period. The electronic device remains in a mobile state during the sixth time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the tenth threshold during the sixth time period. or, The second timer times out; the second timer starts when it is determined that the electronic device is in a private local area network suppression scenario, and the second timer is used to set the maximum duration for which the electronic device is in the private local area network suppression scenario.
13. The method according to claim 12, characterized in that, The tenth threshold > the ninth threshold > the eighth threshold.
14. The method according to claim 10, characterized in that, The judgment conditions for exiting the network sensitive application suppression scenario include any one or more of the following: The network-sensitive application exits, or the target running state of the network-sensitive application exits; The electronic device remains stationary during the seventh time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the eleventh threshold during the seventh time period. The electronic device remains in a mobile state during the eighth time period, and the WIFI network signal quality of the electronic device is always greater than or equal to the twelfth threshold during the eighth time period. The electronic device launched an application whose data consumption was less than or equal to the fourth threshold. or, The third timer times out; the third timer is started when it is determined that the electronic device is in a network sensitive application suppression scenario, and the third timer is used to set the maximum duration for which the electronic device is in the network sensitive application suppression scenario.
15. The method according to claim 14, characterized in that, The twelfth threshold is greater than the eleventh threshold.
16. The method according to any one of claims 9 to 15, characterized in that, When the electronic device is in a scenario where it is exiting target suppression, the electronic device cancels the suppression of the WIFI network, including: When the electronic device is in the exit target suppression scenario and the second condition is met, the electronic device cancels the suppression of the WIFI network; The second condition includes any one or more of the following: the electronic device is in a screen-off state; the application running in the foreground of the electronic device is the system desktop; the WIFI network signal quality of the electronic device is greater than or equal to the thirteenth threshold; or, the sum of the votes of all voting bits in the electronic device is zero. The voting bits include a first voting bit, a second voting bit, and a third voting bit; the first voting bit is set to a non-zero value when the electronic device is in an elevator suppression scenario, and to a zero value when the electronic device is in an exit elevator suppression scenario; the second voting bit is set to a non-zero value when the electronic device is in a private local area network suppression scenario, and to a zero value when the electronic device is in an exit private local area network suppression scenario; the first voting bit is set to a non-zero value when the electronic device is in a network sensitive application suppression scenario, and to a zero value when the electronic device is in an exit network sensitive application suppression scenario.
17. The method according to any one of claims 1 to 16, characterized in that, The method further includes: If the electronic device meets the third condition, the electronic device will remove the restriction on Wi-Fi access. The third condition includes one or more of the following: The electronic device responds to a user-operated switch to turn off the cellular network; The electronic device responds to a user operation that turns off the WIFI network; The electronic device's WIFI network connection was disconnected; The electronic device activates flight mode in response to user input; The electronic device responds to a user operation to turn off the first switch; when the first switch is on, the electronic device is allowed to suppress WIFI internet access; The cellular network signal quality of the electronic device is less than or equal to the fourteenth threshold. The cellular network traffic margin of the electronic device is less than or equal to the fifteenth threshold; or, The fourth timer times out; the fourth timer starts when the sum of the votes of all voting bits in the electronic device is greater than zero, and the fourth timer is used to set the maximum duration for which WIFI internet access is suppressed.
18. The method according to any one of claims 1 to 17, characterized in that, The electronic device includes a first module, a second module, a third module, a fourth module, a fifth module, a sixth module, and a seventh module. The first module is used to manage the network connection of the electronic device. The second module is used to notify the third module of the network connection status of the electronic device. The third module is used to obtain a scenario judgment result from one or more of the fourth module, the fifth module, or the sixth module. The fourth module is used to determine whether the electronic device is in an elevator suppression scenario. The fifth module is used to determine whether the electronic device is in a private local area network suppression scenario. The sixth module is used to determine whether the electronic device is in a network sensitive application suppression scenario. The seventh module is used to determine whether the electronic device meets a first condition, which is the condition of suppressing WIFI internet access. The electronic device connects to a WIFI network, including: The first module connects to a Wi-Fi network; The method further includes: The second module obtains the WIFI connection notification from the first module and passes the WIFI connection notification to the third module; The electronic device is in a target suppression scenario, including: Upon receiving the WIFI connection notification, the third module obtains a scene judgment result from one or more of the fourth, fifth, or sixth modules, and the scene judgment result includes the target suppression scene; The method of inhibiting the electronic device from accessing the Internet via Wi-Fi includes: The third module sends an instruction to the seventh module to suppress Wi-Fi access; When the seventh module determines that the electronic device meets the first condition, it instructs the first module to deduct points from the WIFI network card. The first module deducts points from the WIFI network card, making its score lower than that of the cellular network card, and sets the cellular network card as the network card used by the electronic device for internet access.
19. The method according to claim 18, characterized in that, The fourth module is also used to determine whether the electronic device is in the elevator exit suppression scenario, the fifth module is also used to determine whether the electronic device is in the private local area network exit suppression scenario, the sixth module is also used to determine whether the electronic device is in the network sensitive application exit suppression scenario, and the seventh module is also used to determine whether the electronic device meets the second condition, the second condition being the condition to cancel the suppression of WIFI internet access. The electronic device is in a target suppression scenario, including: The third module obtains a scene judgment result from one or more of the fourth, fifth, or sixth modules, and the scene judgment result includes the exit target suppression scene; The electronic device removes the suppression of Wi-Fi access, including: The third module sends an instruction to the seventh module to cancel the suppression of WIFI internet access; When the seventh module determines that the electronic device meets the second condition, it instructs the first module to add points to the WIFI network card. The first module adds points to the WIFI network card, making its score greater than that of the cellular network card, and sets the WIFI network card as the network card used by the electronic device for internet access.
20. An electronic device, characterized in that, The electronic device includes: one or more processors and memory; The memory is coupled to the one or more processors, the memory being used to store computer program code, the computer program code including computer instructions, the one or more processors invoking the computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 19.
21. A chip system, characterized in that, The chip system is applied to an electronic device, the chip system including one or more processors, the one or more processors being used to invoke computer instructions to cause the electronic device to perform the method as described in any one of claims 1 to 19.
22. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes computer instructions that, when executed on an electronic device, cause the electronic device to perform the method as described in any one of claims 1 to 19.
23. A computer program product, characterized in that, The computer program product includes computer program code that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1 to 19.
