CN115617475A - Method and device for setting circulating alarm clock, electronic equipment and storage medium - Google Patents

Method and device for setting circulating alarm clock, electronic equipment and storage medium Download PDF

Info

Publication number
CN115617475A
CN115617475A CN202211190093.XA CN202211190093A CN115617475A CN 115617475 A CN115617475 A CN 115617475A CN 202211190093 A CN202211190093 A CN 202211190093A CN 115617475 A CN115617475 A CN 115617475A
Authority
CN
China
Prior art keywords
alarm clock
target
reminding
time
setting
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
CN202211190093.XA
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.)
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd
Original Assignee
Haier Smart Home Co Ltd
Qingdao Economic and Technological Development Zone Haier Water Heater 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 Haier Smart Home Co Ltd, Qingdao Economic and Technological Development Zone Haier Water Heater Co Ltd filed Critical Haier Smart Home Co Ltd
Priority to CN202211190093.XA priority Critical patent/CN115617475A/en
Publication of CN115617475A publication Critical patent/CN115617475A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/485Task life-cycle, e.g. stopping, restarting, resuming execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/109Time management, e.g. calendars, reminders, meetings or time accounting
    • 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)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Electric Clocks (AREA)

Abstract

The invention discloses a method and a device for setting a circulating alarm clock, electronic equipment and a storage medium, wherein the method comprises the following steps: acquiring target reminding time set for a target alarm clock; when the current time is the target reminding time, carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock; inquiring an alarm clock list according to the identification information to determine the running mode of the target alarm clock; and when the running mode is the circulating running mode, setting a target alarm clock in the next period. According to the invention, after the alarm clock reminding is carried out at the target reminding time, the running mode of the target alarm clock is determined to be the cyclic running according to the received broadcast information, and the disposable target alarm clock with the reminding time as the target reminding time is arranged in each period, so that the purpose of carrying out the alarm clock reminding of the cyclic alarm clock at the target reminding time more accurately is realized, and the accuracy of executing the cyclic alarm clock at the target reminding time is further improved.

Description

Method and device for setting circulating alarm clock, electronic equipment and storage medium
Technical Field
The invention relates to the technical field of electronics, in particular to a method and a device for setting a circulating alarm clock, electronic equipment and a storage medium.
Background
The alarm manager (alarmmmanager) is a system-level reminder service in the android system.
Currently, a cycle alarm clock is set by calling a timing task setting method in an Application Programming Interface (Application Programming Interface) related to the alarmmmanager opened by the android system.
However, since the timed task mechanisms after the API19 are all delivered inaccurately, the operating system will delay the mechanism wake-up time of the timed task in order to save power. Namely, a cycle alarm clock is set through a timed task setting method, the cycle alarm clock can be delayed from several minutes to more than ten minutes to be executed, and cannot be executed at a specified time.
Disclosure of Invention
The invention provides a method and a device for setting a circulating alarm clock, electronic equipment and a storage medium, which are used for solving the problem that the circulating alarm clock cannot be executed on time at a target reminding time, avoiding the inconvenience brought to a user by delaying the alarm clock reminding of the circulating alarm clock, achieving the purpose of more accurately carrying out the alarm clock reminding of the circulating alarm clock at the target reminding time and further improving the accuracy of executing the circulating alarm clock at the target reminding time.
According to an aspect of the present invention, there is provided a method for setting a recurring alarm clock, the method being applied to an electronic device, the method including:
acquiring target reminding time set for a target alarm clock;
when the current time is the target reminding time, carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock;
inquiring an alarm clock list according to the identification information to determine the operation mode of the target alarm clock;
and when the running mode is the circulating running, setting one target alarm clock in the next period.
According to another aspect of the present invention, there is provided a cycle alarm setting apparatus applied to an electronic device, the apparatus including:
the time acquisition module is used for acquiring target reminding time set for the target alarm clock;
the alarm clock reminding module is used for carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock when the current time is the target reminding time, wherein the broadcast information comprises identification information of the target alarm clock;
the mode determining module is used for inquiring an alarm clock list according to the identification information so as to determine the running mode of the target alarm clock;
and the alarm clock setting module is used for setting one target alarm clock in the next period when the running mode is the circulating running mode.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method of setting a recurring alarm clock according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the method of setting a recurring alarm clock according to any of the embodiments of the present invention when executed.
According to the technical scheme, the target reminding time set for the target alarm clock is obtained; when the current time is the target reminding time, carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock; inquiring an alarm clock list according to the identification information to determine the running mode of the target alarm clock; when the operation mode is in circulating operation, a target alarm clock is set in the next period, namely after the alarm clock is reminded at the target reminding time, the operation mode of the target alarm clock is determined to be in circulating operation according to received broadcast information, the advantage that the alarm clock can be reminded at the target reminding time on time is utilized by the disposable alarm clock, the disposable target alarm clock with the reminding time as the target reminding time is set in each period, the purpose of reminding the alarm clock of the circulating alarm clock at the target reminding time more accurately is achieved, the accuracy of executing the circulating alarm clock at the target reminding time is further improved, the problem that the circulating alarm clock cannot be executed at the target reminding time on time is solved, the condition that the alarm clock reminding of the circulating alarm clock is delayed to bring inconvenience to a user is avoided, and meanwhile, a method for setting the circulating alarm clock more accurately and rapidly is provided for the user.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for setting a cyclic alarm clock according to an embodiment of the present invention;
fig. 2 is another schematic flow chart of a method for setting a cyclical alarm clock according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a method for setting a cycle alarm clock according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a cyclic alarm setting apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, in the description and claims of the present invention and the above-described drawings, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a schematic flow chart of a method for setting a cycle alarm clock according to an embodiment of the present invention, where the embodiment is applicable to a case where a clothes drying device is used to dry clothes, the method may be implemented by a cycle alarm clock setting device, the cycle alarm clock setting device may be implemented in a hardware and/or software form, the cycle alarm clock setting device may be configured in an electronic device, and the electronic device may be a mobile phone, a computer, or the like. As shown in fig. 1, the method may specifically include the following steps:
s101, acquiring target reminding time set for a target alarm clock.
The target alarm clock can be understood as an alarm clock determined by traversing an alarm clock list, and the target alarm clock can be a cycle alarm clock or a disposable alarm clock; the target reminding time can be understood as the reminding time set by the target alarm clock.
In an alternative embodiment, the alarm list may be traversed at a specified time to determine the target alarm, and/or upon a reboot of the electronic device, the alarm list may be traversed to determine the target alarm. Wherein, the specified time may be a preset traversal time.
For example, if an alarm clock a exists in the alarm clock list, the set reminding time for the target alarm clock a is T, the specified time is T, the alarm clock list can be traversed at the specified time T, it is determined that the alarm clock a exists in the alarm clock list, it can be determined that the alarm clock a is the target alarm clock, and the reminding time T of the alarm clock a is determined as the target reminding time.
S102, when the current time is the target reminding time, carrying out alarm clock reminding and obtaining broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock.
The identification information of the target alarm clock can be understood as the mark information of the target alarm clock.
In an optional implementation manner, when the current time is the same as the target reminding time, alarm clock reminding can be performed. The alarm clock reminding mode can comprise a sound reminding mode and/or a vibration reminding mode.
When the current time is the target reminding time, carrying out alarm clock reminding; when the alarm clock is reminded, the system broadcast can be triggered, and then the broadcast information of the system broadcast can be received after the system broadcast, so that the identification information of the target alarm clock can be acquired after the alarm clock is reminded to trigger the system broadcast.
For example, if the current time is T, the target reminding time of the target alarm clock a is T, the designated time is T, and after the target reminding time T of the target alarm clock a is obtained at the designated time, it can be determined that the current time T is the same as the target reminding time T, and vibration reminding is performed; and after the vibration reminding triggers the system broadcast, acquiring the identification information S of the target alarm clock A broadcasted by the system broadcast.
S103, inquiring the alarm clock list according to the identification information to determine the running mode of the target alarm clock.
The operation mode may include a circulation operation and a one-time operation, among others.
In an optional implementation manner, the alarm clock list may be queried according to the identification information of the target alarm clock included in the broadcast information, a running mode of the identification information of the target alarm clock in the alarm clock list is determined, and then the running mode of the alarm clock list corresponding to the identification information of the target alarm clock is determined as the running mode of the target alarm clock.
For example, if the identification information of the target alarm clock a included in the broadcast information is S, and the operation mode corresponding to S is cycle operation, the alarm clock list may be queried according to the identification information of the target alarm clock, the operation mode corresponding to the identification information S of the target alarm clock in the alarm clock list is determined as cycle operation, and then the operation mode (cycle operation) corresponding to the identification information of the target alarm clock in the alarm clock list is determined as the operation mode of the target alarm clock.
And S104, setting a target alarm clock in the next period when the running mode is the circulating running mode.
Wherein the next period can be understood as the time period between the current time and the next alarm clock reminding time of the target alarm clock.
In an optional implementation manner, if the operation mode is the cycle operation, it indicates that the target alarm clock is a cycle alarm clock, and alarm clock reminding needs to be performed cyclically. Therefore, if the operation mode is in the cycle operation mode, a target alarm clock needs to be set again in the next period, so that alarm clock reminding is performed again in the next period according to the target reminding time of the target alarm clock, the purpose that the target alarm clock circularly performs alarm clock reminding at the target reminding time is achieved, and the setting of the cycle alarm clock is completed.
Illustratively, if the cycle period sequence of the target alarm clock a is: monday, tuesday and Wednesday, the current period of alarm clock reminding at the current time is Tuesday, the next period is Tuesday, the target reminding time of the target alarm clock A is T, the running mode of the target alarm clock A is circulating running, after alarm clock reminding at the current time is carried out, the target alarm clock is set at Tuesday again, so that alarm clock reminding is carried out at Tuesday again according to the target reminding time T of the target alarm clock A, the purpose of alarm clock reminding at the target reminding time T circularly by the target alarm clock A is realized, and the setting of the circulating alarm clock A is completed.
In the embodiment, after the alarm clock is reminded at the target reminding time, the running mode of the target alarm clock is determined to be in the circulating running mode according to the received broadcast information, the advantage that the alarm clock can be reminded at the target reminding time on time is utilized, the disposable target alarm clock with the reminding time as the target reminding time is set at each period, the purpose of alarm clock reminding of the circulating alarm clock at the target reminding time more accurately is achieved, the accuracy rate of executing the circulating alarm clock at the target reminding time is further improved, the condition that inconvenience is brought to a user due to the fact that the alarm clock reminding of the circulating alarm clock is delayed is avoided, and meanwhile, a method for setting the circulating alarm clock more accurately and quickly is provided for the user.
Fig. 2 is another schematic flow chart of a method for setting a recurring alarm clock according to an embodiment of the present invention, and a specific method may be as shown in fig. 2, where the method may include the following steps:
s201, traversing the alarm clock list at a specified time to determine a target alarm clock.
The alarm clock list can be traversed more accurately at the designated time by monitoring at the designated time through the timer.
S202, acquiring target reminding time set for the target alarm clock.
S203, determining whether the current time is the target reminding time, and if the current time is not the target reminding time, executing the step S201; if the current time is the target reminding time, step S204 is executed.
In an optional implementation manner, if the current time is not the target reminding time, the alarm clock list may be traversed again at the specified time to determine the target alarm clock, the target reminding time set for the target alarm clock is obtained, and until the current time is determined to be the target reminding time, the operation of traversing the alarm clock list at the specified time to determine the target alarm clock is stopped.
And S204, acquiring a reminding mode, and carrying out alarm clock reminding according to the reminding mode.
In the embodiment, the reminding mode is obtained, alarm clock reminding is carried out according to the reminding mode, the condition that inconvenience is brought to a user due to alarm clock reminding according to a non-set reminding mode can be avoided, and a more intelligent alarm clock reminding mode is provided for the user.
S205, acquiring broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock.
And S206, inquiring the alarm clock list according to the identification information to determine the running mode of the target alarm clock.
In this embodiment, since the identification information of the target alarm clock included in the broadcast information triggered by the target alarm clock is unique, the alarm clock list is queried according to the identification information to determine the operation mode of the target alarm clock, so that the accuracy of determining the operation mode of the target alarm clock can be improved, and the accuracy of the method for setting the cyclic alarm clock can be further improved.
S207, determining whether the operation mode is the circulation operation, and if the operation mode is not the circulation operation, executing the step S208; if the operation mode is the loop operation, step S209 is executed.
S208, deleting the target alarm clock from the alarm clock list, or setting the target alarm clock in the alarm clock list to be in a closed state.
In an optional implementation manner, if the operation mode is not the cycle operation, which indicates that the target alarm clock is the disposable alarm clock, after the alarm clock is reminded according to the reminding mode of the target alarm clock, the target alarm clock can be found in the alarm clock list according to the identification information of the target alarm clock, and then the target alarm clock is deleted from the alarm clock list, so as to complete the setting of the disposable alarm clock.
In an optional implementation manner, if the operation mode is not the cycle operation, after the alarm clock reminding is performed according to the reminding mode of the target alarm clock, the target alarm clock can be found in the alarm clock list according to the identification information of the target alarm clock, and then the target alarm clock in the alarm clock list is set to be in the off state, so that the target alarm clock does not perform alarm clock reminding any more, and the setting of the disposable alarm clock is completed.
In the embodiment, when the operation mode is one-time operation, the target alarm clock is deleted from the alarm clock list, or the target alarm clock in the alarm clock list is set to be in a closed state, so that the target alarm clock can be quickly and accurately set to be the one-time alarm clock, and inconvenience brought to a user due to the fact that the one-time alarm clock repeatedly carries out alarm clock reminding is avoided; meanwhile, when the operation mode is one-time operation, if the user may reuse the one-time alarm clock with the operation mode of one-time operation later, the target alarm clock in the alarm clock list can be set to be in a closed state; if the user cannot use the disposable alarm clock with the one-time operation mode, the target alarm clock can be deleted from the alarm clock list, and a more flexible setting method of the disposable alarm clock is provided for the user.
And S209, setting a target alarm clock in the next period.
In an optional implementation manner, when the operation mode is a cycle operation, it is described that the target alarm clock is a cycle alarm clock, if an operation of deleting the target alarm clock from the alarm clock list is performed in step S208, a target alarm clock is set in the next period, and the target alarm clock can be added into the alarm clock list in the next period, so that the target alarm clock performs alarm clock reminding at the target reminding time in the next period, so as to complete setting of the cycle alarm clock.
If the operation of setting the target alarm clock in the alarm clock list to the off state is performed in step S208, a target alarm clock is set in the next period, and the target alarm clock can be set to the on state in the alarm clock list in the next period, so that the target alarm clock performs alarm clock reminding at the target reminding time in the next period, and the setting of the cyclic alarm clock is completed.
In this embodiment, the operation mode is one-time operation, if the target alarm clock is deleted from the alarm clock list, a target alarm clock is set in the next period, and the target alarm clock can be added to the alarm clock list in the next period; the operation mode is the disposable operation, if set up the target alarm clock in the alarm clock list to off-state, then set up a target alarm clock in next cycle, can set up the target alarm clock to the enabling state in the alarm clock list in next cycle, can set up the setting mode of disposable alarm clock like this, adopt corresponding setting mode to set up the circulation alarm clock, realize more fast, accurately set up the target alarm clock into the circulation alarm clock, solve and can not remind the problem that the punctual execution of time circulation alarm clock is in order to carry out the alarm clock and remind at the target, improve the rate of accuracy of setting up the circulation alarm clock.
In the embodiment, after the alarm clock is reminded at the target reminding time, the running mode of the target alarm clock is determined to be in the circulating running mode according to the received broadcast information, the advantage that the disposable alarm clock can be used for carrying out alarm clock reminding at the target reminding time is utilized, the disposable target alarm clock with the reminding time as the target reminding time is set in each period, the purpose of carrying out alarm clock reminding of the circulating alarm clock at the target reminding time more accurately is achieved, the accuracy rate of executing the circulating alarm clock at the target reminding time is further improved, the inconvenience brought to a user by delaying alarm clock reminding of the circulating alarm clock is avoided, and meanwhile, a method for setting the circulating alarm clock more accurately and quickly is provided for the user.
In the following, a specific example is further described to describe the setting method of the cyclic alarm clock provided by the present invention, as shown in fig. 3, the alarm clock period and the target reminding time of the target alarm clock may be preset, and then the alarm clock period and the target reminding time of the target alarm clock are stored in an alarm clock list. After storing the alarm clock period and the target reminding time of the target alarm clock in the alarm clock list, assuming that the specified time is 00 o' clock of the day, monitoring the specified time 00 through a timer, and when monitoring the specified time 00, traversing the alarm clock list at the specified time 00.
If there is no alarm clock in the current day, repeating the traversing through the alarm clock list at the specified time 00 to determine whether there is an alarm clock in the current day until it is determined that there is an alarm clock in the current day.
If there is an alarm clock in the day, as shown in fig. 3, determining that the alarm clock is a target alarm clock, and setting the target alarm clock as a disposable alarm clock in the day; when the current time is the target reminding time of the target alarm clock, carrying out alarm clock reminding, receiving broadcast information broadcasted by the system, determining whether the running mode of the target alarm clock is in circulating running or not according to the broadcast information, if the running mode of the target alarm clock is in circulating running, the circulating period of the target alarm clock is 1 day, traversing the alarm clock list again at 00 points after 1 day to determine that the alarm clock exists on the day after 1 day, determining that the alarm clock is the target alarm clock, and setting the target alarm clock; and when the current time of the day 1 day later is the target reminding time of the target alarm clock, carrying out alarm clock reminding. The alarm clock is set to be the target reminding time, so that the disposable alarm clock can be executed at the target reminding time on time, the condition that inconvenience is brought to a user when the alarm clock is delayed to be executed for alarm clock reminding is avoided, the disposable alarm clock with the reminding time set to be the target reminding time in each period is adopted for alarm clock reminding, the disposable circulating alarm clock can be executed at the target reminding time on time, the purpose of executing the circulating alarm clock on time is achieved, and the alarm clock reminding accuracy of the circulating alarm clock is improved.
If the operation mode of the target alarm clock is one-time operation, as shown in fig. 3, the target alarm clock may be deleted from the alarm clock list, or the target alarm clock in the alarm clock list may be set to an off state, so as to complete the setting of the one-time alarm clock.
In the embodiment, after the alarm clock is reminded at the target reminding time, the running mode of the target alarm clock is determined to be in the circulating running mode according to the received broadcast information, the advantage that the disposable alarm clock can be used for carrying out alarm clock reminding at the target reminding time is utilized, the disposable target alarm clock with the reminding time as the target reminding time is set in each period, the purpose of carrying out alarm clock reminding of the circulating alarm clock at the target reminding time more accurately is achieved, the accuracy rate of executing the circulating alarm clock at the target reminding time is further improved, the inconvenience brought to a user by delaying alarm clock reminding of the circulating alarm clock is avoided, and meanwhile, a method for setting the circulating alarm clock more accurately and quickly is provided for the user.
Fig. 4 is a schematic structural diagram of a cyclic alarm setting apparatus according to an embodiment of the present invention, which is suitable for executing the cyclic alarm setting method according to the present invention. As shown in fig. 4, the apparatus may specifically include:
a time obtaining module 401, configured to obtain a target reminding time set for a target alarm clock;
an alarm clock reminding module 402, configured to perform alarm clock reminding and obtain broadcast information triggered by the target alarm clock when the current time is the target reminding time, where the broadcast information includes identification information of the target alarm clock;
a mode determining module 403, configured to query an alarm clock list according to the identification information to determine an operation mode of the target alarm clock;
an alarm setting module 404, configured to set one target alarm in a next period when the operation mode is a loop operation.
Optionally, the apparatus further includes an alarm clock deleting module, configured to:
and when the running mode is one-time running, deleting the target alarm clock from the alarm clock list.
Optionally, the apparatus further includes an alarm clock adding module, configured to:
and adding the target alarm clock in the alarm clock list in the next period.
Optionally, the apparatus further comprises an alarm clock turning off module, configured to:
and when the running mode is one-time running, setting the target alarm clock in the alarm clock list to be in a closed state.
Optionally, the apparatus further comprises an alarm clock enabling module configured to:
setting the target alarm clock to an enabled state in the alarm clock list at a next cycle.
Optionally, the apparatus further includes a reminding mode obtaining module, configured to:
and acquiring a reminding mode, and carrying out alarm clock reminding according to the reminding mode.
Optionally, the apparatus further comprises a target alarm clock determination module, configured to:
traversing the alarm clock list at a specified time to determine the target alarm clock;
and/or traversing the alarm clock list to determine the target alarm clock when the electronic device is restarted.
The device for setting the circulating alarm clock provided by the embodiment is characterized in that after the alarm clock is reminded at the target reminding time, the running mode of the target alarm clock is determined to be in circulating running according to the received broadcast information, the advantage that the alarm clock is reminded at the target reminding time can be utilized, one-time target alarm clock with the reminding time as the target reminding time is set at each period, the purpose of more accurately reminding the alarm clock of the circulating alarm clock at the target reminding time is achieved, the accuracy of executing the circulating alarm clock at the target reminding time is improved, the inconvenience brought to a user by delaying the alarm clock reminding of the circulating alarm clock is avoided, and meanwhile, a method for more accurately and quickly setting the circulating alarm clock is provided for the user.
FIG. 5 illustrates a block diagram of a computer system 10 that may be used to implement an electronic device of an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the computer system 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the computer system 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in computer system 10 are connected to I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the computer system 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the cyclical alarm setting method.
In some embodiments, the cyclical alarm clock setting method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the computer system 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the above described method of cyclical alarm setting may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the cyclical alarm clock setting method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
The computer program for implementing the method of setting a recurring alarm clock of the invention can be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for setting a cycle alarm clock is applied to electronic equipment, and comprises the following steps:
acquiring target reminding time set for a target alarm clock;
when the current time is the target reminding time, carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock, wherein the broadcast information comprises identification information of the target alarm clock;
inquiring an alarm clock list according to the identification information to determine the running mode of the target alarm clock;
and when the running mode is the circulating running mode, setting one target alarm clock in the next period.
2. The method of claim 1, further comprising:
and when the running mode is one-time running, deleting the target alarm clock from the alarm clock list.
3. The method of claim 2, wherein said setting one of said target alarms for the next cycle comprises:
and adding the target alarm clock in the alarm clock list in the next period.
4. The method of claim 1, further comprising:
and when the running mode is one-time running, setting the target alarm clock in the alarm clock list to be in a closed state.
5. The method of claim 3, wherein setting one of the target alarms for the next cycle comprises:
setting the target alarm clock to an enabled state in the alarm clock list at a next cycle.
6. The method of claim 1, further comprising:
and acquiring a reminding mode, and carrying out alarm clock reminding according to the reminding mode.
7. The method of claim 1, further comprising, before the obtaining the target reminder time set for the target alarm clock:
traversing the alarm clock list at a specified time to determine the target alarm clock;
and/or traversing the alarm clock list to determine the target alarm clock when the electronic device is restarted.
8. A cyclic alarm clock setting apparatus, applied to an electronic device, the apparatus comprising:
the time acquisition module is used for acquiring target reminding time set for the target alarm clock;
the alarm clock reminding module is used for carrying out alarm clock reminding and acquiring broadcast information triggered by the target alarm clock when the current time is the target reminding time, wherein the broadcast information comprises identification information of the target alarm clock;
the mode determining module is used for inquiring an alarm clock list according to the identification information so as to determine the running mode of the target alarm clock;
and the alarm clock setting module is used for setting one target alarm clock in the next period when the running mode is the circulating running mode.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of setting a recurring alarm clock of any of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the method of setting a recurring alarm clock according to any of claims 1 to 7 when executed.
CN202211190093.XA 2022-09-28 2022-09-28 Method and device for setting circulating alarm clock, electronic equipment and storage medium Pending CN115617475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211190093.XA CN115617475A (en) 2022-09-28 2022-09-28 Method and device for setting circulating alarm clock, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211190093.XA CN115617475A (en) 2022-09-28 2022-09-28 Method and device for setting circulating alarm clock, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115617475A true CN115617475A (en) 2023-01-17

Family

ID=84860612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211190093.XA Pending CN115617475A (en) 2022-09-28 2022-09-28 Method and device for setting circulating alarm clock, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115617475A (en)

Similar Documents

Publication Publication Date Title
CN107291566B (en) Method and device for delaying task execution
CN104808767A (en) Terminal control method
CN111694677A (en) Message queue management method, device, terminal and computer-readable storage medium
CN112767935B (en) Awakening index monitoring method and device and electronic equipment
CN115617475A (en) Method and device for setting circulating alarm clock, electronic equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN110175450A (en) A kind of processing method of information, device and equipment
CN112883041B (en) Data updating method and device, electronic equipment and storage medium
CN115617800A (en) Data reading method and device, electronic equipment and storage medium
CN114564149A (en) Data storage method, device, equipment and storage medium
CN110865877B (en) Task request response method and device
CN114281504A (en) Task scheduling method and device, electronic equipment and computer readable medium
CN115563015B (en) Code heat statistics method, device, equipment and storage medium
EP4099319A1 (en) Wake-up index monitoring method and apparatus, and electronic device
CN116147204A (en) Water consumption reminding method and device, electronic equipment and storage medium
CN117453358A (en) Optimization method and device for offline scheduling task, electronic equipment and storage medium
CN115981171A (en) Control method, device, equipment and storage medium of electronic equipment
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and medium
CN115269081A (en) Display method, device, system, equipment and medium for popup page
CN116186176A (en) Data processing method, device, equipment and storage medium
CN114237728A (en) Control method and operating system of electronic equipment
CN117785403A (en) Heartbeat task execution device for equipment, electronic equipment and storage medium
CN115857987A (en) Configuration file updating method and device, electronic equipment and storage medium
CN117032712A (en) Pipeline compiling and constructing method and device, electronic equipment and storage medium
CN115470476A (en) Authentication renewal method and device, electronic equipment and 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