CN116382786B - Method for entering long standby mode, electronic device and readable storage medium - Google Patents

Method for entering long standby mode, electronic device and readable storage medium Download PDF

Info

Publication number
CN116382786B
CN116382786B CN202310664862.3A CN202310664862A CN116382786B CN 116382786 B CN116382786 B CN 116382786B CN 202310664862 A CN202310664862 A CN 202310664862A CN 116382786 B CN116382786 B CN 116382786B
Authority
CN
China
Prior art keywords
screen
time
historical
event
standby mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310664862.3A
Other languages
Chinese (zh)
Other versions
CN116382786A (en
Inventor
刘畅
熊健
闫超杰
潘斌斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310664862.3A priority Critical patent/CN116382786B/en
Publication of CN116382786A publication Critical patent/CN116382786A/en
Application granted granted Critical
Publication of CN116382786B publication Critical patent/CN116382786B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4418Suspend and resume; Hibernate and awake
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3206Monitoring of events, devices or parameters that trigger a change in power modality
    • G06F1/3215Monitoring of peripheral devices
    • G06F1/3218Monitoring of peripheral devices of display devices
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application provides a method for entering a long standby mode, electronic equipment and a readable storage medium, and relates to the field of terminals. The method comprises the following steps: before controlling the electronic equipment to enter a long standby mode, acquiring target parameters of the electronic equipment, wherein the target parameters comprise at least one of environmental parameters when a screen-off event occurs, a motion state after the screen-off event occurs and a background application sequence when the screen-off event occurs. And when the target parameters of the electronic equipment accord with the first preset conditions, determining to control the electronic equipment to enter a long standby mode. Before the electronic equipment is controlled to enter the long standby mode, whether the target parameters of the electronic equipment meet the first preset conditions or not is determined, and if yes, the electronic equipment is controlled to enter the long standby mode is determined. The probability of misrecognizing the long standby mode can be reduced, the accuracy of the time for entering the long standby mode is improved, and better user experience is provided.

Description

Method for entering long standby mode, electronic device and readable storage medium
Technical Field
The present application relates to the field of terminals, and in particular, to a method for entering a long standby mode, an electronic device, and a readable storage medium.
Background
Many electronic devices on the market use batteries to power them, and how to increase the endurance time of the electronic device as much as possible under the limited electric quantity is a problem to be explored because the electric quantity of the batteries is limited.
At present, a scheme exists that a preset time is waited after the electronic equipment is turned off, and when the electronic equipment is not actively operated within the preset time, a long standby mode is entered to reduce power consumption and increase endurance time.
However, the waiting duration in this solution needs to be preset, the set duration may be inaccurate, and the long standby mode is entered too early or too late, so that the effect of reducing the power consumption is not obvious or the use experience of the user is affected.
Disclosure of Invention
The application provides a method for entering a long standby mode, electronic equipment and a readable storage medium. The problem that the inaccuracy of the time for entering the long standby mode, which causes the effect of reducing the power consumption to be insignificant or affects the use experience of the user, can be solved.
In order to achieve the above purpose, the application adopts the following technical scheme:
In a first aspect, a method of entering a long standby mode is provided, comprising:
under the condition that the off-screen event of the electronic equipment in the non-charging state is detected, first time-space information corresponding to the off-screen event is obtained, wherein the first time-space information comprises the time period of the off-screen event and the place of the electronic equipment when the off-screen event occurs. And acquiring a first probability corresponding to the first time-space information, wherein the first probability is used for indicating the probability that the electronic equipment enters the long standby mode in a period and a place corresponding to the first time-space information. When the first probability is greater than or equal to a first probability threshold corresponding to the first time-space information, acquiring target parameters of the electronic equipment, wherein the target parameters comprise at least one of environment parameters when the screen-off event occurs, motion states after the screen-off event occurs and background application sequences when the screen-off event occurs. And when the target parameters of the electronic equipment accord with the first preset conditions, determining to control the electronic equipment to enter a long standby mode.
In the embodiment of the application, the method for entering the long standby mode can be applied to electronic equipment, including mobile phones, tablet computers, palm game machines, wearable equipment, augmented reality/virtual reality equipment, notebook computers, ultra mobile personal computers, netbooks, personal digital assistants and the like.
In the first aspect, before the control electronic device enters the long standby mode, whether the target parameter of the electronic device meets a first preset condition is determined, and if yes, the control electronic device is determined to enter the long standby mode. The probability of misrecognizing the long standby mode can be reduced, the accuracy of the time for entering the long standby mode is improved, and better user experience is provided.
In some possible embodiments, before acquiring the first probability corresponding to the first time-space information, the method further includes:
the method comprises the steps of obtaining historical screen-off data of the electronic equipment, wherein the historical screen-off data comprises historical space-time information and reference information corresponding to historical screen-off events which occur within a first preset duration, the historical space-time information comprises a time period when the historical screen-off events occur and places where the electronic equipment is located when the historical screen-off events occur, and the reference information comprises a date when the historical screen-off events occur and whether the electronic equipment is in a long standby mode after the historical screen-off events occur. And determining a plurality of probabilities of entering the long standby mode according to the historical screen-off data, wherein the historical space-time information and the reference information corresponding to the historical screen-off events occurring in the same time period and the same place are used for determining the probability of entering the long standby mode.
Obtaining a first probability corresponding to the first time-space information, including: the first probability is determined based on a plurality of probabilities of entering a long standby mode.
In some possible implementations, the target parameter includes an environmental parameter at which an off-screen event occurs, and the reference information further includes a historical environmental parameter at which a historical off-screen event occurs for the electronic device.
Determining that the target parameter of the electronic device meets a first preset condition comprises: and acquiring historical environment parameters of the time period and the place corresponding to the first time space information. When the environmental parameter of the electronic equipment when the screen-off event occurs is the same as or similar to the historical environmental parameter, determining that the target parameter meets a first preset condition.
In some possible embodiments, the environmental parameter comprises at least one of an ambient light intensity, an ambient sound intensity, an ambient temperature.
In some possible embodiments, the environmental parameter comprises an ambient light intensity or an ambient sound intensity, the method further comprising: and when the environmental parameter of the electronic equipment is smaller than the historical environmental parameter when the screen-off event occurs, and/or when the environmental parameter of the electronic equipment is smaller than or equal to the environmental parameter threshold value when the screen-off event occurs, determining that the target parameter meets a first preset condition.
In some possible embodiments, the target parameter includes a motion state of the electronic device within a second preset time period after the off-screen time of the electronic device occurs.
Determining that the target parameter meets a first preset condition comprises the following steps: and when the movement of the electronic equipment in the second preset time period is not detected, determining that the target parameter meets the first preset condition.
In some possible embodiments, when detecting that an off-screen event occurs in the electronic device in a non-charging state, acquiring first time-space information corresponding to the off-screen event includes:
after the fact that the electronic equipment is detected to generate the active screen-off event in the non-charging state is determined, when the screen-on operation from the user is not detected within a second preset time period, first time-space information corresponding to the active screen-off event is obtained, and the active screen-off event comprises an automatic screen-off event after the electronic equipment detects the screen-on operation from the user or a screen-off event after the electronic equipment responds to the screen-off operation from the user.
In some possible embodiments, the target parameter includes a background application sequence when the electronic device generates a screen-off event, and the reference information further includes a second feature when the electronic device generates a historical screen-off event, where the second feature is a feature of a corresponding background application sequence when the electronic device generates the historical screen-off event, where the background application sequence is acquired after the electronic device enters the long standby mode within a first preset duration.
Determining that the target parameter meets a first preset condition comprises the following steps: and acquiring a first characteristic of a background application sequence when the electronic equipment generates a screen-off event. And when the first characteristic is matched with at least one second characteristic which is identical to the first time-space information and has the same time period, determining that the target parameter meets a first preset condition.
In some possible embodiments, obtaining a first probability corresponding to the first time-space information includes: the probability of entering a long standby mode corresponding to historical spatiotemporal information having the same period and the same location as the first spatiotemporal information is acquired. The probability of entering the long standby mode corresponding to the historical space-time information with the same time period and the same location as the first space-time information is taken as the first probability corresponding to the first space-time information.
In some possible embodiments, obtaining a first probability corresponding to the first time-space information includes: and acquiring a corresponding time fence according to the place in the first time-space information, and acquiring the probability of entering a long standby mode of historical time-space information with the same time period and the same place as the first time-space information when the time period in the first time-space information falls into the corresponding time fence. The probability of entering the long standby mode corresponding to the historical space-time information with the same time period and the same location as the first space-time information is taken as the first probability corresponding to the first space-time information.
In some possible embodiments, obtaining the corresponding time fence according to the location in the first time space information includes: and acquiring a space-time information set, wherein the space-time information set comprises at least one historical space-time information meeting a second preset condition, and the second preset condition comprises that the probability of entering a long standby mode corresponding to the historical space-time information is larger than or equal to a second probability threshold corresponding to the historical space-time information. At least one period corresponding to historical space-time information with the same place in the space-time information set is obtained. A time fence for each location is obtained based on the location and at least one time period.
In some possible implementations, the second probability threshold is equal to the first probability threshold.
In some possible embodiments, the method further comprises: and determining a first probability threshold according to the first preset duration.
In some possible embodiments, determining the first probability threshold according to the first preset duration includes: and determining a corresponding time length weight according to the first preset time length. And inputting the time length weight into a preset function to obtain a first probability threshold.
In some possible embodiments, determining a plurality of probabilities of entering a long standby mode according to the historical off-screen data includes: and acquiring a plurality of groups of reference information corresponding to the historical space-time information in a preset duration for the historical space-time information corresponding to the historical screen-off event occurring in the same time period and the same place. And determining a weight coefficient according to the interval between the date of the historical screen-off event and the current date in the reference information. And acquiring the probability of entering the long standby mode corresponding to the historical space-time information according to whether the electronic equipment is in the long standby mode and the weight coefficient after each historical screen-off event occurs.
In some possible embodiments, after controlling the electronic device to enter the long standby mode, the method further comprises: and after detecting that the electronic equipment is in a charging state, controlling the electronic equipment to exit the long standby mode.
In a second aspect, there is provided an electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor executing the computer program to perform the steps of the first aspect or any of the methods of the first aspect.
In a third aspect, a chip is provided, which is characterized by comprising: a processor for calling and running a computer program from a memory, so that a device on which the chip is mounted performs the steps of the first aspect or any of the methods of the first aspect.
In a fourth aspect, there is provided a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the steps of the first aspect or any of the methods of the first aspect.
The advantages of the second aspect to the fourth aspect may refer to the first aspect, and are not described herein.
Drawings
Fig. 1 is an application scenario schematic diagram of a method for entering a long standby mode according to an embodiment of the present application;
fig. 2 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present application;
FIG. 3 is a system block diagram of an electronic device according to an embodiment of the present application;
FIG. 4 is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for entering a long standby mode according to an embodiment of the present application;
fig. 6 is a flowchart of S501 in a method for entering a long standby mode according to an embodiment of the present application;
fig. 7 is a schematic flow chart of S5012 in the method for entering the long standby mode according to the embodiment of the present application;
fig. 8 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
The technical scheme of the application will be described below with reference to the accompanying drawings.
In the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first" and "second" are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present embodiment, unless otherwise specified, the meaning of "plurality" is two or more.
Currently, most electronic devices on the market use a battery to supply power, and how to increase the endurance time of the electronic device as much as possible under the limited power is a problem to be explored due to the limited power of the battery. In this way, the endurance time of the electronic device can be increased by reducing the power consumption of the electronic device in the off-screen state.
In one embodiment, when the electronic device is not charged, if the electronic device is not actively operated within 30 minutes after the active screen is turned off, the electronic device enters a long standby mode after the active screen is turned off for 30 minutes.
For example, for an android system, the long standby mode is a low power consumption (Doze) mode. When an electronic device running an android system enters Doze mode, the electronic device limits the frequency of background applications accessing the central processing unit (Central Processing Unit, CPU) and the network.
For example, the electronic device may enter a window period (maintenance window) of 30 seconds in duration after each interval of time in Doze mode. In the window period, the background application can access the CPU to perform network interaction and the like.
When the electronic device is in the Doze mode for longer than a certain period of time, the interval time for entering the window period can be increased. For example, after the electronic device enters the Doze mode, a window period may be entered every 10 minutes; when the electronic equipment enters the Doze mode for more than 1 hour, the window period can be entered once every 15 minutes; when the electronic device enters Doze mode for more than 2 hours, the window period may be entered every 20 minutes.
However, since this solution requires waiting for a fixed period of time (e.g., 30 minutes) after the active screen is turned off, the long standby mode is entered. The scheme cannot predict whether the electronic equipment needs to enter a long standby mode according to the historical habits of the user. The timing to enter the long standby mode is too fixed and inflexible.
For example, when the fixed waiting time period is set to 30 minutes, the electronic device may enter the long waiting mode too late, and the effect of increasing the endurance of the electronic device is poor. When the set fixed waiting time is 5 minutes, the user may enter a long standby mode too early, so that the user cannot receive information in time, and the user experience is affected.
In view of the above, the present application provides a method for entering a long standby mode, applied to an electronic device, the method comprising:
under the condition that the off-screen event of the electronic equipment in the non-charging state is detected, first time-space information corresponding to the off-screen event is obtained, wherein the first time-space information comprises the time period of the off-screen event and the place of the electronic equipment when the off-screen event occurs. And acquiring a first probability corresponding to the first time-space information, wherein the first probability is used for indicating the probability that the electronic equipment enters the long standby mode in a period and a place corresponding to the first time-space information. When the first probability is greater than or equal to a first probability threshold corresponding to the first time-space information, acquiring target parameters of the electronic equipment, wherein the target parameters comprise at least one of environment parameters when the screen-off event occurs, motion states after the screen-off event occurs and background application sequences when the screen-off event occurs. And when the target parameters of the electronic equipment accord with the first preset conditions, determining to control the electronic equipment to enter a long standby mode.
In the application, before the electronic equipment is controlled to enter the long standby mode, whether the target parameters of the electronic equipment accord with the first preset condition is determined, and if so, the electronic equipment is controlled to enter the long standby mode. The probability of misrecognizing the long standby mode can be reduced, the accuracy of the time for entering the long standby mode is improved, and better user experience is provided.
Fig. 1 is an application scenario schematic diagram of a method for entering a long standby mode according to an embodiment of the present application.
Referring to fig. 1, first, an application scenario of an embodiment of the present application will be briefly described.
In fig. 1, the electronic device 100 is shown, after the electronic device 100 has an active screen-off event (such as receiving a screen-off operation of a user), waiting for 5 minutes, if the electronic device 100 is not unlocked, it can be predicted whether to enter the long standby mode in advance according to a time period and a place where the screen-off event occurs.
And when the prediction result is that the long standby mode is determined to be entered in advance, the prediction result can be corrected according to whether the environmental parameters when the screen-off event occurs, the motion state of the electronic equipment during the waiting period, the background application sequence when the screen-off event occurs and other target parameters meet the first preset conditions. And after the corrected prediction result is still the determination that the electronic equipment enters the long standby mode in advance, the electronic equipment enters the long standby mode in advance.
Note that, in this scenario, the long standby mode is entered in advance, as opposed to the above-described need to wait for a fixed period of time, and then enter the long standby mode.
In the scene, the electronic equipment does not need to wait for a fixed time period, but predicts after an active screen-off event occurs, corrects a prediction result and judges whether the electronic equipment enters a long standby mode in advance.
In one possible implementation scenario, when the place where the electronic device is located is an office, during a noon break, the user makes a noon break, uses the electronic device before the noon break and the user does not charge the electronic device.
After the electronic equipment is used, the electronic equipment responds to the screen-off operation of a user, or the electronic equipment is automatically screen-off after not being operated within a certain time. The electronic equipment waits for 5 minutes after the screen is turned off, and predicts according to the time period and the place of the screen-off event, wherein the prediction result is that the electronic equipment is determined to enter a long standby mode in advance. Then, the electronic equipment determines that the electronic equipment does not move within 5 minutes, and the environmental parameters acquired by the electronic equipment are the same as or similar to the historical environmental parameters, so that the electronic equipment can enter a long standby mode in advance, the power consumption of the electronic equipment is reduced, and the cruising duration is improved.
Alternatively, in another possible implementation scenario, when the location where the electronic device is located is home, during the night period, the user goes to sleep, uses the electronic device before sleep, and the user does not charge the electronic device.
After the electronic equipment is used, the electronic equipment responds to the screen-off operation of a user, or the electronic equipment is automatically screen-off after not being operated within a certain time. The electronic equipment waits for 5 minutes after the screen is turned off, and predicts according to the time period and the place of the screen-off event, wherein the prediction result is that the electronic equipment is determined to enter a long standby mode in advance. Then, the electronic equipment determines that the electronic equipment does not move within 5 minutes, and the environmental parameters acquired by the electronic equipment are the same as or similar to the historical environmental parameters, so that the electronic equipment can enter a long standby mode in advance, the power consumption of the electronic equipment is reduced, and the cruising duration is improved.
Fig. 2 is a block diagram of a hardware structure of an electronic device according to an embodiment of the present application.
As examples, electronic devices may include cell phones, tablet computers, palm game consoles, wearable devices, augmented Reality (AR)/Virtual Reality (VR) devices, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA), and the like. Embodiments of the present application are not limited in any way with respect to the particular type of electronic device.
Referring to fig. 2, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge 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, keys 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identity module (subscriber identification module, SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.
It should be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the application, electronic device 100 may include more or fewer components than shown, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
For example, when the electronic device 100 is a mobile phone or a tablet computer, all the components in the illustration may be included, or only some of the components in the illustration may be included.
The processor 110 may include one or more processing units, such as: the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a video codec, a digital signal processor (digital signal processor, DSP), a baseband processor, and/or a neural network processor (neural-network processing unit, NPU), etc. Wherein the different processing units may be separate devices or may be integrated in one or more processors.
The controller can generate operation control signals according to the instruction operation codes and the time sequence signals to finish the control of instruction fetching and instruction execution.
A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby improving the efficiency of the system.
In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous receiver transmitter (universal asynchronous receiver/transmitter, UART) interface, a mobile industry processor interface (mobile industry processor interface, MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (subscriber identity module, SIM) interface, and/or a universal serial bus (universal serial bus, USB) interface, among others.
It should be understood that the interfacing relationship between the modules illustrated in the embodiments of the present application is only illustrative, and is not meant to limit the structure of the electronic device 100. In other embodiments of the present application, the electronic device 100 may also employ different interfacing manners in the above embodiments, or a combination of multiple interfacing manners.
The charge management module 140 is configured to receive a charge input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charge management module 140 may receive a charging input of a wired charger through the USB interface 130. In some wireless charging embodiments, the charge management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. The charging management module 140 may also supply power to the electronic device through the power management module 141 while charging the battery 142.
The power management module 141 is used for connecting the battery 142, and the charge management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charge management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 may also be configured to monitor battery capacity, battery cycle number, battery health (leakage, impedance) and other parameters. In other embodiments, the power management module 141 may also be provided in the processor 110. In other embodiments, the power management module 141 and the charge management module 140 may be disposed in the same device.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas may also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed into a diversity antenna of a wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution for wireless communication including 2G/3G/4G/5G, etc., applied to the electronic device 100.
The modem processor may include a modulator and a demodulator. The modulator is used for modulating the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used for demodulating 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.
The wireless communication module 160 may provide solutions for wireless communication including wireless local area network (wireless local area networks, WLAN) (e.g., wireless fidelity (wireless fidelity, wi-Fi) network), bluetooth (BT), global navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field wireless communication technology (near field communication, NFC), infrared technology (IR), etc., as applied to the electronic device 100. The wireless communication module 160 may be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the electromagnetic wave signals, filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, frequency modulate it, amplify it, and convert it to electromagnetic waves for radiation via the antenna 2.
In some embodiments, antenna 1 and mobile communication module 150 of electronic device 100 are coupled, and antenna 2 and wireless communication module 160 are coupled, such that electronic device 100 may communicate with a network and other devices through wireless communication techniques. The wireless communication techniques may include the Global System for Mobile communications (global system for mobile communications, GSM), general packet radio service (general packet radio service, GPRS), code division multiple access (code division multiple access, CDMA), wideband code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC, FM, and/or IR techniques, among others. The GNSS may include a global satellite positioning system (global positioning system, GPS), a global navigation satellite system (global navigation satellite system, GLONASS), a beidou satellite navigation system (beidou navigation satellite system, BDS), a quasi zenith satellite system (quasi-zenith satellite system, QZSS) and/or a satellite based augmentation system (satellite based augmentation systems, SBAS).
The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
The display screen 194 is used to display images, videos, and the like. The display 194 includes a display panel. The display panel may employ a liquid crystal display (liquid crystal display, LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED) or an active-matrix organic light-emitting diode (matrix organic light emitting diode), a flexible light-emitting diode (flex), a mini, a Micro led, a Micro-OLED, a quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), or the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, N being a positive integer greater than 1.
The electronic device 100 may implement photographing functions through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
The ISP is used to process data fed back by the camera 193. For example, when photographing, the shutter is opened, light is transmitted to the camera photosensitive element through the lens, the optical signal is converted into an electric signal, and the camera photosensitive element transmits the electric signal to the ISP for processing and is converted into an image visible to naked eyes. ISP can also optimize the noise, brightness and skin color of the image. The ISP can also optimize parameters such as exposure, color temperature and the like of a shooting scene. In some embodiments, the ISP may be provided in the camera 193.
The camera 193 is used to capture still images or video. In some embodiments, electronic device 100 may include 1 or N cameras 193, N being a positive integer greater than 1.
The NPU is a neural-network (NN) computing processor, and can rapidly process input information by referencing a biological neural network structure, for example, referencing a transmission mode between human brain neurons, and can also continuously perform self-learning. Applications such as intelligent awareness of the electronic device 100 may be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, etc.
The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to enable expansion of the memory capabilities of the electronic device 100. The external memory card communicates with the processor 110 through an external memory interface 120 to implement data storage functions. For example, files such as music, video, etc. are stored in an external memory card.
The internal memory 121 may be used to store computer executable program code including instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area may store an application program (such as a sound playing function, an image playing function, etc.) required for at least one function of the operating system, etc. The storage data area may store data created during use of the electronic device 100 (e.g., audio data, phonebook, etc.), and so on. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (universal flash storage, UFS), and the like. The processor 110 performs various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playing, recording, etc.
The audio module 170 is used to convert digital audio information into an analog audio signal output and also to convert an analog audio input into a digital audio signal. The audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be disposed in the processor 110, or a portion of the functional modules of the audio module 170 may be disposed in the processor 110.
The speaker 170A, also referred to as a "horn," is used to convert audio electrical signals into sound signals. The electronic device 100 may listen to music, or to hands-free conversations, through the speaker 170A.
A receiver 170B, also referred to as a "earpiece", is used to convert the audio electrical signal into a sound signal. When electronic device 100 is answering a telephone call or voice message, voice may be received by placing receiver 170B in close proximity to the human ear.
Microphone 170C, also referred to as a "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or transmitting voice information, the user can sound near the microphone 170C through the mouth, inputting a sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, and may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four, or more microphones 170C to enable collection of sound signals, noise reduction, identification of sound sources, directional recording functions, etc.
The earphone interface 170D is used to connect a wired earphone. The headset interface 170D may be a USB interface 130 or a 3.5mm open mobile electronic device platform (open mobile terminal platform, OMTP) standard interface, a american cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
The pressure sensor 180A is used to sense a pressure signal, and may convert the pressure signal into an electrical signal.
The gyro sensor 180B may be used to determine a motion gesture of the electronic device 100. In some embodiments, the angular velocity of electronic device 100 about three axes (i.e., x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B may be used for photographing anti-shake. For example, when the shutter is pressed, the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance to be compensated by the lens module according to the angle, and makes the lens counteract the shake of the electronic device 100 through the reverse motion, so as to realize anti-shake. The gyro sensor 180B may also be used for navigating, somatosensory game scenes.
The air pressure sensor 180C is used to measure air pressure. In some embodiments, electronic device 100 calculates altitude from barometric pressure values measured by barometric pressure sensor 180C, aiding in positioning and navigation.
The magnetic sensor 180D includes a hall sensor. The electronic device 100 may detect the opening and closing of the flip cover using the magnetic sensor 180D. In some embodiments, when the electronic device 100 is a flip machine, the electronic device 100 may detect the opening and closing of the flip according to the magnetic sensor 180D. And then according to the detected opening and closing state of the leather sheath or the opening and closing state of the flip, the characteristics of automatic unlocking of the flip and the like are set.
The acceleration sensor 180E may detect the magnitude of acceleration of the electronic device 100 in various directions (typically three axes). The magnitude and direction of gravity may be detected when the electronic device 100 is stationary. The electronic equipment gesture recognition method can also be used for recognizing the gesture of the electronic equipment, and is applied to horizontal and vertical screen switching, pedometers and other applications.
A distance sensor 180F for measuring a distance. The electronic device 100 may measure the distance by infrared or laser. In some embodiments, the electronic device 100 may range using the distance sensor 180F to achieve quick focus.
The proximity light sensor 180G may include, for example, a Light Emitting Diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object in the vicinity of the electronic device 100. When insufficient reflected light is detected, the electronic device 100 may determine that there is no object in the vicinity of the electronic device 100. The electronic device 100 can detect that the user holds the electronic device 100 close to the ear by using the proximity light sensor 180G, so as to automatically extinguish the screen for the purpose of saving power. The proximity light sensor 180G may also be used in holster mode, pocket mode to automatically unlock and lock the screen.
The ambient light sensor 180L is used to sense ambient light level. The electronic device 100 may adaptively adjust the brightness of the display 194 based on the perceived ambient light level. The ambient light sensor 180L may also be used to automatically adjust white balance when taking a photograph. Ambient light sensor 180L may also cooperate with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent false touches.
The fingerprint sensor 180H is used to collect a fingerprint. The electronic device 100 may utilize the collected fingerprint feature to unlock the fingerprint, access the application lock, photograph the fingerprint, answer the incoming call, etc.
The temperature sensor 180J is for detecting temperature. In some embodiments, the electronic device 100 performs a temperature processing strategy using the temperature detected by the temperature sensor 180J. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs a reduction in the performance of a processor located in the vicinity of temperature sensor 180J in order to reduce power consumption to implement thermal protection. In other embodiments, when the temperature is below another threshold, the electronic device 100 heats the battery 142 to avoid the low temperature causing the electronic device 100 to be abnormally shut down. In other embodiments, when the temperature is below a further threshold, the electronic device 100 performs boosting of the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperatures.
In an embodiment of the present application, the temperature sensor 180J may include a plurality of sensors for detecting temperatures at different locations of the electronic device 100, for example, may be disposed near a processor, acquire a temperature of the processor, be disposed near a battery, acquire a temperature of the battery, or be disposed inside a housing of the electronic device 100, for acquiring a temperature of the housing of the electronic device 100.
The touch sensor 180K, also referred to as a "touch device". The touch sensor 180K may be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is for detecting a touch operation acting thereon or thereabout. The touch sensor may communicate the detected touch operation to the application processor to determine the touch event type. Visual output related to touch operations may be provided through the display 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a different location than the display 194.
The keys 190 include a power-on key, a volume key, etc. The keys 190 may be mechanical keys. Or may be a touch key. The electronic device 100 may receive key inputs, generating key signal inputs related to user settings and function controls of the electronic device 100.
The motor 191 may generate a vibration cue. The motor 191 may be used for incoming call vibration alerting as well as for touch vibration feedback. For example, touch operations acting on different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 191 may also correspond to different vibration feedback effects by touching different areas of the display screen 194. Different application scenarios (such as time reminding, receiving information, alarm clock, game, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
The indicator 192 may be an indicator light, may be used to indicate a state of charge, a change in charge, a message indicating a missed call, a notification, etc.
The SIM card interface 195 is used to connect a SIM card. The SIM card may be inserted into the SIM card interface 195, or removed from the SIM card interface 195 to enable contact and separation with the electronic device 100. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support Nano SIM cards, micro SIM cards, and the like. The same SIM card interface 195 may be used to insert multiple cards simultaneously. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to realize functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, i.e.: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
For the scenario in the above example, the operating system of electronic device 100 may include, but is not limited to, the operating systems of Seban (Symbian), android (android), windows (Windows), apples (MacOS, iOS), blackberry (Blackberry), hong (Harmony OS), lin Nasi (Linux), or You Nake (Unix), among others.
Fig. 3 is a system structural block diagram of an electronic device according to an embodiment of the present application.
As an example, when the method for entering the long standby mode provided by the present application is run on the electronic device 100, the operating system of the electronic device 100 may be android, and the system structure thereof may refer to fig. 3.
The layered architecture divides the software into a plurality of layers, and each layer has clear roles and division. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun row (Android run) and system libraries, and a kernel layer, respectively.
The application layer may include a series of application packages.
As shown in fig. 3, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 3, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display characters, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying characters and a view displaying pictures.
The telephony manager is for providing communication functions of the electronic device. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction. Such as notification manager is used to inform that the download is complete, message alerts, etc. The notification manager may also be a notification in the form of a chart or scroll bar text that appears on the system top status bar, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, a text message is prompted in a status bar, a prompt tone is emitted, the electronic device vibrates, and an indicator light blinks, etc.
Android run time includes a core library and virtual machines. Android run time is responsible for scheduling and management of the Android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., openGL ES), 2D graphics engines (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
Fig. 4 is a software structural block diagram of an electronic device according to an embodiment of the present application.
Referring to fig. 4, the software architecture of the electronic device includes a compute engine, a long standby application, and a perception module. The computing engine, the long standby application and the perception module are all deployed on an application program layer in an application mode.
In some possible embodiments, the perception module includes a data center, an event collection component, and an event fence.
The event fences include a bright screen event fence and a dead screen event fence. When the screen-on event fence or the screen-off event fence is triggered by the screen-on event or the screen-off event, the corresponding event fence indicates the event acquisition component to acquire the time when the screen-on event occurs, the time when the screen-off event occurs, the position information of the place where the electronic equipment is located when the screen-off event occurs, the date when the screen-off event occurs, the target parameters and the like.
The target parameter may include at least one of an environmental parameter of a place where the electronic device is located when the off-screen event occurs, a motion state of the electronic device after the off-screen event occurs, and a background application sequence of the electronic device when the off-screen event occurs.
The event fence is also used to instruct the compute engine to predict whether to enter a long standby mode in response to a currently occurring off screen event. For example, if the spatiotemporal information of the currently occurring off-screen event falls into the off-screen event fence in the event fences, the computing engine is instructed to predict whether to enter the long standby mode according to the time period, the place and the target parameters of the currently occurring off-screen event.
The data center station stores a historical event table, and the historical event table records historical space-time information and target parameters which are acquired by the event acquisition component when a screen-on event or a screen-off event occurs in each time of history.
In some possible implementations, the computing engine includes a long standby model generation module, a long standby prediction module, and a long standby control module.
The long standby model generation module is used for training through the historical space-time information of the same time period and the same place according to the historical event table to obtain a plurality of probabilities of entering the long standby mode. Wherein, the historical screen-off event which occurs in the same time period and the same place corresponds to one probability of entering a long standby mode.
The long standby prediction module is used for responding to the indication of the screen-off event fence, calling the long standby model generation module to predict whether the screen-off event enters a long standby mode or not according to the time-space information corresponding to the screen-off event triggering the screen-off event fence, and then correcting the prediction result according to the target parameter to finally determine whether the screen-off event enters the long standby mode or not.
When the long standby prediction module predicts that the long standby mode needs to be entered, the long standby control module sends a corresponding control instruction to the long standby application.
The long standby application comprises a long standby module, and the long standby module is used for responding to the control instruction sent by the long standby prediction module and controlling the electronic equipment to enter a long standby mode. For example, a long standby module for an android system may instruct an electronic device to enter a Doze mode.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. For example, a "module" may be a software program, a hardware circuit, or a combination of both that implements the functionality described above. The hardware circuitry may include application specific integrated circuits (application specific integrated circuit, ASICs), electronic circuits, processors (e.g., shared, proprietary, or group processors, etc.) and memory for executing one or more software or firmware programs, merged logic circuits, and/or other suitable components that support the described functions.
Thus, the modules of the examples described in the embodiments of the present application can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In addition, the specific names of the functional units and modules are only for distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the following method embodiments, which are not described herein.
Fig. 5 is a flowchart of a method for entering a long standby mode according to an embodiment of the present application.
Referring to fig. 5, the method of entering the long standby mode includes:
s501, acquiring historical screen-off data of the electronic equipment, and determining a plurality of probabilities of entering a long standby mode according to the historical screen-off data.
In some possible implementations, referring to fig. 3, the event collection component may collect historical temporal and spatial information and target parameters corresponding to an event each time a screen-on event or screen-off event occurs, and store the historical temporal and spatial information and target parameters corresponding to each collected event in a historical event table of the data center.
The long standby model generating module in the computing engine can process and obtain the historical screen-off data according to the data in the historical event table.
The historical screen-off data includes: historical space-time information and reference information of historical screen-off events. The historical spatiotemporal information includes a period of time when the historical off-screen event occurred and a location where the electronic device was located when the historical off-screen event occurred. The reference information includes a date on which the historical off-screen event occurred, and whether the electronic device is in a long standby mode after the historical off-screen event occurred.
And then training by the long standby model generation module according to the historical screen-off data to obtain one or more prediction models of the long standby mode. The predictive model for each long standby mode includes corresponding historical spatiotemporal information and a probability of entering the long standby mode under the historical spatiotemporal information. The predictive model for each long standby mode may be stored locally or in the cloud by way of a model file.
Fig. 6 is a flowchart of S501 in a method for entering a long standby mode according to an embodiment of the present application.
In some possible implementations, referring to fig. 5, S501 may be implemented by:
s5011, the data center records the original data of the screen-on event or the screen-off event from the event acquisition component in the history event table.
In some possible implementations, a bright screen event or a dark screen event is monitored by an event fence. When a bright screen event or a dark screen event occurs, the event fence is triggered and instructs the event collection component to collect raw data of the bright screen event or the dark screen event.
The original data of the screen-on event or the screen-off event comprises the event type, the moment of occurrence of the event and the information of the place of occurrence of the event. Event type includes a bright screen, which may be denoted as event type1 (EventType 1); screen-off, which can be noted as event type2 (EventType 2); and unlock screen, noted event type3 (EventType 3). The moment of occurrence of an event may be recorded by natural time. The location information of the event may include longitude and latitude, a service set identification (Service Set Identifier, ssid) of the wireless access point to which the electronic device is connected, a basic service set identification (Basic Service Set Identifier, bsssid) of the electronic device accessing the local area network, and a Cell identifier (Cell power ID, cellid or cid) of the base station to which the electronic device is connected.
S5012, the data center performs data preprocessing on the original data to obtain historical screen-off data.
Fig. 7 is a flowchart of S5012 in the method for entering the long standby mode according to the embodiment of the present application.
In some possible implementations, referring to fig. 6, the data preprocessing of the raw data may include the steps of:
s5012a, cleaning the original data, and screening the active screen-off event.
In some possible implementations, the cleaning data refers to a first one of a plurality of bright screen events, off screen events, or unlock screens that remain at the same time.
For example, at 10 points 35 minutes 30 seconds there are multiple applications pushing notifications simultaneously, and the push notification of each application is recorded as a bright screen event in the original data. But at this time (for example, the granularity of the time may be 1 second), the electronic device actually only lights up once, so that only the bright screen event corresponding to the first push notification may be reserved, and other bright screen events may be washed out.
For another example, at 10 points 35 minutes 30 seconds, the electronic device may have two unlock screens simultaneously created by face unlock and fingerprint unlock. At this time (e.g., the granularity of the time may be 1 second), only the first unlock screen may remain to be washed away from the other unlock screens.
In some possible implementation manners, the active screen-off event and the corresponding screen-off duration are screened, and the screen-on event, the screen-off event and the screen-off unlocking event in the original data can be arranged according to the time sequence of the occurrence time of the event.
Then, positioning an unlocking screen, and acquiring the next screen-off event after the unlocking screen and the moment when the screen-off event happens, wherein the screen-off event is an active screen-off event.
And finally, obtaining the screen-off duration after the active screen-off event according to the time difference between the moment when the active screen-off event occurs and the moment when the next screen-off event occurs.
After positioning and calculating the unlocking screen each time, the active screen-off event can be obtained through screening, and the corresponding screen-off duration after each active screen-off event occurs is obtained.
In the embodiment, the active screen-off event is screened, so that the non-active screen-off caused by the reasons of application push notification, system prompt and the like can be avoided, interference is eliminated, and the prediction accuracy is improved.
S5012b, associating the location information acquired at the same time according to the time when the active screen-off event occurs.
In some possible implementations, the time when the active screen-off event occurs is the time when the next screen-off event occurs after the screen is unlocked in S5012 a. And correlating the location information acquired at the moment with the active screen-off event.
S5012c, marking the place where the active screen-off event occurs according to the place information corresponding to the active screen-off event.
In some possible implementation manners, the location information corresponding to the active screen-off event may be compared and matched with the location in the pre-acquired user portrait, and if the matched location exists, the location is marked on the active screen-off event.
For example, the pre-acquired user portraits may be acquired from a user profile (userProfile) in the electronic device. Where the customer's premises (location) information may be included, for example, the premises may include a plurality of locations, such as a home, company, etc.
In some possible implementations, the location fence corresponding to the resident information may be acquired first. For example, if there is a "HomeHistory" field or a "ComponensHistory" field in the user profile, this indicates that there is a place fence for home and company. The location fence of the home or company may be obtained from the corresponding field, and may include a bssid list (bssidlist), a ssid list (ssidlist), a cellid list (cellidlist), a center longitude and latitude, and the like of the corresponding location.
In some possible implementations, after the location fence corresponding to the resident information is acquired, matching is performed according to the priority according to the location information associated with the active off-screen event. For example, the priority may be in the order of bssidlist, ssidlist, cellidlist, center longitude and latitude.
For example, the bssid in the location information associated with the active off-screen event may be first used to match the bssidList in the location fence corresponding to each piece of residence information, and if the same bssid is matched in the bssidList of a certain location fence, the residence corresponding to the location fence is marked as the location where the active off-screen event occurs.
Wherein if the same bssid, ssid or celid exists in different place fences. There may be situations when matching to multiple place fences. In this case, the same timestamp (timestamp) of bssid, ssid, or cellid in each place fence can be obtained. And marking the resident corresponding to the place fence with the latest time stamp as the place where the active screen-off event occurs.
And when the distance between the location associated with the active screen-off event and the center of each location fence is less than or equal to a preset distance, such as 200 meters, the resident corresponding to the location fence is marked as the location where the active screen-off event occurs.
For bssid, ssid, cellid and the matched location information of the longitude and latitude of the center, the location where the active screen-off event occurs can be marked as other (other). When there are multiple identical or similar places among others, a new place fence may be generated from the multiple identical or similar places. The similar places are places with a distance smaller than or equal to a preset distance calculated according to longitude and latitude.
S5013, the calculation engine acquires historical screen-off data in a first preset duration from the historical event table.
In some possible embodiments, the probability of entering the long standby mode may be determined multiple times per day according to the historical screen-off data, or the probability of entering the long standby mode multiple times may be determined according to the historical screen-off data after the received model update instruction.
For example, the computing engine may sequentially perform the steps S5013 to S5018 at preset times (e.g., 2 a.m., 5 a.m.) each day. Alternatively, the electronic device may instruct the calculation engine to sequentially execute the steps of S5013 to S5018 after receiving the update instruction from the user.
In some possible implementations, the historical off-screen data obtained by the computing engine from the historical event table includes: historical space-time information and reference information of historical screen-off events.
As an example, the historical off-screen event may be each active off-screen event occurring at a first preset time period, and the historical spatiotemporal information includes a time period and a place at which each active off-screen event occurs. The reference information includes a date of each historical off-screen event occurrence and whether the electronic device is in a long standby mode after the historical off-screen event occurrence.
The first preset duration refers to a duration of collecting data, and may be, for example, one week, one month, or 3 months. The place where the historical screen-off event occurs is the place marked according to the place information related to the historical screen-off event, such as home, company, other places and the like.
In some possible implementations, 24 hours a day may be divided into a plurality of time periods according to a certain duration, and a time period corresponding to the time when the historical screen-off event occurs is recorded. As an example, 24 hours a day may be divided into 48 periods in half an hour, and the time of occurrence of the historical off-screen event falls into which period, i.e., the period in which the historical off-screen event occurs is listed in the period.
For example, a historical off screen event occurs at 10 points for 35 minutes 30 seconds, which time falls within period 22 (10:30-11:00) during 48 periods of the day. The period of time during which the historical off-screen event occurs may be noted as 22, i.e., the period of time in the historical spatiotemporal information corresponding to the historical off-screen event is 22.
In some possible implementation manners, whether the electronic device is in the long standby mode after the historical screen-off event occurs is obtained, whether the electronic device is in the long standby mode after the historical screen-off event occurs can be determined according to the corresponding screen-off time length after the historical screen-off event occurs, and then recording is performed.
For example, for an android system, the wait time for entering the Doze mode after the occurrence of a historical off screen event is 30 minutes. In this regard, the corresponding off-screen time period after the occurrence of the historical off-screen event may be greater than 30 minutes, which may be determined as the electronic device being in a long standby mode after the occurrence of the historical off-screen event; and determining that the electronic equipment is not in the long standby mode after the historical screen-off event occurs, wherein the corresponding screen-off time length after the historical screen-off event occurs is less than or equal to 30 minutes.
As an example, for each historical off-screen event, an identifier may be set that the electronic device is in a long standby mode after the occurrence of the historical off-screen event, and when the identifier is recorded as 1, the identifier indicates that the electronic device is in the long standby mode after the occurrence of the historical off-screen event. When the identifier record is 0, the electronic device is not in the long standby mode after the historical screen-off event occurs.
S5014, acquiring reference information of corresponding different time periods of the same place within a first preset time period.
In some possible implementations, the historical screen-off data may include historical space-time information and reference information corresponding to the historical screen-off event within the first preset time period. And traversing the historical screen-off data, screening the historical screen-off events with the same places in the historical space-time information, and acquiring the reference information of different time periods under each place.
S5015, determining the probability of entering a long standby mode after the screen-off event occurs in each period of the same place according to a plurality of pieces of reference information.
In some possible implementations, the weight coefficient may be determined according to an interval between a date corresponding to the historical screen-off time and a current date in reference information corresponding to the historical screen-off event occurring in the same time period and the same place. And acquiring the probability of entering the long standby mode after the screen-off event occurs in each period of the same place according to whether each historical screen-off event occurs in the long standby mode and the weight coefficient.
Referring to S5013, assuming that the current date is 2023, 4 months, 8 days, the first preset time period is 7 days, reference information and weight coefficients of the same period of 7 identical places in the history screen-off data are shown in table 1:
TABLE 1
In some possible embodiments, referring to table 1, when the location is a company and the period is 27, the probability (P) of entering the long standby mode after the off-screen event occurs may be calculated according to table 1, where the formula is as follows:
For example, referring to table 1, according to the formula, when the place is a company and the period is 27, the probability of entering the long standby mode after the off-screen event occurs is: 0.89.
in some possible embodiments, for each period of each location, the calculation may be performed according to the historical screen-off data, with reference to the above manner, to obtain the probability of entering the long standby mode after the screen-off event occurs in each period of each location.
In this embodiment, the weight coefficient is determined according to the interval between the date corresponding to the historical screen-off time and the current date, so that the weight of the recent historical screen-off event can be improved, the recent habit of the user can be learned more accurately, and the accuracy of prediction is improved.
In some possible embodiments, when calculating each time period of each place, the data of one time sliding window can be taken before and after each time period to calculate. For example, assuming a window of 15 minutes for a time sliding window, for period 27 (13:00-13:30), 12 may be obtained: 45-13: 45.
For example, if present, this occurs at 12:59 minutes of historical off-screen events. For period 27, this historical off screen event was not originally included, but 12: a 59 minute occurrence of a historical off-screen event may extend into period 27, which may result in the accuracy of the prediction of period 27 being affected.
In this embodiment, the accuracy of prediction can be effectively improved by taking the data close to the time interval demarcation point into consideration.
S5016, determining a second probability threshold corresponding to each period.
In some possible implementations, the second probability threshold may be a admission threshold for each period. That is, when the probability of entering the long standby mode after the off-screen event occurs in one period is greater than the second probability threshold, the probability of entering the long standby mode after the off-screen event occurs in the period is issued and used.
In some possible embodiments, the second probability threshold may be determined according to a first preset duration.
As an example, the corresponding duration weight may be determined according to a first preset duration. And inputting the time length weight into a preset function to obtain a second probability threshold.
The function may be configured when the electronic device leaves the factory or when the system is updated. Or, the configuration may be performed in the cloud, and the electronic device may communicate with the cloud to obtain the configuration, which is not limited in the present application.
For example, table 2 shows a scheme for determining the second probability threshold according to the first preset time period.
TABLE 2
Table 3 shows another scheme for determining the second probability threshold based on the first preset time period.
TABLE 3 Table 3
/>
Table 4 shows yet another scheme for determining the second probability threshold based on the first preset time period.
TABLE 4 Table 4
Referring to the examples in tables 2, 3 and 4, the longer the first preset duration, the more history off-screen data is acquired, and the second probability threshold may be reduced appropriately. The second probability threshold dynamically changes according to the first preset duration.
In this embodiment, the probability of entering the long standby mode after the screen-off event occurs in each period under the same location can be given more accurately through the dynamically changing second probability threshold, so that the accuracy of prediction is improved.
S5017, for each period, determining whether the probability of entering the long standby mode after the screen-off event is greater than or equal to a corresponding second probability threshold, if so, executing S5018, and if not, ending the flow.
In some possible embodiments, historical temporal-spatial information corresponding to a period of time when the probability of entering the long standby mode after the off-screen event is greater than or equal to a corresponding second probability threshold may be written into the temporal-spatial information set. The time-space information set comprises at least one historical time-space information meeting a second preset condition, wherein the second preset condition comprises that the probability of entering a long standby mode corresponding to the historical time-space information is larger than or equal to a second probability threshold corresponding to the historical time-space information.
S5018, write the place and time slot into the time slot information set and issue.
In some possible embodiments, the set of spatio-temporal information includes model files generated by the long standby model generation module. The model file may be stored in a file form such as a text document, JS object profile (JavaScriptObject Notation, JSON), or the like.
As an example, the following places and periods meeting the conditions in S5017 are obtained: the place is home, the period of time 14, the probability of entering a long standby mode after the screen-off event is happened is 0.8; the place is home, the period 47, the probability of entering a long standby mode after the screen-off event is 0.9; the place is a company, the period of time 27, and the probability of entering a long standby mode after the screen-off event is generated is 0.95; the location is other, the period 36, the probability of entering a long standby mode after the screen-off event is 0.6; the places are other, the time period 20, and the probability of entering a long standby mode after the screen-off event is 0.85;
the model file may be recorded as:
in some possible embodiments, at least one period corresponding to historical spatiotemporal information of the same location in the set of spatiotemporal information may be obtained. Then, a time fence for each location is obtained based on the location and at least one time period. For example, referring to the model file above, for the place "home", the time fence is "period 47, period 14"; for the place "company", the time fence is "period 27".
In some possible embodiments, when the air information set issues the model file, the model file in the air information set is started, and the long standby prediction module can call the model file to predict and infer.
S502, under the condition that the screen-off event of the electronic equipment in a non-charging state is detected, acquiring first time-space information corresponding to the screen-off event.
In some possible implementations, the state of charge of the electronic device may be obtained by receiving a battery state broadcast by the power manager. When the state of charge identification is false, then the electronic device is in a non-charged state. The first time-space information may be collected by a notification event collection component when the time fence detects an off-screen event.
In some possible implementations, the off-screen event may be an active off-screen event. The active screen-off event comprises an automatic screen-off event after the electronic device detects a screen-on operation from a user or a screen-off event after the electronic device responds to a screen-off operation from a user.
It should be noted that, in this embodiment, the detection manner of the active off-screen event may refer to the manner of screening the active off-screen event shown in S5012a, which is not described herein.
In some possible embodiments, after the active screen-off event occurs, when a second preset duration passes and no screen-on operation from the user is detected within the second preset duration, the first time-space information corresponding to the active screen-off event is acquired. Therefore, the situation that the user actively turns off the screen and then operates in a short time can be avoided, the reasoning prediction is performed in more reasonable time, and the accuracy of the reasoning prediction is improved. As an example, the second preset time period may be 3 minutes, 5 minutes, 10 minutes, or the like, to which the present application is not limited.
S503, acquiring a first probability corresponding to the first time-space information.
In some possible embodiments, the probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same period and the same location as the first spatiotemporal information may be obtained first. Then, the probability of entering the long standby mode corresponding to the historical spatiotemporal information having the same period and the same location as the first spatiotemporal information is taken as the first probability corresponding to the first spatiotemporal information.
For example, the first time-space information is 27 in time and the place is a company. The long standby prediction module may match the first time-space information in the model file published by the time-space information set in the example of S5018, to obtain a first probability corresponding to the first time-space information as 0.95.
In some possible implementations, reference is made to the time-fencing for each location shown in S5018. The corresponding time fence can be acquired according to the place in the first time-space information, and when the time period in the first time-space information falls into the corresponding time fence, the probability of entering the long standby mode of the historical time-space information with the same time period and the same place as the first time-space information is acquired. The probability of entering the long standby mode corresponding to the historical space-time information with the same time period and the same location as the first space-time information is taken as the first probability corresponding to the first space-time information.
For example, if the first time-space information period is 27, the location is a company. The event fence may obtain a time fence "period 27" from the location "company" in the first time space information. The period in the first time-space information is also 27, i.e. the period in the first time-space information falls into the time-fence. The event fence indicates that the long standby prediction module performs matching in the model file issued by the space-time information set in the example of S5018 according to the company and the period 27, and finally obtains that the first probability corresponding to the first space-time information is 0.95.
If the first time-space information period is 29, the location is a company. The event fence may obtain a time fence "period 27" from the location "company" in the first time space information. The period in the first time-space information is 29, i.e. the period in the first time-space information does not fall into the time fence. In this case, the event fence does not respond, i.e., does not instruct the long standby prediction module to make inferential predictions.
In this embodiment, by setting the time fence, inference prediction on invalid spatial-temporal information (that is, spatial-temporal information which cannot be matched with the corresponding first probability) can be avoided, power consumption of the electronic device is reduced, and endurance time of the electronic device is improved.
S504, determining whether the first probability is greater than or equal to a first probability threshold corresponding to the first time-space information, if so, executing S505, otherwise, ending the flow.
In some possible implementations, the first probability threshold is equal to the second probability threshold. The manner of acquiring the first probability threshold is the same as that of acquiring the second probability threshold in S5016, and will not be described here.
As an example, the place in the first time-space information in S503 is the "company" period is the "period 27", and the first preset time period is assumed to be 30 days. The first probability is 0.95. The first probability threshold is equal to the second probability threshold, which is 0.85 with reference to table 2 in S5016. It is determined that the first probability is greater than the first probability threshold, and S505 is performed.
S505, acquiring target parameters of the electronic equipment.
In some possible implementations, the target parameter includes at least one of an environmental parameter at the time of the off-screen event, a motion state after the off-screen event, and a background application sequence at the time of the off-screen event.
The step of acquiring the environmental parameter when the off-screen event occurs and the background application sequence when the off-screen event occurs may refer to S5011. When the event acquisition component acquires the original data of the on-screen event or the off-screen event, the environment parameters when the off-screen event occurs and the background application sequence when the off-screen event occurs can be acquired simultaneously.
For example, the environmental parameters at the time of the off-screen event may include at least one of ambient light intensity, ambient sound intensity, ambient temperature. The ambient light intensity at the time of the off-screen event may be collected by ambient light sensor 180L shown in fig. 1. Or if the intelligent device with the illumination intensity acquisition function is in communication connection with the electronic device, the intelligent device can acquire the illumination intensity and then transmit the illumination intensity to the electronic device.
Similarly, ambient sound intensity may be captured by microphone 170C shown in fig. 1, or by a smart device communicatively coupled to the electronic device having sound intensity capturing functionality. The manner of collecting the ambient temperature is similar, and the ambient temperature can be collected by the temperature sensor 180J shown in fig. 1, or by an intelligent device with a temperature collecting function in communication with an electronic device.
As an example, the background application sequence when the off-screen event occurs is collected to obtain a background application list when the off-screen event occurs, and according to the last time that each application in the background application list is activated in the foreground, the background application sequence when the off-screen event occurs is obtained. Or, the use duration, the power consumption or the memory occupation amount of each application in the background application list can be acquired.
S506, determining whether the target parameters meet the first preset conditions, if so, executing S507, otherwise, ending the flow.
In some possible embodiments, when the target parameter includes an environmental parameter when the off-screen event occurs, the reference information may further include a historical environmental parameter when the electronic device occurs a historical off-screen event, that is, in the example in S505, the environmental parameter when the off-screen event occurs may be collected as the historical environmental parameter at the same time when the event collection component collects the original data of the on-screen event or the off-screen event. For a plurality of environmental parameters acquired at the same place and for the same period, an average value thereof may be taken as a historical environmental parameter.
In some possible embodiments, it is determined that the environmental parameter of the electronic device when the off-screen event occurs meets a first preset condition, and the historical environmental parameter of the time period and the place corresponding to the first time-space information may be acquired first.
And then comparing the environmental parameter when the electronic equipment generates the screen-off event with the historical environmental parameter, and determining that the target parameter meets a first preset condition when the environmental parameter when the electronic equipment generates the screen-off event is the same as or similar to the historical environmental parameter.
The environmental parameter of the electronic device when the screen-off event occurs is the same as or similar to the historical environmental parameter, which means that the environmental parameter of the electronic device when the screen-off event occurs is the same as the historical environmental parameter in value, or the difference between the values is smaller than the preset difference range.
For example, when the environmental parameter is an ambient light intensity, the historical environmental parameter is a historical ambient light intensity. Assume that the historical ambient light intensity is 100 lux (lx). If the ambient light intensity when the electronic equipment generates the screen-off event is 100lx, the ambient parameters when the electronic equipment generates the screen-off event can be confirmed to be the same as the historical ambient parameters.
Or when the preset difference range is 10lx, for the historical environment illumination intensity of 100 lux (lx), if the environment illumination intensity of the electronic equipment when the screen-off event occurs is greater than or equal to 90lx and less than or equal to 110lx, the environment parameters of the electronic equipment when the screen-off event occurs can be confirmed to be similar to the historical environment parameters.
In still other possible embodiments, the user may be in a quiet environment with a high probability of low light, low noise, etc. when the electronic device enters the long-off mode. Therefore, if it is determined that the environment in which the electronic device is located when the screen-off event occurs is a low-light or low-noise environment, it may also be determined that the target parameter meets the first preset condition.
As an example, when the environmental parameter includes an ambient light intensity or an ambient sound intensity, if the environmental parameter when the electronic device generates the off-screen event is less than the historical environmental parameter, and/or the environmental parameter when the electronic device generates the off-screen event is less than or equal to the environmental parameter threshold, it is determined that the target parameter meets the first preset condition.
For example, when the environmental parameter is ambient light intensity, assuming that the historical ambient light intensity is 100 lux (lx), if the ambient light intensity when the electronic device generates a screen-off event is less than 100lx, that is, the electronic device is in a low light environment when the electronic device generates the screen-off event, it may also be determined that the target parameter meets the first preset condition.
Alternatively, when the environmental parameter is the ambient light intensity, the environmental parameter threshold is 100lx assuming that the historical ambient light intensity is 50 lux (lx). If the ambient light intensity when the electronic equipment generates the off-screen event is greater than 50lx but less than 100lx, the electronic equipment is in a low light environment when the electronic equipment generates the off-screen event, and the target parameters can be determined to accord with the first preset conditions.
It should be noted that, when the environmental parameter of the electronic device when the off-screen event occurs is the same as or similar to the historical environmental parameter, the environment where the electronic device is located is similar to the historical environment, which accords with the habit of the user, and the prediction result does not need to be corrected. When the environmental parameters of the electronic equipment are different from or have larger difference from the historical environmental parameters, the environment where the electronic equipment is located has larger difference from the historical environment, and is inconsistent with the habit of the user, and the prediction result can be corrected.
In some possible embodiments, the target parameter may further include a motion state of the electronic device within a second preset duration after the off-screen time of the electronic device occurs. The second preset duration is the same as that in S502, and will not be described herein.
As an example, determining that the target parameter meets the first preset condition may determine that the target parameter meets the first preset condition when no movement of the electronic device is detected within the second preset time period.
In some possible embodiments, detecting the movement of the electronic device within the second preset time period may be implemented by the gyro sensor 180B and/or the acceleration sensor 180E shown in fig. 1. For example, when the gyroscope sensor detects that the gesture of the electronic device is changed and the acceleration sensor detects that acceleration is generated in a certain direction, the electronic device can be confirmed to move.
It should be noted that, according to the analysis of the habit of the user, when the screen-off event occurs and the electronic device enters the long standby mode, the probability of the electronic device being stationary (i.e. not moving) is 80% -90%. Therefore, when the electronic equipment is detected to move within the second preset time, the electronic equipment is not likely to enter the long standby mode, and the prediction result can be corrected.
In still other possible embodiments, the target parameter may further include a background application sequence when the electronic device experiences an off-screen event. The reference information also comprises a second characteristic of the electronic equipment when the historical screen-off event occurs, wherein the second characteristic is a characteristic of a background application sequence corresponding to the historical screen-off event which is obtained after the electronic equipment enters a long standby mode within a first preset duration.
As an example, determining that the target parameter meets the first preset condition may include acquiring a first feature of a background application sequence when the electronic device has an off-screen event. And when the first characteristic is matched with at least one second characteristic which is identical to the first time-space information of the first time-space information and has the same time period, determining that the target parameter meets a first preset condition.
The first feature and the second feature may include an order of a background application sequence, a use duration of each application in the background application sequence, and the like. The first feature and the second feature may match in the same order of the background application sequence. Or the use time of each application in the background application sequence is the same or similar.
It should be noted that, when the first feature and the second feature do not match, it indicates that the current use situation of the electronic device is different from the habit of the user. Indicating that the electronic device may not enter a long standby mode, the prediction may be modified.
In this embodiment, when S506 is executed, it indicates that the first probability is greater than the first probability threshold, and the prediction result is to control the electronic device to enter the long standby mode. Correcting the predicted result means correcting the predicted result so as not to control the electronic device to enter the long standby mode.
The target parameters are used for correcting the prediction results, so that false recognition can be avoided, false predictions can be filtered, the accuracy of prediction is improved, and better use experience is provided for users.
S507, controlling the electronic equipment to enter a long standby mode.
In some possible embodiments, taking an android device as an example, the electronic device is controlled to enter a long standby mode, that is, the long standby module in the long standby application is instructed to enter the Doze mode by the long standby control module in fig. 3. Similarly, for devices running other systems, the electronic device may be instructed to enter a long standby mode provided by the corresponding system. If the system does not provide a long standby mode, the long standby mode can be configured for the system according to the Doze mode and entered.
And S508, controlling the electronic equipment to exit the long standby mode after detecting that the electronic equipment is in a charging state.
In some possible embodiments, when the electronic device is in the long standby mode, if it is detected that the electronic device starts to charge, it means that the electronic device may exit the long standby mode without considering the problem of power consumption, so as to provide better performance.
In still other possible implementations, when the electronic device is in the long standby mode, if the screen is unlocked or the target parameter in S506 is detected to no longer meet the first preset condition, it indicates that the user may need to use the electronic device. In this case, a better use experience is provided for the user when the long standby mode is also exited.
It should be understood that the above description is intended to aid those skilled in the art in understanding the embodiments of the present application, and is not intended to limit the embodiments of the present application to the specific values or particular scenarios illustrated.
It will be apparent to those skilled in the art from the foregoing description that various equivalent modifications or variations can be made, and such modifications or variations are intended to be within the scope of the embodiments of the present application.
It should be understood that, the hardware system and the chip in the embodiments of the present application may perform the methods for entering the long standby mode in the foregoing embodiments of the present application, that is, the following specific working processes of the various products may refer to the corresponding processes in the foregoing method embodiments.
The embodiment of the application also provides another electronic device which comprises a processor and a memory.
A memory for storing a computer program executable on the processor.
A processor for performing the steps of processing in the method of entering a long standby mode as described above.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer instructions; the computer readable storage medium, when run on an electronic device, causes the electronic device to perform the method as previously described.
The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.).
The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device including one or more servers, data centers, etc. that can be integrated with the medium.
The usable medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium, or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.
The embodiments of the present application also provide a computer program product comprising computer instructions which, when run on an electronic device, enable the electronic device to perform the technical solutions shown above.
Fig. 8 is a schematic structural diagram of a chip according to an embodiment of the present application. The chip shown in fig. 8 may be a general-purpose processor or a special-purpose processor. The chip includes a processor 801. The processor 801 is configured to support the electronic device to execute the foregoing technical solution.
Optionally, the chip further comprises a transceiver 802, and the transceiver 802 is configured to be controlled by the processor 801 and is configured to support the communication device to perform the foregoing technical solution.
Optionally, the chip shown in fig. 8 may further include: a storage medium 803.
It should be noted that the chip shown in fig. 8 may be implemented using the following circuits or devices: one or more field programmable gate arrays (field programmable gate array, FPGA), programmable logic devices (programmable logic device, PLD), controllers, state machines, gate logic, discrete hardware components, any other suitable circuit or combination of circuits capable of performing the various functions described throughout this application.
The electronic device, the computer storage medium, the computer program product, and the chip provided by the embodiments of the present application are used to execute the method provided above, so that the beneficial effects achieved by the method provided above can be referred to the beneficial effects corresponding to the method provided above, and are not described herein.
It should be understood that the above description is only intended to assist those skilled in the art in better understanding the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. Various equivalent modifications and variations will be apparent to those skilled in the art from the foregoing examples, given.
For example, some steps may not be necessary in the various embodiments of the methods described above, or some steps may be newly added, etc. Or a combination of any two or more of the above. Such modifications, variations, or combinations are also within the scope of embodiments of the present application.
It should also be understood that the foregoing description of embodiments of the present application focuses on highlighting differences between the various embodiments and that the same or similar elements not mentioned may be referred to each other and are not repeated herein for brevity.
It should be further understood that the sequence numbers of the above processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic of the processes, and should not be construed as limiting the implementation process of the embodiments of the present application.
It should be further understood that, in the embodiments of the present application, the "preset" and "predefined" may be implemented by pre-storing corresponding codes, tables, or other manners that may be used to indicate relevant information in a device (including, for example, an electronic device), and the present application is not limited to the specific implementation manner thereof.
It should also be understood that the manner, the case, the category, and the division of the embodiments in the embodiments of the present application are merely for convenience of description, should not be construed as a particular limitation, and the features in the various manners, the categories, the cases, and the embodiments may be combined without contradiction.
It is also to be understood that in the various embodiments of the application, where no special description or logic conflict exists, the terms and/or descriptions between the various embodiments are consistent and may reference each other, and features of the various embodiments may be combined to form new embodiments in accordance with their inherent logic relationships.
Finally, it should be noted that: the foregoing is merely illustrative of specific embodiments of the present application, and the scope of the present application is not limited thereto, but any changes or substitutions within the technical scope of the present application should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. A method of entering a long standby mode for an electronic device, the method comprising:
acquiring historical screen-off data of the electronic equipment, wherein the historical screen-off data comprises historical space-time information and reference information corresponding to a historical screen-off event which occurs within a first preset duration, the historical space-time information comprises a time period when the historical screen-off event occurs and a place where the electronic equipment is located when the historical screen-off event occurs, and the reference information comprises a date when the historical screen-off event occurs and whether the electronic equipment is in a long standby mode after the historical screen-off event occurs;
for the historical space-time information corresponding to the historical screen-off event occurring in the same time period and the same place, acquiring a plurality of groups of reference information corresponding to the historical space-time information in a preset time length;
determining a weight coefficient according to the interval between the date of the historical screen-off event and the current date in the reference information;
acquiring the probability of entering a long standby mode corresponding to the historical space-time information according to whether the electronic equipment is in the long standby mode or not after each historical screen-off event occurs and the weight coefficient;
Under the condition that the screen-off event of the electronic equipment occurs in a non-charging state, acquiring first time-space information corresponding to the screen-off event, wherein the first time-space information comprises a time period of the screen-off event and a place of the electronic equipment when the screen-off event occurs;
determining a first probability corresponding to the first time-space information according to a plurality of probabilities of entering the long standby mode, wherein the first probability is used for indicating the probability of the electronic equipment entering the long standby mode in a period and a place corresponding to the first time-space information;
when the first probability is greater than or equal to a first probability threshold corresponding to the first time-space information, acquiring target parameters of the electronic equipment, wherein the target parameters comprise at least one of environment parameters when the screen-off event occurs, motion states after the screen-off event occurs and background application sequences when the screen-off event occurs;
and when the target parameters of the electronic equipment meet a first preset condition, determining to control the electronic equipment to enter a long standby mode.
2. The method of claim 1, wherein the target parameters include environmental parameters at the time of the off-screen event, and the reference information further includes historical environmental parameters at the time of the historical off-screen event of the electronic device;
Determining that the target parameter of the electronic device meets a first preset condition comprises:
acquiring the historical environment parameters of the time period and the place corresponding to the first time-space information;
when the environmental parameters of the electronic equipment when the screen-off event occurs are the same as or similar to the historical environmental parameters, determining that the target parameters meet a first preset condition.
3. The method of claim 2, wherein the environmental parameter comprises at least one of an ambient light intensity, an ambient sound intensity, an ambient temperature.
4. A method according to claim 3, wherein the environmental parameter comprises an ambient light intensity or an ambient sound intensity, the method further comprising:
and when the environmental parameter of the electronic equipment when the screen-off event occurs is smaller than the historical environmental parameter, and/or when the environmental parameter of the electronic equipment when the screen-off event occurs is smaller than or equal to an environmental parameter threshold, determining that the target parameter meets a first preset condition.
5. The method of any one of claims 1-4, wherein the target parameter comprises a motion state of the electronic device within a second preset time period after the off-screen time of the electronic device occurs;
Determining that the target parameter meets a first preset condition comprises the following steps:
and when the movement of the electronic equipment in the second preset time period is not detected, determining that the target parameter meets a first preset condition.
6. The method of claim 5, wherein the obtaining the first time-space information corresponding to the off-screen event when the off-screen event of the electronic device in the non-charging state is detected comprises:
after the fact that the electronic equipment is detected to generate an active screen-off event in a non-charging state is determined, when the screen-on operation from a user is not detected within the second preset time period, first time-space information corresponding to the active screen-off event is obtained, wherein the active screen-off event comprises an automatic screen-off event after the electronic equipment detects the screen-on operation from the user or a screen-off event after the electronic equipment responds to the screen-off operation from the user.
7. The method of claim 1, wherein the target parameter includes a background application sequence when an off-screen event occurs to the electronic device, and the reference information further includes a second feature when the historical off-screen event occurs to the electronic device, where the second feature is a feature of a corresponding background application sequence when the historical off-screen event occurs, obtained after the electronic device enters a long standby mode within the first preset duration;
Determining that the target parameter meets a first preset condition comprises the following steps:
acquiring a first characteristic of a background application sequence when a screen-off event occurs to the electronic equipment;
and when the first characteristic is matched with at least one second characteristic which is identical to the first time-space information and has the same time period, determining that the target parameter meets a first preset condition.
8. The method according to any one of claims 1-4, wherein the obtaining the first probability corresponding to the first time-space information includes:
acquiring the probability of entering a long standby mode corresponding to the historical space-time information with the same time period and the same place as the first space-time information;
and taking the probability of entering a long standby mode corresponding to the historical space-time information with the same time period and the same place as the first probability corresponding to the first space-time information.
9. The method according to any one of claims 1-4, wherein the obtaining the first probability corresponding to the first time-space information includes:
acquiring a corresponding time fence according to a place in the first time-space information, and acquiring the probability of entering a long standby mode of the historical time-space information with the same time period and the same place as the first time-space information when the time period in the first time-space information falls into the corresponding time fence;
And taking the probability of entering a long standby mode corresponding to the historical space-time information with the same time period and the same place as the first probability corresponding to the first space-time information.
10. The method of claim 9, wherein the obtaining the corresponding time fence from the location in the first time space information comprises:
acquiring a time-space information set, wherein the time-space information set comprises at least one historical time-space information meeting a second preset condition, and the second preset condition comprises that the probability of entering a long standby mode corresponding to the historical time-space information is greater than or equal to a second probability threshold corresponding to the historical time-space information;
acquiring at least one period corresponding to the historical space-time information with the same place in the space-time information set;
and acquiring a time fence of each place according to the place and the at least one period.
11. The method of claim 10, wherein the second probability threshold is equal to the first probability threshold.
12. The method according to any one of claims 1-4, further comprising:
And determining the first probability threshold according to the first preset duration.
13. The method of claim 12, wherein the determining the first probability threshold according to the first preset duration comprises:
determining a corresponding time length weight according to the first preset time length;
and inputting the time length weight into a preset function to obtain the first probability threshold.
14. The method of any of claims 1-4, wherein after controlling the electronic device to enter a long standby mode, the method further comprises:
and after detecting that the electronic equipment is in a charging state, controlling the electronic equipment to exit from a long standby mode.
15. An electronic device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method of any one of claims 1 to 14 when the computer program is executed.
16. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1 to 14.
CN202310664862.3A 2023-06-07 2023-06-07 Method for entering long standby mode, electronic device and readable storage medium Active CN116382786B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310664862.3A CN116382786B (en) 2023-06-07 2023-06-07 Method for entering long standby mode, electronic device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310664862.3A CN116382786B (en) 2023-06-07 2023-06-07 Method for entering long standby mode, electronic device and readable storage medium

Publications (2)

Publication Number Publication Date
CN116382786A CN116382786A (en) 2023-07-04
CN116382786B true CN116382786B (en) 2023-09-01

Family

ID=86971708

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310664862.3A Active CN116382786B (en) 2023-06-07 2023-06-07 Method for entering long standby mode, electronic device and readable storage medium

Country Status (1)

Country Link
CN (1) CN116382786B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017184347A1 (en) * 2016-04-20 2017-10-26 Microsoft Technology Licensing, Llc Adaptive doze to hibernate
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN111050388A (en) * 2019-12-03 2020-04-21 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN111290565A (en) * 2020-01-13 2020-06-16 Oppo广东移动通信有限公司 Doze mode control method, device, terminal and storage medium
CN113050783A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN114415816A (en) * 2021-11-30 2022-04-29 荣耀终端有限公司 Information screen display method and electronic equipment
CN114467324A (en) * 2022-01-10 2022-05-10 北京小米移动软件有限公司 Information processing method and device, communication equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11520498B2 (en) * 2020-06-25 2022-12-06 Intel Corporation Memory management to improve power performance

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017184347A1 (en) * 2016-04-20 2017-10-26 Microsoft Technology Licensing, Llc Adaptive doze to hibernate
CN108647048A (en) * 2018-05-17 2018-10-12 Oppo(重庆)智能科技有限公司 Doze mode regulating methods, device, mobile terminal and storage medium
CN111050388A (en) * 2019-12-03 2020-04-21 Oppo广东移动通信有限公司 Doze mode control method, device, mobile terminal and storage medium
CN113050783A (en) * 2019-12-26 2021-06-29 Oppo广东移动通信有限公司 Terminal control method and device, mobile terminal and storage medium
CN111290565A (en) * 2020-01-13 2020-06-16 Oppo广东移动通信有限公司 Doze mode control method, device, terminal and storage medium
CN114415816A (en) * 2021-11-30 2022-04-29 荣耀终端有限公司 Information screen display method and electronic equipment
CN114467324A (en) * 2022-01-10 2022-05-10 北京小米移动软件有限公司 Information processing method and device, communication equipment and storage medium

Also Published As

Publication number Publication date
CN116382786A (en) 2023-07-04

Similar Documents

Publication Publication Date Title
CN113704014B (en) Log acquisition system, method, electronic device and storage medium
CN111316199B (en) Information processing method and electronic equipment
CN112954749B (en) Network switching method and electronic equipment
CN111371938B (en) Fault detection method and electronic equipment
CN113625860B (en) Mode switching method and device, electronic equipment and chip system
CN113747374B (en) Message pushing method and device
CN112637758B (en) Equipment positioning method and related equipment thereof
CN111835907A (en) Method, equipment and system for switching service across electronic equipment
CN115794287A (en) Display method, electronic equipment and computer storage medium
CN116070035A (en) Data processing method and electronic equipment
CN114995625A (en) System power consumption control method and electronic equipment
CN114911400A (en) Method for sharing pictures and electronic equipment
CN113243126B (en) Network management method for terminal and terminal
CN114003827A (en) Weather information display method and device and electronic equipment
CN116382786B (en) Method for entering long standby mode, electronic device and readable storage medium
CN116400974B (en) Method for entering long standby mode, electronic device and readable storage medium
CN114116610A (en) Method, device, electronic equipment and medium for acquiring storage information
WO2020062308A1 (en) Location information processing method and related device
CN114006976B (en) Interface display method and terminal equipment
CN116708656B (en) Card punching method and card punching system
CN112014866B (en) Motion trail recording method and related equipment
CN115495716B (en) Local authentication method and electronic equipment
CN114020186B (en) Health data display method and device
CN117041413A (en) Charging control method, device, electronic equipment and readable storage medium
CN116541102A (en) File preloading method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant