CN118210219B - Alarm clock reminding method, electronic equipment and computer readable storage medium - Google Patents
Alarm clock reminding method, electronic equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN118210219B CN118210219B CN202410629018.1A CN202410629018A CN118210219B CN 118210219 B CN118210219 B CN 118210219B CN 202410629018 A CN202410629018 A CN 202410629018A CN 118210219 B CN118210219 B CN 118210219B
- Authority
- CN
- China
- Prior art keywords
- alarm clock
- time
- reminding
- state
- moment
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 77
- 238000004590 computer program Methods 0.000 claims description 9
- 230000004044 response Effects 0.000 claims description 7
- 239000010410 layer Substances 0.000 description 52
- 238000010586 diagram Methods 0.000 description 36
- 230000006870 function Effects 0.000 description 31
- 238000004422 calculation algorithm Methods 0.000 description 26
- 238000007726 management method Methods 0.000 description 24
- 238000004891 communication Methods 0.000 description 17
- 230000008569 process Effects 0.000 description 16
- 230000036541 health Effects 0.000 description 10
- 238000012545 processing Methods 0.000 description 10
- 238000004519 manufacturing process Methods 0.000 description 8
- 230000003993 interaction Effects 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 3
- 239000012792 core layer Substances 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000004927 fusion Effects 0.000 description 3
- 230000033001 locomotion Effects 0.000 description 3
- 230000000241 respiratory effect Effects 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- QVGXLLKOCUKJST-UHFFFAOYSA-N atomic oxygen Chemical compound [O] QVGXLLKOCUKJST-UHFFFAOYSA-N 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 239000008280 blood Substances 0.000 description 2
- 210000004369 blood Anatomy 0.000 description 2
- 230000005189 cardiac health Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000012512 characterization method Methods 0.000 description 2
- 238000013523 data management Methods 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 229910052760 oxygen Inorganic materials 0.000 description 2
- 239000001301 oxygen Substances 0.000 description 2
- 238000013186 photoplethysmography Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000002618 waking effect Effects 0.000 description 2
- 210000000707 wrist Anatomy 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 230000000386 athletic effect Effects 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 230000036772 blood pressure Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000002955 isolation Methods 0.000 description 1
- 230000004807 localization Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000007493 shaping process Methods 0.000 description 1
- 230000036578 sleeping time Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G13/00—Producing acoustic time signals
- G04G13/02—Producing acoustic time signals at preselected times, e.g. alarm clocks
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G21/00—Input or output devices integrated in time-pieces
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The application relates to the technical field of electronics, and provides an alarm clock reminding method, electronic equipment and a computer readable storage medium, wherein the method comprises the following steps: acquiring a first alarm clock time and an advance time of a first alarm clock; adding a second clock time to the clock list, wherein the second clock time is the time before the first clock time by the time of the advance duration; if the second alarm clock time is the target time, reminding is carried out at the target time, the state of the first alarm clock is updated from the non-reminding state to the reminded state, and the target time is the time for acquiring an alarm clock list; at the first alarm clock moment, responding to the first alarm clock as the reminded state, and not reminding. The method can remind the user in advance before the reminding time set by the user, so that intelligent reminding is realized, and user experience is improved.
Description
Technical Field
The application relates to the technical field of electronics, in particular to an alarm clock reminding method, electronic equipment and a computer readable storage medium.
Background
With the development of electronic devices, intelligent wearable devices are increasingly widely received and used by people. Sports watches are one of the most widely used smart wearable devices. In general, the sports watch can also be called a sports bracelet, and can detect biological information such as heart rate and sleep of a person while being convenient to wear. The sports watch may be connected to a smart phone via bluetooth communication.
A user can manage the sports watch through an application program (application) corresponding to the sports watch installed on the smart phone, for example, view information such as heart rate detected by the sports watch, and can also manage the APP on the sports watch, for example, install the APP, delete the APP, set an alarm clock and the like.
When the user sets an alarm clock on the sports watch, the sports watch can ring at the set alarm clock time to prompt the user. Such a ringing pattern is relatively single and the user experience is not high.
Disclosure of Invention
The application provides an alarm clock reminding method, an alarm clock reminding device, a chip, electronic equipment, a computer readable storage medium and a computer program product, which can improve user experience.
In a first aspect, an alarm clock reminding method is provided, including: acquiring a first alarm clock time and an advance time of a first alarm clock; adding a second clock time to the clock list, wherein the second clock time is the time before the first clock time by the time of the advance duration; if the second alarm clock time is the target time, reminding is carried out at the target time, the state of the first alarm clock is updated from the non-reminding state to the reminded state, and the target time is the time for acquiring an alarm clock list; at the first alarm clock moment, responding to the first alarm clock as the reminded state, and not reminding.
It should be noted that, this first alarm clock is intelligent alarm clock, and first alarm clock moment is intelligent alarm clock moment, and the time of advance is the corresponding lead of intelligent alarm clock. The second alarm clock time is the time of reminding in advance and is called the advance time. The second alarm clock time is the first alarm clock time minus the time of the advance duration. The target time is the time when the alarm clock of the current day is traversed and the alarm clock list is acquired. Alternatively, the target time may be zero point zero (00:00). Alternatively, the target time may be another time, such as 7:00 a.m.
After the intelligent alarm clock is added, the sports watch calculates a second alarm clock time needing to be prompted in advance according to the first alarm clock time and the advanced time length, and adds the second alarm clock time to the alarm clock list so as to remind in advance at the second alarm clock time.
Taking the target time as 00:00 as an example, when the second alarm clock time is 00:00, the sports watch can remind at 00:00, so that the user is reminded in advance. And then, the sports watch also updates the state of the first alarm clock from the non-reminding state to the reminding state.
Alternatively, the specific way to update the state of the first alarm clock may be to modify the alert flag of the smart alarm clock. The sports watch can change the value of the reminding flag bit of the intelligent alarm clock from 0 to 1 or from false to true. Alternatively, 1 and true represent reminded states, and 0 and false represent unhooked states.
The sports watch can inquire the reminding zone bit of the intelligent alarm clock. At this time, the reminding zone bit is updated to be the numerical value of the reminded state, and the sports watch is based on the reminded state represented by the inquired reminding zone bit of the intelligent alarm clock, so that repeated reminding at the moment of the first alarm clock is not needed. Therefore, repeated reminding of the intelligent alarm clock can be avoided, and user experience is improved.
In some possible implementations, if the second alarm clock time is the target time, reminding is performed at the target time, including: at the target time, determining whether an alarm clock time of the current day exists; if so, when the second alarm clock time is the target time, reminding is carried out at the target time.
In some possible implementations, the method further includes: if the alarm clock time of the current day does not exist, the alarm clock list is updated at the target time of the next day.
Alternatively, taking the target time of 00:00 as an example, the sports watch will traverse all the alarm clocks on the same day at 00:00 a day. If the second alarm clock time is 00:00, that is to say the intelligent alarm clock needs to ring in advance at 00:00. When the sports watch is 00:00, all the alarm clocks are traversed, and an alarm clock list of the current day is obtained. At this time, when the alarm clock time exists in the alarm clock list, and when the sports watch determines that the alarm clock time of the current day exists in the alarm clock list and the second alarm clock time is 00:00, the sports watch reminds at 00:00, so that the sports watch reminds at the expected advance time of the user on time.
If the alarm clock list of the current day does not have the alarm clock time of the current day, the alarm clock is not set on the current day. The sports watch can determine that the next clock time is 00:00 of the next day, and traverse the clock of the next day at the next day of 00:00 to obtain a clock list of the next day.
In some possible implementations, alerting at the target time includes: acquiring a sleep state of a user at a second alarm clock moment; and if the sleeping state is the shallow sleeping state, reminding at the target moment.
The sports watch can also acquire the sleep state of the user when the second alarm clock time arrives. If the sleeping state of the user is the shallow sleeping state, the sports watch can remind at the target time 00:00, namely the second alarm clock time.
In some possible implementations, the method further includes: if the sleeping state is the deep sleeping state, not reminding is carried out at the target moment, and the state of the first alarm clock is kept to be the state of not reminding; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
If the sleeping state of the user at the second alarm clock moment is the deep sleeping state, the sports watch can not remind at the target moment 00:00, namely the second alarm clock moment, so that the deep sleeping of the user is prevented from being influenced. At this time, the value of the reminding flag bit of the intelligent alarm clock represents an untrained state, for example, 0 or false. After the sports watch inquires the alarm clock list of the next day, when the first alarm clock moment arrives, the sports watch inquires the numerical value of the reminding mark position of the intelligent alarm clock, which represents the numerical value of the state not reminded, and then reminds the user on time, and the user is reminded on time, so that the business is prevented from being missed.
In some possible implementations, a sleep state of the user at the second alarm clock time is obtained; if the sleep state is a shallow sleep state, reminding is performed at the target moment, including: sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through the first application program; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out by the first application program at the moment of the second alarm clock; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
It should be noted that the first application program may be an alarm clock APP. The sports watch acquires an alarm clock list of the current day through an alarm clock APP, and sends the shortest alarm clock duration corresponding to the earliest alarm clock time in the alarm clock list to the interrupt module. And the interrupt module sends a reminding message to the alarm clock APP when the earliest alarm clock moment arrives. The sports watch can remind under the condition that the alarm clock APP receives the reminding message.
When the second alarm clock time is the earliest alarm clock time in the alarm clock list and the second alarm clock time is the target time, and when the target time is 00:00, the sports watch issues the alarm clock time corresponding to the second alarm clock time to the interrupt module through the alarm clock APP. And when the second alarm clock time arrives, the interrupt module sends a reminding message to the alarm clock APP. The sports watch can remind under the condition that the alarm clock APP receives the reminding message. Optionally, the sports watch may also acquire the sleep state first, if the alarm clock APP receives the alert message. When the sleeping state is the shallow sleeping state, the sports watch reminds at 00:00. If 00:00, the sleeping state of the user is a deep sleep state, and the sports watch does not remind at 00:00 so as not to disturb the deep sleep of the user.
After the sports watch reminds at 00:00, the numerical value of the reminding zone bit of the intelligent alarm clock can be updated to be the numerical value representing the reminded state. Then, as time passes, when the first alarm clock time is the earliest alarm clock time in the alarm clock list, the sports watch inquires the numerical characterization of the reminding zone bit through the alarm clock APP to be in a reminded state, and the alarm clock time corresponding to the first alarm clock time is not required to be sent to the interrupt module. Based on the above, the interrupt module of the sports watch can not report the alarm clock message at the first alarm clock moment, and the sports watch can not remind at the first alarm clock moment.
In some possible implementations, if the second alarm clock time is before the target time, the first alarm clock time is after the target time, further including: reminding is carried out at the second alarm clock moment, and the state of the first alarm clock is not reminded at the second alarm clock moment; after the second alarm clock reminds at the moment, updating the state of the first alarm clock from the un-remitted state to the remitted state; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
In some possible implementations, at the first alarm clock time, in response to the state of the first alarm clock being a reminded state, not reminding includes: updating an alarm clock list at a target moment to obtain an updated list, wherein the updated list comprises a first alarm clock moment; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
If the second alarm clock time is before the target time, the first alarm clock time is after the target time, that is, under the condition that the intelligent alarm clock time and the advanced time cross days, the sports watch reminds at the advanced time of the second alarm clock time. And then, the sports watch can update the numerical value of the reminding zone bit of the intelligent alarm clock from the numerical value of the un-reminded state to the numerical value of the reminded state. After that, the sports watch still traverses the alarm clock of the next day and acquires an alarm clock list including the first alarm clock time. When the first alarm clock time becomes the earliest alarm clock time in the alarm clock list, the sports watch can inquire the state of the first alarm clock, for example, inquire the reminding zone bit of the intelligent alarm clock. After the first alarm clock reminds at the moment of the first alarm clock, the sports watch updates the numerical value of the reminding zone bit of the first alarm clock to the reminding state, and when the sports watch inquires the reminding zone bit of the first alarm clock, the first alarm clock is confirmed to have been reminded, so that repeated reminding at the moment of the second alarm clock is not needed.
When the intelligent alarm clock time and the advanced time cross the day, the sports watch reminds at the advanced time of the second alarm clock time. After that, at the target moment, the sports watch still traverses the alarm clock of the next day, and the obtained alarm clock list is called an update list. The updated list includes the first alarm clock time. When the first alarm clock time is reached, the state of the first alarm clock is the reminded state, that is, the reminding zone bit of the intelligent alarm clock inquired by the sports watch is a numerical value representing the reminded state, for example, 1 or true, and the reminding is not repeated.
In some possible implementations, alerting at the second alarm clock time includes: acquiring a sleep state of a user at a second alarm clock moment; and if the sleeping state is the shallow sleeping state, reminding at the second alarm clock moment.
In some possible implementations, the method further includes: if the sleeping state is the deep sleeping state, not reminding is carried out at the moment of the second alarm clock, and the state of the first alarm clock is kept to be the state of not reminding; updating an alarm clock list at a target moment to obtain an updated list, wherein the updated list comprises a first alarm clock moment; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
The sports watch can also acquire the sleep state of the user when the second alarm clock time arrives. If the sleeping state of the user is the shallow sleeping state, the sports watch can remind at the target time 00:00, namely the second alarm clock time.
If the sleeping state of the user at the second alarm clock moment is the deep sleeping state, the sports watch can not remind at the target moment 00:00, namely the second alarm clock moment, so that the deep sleeping of the user is prevented from being influenced. At this time, the value of the reminding flag bit of the intelligent alarm clock represents an untrained state, for example, 0 or false. When the target time is reached, the sports watch queries an alarm list of the next day, which is called an update list. The updated list includes the first alarm clock time. The sports watch can inquire the numerical value of the reminding zone bit of the intelligent alarm clock, the reminding zone bit of the intelligent alarm clock is the numerical value representing the state of not reminding, the sports watch reminds, the user is reminded on time, and the situation that the user misses a business is avoided.
In some possible implementations, a sleep state of the user at the second alarm clock moment is obtained; if the sleep state is a shallow sleep state, reminding is performed at the second alarm clock moment, including: sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through the first application program; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out through the first application program; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
It should be noted that the first application program may be an alarm clock APP. The sports watch acquires an alarm clock list of the current day through an alarm clock APP, and sends the shortest alarm clock duration corresponding to the earliest alarm clock time in the alarm clock list to the interrupt module. And the interrupt module sends a reminding message to the alarm clock APP when the earliest alarm clock moment arrives. The sports watch can remind under the condition that the alarm clock APP receives the reminding message.
When the second alarm clock time is the earliest alarm clock time in the alarm clock list, the sports watch transmits the second alarm clock time or the corresponding alarm clock time to the interrupt module through the alarm clock APP. And when the second alarm clock time arrives, the interrupt module sends a reminding message to the alarm clock APP. The sports watch can remind under the condition that the alarm clock APP receives the reminding message, so that reminding at the advanced moment is achieved. Optionally, the sports watch may also acquire the sleep state first, if the alarm clock APP receives the alert message. When the sleeping state is the shallow sleeping state, the sports watch reminds at the moment of the second alarm clock. If the second alarm clock time is the deep sleep state, the sports watch does not remind at the second alarm clock time so as not to disturb the deep sleep of the user.
After the sports watch reminds at the moment of the second alarm clock, the numerical value of the reminding zone bit of the first alarm clock, namely the intelligent alarm clock, can be updated into the numerical value representing the reminded state. Then, as time goes on, the target time is 00:00, and the sports watch traverses the alarm clock of the next day to obtain an updated list of the next day. When the first alarm clock time is the earliest alarm clock time in the updated list, the sports watch inquires the numerical value of the reminding zone bit through the alarm clock APP to be characterized as the reminded state, and the alarm clock time corresponding to the first alarm clock time is not required to be sent to the interrupt module. Based on the above, the interrupt module of the sports watch can not report the alarm clock message at the first alarm clock moment, and the sports watch can not remind at the first alarm clock moment any more, so that repeated reminding is avoided.
In a second aspect, an alarm clock reminding device is provided, which comprises a unit composed of software and/or hardware, and the unit is used for executing any one of the methods in the technical scheme in the first aspect.
In a third aspect, an embodiment of the present application provides a chip, including a processor; the processor is configured to read and execute a computer program stored in the memory to perform any one of the methods according to the first aspect.
Optionally, the chip further comprises a memory, and the memory is connected with the processor through a circuit or a wire.
Further optionally, the chip further comprises a communication interface.
In a fourth aspect, there is provided an electronic device comprising: a processor, a memory, and an interface; the processor, the memory and the interface cooperate with each other to enable the electronic device to execute any one of the methods according to the first aspect.
In a fifth aspect, there is provided a computer readable storage medium having stored therein a computer program which, when executed by a processor, causes the processor to perform any one of the methods according to the first aspect.
In a sixth aspect, there is provided a computer program product comprising: computer program code which, when run on an electronic device, causes the electronic device to carry out any one of the methods of the first aspect.
Drawings
Fig. 1 is a schematic structural diagram of an example of a terminal device 100 according to an embodiment of the present application;
fig. 2 is a software architecture block diagram of a terminal device 100 provided in an embodiment of the present application;
fig. 3 is a schematic view of a software and hardware architecture of an athletic watch according to an embodiment of the present application;
FIG. 4 is an application scenario diagram of an example of an interaction between a sports watch and a smart phone according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an alarm clock setting interface on the smart phone side according to an embodiment of the present application;
FIG. 6 is an interface diagram of an example sports watch provided by an embodiment of the present application;
FIG. 7 is an interface diagram of yet another example sports watch provided by an embodiment of the present application;
FIG. 8 is a flowchart of a method for adding an alarm clock according to an embodiment of the present application;
FIG. 9 is a flowchart of an example of an alarm clock reminding method according to an embodiment of the present application;
FIG. 10 is an interface diagram of yet another example sports watch provided by an embodiment of the present application;
FIG. 11 is a flowchart of another example of an alarm clock reminding method according to an embodiment of the present application;
FIG. 12 is a flowchart of another example of an alarm clock reminding method according to an embodiment of the present application;
FIG. 13 is a flowchart of another example of an alarm clock reminding method according to an embodiment of the present application;
fig. 14 is a schematic structural diagram of an alarm clock reminding device according to an embodiment of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise indicated, "/" means or, for example, a/B may represent a or B; "and/or" herein is merely an association relationship describing an association object, and means that three relationships may exist, for example, a and/or B may mean: a exists alone, A and B exist together, and B exists alone. In addition, in the description of the embodiments of the present application, "plurality" means two or more than two.
The terms "first," "second," "third," and the like, are used below for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first", "a second", or a third "may explicitly or implicitly include one or more such feature.
The alarm clock reminding method provided by the embodiment of the application can be applied to terminal equipment such as mobile phones, tablet computers, wearable equipment, vehicle-mounted equipment, augmented reality (augmented reality, AR)/Virtual Reality (VR) equipment, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal DIGITAL ASSISTANT, PDA) and the like, and the embodiment of the application does not limit the specific types of the terminal equipment.
Fig. 1 is a schematic structural diagram of an exemplary terminal device 100 according to an embodiment of the present application. The terminal device 100 may be a wearable device, such as a sports watch. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (universal serial bus, USB) interface 130, a charge management module 140, a power management module 141, a battery 142, an antenna 1, a wireless communication module 160, an audio module 170, a sensor module 180, keys 190, a motor 191, an indicator 192, a display 194, and the like. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like. Optionally, the terminal device 100 may also be a smart phone or a tablet computer, and the terminal device 100 may further include: antenna 2, mobile communication module 150, speaker 170A, receiver 170B, microphone 170C, headset interface 170D, camera 193, and subscriber identity module (subscriber identification module, SIM) card interface 195.
It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the application, terminal device 100 may include more or less components than illustrated, or certain components may be combined, or certain components may be split, or different arrangements of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
It should be understood that the interfacing relationship between the modules illustrated in the embodiment of the present application is only illustrative, and does not constitute a structural limitation of the terminal device 100. In other embodiments of the present application, the terminal device 100 may also use different interfacing manners, or a combination of multiple interfacing manners in the foregoing embodiments.
The software system when the terminal device 100 is a smart phone or a tablet computer may adopt a layered architecture, an event driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the application, taking an Android system with a layered architecture as an example, a software structure of the terminal device 100 is illustrated.
Fig. 2 is a software configuration block diagram of the terminal device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each with distinct roles and branches. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, an application layer, an application framework layer, an Zhuoyun rows (Android runtime) and system libraries, and a kernel layer, respectively. The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications for cameras, gallery, calendar, phone calls, maps, navigation, WLAN, bluetooth, music, video, short messages, etc.
The application framework layer provides an application programming interface (application programming interface, API) and programming framework for the application of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
The window manager is used for managing window programs. The window manager can acquire the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make such data accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phonebooks, etc.
The view system includes visual controls, such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, a display interface including a text message notification icon may include a view displaying text and a view displaying a picture.
The telephony manager is used to provide the communication functions of the terminal device 100. Such as the management of call status (including on, hung-up, etc.).
The resource manager provides various resources for the application program, such as localization strings, icons, pictures, layout files, video files, and the like.
The notification manager allows the application to display notification information in a status bar, can be used to communicate notification type messages, can automatically disappear after a short dwell, and does not require user interaction.
Android runtime include core libraries and virtual machines. Android runtime is responsible for scheduling and management of the android system.
The core library consists of two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. The virtual machine executes java files of the application program layer and the application program framework layer as binary files. The virtual machine is used for executing the functions of object life cycle management, stack management, thread management, security and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface manager (surface manager), media library (media library), three-dimensional graphics processing library (e.g., openGL ES), 2D graphics engine (e.g., SGL), etc.
The surface manager is used to manage the display subsystem and provides a fusion of 2D and 3D layers for multiple applications.
Media libraries support a variety of commonly used audio, video format playback and recording, still image files, and the like. The media library may support a variety of audio and video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, etc.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
When the terminal device is a wearable device such as a sports watch, a software structure block diagram may be shown in fig. 3. Fig. 3 shows a lightweight software architecture, from top to bottom, respectively an application layer for man-machine interaction, an application service Framework layer (Framework layer), algorithms and internal libraries, a hardware abstraction layer, a lightweight kernel core layer and a hardware driver layer. The application layer may include a series of application packages.
As shown in fig. 3, the application packages may include three-party applications, communication applications, interworking, health applications, sports applications, device management, system applications, manufacturing, wallet applications, and the like.
Alternatively, the three-way application may include: navigation application, player, application 1, application 2, etc.
The communication application may include: information, call records, contacts, calls, etc.
Applications for interworking may include: find applications for cell phones, temperature controlled photography, voice assistants, personal transaction centers, contextual intelligence, other interconnects (e.g., a bump), etc.
Health applications may be used to detect or manage data in heart rate, blood oxygen saturation, sleep, physiological cycle, respiratory training, heart health research, and the like.
The sports application may provide: professional sports, various sports, training status, exercise records, activity records, and the like.
The application of equipment management can manage Over-the-Air (OTA) upgrade, dial management, startup and shutdown, factory (setting) restoration and system basic setting.
The system application comprises: applications such as compass, weather, alarm clock, stopwatch, flashlight, timer, altitude barometer, and music.
An application for manufacturing is used to manage a user interface for a production phase, comprising: man-machine interaction interfaces (MMI UI), production UI and burn-in UI.
Wallet applications include: various payment tools, bus cards, access cards and other tools.
The application program framework layer is an APP service framework and is used for providing basic capability for interaction between an upper layer and a bottom layer, and can provide: ACE UI frameworks, system basic capabilities, underlying software service capabilities, sports health service capabilities, and hardware service capabilities.
The ACE UI framework comprises: ACE application development framework and UIKit. Wherein the ACE application development framework is used for realizing: declarative interpretation, JS/C++ binding, application isolation, application management, JSEngine, etc. basic functions:
UIKit components that can provide a user interface can be used to provide a user graphical interface (GRAPHICAL USER INTERFACE, GUI) framework and vector engine that acts on dial templates, fonts, layouts, and views.
The system basic capabilities include capabilities of communication services and audio services. Wherein the communication service may include: message service, call service, interconnection and contact person service; the audio service may include: music playing, audio management, voice broadcasting, voice service, music control and other services.
The underlying software service capabilities are used to provide basic services, manufacturing, and equipment management capabilities. Wherein the basic service comprises: services such as Log service, file system, nonvolatile setup storage (NV) management, exception record, two-machine communication, memory management, permission (Property), log (Log) system, etc.; the service of production and manufacture comprises: production service, burn-in service and MMI service; the device-managed services include: device control, display management, sensor management, and traditional bluetooth management.
Sports health service capabilities include: sports services and health services. Wherein the sports service includes: exercise services, daily activity services, data storage services, training state assessment, and the like; the health service includes: heart rate services, sleep services, respiratory pressure, heart health services, and blood oxygen services.
Hardware service capabilities are used to support location services, near Field Communication (NFC) services, traditional bluetooth services, and bluetooth low energy (bluetooth low energy, BLE) services. The positioning service comprises the following steps: fusion positioning and Global Positioning System (GPS) link positioning (Connect GPS); the NFC service comprises NFC service and NFC related protocol stack at the side of terminal equipment (such as a sports watch); the Bluetooth service comprises the following steps: services such as dual cell phone, connection management, call management, data management, IAP (writing in user flash memory, inApplicationProgramming), call management, and music management; the BLE traffic includes: related profiles (profiles), notification center services (e.g., apple notification CENTER SERVICE (apple notification center services), ANCs), connection management and data management, etc.
The algorithm and the internal library comprise: a base library, an algorithm library, a traditional bluetooth protocol stack and a BLE protocol stack.
The base library comprises: payment applications, bar codes, basic C libraries, jerry Script (JavaScript engine), security libraries, C/JSON libraries, QRCode (JavaScript library for generating two-dimensional codes), tinyxml (an xml parser), freetype (display), ICU4C (a set of C/c++ and Java libraries), harfbuzz (text shaping engine), etc.
The algorithm library comprises: a living body detection algorithm, a gesture algorithm, a fusion, a rope skipping algorithm, a heart rate algorithm, a blood pressure algorithm, a dimming algorithm, a motion algorithm, a First bean/TruSport (motion algorithm), a physiological cycle algorithm, a sleep algorithm, a question algorithm, a wear detection algorithm, a pedestrian dead reckoning (PEDESTRIAN DEAD reckoning, PDR) algorithm, a respiratory algorithm, a pressure algorithm, an Electrocardiogram (ECG) algorithm, and an audio algorithm.
The bluetooth protocol stack and BLE protocol stack may be provided by a chip vendor.
The hardware abstraction layer, i.e. HAL layer, is used to provide: the interface between hardware modules and software such as a key, a touch pad (touch pannel, TP), a super input/output chip (supur input/output, SIO), flash, a charging module, a Motor, a liquid crystal display (liquid CRYSTAL DISPLAY, LCD), a board level support package (board support package, BSP), a bluetooth module (BT), and an NFC module.
The hardware driver layer includes drivers for various hardware: BSP, photoplethysmography (PPG) module, TP, flash, general-purpose input/output (GPIO), acceleration and gravity sensors (Accelerometer + Gyroscope), charge manager (Charge), touch button (TouchKey), motor (motorr), LCD, BT, NFC, and GNSS drivers.
The lightweight Core layer includes a Core (Kernel-Core). The kernel comprises a Lite OS module, wherein the Lite OS module comprises a memory, a Task, an IPC and an interrupt module.
The application Framework layer interacts with the application layer through a Framework API; the HAL layer interacts with the internal library through the HAL API and the algorithm; the kernel interacts with algorithms and internal libraries through CMSIS API.
Generally, people set an alarm clock through an alarm clock APP of an application layer (hereinafter, simply referred to as an application layer). After the alarm clock is set up, alarm clock APP passes through: the FWK layer, algorithm and internal library send the alarm clock time to the Lite OS module of the kernel. The Lite OS module includes AlarmA functions and AlarmB functions. The alarm clock duration is managed and invoked by AlarmA functions. When the alarm clock time corresponding to the alarm clock time arrives, the Lite OS module sends an alarm clock message to an upper application layer through the interrupt module. When the alarm clock APP of the application layer receives the alarm clock message, an alarm clock can be triggered, for example, alarm clock music is played, or a motor is triggered to vibrate to prompt a user.
For easy understanding, the following embodiments of the present application will take a terminal device having a structure shown in fig. 1, fig. 2, and fig. 3 as an example, and specifically describe an alarm clock reminding method provided by the embodiments of the present application in conjunction with the accompanying drawings and application scenarios. Hereinafter, an exemplary description will be made with the execution body as a sports wristwatch.
With the development of electronic technology, intelligent wearable devices are increasingly used by people. Sports watches are favored by people as one of the most widely used smart wearable devices. The sports watch can also be called as a sports bracelet, and can also detect biological information such as heart rate and sleep of a person to assist the movement and life of the user while being convenient to wear. The sports watch may also be connected to a smart phone via bluetooth communication. The user can install the APP that the sports watch corresponds on the smart mobile phone to manage the sports watch through operating the APP, for example look over information such as heart rate, sleep that the sports watch detected. The user can also manage the APP on the sports watch through the APP on the smart phone, for example installing a new APP, deleting unwanted APPs. The user can also set the alarm clock of the sports watch through the APP of the sports watch installed on the smart phone. When the user sets the alarm clock of the sports watch, the sports watch can ring at the set alarm clock time to prompt the user. However, such a ringing pattern is relatively single and the user experience is not high.
The alarm clock is a common alarm clock and can be also called a transaction alarm clock. When the user sets a common transaction alarm clock, the sports watch rings or vibrates to prompt the user at the moment when the alarm clock arrives. For example, after the user sets a transaction alarm clock for seven am, the sports watch may output a prompt message, such as a bell or a vibration, to alert the user when the time reaches seven am. In the embodiment of the application, the operation of outputting the alarm clock time for prompting the user, such as bell sound, vibration and/or lamplight, which can be perceived by the user, is called alarm starting, and can also be called reminding. In order to facilitate the use of a user, the sports watch is further provided with an intelligent alarm clock. The intelligent alarm clock is different from the transaction alarm clock in that the intelligent alarm clock can set an advance reminding. Optionally, for convenience of description and understanding, when the alarm clock is a ringing alarm, the alarm clock may be used for one or more of vibration, ringing, lighting of an indicator light, and flashing of an indicator light. The embodiment of the application does not limit the reminding mode of the alarm clock.
The smart alarm clock typically sets an advance of time, known as an advance duration, e.g., five minutes, ten minutes, half an hour, etc. Optionally, the advance duration of the intelligent alarm clock can be modified according to the needs of the user. In the embodiment of the application, the time of the intelligent alarm clock can be called as intelligent alarm clock time, and the time of the advanced time before the time of the intelligent alarm clock is called as advanced time. After the sports watch is provided with the intelligent alarm clock, the sports watch can remind in advance of the intelligent alarm clock. For example, the time of the smart alarm clock is 8:00, the advance time is 30 minutes. Then in the morning 7:30, at the moment corresponding to the advance time length, the sports watch reminds. The alarm clock reminding mode can prompt the user to arrive at the set intelligent alarm clock in advance, so that the user can prepare in advance, the alarm clock is more humanized, the function of the alarm clock is enriched, and the user experience is improved.
If the smart alarm clock is used for waking up sleep, the sports watch can also determine whether to alarm in advance according to the sleep state of the user. After the user wears the sports watch to fall asleep, the sports watch periodically detects the sleep state of the user. When the advanced time of the intelligent alarm clock arrives, the sports watch acquires the current sleep state. If the current user is in a deep sleep state, the sports watch can not remind. When the intelligent alarm clock arrives, the sports watch reminds. If the sleep state acquired by the sports watch is the shallow sleep state when the advance time of the intelligent alarm clock comes, reminding is carried out at the advance time. For example, when the time of the smart alarm clock is 8:00 and the advance period is 30 minutes. Then in the morning 7:30, when the sports watch detects that the current user is in a shallow sleep state, at 7:30, reminding. Thereafter, the sports watch no longer alerts in 8:00 a.m. If 7 in the morning: 30 users are in deep sleep state, and the sports watch is in 7:30, not reminding, waiting to 8:00 reminds. Therefore, when the user is in a shallow sleep state, the user can be reminded in advance, and the user can prepare in advance. And when the user is in a deep sleep state, the user cannot be awakened in advance, so that the sleeping time of the user is ensured.
Alternatively, the number of the intelligent alarm clocks can be increased or deleted. The user can set one or more intelligent alarm clocks according to the needs. For the intelligent alarm clock, the intelligent alarm clock can be started or stopped. When the user turns off the intelligent alarm clock, the sports watch can not remind at the moment of the intelligent alarm clock and the moment in advance.
Alternatively, the user may set the alarm clock of the sports watch by operating the APP of the sports watch mounted on the smartphone. As shown in fig. 4, the smart phone and the sports watch may be connected through bluetooth. For example, the APP corresponding to the sports watch is a sports health APP. The user can open the sports health APP on the smart phone and enter the setting interface of the alarm clock in the sports health APP. The setting interface of the alarm clock can be seen in the interface diagram shown in fig. 5. The user can see the types of the intelligent alarm clock and the transaction alarm clock in the setting interface of the alarm clock. The intelligent alarm clock is the first alarm clock of the sports watch, and then the transaction alarm clock. Alternatively, the transaction alarm clock may be empty. The user can click a switch control of the intelligent alarm clock in the setting interface to turn on or off the intelligent alarm clock; the user can click on a switch control of the transaction alarm clock in a setting interface of the alarm clock to turn on or off the transaction alarm clock; the user may also click on an add control (e.g.: +) below the interface to add a new transaction alarm clock.
Alternatively, the user may also directly operate the sports watch to add an alarm clock. The interface for adding a transaction alarm to a sports watch can be seen in fig. 6. If the user has not previously set a transaction alarm for the sports watch, the sports watch may display an interface including an add control (e.g.: +), as shown in figure 6, diagram a, after the user turns on the alarm APP on the sports watch. The user can click on the add control in figure 6, panel a, and the sports watch displays the time setting interface of the transaction alarm clock as shown in figure 6, panel b. The user can slide the hour bar up and down to select the transaction alarm clock as a point in the time setting interface of the transaction alarm clock, and can slide the minute bar up and down to select the transaction alarm clock as a few minutes. Then, the user clicks the next control in the time setting interface of the transaction alarm clock shown in the b diagram in fig. 6, and the sports watch displays the repetition date setting interface of the transaction alarm clock shown in the c diagram in fig. 6. The user can select the date to be reminded in the repetition date setting interface of the transaction alarm clock. In diagram c of fig. 6, examples are shown where the dates for which reminders can be selected include sunday through Saturday. For example, when the user selects three dates, monday, tuesday and Tuesday, the repeat date setting interface for setting the transaction alarm clock is shown in FIG. 6, c. And then, the user clicks a determination control in the repetition date setting interface to finish the addition of the transaction alarm clock. The sports watch may then display an interface as shown in figure d of figure 6. The user may continue clicking the add control to add more transaction alarms in the interface shown in d-diagram in fig. 6, which is not described here. The user may also click on a switch control to turn off the transaction alarm clock in an interface as shown in figure 6, d.
Alternatively, the interface of the setting time of the transaction alarm clock can be displayed according to twelve hours, for example, as shown in an e diagram in fig. 6. In the e-diagram of fig. 6, the user may also swipe up and down to select either morning or afternoon, after which the corresponding time is selected to set the transaction alarm clock. Optionally, the repetition date setting interface of the transaction alarm clock may also be as shown in f chart in fig. 6, and the user may slide up and down on the repetition date setting interface to select the date that needs to be reminded. Fig. 6 f illustrates that the user selects a day of the week reminder.
Optionally, the user may also directly operate the sports watch to turn on the smart alarm clock. The user turns on the alarm APP on the sports watch, which displays the setting interface of the smart alarm, for example as shown in the a-diagram in fig. 7. The user can click on a switch control in the setting interface of the intelligent alarm clock to turn on or off the intelligent alarm clock. When the user clicks the area displayed by the time in the setting interface of the smart alarm, the sports watch may then display the time setting interface of the smart alarm, for example as shown in the b-diagram of fig. 7. The user can slide the hour column up and down in the time setting interface of the intelligent alarm clock to select the intelligent alarm clock as a few points, and can slide the minute column up and down to select the intelligent alarm clock as a few points. Then, the user clicks the next control in the time setting interface of the smart alarm clock shown in the b diagram in fig. 7, and the sports watch displays the repetition date setting interface shown in the c diagram in fig. 7. The user may select the date that needs to be reminded in the repeat date settings interface. The example is shown in fig. 7c as seven days including sunday through wednesday. For example, after the user selects Monday, tuesday, and Tuesday, the repeat date settings interface may then be shown in FIG. 7 as c. And then, clicking a determination control on the repeated date setting interface by the user to finish the addition of the intelligent alarm clock. The sports watch may then display an interface as shown in figure 7, d. The smart alarm clock set at 8:00 a.m. is exemplified in the d-chart in fig. 7. The user may also click on an area displaying the advance duration (e.g., an area displaying "smart wake-up 30 minutes") as in the d-chart in fig. 7 to modify the advance duration of the smart alarm clock. The advance duration may be a default value, for example 30 minutes, after the smart alarm clock is turned on. When the user clicks the area displaying the advance time period as in the d diagram in fig. 7, the sports watch may also display a setting interface of the advance time period as shown in the e diagram in fig. 7. The user can slide the minutes bar up and down in the setting interface of the advance duration to set the advance duration. And after the user selects the advance time length to be set, clicking the determination control to finish the setting of the advance time length. Alternatively, after the setting of the advance period is completed, the sports watch may be displayed again as shown in d diagram in fig. 7. Optionally, the user may also click on a switch control to turn off the smart alarm clock in an interface as shown in diagram d in fig. 7.
Alternatively, the interface of the setting time of the intelligent alarm clock can be displayed according to twelve hours, for example, as shown in f chart in fig. 7. In the f diagram in fig. 7, the user may also swipe up and down to select am or pm, after which the corresponding time is selected to set the time of the smart alarm clock. Alternatively, the repeat date setting interface may also be as shown in g-chart in fig. 7, where the user may slide up and down to select the date on which alarm is desired. Fig. 7 is a diagram illustrating a user selecting a day of the week reminder.
It should be noted that, whether it is a transaction alarm clock or a smart alarm clock, when the user sets the alarm clock time, the sports watch converts the alarm clock time into the number of minutes from zero point to zero point (00:00), and the number of minutes can be recorded as the alarm clock duration corresponding to the alarm clock time. That is, if the user sets an alarm clock of 7:00 a.m., the sports watch will calculate the number of minutes of 00:00 a.m. 7 x 60 = 420 minutes from the time of 7:00 a.m. The sports watch records that the alarm clock corresponding to the 7:00 a.m. alarm clock has an alarm clock duration of 420 minutes.
After the user adds (turns on) the smart alarm, the process of adding the smart alarm by the sports watch may refer to the process shown in fig. 8, including:
S701, acquiring the intelligent alarm clock time.
When the user adds the smart alarm in the manner shown in fig. 5 or 7, the sports watch can then identify the time to the smart alarm, which can be referred to as the smart alarm time, in response to the user operation.
S702, judging whether the intelligent alarm clock time corresponding to the intelligent alarm clock time is greater than or equal to the advance time. If yes, executing S703A; if not, S703B is performed.
It should be noted that the time of the smart alarm clock is a specific time point, for example, several minutes, and may also be several minutes of the day of the week. The sports watch converts the intelligent alarm clock time into a corresponding number of minutes, which is called intelligent alarm clock time. The time corresponding to the smart alarm clock time minus the advance duration may be referred to as the advance time.
The sports watch can judge whether the intelligent alarm clock duration is greater than or equal to the advance duration. If the time length of the intelligent alarm clock is greater than or equal to the advance time length, the intelligent alarm clock time and the advance time are indicated to be on the same day, that is, the intelligent alarm clock time and the advance time do not cross the day. If the intelligent alarm clock time is smaller than the advance time, the intelligent alarm clock time and the advance time are indicated to be not on the same day, namely the intelligent alarm clock time and the advance time span the day.
For example, if the smart alarm clock time is 0:30 and the advance time is 30 minutes, the sports watch determines that the smart alarm clock time is 30 minutes. At the moment, the intelligent alarm clock time is equal to the advance time, and the intelligent alarm clock time and the advance time do not cross the day; if the smart alarm clock time is 7:30 and the advance time is 30 minutes, the sports watch determines that the smart alarm clock time is 450 minutes (7x60+30=450). At this time the intelligent alarm clock time length is longer than the advance time length, and the intelligent alarm clock time and the advance time are not spanned. If the intelligent alarm clock time is 0:20 and the advance time is 30 minutes, the sports watch determines that the intelligent alarm clock time is 20 minutes. At the moment, the intelligent alarm clock time is smaller than the advance time length, and the intelligent alarm clock time and the advance time span the day.
If the smart alarm clock time and the advance time do not cross the day, the sports watch may perform the step of S703A.
If the smart alarm clock time and the advance time span the day, the sports watch may perform the step of S703B.
S703A, judging whether the intelligent alarm clock needs to remind the current day. If yes, S704 is executed.
Whether the alarm clock is an intelligent alarm clock or a transaction alarm clock, the alarm clock corresponds to respective date zone bits. The date flag is a Universal Time (UTC) based flag.
Specifically, for an alarm clock time, seven date flags may be set, and the seven date flags respectively correspond to seven dates from sunday to Saturday (i.e. the repetition date described in the foregoing) one by one. If the value of one date zone bit is true or 1, reminding the corresponding date of the date zone bit for the alarm clock time; if the value of this date flag is false or 0, then for the alarm time, the date corresponding to this date flag does not need to be reminded. Taking the d diagram in fig. 6 as an example, the user selects three dates, monday, tuesday and Tuesday, indicating that 8:00 a.m. smart alarm clock needs to remind on Monday, tuesday and Tuesday, and the rest Tuesday, saturday and Sunday do not need to remind.
The sports watch inquires the numerical value of the date zone bit corresponding to the current day, taking the date which needs to be reminded and corresponds to the d diagram in fig. 6 as an example, if the current day is Monday, the current day can be determined to need to be reminded; if the day is friday, it may be determined that no reminder is needed for the day.
Alternatively, if no reminder is needed on the day, the sports watch may set an alarm clock for the next day 00:00. When the time of the next day is 00:00, the sports watch can traverse the alarm clock required to be reminded for the next day to obtain an alarm clock list for the next day, which is not described herein.
Based on the alarm clock realization logic, the sports watch can default to set a hidden zero alarm clock interrupt, namely, the 00:00 interrupt is not displayed externally, and a user cannot see the zero alarm clock interrupt in a setting interface of the alarm clock APP. The sports watch can traverse all alarm clock moments on the same day at 00:00 of each day to obtain an alarm clock list on the same day. Optionally, the sports watch may calculate the number of minutes from 00:00 for each alarm clock time of the day, and obtain the alarm clock duration corresponding to each alarm clock time. Then, the sports watch arranges the obtained alarm clock durations in order from small to large. When 00:00 of each day arrives, the sports watch can inquire the earliest alarm clock time in the alarm clock list, namely inquire the shortest alarm clock time, and then send the shortest alarm clock time corresponding to the earliest alarm clock time to the interrupt module of the kernel layer through the alarm clock APP. It should be noted that, the sports watch issues the alarm clock time corresponding to the alarm clock time through the alarm clock APP, and the alarm clock time is the number of minutes that the alarm clock time is 00:00 away from the current day.
It should be noted that, the Alarm clock function may implement a timing Alarm through an Alarm clock function (Real Time Clock Alarm, RTC Alarm) of the real-time Alarm provided by the operating system. Alternatively, the RTC Alarm may be implemented in the Lite OS module. The Lite OS module comprises an interrupt module. Two functions AlarmA and AlarmB are set in the interrupt module. Wherein AlarmA functions support setting an alarm clock time at the same time and alarm when the alarm clock time arrives. The AlarmB function is used to periodically initiate the system auto-update function.
Optionally, the sports watch issues the alarm clock duration to the interrupt module through the alarm clock APP of the application layer. The interrupt module counts time, and when the time corresponding to the alarm clock time arrives, an alarm clock message is sent to an alarm clock APP of the application layer. The alarm clock APP responds to the received alarm clock message to remind.
S704, judging whether the intelligent alarm clock time length is greater than or equal to the current time length corresponding to the current time. If yes, S705 is performed.
The sports watch may calculate the number of minutes of the current time from the current time of day 00:00, which is noted as the current time corresponding to the current time. After the sports watch determines that a reminder is needed for the day, and whether the intelligent alarm clock time length is greater than or equal to the current time corresponding to the current time can be continuously determined. For example, the current time is 7:00, and the current time period is 7×60=420 minutes. That is, the sports watch determines whether the smart alarm clock duration is greater than or equal to the current duration, i.e., whether the smart alarm clock time is no earlier than the current time.
For example, the smart alarm clock time is 8:00. If the current time is 7:00, the sports watch can determine that the time length of the intelligent alarm clock is longer than the current time length, namely the time of the intelligent alarm clock is later than the current time; if the current time is 8:00, the sports watch can determine that the intelligent alarm clock time is equal to the current time, namely the intelligent alarm clock time is equal to the current time; if the current time is 9:00, the sports watch can determine that the intelligent alarm clock time is smaller than the current time, namely the intelligent alarm clock time is earlier than the current time.
Alternatively, when the sports watch determines that the smart alarm time period is greater than or equal to the current time period, that is, it is determined that the smart alarm time period is not earlier than the current time period, the step of S705 may be performed.
Optionally, when the sports watch determines that the duration of the intelligent alarm clock is smaller than the current duration, that is, when the time of the intelligent alarm clock is earlier than the current time, the method indicates that the time of the intelligent alarm clock on the same day is past, and the same day cannot be reminded at the time of the intelligent alarm clock. The sports watch can be provided with an alarm clock of 00:00 of the next day. When 00:00 of the next day, the sports watch can traverse all alarm clock moments of the next day to obtain an alarm clock list of the next day, which is not described herein.
S705, acquiring a new alarm clock time.
When the sports watch determines that the time length of the intelligent alarm clock is greater than or equal to the current time length, the current set intelligent alarm clock time is reminded on the same day, and then the new alarm clock time can be determined again. Optionally, the new alarm clock time is the intelligent alarm clock time minus the advance time, i.e. the advance time described in the foregoing.
For example, the intelligent alarm clock time is 8:00, the advance time is 30 minutes, and the sports watch determines that the new alarm clock time is 8:00 minus the time of 30 minutes, namely 7:30.
S706, judging whether the new alarm clock time corresponding to the new alarm clock time is greater than or equal to the current time. If yes, then execute S707A; if not, S707B is executed.
After the sports watch calculates the new alarm clock time, the new alarm clock time can be calculated from the minutes of 00:00 of the current day. This number of minutes is called the new alarm clock duration. The sports watch judges whether the new alarm clock time is greater than or equal to the current time, namely judges whether the new alarm clock time is not earlier than the current time.
If the new alarm clock time is longer than or equal to the current time, that is, the new alarm clock time is not earlier than the current time, the sports watch executes the step of S707A; if the new alarm clock time is less than the current time, i.e. the new alarm clock time is earlier than the current time, the sports watch performs the step S707B.
For example, the smart alarm clock time is 8:00 and the advance time is 30 minutes, then the sports watch determines the new alarm clock time to be 8:00 minus 30 minutes, which is 7:30. If the current time is 7:00, the new alarm clock time is larger than the current time, namely the new alarm clock time is later than the current time, and the sports watch can execute S707A; if the current time is 7:30, the new alarm clock time is equal to the current time, that is, the new alarm clock time is equal to the current time, and the sports watch can execute S707A; if the current time is 7:40, it indicates that the new alarm clock time is less than the current time, that is, the new alarm clock time is earlier than the current time, and the sports watch may execute S707B.
And S707A, adding a new alarm clock at a new alarm clock moment.
And S707B, adding a new alarm clock at the current moment.
When the sports watch determines that the new alarm clock time length is greater than or equal to the current time length, a new alarm clock at the new alarm clock time can be added, and reminding is carried out in advance according to the preset advance time length. When the sports watch determines that the new alarm clock time is smaller than the current time, the new alarm clock at the current time can be added when the new alarm clock time is indicated to be over, so that the sports watch can remind the user in real time at the current time as far as possible.
That is, if the smart alarm time is 8:00, the advance time is 30 minutes, and the sports watch determines the new alarm time to be 7:30. If the current time is 7:30 or before 7:30, a new alarm clock for a new alarm clock time 7:30 may be added. Then by 7:30 the sports watch can be alerted. If the current time is 7:30 later (excluding 7:30), for example, 7:50. Since the current time does not exceed the smart alarm time, i.e. the current time is not later than 8:00, the sports watch can add a new alarm at the current time of 7:50. At this time, the sports watch can prompt in time and prompt the user in advance.
Optionally, after S706 described above, the process of adding the smart alarm clock may further include steps S708 to S710A, S708 to or S710B as follows:
S708, judging whether the intelligent alarm clock time length is equal to the advance time length. If yes, S709 is performed.
The sports watch can judge whether the intelligent alarm clock duration is equal to the advance duration. In most cases, the intelligent alarm clock duration is not equal to the advance duration. In individual cases, for example, the smart alarm clock time is 0:30, and the advance time is 30 minutes, the smart alarm clock time is equal to the advance time. If the smart alarm time equals the advance time, indicating a new alarm time of 00:00, the sports watch may perform the step of S709.
S709, judging whether the new alarm clock time length is greater than or equal to the current time length. If yes, then execution proceeds to S710A. If not, S710B is performed.
S710A, adding a new alarm clock of 00:00.
S710B, adding a new alarm clock at the current moment.
When the intelligent alarm clock time length is equal to the advance time length and the new alarm clock time length is equal to the current time length, the current time is 00:00, and the sports watch adds a new alarm clock of 00:00. When the intelligent alarm clock time length is equal to the advance time length and the new alarm clock time length is longer than the current time length, the sport watch adds the new alarm clock at the current time after the current time is 00:00.
For example, the intelligent alarm clock time is 0:30, and the advance time length is 30 minutes. The new alarm time is 00:00, and the new alarm clock time is 0 minutes. If the current time is 00:00, the current time is 0 minutes, and the new alarm clock time is equal to the current time, and the new alarm clock of 00:00 can be added to the sports watch; if the current time is 0:20, the new alarm clock time length is larger than the current time length, and the sports watch can add the new alarm clock of the current time 0:20 to remind the user as early as possible.
When one alarm clock reminding is completed, the sports watch transmits the next alarm clock duration in the alarm clock list to the interrupt module through the alarm clock APP of the application layer again, and the alarm clock reminding process is repeatedly executed. Based on this, the sports watch can support multiple reminders at multiple different alarm moments.
When the sports watch adds the new alarm clock, the sports watch can remind when the alarm clock time of the new alarm clock arrives, namely, the alarm clock reminding process is executed. Fig. 9 shows a flowchart of an alarm clock reminder after adding a new alarm clock, specifically including:
s801, searching an alarm clock list to determine whether the alarm clock moment of the current day exists. If yes, executing S802A; if not, S802B is performed.
The alarm clock list can comprise the alarm clock time of the transaction alarm clock and also can comprise the alarm clock time of the intelligent alarm clock. Alternatively, the alarm clock list may be a list of multiple alarm clock moments, such as 7:30, 8:00, 12:00, etc. times; a list comprising a plurality of alarm clock durations corresponding to a plurality of alarm clock moments, for example durations of 420 minutes, 450 minutes, 720 minutes, etc. is also possible.
Optionally, the sports watch sorts the alarm clock durations to obtain an alarm clock list. The sports watch traverses all the alarms every 00:00 of each day to obtain a daily alarm clock list, and determines whether the alarm clock moment of the current day exists according to the alarm clock list. If the alarm clock time of the current day exists in the alarm clock list, the sports watch executes S802A; if there is no alarm time of the day in the alarm list, the sports watch may perform S802B.
For example, if the user only sets an alarm clock of 7:00 a day on weekdays, then in 00:00 of legal holidays such as Saturday and Sunday, there will be no alarm time or alarm duration in the alarm list obtained by the sports watch traversal.
S802A, issuing alarm clock time corresponding to the earliest alarm clock time of the day to an interrupt module.
S802B, issuing alarm clock time corresponding to the alarm clock time of the next day 0:00 to an interrupt module.
If the alarm clock time of the day exists in the alarm clock list, the sports watch can inquire the earliest alarm clock time (or the shortest alarm clock time) of the day. Then, the sports watch can send the alarm clock duration corresponding to the earliest alarm clock time, namely the shortest alarm clock duration, to the interrupt module through the alarm clock APP of the application layer. If the alarm clock list does not have the alarm clock time of the day, the sports watch can send the alarm clock time corresponding to the alarm clock time of the next day 00:00 to the interrupt module through the alarm clock APP of the application layer. For example, the next day 00:00 corresponds to an alarm clock duration 1440 (24×60=1440). And triggering a reminder at the corresponding alarm clock time after the received alarm clock time by the interrupt module.
That is, the AlarmA function in the interrupt module is used to manage the shortest alarm clock duration, and trigger the reminder when the earliest alarm clock time corresponding to the shortest alarm clock duration arrives. For convenience of description, the earliest alarm clock time corresponding to the shortest alarm clock time managed by AlarmA functions is called the waiting time.
S803, determining whether the current time is the time to be alarmed. If yes, S804 is performed.
S804, reminding.
The sports watch judges whether the current time is the time to be set up corresponding to the shortest alarm clock time in AlarmA functions, and if the current time does not reach the time to be set up, the step S803 can be repeatedly executed. With the lapse of time, when waiting to play the alarm moment, the interrupt module then can send the warning message to alarm clock APP, triggers alarm clock APP and reminds. After the alarm clock reminding of this time is completed, the alarm clock APP of the application layer sequentially acquires the next alarm clock moment, and at this time, the next alarm clock moment is the earliest alarm clock moment of the day. The alarm clock APP of the application layer can send the shortest alarm clock duration corresponding to the earliest alarm clock time to the interrupt module. The AlarmA function in the interrupt module receives the shortest alarm clock duration issued by the alarm clock APP of the application layer again, and repeatedly executes the reminding process.
Taking the intelligent alarm clock with the time of 00:30 and the time of advance of 30 minutes as an example. If the intelligent alarm clock time length is equal to the advanced time length, the new alarm clock time is 00:00. The user sets the intelligent alarm clock of 00:30 and sets the advance time length to be 30 minutes, so that the user expects to remind in advance when the wrist watch is in 00:00, and the user does not need to start the alarm when the wrist watch is in 0:30. However, the sports watch executes default zero alarm clock interruption through the alarm clock APP based on the original reminding process. That is, the sports watch can traverse all alarm clock moments of the same day at 00:00 and find the earliest alarm clock moment, and the shortest alarm clock time corresponding to the earliest alarm clock moment is issued, but does not ring or vibrate at the new alarm clock moment (namely, the alarm clock of 0:00) to remind the user. This is not in line with the way the user expects to alert in advance at 00:00. Since the sports watch will traverse all alarm clock moments when 00:00 arrives, it will traverse to this intelligent alarm clock moment of 00:30. When the sports watch reminds the traversed alarm clock time one by one, the sports watch reminds again at the intelligent alarm clock time of 00:30. However, the result of the sports watch reminding again at 00:30 is not consistent with the reminding mode expected by the user, and the user experience is affected.
If the intelligent alarm clock is used for waking up sleep, in the process of determining whether to remind by combining the sleep state of the user, the sports watch does not remind even if the user is detected to be in a shallow sleep state at the early time of 00:00 based on the original reminding logic; and reminds again at 00:30. Such a reminding mode is not consistent with the mode of early reminding desired by the user, and affects the user experience.
Alternatively, the alarm clock reminding process when the advance time is 00:00 can be referred to the embodiment shown in fig. 11, which is not described herein.
S703B, judging whether the intelligent alarm clock needs to remind the current day. If yes, executing S711A; if not, S711B is performed.
If the smart alarm clock duration is less than the advance duration, then the advance time and the smart alarm clock time span the day (the advance time is before 00:00, and the smart alarm clock time is after 00:00). At this time, the sports watch can judge whether the intelligent alarm clock of the current day needs to remind. The detailed process of S703B may be referred to the related description of S703A in the foregoing, and will not be repeated here.
S711A, acquiring a new alarm clock time. And performs S712.
Specifically, when the sports watch determines that the intelligent alarm clock needs to be reminded on the same day, new alarm clock time corresponding to new alarm clock time can be calculated. The method comprises the following steps: the sports watch adds the intelligent alarm clock time length to the total number of minutes of the day, and subtracts the advanced time length to obtain the new alarm clock time length. For example, the intelligent alarm clock time is 0:02, the advance time is 5 minutes, and the new alarm clock time is: 1440+2-5=1437. 1440 is a product of 60×24, and is the total number of minutes of a day. If the new alarm clock duration is converted to the corresponding new alarm clock time, it is 23:57. After that, S712 is continued.
S711B, the alarm clock time of the current day is not added.
If the intelligent alarm clock does not need to remind on the same day, the sports watch can not need to add the moment of the intelligent alarm clock. Based on the original alarm clock reminding logic, the sports watch still adds 00:00 alarm clock interruption. And starting a process of traversing the alarm clock time of the next day at the time of 00:00 of the next day to obtain an alarm clock list of the next day.
S712, judging whether the new alarm clock time length is greater than or equal to the current time length. If yes, S713A is performed. Alternatively, if not, S713B is performed.
The sports watch determines whether the new alarm clock time is greater than or equal to the current time, that is, whether the new alarm clock time is not earlier than the current time.
S713A, setting an advanced alarm clock mark. After that, S714 is performed.
The currently added alarm clock is an intelligent alarm clock, and the sports watch further sets an advanced alarm clock sign for the intelligent alarm clock, and is used for representing that the intelligent alarm clock needs to be reminded in advance. If the transaction alarm clock is other, the alarm clock mark is not required to be set, that is, the early reminding is not required. Optionally, the sports watch sets an advanced alarm clock sign, which may be that the value of the corresponding advanced alarm clock sign bit is marked as 1 or true, which indicates that the alarm clock needs to be advanced for a certain period of time to remind.
S713B, acquiring the alarm clock time after the delay, and adding a new alarm clock at a new alarm clock time corresponding to the alarm clock time after the delay. After that, S714 is performed.
S714, adding a new alarm clock at a new alarm clock moment.
When the new clock time is longer than or equal to the advance time, that is, the new clock time is not earlier than the current time, the sports watch can add a new clock with the new clock time. When the new alarm clock time is smaller than the advance time, namely, the new alarm clock time is earlier than the current time, the sports watch can add the new alarm clock at the current time, and instant reminding can be achieved, so that a user is reminded in advance as much as possible.
For example, the intelligent alarm clock time is 0:03, and the advance time length is 5 minutes. The new alarm clock time is 23:57 and the new alarm clock time is 1437 minutes (23×60+57). If the current time is 23:57 preceded (not included), e.g., 23:50, then the current time period is: 23 x 60+50=1430 minutes, indicating that the new alarm clock time is longer than the current time, the sports watch can add a new alarm clock with a new alarm clock time of 23:57. If the current time is 23:57 or 23:57, for example, 23:59, and the new alarm clock time length is larger than or equal to the current time length, a new alarm clock at the current time 23:59 can be added to remind the user as early as possible.
The interface of the sports watch may be any interface as shown in figure 10, a. When the alarm clock time arrives, a reminder interface as shown in b diagram in fig. 10 may be displayed. The alert interface may include an alarm name, such as "alarm 1" shown in figure 10 b. Alternatively, the alarm clock name may be an alarm clock name set for an alarm clock by the smart phone when the alarm clock is set by the sports health APP. The alarm clock name is displayed in the reminding interface, so that a user can conveniently know the current matters needing to be reminded in time. Optionally, the current alarm clock time, e.g. 9:30, may also be displayed in the alert interface as shown in figure b of figure 10. Optionally, a close control (e.g., x) may also be displayed in the alert interface as shown in b-diagram in fig. 10, as well as a delay control. During the alarm clock ringing, if the user clicks the close control in the alert interface as shown in figure 10b, the alert is terminated. The sports watch may first display an alarm-off alert interface as shown in figure c of figure 10. Thereafter, the sports watch returns to the previous interface of figure a in figure 10. During the alarm clock ringing, if the user clicks the delay control in the alert interface as shown in figure 10b, the alert is aborted. The sports watch may display an alarm delay interface as shown in figure d of figure 10. Reminding words of the delay time length can be displayed in the alarm clock delay interface, for example: after 10 minutes, it is loud again.
When the user clicks the delay control for the first time, the sports watch recalculates the alarm clock time after delay, and adds a new alarm clock at a new alarm clock time corresponding to the alarm clock time after delay. The user can click the delay control for multiple times, and the new alarm clock time can push the preset delay time backwards for multiple times. Specifically, the alarm clock duration after the delay=the new alarm clock duration+the delay number. For example, the new alarm clock time is 30 minutes, and when the delay time is 10 minutes, the alarm clock time after the delay is 60 minutes (30+3×10=60) when the user clicks the delay control for the third time. The sports watch can calculate a new alarm clock time after the delay according to the alarm clock time after the delay, and add a new alarm clock of the new alarm clock time after the delay.
Alternatively, the maximum number of delays may be set to 3, after which no delays are made. That is, when the new alarm clock is delayed three times, the sports watch cancels the alarm clock and no longer reminds.
However, if the sports watch looks for other alarm clock moments of the day after the advance notice at the advance moment of 23:57, it is found that there are no other alarm clock moments in the alarm clock list of the day. Then based on the alarm clock reminding process, the sports watch can default to trigger the zero alarm clock interrupt of 00:00 to realize the alarm clock time of traversing the daily alarm clock time at the next 00:00 start. Then when the time reaches 00:00, the sports watch traverses the alarm clock time of the next day, and the traversed intelligent alarm clock time is 00:02. At this time, if there is no other alarm clock time between 00:00 and 00:02, the sports watch will issue a 2-minute duration corresponding to the intelligent alarm clock time of 00:02 to the alarm module. When the time reaches 00:02, the intelligent alarm clock can remind again. That is, the time is repeated in the case where the smart alarm clock time and the advance time cross the day. This does not match the user's needs, affecting the user experience.
Next, in combination with table 1 and table 2, whether the result of the intelligent alarm clock reminding is normal or not is summarized. Exemplary description of ringing is provided in the alert manner in tables 1 and 2. Also, tables 1 and 2 exemplify that the user needs to ring in advance in a shallow sleep state, and the deep sleep state does not need to ring in advance. Specifically, table 1 shows the reminding result of the intelligent alarm clock expected by the user.
TABLE 1
In Table 1, if the user sets the smart alarm clock time to 00:00, the advance duration is 5 minutes. The sports watch can determine the advance instant to be 23:55. Based on this, the user expects that in the shallow sleep state, the sports watch rings at the advanced time of 23:55, and no longer rings at the smart alarm time of 00:00 as a normal overall result.
If the user sets the intelligent alarm clock time to be 00:05, the advance time is 5 minutes. The sports watch can determine the advance time to be 00:00. Based on this, the user expects that in the shallow sleep state, the sports watch rings at the advanced time of 00:00, and does not ring at the smart alarm time of 0:05 as a normal overall result.
If the user sets the intelligent alarm clock time to be 00:02, the advance time is 5 minutes. The sports watch can determine the advance instant to be 23:57. based on this, the user expects to exercise the wristwatch in the shallow sleep state at 23:57, while at 0:02 this smart alarm clock time does not ring as a normal overall result.
However, based on the alarm logic of the alarm clock, in the scenario shown in table 1, the actual ringing results are shown in table 2.
TABLE 2
As in Table 2, if the user sets the smart alarm clock time to 00:00, the advance duration is 5 minutes. The sports watch can determine the advance instant to be 23:55. Based on this, if the user is in a shallow sleep state, the sports watch rings at the advanced time of 23:55, but does not ring at the smart alarm time of 00:00, and the overall result of scenario 1 is normal.
If the user sets the intelligent alarm clock time to be 00:05, the advance time is 5 minutes. The sports watch can determine the advance time to be 00:00. Based on this, if the user is in a shallow sleep state, the sports watch does not ring at the advanced time of 00:00, but rings at the smart alarm time of 0:05, and the overall result of scenario 2 is abnormal.
If the user sets the intelligent alarm clock time to be 00:02, the advance time is 5 minutes. The sports watch can determine the advance instant to be 23:57. based on this, if the user is in a shallow sleep state, the sports watch is at 23:57, and again at 0:02, the overall result of scenario 3 is abnormal.
Fig. 11 shows a schematic diagram of a reminding process when an alarm reminding result is abnormal when the advance time is 00:00, and the process includes:
s1001, searching an alarm clock list, and determining whether the alarm clock moment of the current day exists. If yes, executing S1002A; if not, S1002B is performed.
S1002A, issuing the shortest alarm clock time corresponding to the earliest alarm clock time of the day to an interrupt module.
S1002B, issuing alarm clock time corresponding to the alarm clock time of the next day 00:00 to an interrupt module.
The detailed description about S1001 may be referred to the related description about S801, the detailed description about S1002A may be referred to the related description about S802A, and the detailed description about S1002B may be referred to the related description about S802B, which are not repeated herein.
The sports watch can traverse all the alarm clocks in the current day of 00:00 and acquire the alarm clock list of the current day. If the alarm clock time of the day exists in the alarm clock list, the sports watch can inquire the earliest alarm clock time (or the shortest alarm clock time) of the day. Afterwards, the sports watch can send the earliest alarm clock moment (or the shortest alarm clock duration) to the interrupt module through the alarm clock APP of the application layer.
Taking the intelligent alarm clock with the time of 00:30 and the time of advance of 30 minutes as an example. If the sports watch determines that the advance time is 00:00 after the intelligent alarm clock is set, the sports watch can send the alarm clock time corresponding to the alarm clock time of 00:00 to the interrupt module after reminding of all the alarm clocks on the previous day is performed. At this time, 0 minutes in the interrupt module is the duration corresponding to the time to be alerted for the next reminding. After that, the sports watch performs S1003.
If the alarm clock list does not have the alarm clock time of the day, the sports watch can send the alarm clock time corresponding to the alarm clock time of the next day 00:00 to the interrupt module through the alarm clock APP of the application layer. Then, the sports watch can traverse the alarm clock time of the next day when the next day is 00:00, and an alarm clock list of the next day is obtained.
S1003, judging whether the current time is 00:00. If yes, S1004 is executed.
S1004, not reminding, and issuing the intelligent alarm clock time to the interrupt module.
S1005, judging whether the current time is equal to the intelligent alarm clock time. If yes, S1006 is performed.
S1006, reminding.
The sports watch determines if the current time is the alarm time in AlarmA functions. If the current time is not equal to the time alarm clock time corresponding to the alarm clock time in the AlarmA function, the sports watch can determine that reminding is not needed at the current time. The alarm clock duration corresponding to 00:00 in the interrupt module is the duration of the next reminding time distance, and the sports watch can repeatedly execute S1003. Over time, when 00:00 is reached, the interrupt module can send a reminder message to the alarm clock APP. However, the sports watch executes default zero alarm clock interruption at 00:00 based on the reminding process, namely executes default steps of traversing all the alarm clocks on the daily and issuing the shortest alarm clock time to issue when the reminding message is received, and does not remind the new alarm clock time of 00:00. Meanwhile, the sports watch can acquire the intelligent alarm clock at the moment of the intelligent alarm clock (for example, 00:30) when traversing the alarm clock at the next day, and send the alarm clock duration corresponding to the moment of the intelligent alarm clock to the interrupt module when the moment of the intelligent alarm clock is the earliest moment of the alarm clock at the next day. When the time reaches the moment of the intelligent alarm clock, the sports watch reports alarm clock information to the alarm clock APP through the interrupt module, and the sports watch responds to the alarm clock information through the alarm clock APP of the application layer and reminds. Such alert results do not meet the user's expectations, affecting the user experience.
Based on the above, the embodiment of the application provides an alarm clock reminding method when the advance time is 00:00, which can ensure that the intelligent alarm clock can be accurately reminded at the advance time, and then the reminding is not repeated. Specifically, the flow of the method can be seen as shown in fig. 12, which includes:
S1101, searching an alarm clock list, and determining whether the alarm clock moment of the current day exists. If yes, executing S1102A; if not, then S1102B is performed.
S1102A, issuing the earliest alarm clock time of the day to an interrupt module. After that, S1103 is executed.
S1102B, issuing the alarm clock time of the next day 00:00 to an interrupt module.
The detailed description about S1101 may be referred to the related description about S801, the detailed description about S1102B may be referred to the related description about S802A, and the detailed description about S1102B may be referred to the related description about S802B, which are not repeated herein.
The sports watch further issues a time synchronization command through the alarm clock APP, is used for indicating that the shortest alarm clock duration is issued to the interrupt module, and realizes subsequent alarm clock reminding.
If the alarm clock time of the day exists in the alarm clock list, the sports watch can inquire the shortest alarm clock time of the day. Afterwards, the sports watch can send the shortest alarm clock duration to the interrupt module through the alarm clock APP of the application layer. The sports watch may then use the interrupt module to invoke AlarmA the function to manage the shortest alarm time.
Optionally, the shortest alarm clock duration may be an alarm clock duration corresponding to an advanced time of the smart alarm clock time. Taking the intelligent alarm clock with the time of 00:30 and the time of advance of 30 minutes as an example. After the intelligent alarm clock time is set, the sports watch can determine that the advance time is 00:00. Since 00:00 is the earliest time of day, then the sports watch traverses 00:00 to the earliest alarm time of the day, which is 00:00. After the sports watch finishes executing the alarm starting flow of all the alarm clock moments in the previous day, the alarm clock duration corresponding to the new alarm clock moment of 00:00 can be issued to the interrupt module through the alarm clock APP of the application layer. And then S1103 is performed.
S1103, judging whether the current time is 00:00. If yes, S1104 is executed.
S1104, adding a new alarm clock of 00:00, and reminding when the new alarm clock is 00:00. After that, S1105 is executed.
The sports watch determines whether the current time has reached the time to alarm (i.e., 00: 00) in the AlarmA function. If the current time is less than the time to be alarmed, the sports watch can determine that reminding is not needed at the current time. The sports watch may repeatedly perform S1103. Over time, when the time to be set up of 00:00 is reached, the sports watch can send a reminding message to the alarm clock APP by adopting the interrupt module.
In the embodiment of the application, the alarm clock APP carries out reminding under the triggering of the reminding message. After the reminding of 00:00 is finished, the sports watch acquires the shortest alarm clock market in a new day from the alarm clock list and sends the shortest alarm clock market to the interrupt module. Therefore, the alarm clock list of the next day can be acquired on time even if reminding is carried out in advance, and reminding of the subsequent alarm clock is not affected.
S1105, updating the reminding flag bit from the un-reminding state to the reminding bell state.
It should be noted that the sports watch adds a reminding zone bit to the intelligent alarm clock. The ringing flag can be used to mark whether the intelligent alarm clock has been alerted. Whether the intelligent alarm clock reminds in advance or at the moment of the intelligent alarm clock, the numerical value of the reminding zone bit can be updated into the numerical value which indicates the reminding state, such as true or 1. If the intelligent alarm clock does not remind before the advance time, that is, when the intelligent alarm clock does not remind at both the advance time and the intelligent alarm clock time, the value of the reminding flag bit can be a value which indicates the state of not reminding, such as false or 0. Optionally, when the reminding mode is ringing, the reminding flag bit may also be called ringing flag bit.
After the sports watch reminds at the advance time of 00:00, the reminding zone bit can be updated from the un-reminding state to the reminded bell state.
S1106, judging whether the reminding flag bit of the intelligent alarm clock represents the reminded state. If yes, S1107 is performed.
Optionally, after S1106, if the alert flag of the smart alarm is in an un-alert state, the sports watch continues to return to the step of executing S1001.
S1107, not issuing the alarm clock time corresponding to the intelligent alarm clock time to the interrupt module.
Optionally, the sports watch may also perform S1108:
s1108, issuing the shortest alarm clock time after the intelligent alarm clock time.
Under the instruction of the time synchronization command, the sports watch traverses to the intelligent alarm clock time 00:30. when the intelligent alarm clock time 00: and 30, when the alarm clock is at the earliest alarm clock time in the alarm clock list, the sports watch judges whether the reminding zone bit is in a reminded state or not. If the sports watch reminds at the advance time of 00:00, the reminding flag bit is in a reminiscent state at the moment. The sports watch does not need to send the alarm clock time corresponding to the intelligent alarm clock time to the interrupt module through the alarm clock APP, namely, the sports watch does not need to remind at the intelligent alarm clock time. Therefore, repeated reminding of the intelligent alarm clock can be avoided, and user experience is improved.
Alternatively, another possible implementation manner of step S1104 includes, on the basis of the embodiment shown in fig. 11, the following steps:
after the sports watch adds a new alarm clock with the advance time of 00:00, the sleeping state of the user is acquired at the advance time of 00:00. Alternatively, if the user is in a shallow sleep state at 00:00, the sports watch may be alerted directly. And then executing S1104 and subsequent steps to ensure that the user is reminded in advance and avoid delaying the business which the user needs to remind.
If the user is in a deep sleep state at 00:00, the sports watch can not remind and the reminding zone bit can not be modified. That is, the alert flag remains in the non-alert state. When the sports watch is under the instruction of the time synchronization command, traversing to the intelligent alarm clock time 00:30. when the intelligent alarm clock time 00: and 30, when the alarm clock is at the earliest alarm clock time in the alarm clock list, the sports watch judges whether the reminding zone bit is in a reminded state or not. At this time, the sports watch does not remind at the advance time of 00:00, and the reminding flag bit is in a non-reminding state. The sports watch can send the alarm clock duration corresponding to the intelligent alarm clock time to the interrupt module through the alarm clock APP. When the intelligent alarm clock time is reached, the sports watch reports an alarm clock message to the alarm clock APP through the interrupt module. In response to the alarm clock message, the sports watch reminds through the alarm clock APP, ensures that the user is reminded on time, and further does not disturb the deep sleep of the user, so that the user experience is ensured. And then, the sports watch can also send the shortest alarm clock time after the intelligent alarm clock time to the interrupt module to ensure the follow-up alarm clock on-time reminding.
Alternatively, the sports watch may detect whether the user wears the sports watch through the wear detection module. Under the condition that the user wears the sports watch, the sports watch can also adopt the sleep algorithm module to detect whether the sleep state of the user is a deep sleep state or a shallow sleep state. Alternatively, the athlete may monitor the user for a preset period of time, e.g., the first five minutes of activity becoming less, and the latter ten minutes of activity becoming less further, then determine that the user is likely to enter a sleep state. If the heart rate of the user is below the heart rate threshold at deep sleep, for example below 70 times/min, then determining that the user is in a state of deep sleep; if the heart rate of the user is now below the heart rate threshold at shallow sleep and above the heart rate threshold at deep sleep, for example below 80 times/min and above 70 times/min, it is determined that the user is in a state of shallow sleep. The embodiment of the application does not limit the mode how the sports watch determines the sleep state.
Optionally, when the alarm clock reminding method is applied to a smart phone, the sleep state can be detected through a sports watch or other wearable devices and transmitted to the smart phone, which is not described herein.
In the embodiment of the application, under the condition that the advance time and the intelligent alarm clock time cross days, namely the advance time is before 00:00, the intelligent alarm clock time is after 00:00. When the sports watch reminds in advance, and the time of the intelligent alarm clock is traversed at 00:00 times, the sports watch can still traverse the time of the intelligent alarm clock. Therefore, the sports watch can repeatedly remind at the advanced time and the intelligent alarm clock time, and the reminding mode is inconsistent with the mode expected by the user, so that the user experience is affected. Based on the above, in the embodiment of the application, after the sports watch can remind in advance, the reminding zone bit of the intelligent alarm clock is modified into the reminded state. When the intelligent alarm clock arrives, the reminding zone bit is changed into the reminded state by inquiring, and the sports watch does not need to repeatedly remind at the moment of the intelligent alarm clock. The method can effectively avoid the advance time being 00: under the condition of 00, the intelligent alarm clock repeatedly reminds, so that user experience is improved.
Fig. 13 shows a schematic diagram of an alarm clock reminding process of a situation that a time of advance and a time of a smart alarm clock cross days, including:
S1201, searching a current alarm clock list, and determining whether the current alarm clock time exists. If yes, executing S1202A; if not, then S1202B is performed.
S1202A, issuing the shortest alarm clock time corresponding to the earliest alarm clock time of the day to an interrupt module. After that, S1203 is executed.
S1202B, issuing alarm clock time corresponding to the alarm clock time of the next day 00:00 to an interrupt module.
The detailed description about S1201 may be referred to the related description about S801, the detailed description about S1202A may be referred to the related description about S802A, and the detailed description about S1202B may be referred to the related description about S802B, which are not repeated herein.
And S1203, judging whether a reminding zone bit corresponding to the advanced time is in a reminded state when the advanced time is the earliest alarm clock time of the day. If not, then S1204 is performed.
And the sports watch transmits the shortest alarm clock time corresponding to the earliest alarm clock time of the day to the interrupt module. And when other alarm clocks before the advance time are all reminded to finish, the advance time is the earliest alarm clock time of the day. At this time, the sports watch judges whether the reminding flag bit corresponding to the advanced time is in a reminded state. The reminding zone bit corresponding to the advanced moment is the reminding zone bit of the intelligent alarm clock. At this time, since the sports watch has not been reminded at the advanced time, the reminding flag bit of the intelligent alarm clock is in a state of not being reminded, which indicates that the sports watch needs to be reminded, and S1204 is executed by the sports watch.
Optionally, the sports watch may query the corresponding alert flag bit each time the earliest alarm clock time is obtained. If the reminding zone bit indicates that the alarm clock time is in an un-reminding state, the shortest alarm clock time corresponding to the earliest alarm clock time is issued; if the reminding flag bit indicates that the alarm clock time is in a reminded state, the shortest alarm clock time is not sent out any more, and the alarm clock time corresponding to the next alarm clock time is continuously inquired, so that the same alarm clock can be prevented from being reminded repeatedly.
And S1204, issuing alarm clock time corresponding to the advance time to an interrupt module.
At the moment, the reminding zone bit corresponding to the advanced moment is in an un-reminding state, the sports watch transmits the alarm clock duration corresponding to the advanced moment to the interrupt module, and then the user can be reminded in advance at the advanced moment, so that user experience is ensured.
Taking the intelligent alarm clock time as 00:02 and the advance time as 5 minutes as an example, when the alarm clock time 23:00 of a transaction alarm clock before the advance time of the day, the sports watch reminds. Thereafter, the earliest alarm clock time is the advance time 23:57. And the sports watch inquires the reminding zone bit of the intelligent alarm clock of 00:02. If the reminding zone bit of the intelligent alarm clock is in an un-reminding state, the sports watch transmits the alarm clock duration 1437 minutes corresponding to the advanced time 23:57 to the interrupt module through the alarm clock APP. At this time, 23:57 is the time to be reminded. When 23:57 is reached, the sports watch can remind.
S1205, reminding is carried out at the advanced time, and the reminding zone bit corresponding to the advanced time is changed from the non-reminding state to the reminding state.
After the sports watch transmits the alarm clock time corresponding to the advance time to the interrupt module through the alarm clock APP, when the advance time comes, an alarm clock message can be sent to the alarm clock APP through the interrupt module. In response to the alarm clock message, the sports watch alerts through the alarm clock APP.
S1206, judging whether the current time is 00:00. If yes, S1207 is performed.
S1207, traversing the alarm clock of the next day to obtain an alarm clock list of the next day.
Under the condition that the advance time and the intelligent alarm clock time span the days, after the sports watch reminds at the advance time of 23:57, the sports watch traverses the alarm clock of the next day at the next time of 00:00, and an alarm clock list of the next day is obtained. It should be noted that the obtained alarm clock list of the next day includes the intelligent alarm clock time 00:02.
S1208, when the intelligent alarm clock time is the alarm clock time with the earliest next day, judging whether the reminding zone bit of the intelligent alarm clock is in a reminded state. If yes, S1209 is executed.
S1209, the alarm clock time corresponding to the intelligent alarm clock time is not issued to the interrupt module. After that, execution returns to S1201.
After the alarm clock list of the next day is obtained, the sports watch transmits the shortest alarm clock time corresponding to the earliest alarm clock time in the alarm clock list of the next day to the interrupt module, and reminds.
When the intelligent alarm clock time 00:02 is the earliest alarm clock time of the next day, the sports watch judges whether the reminding zone bit of the intelligent alarm clock is in a reminded state or not. If the state is the reminding state, the sports watch determines that the sports watch normally reminds at the advanced time 23:57 without remixing, so that the alarm clock time length corresponding to the intelligent alarm clock time 00:02 is not required to be issued to the interrupt module, repeated reminding is avoided, and user experience is improved.
After that, the sports watch can return to S1201 to issue the alarm clock duration corresponding to the earliest alarm clock time after the intelligent alarm clock time to the interrupt module, so as to ensure the subsequent alarm clock on-time reminding.
Alternatively, another possible implementation manner of step S1205 includes, based on the embodiment shown in fig. 13, the following steps:
After the sports watch adds a new alarm clock at the advanced time 23:57, the sleeping state of the user is acquired at the advanced time 23:57. Alternatively, if the user is in a shallow sleep state at 23:57, the sports watch may be alerted directly. And then executing S1205 and subsequent steps to ensure that the user is reminded in advance and avoid delaying the business that the user needs to remind.
If the user is in a deep sleep state at 23:57, the sports watch does not remind and the reminding zone bit is not modified. That is, the alert flag remains in the non-alert state. When the sports watch is under the instruction of the time synchronization command, traversing to the intelligent alarm clock time 00:03. when the intelligent alarm clock time 00:03 is the earliest alarm clock moment in the alarm clock list, the sports watch judges whether the reminding zone bit is in the reminded state or not. At this time, the sports watch does not remind the sports watch at the advanced time 23:57, and the reminding flag bit is still in the un-reminding state. The sports watch can send the alarm clock duration corresponding to the intelligent alarm clock time to the interrupt module through the alarm clock APP. When the intelligent alarm clock time is reached, the sports watch reports an alarm clock message to the alarm clock APP through the interrupt module. In response to the alarm message, the sports watch is at smart alarm time 00:03 remind through alarm clock APP, ensure on time to remind the user, still can not disturb user's degree of depth sleep, ensure user experience. And then, the sports watch can also send the alarm clock time corresponding to the earliest alarm clock time after the intelligent alarm clock time to the interrupt module, so that the follow-up alarm clock on-time reminding is ensured.
The embodiment of the application also provides an alarm clock reminding method, which comprises the following steps: acquiring a first alarm clock time and an advance time of a first alarm clock; adding a second clock time to the clock list, wherein the second clock time is the time before the first clock time by the time of the advance duration; if the second alarm clock time is the target time, reminding is carried out at the target time, the state of the first alarm clock is updated from the non-reminding state to the reminded state, and the target time is the time for acquiring an alarm clock list; at the first alarm clock moment, responding to the first alarm clock as the reminded state, and not reminding.
It should be noted that, this first alarm clock is intelligent alarm clock, and first alarm clock moment is intelligent alarm clock moment, and the time of advance is the corresponding lead of intelligent alarm clock. The second alarm clock time is the time of reminding in advance and is called the advance time. The second alarm clock time is the first alarm clock time minus the time of the advance duration. The target time is the time when the alarm clock of the current day is traversed and the alarm clock list is acquired. Alternatively, the target time may be zero point zero (00:00). Alternatively, the target time may be another time, such as 7:00 a.m.
After the intelligent alarm clock is added, the sports watch calculates a second alarm clock time needing to be prompted in advance according to the first alarm clock time and the advanced time length, and adds the second alarm clock time to the alarm clock list so as to remind in advance at the second alarm clock time.
Taking the target time as 00:00 as an example, when the second alarm clock time is 00:00, the sports watch can remind at 00:00, so that the user is reminded in advance. And then, the sports watch also updates the state of the first alarm clock from the non-reminding state to the reminding state.
Alternatively, the specific way to update the state of the first alarm clock may be to modify the alert flag of the smart alarm clock. The sports watch can change the value of the reminding flag bit of the intelligent alarm clock from 0 to 1 or from false to true. Alternatively, 1 and true represent reminded states, and 0 and false represent unhooked states.
The sports watch can inquire the reminding zone bit of the intelligent alarm clock. At this time, the reminding zone bit is updated to be the value of the reminded state, and the sports watch is based on the value of the inquired reminding zone bit as the value representing the reminded state, so that repeated reminding at the first alarm clock moment is not needed. Therefore, repeated reminding of the intelligent alarm clock can be avoided, and user experience is improved.
In some possible implementations, if the second alarm clock time is the target time, reminding is performed at the target time, including: at the target time, determining whether an alarm clock time of the current day exists; if so, when the second alarm clock time is the target time, reminding is carried out at the target time.
In some possible implementations, the method further includes: if the alarm clock time of the current day does not exist, the alarm clock list is updated at the target time of the next day.
Alternatively, taking the target time of 00:00 as an example, the sports watch will traverse all the alarm clocks on the same day at 00:00 a day. If the second alarm clock time is 00:00, that is to say the intelligent alarm clock needs to ring in advance at 00:00. When the sports watch is 00:00, all the alarm clocks are traversed, and an alarm clock list of the current day is obtained. At this time, when the alarm clock time exists in the alarm clock list, and when the sports watch determines that the alarm clock time of the current day exists in the alarm clock list and the second alarm clock time is 00:00, the sports watch reminds at 00:00, so that the sports watch reminds at the expected advance time of the user on time.
If the alarm clock list of the current day does not have the alarm clock time of the current day, the alarm clock is not set on the current day. The sports watch can determine that the next clock time is 00:00 of the next day, and traverse the clock of the next day at the next day of 00:00 to obtain a clock list of the next day.
In some possible implementations, alerting at the target time includes: acquiring a sleep state of a user at a second alarm clock moment; and if the sleeping state is the shallow sleeping state, reminding at the target moment.
The sports watch can also acquire the sleep state of the user when the second alarm clock time arrives. If the sleeping state of the user is the shallow sleeping state, the sports watch can remind at the target time 00:00, namely the second alarm clock time.
In some possible implementations, the method further includes: if the sleeping state is the deep sleeping state, not reminding is carried out at the target moment, and the state of the first alarm clock is kept to be the state of not reminding; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
If the sleeping state of the user at the second alarm clock moment is the deep sleeping state, the sports watch can not remind at the target moment 00:00, namely the second alarm clock moment, so that the deep sleeping of the user is prevented from being influenced. At this time, the value of the reminding flag bit of the intelligent alarm clock represents an untrained state, for example, 0 or false. After the sports watch inquires the alarm clock list of the next day, when the first alarm clock moment arrives, the sports watch inquires the numerical value of the reminding mark position of the intelligent alarm clock, which represents the numerical value of the state not reminded, and then reminds the user on time, and the user is reminded on time, so that the business is prevented from being missed.
In some possible implementations, a sleep state of the user at the second alarm clock time is obtained; if the sleep state is a shallow sleep state, reminding is performed at the target moment, including: sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through the first application program; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out by the first application program at the moment of the second alarm clock; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
It should be noted that the first application program may be an alarm clock APP. The sports watch acquires an alarm clock list of the current day through an alarm clock APP, and sends the shortest alarm clock duration corresponding to the earliest alarm clock time in the alarm clock list to the interrupt module. And the interrupt module sends a reminding message to the alarm clock APP when the earliest alarm clock moment arrives. The sports watch can remind under the condition that the alarm clock APP receives the reminding message.
When the second alarm clock time is the earliest alarm clock time in the alarm clock list and the second alarm clock time is the target time, and when the target time is 00:00, the sports watch issues the alarm clock time corresponding to the second alarm clock time to the interrupt module through the alarm clock APP. And when the second alarm clock time arrives, the interrupt module sends a reminding message to the alarm clock APP. The sports watch can remind under the condition that the alarm clock APP receives the reminding message. Optionally, the sports watch may also acquire the sleep state first, if the alarm clock APP receives the alert message. When the sleeping state is the shallow sleeping state, the sports watch reminds at 00:00. If 00:00, the sleeping state of the user is a deep sleep state, and the sports watch does not remind at 00:00 so as not to disturb the deep sleep of the user.
After the sports watch reminds at 00:00, the numerical value of the reminding zone bit of the intelligent alarm clock can be updated to be the numerical value representing the reminded state. Then, as time passes, when the first alarm clock time is the earliest alarm clock time in the alarm clock list, the sports watch inquires the numerical characterization of the reminding zone bit through the alarm clock APP to be in a reminded state, and the alarm clock time corresponding to the first alarm clock time is not required to be sent to the interrupt module. Based on the above, the interrupt module of the sports watch can not report the alarm clock message at the first alarm clock moment, and the sports watch can not remind at the first alarm clock moment.
In some possible implementations, if the second alarm clock time is before the target time, the first alarm clock time is after the target time, further including: reminding is carried out at the second alarm clock moment, and the state of the first alarm clock is not reminded at the second alarm clock moment; after the second alarm clock reminds at the moment, updating the state of the first alarm clock from the un-remitted state to the remitted state; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
In some possible implementations, at the first alarm clock time, in response to the state of the first alarm clock being a reminded state, not reminding includes: updating an alarm clock list at a target moment to obtain an updated list, wherein the updated list comprises a first alarm clock moment; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
If the second alarm clock time is before the target time, the first alarm clock time is after the target time, that is, under the condition that the intelligent alarm clock time and the advanced time cross days, the sports watch reminds at the advanced time of the second alarm clock time. And then, the sports watch can update the numerical value of the reminding zone bit of the intelligent alarm clock from the numerical value of the un-reminded state to the numerical value of the reminded state. After that, the sports watch still traverses the alarm clock of the next day and acquires an alarm clock list including the first alarm clock time. When the first alarm clock time becomes the earliest alarm clock time in the alarm clock list, the sports watch can inquire the state of the first alarm clock, for example, inquire the reminding zone bit of the intelligent alarm clock. After the first alarm clock reminds at the moment of the first alarm clock, the sports watch updates the numerical value of the reminding zone bit of the first alarm clock to the reminding state, and when the sports watch inquires the reminding zone bit of the first alarm clock, the first alarm clock is confirmed to have been reminded, so that repeated reminding at the moment of the second alarm clock is not needed.
When the intelligent alarm clock time and the advanced time cross the day, the sports watch reminds at the advanced time of the second alarm clock time. After that, at the target moment, the sports watch still traverses the alarm clock of the next day, and the obtained alarm clock list is called an update list. The updated list includes the first alarm clock time. When the first alarm clock time is reached, the state of the first alarm clock is the reminded state, that is, the reminding zone bit of the intelligent alarm clock inquired by the sports watch is a numerical value representing the reminded state, for example, 1 or true, and the reminding is not repeated.
In some possible implementations, alerting at the second alarm clock time includes: acquiring a sleep state of a user at a second alarm clock moment; and if the sleeping state is the shallow sleeping state, reminding at the second alarm clock moment.
In some possible implementations, the method further includes: if the sleeping state is the deep sleeping state, not reminding is carried out at the moment of the second alarm clock, and the state of the first alarm clock is kept to be the state of not reminding; updating an alarm clock list at a target moment to obtain an updated list, wherein the updated list comprises a first alarm clock moment; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
The sports watch can also acquire the sleep state of the user when the second alarm clock time arrives. If the sleeping state of the user is the shallow sleeping state, the sports watch can remind at the target time 00:00, namely the second alarm clock time.
If the sleeping state of the user at the second alarm clock moment is the deep sleeping state, the sports watch can not remind at the target moment 00:00, namely the second alarm clock moment, so that the deep sleeping of the user is prevented from being influenced. At this time, the value of the reminding flag bit of the intelligent alarm clock represents an untrained state, for example, 0 or false. When the target time is reached, the sports watch queries an alarm list of the next day, which is called an update list. The updated list includes the first alarm clock time. The sports watch can inquire the numerical value of the reminding zone bit of the intelligent alarm clock, the reminding zone bit of the intelligent alarm clock is the numerical value representing the state of not reminding, the sports watch reminds, the user is reminded on time, and the situation that the user misses a business is avoided.
In some possible implementations, a sleep state of the user at the second alarm clock moment is obtained; if the sleep state is a shallow sleep state, reminding is performed at the second alarm clock moment, including: sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through the first application program; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out through the first application program; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
It should be noted that the first application program may be an alarm clock APP. The sports watch acquires an alarm clock list of the current day through an alarm clock APP, and sends the shortest alarm clock duration corresponding to the earliest alarm clock time in the alarm clock list to the interrupt module. And the interrupt module sends a reminding message to the alarm clock APP when the earliest alarm clock moment arrives. The sports watch can remind under the condition that the alarm clock APP receives the reminding message.
When the second alarm clock time is the earliest alarm clock time in the alarm clock list, the sports watch transmits the second alarm clock time or the corresponding alarm clock time to the interrupt module through the alarm clock APP. And when the second alarm clock time arrives, the interrupt module sends a reminding message to the alarm clock APP. The sports watch can remind under the condition that the alarm clock APP receives the reminding message, so that reminding at the advanced moment is achieved. Optionally, the sports watch may also acquire the sleep state first, if the alarm clock APP receives the alert message. When the sleeping state is the shallow sleeping state, the sports watch reminds at the moment of the second alarm clock. If the second alarm clock time is the deep sleep state, the sports watch does not remind at the second alarm clock time so as not to disturb the deep sleep of the user.
After the sports watch reminds at the moment of the second alarm clock, the numerical value of the reminding zone bit of the first alarm clock, namely the intelligent alarm clock, can be updated into the numerical value representing the reminded state. Then, as time goes on, the target time is 00:00, and the sports watch traverses the alarm clock of the next day to obtain an updated list of the next day. When the first alarm clock time is the earliest alarm clock time in the updated list, the sports watch inquires the numerical value of the reminding zone bit through the alarm clock APP to be characterized as the reminded state, and the alarm clock time corresponding to the first alarm clock time is not required to be sent to the interrupt module. Based on the above, the interrupt module of the sports watch can not report the alarm clock message at the first alarm clock moment, and the sports watch can not remind at the first alarm clock moment any more, so that repeated reminding is avoided.
Examples of the methods provided by the present application are described in detail above. It is to be understood that the corresponding means, in order to carry out the functions described above, comprise corresponding hardware structures and/or software modules for carrying out the respective functions. Those of skill in the art will readily appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations of hardware and computer software. Whether a function is implemented as hardware or computer software driven hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The application can divide the alarm clock reminding device into functional modules according to the method example, for example, each function can be divided into each functional module, and two or more functions can be integrated into one module. The integrated modules may be implemented in hardware or in software functional modules. It should be noted that, the division of the modules in the present application is illustrative, and is merely a logic function division, and other division manners may be implemented in practice.
Fig. 14 shows a schematic structural diagram of an alarm clock reminding device provided by the application. The apparatus 1400 includes:
an obtaining module 1401 is configured to obtain a first alarm clock time and an advance duration of the first alarm clock.
The adding module 1402 is configured to add a second alarm clock time to the alarm clock list, where the second alarm clock time is a time before the first alarm clock time by a time before the first alarm clock time.
The reminding module 1403 is configured to, when the second alarm clock time is a target time, remind at the target time, update the state of the first alarm clock from the un-reminding state to the reminded state, and the target time is the time of acquiring the alarm clock list.
The reminding module 1403 is further configured to respond to the first alarm clock being in a reminded state at the moment of the first alarm clock, and not to remind.
Optionally, a reminder module 1403 is specifically configured to determine, at a target time, whether an alarm clock time of the day exists; if so, when the second alarm clock time is the target time, reminding is carried out at the target time.
Optionally, the adding module 1402 is further configured to update the alarm clock list at a target time of the next day if there is no alarm clock time of the current day.
Optionally, a reminding module 1403 is specifically configured to obtain a sleep state of the user at the second alarm clock moment; and if the sleeping state is the shallow sleeping state, reminding at the target moment.
Optionally, the reminding module 1403 is specifically configured to, if the sleep state is a deep sleep state, not remind at the target moment, and keep the state of the first alarm clock as an un-reminding state; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
Optionally, the reminding module 1403 is specifically configured to send, by using the first application, an alarm clock duration corresponding to the second alarm clock time to the interrupt module; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out by the first application program at the moment of the second alarm clock; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
Optionally, if the second clock time is before the target time and the first clock time is after the target time, the reminding module 1403 is further configured to remind at the second clock time, where the state of the first clock is not reminded at the second clock time; after the second alarm clock reminds at the moment, updating the state of the first alarm clock from the un-remitted state to the remitted state; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
Optionally, the reminding module 1403 is specifically configured to update the alarm clock list at the target time to obtain an updated list, where the updated list includes the first alarm clock time; at the first alarm clock moment, responding to the state of the first alarm clock as the reminded state, and not reminding.
Optionally, a reminding module 1403 is specifically configured to obtain a sleep state of the user at the second alarm clock time; and if the sleeping state is the shallow sleeping state, reminding at the second alarm clock moment.
Optionally, the reminding module 1403 is specifically configured to, if the sleep state is a deep sleep state, not remind at the second alarm clock moment, and keep the state of the first alarm clock as an un-reminding state; updating an alarm clock list at a target moment to obtain an updated list, wherein the updated list comprises a first alarm clock moment; and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
Optionally, the reminding module 1403 is specifically configured to send, by using the first application, an alarm clock duration corresponding to the second alarm clock time to the interrupt module; determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through an interrupt module; if yes, sending a reminding message to the first application program through the interrupt module; responding to the reminding message, and acquiring a sleep state through the first application program; if the sleep state is the shallow sleep state, reminding is carried out through the first application program; after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program; and responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to the interrupt module through the first application program.
The specific manner in which the apparatus 1400 performs the alarm clock reminding method and the resulting beneficial effects can be seen from the related description in the method embodiments, and will not be repeated here.
The embodiment of the application also provides electronic equipment, which comprises the processor. The electronic device provided in this embodiment may be the terminal device 100 shown in fig. 1, and is configured to perform the alarm clock reminding method described above. In case of an integrated unit, the terminal device may comprise a processing module, a storage module and a communication module. The processing module may be configured to control and manage actions of the terminal device, for example, may be configured to support the terminal device to execute steps executed by the display unit, the detection unit, and the processing unit. The memory module may be used to support the terminal device to execute stored program codes, data, etc. And the communication module can be used for supporting the communication between the terminal equipment and other equipment.
Wherein the processing module may be a processor or a controller. Which may implement or perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. A processor may also be a combination that performs computing functions, e.g., including one or more microprocessors, digital signal processing (DIGITAL SIGNAL processer, DSP) and microprocessor combinations, and so forth. The memory module may be a memory. The communication module can be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip and other equipment which interact with other terminal equipment.
In an embodiment, when the processing module is a processor and the storage module is a memory, the terminal device according to this embodiment may be a device having the structure shown in fig. 1.
The embodiment of the application also provides a computer readable storage medium, in which a computer program is stored, which when executed by a processor, causes the processor to execute the alarm clock reminding method according to any of the above embodiments.
The embodiment of the application also provides a computer program product, which when running on a computer, causes the computer to execute the related steps so as to realize the alarm clock reminding method in the embodiment.
The electronic device, the computer readable storage medium, the computer program product or the chip provided in this embodiment are used to execute the corresponding method provided above, so that the beneficial effects thereof can be referred to the beneficial effects in the corresponding method provided above, and will not be described herein.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another apparatus, or some features may be omitted or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with respect to each other may be an indirect coupling or communication connection via interfaces, devices, or units, and the replacement units may or may not be physically separate, and the components shown as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application may be essentially or a part contributing to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, including several instructions for causing a device (may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read Only Memory (ROM), a random access memory (random access memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present application, and the present application is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present application. Therefore, the protection scope of the application is subject to the protection scope of the claims.
Claims (13)
1. An alarm clock reminding method is characterized by comprising the following steps:
Acquiring a first alarm clock time and an advance time of a first alarm clock;
Adding a second alarm clock time to an alarm clock list, wherein the second alarm clock time is the time of the advanced duration before the first alarm clock time;
If the second alarm clock time is the target time, reminding is carried out at the target time, the state of the first alarm clock is updated from the state of not reminding to the state of reminding, and the target time is the time for acquiring the alarm clock list;
And at the moment of the first alarm clock, responding to the fact that the first alarm clock is in a reminded state, and not reminding.
2. The method of claim 1, wherein if the second alarm clock time is a target time, alerting at the target time comprises:
at the target time, determining whether an alarm clock time of the current day exists;
If so, reminding is carried out at the target time when the second alarm clock time is the target time.
3. The method according to claim 2, wherein the method further comprises:
if the alarm clock time of the current day does not exist, the alarm clock list is updated at the target time of the next day.
4. A method according to any one of claims 1 to 3, wherein said alerting at said target time comprises:
acquiring a sleep state of a user at the second alarm clock moment;
and if the sleeping state is a shallow sleeping state, reminding at the target moment.
5. The method according to claim 4, wherein the method further comprises:
If the sleep state is a deep sleep state, not reminding is carried out at the target moment, and the state of the first alarm clock is kept to be an un-reminding state;
and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
6. The method of claim 4, wherein the acquiring the sleep state of the user at the second alarm clock time; if the sleep state is a shallow sleep state, reminding is performed at the target moment, including:
Sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through a first application program;
Determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through the interrupt module;
if yes, sending a reminding message to the first application program through the interrupt module;
Responding to the reminding message, and acquiring the sleep state through the first application program;
If the sleep state is a shallow sleep state, reminding is carried out by the first application program at the moment of the second alarm clock;
after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program;
And responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to an interrupt module through the first application program.
7. The method according to any one of claims 1 to 3,5, 6, wherein if the second alarm clock time is before the target time, the first alarm clock time is after the target time, the method further comprises:
reminding is carried out at the second alarm clock moment, and the state of the first alarm clock is not reminded at the second alarm clock moment;
After the second alarm clock reminds, updating the state of the first alarm clock from the un-remitted state to the remitted state;
and at the moment of the first alarm clock, responding to the state of the first alarm clock as the reminded state, and not reminding.
8. The method of claim 7, wherein at the first alarm clock time, in response to the state of the first alarm clock being a reminded state, not reminding comprises:
Updating the alarm clock list at the target time to obtain an updated list, wherein the updated list comprises the first alarm clock time;
and at the moment of the first alarm clock, responding to the state of the first alarm clock as the reminded state, and not reminding.
9. The method of claim 7, wherein the alerting at the second alarm clock time comprises:
acquiring a sleep state of a user at the second alarm clock moment;
and if the sleep state is a shallow sleep state, reminding at the moment of the second alarm clock.
10. The method according to claim 9, wherein the method further comprises:
If the sleep state is a deep sleep state, not reminding is carried out at the moment of the second alarm clock, and the state of the first alarm clock is kept to be a state of not reminding;
Updating the alarm clock list at the target time to obtain an updated list, wherein the updated list comprises the first alarm clock time;
and responding to the first alarm clock in an un-reminding state, and reminding at the moment of the first alarm clock.
11. The method according to claim 9 or 10, wherein the acquiring the sleep state of the user at the second alarm clock moment; if the sleep state is a shallow sleep state, reminding is performed at the second alarm clock moment, including:
Sending the alarm clock duration corresponding to the second alarm clock moment to an interrupt module through a first application program;
Determining whether the current time reaches the second alarm clock time or not according to the alarm clock time corresponding to the second alarm clock time through the interrupt module;
if yes, sending a reminding message to the first application program through the interrupt module;
Responding to the reminding message, and acquiring the sleep state through the first application program;
If the sleep state is a shallow sleep state, reminding by the first application program;
after reminding by the first application program, updating the state of the first alarm clock from an un-reminding state to a reminded state by the first application program;
And responding to the state update of the first alarm clock to be the reminded state, and not sending the alarm clock duration corresponding to the first alarm clock time to an interrupt module through the first application program.
12. An electronic device, comprising: a processor, a memory, and an interface;
The processor, the memory and the interface cooperate to cause the electronic device to perform the method of any one of claims 1 to 11.
13. A computer readable storage medium, characterized in that the computer readable storage medium has stored therein a computer program which, when executed by a processor, causes the processor to perform the method of any of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410629018.1A CN118210219B (en) | 2024-05-21 | 2024-05-21 | Alarm clock reminding method, electronic equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410629018.1A CN118210219B (en) | 2024-05-21 | 2024-05-21 | Alarm clock reminding method, electronic equipment and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN118210219A CN118210219A (en) | 2024-06-18 |
CN118210219B true CN118210219B (en) | 2024-09-13 |
Family
ID=91450805
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410629018.1A Active CN118210219B (en) | 2024-05-21 | 2024-05-21 | Alarm clock reminding method, electronic equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118210219B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277255A (en) * | 2017-06-28 | 2017-10-20 | 维沃移动通信有限公司 | A kind of alarm clock control method and mobile terminal |
CN111558120A (en) * | 2020-05-07 | 2020-08-21 | 上海闻泰电子科技有限公司 | Sleep wake-up method, device, computer equipment and computer readable storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019174025A1 (en) * | 2018-03-16 | 2019-09-19 | 华为技术有限公司 | Wake-up management method, timer management method, and terminal device |
CN114567694B (en) * | 2022-02-28 | 2024-09-06 | 维沃移动通信有限公司 | Alarm clock reminding method and device |
CN115617475A (en) * | 2022-09-28 | 2023-01-17 | 青岛经济技术开发区海尔热水器有限公司 | Method and device for setting circulating alarm clock, electronic equipment and storage medium |
-
2024
- 2024-05-21 CN CN202410629018.1A patent/CN118210219B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107277255A (en) * | 2017-06-28 | 2017-10-20 | 维沃移动通信有限公司 | A kind of alarm clock control method and mobile terminal |
CN111558120A (en) * | 2020-05-07 | 2020-08-21 | 上海闻泰电子科技有限公司 | Sleep wake-up method, device, computer equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN118210219A (en) | 2024-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6477117B1 (en) | Alarm interface for a smart watch | |
JP2022153424A (en) | User interface visualization in hybrid smart watch | |
US6556222B1 (en) | Bezel based input mechanism and user interface for a smart watch | |
CN109196469A (en) | For may customize the premise equipment of electronic notification | |
KR102446329B1 (en) | Device For Providing Health Management Service and Method Thereof | |
CN106155497B (en) | Apparatus and method for providing additional information according to rotational input | |
CN113094112A (en) | Method and apparatus for automatically adjusting notification operations based on changes in physical activity levels | |
KR20160099423A (en) | Electronic device for inputting sleeping information and method for controlling thereof | |
WO2021213337A1 (en) | Usage monitoring method for wearable electronic device, medium, and electronic device | |
WO2021175272A1 (en) | Method for displaying application information and related device | |
KR102613490B1 (en) | Electronic device and method for providing user's activity information thereof | |
CN113220176B (en) | Display method and device based on widget, electronic equipment and readable storage medium | |
CN116644243B (en) | Card punching recommendation method and device and terminal equipment | |
CN108702806A (en) | Electronic equipment and operating method for it | |
CN110658717B (en) | Alarm clock control method, device, equipment and storage medium | |
CN118210219B (en) | Alarm clock reminding method, electronic equipment and computer readable storage medium | |
JP6740611B2 (en) | Information processing apparatus, information processing method, and program | |
CN115209514B (en) | Method for closing cellular communication function and related electronic equipment | |
US20240242591A1 (en) | System For Contextually Driven, Personalized, In-Time Utility For Wearable Electronic Devices | |
WO2022247383A1 (en) | Prompt method, graphical user interface, and related apparatus | |
CN116708653B (en) | Schedule reminding method and related device | |
CN116841686B (en) | Application page display method | |
US20240231560A9 (en) | Shortcut icon display method and terminal device | |
CN117130527B (en) | Schedule management method, electronic device, and computer-readable storage medium | |
WO2023174158A1 (en) | Terminal device control method and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |