CN113612884B - Method for implementing shutdown alarm clock, electronic device and computer readable storage medium - Google Patents

Method for implementing shutdown alarm clock, electronic device and computer readable storage medium Download PDF

Info

Publication number
CN113612884B
CN113612884B CN202110794834.4A CN202110794834A CN113612884B CN 113612884 B CN113612884 B CN 113612884B CN 202110794834 A CN202110794834 A CN 202110794834A CN 113612884 B CN113612884 B CN 113612884B
Authority
CN
China
Prior art keywords
time
shutdown
duration
starting
alarm clock
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
CN202110794834.4A
Other languages
Chinese (zh)
Other versions
CN113612884A (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 CN202110794834.4A priority Critical patent/CN113612884B/en
Publication of CN113612884A publication Critical patent/CN113612884A/en
Application granted granted Critical
Publication of CN113612884B publication Critical patent/CN113612884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72451User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to schedules, e.g. using calendar applications
    • 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)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)
  • Telephone Function (AREA)

Abstract

The application provides a method for realizing a shutdown alarm clock, an electronic device and a computer readable storage medium, which belong to the technical field of electronics and comprise the following steps: the electronic equipment receives a shutdown instruction, responds to the shutdown instruction, acquires a shutdown mode corresponding to the shutdown instruction, determines shutdown time and alarm clock time closest to the received shutdown instruction, and acquires historical record time of startup consumption time corresponding to the shutdown mode from a database according to the shutdown mode; the electronic equipment subtracts the historical record duration of the starting consumed duration from the duration of the interval between the alarm clock time and the shutdown time to obtain the timing duration; the electronic equipment sets a starting timer according to the timing duration; the electronic equipment is triggered to be started at the starting time, and an alarm clock is started according to the alarm clock time. The method can dynamically adjust the starting time, and compared with the fixed adjustment mode in the prior art, the ringing time of the alarm clock is more accurate.

Description

Method for implementing shutdown alarm clock, electronic device and computer readable storage medium
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a method for implementing a machine alarm clock, an electronic device, and a computer-readable storage medium.
Background
With the popularization of terminal devices, applications on terminals are becoming more and more diverse. The current terminal equipment generally has an alarm clock application, and the alarm clock application can be used for ringing or vibrating at the appointed time for a client so as to achieve the purpose of reminding the user.
In a current implementation manner of a shutdown alarm clock, when a terminal device is shutdown, a time for the terminal device to be started is obtained by obtaining a time set by the alarm clock and a fixed time set in advance, for example, 2 minutes, and rings or vibrates after the terminal device is started.
Disclosure of Invention
In view of this, the application provides a method for implementing a shutdown alarm clock, an electronic device, and a computer-readable storage medium, which can implement accurate alarm starting of the alarm clock and improve user experience.
Some embodiments of the present application provide a boot method. The present application is described below in terms of several aspects, embodiments and advantages of which are mutually referenced.
In a first aspect, the present application provides a method for implementing a shutdown alarm clock, which is applied to an electronic device, and includes: the electronic equipment receives a shutdown instruction, responds to the shutdown instruction, acquires a shutdown mode corresponding to the shutdown instruction, determines shutdown time and an alarm clock time closest to the received shutdown instruction, wherein the shutdown mode is used for indicating a shutdown system state; the electronic equipment acquires the historical record duration of the starting consumed duration corresponding to the shutdown mode according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode; the electronic equipment subtracts the historical record time length of the starting consumed time length and the preset buffer time length from the time length of the interval between the alarm clock time and the shutdown time to obtain the timing time length; the electronic equipment sets a starting timer according to the timing duration, and the timer is used for controlling the starting time of the next starting according to the timing duration; the electronic equipment is triggered to be started at the starting time, and an alarm clock is started according to the alarm clock time.
According to the implementation method of the shutdown alarm clock, the historical record duration of the starting consumption duration of the system corresponding to the shutdown mode is obtained based on the shutdown mode, the startup time is calculated, the startup time can be dynamically adjusted, and compared with the fixed adjustment mode in the prior art, the alarm clock is more accurate in alarm.
In a possible implementation of the first aspect, the electronic device records and updates a time length consumed for completing the power-on corresponding to the power-off mode. By updating the latest startup consumed time in time, accurate calculation of the next startup time is facilitated, and the alarm clock is ensured to sound on time.
In a possible implementation of the first aspect, the method further includes: the electronic equipment obtains the estimated time of the system based on the shutdown time, the timing time and the time consumed by the completion of the startup, wherein the estimated time is the first time of the estimated system time after the completion of the startup; the electronic equipment compares the estimated time with the actual time of the system, wherein the actual time of the system is the first time recorded by the system after the electronic equipment completes the starting; and when the difference between the estimated time and the actual time is determined to exceed the preset value, resetting the new alarm clock according to the difference so that the new alarm clock rings at the alarm clock time of the original alarm clock. The method can effectively avoid the problem that the user is not reminded on time at the time of the alarm clock due to the fact that the system time is abnormal.
In a possible implementation of the first aspect, the obtaining, by the electronic device, the timing duration by subtracting the historical record duration of the start consumption duration from the duration of the interval between the alarm clock time and the shutdown time includes: the electronic equipment subtracts the historical record time length of the starting consumed time length and the preset buffering time length from the time length of the interval between the alarm clock time and the shutdown time to obtain the timing time length. The preset buffering time is longer than zero second. The problem that the alarm clock time is missed due to the delay of the starting time can be further avoided through the preset buffer duration.
In a possible implementation of the first aspect, the obtaining, by the electronic device according to the shutdown mode, a historical record duration of the startup consumption duration corresponding to the shutdown mode includes: the electronic equipment gives an identifier to each shutdown mode, and obtains the historical record duration of the starting consumed duration corresponding to the shutdown mode according to the identifier of the shutdown mode. The method facilitates electronic device management and searching.
In a possible implementation of the first aspect, if the electronic device does not obtain the corresponding shutdown mode from the database, the electronic device stores the current shutdown mode, and obtains the timing duration by using a preset fixed time as a historical record duration of the start-up consumed duration. So as to ensure that the electronic equipment can be normally started.
In a possible implementation of the first aspect, after the electronic device completes the power-on corresponding to the power-off mode, the electronic device records a time length consumed by the completion of the power-on, a power-off time, and a timing time length in the corresponding power-off mode. The dynamic startup consumed duration can be obtained when the shutdown mode appears next time.
In one possible implementation of the first aspect, the shutdown mode includes an OTA upgrade shutdown mode or a system normal shutdown mode.
In a possible implementation of the first aspect, the historical time length of the start-up consumed time length is a time length consumed by the last start-up completion of the adjacent corresponding shutdown mode, or an average value of the start-up consumed time lengths of a plurality of different historical times corresponding to the shutdown mode.
In a possible implementation of the first aspect, the electronic device includes a shutdown module and a database, and the method includes:
the electronic device receives a shutdown instruction, specifically: the shutdown module receives a shutdown instruction;
in response to a shutdown instruction, a shutdown module acquires a shutdown mode corresponding to the shutdown instruction;
the shutdown module determines a shutdown time and an alarm clock time closest to the received shutdown instruction, wherein the shutdown mode is used for indicating a shutdown system state;
the shutdown module acquires historical record duration of startup consumed duration corresponding to the shutdown mode from a database according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode;
the shutdown module subtracts the historical record duration of the starting consumed duration from the duration of the interval between the alarm clock time and the shutdown time to obtain the timing duration.
In a possible implementation of the first aspect, the electronic device further includes a timer and a starting module, and the setting, by the electronic device, of the starting timer according to the timing duration specifically includes:
the shutdown module sends a timing duration to the timer;
in response to receiving the timing duration, the timer sets a starting-up time;
the electronic equipment is triggered to be started at the starting time, and the method specifically comprises the following steps:
the timer triggers the startup at the startup time;
the electronic equipment starts an alarm clock according to the alarm clock time, and the method specifically comprises the following steps:
the starting module starts the alarm clock according to the alarm clock time.
In a possible implementation of the first aspect, the electronic device records a time length consumed by the current startup completion corresponding to the shutdown mode, and updates the time length to the database, specifically:
the starting module records the time length consumed by the completion of the starting corresponding to the shutdown mode and updates the time length to the database.
In a possible implementation of the first aspect, the method further includes: the starting module obtains an estimated time of the system based on the shutdown time, the timing time and the time consumed by the startup completion, wherein the estimated time is the first time of the estimated system time after the startup completion;
the starting module compares the estimated time with the actual time of the system, wherein the actual time of the system is the first time recorded by the system after the electronic equipment is started up;
and when the starting module determines that the difference value between the estimated time and the actual time exceeds the preset value, resetting the new alarm clock according to the difference value so that the new alarm clock rings at the alarm clock time of the original alarm clock.
In a possible implementation of the first aspect, the obtaining, by the shutdown module, a historical record duration of the startup consumption duration corresponding to the shutdown mode from the database according to the shutdown mode includes: the shutdown module subtracts the historical record duration of the starting consumed duration and the preset buffering duration from the interval duration between the alarm clock time and the shutdown time to obtain the timing duration.
In a possible implementation of the first aspect, the obtaining, by the shutdown module, a historical record duration of the startup consumption duration corresponding to the shutdown mode from the database according to the shutdown mode includes:
and the shutdown module acquires the historical record duration of the starting consumed duration corresponding to the shutdown mode from the database according to the identifier of the shutdown mode.
In a possible implementation of the first aspect, if the shutdown module does not obtain the corresponding shutdown mode from the database, the shutdown module records the current shutdown mode in the database, and obtains the timing duration by using a preset fixed time as a historical record duration of the startup consumption duration. In a second aspect, the present application further provides an apparatus for implementing a shutdown alarm clock, including: the shutdown module is used for receiving a shutdown instruction, responding to the shutdown instruction, acquiring a shutdown mode corresponding to the shutdown instruction, determining shutdown time and an alarm clock time closest to the received shutdown instruction, wherein the shutdown mode is used for indicating a shutdown system state; the shutdown module acquires historical record duration of startup consumed duration corresponding to the shutdown mode from a database according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode; the shutdown module subtracts the historical record duration of the starting consumed duration from the duration of the interval between the alarm clock time and the shutdown time to obtain the timing duration; the timing module is used for setting a starting-up timer according to the timing duration, and the timer is used for controlling the starting-up time of the next starting-up according to the timing duration; the starting module triggers the start at the start time and starts the alarm clock according to the alarm clock time.
The implementation device of the shutdown alarm clock in the embodiment of the application is used for calculating the startup time based on the fact that the shutdown mode obtains the historical record of the startup consumption time of the system corresponding to the shutdown mode, and the startup time can be dynamically adjusted.
In a possible implementation of the first aspect, the shutdown module is further configured to record a duration consumed by completing the current startup corresponding to the shutdown mode, and update the duration to the database. By updating the latest startup consumed time in time, accurate calculation of the next startup time is facilitated, and the alarm clock is ensured to sound on time.
In a possible implementation of the first aspect, the shutdown module is further configured to: obtaining the estimated time of the system based on the time of shutdown plus the timing time and the time consumed by the completion of the startup, wherein the estimated time is the first time of the estimated system time after the completion of the startup; the shutdown module is used for comparing the estimated time with the actual time of the system, wherein the actual time of the system is the first time recorded by the system after the electronic equipment completes the startup; and when the difference between the estimated time and the actual time is determined to exceed the preset value, resetting the new alarm clock according to the difference so that the new alarm clock rings at the alarm clock time of the original alarm clock. The problem that the user is not reminded on time at the alarm clock moment due to the fact that the system time is abnormal can be effectively solved.
In a possible implementation of the second aspect, the shutdown module is configured to subtract a historical record duration of the start consumption duration and a preset buffer duration from a duration of an interval between the alarm clock time and the shutdown time to obtain the timing duration. The preset buffering time is longer than zero second. The problem that the alarm clock time is missed due to the delay of the starting time can be further avoided through the preset buffer duration.
In a possible implementation of the second aspect, the electronic device assigns an identifier to each shutdown mode, and the shutdown module is configured to obtain, from the database, a historical record duration of the startup consumption duration corresponding to the shutdown mode according to the identifier of the shutdown mode. The management and the searching of the electronic equipment are convenient.
In a possible implementation of the second aspect, if the shutdown module does not obtain the corresponding shutdown mode from the database, the current shutdown mode is recorded in the database, and the preset fixed time is used as the historical record duration of the start-up consumed duration to obtain the timing duration. So as to ensure that the electronic equipment can be normally started.
In a possible implementation of the second aspect, the starting module is configured to record a time length consumed by the current startup completion, a shutdown time, and a timing time length in the corresponding shutdown mode after the startup corresponding to the current shutdown mode is completed. The dynamic startup consumed duration can be obtained when the shutdown mode appears next time.
In one possible implementation of the second aspect described above, the shutdown mode comprises an OTA upgrade shutdown mode or a system normal shutdown mode.
In a possible implementation of the second aspect, the historical record duration of the start-up consumed duration is a duration consumed by the last start-up completion of the adjacent corresponding shutdown mode, or an average value of the start-up consumed durations at a plurality of different historical times corresponding to the shutdown mode.
In a third aspect, the present application further provides an electronic device, including:
memory to store instructions for execution by one or more processors of a device;
a processor configured to execute instructions to cause an electronic device to perform the method of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, causes the processor to execute the method of the first aspect.
In a fifth aspect, the present application discloses a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect embodiment described above.
Drawings
FIG. 1 is a diagram of a scenario for implementing a shutdown alarm clock according to an embodiment of the present application;
FIG. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 3a is a flowchart of a method for implementing a power-off alarm clock according to an embodiment of the present application;
FIG. 3b is a schematic diagram illustrating an operation of a mobile phone interface according to an embodiment of the present application;
FIG. 4 is a schematic diagram illustrating a shutdown mode according to an embodiment of the present application;
FIG. 5a is a flowchart of another implementation method of a power-off alarm clock according to an embodiment of the present application;
FIG. 5b is a schematic diagram of a mobile phone interface according to an embodiment of the present application;
FIG. 6a is a block diagram of a layered architecture of a handset according to an embodiment of the present application;
FIG. 6b is an interaction flowchart of a method for implementing a shutdown alarm clock according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 8 is an electronic device of an embodiment of the present application;
FIG. 9 is a block diagram of an apparatus of one embodiment of the present application;
FIG. 10 is a block diagram of a system on a chip according to some embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
For ease of understanding, the terms appearing in the present application are explained below.
The shutdown mode is used for representing a system state during shutdown, and different shutdown system states correspond to different shutdown modes. For example, after the electronic device receives a shutdown instruction, it is determined that the shutdown instruction includes information such as system upgrade update. For example, the OTA upgrade is performed, and the corresponding shutdown mode is the OTA upgrade shutdown mode. Or the system is not upgraded and other information, and the system is in a normal shutdown mode only through normal shutdown.
The alarm clock time is a time point for reminding set by a user through an alarm clock application in the electronic equipment, and when a system time point of the electronic equipment reaches the time point, the alarm clock is triggered to ring or vibrate.
The startup consumed time is the time consumed from startup to startup completion triggered in the shutdown state in the corresponding shutdown mode. That is, the time period, for example, 1 minute, consumed for the electronic device system to boot up to completion of booting. The state of completion of power-on is at least the state in which the alarm clock application can normally run for the present application. The startup consumed durations corresponding to different shutdown modes in the application may be different, and the startup consumed durations corresponding to different shutdown modes may also be different, so that each shutdown may correspond to different shutdown modes, and the startup consumed duration corresponding to each shutdown needs to be recorded and stored, so as to estimate the startup consumed durations of the corresponding system that has not been started yet in different shutdown modes.
The historical record duration of the start-up consumption duration refers to the start-up consumption duration recorded at a time point before the current shutdown mode (current shutdown mode), and may be the adjacent last start-up consumption duration corresponding to the current shutdown mode, or an average value of the start-up consumption durations at a plurality of different historical times corresponding to the current shutdown mode. For example, in the same shutdown mode, the historical time is 2021 year 5 month 8, at 7 am, the startup consumption time for startup is 3.05 seconds, the historical time is 2021 year 5 month 9, at 7 am: 30, and the startup consumption time for startup is 3.07 seconds, and then the historical recording time for startup consumption time is 3.06 seconds which is the average of the two.
The shutdown time is a time point of the system when the electronic device starts to perform shutdown.
The timing duration refers to the historical record duration obtained by subtracting the starting consumption duration from the duration of the interval between the alarm clock time and the shutdown time.
The technical solution of the present application is described in detail below with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a scene diagram of an implementation of a power-off alarm clock, and in the scene diagram, a mobile phone is taken as an example for explanation. As shown in fig. 1, the user sets a time point in the alarm application 101 in the mobile phone 100, that is, an alarm time is "7 am at 5/8/5/2021. After the user inputs the shutdown instruction, the mobile phone 100 first determines the alarm time after receiving the shutdown instruction, determines the shutdown mode according to the shutdown instruction, for example, the OTA upgrade shutdown mode, and obtains the historical record time of the system startup consumption time corresponding to the OTA upgrade shutdown mode, for example, 2 minutes, and the shutdown time (system time), for example, 22 pm, 5/7/2021. The mobile phone 100 calculates that the time interval between 7 am and the power-off time is 9 hours at the time of the alarm clock 2021, 5 months and 8 days, and then the time interval is reduced by 2 minutes from 9 hours to obtain the timing time of 8 hours and 58 minutes. The handset 100 sets the 8 hours 58 minutes in the power-on timer 102, and starts to count down the 8 hours 58 minutes by the power-on timer 102 at the time corresponding to the power-off time. When the timing duration in the starting timer 102 is exhausted, the mobile phone is triggered to start and complete starting, and after the starting is completed, the system time reaches the alarm clock time. Triggering an alarm clock to sound, such as ringing or vibrating, so as to achieve the purpose of timely reminding a user.
According to the implementation method of the shutdown alarm clock, the historical record duration of the starting consumption duration of the system corresponding to the shutdown mode is obtained through the shutdown mode, the startup time is calculated, the startup time can be dynamically adjusted, and compared with the fixed adjustment mode in the prior art, the alarm clock is more accurate in alarm.
In the above embodiment, taking the example that the system time is just the alarm time after the completion of the startup as an example, in some embodiments of the present application, a buffering time length may also be set between the system time after the completion of the startup and the alarm time, for example, in the above example, 9 hours is reduced by 2 minutes, and then the preset buffering time length is reduced by 1 minute, so that the timing time length is 8 hours and 27 minutes. And after the start is finished and the system time reaches the alarm clock time, triggering the alarm clock to ring. The time consumed by starting the system is longer than the estimated historical record time, and the time spent by the alarm clock is missed.
In the above embodiments, a mobile phone is used as the electronic device. The implementation method of the shutdown alarm clock can also be applied to other electronic devices, for example, the electronic device may be a mobile phone, a tablet computer, a notebook computer, a super mobile personal computer, a Personal Digital Assistant (PDA), a television, or a wearable electronic device, such as a watch, a bracelet, and the like. The device type of the electronic device is not particularly limited in this application.
The following describes a method for implementing the shutdown alarm clock according to the embodiment of the present application, with reference to a specific structure of an electronic device.
Fig. 2 shows a schematic structural diagram of an electronic device 200.
The electronic device 200 may include a processor 210, a siren alarm generator 220, a display 230, keys 240, a timer 250, a power management module 260, a battery 261, a memory 270, a sensor module 280, an antenna 1, an antenna 2, a mobile communication module 291, a wireless communication module 292, and the like, wherein the siren alarm generator may include a speaker 221, a motor 222, an indicator 223, and the like, and the sensor module 280 may include a pressure sensor 281, a touch sensor 282, and the like.
It is to be understood that the illustrated structure of the embodiment of the present application does not specifically limit the electronic device 200. In other embodiments of the present application, the electronic device 200 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 210 may include one or more processing units, such as: the processor 210 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
The processor 210 may generate operation control signals according to the instruction operation code and the timing signals, and perform instruction fetching and execution control.
A memory may also be provided in processor 210 for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may hold instructions or data that have just been used or recycled by processor 210. If the processor 210 needs to reuse the instruction or data, it may be called directly from memory. Avoiding repeated accesses reduces the latency of the processor 210, thereby increasing the efficiency of the system.
The electronic device 200 may output information such as audio, vibration, or light source through the alarm generator 220 to achieve the purpose of reminding the user.
The speaker 221, also called a "horn", is used to convert an audio electrical signal into an acoustic signal. The electronic apparatus 200 can listen to music through the speaker 221 or listen to a handsfree call.
In some embodiments, the speaker 221 may play music preset by the customer at a set alarm time to remind the user to reach the set time.
The motor 222 may generate a vibration cue. The motor 222 may be used for alarm, incoming call vibration prompt, or for touch vibration feedback. For example, touch operations applied to different applications (e.g., photographing, audio playing, etc.) may correspond to different vibration feedback effects. The motor 222 may also respond to different vibration feedback effects for touch operations applied to different areas of the display screen 230. Different application scenes (such as time reminding, receiving information, alarm clock, game and the like) can also correspond to different vibration feedback effects. The touch vibration feedback effect may also support customization.
Indicator 223 can be the pilot lamp, can be used for instructing the charged state, and the electric quantity changes, also can be used for instructing message, missed call, the warning after the alarm clock rings etc..
The keys 240 include an on/off key, a volume key, and the like. The keys 190 may be mechanical keys. Or may be touch keys. The electronic apparatus 200 may receive a key input, and generate a key signal input related to user setting and function control of the electronic apparatus 200. For example, the user presses the on/off key for 3 seconds to cause the electronic apparatus to start performing the power-off operation.
The timer 250 is a Real Time Clock (RTC), which is a Clock capable of outputting time, a crystal oscillator with high precision may be used as a Clock source, and the output time may be independent of the system time of the electronic device 200. Typically an integrated circuit, which may also be referred to as a clock chip. The RTC has a standby power supply, and when the main power supply is powered off or cannot be used, the real-time clock can continue to calculate time by using the standby power supply and can provide a stable clock signal for a subsequent circuit. For example, when the timer runs out, the timer may provide a power-on signal to trigger the electronic device 200 to power on.
The power management module 260 is used to connect the battery 261, the timer 250 and the processor 210. The power management module 260 receives an input of the battery 261 and supplies power to the processor 210, the timer 250, the memory 270, the display 230, the mobile communication module 291, the wireless communication module 292, and the like. The power management module 260 may also be used to monitor parameters such as battery capacity, battery cycle number, battery state of health (leakage, impedance), etc. In some other embodiments, the power management module 260 may also be disposed in the processor 210.
Memory 270 may be used to store computer-executable program code, which includes instructions. The memory 270 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, an alarm clock timing function, and the like) required by at least one function, and the like. The storage data area may store data created during the use of the electronic device 200 (such as audio data, phone book, identification of power-off mode, time consumed for starting the system, etc.), and so on. Further, the memory 270 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 210 causes the electronic device 200 to perform the following operations by executing instructions stored in the memory 270 and/or instructions stored in a memory disposed in the processor.
The electronic device 200 receives a shutdown instruction, responds to the shutdown instruction, the electronic device 200 obtains a shutdown mode corresponding to the shutdown instruction, determines a shutdown time, and obtains an alarm clock time closest to the received shutdown instruction, and the electronic device 200 obtains a historical record time of a startup consumed time corresponding to the shutdown mode from a storage data area (restart database) of a memory according to the shutdown mode. The electronic device 200 subtracts the historical record time length of the starting consumed time length and/or the preset buffer time length from the time length of the interval between the alarm clock time and the shutdown time to obtain the timing time length; the electronic device 200 sets a start timer 250 according to the timing duration, the timer 250 starts to count down the timing duration at the time of shutdown, when the timing duration is exhausted (at this time, the start time is the starting time), the electronic device 200 is triggered to start, and after the start is completed, the electronic device starts an alarm clock when the system time reaches the alarm clock time, so that the alarm of the alarm clock is realized.
The pressure sensor 281 is used for sensing a pressure signal, and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 281 may be disposed on the display screen 230. The pressure sensor 281 may be of various types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 281, the capacitance between the electrodes changes. The electronic device 200 determines the strength of the pressure from the change in capacitance. When a touch operation is applied to the display screen 230, the electronic apparatus 100 detects the intensity of the touch operation based on the pressure sensor 281. The electronic apparatus 200 may also calculate the touched position from the detection signal of the pressure sensor 281.
In some embodiments, when the application corresponding to the position where the pressure sensor 281 detects the touch is an alarm application, the electronic device 200 opens the alarm application on the display screen 230, so that the user can set an alarm time in the alarm application.
Touch sensor 282, also referred to as a "touch device". The touch sensor 282 may be disposed on the display screen 230, and the touch sensor 282 and the display screen 230 form a touch screen, which is also called a "touch screen". The touch sensor 282 is used to detect a touch operation applied thereto or nearby. The touch sensor 282 can communicate the detected touch operation to the application processor to determine a touch event type, such as the touch event being an opening of an alarm clock application. Visual output associated with the touch operation may be provided through the display screen 230. In other embodiments, the touch sensor 282 may be disposed on a surface of the electronic device 200 at a different location than the display screen 282.
The wireless communication function of the electronic device 200 may be implemented by the antenna 1, the antenna 2, the mobile communication module 291, the wireless communication module 292, 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 200 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as 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 291 may provide a solution including 2G/3G/4G/5G wireless communication and the like applied to the electronic device 200. The mobile communication module 291 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 291 may receive electromagnetic waves from the antenna 1, filter, amplify, etc. the received electromagnetic waves, and transmit the electromagnetic waves to the modem processor for demodulation. The mobile communication module 291 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 291 may be disposed in the processor 210. In some embodiments, at least some of the functional blocks of the mobile communication module 291 may be disposed in the same device as at least some of the blocks of the processor 210.
The wireless communication module 292 may provide solutions for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs), such as wireless fidelity (Wi-Fi) networks, Bluetooth (BT), Global Navigation Satellite Systems (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 292 may be one or more devices integrating at least one communication processing module. The wireless communication module 292 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 292 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and convert it into electromagnetic waves via the antenna 2 to radiate out.
In some embodiments, antenna 1 of electronic device 200 is coupled to mobile communication module 291 and antenna 2 is coupled to wireless communication module 292 such that electronic device 200 may communicate with networks and other devices via wireless communication techniques. In some embodiments, the electronic device 200 may communicate with a satellite and obtain the system time via wireless communication technologies, which may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (GNSS), BT, WLAN, NFC, FM, and/or IR technologies, among others. GNSS may include Global Positioning System (GPS), global navigation satellite system (GLONASS), beidou satellite navigation system (BDS), quasi-zenith satellite system (QZSS), and/or Satellite Based Augmentation System (SBAS).
The following describes in detail a method for implementing the shutdown alarm clock according to the present application with reference to a specific embodiment.
Referring to fig. 3, fig. 3 shows a flow chart of an implementation method of the shutdown alarm clock. The method may be performed by the electronic device described in fig. 2, and a mobile phone is taken as an example of the electronic device. As shown in fig. 3, the flowchart includes S301 to S310.
At S300, the mobile phone stores the time of the alarm clock input by the user.
In the embodiment of the application, a user can enter an interface capable of editing the alarm clock time through an alarm clock application on an interactive interface of the mobile phone, and input the alarm clock time for reminding the user through a prompt of the interface, for example, a specific time point such as 10 am No. 5/8/2021, and the mobile phone receives and stores the time point input by the user. In some embodiments, the user may also set different time points, so that the mobile phone can remind the user at different time points. In the embodiment of the application, after the alarm clock time is set, if the mobile phone is always kept in the power-on state, and when the system time of the mobile phone reaches the alarm clock time, the alarm clock is triggered to sound, that is, the mobile phone can sound through the sound generator described in fig. 2, for example, music is played through a speaker, or the mobile phone is vibrated through a motor to remind a user.
Referring to fig. 3b, fig. 3b illustrates an interface diagram of a handset. As shown in fig. 3b, the user can enter the alarm editing interface 320 through the clock application 311 in the mobile phone interface 310, and in the interface 320, the user can set the alarm time, for example, "17: 00" (5/9/5 pm at 2021). It is also possible to set whether or not the same time of monday through sunday needs to be repeatedly rung by "repeating". The user can select the manner of ringing by "ringing" and "shaking". The alarm name may also be set by "alarm name", e.g. alarm 1. After the time of the alarm clock is set, the confirmation icon 322 is clicked to enter the timer countdown reminding interface 330 of the alarm clock, and the countdown ringing time "31-hour waiting ringing" is displayed through the countdown display frame 331. Wherein the time displayed in the timer is the current system time (system time) is' 10: 00 "(i.e., 10 am on 5/8/2021), and an alarm time" 17:00 "for a time interval of 31 hours. If the mobile phone is powered off before the alarm time, the time in the timer is reset to be the countdown time (the timing duration) from the power-off time to the power-on time. The timing duration is calculated and the ringing of the alarm clock is realized by the following steps.
In S301, the mobile phone receives a power-off command. The shutdown instruction includes system state information during shutdown, for example, when The current system needs Over The Air (OTA) upgrade, The shutdown is regarded as an OTA upgrade shutdown mode. If the system is not updated, that is, the system has no special status information, the shutdown is determined as a normal shutdown mode. In the embodiment of the application, after the mobile phone receives the shutdown instruction, the confirmation of the shutdown mode is completed in the process of executing the shutdown operation. Namely, before the mobile phone is completely powered off, the system state information can be acquired. For example, after the user presses the power-off key, the processor 210 of the mobile phone receives a power-off signal from the power-off power supply. At this time, the processor 210 does not immediately control the power supply to stop supplying power, but first determines the shutdown mode, and further needs to check the condition of the alarm clock and corresponding calculation, i.e., execute S302 to S305.
In S302, the mobile phone determines whether there is a set alarm. The alarm clock on the mobile phone can be an alarm clock application carried by a main operating system on the mobile phone, and can also be a third-party alarm clock application which is installed on the mobile phone through downloading.
When the processor 210 of the mobile phone determines that the alarm clock is not set, S310 is executed to directly execute shutdown, that is, the processor 210 controls the power supply to stop supplying power to the system and shutdown.
When the mobile phone processor 210 determines that there is a set alarm, for example, the processor queries that there is an unexecuted alarm time in the database, it determines that there is a set alarm, and executes S303.
In S303, the mobile phone obtains the time of the alarm clock and the power-off mode.
In an embodiment of the application, when there are multiple alarm clock times, that is, the user sets multiple alarm clocks, at this time, the processor 210 of the mobile phone only needs to obtain the alarm clock time closest to the received shutdown instruction.
In an embodiment of the application, if the mobile phone does not obtain the corresponding shutdown mode from the database, the current shutdown mode is recorded in the database, and the preset fixed time is used as the historical record duration of the startup consumed duration to obtain the timing duration, so that the next shutdown mode is encountered, and the calculation can be performed according to the current startup consumed duration as the historical record duration.
S304, the mobile phone acquires the historical record duration of the starting consumed duration according to the shutdown mode in the shutdown instruction. For example, the shutdown command is an OTA upgrade shutdown mode. The mobile phone may query the database for the last time of the system startup consumed duration (i.e., the time consumed from the startup triggering to the startup completion) corresponding to the current OTA upgrade shutdown mode, for example, 480 seconds.
In one embodiment of the present application, the handset may assign an identifier to each power-off mode. For example, the identification of the normal shutdown mode may be 001, and the identification of the OTA upgrade shutdown mode may be 002,. And querying the corresponding historical record duration of the starting consumed duration in the database through the identifier of the shutdown mode.
In one embodiment of the present application, all shutdown modes may be counted in a list in the database for more convenient query. And find the corresponding information from the list. As shown in fig. 4, the list may include: "shutdown mode", "time-consuming to start", "last shutdown time", "timing time". Wherein, "0001" and "0002" respectively represent two different shutdown modes, for example, a normal shutdown mode and an OTA upgrade shutdown mode, where "300 s" is a historical time length of a time length consumed for starting the normal shutdown mode, and "400 s" is a historical time length of a time length consumed for starting the OTA upgrade shutdown mode. The historical record duration corresponding to each mode may be the duration consumed from the last time the mobile phone was turned on to the last time the mobile phone was turned off. Or may be an average of the time spent from boot-up to completion of a plurality of times over a period of time (7 days). And are not intended as exclusive limitations herein.
S305, the mobile phone calculates the timing duration, executes the power-off operation, and starts to count down at the power-off time.
The shutdown time refers to the system time acquired before the timing duration is calculated. The timing duration subtracts the shutdown time from the alarm clock time, and then subtracts the time consumed for starting the mobile phone system. For example, the system time (power-off time) acquired by the mobile phone is 10 pm at 5/29/2021 year, the alarm time is 7 am at 5/30/2021 year, the start consumption time is 30 seconds, and the timing time is 8 hours, 59 minutes and 30 seconds. The 8 hours, 59 minutes, 30 seconds after the end of the calculation are set in the timer, and the countdown of the period of time is performed.
In some embodiments of the present application, in order to further improve the accuracy of the alarm, a preset buffer duration, for example, 1 minute, for triggering the power-on in advance may be further added when the timing duration is calculated. The timing duration is calculated by subtracting the shutdown time from the alarm time and then subtracting the start-up consumed duration and the preset buffer duration of the mobile phone system. With reference to the above example, the shutdown time is 10 pm at 5/29/2021 year, the alarm time is 7 am at 5/30/2021 month, the start-up elapsed time is 30 seconds, the preset buffer time is 1 minute, and the timing time is 8 hours, 58 minutes and 30 seconds. The problem that the alarm clock cannot sound on time when the starting time-consuming duration does not accord with the expected historical record duration of the starting time-consuming duration can be avoided through the setting of the preset buffering duration.
In S306, the timer runs out of time, and the mobile phone is triggered to execute the boot operation and complete booting.
When the timing duration of the timer is exhausted, an interrupt signal is sent to the power supply of the mobile phone, the power supply of the mobile phone is used for powering on the system on chip, the system is started, and the starting is completed.
In an embodiment of the application, the mobile phone calculates the starting time consumption of the current time and updates the starting time consumption to the database. For example, the startup process includes a system-on-chip runtime phase, a small system runtime phase, and a startup system phase. The mobile phone accumulates the required time length of each stage, for example, the required time length includes initialization of system on chip hardware, boot program (BIOS/Bootloader) time, kernel start time, system library start time, application framework start time, and the like, and accumulates the required time length to obtain the start consumption time length of this time. And updates the startup elapsed duration to the corresponding shutdown mode in the list shown in fig. 4. And when the historical record duration of the starting time-consuming duration is the last starting time-consuming duration, directly updating the last starting time-consuming duration to the current starting time-consuming duration. And when the historical record duration of the starting time-consuming duration is the average value of the multiple historical record durations, calculating the average value based on the starting time-consuming duration of the time. Therefore, when the computer is started next time, more accurate starting time can be obtained according to the latest historical record time length of the starting time-consuming time length.
In S307, after the mobile phone is powered on, the system time is obtained, and the system time is compared with the alarm clock time. For example, if the system time is 30/5/2021, am 7, and the alarm time is the same as the time point, the mobile phone executes S308 to trigger the alarm generator to alarm. For example, an alarm is triggered to sound, or a motor vibrates. If the system time is No. 5/30 in 2021 year after the system time is started, 59 minutes and 32 seconds at 6 am, and the alarm clock time is 7 am on the same date and does not reach the alarm clock time, the mobile phone executes S309 until the system time reaches the alarm clock time, and triggers the alarm generator to alarm. The implementation mode of the step is the ringing operation of the starting alarm clock. For example, the difference between the current system time and the alarm clock time can be used as the timing duration for triggering the alarm clock to alarm. When the timing is exhausted for a long time, the alarm clock sounds.
In an embodiment of the application, the problem that an alarm clock cannot sound at the time of the alarm clock due to abnormal system time after the mobile phone is started is avoided. After the mobile phone is started, the system time needs to be checked, and when the system time is verified to be abnormal, a new alarm clock can be sounded at the time of the original alarm clock, so that the user can be reminded of the alarm clock at the time of the alarm clock set by the user, and the user experience is improved. This process will be described in detail in the following examples.
Referring to fig. 5a, fig. 5a shows a flow chart of another implementation method of the shutdown alarm clock. The flowchart of fig. 5a is described with reference to fig. 3a, and since the previous steps of the method are the same as S300 to S304 in fig. 3a, the previous steps in the flowchart are not repeated, and only S305 and the subsequent steps in fig. a5 are described. As shown in fig. 5a, the method comprises the following steps:
s500, the mobile phone calculates the timing duration, records the shutdown time and the timing duration in the corresponding shutdown mode, completes shutdown, and the timer counts down. In the list shown in fig. 4, each time the mobile phone executes a shutdown instruction, the current shutdown time "2021.05.2417: 24' 38" and the timing duration "28800 s" are recorded in the "current shutdown time" and the "timing duration" of the corresponding shutdown mode, respectively.
And S510, when the timing duration of the timer is exhausted, triggering the mobile phone to execute the starting operation and finishing the starting. This step is the same as 306 in fig. 3.
S520, obtaining the estimated time of the system, obtaining the current time (time) of the system after the start, calculating the time interval between the estimated time and the current time, and recording the time interval as a first time difference.
The calculation formula for estimating the estimation time of the system after the startup is as follows: the time of shutdown + the time of timing + the time of starting up this time. For example, if the time of shutdown is 24 minutes and 38 seconds at 24 o 'clock 17 o' clock 24 o 'clock 5/24 m 2021, the time duration of timing is 8 hours, and the time duration consumed for startup is 30 seconds, then the estimated time of the system after the mobile phone is powered on is 1 o' clock 25 o 'clock 08 seconds at 25 o' clock 5/25 m 2021. If the preset buffer time length 1 minute described in the above embodiment is added to the calculation of the timing time length, the preset buffer time length 1 minute needs to be added to the above estimation formula when calculating the estimation time of the system. The time interval between the estimated time and the current system time (time) is the time difference between the two times.
In S530, the mobile phone determines whether the time interval (first time difference) exceeds a set value. For example 3 seconds.
If the first time difference is less than the preset value for 3 seconds, S560 is executed, where S560 is S307 to S309 in fig. 3, which may be referred to in the description of the corresponding steps.
If the time is greater than or equal to the preset value for 3 seconds, S540 is executed. For example, the current time (actual time) of the system is obtained as 59 minutes and 30 seconds at 6 am, No. 5/30 in 1970. The estimated time of the system is 59 minutes and 30 seconds at 6 am, No. 5/30 of 2021, and the time interval between the two is far more than 3 seconds of the set value. At this time, the mobile phone may determine that the system time is abnormal, and then execute S540.
In S540, the handset sets a new alarm clock.
And the mobile phone calculates the difference between the estimated time and the alarm clock time, namely the second time difference, and sets a new alarm clock and corresponding new alarm clock time according to the difference. In conjunction with the above examples. If the estimated time of the system is 2021, 5/30 am, 6 o' clock, 59 min 30 sec, the second time difference from the alarm time is 30 sec. The new alarm clock corresponds to the alarm clock time of 59 minutes and 30 seconds plus 30 seconds at am 6 am No. 5 and 30 in 1970. I.e. 7 am No. 5/30 in 1970.
In an embodiment of the application, after the mobile phone sets a new alarm clock, the user can be reminded in forms of displaying text information or icon information and the like through the interface, and the new alarm clock is set.
Referring to fig. 5b, fig. 5b shows a schematic interface diagram of a handset. As shown in fig. 5b, an alarm icon 511 and an alarm icon 512 are displayed on the interface 510. Where icon 511 may represent an alarm clock set by the user. After the mobile phone sets a new alarm clock due to abnormal system time, the user can be reminded to set the new alarm clock by adding an alarm clock icon 512. So that the user can directly observe whether a new alarm clock is set through the interface. In some embodiments of the present application, the user may also be prompted to set a new alarm clock in the form of a text reminder or other icon, and this interface is only an exemplary illustration and is not limited herein.
And S550, when the system time reaches the new alarm clock time, ringing. Thus triggering a new alarm clock of the mobile phone to sound after 30 seconds. The original alarm clock can be ensured to sound at the right moment. The user is reminded on time, the problem that the alarm clock cannot sound on time due to abnormal system time is avoided, and user experience is improved.
The following describes a method for implementing the shutdown alarm clock according to the present application with reference to the schematic diagrams of the hierarchical structures of the electronic devices shown in fig. 2 to fig. 3a and fig. 5 a.
Fig. 6a is a block diagram of a layered structure of a handset according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into a software architecture and a hardware layer, wherein the software architecture is divided into four layers, namely an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages. Such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
In some embodiments, as shown in FIG. 6a, the application layer includes an alarm application 600 through which the user enters an alarm time.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
As shown in fig. 6a, the application framework layer may include a shutdown module 610, a startup module 660, and the like.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises 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. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The kernel layer is a layer between hardware and software. The core layer contains at least various drivers. In one embodiment of the present application, as shown in fig. 6a, a timer driver 630 and a ringing generator driver 670 may be included, wherein the ringing generator driver 670 may be further divided into a speaker driver, a motor driver, a light source driver, etc. according to the driving hardware.
The hardware layer includes a hardware body that implements various functions. In an embodiment of the application, as shown in fig. 6a, a timer 640, a database 620, a power supply 650 and an alarm generating device 680 may be included, further alarm generating devices 680 may be a speaker, a motor and LED lights.
The following describes in detail a process of the method for implementing a shutdown alarm clock according to the embodiment of the present application with reference to a software architecture diagram and a flowchart of interaction between modules.
Referring to fig. 6b, 6b exemplarily shows an interaction flowchart of each module in the shutdown alarm clock implementation method. As shown in fig. 6a and fig. 6b, when the system shutdown process initiates the shutdown process, the following steps are performed.
S601, the shutdown module 610 receives a corresponding shutdown message (instruction).
S602, the shutdown module 610 sends a request for obtaining the alarm time to the alarm application 600. It should be noted that the alarm time of the alarm clock application 600 may be obtained by the user through the input of the alarm clock application in the mobile phone interface.
S603, the alarm application 600 returns the alarm time t1 to the shutdown module 610. For example, 2021.06.19, 10: 00.
s604, the shutdown module 610 receives the alarm time t1, and sends an identifier corresponding to the shutdown mode to the database 620, for example, the identifier corresponding to the OTA upgrade shutdown mode is 002.
S605, the database 620 matches a corresponding startup consumption message for the shutdown mode according to the identifier 002 corresponding to the current shutdown mode, and sends the message to the shutdown module 610. The start consumption message carries an estimated time from the system start to the completion of the system start corresponding to the shutdown mode, for example, an estimated time from the OTA upgrade to the completion, that is, an estimated time t2 of a next system start consumption duration, for example, 240 seconds.
In one embodiment of the present application, when the database 620 does not match the corresponding shutdown mode, 0 may be returned to indicate that no matching shutdown mode is found. Meanwhile, the database stores the current shutdown mode so as to obtain data corresponding to the shutdown mode when the shutdown mode appears next time, such as the time spent on starting.
S606, the shutdown module 610 receives the estimated time t2, and obtains the current system time t3 (shutdown time), for example 2021.06.18, 11: 00, calculating a timing duration t 4. Namely t 4-t 1-t2-t3, namely 2021.06.19, 10: 00 minus 240 seconds minus 2021.06.18, 11: 00 is 10 hours and 56 minutes. Wherein 10 hours and 56 minutes are used as the time counted down by the timer.
S607, the shutdown module 610 sets the timer duration t4 to the timer 640 through the timer driver 630.
In an embodiment of the present application, after the shutdown module 610 calculates the timing duration t4, it sends the shutdown time t3 and t4 to the database 620, and the database 620 updates the shutdown time t3 and the timing duration, which are originally recorded, according to the corresponding shutdown mode.
S608, the timer 640 counts down at t4 under the driving of the timer driver 630.
S609, when the timer runs out, the timer 640 sends a hardware interrupt signal to the power supply 650 to trigger the power supply.
S610a, the power 650 receives the hardware interrupt signal and supplies power to the system, and executes the system start-up process, meanwhile, S610b, the power 650 sends the system start-up signal to the start-up module 660.
S611, the starting module 660 calculates the time duration t5 consumed by the current starting, that is, the time duration consumed by the system from the triggering of the system to the completion of the starting. The boot time includes hardware initialization time, for example, power supply power-on time, CPU and DDR initialization time, boot program operation time, for example, BIOS or Bootloader operation time, kernel start time, system library start time, application framework start time, and the like, and is accumulated together to obtain the boot consumption time 5.
S612, the module 660 is started and sends the time t5 consumed by the start to the database 620.
S613, the historical time length of the starting consumed time length in the database 620 is updated to the current starting consumed time length t5, so that the mobile phone can dynamically adjust the starting time when starting the mobile phone next time, and the accuracy of starting the alarm clock is improved.
After the mobile phone is powered on, the mobile phone performs S613.
S614, the starting module 660 obtains the current system time t6, and sends an alarm starting signal to the alarm clock generator driver 670 when the system time t6 reaches the alarm clock time t 1.
S615, the alarm generator driver 670 controls the alarm generator 680 to make an alarm, so that the alarm process of the shutdown alarm clock is realized.
According to the method and the device, the mobile phone can be turned on time before the alarm clock time under different power-off modes according to the fact that the mobile phone is dynamically adjusted in the power-on time. The problem that the alarm clock cannot sound on time at the alarm clock due to the fact that the mobile phone is delayed in starting due to slow updating of the system and the like can be avoided, and accurate sound of the shutdown alarm clock is achieved.
In some embodiments of the application, the starting module 660 may further verify whether the system time is abnormal, and set a new alarm clock when the system time is abnormal, so as to ensure that the alarm clock rings at the alarm clock time, and ensure that the user can be effectively reminded at the set alarm clock time. Specifically, after the mobile phone is powered on, the starting module 660 obtains the system time t3 (power-off time) and the timing duration t4 of the timer from the database 620 according to the corresponding power-off mode, obtains the current system time t7, estimates the current system time t6, and the estimation formula is t6 ═ t4+ t3+ t5, compares the difference between t6 and t7 with a preset value, and when the difference exceeds the preset value, determines that the system time is abnormal, and sets a new alarm clock. If the time is less than or equal to the preset value, the system time is normal. The specific determination process and the process of setting a new alarm clock refer to S520 to S550 shown in fig. 5 a.
Referring to fig. 7, the present application further provides an electronic device comprising:
a shutdown module 710, configured to receive a shutdown instruction, respond to the shutdown instruction, obtain a shutdown mode corresponding to the shutdown instruction, determine a shutdown time, and obtain an alarm clock time closest to the received shutdown instruction, where the shutdown mode is used to indicate a system state of shutdown;
the shutdown module 710 obtains a historical record duration of the startup consumed duration corresponding to the shutdown mode from the storage module 730 according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode;
the shutdown module 710 subtracts the historical record duration of the start consumption duration and the preset buffer duration from the interval duration between the alarm clock time and the shutdown time to obtain the timing duration;
the timing module 720 is used for setting a starting-up timer according to the timing duration, and the timer controls the starting-up time of the next starting-up according to the timing duration;
the timing module 720 triggers power-on at power-on time.
The starting module 740 is configured to start an alarm clock according to the time of the alarm clock.
According to an embodiment of the present application, the starting module 740 is further configured to record a time length consumed by completing the power-on of this time corresponding to the power-off mode, and update the time length to the storage module 730.
According to an embodiment of the present application, the starting module 740 is further configured to obtain an estimated time of the system based on the shutdown time, the timing time and the time consumed for completing the startup, where the estimated time is a first time of the estimated system time after completing the startup;
the starting module 740 compares the estimated time with the actual time of the system, where the actual time of the system is the first time recorded by the system after the electronic device is started up this time;
and when the difference between the estimated time and the actual time is determined to exceed the preset value, resetting a new alarm clock according to the difference so that the new alarm clock rings at the alarm clock time of the original alarm clock.
According to an embodiment of the present application, the shutdown module 710 is configured to: and subtracting the historical record duration of the starting consumed duration and the preset buffering duration from the interval duration between the alarm clock time and the shutdown time to obtain the timing duration. Wherein the preset buffering duration is greater than zero seconds.
According to an embodiment of the present application, the electronic device assigns an identifier to each shutdown mode, and the shutdown module 710 is configured to obtain, from the storage module 740, a historical record duration of the startup consumption duration corresponding to the shutdown mode according to the identifier of the shutdown mode.
According to an embodiment of the present application, if the shutdown module 710 does not obtain the corresponding shutdown mode from the storage module 730, the shutdown module records the current shutdown mode in the storage module 730, and uses a preset fixed time as a historical record duration of the start-up consumed duration to obtain the timing duration.
In some embodiments of the present application, the starting module 740 records the time length consumed by the current startup completion, the shutdown time, and the timing time length in the corresponding shutdown mode after the startup corresponding to the current shutdown mode is completed.
According to one embodiment of the application, the shutdown mode comprises an OTA upgrade shutdown mode or a system normal shutdown mode.
According to an embodiment of the application, the historical record duration of the starting consumption duration is a duration consumed by the last starting completion of the adjacent corresponding shutdown mode, or an average value of the starting consumption durations at a plurality of different historical moments corresponding to the shutdown mode.
Referring to fig. 8, the present application also provides an electronic device including:
a memory 810 for storing instructions for execution by one or more processors of the device, an
A processor 820 configured to perform the method explained in the above embodiments with reference to fig. 3 to 5.
The present application also provides a computer-readable storage medium, in which a computer program is stored, which, when executed by a processor, causes the processor to perform the method explained in fig. 3 to 5 in the above embodiments.
The present application also provides a computer program product comprising instructions for causing a processor to perform the method of the above embodiments as shown in fig. 3 to 5, when the computer program product runs on an electronic device.
Referring now to FIG. 9, shown is a block diagram of an apparatus 1200 in accordance with one embodiment of the present application. The device 1200 may include one or more processors 1201 coupled to a controller hub 1203. For at least one embodiment, the controller hub 1203 communicates with the processor 1201 via a multi-drop Bus such as a Front Side Bus (FSB), a point-to-point interface such as a Quick Path Interconnect (QPI), or similar connection 1206. The processor 1201 executes instructions that control general types of data processing operations. In one embodiment, Controller Hub 1203 includes, but is not limited to, a Graphics Memory Controller Hub (GMCH) (not shown) and an Input/Output Hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes a Memory and a Graphics Controller and is coupled to the IOH.
The device 1200 may also include a coprocessor 1202 and a memory 1204 coupled to the controller hub 1203. Alternatively, one or both of the memory and GMCH may be integrated within the processor (as described herein), with the memory 1204 and coprocessor 1202 being directly coupled to the processor 1201 and to the controller hub 1203, with the controller hub 1203 and IOH being in a single chip. The Memory 1204 may be, for example, a Dynamic Random Access Memory (DRAM), a Phase Change Memory (PCM), or a combination of the two. In one embodiment, coprocessor 1202 is a special-Purpose processor, such as, for example, a high-throughput MIC processor (MIC), a network or communication processor, compression engine, graphics processor, General Purpose Graphics Processor (GPGPU), embedded processor, or the like. The optional nature of coprocessor 1202 is represented in FIG. 9 by dashed lines.
Memory 1204, as a computer-readable storage medium, may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. For example, the memory 1204 may include any suitable non-volatile memory, such as flash memory, and/or any suitable non-volatile storage device, such as one or more Hard-Disk drives (Hard-Disk drives, hdd (s)), one or more Compact Discs (CD) drives, and/or one or more Digital Versatile Discs (DVD) drives.
In one embodiment, device 1200 may further include a Network Interface Controller (NIC) 1206. Network interface 1206 may include a transceiver to provide a radio interface for device 1200 to communicate with any other suitable device (e.g., front end module, antenna, etc.). In various embodiments, the network interface 1206 may be integrated with other components of the device 1200. The network interface 1206 may implement the functions of the communication unit in the above-described embodiments.
The device 1200 may further include an Input/Output (I/O) device 1205. I/O1205 may include: a user interface designed to enable a user to interact with the device 1200; the design of the peripheral component interface enables peripheral components to also interact with the device 1200; and/or sensors may be configured to determine environmental conditions and/or location information associated with device 1200.
It is noted that fig. 9 is merely exemplary. That is, although fig. 9 shows that the apparatus 1200 includes a plurality of devices, such as the processor 1201, the controller hub 1203, the memory 1204, etc., in practical applications, an apparatus using the methods of the present application may include only a part of the devices of the apparatus 1200, for example, only the processor 1201 and the NIC1206 may be included. The nature of the alternative device in fig. 9 is shown in dashed lines.
According to some embodiments of the present application, the memory 1204 serving as a computer-readable storage medium stores instructions, and when the instructions are executed on a computer, the system 1200 executes the method for switching the application and the task in the application according to the embodiments, which may specifically refer to the implementation method of the shutdown alarm clock of the embodiments, and is not described herein again.
Referring now to fig. 10, shown is a block diagram of a SoC (System on Chip) 1300 in accordance with an embodiment of the present application. In fig. 10, like parts have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. In fig. 10, SoC1300 includes: an interconnect unit 1350 coupled to the application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a set or one or more coprocessors 1320 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a Static Random Access Memory (SRAM) unit 1330; a Direct Memory Access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like.
One or more computer-readable media for storing data and/or instructions may be included in Static Random Access Memory (SRAM) unit 1330. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, the Soc1300 is enabled to execute the method for implementing the shutdown alarm clock according to the above embodiment, which may specifically refer to the methods explained in fig. 3 to fig. 5 in the above embodiments, and details are not described herein again.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this Application, a processing system includes any system having a Processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, Compact disk Read Only memories (CD-ROMs), magneto-optical disks, Read Only Memories (ROMs), Random Access Memories (RAMs), Erasable Programmable Read Only Memories (EPROMs), Electrically Erasable Programmable Read Only Memories (EEPROMs), magnetic or optical cards, flash Memory, or a tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustical or other forms of propagated signals. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the figures. In addition, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned embodiments of the apparatus of the present application do not introduce units/modules that are not so closely related to solve the technical problems proposed by the present application, which does not indicate that there are no other units/modules in the above-mentioned embodiments of the apparatus.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (19)

1. A method for realizing a shutdown alarm clock is applied to electronic equipment and is characterized by comprising the following steps:
the electronic equipment receives a shutdown instruction;
responding to the shutdown instruction, and acquiring a shutdown mode corresponding to the shutdown instruction by the electronic equipment;
the electronic equipment determines a shutdown time and an alarm clock time closest to the received shutdown instruction, wherein the shutdown mode is used for indicating a shutdown system state;
the electronic equipment acquires the historical record duration of the starting consumed duration corresponding to the shutdown mode according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode;
the electronic equipment subtracts the historical record duration of the starting consumed duration from the duration of the interval between the alarm clock time and the shutdown time to obtain the timing duration;
the electronic equipment sets a starting timer according to the timing duration, and the starting timer is used for controlling the starting time of the next starting according to the timing duration;
the electronic equipment is triggered to be started at the starting time;
and the electronic equipment starts the alarm clock according to the alarm clock time.
2. The method of claim 1,
and the electronic equipment records and updates the time length consumed by the completion of the startup corresponding to the shutdown mode.
3. The method of claim 1 or 2, further comprising:
the electronic equipment obtains the estimated time of the system based on the shutdown time, the timing time and the time consumed by the completion of the startup, wherein the estimated time is the first time of the estimated system time after the completion of the startup;
the electronic equipment compares the estimated moment with the actual moment of the system, wherein the actual moment of the system is the first moment recorded by the system after the electronic equipment completes the starting;
and when the difference value between the estimated time and the actual time is determined to exceed the preset value, resetting the new alarm clock according to the difference value so that the new alarm clock rings at the alarm clock time of the original alarm clock.
4. The method of claim 1 or 2, wherein the electronic device subtracts a historical record duration of a start-up elapsed duration from a duration of an interval between the alarm time and the shutdown time to obtain a timing duration, and the method comprises:
and the electronic equipment subtracts the historical record time length of the starting consumed time length and the preset buffering time length from the time length of the interval between the alarm clock time and the shutdown time to obtain the timing time length.
5. The method of claim 4, wherein the preset buffer duration is greater than zero seconds.
6. The method according to claim 1 or 2, wherein the obtaining, by the electronic device according to the shutdown mode, the historical record duration of the startup consumption duration corresponding to the shutdown mode includes:
the electronic equipment gives an identifier to each shutdown mode, and obtains the historical record duration of the starting consumed duration corresponding to the shutdown mode according to the identifier of the shutdown mode.
7. The method according to claim 1, wherein if the electronic device does not obtain the corresponding shutdown mode, the electronic device stores the current shutdown mode, and obtains the timing duration by using a preset fixed time as a historical record duration of a start-up consumed duration.
8. The method according to claim 7, wherein after the electronic device completes the power-on corresponding to the power-off mode at this time, the time length consumed by the completion of the power-on, the power-off time and the timing time length are recorded in the corresponding power-off mode.
9. The method of claim 1, 2, 7 or 8, wherein the shutdown mode comprises an OTA upgrade shutdown mode or a system normal shutdown mode.
10. The method according to claim 1, 2, 7 or 8, wherein the historical record duration of the startup consumption duration is a duration consumed by the last startup completion of an adjacent corresponding current shutdown mode, or an average value of the startup consumption durations at a plurality of different historical moments corresponding to the current shutdown mode.
11. The method of claim 1, 2, 7 or 8, wherein the electronic device comprises a shutdown module, a database, and wherein the method comprises:
the electronic device receives a shutdown instruction, specifically: the shutdown module receives a shutdown instruction;
responding to the shutdown instruction, and the shutdown module acquires a shutdown mode corresponding to the shutdown instruction;
the shutdown module determines a shutdown time and an alarm clock time closest to the received shutdown instruction, wherein the shutdown mode is used for indicating a shutdown system state;
the shutdown module acquires historical record duration of starting consumed duration corresponding to the shutdown mode from the database according to the shutdown mode; the starting consumed time length is the time length consumed from starting to finishing starting in the shutdown state in the shutdown mode;
and the shutdown module subtracts the historical record duration of the starting consumed duration from the duration of the interval between the alarm clock time and the shutdown time to obtain the timing duration.
12. The method according to claim 11, wherein the electronic device further includes a timer and a start module, and the electronic device sets a start timer according to the timing duration, specifically:
the shutdown module sends the timing duration to the timer;
responding to the received timing duration, and setting a starting-up time by the timer;
the electronic equipment is started at the starting time by triggering, specifically:
the timer triggers starting at the starting time;
the electronic equipment starts the alarm clock according to the alarm clock time, and the method specifically comprises the following steps:
and the starting module starts the alarm clock according to the alarm clock time.
13. The method according to claim 11, wherein the electronic device includes a start module, and the electronic device records a time length consumed for completing the power-on of this time corresponding to the power-off mode and updates the time length to the database, specifically:
and the starting module records the time length consumed by the completion of the starting corresponding to the shutdown mode and updates the time length to the database.
14. The method of claim 11, further comprising: the starting module obtains an estimated time of the system based on the shutdown time, the timing time and the time consumed by the completion of the startup, wherein the estimated time is the first time of the estimated system time after the completion of the startup;
the starting module compares the estimated moment with the actual moment of the system, wherein the actual moment of the system is the first moment recorded by the system after the electronic equipment completes the starting;
and when the starting module determines that the difference value between the estimated time and the actual time exceeds a preset value, resetting a new alarm clock according to the difference value so that the new alarm clock rings at the alarm clock time of the original alarm clock.
15. The method of claim 11, wherein the obtaining, by the shutdown module, the historical length of the startup elapsed length corresponding to the shutdown mode from the database according to the shutdown mode comprises: and the shutdown module subtracts the historical record time length of the starting consumed time length and the preset buffer time length from the interval time length between the alarm clock time and the shutdown time to obtain the timing time length.
16. The method of claim 11, wherein the obtaining, by the shutdown module, the historical length of the startup elapsed length corresponding to the shutdown mode from the database according to the shutdown mode comprises:
and the shutdown module acquires the historical record duration of the starting consumed duration corresponding to the shutdown mode from a database according to the identifier of the shutdown mode.
17. The method according to claim 11, wherein if the shutdown module does not obtain the corresponding shutdown mode from the database, the shutdown module records the current shutdown mode in the database, and obtains the timing duration by using a preset fixed time as a historical recording duration of a start-up consumed duration.
18. An electronic device, comprising: a memory for storing instructions for execution by one or more processors of the device, an
A processor for performing the method of any one of claims 1-17.
19. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1-17.
CN202110794834.4A 2021-07-14 2021-07-14 Method for implementing shutdown alarm clock, electronic device and computer readable storage medium Active CN113612884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110794834.4A CN113612884B (en) 2021-07-14 2021-07-14 Method for implementing shutdown alarm clock, electronic device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110794834.4A CN113612884B (en) 2021-07-14 2021-07-14 Method for implementing shutdown alarm clock, electronic device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113612884A CN113612884A (en) 2021-11-05
CN113612884B true CN113612884B (en) 2022-08-09

Family

ID=78337528

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110794834.4A Active CN113612884B (en) 2021-07-14 2021-07-14 Method for implementing shutdown alarm clock, electronic device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113612884B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116030846B (en) * 2022-05-30 2023-10-20 荣耀终端有限公司 Timing jump synchronization method and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821207A (en) * 2012-08-15 2012-12-12 北京小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
CN103607509A (en) * 2013-11-22 2014-02-26 Tcl通讯(宁波)有限公司 Mobile terminal shutdown alarm clock trigger system and trigger method thereof
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN108881623A (en) * 2018-05-30 2018-11-23 Oppo(重庆)智能科技有限公司 Method for controlling mobile terminal, mobile terminal and its storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111225113A (en) * 2020-01-08 2020-06-02 青岛海信移动通信技术股份有限公司 Communication terminal and starting method thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102821207A (en) * 2012-08-15 2012-12-12 北京小米科技有限责任公司 Implementation method for alarm clock under shutdown state and mobile terminal
KR20150018819A (en) * 2012-08-15 2015-02-24 시아오미 아이엔씨. Method for enabling shutdown alarm clock and mobile terminal
CN103607509A (en) * 2013-11-22 2014-02-26 Tcl通讯(宁波)有限公司 Mobile terminal shutdown alarm clock trigger system and trigger method thereof
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN108881623A (en) * 2018-05-30 2018-11-23 Oppo(重庆)智能科技有限公司 Method for controlling mobile terminal, mobile terminal and its storage medium

Also Published As

Publication number Publication date
CN113612884A (en) 2021-11-05

Similar Documents

Publication Publication Date Title
RU2663821C2 (en) Shutdown prompt method and device
KR101641174B1 (en) Method for enabling shutdown alarm clock and mobile terminal, and program, and recording medium for enabling shutdown alarm clock
WO2020010584A1 (en) Data recovery method for when restoring factory settings of terminal, and terminal
CN112988213B (en) Program data updating method, electronic equipment and computer storage medium
EP3407339A1 (en) Method and device for screen-off display
CN110764825B (en) Starting method and terminal equipment
CN111083042B (en) Template message pushing method, device, equipment and storage medium
WO2020037560A1 (en) Application installation method and terminal
CN111125436B (en) Data management method, device and system
CN113612884B (en) Method for implementing shutdown alarm clock, electronic device and computer readable storage medium
US20230324974A1 (en) Method for system switching, wearable device, and storage medium
CN110658717B (en) Alarm clock control method, device, equipment and storage medium
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
CN116719556B (en) System upgrading method and electronic equipment
CN116700815B (en) Hardware resource control method, electronic device and readable storage medium
CN117009023B (en) Method for displaying notification information and related device
CN116033333B (en) Method for determining position information, electronic device and readable storage medium
CN116679900B (en) Audio service processing method, firmware loading method and related devices
CN116048546B (en) System upgrading method, electronic equipment and computer readable storage medium
EP4301051A1 (en) Sleep control method, apparatus, and computer-readable storage medium
JP7404389B2 (en) Movement trajectory recording method and related devices
WO2022267786A1 (en) Shortcut icon display method and terminal device
CN116719556A (en) System upgrading method and electronic equipment
US20120188851A1 (en) Electronic apparatus, timepiece device, pedometer, and program
WO2019084755A1 (en) Information processing method and apparatus, mobile terminal, and nonvolatile 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