Function management method, electronic equipment and storage medium

By monitoring the usage time of the electronic device functional module and reminding the user to turn it off when the preset conditions are met, the problem of power consumption caused by unused function modules for a long time is solved, and the battery life of the device is improved.

CN119449942AActive Publication Date: 2025-02-14HONOR DEVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202310978396.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-03
Publication Date
2025-02-14
Estimated Expiration
2043-08-03

AI Technical Summary

Technical Problem

Some functional modules in electronic devices have not been used for a long time and continue to consume power, which affects the battery life of the device.

Method used

By monitoring the last time of use of the function module, calculate the duration of unused service. When the preset conditions are met, a notification reminder window is displayed to remind the user to close the function module to save power.

Benefits of technology

It effectively reduces the power consumption of electronic devices, improves the battery life of the device, and avoids unnecessary power consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449942A_ABST
    Figure CN119449942A_ABST
Patent Text Reader

Abstract

The invention provides a function management method, electronic equipment and a storage medium, and relates to the technical field of computers. The method is applied to the electronic equipment, and the specific implementation scheme is as follows: after a first preset duration when a specified function module is started is determined, querying the last use moment of the specified function module; determining the continuous unused duration of the specified function module based on the last use moment; in response to the situation that the continuous unused duration meets the preset condition, a first notification reminding window is displayed or the specified function module is closed, a second notification reminding window is displayed, the first notification reminding window is used for reminding a user to close the specified function module, and the second notification reminding window is used for reminding the user that the specified function module is closed. Therefore, the endurance level of the electronic equipment can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a function management method, an electronic device and a storage medium. Background Art

[0002] At present, with the continuous update and iteration of electronic devices such as mobile phones, electronic devices have more and more functions. Some functions of electronic devices, such as voice wake-up, breath wake-up, Near Field Communication (NFC), Bluetooth, smart sensing and other functions, will continuously consume power and affect the battery life of electronic devices. Summary of the invention

[0003] The embodiment of the present application provides a function management method, an electronic device and a storage medium to improve the battery life of the electronic device. The specific technical solution is as follows:

[0004] In a first aspect, an embodiment of the present application provides a function management method, which is applied to an electronic device, and the method includes:

[0005] After determining the first preset duration that the designated function module is turned on, query the last time the designated function module was used; determine the continuous non-use duration of the designated function module based on the last time of use; in response to the continuous non-use duration satisfying the preset conditions, display a first notification reminder window, or close the designated function module and display a second notification reminder window, the first notification reminder window is used to remind the user to close the designated function module, and the second notification reminder window is used to remind the user that the designated function module has been closed.

[0006] In this way, after determining the first preset time that the designated function module is turned on, the electronic device determines the continuous non-use time of the function according to the last time the designated function module was used. When the continuous non-use time meets the preset condition, it means that the designated function module has not been used for a long time, that is, the user may not use the designated function module frequently, so the electronic device can display the first notification reminder window to remind the user to turn off the designated function module, or the electronic device turns off the designated function module and displays the second notification reminder window to avoid the designated function module consuming power and affecting the battery life of the electronic device.

[0007] In one possible implementation, the prompt information is used to remind the user to close the specified function module, and the notification reminder window also includes a first control, a second control and a third control; after displaying the notification reminder window, the method also includes: in response to the user's operation on the first control, closing the specified function module; in response to the user's operation on the second control, stopping displaying the notification reminder window and canceling the closing reminder function for the specified function module; in response to the user's operation on the third control, displaying the function details interface of the specified function module.

[0008] The first control may be displayed as "Agree to Close" in the first notification reminder window; the second control may be displayed as "Ignore" in the first notification reminder window; and the third control may be displayed as "More" in the first notification reminder window.

[0009] In this way, the first notification reminder window includes the first control, the second control and the third control. The user can flexibly and conveniently process the first notification reminder window by clicking the first control, the second control or the third control, so that the electronic device processes the designated functional module in accordance with the user's wishes. If the user clicks the first control, the electronic device can turn off the designated functional module, which can reduce the power consumption of the electronic device and improve the battery life of the electronic device; if the user clicks the second control, it means that the user does not want to turn off the designated functional module, and the shutdown reminder function for the designated functional module is turned off, which can avoid pushing the shutdown reminder for the designated functional module to the user later; if the user clicks the third control, the details of the designated functional module can be quickly viewed, which is convenient for the user to make a decision.

[0010] In a possible implementation, the function details interface includes a switch control; after displaying the function details interface of the specified function module, the method further includes: in response to the user's closing operation of the switch control, closing the specified function module. When the display interface of the electronic device jumps to the function details interface, it is convenient for the user to view the details of the specified function module to assist the user in deciding whether to use the specified function module in the near future. If the user determines that the specified function module can be closed, the user can choose to click the switch control to make the electronic device close the specified function module, so as to achieve the purpose of reducing the power consumption of the electronic device and improving the battery life of the electronic device.

[0011] In one possible implementation, the second notification reminder window includes a fourth control; after closing the specified function module and displaying the second notification reminder window, the method also includes: in response to the user's operation on the fourth control, displaying the function details page of the specified function module, the function details interface including a switch control; in response to the user's turning on operation of the switch control, turning on the specified function module.

[0012] As an example, the fourth control may appear as “more” in the second notification reminder window.

[0013] In this way, when the electronic device detects that a function has not been used for a long time, it can directly turn off the function, which can reduce the power consumption of the electronic device and improve the battery life, and display the fourth control in the second notification reminder window, so that the user can flexibly choose whether to reopen the specified function module.

[0014] In one possible implementation, the second notification reminder window also includes a fifth control; after closing the specified function module and displaying the second notification reminder window, the method also includes: in response to the user's operation on the fifth control, turning on the specified function module, and canceling the closing reminder function of the specified function module.

[0015] As an example, the fifth control may appear as “Resume” in the second notification reminder window.

[0016] In this way, by displaying the fifth control in the second notification reminder window, it is convenient for the user to reopen the designated function module that was automatically closed, and for the designated function module that the user wants to be in a normally open state, the user can keep the designated function module in the open state by clicking the fifth control, and the electronic device can turn off the shutdown reminder function for the designated function module, thereby avoiding displaying the notification reminder window for the designated function module again, avoiding disturbing the user, and meeting user needs.

[0017] In one possible implementation, after determining the continuous non-use duration of the specified functional module based on the last use time, the method further includes: determining whether the continuous non-use duration meets a preset condition; if not, after a second preset time, returning to the step of querying the last use time of the specified functional module.

[0018] In this way, when the electronic device determines that the continuous non-use time does not meet the preset condition, it will query the last use time of the specified functional module again after the second preset time. The electronic device can continuously monitor the continuous non-use time of the specified functional module, and when the continuous non-use time meets the preset condition, the electronic device promptly displays the first notification reminder window or the first notification reminder window to the user.

[0019] In one possible implementation, after determining the first preset duration that the specified function module is turned on, and before querying the last time the specified function module was used, the method also includes: monitoring whether the specified function module is turned on; or, receiving a notification reported by the specified function module that the specified function module has been turned on.

[0020] Through the above two methods, the electronic device can obtain the switch state change of the specified functional module in real time, and then the electronic device can accurately obtain the time when the specified functional module is turned on.

[0021] In a possible implementation, the method further includes: obtaining a usage notification reported by a specified functional module, the usage notification including an identifier of the specified functional module and a usage status, the usage status being start of use or end of use; based on the usage notification, recording the reported usage status and usage time in the usage record information of the specified functional module;

[0022] Querying the last time a specified function module was used includes: querying the last time a specified function module was used from usage record information.

[0023] In this way, since the electronic device has already generated the usage record information in advance, the last usage time of the specified functional module can be quickly and accurately queried, thereby improving the data query efficiency.

[0024] In a possible implementation, querying the last time the designated function module was used includes: querying the last time the designated function module was used from the designated function module. In this way, the electronic device can accurately obtain the last time of use from the designated function module.

[0025] In a possible implementation, the preset condition is that the continuous non-use time reaches a time baseline value; or, the preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the specified functional module reaches the power consumption baseline value.

[0026] If the continuous non-use time reaches the duration baseline value, it indicates that the user has not used the designated function module for a long time, and the designated function module has been consuming power, that is, the designated function module consumes more power when not in use. At this time, remind the user to turn off the designated function module or directly turn off the designated function module, which can avoid the continuous power consumption of the designated function module and improve the battery life of the electronic device. If the product of the continuous non-use time and the power consumption value per unit time of the designated function module reaches the power consumption baseline value, that is, the designated function module consumes too much power and the user has not used it for a long time. At this time, remind the user to turn off the designated function module or directly turn off the designated function module, which can avoid the continuous power consumption of the designated function module and improve the battery life of the electronic device.

[0027] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0028] one or more processors and memory;

[0029] The memory is coupled to one or more processors, and the memory is used to store computer program codes, where the computer program codes include computer instructions. The one or more processors call the computer instructions to enable the electronic device to execute the method of the first aspect.

[0030] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, including a computer program, which, when executed on an electronic device, enables the electronic device to execute the function management method of the first aspect.

[0031] In a fourth aspect, an embodiment of the present application provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes the method of the first aspect.

[0032] It should be understood that the second to fourth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0034] Figure 1 It is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application;

[0035] Figure 2 It is a schematic diagram of the software structure of an electronic device provided in an embodiment of the present application;

[0036] Figure 3 A flowchart of a first function management method provided in an embodiment of the present application;

[0037] Figure 4a This is an exemplary schematic diagram of the first notification reminder window provided in an embodiment of the present application;

[0038] Figure 4b is an exemplary schematic diagram of the second notification reminder window provided in an embodiment of the present application;

[0039] Figure 4c is an exemplary schematic diagram of the first function details interface provided in an embodiment of the present application;

[0040] Figure 4d is an exemplary schematic diagram of the second function details interface provided in an embodiment of the present application;

[0041] Figure 5a is an exemplary schematic diagram of the third notification reminder window provided in an embodiment of the present application;

[0042] Figure 5bis an exemplary schematic diagram of the third function details interface provided in an embodiment of the present application;

[0043] Figure 6 is an exemplary schematic diagram of the fourth notification reminder window provided in an embodiment of the present application;

[0044] Figure 7 is an exemplary schematic diagram of the fifth notification reminder window provided in an embodiment of the present application;

[0045] Figure 8 is an exemplary schematic diagram of the sixth notification reminder window provided in an embodiment of the present application;

[0046] Fig. 9 is a flow chart of a second function management method provided in an embodiment of the present application;

[0047] Fig.10 An exemplary schematic diagram of a function management method based on a reporting mechanism provided in an embodiment of the present application;

[0048] Fig.11 An exemplary schematic diagram of a function management method based on an active query mechanism provided in an embodiment of the present application. DETAILED DESCRIPTION

[0049] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.

[0050] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first" and "second" are used to distinguish the same items or similar items with substantially the same functions and effects. For example, the first instruction and the second instruction are to distinguish different user instructions, and their order is not limited. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not necessarily limit them to be different.

[0051] It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.

[0052] The function management method provided in the embodiment of the present application can be applied to electronic devices. For example, the electronic device can be a mobile phone, a tablet computer, a laptop computer, an ultra-mobile personal computer (UMPC), a smart watch, a wearable device, etc. The embodiment of the present application does not limit the type of electronic device.

[0053] Figure 1 A schematic diagram of an electronic device provided in an embodiment of the present application, Figure 1 The electronic device shown may include a processor 110, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a button 190, a motor 191, an indicator 192, cameras 1-N 193, a display screen 194, and subscriber identification module (SIM) card interfaces 1-N 195, etc. Among them, the sensor module 180 may include a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.

[0054] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0055] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor, 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), etc. Different processing units may be independent devices or integrated into one or more processors.

[0056] The controller can be the nerve center and command center of the electronic device. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0057] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0058] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, etc.

[0059] The wireless communication function of the electronic device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.

[0060] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0061] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to electronic devices. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0062] In the application embodiment, the mobile communication module may also be referred to as a cellular module, and the two may be described interchangeably.

[0063] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0064] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (WIFI) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) and the like applied to electronic devices. 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 the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments, at least some functional modules of the wireless communication module 160 can be set in the processor 110.

[0065] In some embodiments of the present application, the electronic device can establish a wireless connection with other electronic devices through the wireless communication module 160 (such as a Bluetooth module and a WLAN module) and the antenna 2 to achieve data transmission between the electronic device and the other electronic devices.

[0066] In some embodiments, the antenna 1 of the electronic device is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time division code division multiple access (TDSCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (QZSS) and / or satellite based augmentation system (SBAS).

[0067] It is understandable that the interface connection relationship between the modules illustrated in the embodiments of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device. In other embodiments of the present application, the electronic device may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0068] The charging management module 140 is used to receive charging input from a charger. While the charging management module 140 is charging the battery 142 , it can also power the electronic device through the power management module 141 .

[0069] The electronic device implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.

[0070] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device may include 1 or N display screens 194 , where N is a positive integer greater than 1.

[0071] The electronic device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0072] The ISP is used to process data fed back by the camera 193. The camera 193 is used to capture static images or videos. In some embodiments, the electronic device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0073] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.

[0074] The electronic device can implement audio functions such as music playing and recording through the audio module 170, speakers, receivers, microphones, headphone jacks, and application processors.

[0075] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device.

[0076] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a screen projection function, a network sharing function, etc.), etc. The data storage area may store data (such as video data, etc.) created during the use of the electronic device, etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0077] The key 190 includes a power key, a volume key, etc. The key 190 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.

[0078] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. Indicator 192 can be an indicator light, which can be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0079] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to or disconnected from the electronic device by inserting the SIM card interface 195 or removing the SIM card interface 195. The electronic device can support 1 or N SIM card interfaces, where N is a positive integer greater than 1.

[0080] The software system of the electronic device may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The present application embodiment takes the Android system of the layered architecture as an example to illustrate the software system of the electronic device. Figure 2 As shown, the layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the hardware abstraction layer, and the hardware layer.

[0081] like Figure 2 As shown, the application layer can be installed with multiple applications, for example, it can include functional modules such as voice wake-up, smart perception, Bluetooth, NFC, and breath wake-up.

[0082] 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. Figure 2 As shown, the application framework layer may include: a unified management module, a content provider, a view system, etc.

[0083] The unified management module is used to monitor the continuous unused time of each functional module of the application layer, and promptly remind the user to close the functional modules that have not been used for a long time.

[0084] The content provider is used to store and obtain data and make the data accessible to the application. The data may include the time when the user uses the above application.

[0085] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build the display interface of an application. The display interface can be composed of one or more views, for example, including views for displaying APP icons and pop-up windows, views for displaying text, and views for displaying images.

[0086] The Hardware Abstraction Layer (HAL) is an interface layer between the operating system kernel and the hardware circuit. Its purpose is to abstract the hardware. It hides the hardware interface details of a specific platform and provides a virtual hardware platform for the operating system, making it hardware-independent and portable on multiple platforms.

[0087] The hardware layer includes, but is not limited to, a positioning component, an acceleration sensor, a gyroscope sensor, and a display screen. The positioning component is used to implement a positioning function. As an example, the positioning component may be a GPS positioning component. The acceleration sensor and the gyroscope sensor may be used to determine the state of the electronic device, that is, whether the electronic device is in motion or in a stationary state.

[0088] Different functions in the above electronic devices consume different amounts of power when they are turned on and not used each hour. The power consumption of each function per hour is shown in Table 1.

[0089] Table 1

[0090] Function Power consumption Voice wake-up 1-3mAh Breath awakening 1mAh NFC 1mAh Bluetooth 0.5mAh Intelligent Perception 2mAh

[0091] Among them, voice wake-up refers to waking up an electronic device through voice commands, so that the electronic device enters the voice recognition and processing mode. Users can activate electronic devices and start corresponding voice interaction functions through predefined specific words or phrases.

[0092] Breath wake-up refers to the function of electronic devices to automatically light up the screen by sensing the user's breathing or the weak airflow generated when the finger is close to the phone.

[0093] NFC enables near-field communication and data exchange between two electronic devices. NFC enables electronic devices, such as smartphones and tablets, to communicate quickly and securely within a very close distance. For example, electronic devices can implement the following functions based on NFC:

[0094] Payment: NFC-enabled electronic devices can complete payments by bringing them close to NFC-enabled terminals.

[0095] Get information: Electronic devices can read information on NFC-enabled devices, such as getting the price of a product, linking to a website, or downloading an application.

[0096] Bluetooth means that two electronic devices with Bluetooth enabled can exchange data or communicate without a network connection. Bluetooth technology is often used to connect mobile phones with other devices, such as headphones, speakers, smart bracelets, etc., to achieve functions such as data transmission, file sharing or calls between mobile phones and other devices.

[0097] Smart perception refers to the ability of electronic devices to sense the environment and respond accordingly through a variety of sensors, algorithms and artificial intelligence technologies. Smart perception can specifically include functions such as location perception, motion perception and environmental perception.

[0098] When the above functional modules are turned on, they will consume power continuously and reduce the battery life of the electronic device.

[0099] In order to solve the above problems, the present application embodiment provides a function management method, such as Figure 3 As shown, the method specifically comprises the following steps:

[0100] S301: After determining a first preset time duration for which a designated functional module is enabled, query the last time the designated functional module is used.

[0101] Among them, the designated function modules are modules that need to be intelligently managed using the function management method provided in the embodiments of the present application. When these modules are turned on, they will continue to consume power regardless of whether they are used in the foreground.

[0102] For example, the designated functional modules may be voice wake-up, breath wake-up, NFC, Bluetooth, smart perception and other functional modules.

[0103] In combination with the above Table 1, the power consumption level of each functional module is different, so the first preset duration corresponding to each designated functional module is also different. For example, the first preset duration corresponding to the NFC functional module may be 30 days; the first preset duration corresponding to the voice wake-up functional module may be 15 days.

[0104] S302: Determine the continuous unused time of the specified functional module based on the last used time.

[0105] The continuous non-use time refers to the time difference between the current time and the last use time, and the current time is the time when the electronic device queries the last use time of the specified functional module.

[0106] For example, the current time is 21:14:30 on July 27, 2023. The electronic device queries the last usage time of the specified functional module at the current time. The last usage time of the specified functional module is 21:14:30 on June 27, 2023. The continuous non-use period is 30 days.

[0107] S303: In response to the continuous non-use time satisfying a preset condition, display a first notification reminder window, or close a specified function module and display a second notification reminder window.

[0108] The first notification reminder window is used to remind the user to close the specified function module, and the second notification reminder window is used to remind the user that the specified function module has been closed.

[0109] With the above method, after determining the first preset time that the designated function module is turned on, the electronic device determines the continuous non-use time of the function according to the last time the designated function module was used. When the continuous non-use time meets the preset condition, it means that the designated function module has not been used for a long time, that is, the user may not use the designated function module frequently, so the electronic device can display a first notification reminder window to remind the user to turn off the designated function module, or the electronic device turns off the designated function module and displays a second notification reminder window to avoid the designated function module consuming power and affecting the battery life of the electronic device.

[0110] In some embodiments of the present application, the first notification reminder window includes a first control, a second control, and a third control.

[0111] Specifically, the first control may be displayed as “Agree to close” in the first notification reminder window; the second control may be displayed as “Ignore” in the first notification reminder window; and the third control may be displayed as “More” in the first notification reminder window.

[0112] The user can choose to process any of the above three controls. There are three specific situations:

[0113] Case 1: in response to the user's operation on the first control, the first notification reminder window is stopped from being displayed, and the designated function module is closed.

[0114] It can be understood that the user's operation on the first control may be an operation of the user clicking the first control, or may be any other operation that can trigger the first control, which is not limited in the embodiments of the present application.

[0115] Take the specified function module as the voice wake-up function as an example, Figure 4a As shown, Figure 4a A first notification reminder window is exemplarily shown, which includes a notification title, a notification time, a prompt message, an "agree to close" control, an "ignore" control, and a "more" control.

[0116] Among them, Figure 4a As shown, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "It is detected that the "Voice Wake-up" function has not been used for more than 1 month. You can turn off this function to improve battery life."

[0117] When the user clicks the "Agree to Close" control, the electronic device is triggered to turn off the voice wake-up function.

[0118] Optionally, after the electronic device closes the specified functional module in response to the user's operation on the first control, a notification message may pop up on the display page, where the notification message is used to inform the user that the specified functional module has been closed.

[0119] As an example, Figure 4b As shown, the notification message includes a notification title, a notification time and information text.

[0120] Among them, the notification title is "Notification Management", the notification time is "1 minute ago", and the information text is "The "Voice Wake-up" function is turned off."

[0121] Case 2: in response to the user's operation on the second control, the first notification reminder window is stopped from being displayed, and the closing reminder function of the designated function module is canceled.

[0122] Among them, the closing reminder function refers to the function of closing the reminder of the specified function module using the function management method provided in the embodiment of the present application.

[0123] Still Figure 4a For example, when the user clicks the "Ignore" control, the electronic device is triggered to stop displaying the first notification reminder window and cancel the closing reminder function of the voice wake-up function.

[0124] Case 3: In response to the user's operation on the third control, a function details interface of the specified function module is displayed.

[0125] Among them, the function details interface includes a switch control, and the user can set the specified function module in the function details interface of the specified function module, or view the detailed content of the specified function module.

[0126] Still Figure 4a For example, when the user clicks the "more" control, the display interface of the electronic device is triggered to jump from the first notification reminder window to the function details interface of the voice wake-up function.

[0127] For another example, if the first notification reminder window is used to remind the user to turn off the NFC function module, after the user clicks the "more" control, the display interface of the electronic device jumps from the first notification reminder window to the NFC function details interface.

[0128] like Figure 4c As shown, Figure 4c The schematic diagram of an NFC function details interface is exemplarily shown. The NFC function details interface includes an NFC switch button, text description, and an NFC function schematic diagram.

[0129] When the dot in the NFC switch button is on the right side of the NFC switch button, it means that NFC is on; when the dot in the NFC switch button is on the left side of the NFC switch button, it means that NFC is off. Users can click the NFC switch button to adjust the on / off state of the NFC function.

[0130] The text instructions are used to guide users to use the NFC function. For example, the text instructions may include: "To perform mobile payment, tap-and-pay, etc., touch the back of this device to the NFC sensing area of ​​another device."

[0131] The function details interface of the NFC function may also include a control for "View NFC card swiping area". It should be noted that the NFC card swiping area is the NFC sensing area, and the user can click "View NFC card swiping area" to trigger the jump control corresponding to "View NFC card swiping area", and then trigger the display interface of the electronic device to jump from the current NFC function details interface to the NFC card swiping area schematic interface.

[0132] For another example, if the first notification reminder window is used to remind the user to turn off the breath wake-up function module, after the user clicks the "More" control, the display interface of the electronic device jumps from the first notification reminder window to the function details interface of the breath wake-up function, such as Figure 4d As shown, Figure 4d The schematic diagram of a function detail interface of a breath awakening function is exemplarily shown. The function detail interface of the breath awakening function includes a breath awakening switch button, text description, and a usage guide diagram of the breath awakening function.

[0133] When the dot in the breath awakening switch button is on the right side of the breath awakening switch button, it means that the breath awakening function is on; when the dot in the breath awakening switch button is on the left side of the breath awakening switch button, it means that the breath awakening function is off. The user can click the breath awakening switch button to adjust the on / off state of the breath awakening function.

[0134] The text instructions are used to guide users to use the breath wake-up function. For example, the text instructions may include: "1. Lift the phone, bring the bottom of the device close to your mouth (about 5 cm away), and speak voice commands directly into the microphone, such as "What's the weather like today?" 2. Wearing a mask or strong winds will affect the wake-up rate. 3. Breath wake-up is not currently supported when the phone speaker is playing sound."

[0135] It should be noted that the usage guidance diagram of the breath wake-up function is used to instruct users to use the breath wake-up function. When the user places the electronic device with the mouth as the horizontal line, within 45 degrees above and below the horizontal line, and the bottom of the electronic device is close to the mouth, the user can wake up the electronic device by breath, and can have a natural conversation with the electronic device, asking and answering questions at the same time, without having to say the wake-up word "Hello xxxx".

[0136] It should be noted that Figure 4c and Figure 4d The function details interface is only used as an example, and this application does not limit the specific form of the NFC and breath wake-up function details interface.

[0137] When the display interface of the electronic device jumps to the function details interface, it is convenient for the user to view the details of the specified function module to assist the user in deciding whether the specified function module needs to be used in the near future. If the user is sure that the specified function module can be turned off, the user can choose to click the switch control to make the electronic device turn off the specified function module, so as to reduce the power consumption of the electronic device and improve the battery life of the electronic device.

[0138] By adopting the above method, the first notification reminder window includes the first control, the second control and the third control. The user can flexibly and conveniently process the first notification reminder window by clicking the first control, the second control or the third control, so that the electronic device processes the designated function module in accordance with the user's wishes. If the user clicks the first control, the electronic device can turn off the designated function module, which can reduce the power consumption of the electronic device and improve the battery life of the electronic device; if the user clicks the second control, it means that the user does not want to turn off the designated function module, and the shutdown reminder function of the designated function module is turned off, which can avoid pushing the shutdown reminder for the designated function module to the user in the future; if the user clicks the third control, the details of the designated function module can be quickly viewed, which is convenient for the user to make a decision.

[0139] In some embodiments of the present application, the second notification reminder window includes a fourth control. After closing the specified function module and displaying the second notification reminder window, the method further includes:

[0140] In response to the user's operation on the fourth control, a function detail page of the specified function module is displayed, and the function detail interface includes a switch control. In response to the user's turning on operation on the switch control, the specified function module is turned on.

[0141] Take the NFC function as an example. Figure 5a As shown, Figure 5a A second notification reminder window is exemplarily shown, and the second notification reminder window includes a notification title, a notification time, prompt information, and a "more" control.

[0142] Among them, Figure 5a As shown, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "It has been detected that the "NFC" function has not been used for more than 1 month, and the function has been turned off to improve battery life."

[0143] When the user clicks the "more" control, the display interface of the electronic device is triggered to jump from the second NFC notification reminder window to the NFC function details interface.

[0144] like Figure 5b As shown, the function details interface of the NFC function includes an NFC switch button, wherein the NFC switch button is the above-mentioned switch control.

[0145] Among them, the user can click the NFC switch button to trigger the electronic device to move the dot in the NFC switch button from the left side of the switch button to the right side of the switch button, thereby re-enabling NFC.

[0146] By adopting the above method, when the electronic device detects that a function has not been used for a long time, the function can be directly turned off, which can reduce the power consumption of the electronic device and improve the battery life. In addition, the fourth control is displayed in the second notification reminder window, so that the user can flexibly choose whether to reopen the specified function module.

[0147] Optionally, the second notification reminder window may also include a fifth control. Accordingly, after the electronic device closes the specified function module and displays the second notification reminder window, the method may further include the electronic device turning on the specified function module and canceling the closing reminder function for the specified function module in response to the user's operation of the fifth control.

[0148] It is understandable that when the user clicks the fifth control, the electronic device can be triggered to turn on the specified function module and cancel the shutdown reminder function of the specified function module. After that, the electronic device no longer pops up the notification reminder window of the specified function module. Specifically, the fifth control can be displayed as "restore" in the second notification reminder window.

[0149] Take the NFC function as an example. Figure 6 As shown, Figure 6 A second notification reminder window is shown as an example. Figure 6 Compared to Figure 5a Added a "Restore" control.

[0150] When the user clicks the "Restore" control, the electronic device is triggered to stop displaying the second notification reminder window and cancel the shutdown reminder function for the NFC function.

[0151] By displaying the "Restore" control in the second notification reminder window, it is convenient for users to reopen the specified function module that was automatically closed. For the specified function module that the user wants to be in a normally open state, the user can keep the specified function module in the open state by clicking the "Restore" control, and the electronic device can turn off the shutdown reminder function for the specified function module, thereby avoiding displaying the notification reminder window for the specified function module again, avoiding disturbing the user, and meeting user needs.

[0152] In an optional implementation of the embodiment of the present application, the electronic device may display a third notification reminder window in response to the continuous non-use time satisfying a preset condition, taking the designated function module as the NFC function as an example, such as Figure 7 As shown, Figure 7 A third notification reminder window is exemplarily shown, and the third notification reminder window includes a notification title, a notification time and prompt information.

[0153] Among them, the notification title is "Notification Management", the notification time is "1 minute ago", and the prompt message is "It is detected that the "NFC" function has not been used for more than 1 month, and the function has been turned off to improve battery life."

[0154] After seeing the third notification reminder window, if the user still needs to use the specified function module, the user can choose to open the function details page of the specified function module from the setting interface of the mobile phone and turn on the specified function module again.

[0155] In some embodiments of the present application, a notification reminder window may also be displayed on the lock screen interface of the electronic device. Figure 8 As shown, when the electronic device is in the screen-off state, if the electronic device needs to display a notification reminder window, the notification reminder window can be displayed on the lock screen interface of the electronic device, and the notification reminder window includes part of the content in the above notification reminder window, for example, the notification reminder window includes the notification title, notification time and part of the prompt information. The notification title is "Notification Management", the notification time is "1 minute ago", and the prompt information is "It is detected that the "Voice Wake-up" function has not been used for more than 1 month..."

[0156] In this way, the electronic device can automatically light up the screen and display the lock screen interface when the notification reminder window needs to be displayed, or when the user actively turns on the electronic device, the electronic device displays the notification reminder window on the lock screen interface, so that the user clicks on the notification reminder window and processes the content in the prompt information of the notification reminder window.

[0157] In the embodiments of the present application, Figure 3 The method flow shown is executed after the electronic device determines that the specified functional module is turned on. Fig. 9As shown, the method specifically comprises the following steps:

[0158] S901: Determine whether a specified functional module is enabled.

[0159] If yes, then after the first preset time period, execute S902.

[0160] Among them, the electronic device can determine whether the designated function module is turned on through an active query mechanism or a reporting mechanism. The active query mechanism refers to the electronic device monitoring whether the designated function module is turned on. The reporting mechanism refers to the electronic device receiving a notification reported by the designated function module that the designated function module has been turned on, that is, each designated function module in the electronic device will report after its own switch state changes, so that the electronic device can promptly determine the switch state of each designated function module. Using the above-mentioned active query mechanism or reporting mechanism, the electronic device can obtain the switch state changes of the designated function module in real time, and then the electronic device can accurately obtain the moment when the designated function module is turned on.

[0161] S902: Query the last time a specified functional module was used.

[0162] The electronic device can obtain the usage notification reported by the designated functional module, and based on the usage notification, record the reported usage status and usage time in the usage record information of the designated functional module. The usage notification includes the identifier of the designated functional module and the usage status, and the usage status is the start of use or the end of use.

[0163] The usage notification may include the start time of usage or the end time of usage, that is, if the usage status in the usage notification is start of usage, the usage notification also includes the start time of usage, and then the electronic device may record the start time of usage included in the usage notification as a usage record in the start of usage status; if the usage status in the usage notification is end of usage, the usage notification also includes the end time of usage, and then the electronic device may record the end time of usage included in the usage notification as a usage record in the end of usage status.

[0164] Alternatively, the usage notification may not carry the start time or the end time of usage. When the electronic device obtains the usage notification, the time when the usage notification is obtained is recorded and the time is used as the usage time.

[0165] As an example, the NFC usage record information may include:

[0166] It will be used from 21:14:30 on July 20, 2023;

[0167] The service will end at 21:15:00 on July 20, 2023;

[0168] ……;

[0169] It will be put into use at 21:01:25 on July 26, 2023.

[0170] On this basis, the electronic device can query the last time the specified functional module was used from the usage record information. In this way, since the electronic device has generated the usage record information in advance, the last time the specified functional module was used can be queried quickly and accurately, thereby improving data query efficiency.

[0171] Optionally, in another embodiment, the designated function module does not need to report the usage notification, and the electronic device can also query the last usage time of the designated function module from the designated function module. In this way, the electronic device can accurately obtain the last usage time from the designated function module.

[0172] S903: Determine the continuous unused time of the specified functional module based on the last used time.

[0173] S904: Determine whether the continuous non-use time meets a preset condition.

[0174] If yes, execute S905, if no, execute S902 after a second preset time.

[0175] The preset condition is that the continuous non-use time reaches a time baseline value; or, the preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the specified functional module reaches a power consumption baseline value.

[0176] If the electronic device determines that the continuous non-use time does not meet the preset condition, it will query the last use time of the specified functional module again after the second preset time. The electronic device can continuously monitor the continuous non-use time of the specified functional module, and when the continuous non-use time meets the preset condition, the electronic device will promptly display the first notification reminder window or the second notification reminder window to the user.

[0177] S905: In response to the continuous non-use time satisfying a preset condition, display a first notification reminder window, or close a specified function module and display a second notification reminder window.

[0178] When the preset condition is that the continuous non-use time reaches the duration baseline value, the electronic device can calculate the continuous non-use time of the specified functional module at the current moment, and compare the continuous non-use time of the specified functional module with the duration baseline value. If the continuous non-use time is less than the duration baseline value, the electronic device returns to S902 after the second preset time at the current moment, and queries the step of the last use time of the specified functional module until the continuous non-use time of the specified functional module is greater than or equal to the duration baseline value. The electronic device displays the first notification reminder window or closes the specified functional module and displays the second notification reminder window.

[0179] For example, the designated function module is the voice wake-up function, the duration baseline value of the voice wake-up function is 30 days, and the second preset duration of the voice wake-up function is 20 days. If the electronic device calculates that the continuous non-use duration of the voice wake-up function at the current moment is 15 days, which is less than the duration baseline value of 30 days, the electronic device will query the last use time of the voice wake-up function again after the second preset duration of 20 days. If the continuous non-use duration calculated by the electronic device based on the last use time of the voice wake-up function obtained this time is 35 days, which is greater than the duration baseline value of 30 days, the electronic device will display the above-mentioned first notification reminder window or the second notification reminder window.

[0180] If the continuous non-use time reaches the time baseline value, it indicates that the user has not used the designated function module for a long time, and the designated function module has been consuming power, that is, the designated function module consumes more power when not in use. At this time, the user is reminded to turn off the designated function module or directly turn off the designated function module, which can avoid continuous power consumption of the designated function module and improve the battery life of the electronic device.

[0181] When the preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the designated functional module reaches the power consumption baseline value, the electronic device can calculate the continuous non-use time of the designated functional module at the current moment, and calculate the product of the continuous non-use time and the power consumption value per unit time to obtain the continuous non-use cumulative power consumption value. Among them, the power consumption value per unit time of each function can be referred to Table 1. Then compare the continuous non-use cumulative power consumption value of the designated functional module with the power consumption baseline value. If the continuous non-use cumulative power consumption value is less than the power consumption baseline value, the electronic device returns to S902 after the second preset time at the current moment, and queries the step of the last use time of the designated functional module until the continuous non-use cumulative power consumption value of the designated functional module is greater than or equal to the power consumption baseline value.

[0182] For example, the designated function module is the NFC function, the power consumption baseline value of the NFC function is 360mAh, the second preset duration of the NFC function is 10 days, and the power consumption value of NFC per hour is 1mAh as shown in Table 1. If the electronic device calculates that the continuous non-use duration of the voice wake-up function at the current moment is 5 days, the calculated continuous non-use cumulative power consumption value is 5*24*1mAh=120mAh.

[0183] Since the accumulated power consumption value of 120mAh for continuous non-use is less than the power consumption baseline value of 360mAh, the electronic device queries the last time the NFC function was used again after the second preset time of 10 days. If the continuous non-use time calculated by the electronic device based on the last time the NFC function was used is 15 days, then the accumulated power consumption value for continuous non-use is 15*24*1mAh=360mAh. The accumulated power consumption value of 360mAh for continuous non-use is equal to the power consumption baseline value of 360mAh, so the electronic device displays the first notification reminder window or the second notification reminder window.

[0184] The first preset duration and the second preset duration are determined based on the duration baseline value and the power consumption value per unit time of the specified functional module, or based on the power consumption baseline value and the power consumption value per unit time of the specified functional module. The larger the power consumption value per unit time, the smaller the first preset duration and the second preset duration.

[0185] If the product of the continuous non-use time and the power consumption per unit time of the specified functional module reaches the power consumption baseline value, that is, the specified functional module consumes too much power and the user has not used it for a long time. At this time, the user is reminded to turn off the specified functional module or directly turn off the specified functional module, which can avoid the continuous power consumption of the specified functional module and improve the battery life of the electronic device.

[0186] Based on the above embodiments, Fig.10 As shown, Fig.10 The present application provides a method for implementing a function management based on a reporting mechanism, which is applied to an electronic device, wherein the electronic device includes a function module, a unified management module, and a notification display module. Fig.10 Five functional modules are exemplified in the figure, namely voice wake-up, breath wake-up, NFC, Bluetooth and intelligent perception.

[0187] Among them, the unified management module stores the baselines corresponding to each designated functional module that can use the shutdown reminder function provided by the embodiment of the present application. The baseline is the above-mentioned duration baseline value or power consumption baseline value. The unified management module also stores the first preset duration and the second preset duration.

[0188] Among them, the unified management module has a baseline configuration function. The baseline can be configured by the cloud-side device or the end-side device, and the end-side device is the electronic device. After completing the baseline configuration, the cloud-side device can also perform a baseline update, that is, the cloud-side device can send a baseline update instruction to the unified management module. After the unified management module receives the baseline update instruction sent by the cloud-side device, it can perform the baseline configuration again.

[0189] After completing the baseline configuration, the unified management module receives the usage notification reported by each functional module.

[0190] The unified management module makes baseline judgments and decisions based on the usage notifications reported by each functional module, and determines to report notification reminders to the notification display module.

[0191] After receiving the notification reminder reported by the unified management module, the notification display module displays a first notification reminder window on the display interface of the electronic device. The first notification reminder window includes an "agree to close" control, an "ignore" control, and a "more" control.

[0192] When the user selects the "Agree to Close" control, the notification display module is triggered to send a switch closing instruction to the unified management module, and the switch closing instruction is used to instruct the unified management module to close the corresponding switch.

[0193] When the user selects the "Ignore" control, the notification display module is triggered to send a deregistration instruction to the unified management module, which is used to instruct the unified management module to cancel the shutdown reminder function for the specified functional module. Then the unified management module can perform a baseline configuration to cancel the shutdown reminder function for the specified functional module.

[0194] When the user selects the "more" control, the display interface of the electronic device is triggered to jump from the first notification reminder window to the function details interface of the function corresponding to the notification reminder.

[0195] Based on the above embodiments, Fig.11 As shown, Fig.11 The present application provides a method for managing a function based on an active query mechanism. The method takes the voice wake-up function as an example and specifically includes the following steps:

[0196] S1101. Start.

[0197] S1102: The unified management module monitors the switch change of the voice wake-up function.

[0198] If the voice wake-up function switch is changed from the off state to the on state, S1103 is executed; if the voice wake-up function switch is changed from the on state to the off state, S1107 is executed.

[0199] S1103. Set a timer A to query the last time the voice wake-up function was used after Y days.

[0200] When the unified management module detects that the switch of the voice wake-up function changes from the off state to the on state, the timer A is started. Y days is the first preset duration in the above embodiment. Then the unified management module calculates the continuous non-use duration of the voice wake-up function based on the last use time and Y days.

[0201] The unified management module can query the last time the voice wake-up function was used from the voice wake-up function. Taking the electronic device as a mobile phone as an example, the storage space corresponding to the voice wake-up function of the mobile phone includes each time the voice wake-up function was used.

[0202] S1104: Whether the voice wake-up function has not been used for a continuous period greater than a baseline.

[0203] The baseline may be the duration baseline value or the power consumption baseline value described in the above embodiments. When the baseline is the duration baseline value, the unified management module compares whether the continuous non-use duration is greater than the duration baseline value; when the baseline is the power consumption baseline value, the unified management module compares whether the product of the continuous non-use duration and the power consumption value per unit time is greater than the power consumption baseline value.

[0204] If yes, execute S1106, if no, execute S1105.

[0205] S1105. Set a timer B and query again after X days.

[0206] Among them, X days is the second preset time length in the above embodiment. When the unified management module determines that the voice wake-up function has not been used for a continuous period of time that is less than the baseline, timer B is started.

[0207] S1106. Send a notification to the notification display module to remind the user to turn off the voice wake-up function to improve the battery life.

[0208] S1107. Cancel timer A.

[0209] S1108. Cancel timer B.

[0210] S1109, end.

[0211] Using the above method, the unified management module can monitor the switch changes of the designated functional module. When the switch changes from off to on, the unified management module starts the shutdown reminder function of the designated functional module and starts timer A. After Y days, the last use time of the designated functional module is queried and the continuous non-use time is calculated. If the continuous non-use time is less than the baseline, start timer B, and after X days, query the last use time of the designated functional module. In this way, the last use time of the designated functional module can be continuously queried. When the continuous non-use time is greater than the baseline, a notification is sent to the notification display module so that the notification display module displays the notification reminder window. The user can see the notification reminder window on the display page of the electronic device in time, so that the user can choose to turn off the designated functional module that has not been used for a long time, thereby improving the battery life of the electronic device.

[0212] In a specific implementation, the present application also provides a computer storage medium, wherein the computer storage medium may store a program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to perform some or all of the steps in the above embodiment. The storage medium may be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0213] In a specific implementation, an embodiment of the present application further provides a computer program product, which includes executable instructions. When the executable instructions are executed on a computer, the computer executes some or all of the steps in the above method embodiment.

[0214] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.

[0215] Program code can be applied to input instructions to perform the functions described in this application and generate output information. The output information can be applied to one or more output devices in a known manner. For the purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.

[0216] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.

[0217] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, instructions may be distributed over a network or by other computer-readable media. Therefore, machine-readable media may include any mechanism for storing or transmitting information in a machine (e.g., computer) readable form, including, but not limited to, floppy disks, optical disks, optical disks, compact disc read-only memories (Compact Disc Read Only Memory, CD-ROMs), magneto-optical disks, read-only memories (Read Only Memory, ROM), random access memories (RAM), erasable programmable read-only memories (Erasable Programmable Read Only Memory, EPROM), electrically erasable programmable read-only memories (Electrically Erasable Programmable Read Only Memory, EEPROM), magnetic cards or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signal digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Accordingly, machine-readable media include any type of machine-readable media suitable for storing or transmitting electronic instructions or information in a form readable by a machine (eg, a computer).

[0218] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the accompanying drawings of the specification. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

[0219] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.

[0220] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0221] Although the present application has been illustrated and described with reference to certain preferred embodiments thereof, it will be apparent to those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims

1. A function management method, characterized in that: The method is applied to an electronic device, and the method comprises: After determining the first preset time duration that the designated functional module is turned on, querying the last time the designated functional module is used; Determine the duration of continuous non-use of the designated functional module based on the last time of use; In response to the continuous non-use time satisfying a preset condition, a first notification reminder window is displayed, or the designated function module is closed and a second notification reminder window is displayed, wherein the first notification reminder window is used to remind the user to close the designated function module, and the second notification reminder window is used to remind the user that the designated function module has been closed.

2. The method according to claim 1, characterized in that The first notification reminder window includes a first control, a second control, and a third control; after displaying the first notification reminder window, the method further includes: In response to the user's operation on the first control, stop displaying the first notification reminder window and close the designated function module; In response to the user's operation on the second control, stop displaying the first notification reminder window and cancel the closing reminder function for the designated function module; In response to the user's operation on the third control, a function details interface of the designated function module is displayed.

3. The method according to claim 2, characterized in that The function details interface includes a switch control; after displaying the function details interface of the specified function module, the method further includes: In response to a user closing operation on the switch control, the designated functional module is closed.

4. The method according to claim 1, characterized in that: The second notification reminder window includes a fourth control; after closing the specified function module and displaying the second notification reminder window, the method further includes: In response to the user's operation on the fourth control, displaying a function details page of the specified function module, wherein the function details interface includes a switch control; In response to a user's turning on operation of the switch control, the designated function module is turned on.

5. The method according to claim 4, characterized in that The second notification reminder window further includes a fifth control; after closing the specified function module and displaying the second notification reminder window, the method further includes: In response to the user's operation on the fifth control, the designated function module is turned on, and the shutdown reminder function of the designated function module is canceled.

6. The method according to any one of claims 1 to 5, characterized in that: After determining the continuous unused duration of the designated functional module based on the last used time, the method further includes: Determining whether the continuous non-use time meets the preset condition; If not, after a second preset time period, the process returns to the step of querying the last time the designated functional module was used.

7. The method according to claim 6, characterized in that Before querying the last time the specified functional module was used, the method further includes: Monitor whether the specified functional module is enabled; or, Receive a notification reported by the designated functional module that the designated functional module has been turned on.

8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Obtaining a usage notification reported by the designated functional module, wherein the usage notification includes an identifier of the designated functional module and a usage status, wherein the usage status is start of use or end of use; Based on the usage notification, the reported usage status and usage time are recorded in the usage record information of the designated functional module; The querying of the last usage time of the specified functional module includes: The last time the specified functional module was used is queried from the usage record information.

9. The method according to any one of claims 1 to 5, characterized in that: The querying of the last usage time of the specified functional module includes: The last time the designated functional module was used is queried from the designated functional module.

10. The method according to claim 1, characterized in that The preset condition is that the continuous non-use time reaches a time baseline value; or, The preset condition is that the product of the continuous non-use time and the power consumption value per unit time of the designated functional module reaches the power consumption baseline value.

11. An electronic device, characterized in that: include: one or more processors and memory; The memory is coupled to the one or more processors, and the memory is used to store computer program codes, wherein the computer program codes include computer instructions, and the one or more processors call the computer instructions to enable the electronic device to perform the method according to any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that: The invention comprises a computer program, which, when executed on an electronic device, enables the electronic device to execute the function management method according to any one of claims 1 to 10.

13. A computer program product, characterized in that The computer program product comprises executable instructions, and when the executable instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Device and method for turning off bluetooth module

    CN101835248A

  • Bluetooth control methods, mobile terminals and memory medium

    CN109660973A

  • Method for controlling application program and terminal

    CN110554762A

  • Power-saving processing method and device, storage medium and mobile terminal

    CN112198955A