CN113472946A - Management method for closing terminal application and electronic equipment - Google Patents

Management method for closing terminal application and electronic equipment Download PDF

Info

Publication number
CN113472946A
CN113472946A CN202110744842.8A CN202110744842A CN113472946A CN 113472946 A CN113472946 A CN 113472946A CN 202110744842 A CN202110744842 A CN 202110744842A CN 113472946 A CN113472946 A CN 113472946A
Authority
CN
China
Prior art keywords
alarm clock
time
shutdown
shutdown alarm
electronic equipment
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.)
Pending
Application number
CN202110744842.8A
Other languages
Chinese (zh)
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.)
Dongguan ELF Education Software Co Ltd
Original Assignee
Dongguan ELF Education Software 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 Dongguan ELF Education Software Co Ltd filed Critical Dongguan ELF Education Software Co Ltd
Priority to CN202110744842.8A priority Critical patent/CN113472946A/en
Publication of CN113472946A publication Critical patent/CN113472946A/en
Pending legal-status Critical Current

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Electric Clocks (AREA)

Abstract

The invention provides a management method for closing terminal application and electronic equipment, wherein the method comprises the following steps: acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment; finding out the time of the shutdown alarm clock closest to the updating time of the alarm clock from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock; when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock; and respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence. According to the invention, all shutdown alarm clocks are kept to be respectively and normally sounded under the setting requirements of the plurality of shutdown alarm clocks, so that the use experience of the shutdown alarm clocks of the electronic equipment is improved.

Description

Management method for closing terminal application and electronic equipment
Technical Field
The invention relates to the technical field of shutdown alarm clocks, in particular to a management method for closing terminal applications and electronic equipment.
Background
The shutdown alarm clock refers to a function that the electronic device can sound at a set alarm clock time after being shut down, and is often found in mobile phones, watches, computers, tablets and radios. The electronic device supporting the shutdown alarm clock is not really turned off, but has a part of electric quantity to keep partial functions of the electronic device running, for example, a BIOS manages the clock on a computer, and does not depend on an operating system.
The shutdown alarm clock under the current operation platform only supports a shutdown alarm clock, for example, a shutdown alarm clock 1 is set on the electronic device, and then a shutdown alarm clock 2 is set, so the shutdown alarm clock 1 set in advance will be cleared, and the alarm clock cannot be normally sounded after the time point of the shutdown alarm clock 1 is reached. Therefore, how to keep all the shutdown alarm clocks to respectively and normally sound under the setting requirement of the plurality of shutdown alarm clocks is a technical problem which needs to be solved urgently by technical personnel in the field.
Disclosure of Invention
The invention aims to provide a management method for closing terminal applications and electronic equipment, which can keep all shutdown alarm clocks to respectively and normally sound under the setting requirements of a plurality of shutdown alarm clocks, and improve the use experience of the shutdown alarm clocks of the electronic equipment.
The technical scheme provided by the invention is as follows:
the invention provides a management method for closing terminal application, which comprises the following steps:
acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
finding out the time of the shutdown alarm clock closest to the updating time of the alarm clock from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
Further, the step of obtaining the shutdown alarm setting instruction includes:
acquiring input shutdown alarm clock time and identification information;
if the identification information is the package name of the application program, obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the package name and the shutdown alarm clock time;
and if the identification information is the unique identification of the electronic equipment, obtaining a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identification and the shutdown alarm clock time.
Further, the method also comprises the following steps:
acquiring user identity information for setting an alarm clock, and analyzing according to the user identity information to obtain the identity type of a user;
if the identity type is the owner role, updating and storing the shutdown alarm clock time of the electronic equipment according to all the obtained shutdown alarm clock setting instructions and the user identity information;
and if the identity type is the role of the visitor, updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction and user identity information input by the visitor.
Further, the updating and storing the power-off alarm time of the electronic device includes:
extracting shutdown alarm clock setting information and corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
if the setting type is an alarm clock adding type, newly adding the time of the alarm clock for turning off corresponding to the identification information;
if the setting type is a time change type, finding out the corresponding shutdown alarm clock time according to the identification information, and modifying the found shutdown alarm clock time into a new shutdown alarm clock time;
and if the setting type is an alarm clock canceling type, searching and deleting corresponding alarm clock shutdown time according to the identification information.
Further, when the set time of the target shutdown alarm clock is reached, controlling the electronic device to sound the alarm clock comprises the steps of:
writing the target shutdown alarm clock into a real-time clock register;
when the set time of a target shutdown alarm clock is reached in a shutdown state, triggering the electronic equipment to be started through the real-time clock register and then controlling the alarm clock to sound;
and when the set time of the target shutdown alarm clock is reached in the power-on state, triggering and controlling the alarm clock to sound through a timer in the electronic equipment.
The present invention also provides an electronic device comprising:
the processing module is used for acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
the setting module is used for finding out the power-off alarm clock time closest to the alarm clock updating time from all the stored power-off alarm clock times as the set time of the target power-off alarm clock;
the control module is used for controlling the electronic equipment to sound an alarm clock when the set time of the target shutdown alarm clock is reached;
and the control module is also used for respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
Further, the processing module comprises:
the input unit is used for acquiring the input shutdown alarm clock time and the identification information;
the obtaining unit is used for obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the packet name and the shutdown alarm clock time if the identification information is the packet name of the application program;
the obtaining unit is further configured to obtain a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identifier and the shutdown alarm clock time if the identifier information is the unique identifier of the electronic device.
Further, the method also comprises the following steps:
the role judging module is used for acquiring the user identity information for setting the alarm clock and analyzing the user identity information to obtain the identity type of the user;
the processing module is further used for updating and storing the shutdown alarm clock time of the electronic equipment according to all the obtained shutdown alarm clock setting instructions and the user identity information if the identity type is the owner role;
and the processing module is also used for updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction and user identity information input by a visitor if the identity type is the visitor role.
Further, the processing module further includes:
the extraction unit is used for extracting the shutdown alarm clock setting information and the corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
an alarm clock adding unit, configured to add a new shutdown alarm clock time corresponding to the identification information if the setting type is an alarm clock adding type;
the alarm clock modification unit is used for finding out the corresponding shutdown alarm clock time according to the identification information and modifying the found shutdown alarm clock time into a new shutdown alarm clock time if the setting type is a time change type;
and the alarm clock canceling unit is used for searching and deleting the corresponding shutdown alarm clock time according to the identification information if the setting type is the alarm clock canceling type.
Further, the control module includes:
the writing unit is used for writing the target shutdown alarm clock into a real-time clock register;
the first trigger control unit is used for triggering the electronic equipment to start through the real-time clock register and then controlling the alarm clock to sound when the set time of the target shutdown alarm clock is reached in a shutdown state;
and the second trigger control unit is used for triggering and controlling the alarm clock to sound through a timer in the electronic equipment when the set time of the target shutdown alarm clock is reached in the startup state.
According to the management method for closing the terminal application and the electronic equipment, provided by the invention, all shutdown alarm clocks can be kept to respectively and normally sound under the setting requirements of the plurality of shutdown alarm clocks, and the use experience of the shutdown alarm clocks of the electronic equipment is improved.
Drawings
The above features, technical features, advantages and implementations of a method for managing a closed terminal application and an electronic device will be further explained in a clearly understandable manner with reference to the accompanying drawings.
FIG. 1 is a flow diagram of one embodiment of a management method for closing a terminal application of the present invention;
FIG. 2 is a flow chart of another embodiment of a management method for closing a terminal application in accordance with the present invention;
FIG. 3 is a flow chart of another embodiment of a management method for closing a terminal application in accordance with the present invention;
fig. 4 is a flowchart of another embodiment of a management method for closing a terminal application according to the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. However, it will be apparent to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
In addition, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
An embodiment of the present invention, as shown in fig. 1, is a management method for closing a terminal application, including:
s110, acquiring a shutdown alarm clock setting instruction and updating and storing shutdown alarm clock time of the electronic equipment;
in particular, electronic devices include, but are not limited to, smart phones, telephone watches, home education machines, learning machines, computers, tablet smartbands. The electronic equipment can acquire and acquire a voice signal of a user through the microphone or the microphone array, and performs voice recognition processing on the voice signal to obtain a corresponding shutdown alarm clock setting instruction. Of course, the user may also manually input and acquire the shutdown alarm clock setting instruction on the human-computer interaction screen of the electronic device. After the electronic equipment acquires the shutdown alarm clock setting instruction in the above manner, updating and storing the shutdown alarm clock time for the electronic equipment according to the shutdown alarm clock setting instruction.
S120, finding out the power-off alarm clock time closest to the alarm clock updating time from all stored power-off alarm clock times as the set time of the target power-off alarm clock;
specifically, the electronic device may be provided with a plurality of alarm clocks, and different alarm clocks correspond to different off alarm clock times. Therefore, after the electronic device obtains and stores all the shutdown alarm clock times in the above manner, the shutdown alarm clock time closest to the alarm clock updating time is found out from all the stored shutdown alarm clock times as the set time of the target shutdown alarm clock.
S130, when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
s140, when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence, the electronic equipment is respectively controlled to alarm.
Specifically, the hardware architecture of a general electronic device is divided into three parts, namely RF, BB and AP, the RF radio frequency part is mainly a radio frequency module for receiving and transmitting radio frequency, and the shutdown alarm clock function does not need to pay attention to the module. The AP part is an application program processor, namely a CPU module; the BB section is the baseband module. Usually, when the electronic device is powered off, the AP module is completely powered off, while the BB module is in a power-off state, but actually the alarm clock and the time part are not powered off, and when the alarm clock is set to a point, the BB module automatically powers on the AP module, so that the electronic device can be powered on and activate the alarm clock function.
The base band module of the electronic equipment acquires current network time through the radio frequency module, compares the current network time with the set time of the target shutdown alarm clock in real time, and triggers the target shutdown alarm clock of the electronic equipment once the current network time is judged to reach the set time of the target shutdown alarm clock, so that the electronic equipment is controlled to alarm. The alarm clock ringing mode comprises any one or combination of vibration and ringing. In addition, it is to be noted that the remaining shutdown alarm clocks are alarm clocks whose shutdown alarm clock time is after the target shutdown alarm clock, and the electronic device sequentially arranges the shutdown alarm clock times of the remaining shutdown alarm clocks and the target shutdown alarm clock according to the time sequence to obtain an alarm clock ringing list. The remaining shutdown alarm clocks are numbered in sequence according to the arrangement sequence of the remaining shutdown alarm clocks in the alarm clock ringing list, for example, the alarm ringing time of the first remaining shutdown alarm clock is behind the shutdown alarm clock time of the target shutdown alarm clock, and the alarm ringing time of the first remaining shutdown alarm clock is closest to the shutdown alarm clock time of the target shutdown alarm clock. The alarm ringing time of the second remaining shutdown alarm clock is after the shutdown alarm clock time of the first remaining shutdown alarm clock, and the alarm ringing time of the second remaining shutdown alarm clock is closest to the shutdown alarm clock time of the first remaining shutdown alarm clock, and so on.
After the alarm clock ringing operation of the target shutdown alarm clock is completed, the electronic equipment continues to acquire the current network time in real time through the radio frequency module, and matches the current network time with the alarm clock ringing list so as to compare the shutdown alarm clock time of the rest shutdown alarm clocks with the current network time. If the current network time reaches the alarm ringing time of the residual shutdown alarm clock with the corresponding number according to the alarm ringing list, the electronic equipment is controlled to alarm according to the alarm ringing time of the residual shutdown alarm clock with the corresponding number until all alarm clocks (including the target shutdown alarm clock and the residual shutdown alarm clock) in the alarm ringing list complete time matching and alarm ringing operations.
The electronic equipment updates the stored time of the shutdown alarm clock, compares the stored time of the shutdown alarm clock with the current network time, and reserves all the shutdown alarm clocks under the setting requirements of the shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, and the problem that the plurality of shutdown alarm clocks are not conflicted in use is solved.
An embodiment of the present invention, as shown in fig. 2, is a management method for closing a terminal application, including:
s210, acquiring input shutdown alarm clock time and identification information;
s220, if the identification information is the package name of the application program, obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the package name and the shutdown alarm clock time;
s230, if the identification information is the unique identification of the electronic equipment, obtaining a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identification and the shutdown alarm clock time;
specifically, this embodiment is an optimized embodiment of the foregoing embodiment, and the same portions in this embodiment as those in the foregoing embodiment are referred to the foregoing embodiment, and are not described in detail herein. The electronic equipment can acquire and acquire a voice signal of a user through the microphone or the microphone array, and performs voice recognition processing on the voice signal to obtain corresponding shutdown alarm clock time and identification information. Of course, the user may also manually input and acquire the shutdown alarm clock time and the identification information on the human-computer interaction screen of the electronic device.
The type of the identification information comprises a package name of the application program and a unique identification of the electronic equipment. The unique identification of the electronic device includes a device serial number, a MAC address, etc. of the electronic device. After the electronic equipment sets the identification information of the alarm clock in the above mode, if the identification information is the package name of the application program, the electronic equipment generates a shutdown alarm clock setting instruction for the application program according to the package name and the shutdown alarm clock time. And if the identification information is the unique identification of the electronic equipment, the electronic equipment generates a shutdown alarm clock setting instruction for an operating system of the electronic equipment according to the unique identification and the shutdown alarm clock time.
S240, updating and storing the shutdown alarm clock time of the electronic equipment according to the shutdown alarm clock setting instruction;
s250, finding out the time of the shutdown alarm clock closest to the alarm clock updating time from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
s260, when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and S270, respectively controlling the electronic equipment to alarm when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
The electronic equipment updates the stored shutdown alarm clock time, compares the stored shutdown alarm clock time with the current network time, and reserves all shutdown alarm clocks under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, a plurality of applications can be supported to set the shutdown alarm clocks simultaneously, an operating system and the plurality of applications can be supported to set the shutdown alarm clocks simultaneously, the problem that the shutdown alarm clocks used by the plurality of applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are richer and more perfect.
An embodiment of the present invention, as shown in fig. 3, is a management method for closing a terminal application, including:
s310, a shutdown alarm clock setting instruction is obtained;
s320, acquiring user identity information for setting an alarm clock, and analyzing according to the user identity information to obtain the identity type of the user;
specifically, this embodiment is an optimized embodiment of the foregoing embodiment, and the same portions in this embodiment as those in the foregoing embodiment are referred to the foregoing embodiment, and are not described in detail herein. The electronic equipment can acquire a voice signal of a user through the microphone or the microphone array, extracts voiceprint features to be recognized from the voice signal, compares the voiceprint features to be recognized with preset voiceprint features, and if the similarity reaches a preset threshold value, obtains user identity information for setting the alarm clock according to an identity ID associated with the preset voiceprint features. Certainly, the user can also input the fingerprint to be recognized on the fingerprint collector of the electronic device, the fingerprint to be recognized is compared with the preset fingerprint, and if the similarity reaches the preset threshold, the user identity information for setting the alarm clock is obtained according to the identity ID associated with the preset fingerprint. Other user identity information acquisition modes, such as iris, human face characteristics, etc., are within the scope of the present invention.
After the electronic equipment acquires the user identity information in the mode, whether the identity type of the user setting the alarm clock is the owner or the visitor is judged. The process of judging the identity type comprises the following steps: after the electronic equipment leaves the factory and uses, need establish owner user account, when establishing owner user account, can enter user's identity information as owner identity information, then, the user is when using electronic equipment to establish or set up the alarm clock, acquire the user identity information of treating discernment through above-mentioned mode, compare user identity information and owner identity information, if the user identity type that the unanimous explanation set up the alarm clock is owner's role, if the user identity type that inconsistent explanation set up the alarm clock is visitor's role.
S330, if the identity type is the owner role, updating and storing the shutdown alarm clock time of the electronic equipment according to all the acquired shutdown alarm clock setting instructions, and binding the updated and stored shutdown alarm clock time with the user identity information;
specifically, once the user identity type of the alarm clock is judged to be the owner role, all the shutdown alarm clock setting instructions existing at the alarm clock updating time are acquired according to the embodiment, the shutdown alarm clock setting instructions are derived from the owner and the visitor, and then the electronic equipment updates and stores the shutdown alarm clock time of the electronic equipment according to all the shutdown alarm clock setting instructions, and the updated and stored shutdown alarm clock time is bound with the user identity information.
S340, if the identity type is the role of the visitor, updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction input by the visitor, and binding the updated and stored shutdown alarm clock time with the user identity information;
specifically, once the user identity type for setting the alarm clock is judged to be the visitor role, the electronic device obtains all the shutdown alarm clock setting instructions which are already existed at the time of updating the alarm clock and are input by the visitor according to the embodiment. Because the user acquires the user identity information in the above way when the user uses the electronic device to create or set the alarm clock, the electronic device can distinguish whether the shutdown alarm clock setting instruction is input by the owner or the visitor, and thus, the electronic device updates and stores the shutdown alarm clock time of the electronic device according to all the shutdown alarm clock setting instructions input by the visitor and binds the updated and stored shutdown alarm clock time with the user identity information.
S350, finding out the time of the shutdown alarm clock closest to the alarm clock updating time from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
s360, when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and S370, respectively controlling the electronic equipment to alarm when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
The electronic equipment updates the stored shutdown alarm clock time, compares the stored shutdown alarm clock time with the current network time, and reserves all shutdown alarm clocks under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, a plurality of applications can be supported to set the shutdown alarm clocks simultaneously, an operating system and the plurality of applications can be supported to set the shutdown alarm clocks simultaneously, the problem that the shutdown alarm clocks used by the plurality of applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are richer and more perfect.
According to the method and the device, the time of the alarm clock is updated and stored by adopting the shutdown alarm clock setting instructions from different identity types according to the identity types of the users for setting the alarm clock, so that the time of the alarm clock is updated and stored by using the shutdown alarm clock setting instructions from all identity types (including owners and visitors) in the on-machine main mode. In addition, only use the shutdown alarm clock setting instruction of visitor source to carry out the update of shutdown alarm clock time and store under visitor's mode, avoid the alarm ring bell time of owner to reveal, also avoid the illegal son who pretends the visitor according to the alarm ring bell time of the owner who reveals for the illegal son can't calculate and estimate out the life work and rest law of owner, reaches the purpose that protection owner life work and rest law, work and rest time do not reveal.
An embodiment of the present invention, as shown in fig. 4, is a management method for closing a terminal application, including:
s410, acquiring a shutdown alarm clock setting instruction;
s420, extracting shutdown alarm clock setting information and corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
s430, if the setting type is an alarm clock adding type, newly adding shutdown alarm clock time corresponding to the identification information;
s440, if the setting type is a time change type, finding out corresponding shutdown alarm clock time according to the identification information, and modifying the found shutdown alarm clock time into new shutdown alarm clock time;
s450, if the setting type is an alarm clock canceling type, searching and deleting corresponding shutdown alarm clock time according to the identification information;
specifically, this embodiment is an optimized embodiment of the foregoing embodiment, and the same portions in this embodiment as those in the foregoing embodiment are referred to the foregoing embodiment, and are not described in detail herein. The electronic equipment analyzes the shutdown alarm clock setting instruction to obtain shutdown alarm clock setting information and corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm setting information includes a setting type and a shutdown alarm time. If the setting type is an alarm clock adding type, the electronic equipment can additionally add shutdown alarm clock time corresponding to the identification information. If the setting type is the time change type, the electronic equipment can find out the corresponding original shutdown alarm clock time according to the identification information, and the original shutdown alarm clock time is modified and replaced by the new shutdown alarm clock time. If the setting type is an alarm clock canceling type, the electronic equipment searches and deletes the corresponding shutdown alarm clock time according to the identification information.
S460, finding out the time of the shutdown alarm clock closest to the alarm clock updating time from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
s470, when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and S480, when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence, controlling the electronic equipment to sound the alarm clock respectively.
According to the electronic equipment, after the shutdown alarm clock is added, modified and cancelled, the stored shutdown alarm clock time is updated, the stored shutdown alarm clock time is compared with the current network time, all the shutdown alarm clocks are reserved under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, the shutdown alarm clocks are set simultaneously by multiple applications, the shutdown alarm clocks are set simultaneously by an operating system and the multiple applications, the problem that the shutdown alarm clocks used by the multiple applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are more enriched and complete.
In an embodiment of the present invention, a management method for closing a terminal application includes:
s510, acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
s520, finding out the time of the shutdown alarm clock closest to the alarm clock updating time from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
s530, writing the target shutdown alarm clock into a real-time clock register;
s540, when the set time of a target shutdown alarm clock is reached in a shutdown state, triggering the electronic equipment to be started through the real-time clock register and then controlling the alarm clock to sound;
s550, when the set time of the target shutdown alarm clock is reached in the power-on state, triggering and controlling the alarm clock to sound through a timer in the electronic equipment;
specifically, this embodiment is an optimized embodiment of the foregoing embodiment, and the same portions in this embodiment as those in the foregoing embodiment are referred to the foregoing embodiment, and are not described in detail herein. A Real-Time Clock (RTC) module is disposed inside a chip of the electronic device, and the RTC module includes a plurality of RTC registers (i.e., Real-Time Clock registers) for providing Time, calendar and alarm Clock outputs. The RTC module also has a programmable counter that can be used to count the time the user sets the shutdown alarm clock. If the shutdown alarm clock time set by the user is matched with the current network time, the RTC register generates an alarm clock interrupt signal, so that the electronic equipment is enabled to be started forcibly. In this embodiment, when the electronic device is in the power-off state, when the power-off alarm clock time is the same as the current network time, the enable power-on interrupt signal sent by the RTC register is monitored to trigger the power-on start of the electronic device, and the real-time clock register triggers the start of the electronic device and controls the alarm clock to sound. Certainly, if the electronic device is in the on state, when the off alarm clock time is the same as the current network time, the timer in the electronic device triggers and controls the alarm clock to sound.
And S560, when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence, respectively controlling the electronic equipment to sound the alarm clock.
When the electronic equipment is in a power-off state, the invention triggers the electronic equipment to be powered on and starts the alarm clock ringing process through the startup enabling interrupt signal sent by the RTC register in the chip of the electronic equipment, thereby realizing the shutdown alarm clock. The embodiment optimizes the response speed of the shutdown alarm, and places the interface of the alarm prompt into the system kernel, thereby greatly shortening the response time of the shutdown alarm.
The time of the alarm clock for turning off is written into the RTC register before the electronic equipment is turned off, so that the RTC register can generate an alarm clock interrupt signal according to the time of the alarm clock for turning off to realize the alarm clock for turning off after the electronic equipment is turned off. Meanwhile, the RTC module is powered by a battery, so that the time in the RTC register cannot be lost after the electronic equipment is powered down, and the safety and stability of the time for turning off the alarm can be ensured.
According to the invention, after the electronic equipment is powered off, the current network time is obtained by opening the radio frequency channel and is compared with the set time, when the network time reaches the set time, the alarm prompting is completed, and the alarm prompting function in the power-off mode is realized.
In an embodiment of the present invention, a management method for closing a terminal application includes:
s610, acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
s620, finding out the power-off alarm clock time closest to the alarm clock updating time from all the stored power-off alarm clock times as the set time of the target power-off alarm clock;
s630, writing the target shutdown alarm clock into a real-time clock register;
s640, when the set time of a target shutdown alarm clock is reached in a shutdown state, triggering the electronic equipment to be started through the real-time clock register and then controlling the alarm clock to sound;
s650, when the set time of the target shutdown alarm clock is reached in the power-on state, triggering and controlling the alarm clock to sound through a timer in the electronic equipment;
s660, when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence, controlling the electronic equipment to sound the alarm clock respectively;
s670, acquiring the input time and identification information of the shutdown alarm clock, and acquiring the user identity information of the set alarm clock;
s680, if the identification information is the package name of the application program, obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the package name and the shutdown alarm clock time;
s690, if the identification information is the unique identification of the electronic device, obtaining a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identification and the shutdown alarm clock time;
s710, analyzing according to the user identity information to obtain the identity type of the user;
s720, if the identity type is the owner role, updating and storing the shutdown alarm clock time of the electronic equipment according to all the acquired shutdown alarm clock setting instructions, and binding the updated and stored shutdown alarm clock time with the user identity information;
s730, if the identity type is the role of the visitor, updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction input by the visitor, and binding the updated and stored shutdown alarm clock time with the user identity information;
s740, updating and storing the shutdown alarm clock time of the electronic equipment according to the shutdown alarm clock setting instruction;
s750, finding out the time of the shutdown alarm clock closest to the update time of the alarm clock from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
s760, when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and S770, when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence, controlling the electronic equipment to alarm clock respectively.
Specifically, this embodiment is an optimized embodiment of the foregoing embodiment, and the same portions in this embodiment as those in the foregoing embodiment are referred to the foregoing embodiment, and are not described in detail herein.
1. An application program end: when the electronic device application program sets and cancels the shutdown alarm clock, the package name and the set shutdown alarm clock time need to be transmitted.
2. Shutdown alarm clock management end:
a) and after receiving a shutdown alarm clock set by the application program of the electronic equipment, saving the package name of the application program and the set shutdown alarm clock time.
b) And after receiving a shutdown alarm clock cancelled by the application program of the electronic equipment, inquiring the package name of the application program, and deleting the corresponding shutdown alarm clock time.
3. Shutdown alarm clock management end: and checking the currently stored alarm clock, and finding out the time of the shutdown alarm clock closest to the current time as the set time of the target shutdown alarm clock.
a) And setting the set time of the target shutdown alarm clock to an RTC register. (thus, after the user shuts down, when the set time of the target shutdown alarm clock is reached, the electronic device is actively triggered to automatically start up to enter the system for alarm clock ringing).
4. An application program end: after the set time of the target shutdown alarm clock is up, after the application program is set to ring the alarm clock, two situations can occur:
a) and (3) the user initiatively cancels the alarm clock, the application program needs to send a command of canceling the target shutdown alarm clock to the shutdown alarm clock management end, and the step 2 is returned.
b) If the user clicks the operation of delaying ringing, the application program needs to reset the delayed time of the shutdown alarm clock to the shutdown alarm clock management end, and then the step 2 is returned.
The invention allocates storage space for the application programs with different packet names by identifying the packet name of the application program APP sending the shutdown alarm clock, saves the shutdown alarm clock time set by the application program APP, when other APPs are also provided with the shutdown alarm clock, the shutdown alarm clock time of the stored application program can be automatically compared, then setting the nearest time of the shutdown alarm clock, thus solving the problem that a plurality of application programs can not use a plurality of shutdown alarm clocks simultaneously, under the setting demand of a plurality of shutdown alarm clocks, keep all shutdown alarm clocks for all shutdown alarm clocks normally sound respectively, support many application programs to set up the shutdown alarm clock simultaneously, also support operating system and many application programs to set up the shutdown alarm clock simultaneously, solved many application programs, operating system and used the problem that the shutdown alarm clock is not conflicted simultaneously, make the alarm clock function of electronic equipment abundanter perfect. The invention not only enables the alarm clock of the electronic equipment to sound normally under the shutdown condition, but also enables the corresponding functions of other third party alarm clock application programs to be used normally, and does not need any change on the realization of the third party application program, thereby having better practicability.
The present invention also provides an electronic device comprising:
the processing module is used for acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
the setting module is used for finding out the power-off alarm clock time closest to the alarm clock updating time from all the stored power-off alarm clock times as the set time of the target power-off alarm clock;
the control module is used for controlling the electronic equipment to sound an alarm clock when the set time of the target shutdown alarm clock is reached;
and the control module is also used for respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
In particular, electronic devices include, but are not limited to, smart phones, telephone watches, home education machines, learning machines, computers, tablet smartbands. The electronic equipment can acquire and acquire a voice signal of a user through the microphone or the microphone array, and performs voice recognition processing on the voice signal to obtain a corresponding shutdown alarm clock setting instruction. Of course, the user may also manually input and acquire the shutdown alarm clock setting instruction on the human-computer interaction screen of the electronic device. After the electronic equipment acquires the shutdown alarm clock setting instruction in the above manner, updating and storing the shutdown alarm clock time for the electronic equipment according to the shutdown alarm clock setting instruction.
Because the electronic equipment may be provided with a plurality of alarm clocks, different alarm clocks correspond to different shutdown alarm clock times. Therefore, after the electronic device obtains and stores all the shutdown alarm clock times in the above manner, the shutdown alarm clock time closest to the alarm clock updating time is found out from all the stored shutdown alarm clock times as the set time of the target shutdown alarm clock.
The hardware architecture of general electronic equipment is divided into three parts of RF, BB and AP, the RF part is mainly a radio frequency module for receiving and transmitting radio frequency, and the function of the shutdown alarm clock does not need to pay attention to the module. The AP part is an application program processor, namely a CPU module; the BB section is the baseband module. Usually, when the electronic device is powered off, the AP module is completely powered off, while the BB module is in a power-off state, but actually the alarm clock and the time part are not powered off, and when the alarm clock is set to a point, the BB module automatically powers on the AP module, so that the electronic device can be powered on and activate the alarm clock function.
The base band module of the electronic equipment acquires current network time through the radio frequency module, compares the current network time with the set time of the target shutdown alarm clock in real time, and triggers the target shutdown alarm clock of the electronic equipment once the current network time is judged to reach the set time of the target shutdown alarm clock, so that the electronic equipment is controlled to alarm. The alarm clock ringing mode comprises any one or combination of vibration and ringing. In addition, it is to be noted that the remaining shutdown alarm clocks are alarm clocks whose shutdown alarm clock time is after the target shutdown alarm clock, and the electronic device sequentially arranges the shutdown alarm clock times of the remaining shutdown alarm clocks and the target shutdown alarm clock according to the time sequence to obtain an alarm clock ringing list. The remaining shutdown alarm clocks are numbered in sequence according to the arrangement sequence of the remaining shutdown alarm clocks in the alarm clock ringing list, for example, the alarm ringing time of the first remaining shutdown alarm clock is behind the shutdown alarm clock time of the target shutdown alarm clock, and the alarm ringing time of the first remaining shutdown alarm clock is closest to the shutdown alarm clock time of the target shutdown alarm clock. The alarm ringing time of the second remaining shutdown alarm clock is after the shutdown alarm clock time of the first remaining shutdown alarm clock, and the alarm ringing time of the second remaining shutdown alarm clock is closest to the shutdown alarm clock time of the first remaining shutdown alarm clock, and so on.
After the alarm clock ringing operation of the target shutdown alarm clock is completed, the electronic equipment continues to acquire the current network time in real time through the radio frequency module, and matches the current network time with the alarm clock ringing list so as to compare the shutdown alarm clock time of the rest shutdown alarm clocks with the current network time. If the current network time reaches the alarm ringing time of the residual shutdown alarm clock with the corresponding number according to the alarm ringing list, the electronic equipment is controlled to alarm according to the alarm ringing time of the residual shutdown alarm clock with the corresponding number until all alarm clocks (including the target shutdown alarm clock and the residual shutdown alarm clock) in the alarm ringing list complete time matching and alarm ringing operations.
The electronic equipment updates the stored time of the shutdown alarm clock, compares the stored time of the shutdown alarm clock with the current network time, and reserves all the shutdown alarm clocks under the setting requirements of the shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, and the problem that the plurality of shutdown alarm clocks are not conflicted in use is solved.
Based on the foregoing embodiments, the processing module includes:
the input unit is used for acquiring the input shutdown alarm clock time and the identification information;
the obtaining unit is used for obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the packet name and the shutdown alarm clock time if the identification information is the packet name of the application program;
the obtaining unit is further configured to obtain a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identifier and the shutdown alarm clock time if the identifier information is the unique identifier of the electronic device.
Specifically, the electronic device may acquire a voice signal of the user through the microphone or the microphone array, and perform voice recognition processing on the voice signal to obtain corresponding shutdown alarm clock time and identification information. Of course, the user may also manually input and acquire the shutdown alarm clock time and the identification information on the human-computer interaction screen of the electronic device.
The type of the identification information comprises a package name of the application program and a unique identification of the electronic equipment. The unique identification of the electronic device includes a device serial number, a MAC address, etc. of the electronic device. After the electronic equipment sets the identification information of the alarm clock in the above mode, if the identification information is the package name of the application program, the electronic equipment generates a shutdown alarm clock setting instruction for the application program according to the package name and the shutdown alarm clock time. And if the identification information is the unique identification of the electronic equipment, the electronic equipment generates a shutdown alarm clock setting instruction for an operating system of the electronic equipment according to the unique identification and the shutdown alarm clock time.
The electronic equipment updates the stored shutdown alarm clock time, compares the stored shutdown alarm clock time with the current network time, and reserves all shutdown alarm clocks under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, a plurality of applications can be supported to set the shutdown alarm clocks simultaneously, an operating system and the plurality of applications can be supported to set the shutdown alarm clocks simultaneously, the problem that the shutdown alarm clocks used by the plurality of applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are richer and more perfect.
Based on the foregoing embodiment, further comprising:
the role judging module is used for acquiring the user identity information for setting the alarm clock and analyzing the user identity information to obtain the identity type of the user;
the processing module is further used for updating and storing the shutdown alarm clock time of the electronic equipment according to all the obtained shutdown alarm clock setting instructions and the user identity information if the identity type is the owner role;
and the processing module is also used for updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction and user identity information input by a visitor if the identity type is the visitor role.
Specifically, the electronic device can acquire a voice signal of a user through the microphone or the microphone array, extract a voiceprint feature to be recognized from the voice signal, compare the voiceprint feature to be recognized with a preset voiceprint feature, and if the similarity reaches a preset threshold, obtain user identity information for setting the alarm clock according to an identity ID associated with the preset voiceprint feature. Certainly, the user can also input the fingerprint to be recognized on the fingerprint collector of the electronic device, the fingerprint to be recognized is compared with the preset fingerprint, and if the similarity reaches the preset threshold, the user identity information for setting the alarm clock is obtained according to the identity ID associated with the preset fingerprint. Other user identity information acquisition modes, such as iris, human face characteristics, etc., are within the scope of the present invention.
After the electronic equipment acquires the user identity information in the mode, whether the identity type of the user setting the alarm clock is the owner or the visitor is judged. The process of judging the identity type comprises the following steps: after the electronic equipment leaves the factory and uses, need establish owner user account, when establishing owner user account, can enter user's identity information as owner identity information, then, the user is when using electronic equipment to establish or set up the alarm clock, acquire the user identity information of treating discernment through above-mentioned mode, compare user identity information and owner identity information, if the user identity type that the unanimous explanation set up the alarm clock is owner's role, if the user identity type that inconsistent explanation set up the alarm clock is visitor's role.
Once the user identity type for setting the alarm clock is judged to be the owner role, all the shutdown alarm clock setting instructions existing at the alarm clock updating time are obtained according to the embodiment, the shutdown alarm clock setting instructions come from the owner and the visitor, then the electronic equipment updates and stores the shutdown alarm clock time of the electronic equipment according to all the shutdown alarm clock setting instructions, and the updated and stored shutdown alarm clock time is bound with the user identity information.
Once the user identity type for setting the alarm clock is judged to be the role of the visitor, all the shutdown alarm clock setting instructions which are already existed at the time of updating the alarm clock and are input by the visitor are obtained according to the embodiment. Because the user acquires the user identity information in the above way when the user uses the electronic device to create or set the alarm clock, the electronic device can distinguish whether the shutdown alarm clock setting instruction is input by the owner or the visitor, and thus, the electronic device updates and stores the shutdown alarm clock time of the electronic device according to all the shutdown alarm clock setting instructions input by the visitor and binds the updated and stored shutdown alarm clock time with the user identity information.
The electronic equipment updates the stored shutdown alarm clock time, compares the stored shutdown alarm clock time with the current network time, and reserves all shutdown alarm clocks under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, a plurality of applications can be supported to set the shutdown alarm clocks simultaneously, an operating system and the plurality of applications can be supported to set the shutdown alarm clocks simultaneously, the problem that the shutdown alarm clocks used by the plurality of applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are richer and more perfect.
According to the method and the device, the time of the alarm clock is updated and stored by adopting the shutdown alarm clock setting instructions from different identity types according to the identity types of the users for setting the alarm clock, so that the time of the alarm clock is updated and stored by using the shutdown alarm clock setting instructions from all identity types (including owners and visitors) in the on-machine main mode. In addition, only use the shutdown alarm clock setting instruction of visitor source to carry out the update of shutdown alarm clock time and store under visitor's mode, avoid the alarm ring bell time of owner to reveal, also avoid the illegal son who pretends the visitor according to the alarm ring bell time of the owner who reveals for the illegal son can't calculate and estimate out the life work and rest law of owner, reaches the purpose that protection owner life work and rest law, work and rest time do not reveal.
Based on the foregoing embodiment, the processing module further includes:
the extraction unit is used for extracting the shutdown alarm clock setting information and the corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
an alarm clock adding unit, configured to add a new shutdown alarm clock time corresponding to the identification information if the setting type is an alarm clock adding type;
the alarm clock modification unit is used for finding out the corresponding shutdown alarm clock time according to the identification information and modifying the found shutdown alarm clock time into a new shutdown alarm clock time if the setting type is a time change type;
and the alarm clock canceling unit is used for searching and deleting the corresponding shutdown alarm clock time according to the identification information if the setting type is the alarm clock canceling type.
Specifically, the electronic device analyzes the shutdown alarm clock setting instruction to obtain shutdown alarm clock setting information and corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm setting information includes a setting type and a shutdown alarm time. If the setting type is an alarm clock adding type, the electronic equipment can additionally add shutdown alarm clock time corresponding to the identification information. If the setting type is the time change type, the electronic equipment can find out the corresponding original shutdown alarm clock time according to the identification information, and the original shutdown alarm clock time is modified and replaced by the new shutdown alarm clock time. If the setting type is an alarm clock canceling type, the electronic equipment searches and deletes the corresponding shutdown alarm clock time according to the identification information.
According to the electronic equipment, after the shutdown alarm clock is added, modified and cancelled, the stored shutdown alarm clock time is updated, the stored shutdown alarm clock time is compared with the current network time, all the shutdown alarm clocks are reserved under the setting requirements of a plurality of shutdown alarm clocks, so that all the shutdown alarm clocks can sound normally respectively, the shutdown alarm clocks are set simultaneously by multiple applications, the shutdown alarm clocks are set simultaneously by an operating system and the multiple applications, the problem that the shutdown alarm clocks used by the multiple applications and the operating system simultaneously are not conflicted is solved, and the alarm clock functions of the electronic equipment are more enriched and complete.
Based on the foregoing embodiments, the control module includes:
the writing unit is used for writing the target shutdown alarm clock into a real-time clock register;
the first trigger control unit is used for triggering the electronic equipment to start through the real-time clock register and then controlling the alarm clock to sound when the set time of the target shutdown alarm clock is reached in a shutdown state;
and the second trigger control unit is used for triggering and controlling the alarm clock to sound through a timer in the electronic equipment when the set time of the target shutdown alarm clock is reached in the startup state.
Specifically, an RTC (Real-Time Clock) module is disposed inside a chip of the electronic device, and the RTC module includes a plurality of RTC registers (i.e., Real-Time Clock registers) for mainly providing Time, calendar and alarm Clock outputs. The RTC module also has a programmable counter that can be used to count the time the user sets the shutdown alarm clock. If the shutdown alarm clock time set by the user is matched with the current network time, the RTC register generates an alarm clock interrupt signal, so that the electronic equipment is enabled to be started forcibly. In this embodiment, when the electronic device is in the power-off state, when the power-off alarm clock time is the same as the current network time, the enable power-on interrupt signal sent by the RTC register is monitored to trigger the power-on start of the electronic device, and the real-time clock register triggers the start of the electronic device and controls the alarm clock to sound. Certainly, if the electronic device is in the on state, when the off alarm clock time is the same as the current network time, the timer in the electronic device triggers and controls the alarm clock to sound.
When the electronic equipment is in a power-off state, the invention triggers the electronic equipment to be powered on and starts the alarm clock ringing process through the startup enabling interrupt signal sent by the RTC register in the chip of the electronic equipment, thereby realizing the shutdown alarm clock. The embodiment optimizes the response speed of the shutdown alarm, and places the interface of the alarm prompt into the system kernel, thereby greatly shortening the response time of the shutdown alarm.
The time of the alarm clock for turning off is written into the RTC register before the electronic equipment is turned off, so that the RTC register can generate an alarm clock interrupt signal according to the time of the alarm clock for turning off to realize the alarm clock for turning off after the electronic equipment is turned off. Meanwhile, the RTC module is powered by a battery, so that the time in the RTC register cannot be lost after the electronic equipment is powered down, and the safety and stability of the time for turning off the alarm can be ensured.
According to the invention, after the electronic equipment is powered off, the current network time is obtained by opening the radio frequency channel and is compared with the set time, when the network time reaches the set time, the alarm prompting is completed, and the alarm prompting function in the power-off mode is realized.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of program modules is illustrated, and in practical applications, the above-described distribution of functions may be performed by different program modules, that is, the internal structure of the apparatus may be divided into different program units or modules to perform all or part of the above-described functions. Each program module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one processing unit, and the integrated unit may be implemented in a form of hardware, or may be implemented in a form of software program unit. In addition, the specific names of the program modules are only used for distinguishing the program modules from one another, and are not used for limiting the protection scope of the application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or recited in detail in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/electronic device and method may be implemented in other ways. For example, the above-described apparatus/electronic device embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A management method for closing terminal application is characterized by comprising the following steps:
acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
finding out the time of the shutdown alarm clock closest to the updating time of the alarm clock from all the stored time of the shutdown alarm clock as the set time of the target shutdown alarm clock;
when the set time of the target shutdown alarm clock is reached, controlling the electronic equipment to sound the alarm clock;
and respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
2. The management method for closing the terminal application according to claim 1, wherein the step of obtaining the shutdown alarm setting instruction comprises the steps of:
acquiring input shutdown alarm clock time and identification information;
if the identification information is the package name of the application program, obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the package name and the shutdown alarm clock time;
and if the identification information is the unique identification of the electronic equipment, obtaining a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identification and the shutdown alarm clock time.
3. The management method for closing the terminal application according to claim 1, further comprising the steps of:
acquiring user identity information for setting an alarm clock, and analyzing according to the user identity information to obtain the identity type of a user;
if the identity type is the owner role, updating and storing the shutdown alarm clock time of the electronic equipment according to all the acquired shutdown alarm clock setting instructions, and binding the updated and stored shutdown alarm clock time with the user identity information;
if the identity type is the role of the visitor, updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction input by the visitor, and binding the updated and stored shutdown alarm clock time with the user identity information.
4. The method for managing the closing of a terminal application according to claim 1, wherein said updating the time of the stored shutdown alarm clock of the electronic device comprises the steps of:
extracting shutdown alarm clock setting information and corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
if the setting type is an alarm clock adding type, newly adding the time of the alarm clock for turning off corresponding to the identification information;
if the setting type is a time change type, finding out the corresponding shutdown alarm clock time according to the identification information, and modifying the found shutdown alarm clock time into a new shutdown alarm clock time;
and if the setting type is an alarm clock canceling type, searching and deleting corresponding alarm clock shutdown time according to the identification information.
5. The management method for closing the terminal application according to any one of claims 1 to 4, wherein the step of controlling the electronic device to perform alarm clock ringing when the set time of the target shutdown alarm clock is reached comprises the steps of:
writing the target shutdown alarm clock into a real-time clock register;
when the set time of a target shutdown alarm clock is reached in a shutdown state, triggering the electronic equipment to be started through the real-time clock register and then controlling the alarm clock to sound;
and when the set time of the target shutdown alarm clock is reached in the power-on state, triggering and controlling the alarm clock to sound through a timer in the electronic equipment.
6. An electronic device, comprising:
the processing module is used for acquiring a power-off alarm clock setting instruction and updating and storing the power-off alarm clock time of the electronic equipment;
the setting module is used for finding out the power-off alarm clock time closest to the alarm clock updating time from all the stored power-off alarm clock times as the set time of the target power-off alarm clock;
the control module is used for controlling the electronic equipment to sound an alarm clock when the set time of the target shutdown alarm clock is reached;
and the control module is also used for respectively controlling the electronic equipment to sound an alarm clock when the time of the shutdown alarm clock after the target shutdown alarm clock is reached in sequence.
7. The electronic device of claim 6, wherein the processing module comprises:
the input unit is used for acquiring the input shutdown alarm clock time and the identification information;
the obtaining unit is used for obtaining a shutdown alarm clock setting instruction corresponding to the application program according to the packet name and the shutdown alarm clock time if the identification information is the packet name of the application program;
the obtaining unit is further configured to obtain a shutdown alarm clock setting instruction corresponding to the operating system according to the unique identifier and the shutdown alarm clock time if the identifier information is the unique identifier of the electronic device.
8. The electronic device of claim 6, further comprising:
the identity judgment module is used for acquiring user identity information for setting an alarm clock and analyzing the user identity information to obtain the identity type of the user;
the processing module is further configured to update and store the shutdown alarm clock time of the electronic device according to all the obtained shutdown alarm clock setting instructions and bind the updated and stored shutdown alarm clock time with the user identity information if the identity type is the owner role;
and the processing module is also used for updating and storing the shutdown alarm clock time of the electronic equipment according to a shutdown alarm clock setting instruction input by the visitor if the identity type is the visitor role, and binding the updated and stored shutdown alarm clock time with the user identity information.
9. The electronic device of claim 6, wherein the processing module further comprises:
the extraction unit is used for extracting the shutdown alarm clock setting information and the corresponding identification information in the shutdown alarm clock setting instruction; the shutdown alarm clock setting information comprises a setting type and shutdown alarm clock time;
an alarm clock adding unit, configured to add a new shutdown alarm clock time corresponding to the identification information if the setting type is an alarm clock adding type;
the alarm clock modification unit is used for finding out the corresponding shutdown alarm clock time according to the identification information and modifying the found shutdown alarm clock time into a new shutdown alarm clock time if the setting type is a time change type;
and the alarm clock canceling unit is used for searching and deleting the corresponding shutdown alarm clock time according to the identification information if the setting type is the alarm clock canceling type.
10. The electronic device of any of claims 6-9, wherein the control module comprises:
the writing unit is used for writing the target shutdown alarm clock into a real-time clock register;
the first trigger control unit is used for triggering the electronic equipment to start through the real-time clock register and then controlling the alarm clock to sound when the set time of the target shutdown alarm clock is reached in a shutdown state;
and the second trigger control unit is used for triggering and controlling the alarm clock to sound through a timer in the electronic equipment when the set time of the target shutdown alarm clock is reached in the startup state.
CN202110744842.8A 2021-06-30 2021-06-30 Management method for closing terminal application and electronic equipment Pending CN113472946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744842.8A CN113472946A (en) 2021-06-30 2021-06-30 Management method for closing terminal application and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744842.8A CN113472946A (en) 2021-06-30 2021-06-30 Management method for closing terminal application and electronic equipment

Publications (1)

Publication Number Publication Date
CN113472946A true CN113472946A (en) 2021-10-01

Family

ID=77878275

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744842.8A Pending CN113472946A (en) 2021-06-30 2021-06-30 Management method for closing terminal application and electronic equipment

Country Status (1)

Country Link
CN (1) CN113472946A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749887A (en) * 2004-09-13 2006-03-22 华为技术有限公司 Method for realizing multipoint alarm clock in electronic equipment
CN103974204A (en) * 2014-05-28 2014-08-06 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for forming social alarm clock with same
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN108063855A (en) * 2017-12-27 2018-05-22 上海传英信息技术有限公司 The test method and test lead of shutdown alarm clock

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1749887A (en) * 2004-09-13 2006-03-22 华为技术有限公司 Method for realizing multipoint alarm clock in electronic equipment
CN103974204A (en) * 2014-05-28 2014-08-06 深圳市中兴移动通信有限公司 Mobile terminal as well as method and device for forming social alarm clock with same
CN104821990A (en) * 2015-04-29 2015-08-05 努比亚技术有限公司 Intelligent terminal power-off alarm clock realization method and intelligent terminal
CN108063855A (en) * 2017-12-27 2018-05-22 上海传英信息技术有限公司 The test method and test lead of shutdown alarm clock

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张文德等编写: "《现代信息检索》", 31 May 2012, 福州:福建科学技术出版社 *

Similar Documents

Publication Publication Date Title
CN102779509B (en) Voice processing equipment and voice processing method
CN108320744B (en) Voice processing method and device, electronic equipment and computer readable storage medium
CN108462697B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110235087B (en) Method and terminal for realizing voice control
CN104951335B (en) The processing method and processing device of application program installation kit
CN111373348B (en) Application switching method and terminal
KR20160001965A (en) Providing Method For Voice Command and Electronic Device supporting the same
US20190318340A1 (en) Mobile payment method and apparatus
CN106293751A (en) A kind of method showing information on the terminal device and terminal unit
CN105843681B (en) Mobile terminal and operating system switching method thereof
US20150156300A1 (en) Method for filtering spam in electronic device and the electronic device
CN108353099B (en) PPG authentication method and equipment
CN103077341A (en) Application program unlocking method and device
US9977924B2 (en) Method and device for providing notification indicating loss of terminal
CN107844341B (en) Process starting control method and device, storage medium and mobile terminal
CN104320774A (en) Updating method, device and facility
CN113778537B (en) System mode switching method and device
CN105681549B (en) Export the method and device of prompt information
CN107371144B (en) Method and device for intelligently sending information
CN114415530A (en) Control method, control device, electronic equipment and storage medium
CN108769366B (en) Authority management method, device, mobile terminal and storage medium
US10244367B2 (en) Short message identification method and device, and storage medium
CN111862965A (en) Awakening processing method and device, intelligent sound box and electronic equipment
CN109076126B (en) Permission updating method and terminal equipment
CN113472946A (en) Management method for closing terminal application and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20211001

RJ01 Rejection of invention patent application after publication