5G function switch state switching method and electronic device

By setting switching delay conditions and delay end conditions in electronic devices, the switching of 5G function status is delayed, which solves the problem of affecting user use when the battery is low and improves the user experience.

CN117555410BActive Publication Date: 2025-09-12HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210938473.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-05
Publication Date
2025-09-12
Estimated Expiration
2042-08-05

AI Technical Summary

Technical Problem

When the 5G function is turned off or restored when the battery of an electronic device is low, it will affect the applications that the user is currently using, resulting in a poor user experience.

Method used

By setting the switching delay condition and the delay end condition, the state change of the 5G function is delayed to ensure that the state switch is performed when the user is not using the device, avoiding affecting the user experience.

Benefits of technology

Without affecting user usage, the 5G function can be intelligently switched on and off to improve the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117555410B_ABST
    Figure CN117555410B_ABST
Patent Text Reader

Abstract

The present application provides a method for switching the on / off state of a 5G function and an electronic device. The method includes: receiving a first notification at a first moment, the first notification is used to indicate that the current power exceeds a preset power range, and the on / off state of the 5G function of the electronic device is the first state at the first moment; if the electronic device meets the preset switching delay condition at the first moment, a switching mark is set; at a second moment, the electronic device meets the delay end condition corresponding to the switching delay condition, and the second moment is later than the first moment; if the switching mark is still valid at the second moment, after the first time period, the state of the 5G function in the electronic device is switched to a second state opposite to the first state. The embodiment of the present application can turn off the 5G function or restore the 5G function without affecting the user's use, thereby improving the user's experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal equipment, and in particular to a method for switching the switch state of a 5G function and an electronic device. Background Art

[0002] Currently, many electronic devices, such as mobile phones and tablets, have 5G capabilities, also known as 5G capabilities. To improve battery life, manufacturers generally implement measures to reduce power consumption by disabling 5G functionality when the battery level of these devices is low. 5G functionality is then restored when the battery level exceeds a certain threshold.

[0003] However, turning off or restoring the 5G function will have a certain impact on users' use of some applications on electronic devices, resulting in a poor user experience. Summary of the Invention

[0004] In order to solve the above technical problems, the present application provides a 5G function on-off state switching method and electronic device, which can turn off the 5G function or restore the 5G function without affecting user use, thereby improving the user experience.

[0005] In a first aspect, the present application provides a method for switching the on / off state of a 5G function. The method is applied to an electronic device. The method comprises: receiving a first notification at a first moment, the first notification being used to indicate that the current power level exceeds a preset power level range, and the on / off state of the 5G function of the electronic device at the first moment is the first state; if the electronic device satisfies a preset switching delay condition at the first moment, setting a switching mark; at a second moment, the electronic device satisfies a delay end condition corresponding to the switching delay condition, and the second moment is later than the first moment; if the switching mark is still valid at the second moment, after a first time period, switching the state of the 5G function in the electronic device to a second state opposite to the first state.

[0006] Among them, the switching delay condition reflects to a certain extent that the user is using the electronic device, and the delay end condition reflects to a certain extent that the user is not using the electronic device. In this way, the state switching of the 5G function is not performed when the user is using the electronic device, and the state switching of the 5G function is delayed until the user is not using the electronic device. In this way, the 5G function can be turned off or restored without affecting the user's use, thereby improving the user experience.

[0007] According to the first aspect, the switching delay condition is: the radio resource control RRC link state of the electronic device is in the connected state; the delay end condition is: the radio resource control RRC link state of the electronic device is in the idle state.

[0008] According to the first aspect, the switching delay condition is: detecting that a person is approaching the electronic device; and the delay end condition is: detecting that the person is not approaching the electronic device.

[0009] According to the first aspect, if the switching mark is still valid at the second moment, after the first time period, the state of the 5G function in the electronic device is switched to a second state opposite to the first state, including: if the switching mark is still valid at the second moment, determining whether the electronic device meets the first condition at the second moment, the first condition being the condition that needs to be met to switch the on / off state of the 5G function; if met, after the first time period, switching the state of the 5G function in the electronic device to the second state opposite to the first state.

[0010] According to the first aspect, the switching delay condition is: the display screen of the electronic device is in the screen-on state; the delay end condition is: the electronic device receives a screen-off notification.

[0011] According to the first aspect, the switching delay condition is: there are m target applications in the foreground application of the electronic device that belong to the preset whitelist; m is a natural number greater than or equal to 1; the delay end condition is: receiving the notification of switching to the background corresponding to the m target applications.

[0012] According to the first aspect, the switching delay condition is: the data rate of the electronic device is non-zero; and the delay end condition is: the data rate of the electronic device is zero.

[0013] According to the first aspect, the switching delay condition is: the data rate of the electronic device is greater than a preset data rate threshold; the delay end condition is: the data rate of the electronic device is less than or equal to the data rate threshold.

[0014] According to the first aspect, the first condition is that the electronic device is not in a call state and / or is not in a navigation state.

[0015] According to the first aspect, the preset power range is greater than or equal to the first power threshold, and the current power exceeds the preset power range, which means that the current power is less than the first power threshold; the first state is the on state, and the second state is the off state.

[0016] According to the first aspect, the preset power range is less than or equal to the second power threshold, and the current power exceeds the preset power range, which means that the current power is greater than the second power threshold; the first state is the off state, and the second state is the on state.

[0017] According to the first aspect, the first duration is greater than or equal to 0.

[0018] According to the first aspect, after the state of the 5G function in the electronic device is switched to a second state opposite to the first state, it also includes: canceling the switching mark.

[0019] According to the first aspect, setting the switching mark includes: setting the value of the switching identification bit to a first value; the switching mark is still valid, including: the value of the switching identification bit is still the first value; canceling the switching mark includes: setting the value of the switching identification bit to a second value, and the second value is different from the first value.

[0020] In a second aspect, the present application provides an electronic device comprising: a memory and a processor, the memory being coupled to the processor; the memory storing program instructions, which, when executed by the processor, enables the electronic device to execute the switch state switching method of any one of the 5G functions of the first aspect.

[0021] In a third aspect, the present application provides a computer-readable storage medium, comprising a computer program. When the computer program runs on an electronic device, the electronic device executes the switch state switching method of any one of the 5G functions of the first aspect described above. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] Figure 1 is a schematic structural diagram of an illustrative electronic device 100;

[0023] Figure 2 1 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application;

[0024] Figure 3 1 is a flow chart illustrating an exemplary embodiment of a method for switching the on / off state of a 5G function;

[0025] Figure 4 Schematic diagram of a flow chart of a second embodiment of a method for switching the on / off state of a 5G function;

[0026] Figure 5 Schematic diagram of a flow chart of a third embodiment of a method for switching the on / off state of a 5G function;

[0027] Figure 6 1 is a flow chart illustrating a fourth embodiment of a method for switching the on / off state of a 5G function;

[0028] Figure 7 1 is a flowchart of a fifth embodiment of a method for switching the on / off state of a 5G function;

[0029] Figure 8 1 is a flowchart of a sixth embodiment of a method for switching the on / off state of a 5G function;

[0030] Figure 9 1 is a flow chart illustrating a seventh embodiment of a method for switching the on / off state of a 5G function;

[0031] Figure 101 is a flow chart illustrating an exemplary embodiment of an eighth embodiment of a method for switching the on / off state of a 5G function;

[0032] Figure 11 1 is a flowchart of a ninth embodiment of a method for switching the on / off state of a 5G function;

[0033] Figure 12 The figure is a flowchart of the tenth embodiment of the method for switching the on / off state of a 5G function, which is exemplified. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0035] The term "and / or" in this article is merely a description of the association relationship between associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0036] In the description and claims of the embodiments of this application, the terms "first" and "second" are used to distinguish different objects, rather than to describe a specific order of objects. For example, the terms "first target object" and "second target object" are used to distinguish different objects, rather than to describe a specific order of objects.

[0037] In the embodiments of this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be interpreted as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.

[0038] In the description of the embodiments of this application, unless otherwise specified, "multiple" means two or more. For example, "multiple processing units" means two or more processing units; "multiple systems" means two or more systems.

[0039] In the related art, when the battery level of an electronic device is low, the 5G function of the electronic device will be immediately turned off. Similarly, when the battery level of the electronic device is above a certain threshold, the 5G function of the electronic device will be immediately restored, that is, the 5G function will be turned on.

[0040] If you are using a mobile network to make a video call or live stream when you disable or restore 5G, the required capability update or 5G network search may cause a few seconds of lag in the video call or live stream. If you are in a voice call when you disable or restore 5G, the call may drop.

[0041] It can be seen that in the related art, turning off the 5G function or restoring the 5G function affects the user's use of electronic devices, resulting in a poor user experience.

[0042] The embodiment of the present application provides a method for switching the on / off state of a 5G function, which can turn off or restore the 5G function without affecting user use, thereby improving the user experience.

[0043] The 5G function switch state switching method in the embodiment of the present application can be applied to electronic devices, such as smart phones, tablets, etc. The structure of the electronic device in this embodiment can be as follows: Figure 1 shown.

[0044] Figure 1 FIG1 is a schematic diagram of the structure of an electronic device 100. It should be understood that Figure 1 The illustrated electronic device 100 is merely one example of an electronic device, and the electronic device 100 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. Figure 1 The various components shown in the drawings may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application specific integrated circuits.

[0045] See Figure 1 The electronic device 100 may include: a processor 110, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, an indicator 192, a camera 193, etc.

[0046] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.

[0047] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0048] The processor 110 may further include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory.

[0049] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.

[0050] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160.

[0051] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.

[0052] Figure 21 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present application.

[0053] The layered architecture of electronic device 100 divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system may include an application layer, an application framework layer, a system layer, and a kernel layer.

[0054] The application layer can include a series of application packages.

[0055] like Figure 2 As shown, the application package may include applications such as camera, gallery, call, WLAN, Bluetooth, video, and battery module. Among them, the battery module is used to monitor the battery power of the electronic device. When the battery power of the electronic device is lower than the power threshold, a notification that the battery power is lower than the power threshold is sent to the 5G function switch state switching module in the application framework layer. When the battery power of the electronic device is higher than the power threshold, a notification that the battery power is higher than the power threshold is sent to the 5G function switch state switching module.

[0056] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0057] like Figure 2 As shown, the application framework layer may include a resource manager, a 5G function on / off state switching module, etc.

[0058] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0059] Among them, the switch state switching module of the 5G function is used to execute the switch state switching method of the 5G function in the embodiment of the present application.

[0060] The Android Runtime consists of the core library and the virtual machine. The Android runtime is responsible for scheduling and management of the Android system.

[0061] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.

[0062] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.

[0063] The system library can include multiple functional modules. Figure 2 As shown, in the embodiment of the present application, the system library may include a surface manager and the like.

[0064] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.

[0065] The kernel layer is the layer between hardware and software.

[0066] like Figure 2 As shown, the kernel layer may include modules such as display driver, Bluetooth driver, Wi-Fi driver, Bluetooth driver, audio driver, and sensor driver.

[0067] It is understandable that Figure 2 The layers in the illustrated software structure and the components contained in each layer do not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer layers than shown, and each layer may include more or fewer components, which is not limited in the present application.

[0068] The present application is described in detail below through examples.

[0069] For the convenience of description below, the 5G function on / off state switching module is referred to as the switching module. Figure 3 The switching module in the subsequent figures is also the abbreviation of the on / off state switching module of the 5G function.

[0070] In the following embodiments, the battery module, the switching module, and the wireless transceiver module are all modules inside the electronic device A, and the network server is a remote device connected to the electronic device A via a network.

[0071] In the following embodiments, the switching module may be located in an Android processor of the electronic device, and the wireless transceiver module may be located in a baseband processor of the electronic device.

[0072] Figure 3 This is a flowchart illustrating an exemplary embodiment of a method for switching the on / off state of a 5G function. Figure 3 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0073] S301. When the switch state of the 5G function is on, the battery module in the electronic device A monitors the battery power of the electronic device.

[0074] S302: When the battery power level is lower than the power threshold threshold 1, the battery module sends a notification to the switching module that the battery power level is lower than the power threshold.

[0075] For example, a notification that the battery level is below a power threshold can be represented as Lower_Power.

[0076] S303. After receiving the notification that the battery power is lower than the power threshold, the switching module checks the current screen status. If the screen is currently on, records the flag need_close_5G as true, and listens for the screen off notification.

[0077] It should be noted that if the screen is currently off, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, execute step S306.

[0078] S304: The switching module receives the screen-off notification and checks the flag need_close_5G.

[0079] S305: If the flag need_close_5G is still true and condition a is satisfied, the switching module waits for T11 time.

[0080] It should be noted that if the flag need_close_5G is still true but condition a is not met, the switching module needs to wait until condition a is met and then wait for time T11.

[0081] T11 is greater than or equal to 0. If T11 is 0, the command is executed immediately without waiting.

[0082] Condition a can be: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0083] S306: After waiting for T11 time, the switching module sends an instruction to the wireless transceiver module to disable the 5G capability.

[0084] S307: The wireless transceiver module receives the instruction to turn off the 5G capability, turns off the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0085] Among them, the network server here is used to process 5G services.

[0086] S308. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0087] The 5G capability update request is used to notify the network server of the 5G capability information in the current electronic device A, and instruct the network server to update the 5G capability information of electronic device A recorded locally on the network server, so that the 5G capability information of electronic device A recorded on the network server side and the electronic device A side remains consistent.

[0088] The role of the 5G capability update request in subsequent embodiments is the same and will not be repeated hereafter.

[0089] S309. The network server returns a first response message to the wireless transceiver module. The first response message is used to inform electronic device A that the network server has synchronized the 5G capability information of electronic device A. In this way, it can be ensured that the 5G capability information of electronic device A recorded in the network server is consistent with that recorded in electronic device A.

[0090] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the off state.

[0091] Figure 4 This is a flow chart showing an exemplary embodiment of a method for switching the on / off state of a 5G function. Figure 4 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0092] S401. When the switch state of the 5G function is off, the battery module in the electronic device A monitors the battery power of the electronic device.

[0093] S402: When the battery power level is higher than the power threshold threshold 2, the battery module sends a notification to the switching module that the battery power level is higher than the power threshold.

[0094] For example, a notification that the battery level is above a power threshold can be represented as High_Power.

[0095] The power threshold threshold 2 may be equal to the aforementioned power threshold threshold 1 .

[0096] S403. After receiving the notification that the battery power is higher than the power threshold, the switching module checks the current screen status. If the screen is currently on, records the flag need_close_5G as true, and listens for the screen off notification.

[0097] It should be noted that if the screen is currently off, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, execute step S406.

[0098] S404: The switching module receives a screen-off notification and checks the flag need_close_5G.

[0099] S405. If the flag need_close_5G is still true and the conditions for restoring 5G capability by turning off the screen are met, the switching module waits for T12 time.

[0100] It should be noted that if the flag need_close_5G is still true, but the conditions for restoring 5G capability are not met, the switching module needs to wait until the conditions for restoring 5G capability by turning off the screen are met and then wait for T12 time.

[0101] T12 is greater than or equal to 0. If T12 is 0, the command is executed immediately without waiting.

[0102] Among them, the conditions for restoring 5G capabilities when the screen is turned off may be: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0103] S406: After waiting for T12 time, the switching module sends an instruction to restore 5G capability to the wireless transceiver module.

[0104] S407 : The wireless transceiver module receives the instruction to restore the 5G capability, turns on the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0105] Network servers are used to process 5G services.

[0106] S408. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0107] S409. The network server returns a second response message to the wireless transceiver module. The second response message is used to inform electronic device A that the 5G capability information of electronic device A has been synchronized.

[0108] The process of this embodiment ends, and the switch state of the 5G function in electronic device A is switched to the on state.

[0109] If the screen of the electronic device is off, it means that the user is not using the screen of the electronic device. If the electronic device is not in a call or navigation state, it means that the user is not using the electronic device for a call or navigation. Figure 3 The illustrated embodiments and Figure 4 In the illustrated embodiment, performing the operation of switching the on / off state of the 5G function when the electronic device screen is off and there is no call or navigation can avoid affecting the user's calls, navigation, and use of the electronic device screen, thereby improving the user experience.

[0110] Figure 5This is a flowchart of Example 3 of a method for switching the on / off state of a 5G function. Figure 5 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0111] S501: When the switch state of the 5G function is on, the battery module in the electronic device A monitors the battery power of the electronic device.

[0112] S502: When the battery power level is lower than the power threshold threshold 1, the battery module sends a notification to the switching module that the battery power level is lower than the power threshold.

[0113] For example, a notification that the battery level is below a power threshold can be represented as Lower_Power.

[0114] S503. After receiving the notification that the battery power is lower than the power threshold, the switching module checks the foreground application identifier UID. If the foreground application UID is in the whitelist, the identifier need_close_5G is recorded as true, and the application status change notification is monitored.

[0115] It should be noted that there may be one or more applications in the foreground, and one or more applications in the foreground may be in the whitelist.

[0116] The applications in the whitelist are pre-set. As long as the applications in the whitelist are in the foreground, switching the 5G function on or off is not allowed.

[0117] It should be noted that if none of the foreground applications are in the whitelist, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, step S506 is executed.

[0118] S504: The switching module receives a notification that an application in the whitelist in the foreground is switched to the background, and checks the flag need_close_5G.

[0119] It should be noted that each foreground application in the whitelist must be monitored, and the switching module will only check the flag need_close_5G after receiving the notification that all whitelisted applications in the foreground have switched to the background.

[0120] S505: If the flag need_close_5G is still true and condition a is satisfied, the switching module waits for T21 time.

[0121] It should be noted that if the flag need_close_5G is still true but condition a is not met, the switching module needs to wait until condition a is met and then wait for time T21.

[0122] T21 is greater than or equal to 0. If T21 is 0, the command is executed immediately without waiting.

[0123] Condition a may include: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0124] S506: After waiting for T21 time, the switching module sends an instruction to the wireless transceiver module to disable the 5G capability.

[0125] S507 : The wireless transceiver module receives the instruction to turn off the 5G capability, turns off the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0126] Among them, the network server here is used to process 5G services.

[0127] S508. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0128] S509. The network server returns a first response message to the wireless transceiver module. The first response message is used to inform electronic device A that the 5G capability information of electronic device A has been synchronized.

[0129] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the off state.

[0130] Figure 6 This is a flowchart illustrating an exemplary embodiment of a method for switching the on / off state of a 5G function. Figure 6 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0131] S601: When the switch state of the 5G function is off, the battery module in the electronic device A monitors the battery power of the electronic device.

[0132] S602: When the battery power level is higher than the power threshold threshold 2, the battery module sends a notification to the switching module that the battery power level is higher than the power threshold.

[0133] For example, a notification that the battery level is above a power threshold can be represented as High_Power.

[0134] S603. After receiving the notification that the battery power is higher than the power threshold, the switching module checks the foreground application identifier UID. If the foreground application UID is in the whitelist, it records the identifier need_close_5G as true and listens for application status change notifications.

[0135] It should be noted that there may be one or more applications in the foreground, and one or more applications in the foreground may be in the whitelist.

[0136] The applications in the whitelist are pre-set. As long as the applications in the whitelist are in the foreground, switching the 5G function on or off is not allowed.

[0137] It should be noted that if none of the foreground applications are in the whitelist, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, execute step S606.

[0138] S604: The switching module receives a notification that an application in the whitelist in the foreground is switched to the background, and checks the flag need_close_5G.

[0139] It should be noted that each foreground application in the whitelist must be monitored, and the switching module will only check the flag need_close_5G after receiving the notification that all whitelisted applications in the foreground have switched to the background.

[0140] S605: If the flag need_close_5G is still true and condition a is satisfied, the switching module waits for T22 time.

[0141] It should be noted that if the flag need_close_5G is still true but condition a is not met, the switching module needs to wait until condition a is met and then wait for time T22.

[0142] T22 is greater than or equal to 0. If T22 is 0, the command is executed immediately without waiting.

[0143] Condition a may include: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0144] S606: After waiting for T22 time, the switching module sends an instruction to restore 5G capability to the wireless transceiver module.

[0145] S607: The wireless transceiver module receives the instruction to restore the 5G capability, turns on the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0146] Among them, the network server here is used to process 5G services.

[0147] S608. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A locally on the network server.

[0148] S609. The network server returns a second response message to the wireless transceiver module. The second response message is used to inform electronic device A that the 5G capability information of electronic device A has been synchronized.

[0149] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the on state.

[0150] In actual applications, a whitelist can be set as needed. For example, applications that the user does not want to be disturbed can be set in the whitelist. Figure 5 The illustrated embodiments and Figure 6 In the illustrated embodiment, performing the operation of switching the on / off state of the 5G function when no application that the user does not want to be disturbed is running in the foreground of the electronic device can avoid affecting the use of the application that the user does not want to be disturbed, thereby improving the user experience.

[0151] Figure 7 This is a flowchart of Example 5 of the method for switching the on / off state of a 5G function. Figure 7 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0152] S701. When the switch state of the 5G function is off, the battery module in the electronic device A monitors the battery power of the electronic device.

[0153] S702: When the battery power level is lower than the power threshold threshold 1, the battery module sends a notification to the switching module that the battery power level is lower than the power threshold.

[0154] For example, a notification that the battery level is below a power threshold can be represented as Lower_Power.

[0155] S703. After receiving the notification that the battery power is lower than the power threshold, the switching module obtains the data rate of the electronic device. If the data rate is greater than the data rate threshold Speed_Threshold31, the flag need_close_5G is recorded as true, and the data rate change notification is monitored.

[0156] It should be noted that, if the data rate is less than or equal to the data rate threshold Speed_Threshold31, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, step S706 is executed.

[0157] S704: The switching module receives a notification that the data rate is less than or equal to the data rate threshold Speed_Threshold31, and checks the flag need_close_5G.

[0158] S705: If the flag need_close_5G is still true and condition a is met, the switching module waits for T31 time.

[0159] It should be noted that if the flag need_close_5G is still true but condition a is not met, the switching module needs to wait until condition a is met and then wait for time T31.

[0160] T31 is greater than or equal to 0. If T31 is 0, the command is executed immediately without waiting.

[0161] Condition a may include: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0162] S706: After waiting for T31 time, the switching module sends an instruction to the wireless transceiver module to disable the 5G capability.

[0163] It should be noted that if T31 is greater than 0, then after waiting for T31 time, the data rate needs to be judged again, and the instruction can be sent only after the data rate condition is met.

[0164] S707: The wireless transceiver module receives the instruction to turn off the 5G capability, turns off the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0165] Among them, the network server here is used to process 5G services.

[0166] S708. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0167] S709. The network server returns a first response message to the wireless transceiver module. The first response message is used to inform electronic device A that the 5G capability of electronic device A has been synchronized.

[0168] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the off state.

[0169] In another embodiment, step S703 can be replaced by: upon receiving a notification that the battery charge is below a charge threshold, the switching module obtains the data rate of the electronic device. If the data rate is non-zero, the flag bit need_close_5G is recorded as true, and the device monitors for data rate change notifications. Accordingly, step S704 can be replaced by: upon receiving a notification that the data rate is zero, the switching module checks the flag bit need_close_5G.

[0170] Figure 8 This is a flowchart illustrating an exemplary embodiment of a method for switching the on / off state of a 5G function. Figure 7 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0171] S801. When the switch state of the 5G function is on, the battery module in the electronic device A monitors the battery power of the electronic device.

[0172] S802: When the battery power level is higher than the power threshold threshold 2, the battery module sends a notification to the switching module that the battery power level is higher than the power threshold.

[0173] For example, a notification that the battery level is above a power threshold can be represented as High_Power.

[0174] S803. After receiving the notification that the battery power is higher than the power threshold, the switching module obtains the data rate of the electronic device. If the data rate is greater than the data rate threshold Speed_Threshold31, the flag need_close_5G is recorded as true, and the data rate change notification is listened for.

[0175] It should be noted that, if the data rate is less than or equal to the data rate threshold Speed_Threshold31, the electronic device does not need to record the identification bit need_close_5G, but directly determines whether condition a is met. If so, step S806 is executed.

[0176] S804: The switching module receives a notification that the data rate is less than or equal to the data rate threshold Speed_Threshold31, and checks the flag need_close_5G.

[0177] S805: If the flag need_close_5G is still true and condition a is met, the switching module waits for T32 time.

[0178] It should be noted that if the flag need_close_5G is still true but condition a is not met, the switching module needs to wait until condition a is met and then wait for T32 time.

[0179] T32 is greater than or equal to 0. If T32 is 0, the command is executed immediately without waiting.

[0180] Condition a may include: the electronic device is not in a call state, and / or the electronic device is not in a navigation state.

[0181] S806. After waiting for T32 time, the switching module sends an instruction to restore 5G capability to the wireless transceiver module.

[0182] It should be noted that if T32 is greater than 0, then after waiting for T32 time, the data rate needs to be judged again, and the instruction can be sent only after the data rate conditions are met.

[0183] S807. The wireless transceiver module receives the instruction to restore the 5G capability, turns on the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0184] Among them, the network server here is used to process 5G services.

[0185] S808. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0186] S809. The network server returns a second response message to the wireless transceiver module. The second response message is used to inform electronic device A that the 5G capability of electronic device A has been synchronized.

[0187] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the on state.

[0188] In another embodiment, step S803 described above can be replaced by: upon receiving a notification that the battery charge level is below a charge threshold, the switching module obtains the data rate of the electronic device. If the data rate is non-zero, the flag bit need_close_5G is recorded as true, and the device monitors for data rate change notifications. Accordingly, step S804 described above can be replaced by: upon receiving a notification that the data rate is zero, the switching module checks the flag bit need_close_5G.

[0189] The data rate of an electronic device reflects the degree to which the user's current usage scenario relies on mobile data. A low data rate indicates that the user's current usage scenario relies less on mobile data. A high data rate indicates that the user's current usage scenario relies more on mobile data. Figure 7 The illustrated embodiments and Figure 8In the illustrated embodiment, performing the operation of switching the on / off state of the 5G function when the data rate of the electronic device is low can largely avoid affecting the user's use of the electronic device, thereby improving the user's experience.

[0190] Figure 9 This is a flowchart of Example 7 of the method for switching the on / off state of a 5G function. Figure 9 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0191] S901. When the switch state of the 5G function is on, the battery module in the electronic device A monitors the battery power of the electronic device.

[0192] S902: When the battery power is lower than the power threshold threshold 1, the battery module sends a notification to the switching module that the battery power is lower than the power threshold.

[0193] For example, a notification that the battery level is below a power threshold can be represented as Lower_Power.

[0194] S903. After receiving the notification that the battery power is lower than the power threshold, the switching module obtains the RRC (Radio Resource Control) link status of the electronic device. If it is in the connected state (Connect), the flag need_close_5G is recorded as true, and the RRC link status change notification is listened for.

[0195] It should be noted that in this step, if the RRC link state is idle (IDLE), the electronic device does not need to record the identification bit need_close_5G, but directly executes step S906.

[0196] S904: The handover module detects that the RRC link state is idle and checks the flag need_close_5G.

[0197] S905: If the flag need_close_5G is still true, the switching module waits for T41 time.

[0198] T41 is greater than or equal to 0. If T41 is 0, the command is executed immediately without waiting.

[0199] S906. After waiting for T41 time, the switching module sends an instruction to the wireless transceiver module to disable the 5G capability.

[0200] It should be noted that if T41 is greater than 0, after waiting for T41 time, it is necessary to judge the RRC link status again, and send the instruction if it is in the idle state.

[0201] S907: The wireless transceiver module receives the instruction to turn off the 5G capability, turns off the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0202] S908. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0203] S909. The network server returns a first response message to the wireless transceiver module. The first response message is used to inform electronic device A that the 5G capability of electronic device A has been synchronized.

[0204] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the off state.

[0205] Figure 10 This is a flowchart of an exemplary embodiment of the 5G function on / off state switching method. Figure 10 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0206] S1001. When the switch state of the 5G function is off, the battery module in the electronic device A monitors the battery power of the electronic device.

[0207] S1002: When the battery power level is higher than a power threshold value threshold2, the battery module sends a notification to the switching module that the battery power level is higher than the power threshold value.

[0208] S1003. After receiving the notification that the battery power is higher than the power threshold, the switching module obtains the RRC link status of the electronic device. If it is in the connected state (Connect), it records the flag need_close_5G as true and listens for RRC link status change notifications.

[0209] It should be noted that in this step, if the RRC link state is idle (IDLE), the electronic device does not need to record the identification bit need_close_5G, but directly executes step S1006.

[0210] S1004: The handover module detects that the RRC link state is idle and checks the flag need_close_5G.

[0211] S1005: If the flag need_close_5G is still true, the switching module waits for T42 time.

[0212] T42 is greater than or equal to 0. If T42 is 0, the command is executed immediately without waiting.

[0213] S1006. After waiting for T42 time, the switching module sends an instruction to restore 5G capability to the wireless transceiver module.

[0214] It should be noted that if T42 is greater than 0, after waiting for T42 time, it is necessary to judge the RRC link status again, and send the instruction if it is in the idle state.

[0215] S1007. The wireless transceiver module receives the instruction to restore the 5G capability, turns on the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0216] S1008. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0217] S1009. The network server returns a second response message to the wireless transceiver module. The second response message is used to inform electronic device A that the 5G capability of electronic device A has been synchronized.

[0218] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the on state.

[0219] The RRC link status can reflect whether the user's current usage scenario is using mobile data. That is, if the RRC link status is idle, it means that the current user usage scenario is not using mobile data. If the RRC link status is connected, it means that the current user usage scenario is using mobile data. Figure 9 The illustrated embodiments and Figure 10 In the illustrated embodiment, performing the operation of switching the on / off state of the 5G function when the RRC link state of the electronic device is idle can avoid affecting the user's use of mobile data, thereby improving the user's experience.

[0220] Figure 11 This is a flowchart of Example 9 of a method for switching the on / off state of a 5G function. Figure 11 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0221] S1101. When the switch state of the 5G function is on, the battery module in electronic device A monitors the battery power of the electronic device.

[0222] S1102: When the battery power is lower than the power threshold threshold 1, the battery module sends a notification to the switching module that the battery power is lower than the power threshold.

[0223] S1103. After receiving the notification that the battery power is lower than the power threshold, the switching module detects whether the person is close to electronic device A. If so, the flag need_close_5G is recorded as true, and periodically detects whether the person is close to electronic device A.

[0224] It should be noted that, in this step, if it is detected that a person is not close to electronic device A, the electronic device does not need to record the identification bit need_close_5G, but directly executes step S1106.

[0225] The method for detecting whether a person is close to electronic device A may be: calling an AI module in electronic device A to detect whether a person is close to electronic device A.

[0226] In one example, the AI ​​module can detect whether a person is approaching electronic device A through ultrasonic technology.

[0227] In another example, the AI ​​module can detect whether a person is approaching electronic device A through infrared technology.

[0228] In yet another example, the AI ​​module may detect whether a person is approaching electronic device A through proximity light detection technology.

[0229] S1104: The switching module detects that the person is not close to the electronic device A and checks the flag need_close_5G.

[0230] S1105: If the flag need_close_5G is still true, the switching module waits for T51 time.

[0231] T51 is greater than or equal to 0. If T51 is 0, the command is executed immediately without waiting.

[0232] S1106: After waiting for T51, the switching module sends an instruction to the wireless transceiver module to disable the 5G capability.

[0233] It should be noted that if T51 is greater than 0, after waiting for T51 time, it is necessary to judge again whether the person is close to the electronic device, and send the instruction again if not.

[0234] S1107. The wireless transceiver module receives the instruction to turn off the 5G capability, turns off the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0235] S1108. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0236] S1109. The network server returns a first response message to the wireless transceiver module. The first response message is used to inform electronic device A that the 5G capability of electronic device A has been synchronized.

[0237] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the off state.

[0238] Figure 12 This is a flowchart of Example 10 of a method for switching the on / off state of a 5G function. Figure 12 In an embodiment of the present application, the method for switching the on / off state of the 5G function may include the following steps:

[0239] S1201. When the switch state of the 5G function is off, the battery module in the electronic device A monitors the battery power of the electronic device.

[0240] S1202: When the battery power level is higher than the power threshold threshold 2, the battery module sends a notification to the switching module that the battery power level is higher than the power threshold.

[0241] S1203. After receiving the notification that the battery power is higher than the power threshold, the switching module detects whether the person is close to electronic device A. If so, it records the flag need_close_5G as true and periodically detects whether the person is close to electronic device A.

[0242] It should be noted that, in this step, if it is detected that a person is not close to electronic device A, the electronic device does not need to record the identification bit need_close_5G, but directly executes step S1206.

[0243] The method for detecting whether a person is close to electronic device A may be: calling an AI module in electronic device A to detect whether a person is close to electronic device A.

[0244] The AI ​​module can detect whether a person is approaching electronic device A by using any of the following technologies: ultrasonic technology, infrared technology, proximity light detection technology, etc.

[0245] S1204: The switching module detects that the person is not close to the electronic device A and checks the flag need_close_5G.

[0246] S1205: If the flag need_close_5G is still true, the switching module waits for T52 time.

[0247] T52 is greater than or equal to 0. If T52 is 0, the command is executed immediately without waiting.

[0248] S1206: After waiting for T52, the switching module sends an instruction to restore the 5G capability to the wireless transceiver module.

[0249] It should be noted that if T52 is greater than 0, after waiting for T52 time, it is necessary to judge again whether the person is close to the electronic device, and send the instruction again if not.

[0250] S1207. The wireless transceiver module receives the instruction to restore the 5G capability, turns on the 5G capability of electronic device A, and sends a 5G capability update request to the remote network server.

[0251] S1208. After receiving the 5G capability update request, the network server updates the 5G capability information of electronic device A recorded locally on the network server.

[0252] S1209. The network server returns a second response message to the wireless transceiver module. The second response message is used to inform electronic device A that the 5G capability information of electronic device A has been synchronized.

[0253] After the process of this embodiment is completed, the switch state of the 5G function in electronic device A is switched to the on state.

[0254] Whether a person is close to an electronic device can reflect to a certain extent whether the user is using the electronic device. That is, if the person is not close to the electronic device, it means that the probability that the current user is using the electronic device is low, and if the person is close to the electronic device, it means that the probability that the current user is using the electronic device is high. Figure 11 The illustrated embodiments and Figure 12 In the illustrated embodiment, performing the operation of switching the on / off state of the 5G function when it is detected that a person is not approaching the electronic device can largely avoid affecting the user's use of the electronic device, thereby improving the user's experience.

[0255] In an example, the on / off state of the 5G function can be switched in different time periods using the aforementioned different embodiments.

[0256] An embodiment of the present application also provides an electronic device, which includes a memory and a processor, the memory being coupled to the processor, and the memory storing program instructions. When the program instructions are executed by the processor, the electronic device implements a method for switching the on / off state of the 5G function executed by the aforementioned electronic device.

[0257] It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0258] This embodiment also provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the above-mentioned related method steps to implement the on-off state switching method of the 5G function in the above-mentioned embodiment.

[0259] This embodiment also provides a computer program product. When the computer program product runs on a computer, it enables the computer to execute the above-mentioned related steps to implement the on-off state switching method of the 5G function in the above-mentioned embodiment.

[0260] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the on-off state switching method of the 5G function in the above-mentioned method embodiments.

[0261] Among them, the electronic device, computer storage medium, computer program product or chip provided in this embodiment is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0262] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0263] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of modules or units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0264] Units described as separate components may or may not be physically separate, and components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0265] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.

[0266] Any content of each embodiment of this application, as well as any content of the same embodiment, can be freely combined. Any combination of the above content is within the scope of this application.

[0267] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0268] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

[0269] The steps of the method or algorithm described in conjunction with the disclosure of the embodiments of the present application can be implemented in a hardware manner, or can be implemented by a processor executing a software instruction. The software instruction can be composed of corresponding software modules, and the software module can be stored in a random access memory (Random Access Memory, RAM), a flash memory, a read-only memory (Read Only Memory, ROM), an erasable programmable read-only memory (Erasable Programmable ROM, EPROM), an electrically erasable programmable read-only memory (Electrically EPROM, EEPROM), a register, a hard disk, a mobile hard disk, a read-only compact disc (CD-ROM) or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor so that the processor can read information from the storage medium and can write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an ASIC.

[0270] Those skilled in the art will appreciate that in one or more of the above examples, the functions described in the embodiments of the present application can be implemented using hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0271] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.

Claims

1. A method for switching the on / off state of a 5G function, characterized in that: Used in electronic equipment, including: Receiving a first notification at a first moment, the first notification being used to indicate that a current power level exceeds a preset power level range, and at the first moment, a switch state of a 5G function of the electronic device is a first state; If the electronic device meets a preset switching delay condition at the first moment, a switching mark is set; the switching mark is used to identify the on / off state of the delayed switching 5G function; the switching delay condition indicates that the electronic device is in use; At a second moment, the electronic device satisfies a delay end condition corresponding to the switching delay condition, the second moment being later than the first moment; the delay end condition indicating that the electronic device is in an unused state; If the switching flag is still valid at the second moment, after a first time period, switching the state of the 5G function in the electronic device to a second state opposite to the first state; If the switching flag is still valid at the second moment, after a first time period, switching the state of the 5G function in the electronic device to a second state opposite to the first state includes: If the switching flag is still valid at the second moment, determining whether the electronic device meets a first condition at the second moment, the first condition being that the electronic device is not in a call state and / or is not in a navigation state; If the condition is met, after a first period of time, the state of the 5G function in the electronic device is switched to a second state opposite to the first state.

2. The method according to claim 1, wherein: The switching delay condition is: the display screen of the electronic device is in a bright screen state; The delay end condition is: the electronic device receives a screen-off notification.

3. The method according to claim 1, wherein: The switching delay condition is: m target applications among the foreground applications of the electronic device belong to a preset whitelist; m is a natural number greater than or equal to 1; The delay end condition is: receiving notifications corresponding to the m target applications switching to the background.

4. The method according to claim 1, wherein: The switching delay condition is: the data rate of the electronic device is non-zero; The delay end condition is: the data rate of the electronic device is zero.

5. The method according to claim 1, wherein: The switching delay condition is: the data rate of the electronic device is greater than a preset data rate threshold; The delay end condition is: the data rate of the electronic device is less than or equal to the data rate threshold.

6. The method according to claim 1, characterized in that The preset power range is greater than or equal to the first power threshold, and the current power exceeds the preset power range, which means that the current power is less than the first power threshold; the first state is the on state, and the second state is the off state.

7. The method according to claim 1, characterized in that The preset power range is less than or equal to the second power threshold, and the current power exceeds the preset power range, which means that the current power is greater than the second power threshold; the first state is the off state, and the second state is the on state.

8. The method according to claim 1, characterized in that The first duration is greater than or equal to 0.

9. The method according to claim 1, characterized in that After switching the state of the 5G function in the electronic device to a second state opposite to the first state, the method further includes: The switching flag is canceled.

10. The method according to claim 9, characterized in that Setting the switching flag includes: setting the value of the switching flag bit to a first value; The switching mark is still valid, including: the value of the switching identification bit is still the first value; Canceling the switching mark includes: setting the value of the switching identification bit to a second value, where the second value is different from the first value.

11. An electronic device, characterized in that: include: a memory and a processor, the memory being coupled to the processor; The memory stores program instructions, and when the program instructions are executed by the processor, the electronic device executes the 5G function switch state switching method described in any one of claims 1-10.

12. A computer-readable storage medium comprising a computer program, characterized in that When the computer program runs on an electronic device, the electronic device executes the 5G function switch state switching method as described in any one of claims 1 to 10.

Citation Information

Patent Citations

  • Terminal equipment and communication method

    CN112954730A

  • Program data updating method, electronic equipment and computer storage medium

    CN112988213A

  • Electronic device and control method

    CN113853585A

  • Power consumption control method, intelligent terminal and storage medium

    CN114126015A