Time calibration method, device and system

By issuing broadcast time calibration instructions in the data management system, the time calibration equipment performs time calibration based on the local current time and time deviation parameters in the command and its own local time zone parameters, the inefficiency and time of the existing technology are solved. Manage complex problems and achieve efficient time synchronization across time zones.

CN119402120APending Publication Date: 2025-02-07WASION GROUP HLDG

Patent Information

Application Number
CN202411391028.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-08
Publication Date
2025-02-07

AI Technical Summary

Technical Problem

The existing time calibration methods are less efficient in complex communication networks, and the data management system needs to pre-storage the correct time zone information of each device, which increases the complexity of time management.

Method used

The broadcast time calibration command is issued through the data management system. The command contains local current time and time deviation parameters. The equipment to be calibrated according to this information and its own local time zone parameters, without pre-storing the correct time zone information of each device.

Benefits of technology

It improves the efficiency of time calibration, reduces the time management complexity of the data management system for each device, and is suitable for device time synchronization across time zones.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402120A_ABST
    Figure CN119402120A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a time calibration method, device and system.A data management system issues the same broadcast time calibration command to devices to be calibrated in different time zones, and the broadcast time calibration command comprises local current time and time deviation parameters of the data management system; the to-be-calibrated devices located in different time zones obtain the calibrated time of the to-be-calibrated devices according to the local current time and the time deviation parameter of the data management system and the local time zone parameter of the to-be-calibrated devices, the data management system does not need to store correct time zone information of the to-be-calibrated devices in advance, the time calibration efficiency is greatly improved, and the time calibration cost is reduced. And meanwhile, the time management complexity of the data management system on each piece of to-be-calibrated equipment is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a time calibration method, device and system. Background Art

[0002] In complex communication networks, time synchronization is the key to ensuring the safe and efficient operation of the system. With the development of economic globalization, a large number of devices are installed across national borders and time zones, resulting in different local times for each device at the same time, and whether to follow daylight saving time and specific rules for summer time are also different. This time zone difference not only increases the complexity of time calibration, but may also lead to a series of problems such as data transmission errors, confusing log records, and invalid security authentication. At the same time, the data management systems of the devices are also scattered in different regions, far away from the actual location of the devices. This requires the traditional time calibration method to perform small-scale time calibration one by one according to the distance between the device and the management system, which is cumbersome and inefficient.

[0003] The existing patent with publication number CN111766772A discloses a time calibration method, device, system and computer-readable storage medium, wherein the system includes a server and a device, the database in the server stores the correct time zone of the device, and when the device sends a time calibration command to the server, the server obtains the correct time zone corresponding to the device from the database, and uses the correct time zone corresponding to the device to calibrate the device. However, although this method realizes the calibration of the device time, the time calibration method needs to store the correct time zone information of each device in the server database in advance, which makes the server's time management of each device more complicated and the time calibration efficiency is not high. Summary of the invention

[0004] Based on this, it is necessary to provide a time calibration method, device and system that can reduce the time management complexity of the data management system and improve the time calibration efficiency in order to address the problem of low time calibration efficiency of the existing time calibration methods.

[0005] In a first aspect, the present application provides a time calibration method, the method comprising:

[0006] Step S202, obtaining a broadcast time adjustment instruction issued by the data management system; the broadcast time adjustment instruction includes the local current time and the time deviation parameter of the data management system;

[0007] Step S204, obtaining the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

[0008] In one of the embodiments, the time deviation parameter is calculated by the data management system according to a second local time zone parameter; the second local time zone parameter is a local time zone parameter of the data management system.

[0009] In one embodiment, the first local time zone parameter is the difference between the local time of the device to be calibrated and Greenwich Mean Time; the second local time zone parameter is the difference between the local time of the data management system and Greenwich Mean Time.

[0010] In one embodiment, the first local time zone parameter and the second local time zone parameter are both expressed in minutes.

[0011] In one of the embodiments, the broadcast time adjustment instruction also includes a daylight saving time activation flag.

[0012] In one embodiment, after step S204, the method further includes:

[0013] Step S206, judging whether the calibrated time enters the daylight saving time according to the daylight saving time enabling parameter, the daylight saving time entry time parameter and the daylight saving time exit time parameter;

[0014] Step S208: If the time after calibration enters the daylight saving time, the daylight saving time corresponding to the time after calibration is used as the final calibration time of the device to be calibrated.

[0015] In one embodiment, the local current time of the data management system is in the format of year, month, day, hour, minute, and second.

[0016] In one of the embodiments, the calculation formula for the calibrated time is: Meter_Local_time=MD MS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes; wherein, Meter_Local_time represents the calibrated time of the device to be calibrated, MDMS_Local_time represents the local current time of the data management system, MDMS_deviation_minutes represents the time deviation parameter of the data management system, and Meter_time_zone_minutes represents the first local time zone parameter.

[0017] In a second aspect, the present application further provides a time calibration device, the device comprising:

[0018] A broadcast time synchronization instruction acquisition module is used to acquire a broadcast time synchronization instruction issued by a data management system; the broadcast time synchronization instruction includes a local current time and a time deviation parameter of the data management system;

[0019] The time calibration module is used to obtain the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

[0020] In a third aspect, the present application further provides a time calibration system, the system comprising a time calibration device and a data management system, wherein the time calibration device is connected to the data management system;

[0021] The data management system sends a broadcast time calibration instruction to the device to be calibrated, and the broadcast time calibration instruction includes the local current time and time deviation parameter of the data management system;

[0022] The device to be calibrated obtains the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

[0023] The above-mentioned time calibration method, device and system send the same broadcast time calibration command to the time calibration devices located in different time zones through the data management system. The broadcast time calibration instruction includes the local current time and time deviation parameters of the data management system. The time calibration devices located in different time zones obtain the calibrated time of the time calibration devices according to the local current time and time deviation parameters of the data management system and the local time zone parameters of the time calibration devices. The data management system does not need to pre-store the correct time zone information of each time calibration device, which greatly improves the time calibration efficiency and reduces the complexity of the data management system's time management of each time calibration device. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 A diagram showing an application environment of a time calibration method in an embodiment;

[0025] Figure 2 is a schematic flow chart of a time calibration method in one embodiment;

[0026] Figure 3 is a flow chart of a time calibration method in another embodiment;

[0027] Figure 4 FIG. 4 is a structural block diagram of a time calibration device in an embodiment. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0029] The time calibration method provided in the embodiment of the present application can be applied to Figure 1In the application environment shown. Among them, the device to be calibrated 102 communicates with the data management system 104 through the network. The device to be calibrated obtains the broadcast time calibration instruction issued by the data management system; the broadcast time calibration instruction includes the local current time and time deviation parameter of the data management system; the device to be calibrated obtains the calibrated time of the device to be calibrated according to the local current time and time deviation parameter of the data management system, and the first local time zone parameter. Among them, the device to be calibrated 102 may include various distributed devices located in different time zones, such as various metering devices, photovoltaic devices, energy storage devices, etc. The data management system 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0030] In one embodiment, Figure 2 As shown, a time calibration method is provided, which is applied to Figure 1 The time calibration device 102 in the embodiment of the present invention is described, and the method comprises the following steps:

[0031] Step S202: Obtain the broadcast timing instruction issued by the data management system.

[0032] Among them, the broadcast time calibration instruction includes the local current time of the data management system and the time deviation parameter. The local current time of the data management system (MDMS_Local_time) is the current local time of the time zone where the data management system is located. Further, when the geographical location of the data management system has entered daylight saving time, the local current time of the data management system is the corresponding accelerated daylight saving time. The specific time format of the local current time of the data management system can be set by those skilled in the art based on actual needs, for example, the time format of the local current time of the data management system is set to year, month, day, hour, minute, and second.

[0033] The time deviation parameter (MDMS_deviation_minutes) is the difference between the local time of the data management system and the Greenwich Mean Time (GMT). Among them, the local time of the data management system is the current time of the time zone where the data management system is located. In addition, when the local time of the data management system is ahead of (faster than) Greenwich Mean Time, the time deviation parameter is a negative value, and when the local time of the data management system lags behind (slower than) Greenwich Mean Time, the time deviation parameter is a positive value. Further, the time deviation parameter can be expressed in hours, minutes or seconds, and those skilled in the art can set it according to the actual accuracy requirements. Taking the expression of minutes as an example, if the data management system is located in Beijing, and Beijing is located in the East 8th District, Beijing time is 8 hours ahead of Greenwich Mean Time, then the time deviation parameter in the data management system is set to -8*60=-480 minutes; if the data management system is located in Washington, and Washington is located in the West 5th District, Washington time lags behind Greenwich Mean Time by 5 hours, then the time deviation parameter in the data management system is set to 5*60=300 minutes.

[0034] Specifically, the data management system sends the same broadcast time calibration instruction to the time calibration devices located in different time zones, and the time calibration devices located in different time zones adjust their own times to their respective accurate values ​​according to the acquired broadcast time calibration instruction.

[0035] Further, when the device to be corrected obtains the broadcast time correction instruction issued by the data management system, it can also first perform data verification on the broadcast time correction instruction, and then execute step S204 after the data verification is passed. The specific steps of data verification may include: verifying whether the local current time of the data management system is valid, for example, checking whether the year, month, date, hour, minute and second in the local current time are within a reasonable range, and whether the date is legal; judging whether the time deviation parameter of the data management system exceeds the preset reasonable range, for example, when the value of the time deviation parameter exceeds the preset range of -840 minutes to +720 minutes, judging that the time deviation parameter exceeds the preset reasonable range, that is, it is regarded as an invalid parameter, and when the value of the time deviation parameter is within the preset range of -840 minutes to +720 minutes, judging that the time deviation parameter does not exceed the preset reasonable range, that is, it is regarded as a valid parameter. In addition, when the local current time of the data management system is invalid and / or the time deviation parameter is invalid, an error handling mechanism can be triggered. For example, an error report is sent to the data management system, or the time correction instruction is ignored, and the current time of the device to be corrected is kept unchanged.

[0036] Step S204, obtaining the time after calibration of the device to be calibrated according to the local current time and time deviation parameter of the data management system and the first local time zone parameter.

[0037] Among them, the first local time zone parameter is the local time zone parameter (Meter_time_zone_minutes) of the device to be calibrated. The local time zone parameter of the device to be calibrated is a parameter that reflects the geographical location time of the device to be calibrated, specifically the difference between the local time of the time zone where the device to be calibrated is located and Greenwich Mean Time, and is a fixed value that does not change with the entry or exit of daylight saving time. Similar to the time deviation parameter of the data management system, when the local time of the device to be calibrated is ahead of (faster than) Greenwich Mean Time, the local time zone parameter of the device to be calibrated is a negative value, and when the local time of the device to be calibrated is behind (slower than) Greenwich Mean Time, the local time zone parameter of the device to be calibrated is a positive value. The local time zone parameter of the device to be calibrated must be expressed in the same way as the deviation parameter of the data management system. For example, when the time offset parameter of the data management system is expressed in minutes, the local time zone parameter of the device to be calibrated is also expressed in minutes. Then, if the device to be calibrated is located in Paris, and Paris is located in the East 1 zone, then the local time zone parameter of the device to be calibrated is -60 minutes.

[0038] Specifically, the time zone difference can be obtained by first subtracting the local time zone parameter of the device to be calibrated from the time deviation parameter of the data management system, and then the time after adding the time zone difference to the local current time of the data management system is used as the time after the device to be calibrated. For example, if the time deviation parameter of the data management system is -480 minutes, and the local current time is 10:15:00 on September 8, 2024, and the local time parameter of the device to be calibrated is -60 minutes, then the time zone difference is (-480 minutes)-(-60 minutes)=(-420 minutes), and the device to be calibrated should adjust its time to 03:15:00 on September 8, 2024, which is 7 hours later than the time of the data management system.

[0039] The time calibration method in this embodiment sends the same broadcast time calibration command to the devices to be calibrated located in different time zones through the data management system. The broadcast time calibration command includes the local current time and time deviation parameters of the data management system. The devices to be calibrated located in different time zones obtain the calibrated time of the devices to be calibrated according to the local current time and time deviation parameters of the data management system and the local time zone parameters of the devices to be calibrated. The data management system does not need to pre-store the correct time zone information of each device to be calibrated, which greatly improves the time calibration efficiency and reduces the complexity of time management of each device to be calibrated by the data management system.

[0040] In one embodiment, the time deviation parameter is calculated by the data management system according to the second local time zone parameter; the second local time zone parameter is the local time zone parameter (MDMS_time_zone_minutes) of the data management system. Similar to the first local time zone parameter, the second local time zone parameter is the difference between the local time of the data management system and Greenwich Mean Time.

[0041] Specifically, when the geographical location where the data management system is located has no daylight saving time regulations or has not yet entered daylight saving time, the time deviation parameter is equal to the second local time zone parameter; when the geographical location where the data management system is located enters daylight saving time, the time deviation parameter is equal to the second local time zone parameter minus daylight saving time (Daylight Saving Time, DST), that is, minus 60 minutes, and the smaller and more negative the value is, the more advanced the time is.

[0042] The time calibration method of this embodiment calculates the time deviation parameter based on the second local time zone parameter before the data management system issues the broadcast time calibration instruction, so that the time deviation parameter not only takes into account the regular difference between the local time of the data management system and Greenwich Mean Time, but also makes adjustments for possible daylight saving time situations, thereby ensuring that changes in the data management system time can be accurately reflected during daylight saving time, further improving the reliability and flexibility of time calibration.

[0043] In one embodiment, the broadcast time adjustment instruction further includes a daylight saving time activation flag.

[0044] The daylight saving time activation flag (MDMS_DST_Flag) is used to indicate whether the local daylight saving time of the data management system is activated, that is, whether the geographical location of the data management system enters the daylight saving time. And, when the local daylight saving time of the data management system is activated, the flag is 1, otherwise it is 0.

[0045] The time calibration method of this embodiment also includes a daylight saving time activation flag in the broadcast time calibration instruction issued by the data management system, which can inform the data management system of the time calibration device whether it has entered daylight saving time, thereby facilitating the time calibration device to perform data recording and subsequent comparison to improve the reliability of time calibration.

[0046] In one embodiment, Figure 3 As shown, after step S204, the following steps are also included:

[0047] Step S206, judging whether the time after calibration of the device to be calibrated enters the daylight saving time according to the daylight saving time enabling parameter, the daylight saving time entry time parameter and the daylight saving time exit time parameter of the device to be calibrated.

[0048] Step S208: If the time after the calibration of the device to be calibrated enters the daylight saving time, the daylight saving time corresponding to the time after the calibration of the device to be calibrated is used as the final calibration time of the device to be calibrated.

[0049] The daylight saving time enabling parameter is used to indicate whether the device to be calibrated enables daylight saving time adjustment. The daylight saving time entry time parameter includes the date and time when daylight saving time takes effect, and the daylight saving time exit time parameter includes the date and time when daylight saving time ends and returns to standard time. The daylight saving time entry time parameter and the daylight saving time exit time parameter jointly determine the daylight saving time range, and when the calibrated time calculated in step S204 is within the daylight saving time range, it is determined that the calibrated time of the device to be calibrated enters daylight saving time, otherwise it is determined that the device to be calibrated does not enter daylight saving time.

[0050] Specifically, when the daylight saving time enabling parameter is valid, determine whether the calibrated time calculated in step S204 is within the above-mentioned daylight saving time range. If so, adjust the calibrated time calculated in step S204 to the corresponding daylight saving time, usually one hour ahead, and then use the adjusted time as the final calibration time of the device to be calibrated.

[0051] The time calibration method of this embodiment, after completing the preliminary time calibration of the device to be calibrated, further determines whether the calibrated time enters the daylight saving time range determined by the daylight saving time entry time parameters and the daylight saving time exit time parameters in the device to be calibrated, and adjusts the calibrated time accordingly, thereby ensuring the accuracy of the time calibration and improving the time synchronization capability of the device across time zones and in a daylight saving time environment.

[0052] In one embodiment, the format of the local current time of the data management system is year, month, day, hour, minute, and second. For example, when the local current time of the data management system is 10:15:00 on September 8, 2024, MDMS_Local_time=20240908101500.

[0053] This embodiment can improve the accuracy of time calibration by setting the format of the local current time of the data management system to year, month, day, hour, minute, and second, thereby further improving the reliability of time calibration.

[0054] In one embodiment, the calculation formula for the time after the device to be timed is calibrated is: Meter_Local_time = MDMS_Local_time + MDMS_deviation_minutes - Meter_time_zone_minutes; wherein, Meter_Local_time represents the time after the device to be timed is calibrated, that is, the local current time of the device to be timed, MDMS_Local_time represents the local current time of the data management system, MDMS_deviation_minutes represents the time deviation parameter of the data management system, and Meter_time_zone_minutes represents the local time zone parameter of the device to be timed.

[0055] In order to better understand the time calibration method in the above embodiment, a detailed embodiment including specific data is provided below.

[0056] The current instruments and meters are multifunctional, covering metering, settlement, rate regulation, load monitoring, event tracking, data reporting, timing control and relay management. The precise execution of these functions is highly dependent on the precise synchronization of time to ensure the immediacy and accuracy of operation and recording. Current instruments and meters all have communication functions and support communication command time calibration. In the early days, the installation area of ​​instruments and meters was very limited, and they were very close to the networked host computer data management system, and they were all located in the same time zone. The time of the geographical location of the data management system was the time of each instrument and meter, and the time calibration was relatively simple. However, with the globalization of the economy, the instrument and meter industry has achieved great development, and a large number of instruments and meters have been sold all over the world. These instruments and meters are installed in different countries or different time zones in the same country. As a result, the local time in each instrument and meter at the same time is different, and whether to enter daylight saving time and the time to enter daylight saving time are also different. At the same time, the data management system is also located in different regions, and the geographical location of the instrument and meter is different, resulting in the time calibration process. It is necessary to perform small-scale time calibration one by one according to the distance and location of the data management system. Not only is the process cumbersome and inefficient, but it is also difficult to effectively manage and count the time calibration status.

[0057] This embodiment takes the device to be calibrated as an instrument product as an example to explain the time calibration method in the above embodiment, which specifically includes the following steps:

[0058] Assume that the data management system is in Beijing, and different instruments are located in Changsha, Paris, Washington, and Sydney. The geographical locations of the instruments cover the Eastern Hemisphere, Western Hemisphere, Southern Hemisphere, and Northern Hemisphere of the world, and the local daylight saving time in Changsha, Paris, Washington, and Sydney is different, as shown in Table 1.

[0059] Table 1

[0060]

[0061]

[0062] Assuming that the current location of the data management system is 10:15:00 on September 8, 2024, Beijing time, the broadcast time synchronization instructions sent by the data management system to broadcasters around the world include:

[0063] MDMS_Local_time MDMS_deviation_minutes MDMS_DST_Flag 20240908101500 -480 minutes 0

[0064] The specific calculation process of time calibration of each instrument is as follows:

[0065] (1) Instruments and meters in Changsha:

[0066] Meter_Local_time=MDMS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes=20240908101500+(-480 minutes)-(-480 minutes)=20240908101500

[0067] Since Changsha does not have a daylight saving time system, there is no need to judge or adjust the daylight saving time. The calibrated time is the same as the time of the data management system in Beijing: 10:15:00 on September 8, 2024.

[0068] (2) Instruments in Paris:

[0069] Meter_Local_time=MDMS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes=20240908101500+(-480 minutes)-(-60 minutes)=20240908031500

[0070] The calibrated time is 03:15:00 on September 8, 2024. Since Paris is currently in daylight saving time, the time needs to be adjusted forward by 1 hour, and the final calibrated time is: 04:15:00 on September 8, 2024, which is 6 hours later than Beijing time.

[0071] (3) Instrumentation in Washington:

[0072] Meter_Local_time=MDMS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes=20240908101500+(-480 minutes)-(300 minutes)=20240907211500

[0073] The calibrated time is 21:15:00 on September 7, 2024. Since Washington is currently in daylight saving time, the above time needs to be adjusted forward by 1 hour, and the final calibrated time is: 22:15:00 on September 7, 2024, which is 12 hours later than Beijing time.

[0074] (4) Instrumentation in Sydney:

[0075] Meter_Local_time=MDMS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes=20240908101500+(-480 minutes)-(-600 minutes)=20240908121500

[0076] The seasons in Sydney are opposite to those in the Northern Hemisphere. It is currently in winter time and does not need to enter daylight saving time. The final calibrated time will be: 12:15:00 on September 8, 2024, which is 2 hours earlier than Beijing time.

[0077] It can be seen that for products installed in different time zones, due to the different local time zone parameters (Meter_time_zone_minutes) set inside each product, the local time (Meter_Local_time) calculated by each of them will also be different, but these times are accurate values ​​in their respective time zones. In particular, when the product is installed in the same time zone as the data management system, and neither of them has enabled daylight saving time adjustment, the time deviation parameter (MDMS_deviation_minutes) of the data management system is equal to the local time zone parameter (Meter_time_zone_minutes) of the product itself, and the two will offset each other during the calculation process, so that the final calculated product time is consistent with the time of the data management system, that is, Meter_Local_time = MDMS_Local_time. This mechanism ensures the accuracy of time synchronization, especially when the time zone is the same and no daylight saving time adjustment is involved. Furthermore, even if the data management system enters daylight saving time, it will not affect the calculation of local time by the instrument. Because the local current time (MDMS_Local_time) of the data management system has been adjusted according to the daylight saving time rules (such as one hour ahead), and MDMS_deviation_minutes will also be adjusted accordingly to reflect this change (such as reducing the deviation by one hour). During the calculation process, these adjustments will offset each other, so the local time Meter_Local_time calculated by the instrument will not change, that is, it will not be affected by whether the data management system enters daylight saving time, ensuring that the instrument can still accurately calculate the local real-time time.

[0078] In addition, those skilled in the art may also use other preset information to replace the local time zone parameter (Meter_time_zone_minutes) according to actual needs, or use different time information to replace the local time related information of the data management system. At the same time, different calculation formulas may also be selected to achieve accurate synchronization of product time and data management system time, so as to flexibly respond to various complex scenarios and needs.

[0079] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0080] Based on the same inventive concept, the embodiment of the present application also provides a time calibration device for implementing the time calibration method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more time calibration device embodiments provided below can refer to the limitations of the time calibration method above, and will not be repeated here.

[0081] In one embodiment, Figure 4 As shown, a time calibration device 400 is provided, comprising: a broadcast time calibration instruction acquisition module 401 and a time calibration module 402, wherein:

[0082] The broadcast time synchronization instruction acquisition module 401 is used to acquire the broadcast time synchronization instruction issued by the data management system; the broadcast time synchronization instruction includes the local current time and the time deviation parameter of the data management system;

[0083] The time calibration module 402 is used to obtain the calibrated time of the device to be calibrated according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

[0084] In one embodiment, the time calibration module 402 is also used to determine whether the time after the device to be calibrated enters daylight saving time based on the daylight saving time enable parameter, daylight saving time entry time parameter and daylight saving time exit time parameter of the device to be calibrated; if the time after the device to be calibrated enters daylight saving time, the daylight saving time corresponding to the time after the device to be calibrated is used as the final calibration time of the device to be calibrated.

[0085] Each module in the above-mentioned time calibration device 400 can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.

[0086] In one embodiment, a time calibration system is provided, including a device to be calibrated and a data management system, wherein the device to be calibrated is connected to the data management system.

[0087] The data management system sends a broadcast time calibration instruction to the device to be calibrated, and the broadcast time calibration instruction includes the local current time of the data management system and the time deviation parameter. Among them, the format of the local current time is year, month, day, hour, minute, and second. The time deviation parameter is calculated by the data management system based on the second local time zone parameter, and the second local time zone parameter is the difference between the local time of the data management system and Greenwich Mean Time, and is expressed in minutes. Furthermore, the broadcast time calibration instruction also includes a daylight saving time activation flag.

[0088] The device to be calibrated obtains the time after the device to be calibrated according to the local current time and time deviation parameter of the data management system and the first local time zone parameter. Among them, the first local time zone parameter is the local time zone parameter of the device to be calibrated, specifically the difference between the local time of the device to be calibrated and Greenwich Mean Time, and is expressed in minutes. In addition, after the device to be calibrated completes the preliminary time calibration, it can also determine whether the calibrated time enters the daylight saving time according to the daylight saving time enable parameter, the daylight saving time entry time parameter and the daylight saving time exit time parameter, and when the calibrated time enters the daylight saving time, the daylight saving time corresponding to the calibrated time of the device to be calibrated is used as the final calibration time of the device to be calibrated.

[0089] The time calibration system of this embodiment sends the same broadcast time calibration command to the devices to be calibrated located in different time zones through the data management system. The broadcast time calibration command includes the local current time and time deviation parameters of the data management system. The devices to be calibrated located in different time zones obtain the calibrated time of the devices to be calibrated according to the local current time and time deviation parameters of the data management system and the local time zone parameters of the devices to be calibrated. The data management system does not need to pre-store the correct time zone information of each device to be calibrated, which greatly improves the time calibration efficiency and reduces the complexity of the data management system's time management of each device to be calibrated.

[0090] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0091] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A time calibration method, characterized in that: The method comprises: Step S202, obtaining a broadcast time synchronization instruction issued by the data management system; the broadcast time synchronization instruction includes the local current time and the time deviation parameter of the data management system; Step S204, obtaining the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

2. The time calibration method according to claim 1, characterized in that: The time deviation parameter is calculated by the data management system according to a second local time zone parameter; the second local time zone parameter is a local time zone parameter of the data management system.

3. The time calibration method according to claim 2, characterized in that: The first local time zone parameter is the difference between the local time of the device to be calibrated and Greenwich Mean Time; the second local time zone parameter is the difference between the local time of the data management system and Greenwich Mean Time.

4. The time calibration method according to claim 2, characterized in that: The first local time zone parameter and the second local time zone parameter are both expressed in minutes.

5. The time calibration method according to claim 1, characterized in that: The broadcast time adjustment instruction also includes a daylight saving time activation flag.

6. The time calibration method according to claim 1, characterized in that: After step S204, the following steps are further included: Step S206, judging whether the calibrated time enters daylight saving time according to the daylight saving time enabling parameter, the daylight saving time entry time parameter and the daylight saving time exit time parameter; Step S208: If the calibrated time enters daylight saving time, the daylight saving time corresponding to the calibrated time is used as the final calibration time of the device to be calibrated.

7. The time calibration method according to claim 1, characterized in that: The local current time of the data management system is in the format of year, month, day, hour, minute, and second.

8. The time calibration method according to claim 1, characterized in that: The calculation formula for the calibrated time is: Meter_Local_time=MDMS_Local_time+MDMS_deviation_minutes-Meter_time_zone_minutes; wherein, Meter_Local_time represents the calibrated time of the device to be calibrated, MDMS_Local_time represents the local current time of the data management system, MDMS_deviation_minutes represents the time deviation parameter of the data management system, and Meter_time_zone_minutes represents the first local time zone parameter.

9. A time calibration device, characterized in that: The device comprises: A broadcast time synchronization instruction acquisition module is used to acquire a broadcast time synchronization instruction issued by a data management system; the broadcast time synchronization instruction includes a local current time and a time deviation parameter of the data management system; The time calibration module is used to obtain the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; the first local time zone parameter is the local time zone parameter of the device to be calibrated.

10. A time calibration system, characterized in that: The system comprises a time-to-be-calibrated device and a data management system, wherein the time-to-be-calibrated device is connected to the data management system; The data management system sends a broadcast time calibration instruction to the device to be calibrated, wherein the broadcast time calibration instruction includes the local current time of the data management system and a time deviation parameter; The device to be calibrated obtains the calibrated time according to the local current time and time deviation parameter of the data management system and the first local time zone parameter; The first local time zone parameter is the local time zone parameter of the device to be calibrated.

Citation Information

Patent Citations

  • Time calibration method, device and system and computer readable storage medium

    CN111766772A

Cited By

  • Date control packaging method and system, readable storage medium and equipment

    CN120045245A