CN117706901A - Alarm clock time calibration method, device, equipment and storage medium - Google Patents
Alarm clock time calibration method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN117706901A CN117706901A CN202410042209.8A CN202410042209A CN117706901A CN 117706901 A CN117706901 A CN 117706901A CN 202410042209 A CN202410042209 A CN 202410042209A CN 117706901 A CN117706901 A CN 117706901A
- Authority
- CN
- China
- Prior art keywords
- alarm clock
- time
- target
- calibration
- target alarm
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G04—HOROLOGY
- G04G—ELECTRONIC TIME-PIECES
- G04G5/00—Setting, i.e. correcting or changing, the time-indication
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Electric Clocks (AREA)
Abstract
The embodiment of the invention discloses an alarm clock time calibration method, an alarm clock time calibration device and a storage medium, wherein the method comprises the following steps: the target alarm clock setting device sends a time calibration instruction to the target alarm clock timing device at least twice under the condition of receiving an alarm clock setting instruction; the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error. The technical scheme of the embodiment of the invention solves the problem that in the prior art, in the time calibration mode of the alarm clock, the accuracy and the energy conservation of time calibration are insufficient, and can calibrate the time of the alarm clock per unit time under the condition that an alarm clock instruction exists, thereby improving the accuracy and the energy conservation of time calibration of the alarm clock.
Description
Technical Field
The embodiment of the invention relates to the technical field of electric furniture, in particular to an alarm clock time calibration method, an alarm clock time calibration device, alarm clock time calibration equipment and a storage medium.
Background
In the conventional alarm Clock timing process, the Real Time Clock (RTC) is used for timing, because the Time of the Real Time Clock is divided by an external crystal oscillator, the crystal oscillator has an error (the accuracy cannot be 100%), and generally has an error of 10ppm (the deviation is bidirectional and can be fast or slow). Meanwhile, unlike a clock, the clock does not need to ensure that the time of the whole time period is accurate, and only needs to ensure that the time in the process of having the clock instruction is accurate. There is therefore a need for a way to adapt the time alignment of an alarm clock.
Disclosure of Invention
The embodiment of the invention provides an alarm clock time calibration method, an alarm clock time calibration device and a storage medium, which can calibrate the time of an alarm clock per unit time under the condition that an alarm clock instruction exists, and improve the accuracy and energy conservation of the alarm clock time calibration.
In a first aspect, an embodiment of the present invention provides a method for calibrating an alarm clock time, including:
the target alarm clock setting device sends a time calibration instruction to the target alarm clock timing device at least twice under the condition of receiving an alarm clock setting instruction;
the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error.
In a second aspect, an embodiment of the present invention provides an alarm clock time calibration apparatus, including:
the time calibration instruction sending module is used for sending at least two time calibration instructions to the target alarm clock timing device under the condition that the target alarm clock setting device receives the alarm clock setting instruction;
and the alarm clock time calibration module is used for determining a target time error according to the time calibration instruction by the target alarm clock timing device and performing time calibration per unit time according to the target time error.
In a third aspect, an embodiment of the present invention provides a computer apparatus, including:
one or more processors;
a memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the alarm clock time calibration method of any of the embodiments.
In a fourth aspect, an embodiment of the present invention provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the alarm clock time calibration method according to any of the embodiments.
According to the technical scheme provided by the embodiment of the invention, the target alarm clock setting device sends at least two time calibration instructions to the target alarm clock timing device under the condition that the alarm clock setting instruction is received; the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error. The technical scheme of the embodiment of the invention solves the problem that in the prior art, in the time calibration mode of the alarm clock, the accuracy and the energy conservation of time calibration are insufficient, and can calibrate the time of the alarm clock per unit time under the condition that an alarm clock instruction exists, thereby improving the accuracy and the energy conservation of time calibration of the alarm clock.
Drawings
FIG. 1 is a flowchart of an alarm clock time calibration method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another method for calibrating an alarm clock time according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of an alarm clock time calibration system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of the operation of an alarm clock time calibration system according to an embodiment of the present invention;
FIG. 5 is a workflow diagram of an alarm clock time calibration system provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of an alarm clock time calibration device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 is a flowchart of an alarm clock time calibration method provided by an embodiment of the present invention, where the embodiment of the present invention is applicable to a scenario in which an alarm clock time is calibrated, the method may be performed by an alarm clock time calibration device, and the device may be implemented by software and/or hardware.
As shown in fig. 1, the alarm clock time calibration method includes the steps of:
s110, the target alarm clock setting device sends at least two time calibration instructions to the target alarm clock timing device under the condition that the alarm clock setting instruction is received.
The target alarm clock setting device can be a device for setting alarm clock instruction related information. Specifically, the target alarm clock setting device may be a terminal device. Such as a cell phone, computer, etc. The alarm clock setting instruction may be an instruction to set a target alarm clock task. Specifically, the target object can edit related attribute information of the alarm clock, such as information of alarm clock reminding time, alarm clock action and the like, on an interactive interface of the target alarm clock setting device, and after the related attribute information of the alarm clock is edited, the target object can click a corresponding alarm clock setting completion control, so that the target alarm clock setting device receives an alarm clock setting instruction.
Further, the target alarm clock timing device may be a device for performing time counting and executing alarm clock reminding tasks. The target alarm clock timing device can calibrate the time of the alarm clock under the condition that an alarm clock reminding task exists. Specifically, the target alarm clock timing device is timed by the frequency of the corresponding external crystal oscillator, and the frequency of the external crystal oscillator has a certain error, so that the time of the target alarm clock timing device also has a certain error with the actual time. Thus, the correction of the timing error of the target alarm clock timing device can be considered later.
The time calibration instructions may be instructions for calibrating the current time of the target alarm clock timing apparatus. Specifically, the time calibration instruction may include current time information acquired by the target alarm clock setting device.
For example, the target alarm clock setting device may be connected to the internet to obtain the accurate current time in the internet. The target alarm clock timing device can take the current time acquired from the Internet as the first current calibration time when receiving an alarm clock setting instruction, and generate a first calibration instruction according to the first current calibration time. The first current calibration time may be used to set a current time of the target alarm clock timing device and cause the target alarm clock timing device to begin timing. Specifically, after the target alarm clock setting device obtains the first current calibration time, the first current calibration time can be sent to the target alarm clock timing device, so that the target alarm clock timing device takes the first current calibration time as the current time of the alarm clock and performs timing.
Further, the target alarm clock setting device can acquire the current time in the internet again at intervals of a preset unit time length, and according to the acquired current time as the second current calibration time, generate a second calibration instruction according to the second current calibration time, and send the second calibration instruction to the target alarm clock timing device. The second calibration instructions may be used to subsequently determine a timing error of the target alarm clock timing apparatus.
S120, the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error.
The target time error may be an error of time timing performed by the target alarm clock timing device within a preset unit time. Specifically, after the target alarm clock timing device receives the second calibration instruction, the second current calibration time in the second calibration instruction and the current time of the target alarm clock timing device can be differenced, so that a target time error is obtained. Wherein the second current calibration time may be understood as the actual current time. The difference between the second current calibration time in the second calibration instruction and the current time of the target alarm clock timing device can be used as a target time error.
Furthermore, a unit time length can be preset at each interval, and the target time error is subtracted from the current alarm clock time of the target alarm clock timing device, so that the calibration process of the current alarm clock time of the target alarm clock is realized. By determining the error between the timing time and the actual time of the target alarm clock timing device in unit time and then calibrating the time of the target alarm clock timing device based on the error periodicity, time calibration steps can be introduced as little as possible under the condition of improving the accuracy of the alarm clock timing, the time calibration workload is reduced, and the energy conservation of the alarm clock is improved.
According to the technical scheme provided by the embodiment of the invention, the target alarm clock setting device sends at least two time calibration instructions to the target alarm clock timing device under the condition that the alarm clock setting instruction is received; the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error. The technical scheme of the embodiment of the invention solves the problem that in the prior art, in the time calibration mode of the alarm clock, the accuracy and the energy conservation of time calibration are insufficient, and can calibrate the time of the alarm clock per unit time under the condition that an alarm clock instruction exists, thereby improving the accuracy and the energy conservation of time calibration of the alarm clock.
FIG. 2 is a flowchart of another method for calibrating time of an alarm clock according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a scenario in which the time of the alarm clock is calibrated, and further illustrates how the target alarm clock setting device sends a time calibration command to the target alarm clock timing device at least twice based on the above embodiment; the target alarm clock timing device determines a target time error according to a time calibration instruction, and performs time calibration per unit time according to the target time error, and the device can be realized by software and/or hardware and is integrated in computer equipment with an application development function.
As shown in fig. 2, the alarm clock time calibration method includes the steps of:
s210, under the condition that an alarm clock setting instruction is received, the target alarm clock setting device sends first current calibration time to the alarm clock Bluetooth module, so that the target alarm clock timing device uses the first current calibration time as the alarm clock current time to perform timing.
The target alarm clock setting device can be a device for setting alarm clock instruction related information. Specifically, the target alarm clock setting device may be a terminal device. Such as a cell phone, computer, etc. The alarm clock setting instruction may be an instruction to set a target alarm clock task. Specifically, the target object can edit related attribute information of the alarm clock, such as information of alarm clock reminding time, alarm clock action and the like, on an interactive interface of the target alarm clock setting device, and after the related attribute information of the alarm clock is edited, the target object can click a corresponding alarm clock setting completion control, so that the target alarm clock setting device receives an alarm clock setting instruction.
Further, the target alarm clock timing device may be a device for performing time counting and executing alarm clock reminding tasks. The target alarm clock timing device can calibrate the time of the alarm clock under the condition that an alarm clock reminding task exists. The alarm clock Bluetooth module can be an instruction interaction module of the target alarm clock timing device. The alarm clock Bluetooth module can receive the instruction sent by the target alarm clock setting device and send the contacted instruction to other modules in the target alarm clock timing device.
The first current calibration time may be the current time when the alarm clock setting instruction occurs. Specifically, the target alarm clock setting device can be connected with the internet to obtain accurate current time in the internet. The target alarm clock timing device can take the current time acquired from the internet as the first current calibration time when an alarm clock setting instruction is received. The first current calibration time may be used to calibrate the current time of the target alarm clock timing apparatus. Further, after the target alarm clock setting device obtains the first current calibration time, the first current calibration time can be sent to the alarm clock bluetooth module of the target alarm clock timing device, so that the target alarm clock timing device takes the first current calibration time as the current time of the alarm clock and performs timing.
The current time of the alarm clock can be the current time of the target alarm clock timing device. The target alarm clock timing device does not perform timing under the condition of no alarm clock task, and starts to perform alarm clock timing under the condition of the alarm clock task. The clock timing operation is performed only when the clock task exists, so that the energy consumption of the timing device in a non-task state can be reduced, and the energy conservation performance of the clock timing device is improved.
And the target alarm clock timing device takes the first current calibration time as the current time of the alarm clock and starts timing after receiving the first current calibration time. Because the timing of the alarm clock is carried out by the frequency of the external crystal oscillator, and the frequency of the external crystal oscillator has a certain error, the timing time of the alarm clock also has a certain error with the actual time. Thus, the correction of the timing error of the target alarm clock timing device can be considered later.
S220, the target alarm clock setting device sends second current calibration time to an alarm clock Bluetooth module of the target alarm clock timing device at intervals of preset unit time length.
The preset unit duration may be a duration of a preset retransmission calibration time. The second current calibration time may be a second current time sent to the target alarm clock timing apparatus. Specifically, when the unit duration is preset with the first current calibration time interval, the target alarm clock setting device acquires the current time of the internet again, and takes the acquired current time as the second current calibration time. The second current standard time may then be sent to an alarm clock Bluetooth module of the target alarm clock timing apparatus.
S230, the target alarm clock timing module of the target alarm clock timing device determines the second alarm clock current time according to the crystal oscillator frequency of the target crystal oscillator under the condition of the second current calibration time.
The target alarm clock timing module may be a module for timing time in the target alarm clock timing device. Specifically, the target alarm clock timing module can be connected with an external crystal oscillator corresponding to the target alarm clock timing device, and time timing is performed through the crystal oscillator frequency of the external crystal oscillator. The second alarm clock current time may be the current time of the alarm clock of the target alarm clock when the second current calibration time is received. Specifically, the second clock current time may be determined according to the crystal oscillator frequency of the target crystal oscillator under the condition that the target clock timing module receives the second current calibration time.
S240, determining the target time error according to the second alarm clock current time and the second current calibration time.
The target time error may be a time error of a target alarm clock in a preset unit time. The second alarm clock current time can be understood as the current time of the target alarm clock. The second current calibration time may be understood as the actual current time. By differencing the second alarm clock current time and the second current calibration time, a target time error may be determined. I.e. the difference between the current time of the second alarm clock and the second current calibration time is recorded as the target time error.
S250, presetting a unit period at each interval, and calibrating the current alarm clock time of the target alarm clock according to the target time error.
The preset unit period may be a preset period for calibrating the timing time of the target alarm clock. Specifically, the period duration of the preset unit period may be equal to the preset unit duration. And calibrating the timing time of the target alarm clock by presetting a unit time length at each interval. The current alarm clock time may be a real-time timed time of the target alarm clock. Specifically, a unit period can be preset at each interval, and the target time error is subtracted from the current alarm clock time of the target alarm clock, so that the calibration process of the current alarm clock time of the target alarm clock is realized. By determining the error between the timing time and the actual time of the target alarm clock in unit time and then calibrating the time of the target alarm clock based on the error periodicity, time calibration steps can be introduced as little as possible under the condition of improving the timing accuracy of the alarm clock, the time calibration workload is reduced, and the energy conservation of the alarm clock is improved.
Optionally, the target alarm clock setting device may further determine a target alarm clock termination time according to an alarm clock setting instruction; and sending the target alarm clock termination time to the target alarm clock timing device so that the target alarm clock timing device stops the time correction process of the target alarm clock under the condition that the current alarm clock time of the target alarm clock is the target alarm clock termination time.
The target alarm clock end time may be a time when the target alarm clock stops time calibration work. Specifically, the target alarm clock setting device can determine the reminding time of the alarm clock according to the alarm clock setting instruction, and then the reminding time of the alarm clock is used as the target alarm clock termination time. Finally, the target alarm clock setting device can send the target alarm clock ending time to the target alarm clock timing device, so that the target alarm clock timing device stops the time calibration step under the condition that the current alarm clock time is the target alarm clock ending time. The technical scheme of the embodiment of the invention corrects the time of the target alarm clock only when the alarm clock task exists, and stops correcting the time of the target alarm clock after the reminding time of the target alarm clock task is reached. By carrying out time calibration on the middle of the target under the condition that an alarm clock task exists, on one hand, the time accuracy of the target alarm clock when the alarm clock task is executed can be improved, and on the other hand, unnecessary time calibration steps can be reduced in a non-task time period, so that the energy conservation of the target alarm clock is improved.
Optionally, the target alarm clock setting device may further determine a target alarm clock reminding action according to an alarm clock setting instruction; generating a target alarm clock reminding instruction according to the target alarm clock reminding action, and sending the target alarm clock reminding instruction to a target alarm clock timing device; and executing the reminding action of the target alarm clock under the condition that the current alarm clock time of the target alarm clock is the target alarm clock termination time by the target alarm clock timing device.
The target alarm clock alert action may be an alert action when the target alarm clock expiration time is reached. Specifically, the target alarm clock reminding action can be determined according to an alarm clock setting instruction. The reminding action set in the alarm clock setting instruction can be used as a target alarm clock reminding action. The target alarm clock reminding instruction can be an execution instruction corresponding to the target alarm clock reminding action. Specifically, after determining the target alarm clock reminding action, the target alarm clock setting device can generate a corresponding target alarm clock reminding instruction according to the target alarm clock reminding action and send the target alarm clock reminding instruction to the target alarm clock timing device, so that the target alarm clock timing device executes the target alarm clock reminding action corresponding to the target alarm clock reminding instruction when the target alarm clock stops.
Optionally, generating the target alarm clock reminding instruction according to the target alarm clock reminding action includes: generating an alarm clock reminding instruction under the condition that the target alarm clock reminding action is an alarm clock reminding action; generating an intelligent bed reminding instruction under the condition that the target alarm clock reminding action is an intelligent bed reminding action; generating a sound box reminding instruction under the condition that the target alarm clock reminding action is a sound box reminding action; the target alarm clock timing device is respectively connected with a preset intelligent bed and a preset sound box.
The alarm clock reminding action can be an action requiring the target alarm clock to participate in reminding. Under the condition that the target alarm clock reminding action is the alarm clock reminding action, the target alarm clock setting device can generate an alarm clock reminding instruction and send the alarm clock reminding instruction to the target alarm clock timing device. So that the target alarm clock timing device controls the target alarm clock to execute the alarm clock reminding action under the condition that the target alarm clock termination time is reached.
The intelligent bed reminding action can be an action requiring the preset intelligent bed to participate in alarm clock reminding. Under the condition that the target alarm clock reminding action is an intelligent reminding action, the target alarm clock setting device can generate an intelligent bed reminding instruction and send the intelligent bed reminding instruction to the target alarm clock timing device, so that the target alarm clock timing device sends an intelligent bed executing instruction to a preset intelligent bed under the condition that the target alarm clock stopping time is reached, and the preset intelligent bed executes the intelligent bed reminding action.
Wherein, the intelligent bed reminding action can comprise zero gravity action, snore stopping action, massage reminding action, lamp belt reminding action, leveling action, preset action and the like. Optionally, the intelligent bed reminding instruction includes: at least one of a zero gravity reminding instruction, a snore stopping action instruction, a massage reminding instruction, a lamp belt reminding instruction, a leveling reminding instruction and a preset action reminding instruction. The target alarm clock timing device can generate corresponding intelligent bed reminding instructions according to intelligent bed reminding actions. Under the condition that the target alarm clock reminding instruction is a zero gravity reminding instruction, the intelligent bed can execute zero gravity action of the intelligent bed when the alarm clock is stopped, so as to remind a target object on the intelligent bed. Under the condition that the target alarm clock reminds the snore action instruction, the preset intelligent bed can execute the snore stopping action when the alarm clock is in the ending time. Under the condition that the target alarm clock reminding instruction is a lamp belt reminding instruction, the preset intelligent bed can execute the lamp belt reminding action when the alarm clock is stopped. Wherein the action of reminding the lamp strip comprises, but is not limited to, actions such as flashing the lamp strip. Under the condition that the target alarm clock reminding instruction is a leveling reminding instruction, the intelligent bed can execute the leveling action of the intelligent bed when the alarm clock is stopped. Under the condition that the target alarm clock reminding instruction is a preset action reminding instruction, the preset intelligent bed can execute corresponding preset actions when the alarm clock stops. The preset action can be set in advance by an operator.
Further, the sound box reminding instruction can be an action that the preset sound box is needed to participate in alarm clock reminding. Under the condition that the target alarm clock reminding action is the sound box reminding action, the target alarm clock setting device can generate an alarm clock reminding instruction and send the alarm clock reminding instruction to the target alarm clock timing device. Under the condition that the target alarm clock timing device reaches the target alarm clock termination time, a corresponding sound box execution instruction is sent to the preset sound box, so that the preset sound box executes the sound box reminding action. Optionally, the speaker kicking action includes, but is not limited to, playing a specified musical composition through a preset speaker.
According to the technical scheme provided by the embodiment of the invention, under the condition that an alarm clock setting instruction is received by the target alarm clock setting device, a first current calibration time is sent to the alarm clock Bluetooth module, so that the target alarm clock timing device takes the first current calibration time as the alarm clock current time to perform timing; the target alarm clock setting device sends second current calibration time to the alarm clock Bluetooth module at intervals of preset unit time length; the target alarm clock timing device obtains the current time of the target alarm clock under the condition that the second current calibration time is received, and obtains the current time of the second alarm clock; determining the target time error according to the second alarm clock current time and the second current calibration time; and presetting a unit period at each interval, and calibrating the current alarm clock time of the target alarm clock according to the target time error. The technical scheme of the embodiment of the invention solves the problem that in the prior art, in the time calibration mode of the alarm clock, the accuracy and the energy conservation of time calibration are insufficient, and can calibrate the time of the alarm clock per unit time under the condition that an alarm clock instruction exists, thereby improving the accuracy and the energy conservation of time calibration of the alarm clock.
Fig. 3 is a schematic structural diagram of an alarm clock time calibration system according to an embodiment of the present invention. As shown in fig. 3, wherein the left side component is a "target alarm clock setting device"; the middle part is a target alarm clock timing device; the right part is an external crystal oscillator corresponding to the target alarm clock timing device. Wherein, target alarm clock timing device includes: bluetooth module, central control unit, RTC timing module and warning module are fast. The Bluetooth module can be used for executing the instruction interaction step; the central control unit can be used for carrying out data processing work; the RTC timing module is used for timing according to the frequency of the external crystal oscillator; the reminding module is used for executing reminding actions of the alarm clock task.
Fig. 4 is a schematic working diagram of an alarm clock time calibration system according to an embodiment of the present invention. As shown in fig. 4, the working steps of the alarm clock time calibration system include: the mobile phone Bluetooth sends the first time to the control box, the control box wirelessly receives the first time through the Bluetooth and then sends the first time to the MCU, and the MCU recalibrates the internal time and starts timing; the Bluetooth of the mobile phone sends the second time to the control box after the unit time, the control box wirelessly receives the second time through the Bluetooth and then sends the second time to the MCU, the MCU determines the unit time error according to the second time and the current timing time, and then the internal time is calibrated according to the unit time error and the timing is started at intervals.
Fig. 5 is a flowchart illustrating an alarm clock time calibration system according to an embodiment of the present invention. As shown in fig. 5, the workflow of the alarm clock time calibration system includes: the client uses APP (Bluetooth transmission) to send a command for setting reminding time and reminding action to the control box, the APP actually sends twice current time to the control box in preset unit time, the first time is used for setting the current time inside the control box, the second time current time is sent after the unit time (1 s-3s is preset before delivery), so that after the control box receives the second time current time, the deviation (how fast and slow) between the real-time clock of the RTC of the control box in the unit time and the actual time can be judged, a first error is obtained, then the first error is stored, and each unit time (same as the first unit time and preset in the Bluetooth protocol) is timed according to the first error, so that the deviation of crystal oscillator can be ignored, and the accuracy of the real-time is ensured.
The control box uses the first error correction time until the timing is finished, wherein the first error is corrected (obtained) once every time the reminding time and the reminding action are set until the reminding action is set. The next correction (second error) is performed by setting the reminding time and the reminding action next time, the control box covers the first error with the second error, and time correction is started by using the second error.
When the reminding function is not used, the control box does not use the timing function, and the deviation of the crystal oscillator is not considered, so that the control box is low in cost, and can use the crystal oscillator with low precision to obtain an accurate timing result.
The reminding action can be selected by APP, and the selectable actions comprise M1, M2, zero gravity, snore stopping action (alternative scheme), massage, lamp belt and leveling. M1 and M2 are memory actions set by a user; further, the reminding action also comprises a ring, and the control box can be externally connected with a sound box to call the mobile phone ring.
Fig. 6 is a schematic structural diagram of an alarm clock time calibration device according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a scenario in which an alarm clock time is calibrated, and the device may be implemented by software and/or hardware, and integrated into a computer device with an application development function.
As shown in fig. 6, the alarm clock time calibration device includes: a time calibration command sending module 310 and an alarm time calibration module 320.
The time calibration instruction sending module 310 is configured to send a time calibration instruction to the target alarm clock timing device at least twice when the target alarm clock setting device receives the alarm clock setting instruction; the alarm clock time calibration module 320 is configured to determine a target time error according to the time calibration command, and perform time calibration per unit time according to the target time error.
According to the technical scheme provided by the embodiment of the invention, the target alarm clock setting device sends at least two time calibration instructions to the target alarm clock timing device under the condition that the alarm clock setting instruction is received; the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error. The technical scheme of the embodiment of the invention solves the problem that in the prior art, in the time calibration mode of the alarm clock, the accuracy and the energy conservation of time calibration are insufficient, and can calibrate the time of the alarm clock per unit time under the condition that an alarm clock instruction exists, thereby improving the accuracy and the energy conservation of time calibration of the alarm clock.
In an alternative embodiment, the target alarm clock timing apparatus comprises: the alarm clock bluetooth module, the time calibration instruction sending module 310 is specifically configured to: the target alarm clock setting device sends a first current calibration time to the alarm clock Bluetooth module under the condition of receiving an alarm clock setting instruction, so that the target alarm clock timing device takes the first current calibration time as the alarm clock current time to perform timing; and the target alarm clock setting device sends second current calibration time to the alarm clock Bluetooth module at intervals of preset unit time length.
In an alternative embodiment, the target alarm clock timing apparatus further comprises: the alarm clock time calibration module 320 is specifically configured to: the target alarm clock timing module determines the second alarm clock current time according to the crystal oscillator frequency of the target crystal oscillator under the condition that the second current calibration time sent by the alarm clock Bluetooth module is received; determining the target time error according to the second alarm clock current time and the second current calibration time; and presetting a unit period at each interval, and calibrating the current alarm clock time of the target alarm clock according to the target time error.
In an alternative embodiment, the alarm time calibration device further comprises: an alarm clock calibration termination module for: the target alarm clock setting device determines the target alarm clock termination time according to the alarm clock setting instruction; and sending the target alarm clock termination time to the target alarm clock timing device, so that the target alarm clock timing device stops the time correction process of the target alarm clock under the condition that the current alarm clock time of the target alarm clock is the target alarm clock termination time.
In an alternative embodiment, the alarm time calibration device further comprises: the alarm clock reminding action determining module is used for: the target alarm clock setting device determines a target alarm clock reminding action according to the alarm clock setting instruction; generating a target alarm clock reminding instruction according to the target alarm clock reminding action, and sending the target alarm clock reminding instruction to the target alarm clock timing device; and the target alarm clock timing device executes the target alarm clock reminding action under the condition that the current alarm clock time of the target alarm clock is the target alarm clock termination time.
In an optional embodiment, the alarm clock reminding action determining module includes an alarm clock reminding instruction generating instruction for: generating an alarm clock reminding instruction under the condition that the target alarm clock reminding action is an alarm clock reminding action; generating an intelligent bed reminding instruction under the condition that the target alarm clock reminding action is an intelligent bed reminding action; generating a sound box reminding instruction under the condition that the target alarm clock reminding action is a sound box reminding action; the target alarm clock timing device is connected with the preset intelligent bed and the preset sound box respectively.
In an alternative embodiment, the smart bed reminder instructions include: at least one of a zero gravity reminding instruction, a snore stopping action instruction, a massage reminding instruction, a lamp belt reminding instruction, a leveling reminding instruction and a preset action reminding instruction.
The alarm clock time calibration device provided by the embodiment of the invention can execute the alarm clock time calibration method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in fig. 7 is only an example and should not be construed as limiting the functionality and scope of use of embodiments of the invention. The computer device 12 may be any terminal device with computing power that may be configured in an alarm time calibration device.
As shown in fig. 7, the computer device 12 is in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 may be one or more of several types of bus structures including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computer device 12 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard disk drive"). Although not shown in fig. 7, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and/or any devices (e.g., network card, modem, etc.) that enable the computer device 12 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 20. As shown in fig. 7, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be appreciated that although not shown in fig. 7, other hardware and/or software modules may be used in connection with computer device 12, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and data processing by running a program stored in the system memory 28, for example, implementing the alarm clock time calibration method provided by the embodiment of the present invention, the method includes:
the target alarm clock setting device sends a time calibration instruction to the target alarm clock timing device at least twice under the condition of receiving an alarm clock setting instruction;
the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error.
The present embodiment provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements an alarm clock time calibration method as provided by any embodiment of the present invention, comprising:
the target alarm clock setting device sends a time calibration instruction to the target alarm clock timing device at least twice under the condition of receiving an alarm clock setting instruction;
the target alarm clock timing device determines a target time error according to the time calibration instruction, and performs time calibration per unit time according to the target time error.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410042209.8A CN117706901A (en) | 2024-01-11 | 2024-01-11 | Alarm clock time calibration method, device, equipment and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410042209.8A CN117706901A (en) | 2024-01-11 | 2024-01-11 | Alarm clock time calibration method, device, equipment and storage medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN117706901A true CN117706901A (en) | 2024-03-15 |
Family
ID=90148141
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410042209.8A Pending CN117706901A (en) | 2024-01-11 | 2024-01-11 | Alarm clock time calibration method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117706901A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119828437A (en) * | 2025-01-03 | 2025-04-15 | 歌尔股份有限公司 | Time calibration device and method |
-
2024
- 2024-01-11 CN CN202410042209.8A patent/CN117706901A/en active Pending
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN119828437A (en) * | 2025-01-03 | 2025-04-15 | 歌尔股份有限公司 | Time calibration device and method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108495239B (en) | Method, device, equipment and storage medium for accurately and synchronously playing audio among multiple equipment | |
| CN108848274B (en) | Message reminding method, device and equipment | |
| CN117706901A (en) | Alarm clock time calibration method, device, equipment and storage medium | |
| WO2025061087A1 (en) | System-on-a-chip and timestamp capturing method and apparatus thereof, and storage medium | |
| CN113672748A (en) | Multimedia information playing method and device | |
| CN117251180A (en) | Vehicle controller configuration word writing method, device, equipment and storage medium | |
| CN109524010A (en) | A kind of sound control method, device, equipment and storage medium | |
| CN114416012A (en) | Audio continuous playing method and device | |
| CN112732478A (en) | Server parameter modification method, device, equipment and storage medium | |
| WO2023160608A1 (en) | Robot control method and apparatus, and storage medium and robot cluster | |
| CN119127116B (en) | Multi-physical sound card audio data playback method, system, device and product | |
| CN110769316B (en) | Method, device, equipment and storage medium for calculating first frame time | |
| CN109660310B (en) | A clock synchronization method, device, computing device and computer storage medium | |
| CN114244821A (en) | Data processing method, device, equipment, electronic equipment and storage medium | |
| CN115083387A (en) | Test system, test method, electronic device, and computer storage medium | |
| CN119652457A (en) | Multi-core controller clock calibration method, device, equipment and storage medium | |
| CN109799872B (en) | Method and device for improving awakening precision of low-resolution real-time clock and electronic equipment | |
| US20100312927A1 (en) | Io latency reduction | |
| CN113127001B (en) | Method, device, equipment and medium for monitoring code compiling process | |
| CN118964282A (en) | System on chip time synchronization method, device, equipment and storage medium | |
| CN112634884A (en) | Method of controlling output audio, method of outputting audio, apparatus, electronic device, and computer-readable storage medium | |
| CN119449514A (en) | Data communication method, device, equipment and medium | |
| CN112133269B (en) | Audio processing method, device, equipment and medium | |
| CN110008153A (en) | A kind of method of data synchronization, device, equipment and readable storage medium storing program for executing | |
| CN115358693A (en) | Event publishing method based on time axis and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |