Time calibration device and method
By using a time calibration device to determine the standard current time through multiple clock modules and control modules, the problem of insufficient time calibration in medical and health monitoring equipment is solved, and the accuracy and reliability of physiological data recording are achieved.
Patent Information
- Application Number
- CN202510013833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-03
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2045-01-03
AI Technical Summary
Existing medical and health monitoring equipment lacks effective time calibration methods, resulting in inaccurate or missing current times for physiological data recording, which affects the accuracy of data analysis and treatment plans.
A time calibration device is used to calibrate the clock by using the current time of the first clock module and the second clock module. The control module determines the standard current time and sends it to the clock module for updating. The data storage module and the power supply module work together to ensure time accuracy.
It improves timing accuracy, ensures the accuracy of physiological data recording, avoids time errors caused by environmental factors or hardware failures, and supports time calibration during communication interruptions.
Smart Images

Figure CN119828437B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of medical health monitoring, and more particularly, to a time calibration device and method. BACKGROUND
[0002] In the field of medical health monitoring, it is of great significance for the health management of patients to continuously monitor physiological data such as heart rate, blood pressure, blood glucose, and electrocardiogram of the patients. In the process of continuously monitoring physiological data of patients, physiological data is often recorded in synchronization with the current time, so as to analyze the change of physiological data over time and thus carry out targeted treatment.
[0003] However, the current physiological data monitoring device lacks an effective time calibration method, resulting in a problem that the current time record is missing due to environmental influence or hardware failure, or the recorded current time is inaccurate. SUMMARY
[0004] An object of embodiments of the present application is to provide a new technical solution for time calibration.
[0005] According to a first aspect of the present application, a time calibration device is provided, comprising a control module, a first clock module, a second clock module, a data storage module, and a first power supply module, wherein:
[0006] The first clock module is connected to the control module and is configured to output a first current time to the control module.
[0007] The second clock module is connected to the control module and is configured to output a second current time to the control module.
[0008] The control module is configured to determine a standard current time according to the first current time and the second current time, and send the standard current time to at least one of the first clock module and the second clock module, and at least one of the first clock module and the second clock module is configured to update the current time according to the standard current time.
[0009] The data storage module is connected to the control module and is configured to store the standard current time under the control of the control module.
[0010] The first power supply module is connected to the data storage module, the control module, the first clock module, and the second clock module, respectively, to provide the required working power supply.
[0011] Optionally, the device further comprises a communication module.
[0012] The communication module is connected with the control module, and is configured to send the first current time and the second current time to a target device under the control of the control module.
[0013] The control module is configured to receive, through the communication module, the confirmation calibration information and the current network time returned by the target device in response to the first current time and the second current time.
[0014] The first power supply module is connected with the communication module and configured to provide working power for the communication module.
[0015] Optionally, the device further comprises a gating module connected between the data storage module and the first power supply module, and the control module is connected with a control end of the gating module, and is configured to control the gating module to be turned on when the control module is disconnected from the target device, and control the gating module to be turned off when the control module is connected with the target device.
[0016] Optionally, the device further comprises a prompting module connected with the control module and configured to output prompt information under the control of the control module.
[0017] Optionally, the device further comprises a second power supply module connected with the second clock module and configured to provide working power for the second clock module when the first power supply module fails to provide working power for the second clock module.
[0018] Optionally, the first clock module is integrated in the control module.
[0019] Optionally, the first power supply module comprises a power supply, a voltage regulation module and a charging management module.
[0020] The charging management module is connected between the power supply and the voltage regulation module, and the voltage regulation module is connected with the first clock module, the second clock module, the control module and the data storage module, respectively, to provide required working power.
[0021] The control module is connected with the charging management module and configured to control the charging management module to perform charging management on the power supply.
[0022] According to a second aspect of the present disclosure, a time calibration method is provided, which is implemented by the control module of the time calibration device of the first aspect, and the method comprises:
[0023] obtaining the first current time output by the first clock module, and obtaining the second current time output by the second clock module.
[0024] According to the first current time and the second current time, a standard current time is determined, and the standard current time is sent to at least one of the first clock module and the second clock module, so that at least one of the first clock module and the second clock module updates the current time according to the standard current time.
[0025] Optionally, in the case where the control module is disconnected from the target device, the determining of the standard current time according to the first current time and the second current time, and the sending of the standard current time to at least one of the first clock module and the second clock module, comprises:
[0026] In the case where the first current time is a set abnormal time, the second current time is taken as the standard current time, and the standard current time is sent to the first clock module.
[0027] In the case where the second current time is the set abnormal time, the first current time is taken as the standard current time, and the standard current time is sent to the second clock module.
[0028] In the case where the first current time and the second current time are both the set abnormal time, a standard current time is determined according to the historical standard time stored in the data storage module, and the standard current time is sent to the first clock module and the second clock module.
[0029] Optionally, the determining of the standard current time according to the first current time and the second current time, and the sending of the standard current time to at least one of the first clock module and the second clock module, further comprises:
[0030] In the case where the second current time reaches any of a plurality of preset time points, the second current time is taken as the standard current time, and the standard current time is sent to the first clock module; wherein the time interval between adjacent preset time points in the plurality of preset time points is a set time period.
[0031] An advantage of the present application is that by obtaining a first current time output by the first clock module and a second current time output by the second clock module, and determining a standard current time according to the first current time and the second current time, and then sending the standard current time to at least one of the first clock module and the second clock module, so that at least one of the first clock module and the second clock module updates the current time according to the standard current time, time calibration can be realized in at least one of the first clock module and the second clock module, and the timing accuracy is improved. By saving the standard current time to the data storage module, data support can be provided for judging whether the first current time and the second current time are abnormal, and data support can also be provided for determining the standard current time when the timing of the first clock module and the second clock module is not accurate. BRIEF DESCRIPTION OF DRAWINGS
[0032] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0033] Figure 1 is a structural schematic diagram of a time calibration device according to an embodiment of the present application;
[0034] Figure 2 is a structural schematic diagram of a time calibration device according to another embodiment of the present application;
[0035] Figure 3 is a flow schematic diagram of a time calibration method according to an embodiment of the present application. DETAILED DESCRIPTION
[0036] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. Note that the relative arrangement, numerical expressions, and numerical values of components and steps set forth in these embodiments are not limiting to the scope of the present application unless otherwise specifically stated.
[0037] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way limiting to the scope of the application or its applications or uses.
[0038] Techniques, methods, and devices known to those of ordinary skill in the relevant art can not be discussed in detail herein. However, where appropriate, such techniques, methods, and devices can be viewed as part of the specification.
[0039] In all of the examples shown and discussed herein, any specific values should be interpreted as merely illustrative and not as a limitation. Thus, other examples of the exemplary embodiments can have different values.
[0040] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.
[0041] The following example illustrates an application scenario of the time calibration device according to an embodiment of this application. It should be noted that the time calibration device according to an embodiment of this application can also be applied to monitoring scenarios of other physiological data besides blood glucose, and is not limited here.
[0042] During the use of a continuous glucose monitoring (CGM) device, the CGM device communicates with a smartphone application (App) to send the detected blood glucose concentration values to the App for display. However, in some cases, the communication connection between the CGM device and the smartphone application (App) may be interrupted for various reasons. During the communication interruption, the CGM device continues to monitor blood glucose concentration values and saves the values locally on the CGM device. Once the connection between the CGM device and the smartphone application (App) is re-established, these blood glucose concentration values collected during the communication interruption will be uploaded to the smartphone application (App) and the cloud for users to view and analyze.
[0043] To accurately distinguish and mark the time of blood glucose concentration values collected during communication interruptions, CGM devices need to store the current time information along with the blood glucose concentration values locally on the device. However, current CGM devices lack effective clock monitoring methods, resulting in potentially inaccurate or missing current time information recorded by the device during communication interruptions with the mobile app. In such cases, users will be unable to accurately identify changes in blood glucose concentration, potentially leading to misunderstandings of the blood glucose curve and consequently, incorrect treatment plans. In extreme cases, this could even pose a threat to the patient's life.
[0044] Therefore, improving the accuracy of the current time information recorded by CGM devices, i.e., how to perform time calibration, has become an urgent technical problem to be solved.
[0045] In view of the above-mentioned technical problems, the present disclosure relates to a new time calibration device 100. Figure 1 A schematic diagram of the structure of a time calibration device 100 according to some embodiments is shown. For example... Figure 1 As shown, the time calibration device 100 includes: a control module 10, a first clock module 20, a second clock module 30, a data storage module 40, and a first power supply module 50.
[0046] The first clock module 20 is connected with the control module 10, and is configured to output a first current time to the control module 10. The second clock module 30 is connected with the control module 10, and is configured to output a second current time to the control module 10. The control module 10 is configured to determine a standard current time according to the first current time and the second current time, and send the standard current time to at least one of the first clock module 20 and the second clock module 30, and the at least one of the first clock module 20 and the second clock module 30 is configured to update the current time according to the standard current time. The data storage module 40 is connected with the control module 10, and is configured to store the standard current time under the control of the control module 10. The first power supply module 50 is connected with the data storage module 40, the control module 10, the first clock module 20 and the second clock module 30 respectively, to provide required working power.
[0047] Specifically, the control module 10 can be a microprocessor (MCU), a digital signal processor (DSP), a programmable logic controller (PLC), etc. It should be understood by those skilled in the art that the specific type of the control module 10 is not limited herein.
[0048] The first clock module 20 can be, for example, a real-time clock (RTC), or other types of clocks, such as a timer, etc., which are not limited herein.
[0049] In an embodiment, the first clock module 20 is integrated in the control module 10.
[0050] For example, the first clock module 20 can be, for example, a real-time clock (RTC), and the control module 10 can be, for example, a microprocessor (MCU), and the real-time clock (RTC) is integrated in the microprocessor (MCU).
[0051] The second clock module 30 can be a cesium atomic clock, a rubidium atomic clock, a high-precision crystal oscillator, etc., which are not limited herein.
[0052] The data storage module 40 can be configured to store the standard current time and physiological data corresponding to the standard current time.
[0053] When the time calibration device 100 is applied to the scene of blood glucose monitoring, the physiological data stored in the data storage module 40 is a blood glucose concentration value.
[0054] The first power supply module 50 can be, for example, a rechargeable lithium battery, etc., which are not limited herein.
[0055] Based on the above-mentioned time calibration device 100, the control module 10 can perform the following steps S3100-S3200 of the time calibration method.
[0056] At step S3100, a first current time output by the first clock module 20 is acquired, and a second current time output by the second clock module 30 is acquired.
[0057] In order to avoid the misjudgment of inconsistency between the first current time and the second current time due to the time difference in acquiring the first current time and the second current time, the first current time output by the first clock module 20 and the second current time output by the second clock module 30 need to be acquired at the same time at step S3100.
[0058] Based on this, in some embodiments, acquiring the first current time output by the first clock module 20 and the second current time output by the second clock module 30 at step S3100 includes steps S3100.1 and S3100.2.
[0059] At step S3100.1, a time acquisition instruction is sent to the first clock module 20 and the second clock module 30 respectively.
[0060] At step S3100.2, the first current time sent by the first clock module 20 based on the time acquisition instruction and the second current time sent by the second clock module 30 based on the time acquisition instruction are received.
[0061] In some embodiments, in order to save the power consumption of the second clock module 30, the second clock module 30 can be woken up and send the second current time to the control module 10 upon receiving the time acquisition instruction.
[0062] At step S3200, a standard current time is determined according to the first current time and the second current time, and the standard current time is sent to at least one of the first clock module 20 and the second clock module 30, so that at least one of the first clock module 20 and the second clock module 30 updates the current time according to the standard current time.
[0063] For example, when the first current time and the second current time are not whole hours (e.g., 1h), the first current time can be taken as the standard current time, and the standard current time is sent to the second clock module 30, so that the second clock module 30 updates the current time according to the standard current time. When either of the first current time and the second current time is a whole hour (e.g., 1h), the second current time is taken as the standard current time, and the standard current time is sent to the first clock module 20, so that the first clock module 20 updates the current time according to the standard current time.
[0064] In some examples, the standard current time can be one of the first current time and the second current time.
[0065] In some examples, the standard current time is determined according to a historical standard current time stored by the data storage module 40. For example, the standard current time can be the historical standard current time stored by the data storage module 40 last time.
[0066] In yet some examples, the standard current time is a current network time.
[0067] In some embodiments, the time calibration apparatus 100 does not include the communication module 70, or the time calibration apparatus 100 includes the communication module 70, but the communication module 70 fails, at this time, the control module 10 of the time calibration apparatus 100 cannot communicate with the target device.
[0068] In the present embodiment, the target device can be an application APP of a mobile phone, or a cloud, which is not limited herein.
[0069] In these embodiments, the step S3200 of determining the standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module 20 and the second clock module 30, comprises steps S3200.1-S3200.3.
[0070] The step S3200.1 is to take the second current time as the standard current time and send the standard current time to the first clock module 20 in the case that the first current time is a set abnormal time.
[0071] In the present embodiment, the first clock module 20 and the second clock module 30 can be tested to obtain the current time output by the first clock module 20 and the second clock module 30 in the case of clock loss or hardware failure, which is taken as the set abnormal time.
[0072] The set abnormal time can be 0, an invalid time, a factory-set time, etc., which is not limited herein.
[0073] In the case that the first current time is the set abnormal time, it means that the first clock module 20 has clock loss or hardware failure, at this time, the second current time is taken as the standard current time, and the standard current time is sent to the first clock module 20, so that the first clock module 20 updates the current time according to the standard current time.
[0074] The step S3200.2 is to take the first current time as the standard current time and send the standard current time to the second clock module 30 in the case that the second current time is the set abnormal time.
[0075] In the embodiment, when the second current time is the set abnormal time, it is explained that the second clock module 30 has clock loss or hardware failure, at this time, the first current time is taken as the standard current time, and the standard current time is sent to the second clock module 30, so that the second clock module 30 updates the current time according to the standard current time.
[0076] Step S3200.3, when the first current time and the second current time are both set abnormal times, the standard current time is determined according to the historical standard time stored in the data storage module 40, and the standard current time is sent to the first clock module 20 and the second clock module 30.
[0077] In the embodiment, when the first clock module 20 and the second clock module 30 both have clock loss or hardware failure, the first current time and the second current time are both set abnormal times, at this time, the historical standard time stored in the data storage module 40 is obtained, and the standard time stored in the historical standard time is taken as the standard current time. The standard current time is sent to the first clock module 20 and the second clock module 30, so that the first clock module 20 and the second clock module 30 update the current time according to the standard current time.
[0078] By comparing the first current time and the second current time with the set abnormal time, the standard current time is determined, which can update the current time of the clock module having clock loss or hardware failure in the first clock module 20 and the second clock module 30 when the time calibration device 100 cannot communicate with the target device, thereby improving the timing accuracy of the first clock module 20 and the second clock module 30.
[0079] In some embodiments, the timing accuracy of the second clock module 30 is greater than the timing accuracy of the first clock module 20.
[0080] Exemplarily, the first clock module 20 is a real-time clock RTC, and the second clock module 30 is an atomic clock, for example, a cesium atomic clock, or a temperature compensated crystal oscillator, etc., and the timing accuracy of the atomic clock is greater than the timing accuracy of the real-time clock RTC.
[0081] In the case that no clock loss and hardware failure occurs in the first clock module 20 and the second clock module 30, the first current time and the second current time also have a large difference with the use of the time calibration device 100, because the timing accuracy of the first clock module 20 is lower than that of the second clock module 30. In order to avoid the influence of the difference in timing accuracy of the first clock module 20 and the second clock module 30 on the accuracy of determining the standard current time, the application sets a set time period, and the second current time output by the second clock module 30 is taken as the standard current time to update the current time of the first clock module 20.
[0082] Based on this, in some embodiments, the step S3200 of determining the standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module 20 and the second clock module 30, further comprises: a step S3211.
[0083] In the step S3211, in the case that the second current time reaches any one of the plurality of preset time points, the second current time is taken as the standard current time, and the standard current time is sent to the first clock module 20.
[0084] In the embodiment, a plurality of preset time points are set in advance. The time interval between adjacent preset time points in the plurality of preset time points is the set time period.
[0085] Exemplarily, the set time period can be 1h, and the plurality of preset time points can be 1h, 2h, 3h, 4h, 5h, 6h, and the like. In the case that the second current time is 1h, the first current time can be 1:05 or 0:55, at this time, 1h is taken as the standard current time, and 1h is sent to the first clock module 20, so that the first clock module 20 updates the first current time (i.e. 1:05 or 0:55) to 1h.
[0086] Because the first clock module 20 (or the second clock module 30) outputs the first current time (or the second current time) as the set abnormal time in the case of hardware failure, the judgment whether the first clock module 20 (or the second clock module 30) has hardware failure can be made based on the continuously acquired first current time (or the second current time). In the case that both the first clock module 20 and the second clock module 30 have hardware failure, a prompt information is output.
[0087] Based on this, in some embodiments, the time calibration device 100 further comprises a prompt module 90.
[0088] In the embodiment, the prompt module 90 can be a buzzer, or other modules capable of outputting prompt information, which is not limited here.
[0089] The prompting module 90 is connected with the control module 10, and is configured to output the prompting information under the control of the control module 10.
[0090] In the embodiments, the method further includes: in a case where both the continuously acquired first current time and the second current time are the set abnormal time, controlling the prompting module 90 to output the prompting information.
[0091] In the embodiments, the prompting information can be sound (such as a beep, etc.), text, etc., which is not limited herein.
[0092] By controlling the prompting module 90 to output the prompting information in a case where both the continuously acquired first current time and the second current time are the set abnormal time, the user can be reminded to replace the time calibration device 100.
[0093] In an example in which the time calibration device 100 is integrated in the blood glucose monitoring device CGM, the user can be reminded to replace the blood glucose monitoring device CGM.
[0094] In some embodiments, the time calibration device 100 further includes a communication module 70.
[0095] The communication module 70 can be, for example, capable of wired or wireless communication. The communication module 70 can include a short-distance communication module 70, for example, any module capable of short-distance wireless communication based on a short-distance wireless communication protocol such as a Hilink protocol, WiFi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, LiFi, etc. The communication module 70 can also include a long-distance communication module 70, for example, any module capable of long-distance communication such as WLAN, GPRS, 2G / 3G / 4G / 5G long-distance communication.
[0096] The communication module 70 is connected with the control module 10, and is configured to send the first current time and the second current time to a target device under the control of the control module 10. The control module 10 is configured to receive, through the communication module 70, confirmation calibration information and a current network time returned by the target device in response to the first current time and the second current time. The first power supply module 50 is connected with the communication module 70, and is configured to provide working power for the communication module 70.
[0097] That is, based on the communication module 70, the control module 10 can be communicatively connected with the target device.
[0098] In the case that the control module 10 is communicatively connected with the target device, the determining, according to the first current time and the second current time, of the standard current time and the sending of the standard current time to at least one of the first clock module and the second clock module in step S3200 comprises: step S3221 and step S3222.
[0099] In step S3221, whether to trigger the time calibration is determined according to the first current time, the second current time and the historical standard time stored in the data storage module 40.
[0100] In one example, if both the first current time and the second current time are time regression compared with the historical standard time, it is determined to trigger the time calibration.
[0101] In another example, if the time difference between the first current time and the second current time is greater than a time difference threshold, and the first current time (or the second current time) is time regression compared with the historical standard time, it is determined to trigger the time calibration.
[0102] It should be understood by those skilled in the art that the specific way of determining whether to trigger the time calibration is not limited herein.
[0103] In some cases, the first current time or the second current time may be deviated due to some accidental factors such as environmental signals. If the current network time is directly used to update the current time of the first clock module 20 or the second clock module 30 at this time, a large amount of data stored in the data storage module 40 will be invalid, thereby seriously affecting the judgment of the physiological data of the patient. Therefore, a more delicate mechanism for triggering the time calibration is needed to avoid the accidental triggering of the time calibration.
[0104] In some embodiments, the determining, according to the first current time, the second current time and the historical standard time stored in the data storage module 40, of whether to trigger the time calibration in step S3221 comprises: step S3221.1 to step S3221.3.
[0105] In step S3221.1, in the case that the time difference between the first current time and the second current time is greater than a time difference threshold, the first current time and the second current time are compared with the historical standard time to determine whether there is time regression in the first current time and the second current time.
[0106] In this embodiment, the time difference threshold can be set according to the frequency of the time calibration by the designer, and the size thereof is not limited herein.
[0107] For example, the first current time is November 1, 2024, 13:00, the second current time is November 1, 2024, 13:31, and the last recorded standard time in the historical standard time is November 1, 2024, 13:30. Therefore, the first current time is a time that has undergone time rollback.
[0108] Step S3221.2, in the case where there is a time that has undergone time rollback in the first current time and the second current time, the first current time and the second current time are sent to the target device, so that the target device determines whether to trigger time calibration based on the first current time and the second current time, and returns confirmation calibration information.
[0109] In this embodiment, after receiving the first current time and the second current time, the target device can compare the first current time and the second current time with the current network time to determine whether the first current time and the second current time are consistent with the current network time. If the first current time and the second current time are consistent with the current network time, the confirmation calibration information indicating that time calibration is not triggered is returned. If at least one of the first current time and the second current time is inconsistent with the current network time, the confirmation calibration information indicating that time calibration is triggered is returned.
[0110] Step S3221.3, in the case where the confirmation calibration information indicates that time calibration is triggered, time calibration is triggered.
[0111] Step S3222, in the case where time calibration is triggered, the current network time sent by the target device and received by the communication module is taken as a standard current time, and the standard current time is sent to the first clock module and the second clock module.
[0112] In this embodiment, the current network time is closer to the current actual time than the first current time and the second current time. Taking the current network time as the standard current time to update the current time of the first clock module 20 and the second clock module 30 can improve the timing accuracy of the first clock module 20 and the second clock module 30.
[0113] In the above embodiment in which the time calibration device 100 includes the communication module 70, the initial time of the first clock module 20 and the second clock module 30 can also be set by the current network time sent by the target device and received by the communication module 70.
[0114] Based on this, in some embodiments, before step S3100 of acquiring the first current time output by the first clock module and step S2200 of acquiring the second current time output by the second clock module, the method further includes steps S2100 and S2200.
[0115] Step S2100, obtaining the current network time sent by the target device and received by the communication module.
[0116] Step S2200, sending the current network time to the first clock module and the second clock module 30 respectively, so that the first clock module and the second clock module set the initial time according to the current network time.
[0117] Exemplarily, when the first clock module 20 and the second clock module 30 are not in use, the first current time output by the first clock module 20 and the second current time output by the second clock module 30 are factory setting time. At this time, the user can send the current network time to the control module 10 of the time calibration device 100 by operating the target device, and the control module 10 sends the current network time to the first clock module 20 and the second clock module 30 so that the first clock module 20 and the second clock module 30 set the initial time according to the current network time.
[0118] In order to save the storage capacity of the data storage module 40 and the high power consumption of the data storage module 40, the data storage module 40 can be enabled to store the standard current time and the physiological data corresponding to the standard current time when the time calibration device 100 is disconnected from the target device, and the target device can directly display the standard current time and the physiological data corresponding to the standard current time when the time calibration device 100 is connected with the target device. At this time, the data storage module 40 is not enabled to store the standard current time and the physiological data corresponding to the standard current time.
[0119] Based on this, in some embodiments, the time calibration device 100 further comprises a gating module 80.
[0120] The gating module 80 is connected between the data storage module 40 and the first power supply module 50, and the control end of the gating module 80 is connected with the control module 10. When the control module 10 is disconnected from the target device, the first current time and the second current time obtained by the control module 10 cannot be sent to the target device, and the target device cannot send the current network time to the control module 10. At this time, the standard current time determined by the control module 10 needs to be stored by the data storage module 40. Therefore, the control module 10 controls the gating module 80 to be turned on. When the control module 10 is connected with the target device, the gating module 80 is controlled to be disconnected.
[0121] Since the time calibration device 100 of the embodiment of the present application calibrates the time through the first clock module 20 and the second clock module 30, in order to avoid insufficient power supply to the second clock module 30, resulting in inaccurate second current time, and further affecting the accuracy of time calibration, a separate power supply module, i.e., the second power supply module 60, can be provided for the second clock module 30.
[0122] Based on this, the time calibration device 100 further comprises a second power supply module 60.
[0123] In this embodiment, the second power supply module 60 can be a common battery, or a rechargeable battery, etc., which is not limited here.
[0124] The second power supply module 60 is connected with the second clock module 30, for providing working power supply for the second clock module 30 in the case that the first power supply module 50 cannot provide working power supply for the second clock module 30.
[0125] In some embodiments, a first unidirectional conduction module is arranged between the second power supply module 60 and the second clock module 30, for preventing current from flowing back.
[0126] In one example, the first unidirectional conduction module is a diode.
[0127] In some embodiments, the first power supply module 50 comprises a power supply 513, a voltage regulation module 511 and a charge management module 512.
[0128] The charge management module 512 is connected between the power supply and the voltage regulation module 511, and the voltage regulation module 511 is connected with the first clock module 20, the second clock module 30, the control module 10 and the data storage module 40 respectively, to provide required working power supply. The control module 10 is connected with the charge management module 512, for controlling the charge management module 512 to manage the charging of the power supply.
[0129] The power supply 513 can be a rechargeable lithium battery, or a rechargeable lead-acid battery, etc., and the specific type of the power supply is not limited here.
[0130] The voltage regulation module 511 can be an LDO (Low Dropout Regulator), a DC / DC converter, etc., and the specific type of the voltage regulation module 511 is not limited here.
[0131] The voltage regulation module 511 can convert the output voltage of the power supply into the working voltage required by the control module 10, the first clock module 20 and the data storage module 40.
[0132] The charge management module 512 can be a module with shipmode function. It has the shipmode function, which can not only manage the charging process of the power supply, but also automatically reduce the power consumption when the time calibration device 100 is not used for a long time, to maintain the power supply capacity. The charge management module 512 can control the charging current and voltage, to prevent overcharging, over-discharging, overheating, etc., thereby prolonging the service life of the power supply and protecting the power supply.
[0133] In some embodiments, a second unidirectional conduction module is arranged between the voltage regulation module 511 and the second clock module 30, and is used to prevent current from flowing backward.
[0134] Exemplarily, the second unidirectional conduction module is a diode.
[0135] According to the embodiments of the present application, the first current time output by the first clock module and the second current time output by the second clock module are acquired, and a standard current time is determined according to the first current time and the second current time. The standard current time is sent to at least one of the first clock module and the second clock module, so that at least one of the first clock module and the second clock module updates the current time according to the standard current time. Thus, time calibration can be performed on at least one of the first clock module and the second clock module, and the timing accuracy is improved.
[0136] By saving the standard current time to the data storage module, data support can be provided for judging whether the first current time and the second current time are abnormal, and data support can also be provided for determining the standard current time when the timing of the first clock module and the second clock module is not accurate.
[0137] Figure 3 A time calibration method is shown, which is applied to a time calibration device as shown in Figure 1 or Figure 2 The method can be executed by a control module of a time calibration device as shown in Figure 1 or Figure 2 The method includes steps S31 and S32.
[0138] In step S31, the first current time output by the first clock module is acquired, and the second current time output by the second clock module is acquired.
[0139] This step is the same as step S3100 described above, and will not be described here.
[0140] In step S32, a standard current time is determined according to the first current time and the second current time, and the standard current time is sent to at least one of the first clock module and the second clock module, so that at least one of the first clock module and the second clock module updates the current time according to the standard current time.
[0141] This step is the same as step S3200 described above, and will not be described here.
[0142] In some embodiments, in the case that the control module is disconnected from the target device, the step S32 of determining a standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module and the second clock module, comprises steps S321-S323.
[0143] The step S321 comprises: in the case that the first current time is a set abnormal time, taking the second current time as a standard current time, and sending the standard current time to the first clock module.
[0144] The step S321 is the same as the step S3200.1 described above, and is not described here.
[0145] The step S322 comprises: in the case that the second current time is the set abnormal time, taking the first current time as a standard current time, and sending the standard current time to the second clock module.
[0146] The step S322 is the same as the step S3200.2 described above, and is not described here.
[0147] The step S323 comprises: in the case that the first current time and the second current time are both the set abnormal time, determining a standard current time according to the historical standard time stored in the data storage module, and sending the standard current time to the first clock module and the second clock module.
[0148] The step S323 is the same as the step S3200.3 described above, and is not described here.
[0149] In some embodiments, the step S32 of determining a standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module and the second clock module, further comprises a step S324.
[0150] The step S324 comprises: in the case that the second current time reaches any of a plurality of preset time points, taking the second current time as a standard current time, and sending the standard current time to the first clock module.
[0151] In the embodiment, the time interval between adjacent preset time points in the plurality of preset time points is a set time period.
[0152] The step S324 is the same as the step S3211 described above, and is not described here.
[0153] In some embodiments, the method further comprises a step S40.
[0154] Step S40, in the case that both the first current time and the second current time are the set abnormal time, controlling the prompt module to output prompt information.
[0155] This step is the same as the above step S4100, which will not be described here.
[0156] In some embodiments, in the case that the control module is in communication connection with the target device, the step S32 of determining the standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module and the second clock module, comprises steps S311 and S312.
[0157] Step S311, determining whether to trigger time calibration according to the first current time, the second current time and the historical standard time stored in the data storage module.
[0158] This step is the same as the above step S3221, which will not be described here.
[0159] Step S312, in the case that time calibration is triggered, taking the current network time sent by the target device received by the communication module as the standard current time, and sending the standard current time to the first clock module and the second clock module.
[0160] This step is the same as the above step S3222, which will not be described here.
[0161] In some embodiments, the step S311 of determining whether to trigger time calibration according to the first current time, the second current time and the historical standard time stored in the data storage module, comprises steps S3111-S3113.
[0162] Step S3111, in the case that the time difference between the first current time and the second current time is greater than the time difference threshold, comparing the first current time and the second current time with the historical standard time to determine whether there is a time of time regression in the first current time and the second current time.
[0163] This step is the same as the above step S3221.1, which will not be described here.
[0164] Step S3112, in the case that there is a time of time regression in the first current time and the second current time, sending the first current time and the second current time to the target device to make the target device determine whether to trigger time calibration based on the first current time and the second current time, and return confirmation calibration information.
[0165] This step is the same as step S3221.2 described above, and will not be described here.
[0166] Step S3113, in the case that the calibration information is confirmed to represent the trigger time calibration, the trigger time calibration.
[0167] This step is the same as step S3221.3 described above, and will not be described here.
[0168] In some embodiments, before the step S31 of acquiring the first current time output by the first clock module and the second current time output by the second clock module, the method further comprises steps S300.1 and S300.2.
[0169] Step S300.1, acquiring the current network time sent by the target device received by the communication module.
[0170] This step is the same as step S2100 described above, and will not be described here.
[0171] Step S300.2, sending the current network time to the first clock module and the second clock module respectively, so that the first clock module and the second clock module set the initial time according to the current network time.
[0172] This step is the same as step S2200 described above, and will not be described here.
[0173] The present application can be a system, a method, and / or a computer program product. The computer program product can include a computer readable storage medium having computer readable program instructions stored therein for causing a processor to implement various aspects of the present application.
[0174] Computer readable storage media can be tangible storage media which can retain and store instructions for use by an instruction execution device. Computer readable storage media can be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer readable storage media include the following: 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), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
[0175] Computer readable program instructions described herein can be downloaded to respective computing / processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and / or a wireless network. The network can comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and / or edge servers. A network adapter card or network interface in each computing / processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing / processing device.
[0176] Computer readable program instructions for carrying out operations of the present application can be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions can 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 latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate array (FPGA), or programmable logic array (PLA) can execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present application.
[0177] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0178] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide processes for implementing the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0179] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0180] The computer readable program instructions can also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable data processing apparatus or other device to produce a computer implemented process such that the instructions which execute on the computer, other programmable data processing apparatus, or other device implement the functions / acts specified in the flowchart and / or block diagram block or blocks.
[0181] Embodiments of the present application have been described above, and the description is intended to be illustrative, and not restrictive, of the disclosed embodiments. Many modifications and variations of the disclosed embodiments are possible in light of the above teachings. It is therefore to be understood that within the scope of the disclosed embodiments, modifications and variations of the disclosed embodiments can be practiced. It is also to be understood that the specific order or hierarchy of steps in the processes disclosed is an illustration of exemplary processes. Based upon the description and illustrations provided herein, those skilled in the art will understand that changes can be made to the order of steps in the processes and that many of the individual steps can be modified or eliminated. Additionally, the description and illustrations provided herein are not meant to limit the scope of the disclosed embodiments. The scope of the disclosed embodiments is limited only by the claims.
Claims
1. A time calibration apparatus, characterized by, The device comprises a control module, a first clock module, a second clock module, a data storage module and a first power supply module, wherein: the first clock module is connected with the control module and is configured to output a first current time to the control module; the second clock module is connected with the control module and is configured to output a second current time to the control module; the control module is configured to determine a standard current time according to the first current time and the second current time, and send the standard current time to at least one of the first clock module and the second clock module, and at least one of the first clock module and the second clock module is configured to update a current time according to the standard current time; the data storage module is connected with the control module and is configured to store the standard current time under the control of the control module; the first power supply module is connected with the data storage module, the control module, the first clock module and the second clock module respectively to provide required working power supply; the device further comprises a communication module, wherein the communication module is connected with the control module and the first power supply module is connected with the communication module to provide working power supply for the communication module; the control module is further configured to compare the first current time and the second current time with historical standard times stored in the data storage module when a time difference between the first current time and the second current time is greater than a time difference threshold value, to determine whether there is a time of time regression in the first current time and the second current time; in the case that there is a time of time regression in the first current time and the second current time, the first current time and the second current time are sent to a target device through the communication module, so that the target device determines whether to trigger time calibration based on the first current time and the second current time, and returns confirmation calibration information to the control module through the communication module; in the case that the confirmation calibration information represents triggering time calibration, time calibration is triggered; in the case of triggering time calibration, the current network time sent by the target device and received by the communication module is taken as a standard current time, and the standard current time is sent to the first clock module and the second clock module; the target device returns confirmation calibration information representing not triggering time calibration to the control module in the case that the first current time and the second current time are consistent with the current network time; and returns confirmation calibration information representing triggering time calibration to the control module in the case that at least one of the first current time and the second current time is inconsistent with the current network time. 2. The apparatus of claim 1, wherein, The device further comprises a gating module connected between the data storage module and the first power supply module, and the control module is connected to a control end of the gating module, for controlling the gating module to be turned on when the control module is disconnected from the target device, and controlling the gating module to be turned off when the control module is connected to the target device.
3. The apparatus of claim 1, wherein, The device further comprises a prompting module connected to the control module, for outputting prompt information under the control of the control module.
4. The apparatus of claim 1, wherein, The device further comprises a second power supply module connected to the second clock module, for providing working power for the second clock module when the first power supply module fails to provide working power for the second clock module.
5. The apparatus of claim 1, wherein, The first clock module is integrated in the control module.
6. The apparatus of claim 1, wherein, The first power supply module comprises a power supply, a voltage regulation module and a charging management module. The charging management module is connected between the power supply and the voltage regulation module, and the voltage regulation module is connected to the first clock module, the second clock module, the control module and the data storage module respectively to provide required working power. The control module is connected to the charging management module, for controlling the charging management module to manage charging of the power supply.
7. A method of time calibration, characterized by, The method is implemented by the control module of any one of claims 1 to 6, and the method comprises: acquiring a first current time output by the first clock module and a second current time output by the second clock module; determining a standard current time according to the first current time and the second current time, and sending the standard current time to at least one of the first clock module and the second clock module, so that at least one of the first clock module and the second clock module updates a current time according to the standard current time; wherein the determining of the standard current time according to the first current time and the second current time, and the sending of the standard current time to at least one of the first clock module and the second clock module, comprises: when a time difference between the first current time and the second current time is greater than a time difference threshold, comparing the first current time and the second current time with a historical standard time stored in the data storage module to determine whether there is a time in the first current time and the second current time that has a time rollback. In the case that there is a time rollback in the first current time and the second current time, the first current time and the second current time are sent to the target device to make the target device determine whether to trigger time calibration based on the first current time and the second current time, and return the confirmation calibration information to the control module through the communication module, and in the case that the first current time and the second current time are consistent with the current network time, the target device returns the confirmation calibration information representing that time calibration is not triggered to the control module, and in the case that at least one of the first current time and the second current time is inconsistent with the current network time, the target device returns the confirmation calibration information representing that time calibration is triggered to the control module; In the case that the confirmation calibration information represents that time calibration is triggered, time calibration is triggered; In the case that time calibration is triggered, the current network time sent by the target device and received by the communication module is taken as a standard current time, and the standard current time is sent to the first clock module and the second clock module.
8. The method of claim 7, wherein, In the case that the control module is disconnected from the target device, the method further comprises: In the case that the first current time is the set abnormal time, the second current time is taken as a standard current time, and the standard current time is sent to the first clock module; In the case that the second current time is the set abnormal time, the first current time is taken as a standard current time, and the standard current time is sent to the second clock module; In the case that the first current time and the second current time are both the set abnormal time, a standard current time is determined according to the historical standard time stored in the data storage module, and the standard current time is sent to the first clock module and the second clock module.
9. The method of claim 8, wherein, The method further comprises: In the case that the second current time reaches any of a plurality of preset time points, the second current time is taken as a standard current time, and the standard current time is sent to the first clock module; wherein the time interval between adjacent preset time points in the plurality of preset time points is a set time period.
Citation Information
Patent Citations
Clock and clock calibration method
CN107919934A
Clock circuit
CN118295857A
Time calibration method, device, equipment and medium
CN120583501A