Industrial Smart Flat Panel Time Synchronization Method and Related Devices

By acquiring the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel, and combining it with time drift characteristic parameters, the system can perform autonomous or external synchronization operations, thus solving the problem of insufficient time synchronization accuracy in existing technologies and achieving efficient and reliable time synchronization.

CN121957285BActive Publication Date: 2026-06-30SHENZHEN CONGPING TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHENZHEN CONGPING TECH CO LTD
Filing Date
2026-04-01
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

Existing time synchronization methods for industrial smart tablets fail to be tailored to the actual operating status and working environment of the real-time clock chip, resulting in insufficient time synchronization accuracy. This can lead to production process disruptions, data recording distortion, and equipment linkage failures.

Method used

By acquiring the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel, the target time deviation is determined, and the device can perform autonomous calibration or request synchronization operation from the time synchronization device based on the magnitude of the deviation. Combined with the time drift characteristic parameters of the real-time clock chip and changes in ambient temperature, accurate time synchronization is achieved.

Benefits of technology

It improves the accuracy and reliability of time synchronization in industrial smart tablets, reduces reliance on external time synchronization devices, lowers communication pressure and resource consumption, and ensures time accuracy requirements in industrial scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121957285B_ABST
    Figure CN121957285B_ABST
Patent Text Reader

Abstract

This invention discloses a time synchronization method and related apparatus for an industrial smart tablet. The method includes: firstly, acquiring the historical moment when the industrial smart tablet, which does not rely on any form of network time synchronization, was last synchronized via a time synchronization device; then, determining the independent runtime and average operating temperature of the real-time clock chip of the industrial smart tablet during the operating period after the historical moment; next, determining a target time deviation based on the independent runtime and average operating temperature; if the target time deviation is less than or equal to a time deviation threshold, performing a second time synchronization operation on the industrial smart tablet; if it is greater than the time deviation threshold, sending a time synchronization prompt message to the time synchronization device, causing the time synchronization device to perform a first time synchronization operation on the industrial smart tablet based on the time synchronization prompt message. The implementation method of this application improves the accuracy of time synchronization for industrial smart tablets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of time synchronization technology for industrial smart tablets, and in particular to a time synchronization method and related apparatus for industrial smart tablets. Background Technology

[0002] Industrial smart panels, as core terminal devices in the field of industrial automation, are widely used in key industrial scenarios such as industrial automation control, on-site data acquisition, equipment linkage scheduling, and production process monitoring. The accuracy of their time and the consistency of time among multiple devices directly determine the orderliness of industrial production, the authenticity of data acquisition, and the coordination of equipment linkage. In industrial production, whether multiple panels are collaboratively scheduling production lines, synchronously collecting production data, or linking with other industrial control equipment to achieve precise timing control, the system time of each industrial smart panel must be highly synchronized with the standard time. Any time deviation can lead to production process disruptions, data recording distortion, equipment linkage failures, and even production safety hazards. Therefore, the time accuracy requirements for industrial smart panels are far higher than those for ordinary civilian terminal devices. Since industrial smart panels do not rely on any form of network time synchronization, existing technologies mostly use external time synchronization devices to periodically send standard time signals to calibrate the industrial smart panels and reduce time deviation. However, existing time calibration methods do not take into account the actual operating status and working environment of the real-time clock chip, and cannot achieve accurate time synchronization of industrial smart panels. Therefore, how to improve the accuracy of time synchronization of industrial smart panels is an urgent problem to be solved. Summary of the Invention

[0003] This application provides an industrial smart tablet time synchronization method and related apparatus, which improves the accuracy of industrial smart tablet time synchronization.

[0004] In a first aspect, embodiments of this application provide an industrial smart panel time synchronization method, applied to an industrial smart panel in an industrial smart panel time synchronization system, wherein the industrial smart panel time synchronization system includes a time synchronization device and the industrial smart panel, and the method includes:

[0005] Obtain the historical moment of the last time the industrial smart panel was synchronized via the time synchronization device; the first time synchronization operation was a time calibration operation performed by the time synchronization device on the industrial smart panel.

[0006] The independent runtime and average operating temperature of the real-time clock chip in the industrial smart panel are determined during the operating period after the historical moment; the industrial smart panel includes the real-time clock chip.

[0007] The target time deviation is determined based on the independent operating time and the average operating temperature;

[0008] If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation.

[0009] If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message.

[0010] Secondly, this application provides an industrial smart tablet time synchronization device, which is applied to an industrial smart tablet in an industrial smart tablet time synchronization system. The industrial smart tablet time synchronization system includes a time synchronization device and the industrial smart tablet. The device includes: an acquisition unit and a processing unit.

[0011] The acquisition unit is used to acquire the historical moment of the last time the industrial smart tablet was subjected to a first time synchronization operation by the time synchronization device; the first time synchronization operation is the time calibration operation performed by the time synchronization device on the industrial smart tablet.

[0012] The processing unit is used to determine the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel during the operating period after the historical moment; the industrial smart panel includes the real-time clock chip.

[0013] The target time deviation is determined based on the independent operating time and the average operating temperature;

[0014] If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation.

[0015] If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message.

[0016] Thirdly, embodiments of the present invention provide an electronic device, including: a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor to cause the electronic device to perform the method as described in the first aspect.

[0017] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a computer program that is executed by a processor to implement the method as described in the first aspect.

[0018] Fifthly, embodiments of the present invention provide a computer program product including a non-transitory computer-readable storage medium storing a computer program, such that a computer performs the method as described in the first aspect.

[0019] Implementing the embodiments of the present invention has the following beneficial effects:

[0020] As can be seen, the industrial smart tablet time synchronization method described in this embodiment of the invention is applied to an industrial smart tablet in an industrial smart tablet time synchronization system. The industrial smart tablet time synchronization system includes a time synchronization device and the industrial smart tablet. First, the historical moment when the industrial smart tablet was last synchronized by the time synchronization device is obtained. Then, the independent runtime and average operating temperature of the real-time clock chip of the industrial smart tablet during the operating period after the historical moment are determined. Next, a target time deviation is determined based on the independent runtime and the average operating temperature. If the target time deviation is less than or equal to a time deviation threshold, a second time synchronization operation is performed on the industrial smart tablet based on the target time deviation. If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart tablet based on the time synchronization prompt message, thereby improving the accuracy of the industrial smart tablet time synchronization. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of this application or the background art, the accompanying drawings used in the embodiments of this application or the background art will be described below.

[0022] Figure 1 This is a schematic diagram of the structure of an industrial smart flat panel time synchronization system provided in the embodiments of this application;

[0023] Figure 2 This is a flowchart of an industrial smart flat panel time synchronization method provided in the embodiments of this application;

[0024] Figure 3 This is a flowchart of a method for determining a target time deviation provided in an embodiment of this application;

[0025] Figure 4 This is another flowchart for determining the target time deviation provided in the embodiments of this application;

[0026] Figure 5 This is a flowchart of a method for determining the degree of aging provided in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of the structure of an industrial smart flat panel provided in an embodiment of this application;

[0028] Figure 7 This is a schematic diagram of the structure of an industrial smart flat panel time synchronization device provided in the embodiments of this application;

[0029] Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present application.

[0031] The terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0032] In this document, the term "implementation" means that a specific feature, structure, or characteristic described in connection with an implementation may be included in at least one implementation of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same implementation, nor is it a separate or alternative implementation mutually exclusive with other implementations. It will be explicitly and implicitly understood by those skilled in the art that the implementations described herein can be combined with other implementations.

[0033] Please see Figure 1 , Figure 1 This is a schematic diagram of an industrial smart panel time synchronization system provided in an embodiment of this application. The industrial smart panel time synchronization system 10 includes a time synchronization device 101 and an industrial smart panel 102.

[0034] In this embodiment, before performing time synchronization on the industrial smart tablet, it is first necessary to detect whether a USB flash drive is connected to the universal serial bus host interface on the industrial smart tablet 102. This USB flash drive has been pre-written with standard time data that can be updated in real time through the corresponding industrial smart tablet real-time clock time synchronization device. When a USB flash drive is detected, the specified text file is searched in the file system of the USB flash drive according to the pre-set file storage path and file name. Then, the time data in the text file is read, and the format of this time data is checked and verified. Only after the format verification meets the requirements is the device model corresponding to the industrial smart tablet identified, and then the time synchronization operation can be performed on the industrial smart tablet 102.

[0035] First, the historical moment of the last time the industrial smart tablet 102 was synchronized via the time synchronization device 101 is obtained. The first time synchronization operation is a calibration operation performed by the time synchronization device 101 on the industrial smart tablet 102. Then, the independent runtime and average operating temperature of the real-time clock chip of the industrial smart tablet 102 during the operating period after the historical moment are determined. The industrial smart tablet 102 includes a real-time clock chip. Next, a target time deviation is determined based on the independent runtime and average operating temperature. If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart tablet 102 based on the target time deviation. The second time synchronization operation is a calibration operation performed by the industrial smart tablet 102 on itself based on the target time deviation. If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device 101 based on the target time deviation, so that the time synchronization device 101 performs the first time synchronization operation on the industrial smart tablet 102 based on the time synchronization prompt message.

[0036] The time synchronization device 101 and the industrial smart tablet 102 can be connected via wired or wireless communication. Wired connection can include commonly used industrial communication interfaces such as industrial Ethernet, serial bus, and fieldbus, ensuring the stability and anti-interference capability of data transmission in complex industrial environments and meeting the needs of reliable communication in industrial sites. Wireless connection can use short-range wireless communication or long-range low-power wireless communication, which can improve the flexibility of equipment deployment and reduce wiring costs and limitations. Both connection methods can realize bidirectional data interaction between the time synchronization device 101 and the industrial smart tablet 102. The time synchronization device 101 can send standard time signals to the industrial smart tablet 102 to perform the first time synchronization operation, and the industrial smart tablet 102 can upload time synchronization reminder information to the time synchronization device 101, thereby ensuring a stable, efficient, and reliable communication connection between the two.

[0037] The time synchronization device 101 in this embodiment mainly consists of a time acquisition module, a storage module, an interface module, a real-time clock hardware module, a power supply module, a dynamic compensation module, and an optional display module. The interface module can establish data connections with both a host computer and an external storage device, enabling standard time acquisition and time file transmission. The real-time clock hardware module is continuously powered by a power supply module containing a built-in battery, ensuring that time data is not lost after power failure. The time acquisition module can obtain the network standard time from the host computer and synchronize it to the real-time clock hardware module, while simultaneously controlling the time data to be updated second-by-second to a text file in the storage module. The dynamic compensation module... During the production debugging phase, the clock drift characteristics of the industrial smart tablet can be calibrated, and corresponding drift compensation parameters can be generated. During actual time synchronization, the standard time is pre-corrected by combining the current working temperature and running time to obtain the compensated standard time adapted to the corresponding tablet and write it to the external storage device. The optional display module can display the current time and various working statuses of the time synchronization device 101 in real time. Through the combination of hardware structure and compensation algorithm, the time synchronization device 101 can provide accurate, stable and highly adaptable time synchronization services for different models of industrial smart tablets, meeting the needs of efficient, unified and high-precision time calibration on the production line.

[0038] It can be seen that by combining the independent running time and average operating temperature of the real-time clock chip to determine the time deviation, the industrial smart tablet can directly perform its own time calibration when the time deviation is small, reducing the frequent reliance on the time synchronization device, reducing the communication pressure and synchronization overhead of the industrial smart tablet time synchronization system, and improving the real-time performance and efficiency of time synchronization. At the same time, when the time deviation exceeds the threshold, it can promptly send a prompt message to the time synchronization device, so that the time synchronization device can perform precise time synchronization operations, ensuring that the time accuracy of the industrial smart tablet meets the stringent requirements of industrial scenarios, and effectively improving the accuracy of time synchronization of the industrial smart tablet time synchronization system.

[0039] It should be explained that, in the embodiments of this application, the industrial intelligent flat panel time synchronization system 10 does not rely on any form of network time synchronization, does not need to access the Internet, local area network or other communication networks, and does not need to interact with external time servers. Time synchronization can be completed simply by connecting a USB flash drive with pre-written standard time data through the universal serial bus host interface. It can stably achieve time calibration of real-time clock chips in industrial field environments with no network, weak network, limited network or untrusted network, effectively avoiding time synchronization failures caused by network interruption, network delay, network attack or complex network configuration, and improving the reliability, security and environmental adaptability of time synchronization.

[0040] The industrial smart panel time synchronization method in this embodiment is applied to an industrial smart panel in an industrial smart panel time synchronization system, which includes a time synchronization device and the industrial smart panel. Please refer to... Figure 2 , Figure 2 This is a flowchart of an industrial smart flat panel time synchronization method provided in the embodiments of this application, including but not limited to the following steps:

[0041] S201: Obtain the historical moment of the last time the industrial smart tablet was synchronized via the time synchronization device.

[0042] In this embodiment, the first time synchronization operation is a time calibration operation performed by the time synchronization device on the industrial smart tablet. The first time synchronization operation involves the time synchronization device acting as a high-precision time reference source, sending unified and accurate standard time information to the industrial smart tablet. Upon receiving this standard time information, the industrial smart tablet directly calibrates its own system time and the timing data of its internal real-time clock chip to the standard time provided by the time synchronization device, thereby eliminating its accumulated time errors and ensuring that the time of the industrial smart tablet is consistent with the reference time of the time synchronization device. The first time synchronization operation is initiated actively by the time synchronization device or executed according to prompts; it is an externally intervened high-precision time calibration method that ensures the industrial smart tablet maintains a reliable time reference even after prolonged operation.

[0043] The historical moment when the time synchronization device last performed the first time synchronization operation on the industrial smart tablet refers to the specific time point when the time synchronization device last completed the external high-precision time calibration of the industrial smart tablet. This historical moment is recorded and saved by the time synchronization device or the industrial smart tablet, which can clearly identify the starting point when the industrial smart tablet starts autonomous timing after being freed from external time calibration.

[0044] S202: Determine the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel during the operating period after the historical moment.

[0045] In this embodiment, the industrial smart panel includes the real-time clock chip. The real-time clock chip within the industrial smart panel is a timing device independent of the main control system. It continuously provides timing functionality during the operation of the industrial smart panel, and can autonomously maintain time counting even when the external time is not calibrated. It provides a stable local time reference for the industrial smart panel and is a core hardware component for realizing autonomous timing and time deviation calculation.

[0046] The independent runtime of the real-time clock chip in an industrial smart panel within the operating period after a historical moment refers to the total time during which the real-time clock chip continuously runs autonomously without external time calibration, from the historical moment when the time synchronization device completed the first time synchronization operation to the moment when the time synchronization judgment is currently being executed. This duration reflects the length of time the real-time clock chip has worked independently after being separated from the reference time calibration.

[0047] The average operating temperature of the real-time clock chip in an industrial smart panel during the operating period after a historical moment refers to the average value obtained after collecting, statistically analyzing, and calculating the temperature data of the operating environment of the real-time clock chip during the entire independent operating period within the operating period. This temperature can reflect the overall operating environment status of the chip during this operating period and is an important environmental parameter affecting the chip's time drift and timing accuracy.

[0048] Industrial smart flat panels can record the time interval from a historical moment to the current moment through an internal timing unit, thereby determining the independent operating time of the real-time clock chip. At the same time, through a built-in temperature acquisition module, such as a temperature sensor, the operating temperature of the real-time clock chip can be continuously acquired at a preset cycle within the independent operating time period. The collected temperature data are summed and the average value is calculated to obtain the corresponding average operating temperature.

[0049] S203: Determine the target time deviation based on the independent running time and the average operating temperature.

[0050] In this embodiment, the time drift characteristic parameters corresponding to the real-time clock chip can be obtained first. These drift characteristic parameters include a first fitting relationship of time deviation changing with independent running time and a second fitting relationship of time deviation changing with operating temperature. Then, the actual independent running time is substituted into the first fitting relationship to calculate the first time deviation corresponding to the running time. At the same time, the actual average operating temperature is substituted into the second fitting relationship to calculate the second time deviation corresponding to the operating temperature. Finally, the first time deviation and the second time deviation are combined for comprehensive calculation to obtain the target time deviation that can fully reflect the combined influence of running time and operating temperature.

[0051] It can be seen that by first determining the time drift characteristic parameters of the real-time clock chip as it changes with independent running time and operating temperature, and then calculating the corresponding time deviations and combining them to obtain the target time deviation, the dual impact of time drift caused by the chip's long-term autonomous operation and changes in ambient temperature on timing accuracy can be fully considered. This makes the calculated target time deviation more consistent with the actual operating conditions and effectively improves the accuracy and reliability of time deviation judgment.

[0052] S204: If the target time deviation is less than or equal to the time deviation threshold, then a second time synchronization operation is performed on the industrial smart flat panel based on the target time deviation.

[0053] In this embodiment, the second time synchronization operation is a time calibration operation performed by the industrial smart tablet based on the target time deviation. Specifically, the second time synchronization operation involves the industrial smart tablet directly correcting and adjusting its internal real-time clock chip and system time based on the target time deviation calculated by itself, without relying on an external time synchronization device. This eliminates the deviation between the current timing data and the standard time, restoring its own time to an accurate state. The entire process is completed autonomously by the industrial smart tablet and is a local autonomous calibration operation.

[0054] When the target time deviation is less than or equal to the time deviation threshold, it indicates that the time error of the industrial smart tablet is small and within the allowable accuracy range. At this time, there is no need to start an external time synchronization device for calibration. The industrial smart tablet can directly complete the second time synchronization operation itself, which can ensure that the time accuracy meets the usage requirements, reduce the dependence on external devices, reduce the frequency of communication interaction, save system resources, and improve the efficiency and flexibility of time calibration.

[0055] The industrial smart tablet can use the calculated target time deviation as a correction basis to determine whether its own time is faster or slower than the standard time. Then, based on the value and direction of the target time deviation, it adjusts the timing parameters of the internal real-time clock chip and the system display time accordingly. The real-time clock chip inside the industrial smart tablet directly compensates for the duration corresponding to the target time deviation, completes the calibration of its own time, and thus achieves the second time synchronization operation.

[0056] S205: If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message.

[0057] In this embodiment, when the target time deviation is greater than the time deviation threshold, it indicates that the time error of the industrial smart tablet has exceeded the reasonable range that can be guaranteed by autonomous calibration. Relying solely on itself to perform the second time synchronization operation is insufficient to meet the strict time accuracy requirements of industrial scenarios. At this time, it is necessary to send a time synchronization prompt message to the time synchronization device, so that the time synchronization device with higher time reference accuracy can perform the first time synchronization operation, thereby completely eliminating the accumulated time deviation, ensuring that the timing accuracy of the industrial smart tablet is restored to the standard level, and guaranteeing the consistency and reliability of the entire system time.

[0058] After determining that the target time deviation is greater than the time deviation threshold, the industrial smart panel will generate a corresponding time synchronization prompt message based on the calculated target time deviation and send the message to the time synchronization device. Upon receiving the prompt message, the time synchronization device will immediately perform the first time synchronization operation on the industrial smart panel based on its own standard time, calibrating the system time and real-time clock chip time of the industrial smart panel to the standard time, thus completing high-precision external time calibration.

[0059] Time synchronization prompts can be instructions sent by the industrial smart tablet to the time synchronization device to request high-precision time calibration. For example, they can include the device identifier of the current industrial smart tablet, the detected target time deviation value, and the time deviation exceeding the limit status indicator. Specifically, they can include the device number, the current time deviation size, and the instruction to immediately perform external time synchronization, so that the time synchronization device can quickly identify the object that needs to be calibrated and promptly perform the first time synchronization operation.

[0060] It can be seen that by first obtaining the historical moment of the last external high-precision time synchronization, and then combining the independent running time and average operating temperature of the real-time clock chip to calculate the target time deviation, the timing error caused by the real-time clock chip of the industrial smart tablet after being separated from external calibration due to its own operation and the influence of ambient temperature can be accurately reflected. Then, the synchronization method is selected according to the magnitude of the deviation. When the deviation is small, the tablet can complete the local calibration autonomously, which can reduce the frequent dependence on the time synchronization device, reduce system communication and resource consumption, and improve calibration efficiency. When the deviation is large, the tablet actively requests the external device to perform high-precision synchronization, which improves the accuracy of the time synchronization of the industrial smart tablet and ensures that the industrial smart tablet always meets the stringent time accuracy requirements.

[0061] Please see Figure 3 , Figure 3 This is a flowchart of a method for determining a target time deviation provided in an embodiment of this application, including but not limited to the following steps:

[0062] S301: Determine the time drift characteristic parameters corresponding to the real-time clock chip.

[0063] In this embodiment, the time drift characteristic parameters include a first fitting relationship of time deviation as a function of independent running time, and a second fitting relationship of time deviation as a function of operating temperature.

[0064] The first fitting relationship refers to the corresponding relationship between the time deviation and the independent running time obtained by collecting and fitting the historical operating data of the real-time clock chip. This first fitting relationship reflects how the time deviation changes accordingly as the real-time clock chip runs autonomously and continuously without external time calibration for a longer period of time under the condition that the operating temperature remains relatively stable. It can quantify the impact of the independent running time on the timing accuracy of the chip.

[0065] The second fitting relationship refers to the corresponding relationship between the time deviation and the operating temperature after collecting and fitting the time deviation data of the real-time clock chip at different operating temperatures. This second fitting relationship reflects how the time deviation of the real-time clock chip changes when the operating temperature of the environment changes under the condition that the independent running time remains unchanged. It can quantify the impact of the operating temperature on the timing accuracy of the chip separately.

[0066] When determining the time drift characteristic parameters of a real-time clock chip, the time deviation data of the chip at a preset operating temperature and different independent operating durations can be collected within a preset historical time period to form the first time deviation data. This data is then fitted to obtain the first fitting relationship between the time deviation and the independent operating duration. Next, within the same preset historical time period, the time deviation data of the chip at a preset independent operating duration and different operating temperatures can be collected to form the second time deviation data. This data is then fitted to obtain the second fitting relationship between the time deviation and the operating temperature. Finally, the first and second fitting relationships are combined to obtain the time drift characteristic parameters of the real-time clock chip.

[0067] For example, the time deviation data of the real-time clock chip under a preset operating temperature and different independent running lengths within the preset historical time period is obtained to obtain the first time deviation data. Specifically, the first time deviation data is obtained by fixing the operating temperature of the real-time clock chip at a preset value and changing only its independent running length within the preset historical time period, and collecting the time deviation values ​​generated by the chip under different independent running lengths. The set of time deviations recorded according to different running lengths is the first time deviation data.

[0068] For example, based on the first time deviation data, a first fitting relationship is obtained by fitting the time deviation with the independent running time. Specifically, after obtaining the first time deviation data, the independent running time at a preset operating temperature is used as the independent variable, and the corresponding time deviation is used as the dependent variable. Fitting methods such as linear fitting, polynomial fitting, and exponential fitting can be selected to fit and calculate multiple sets of measured data. By fitting, random errors in the data are eliminated, and the stable trend and quantitative relationship of the time deviation with the independent running time are extracted. Finally, a function or corresponding relationship that can accurately represent the continuous change of the time deviation with the independent running time under a fixed temperature condition is obtained, which is the first fitting relationship.

[0069] For example, the time deviation data of the real-time clock chip under a preset independent running time and different operating temperatures within the preset historical time period is obtained to obtain the second time deviation data. Specifically, the second time deviation data is obtained by fixing the independent running time of the real-time clock chip to a preset value and changing only its operating temperature within the preset historical time period, and collecting the time deviation values ​​generated by the chip under different operating temperatures. The set of time deviations recorded according to different temperatures is the second time deviation data.

[0070] For example, based on the second time deviation data, a second fitting relationship is obtained by fitting the time deviation with the change of operating temperature. Specifically, after obtaining the second time deviation data, the operating temperature under a preset independent running time is used as the independent variable, and the corresponding time deviation is used as the dependent variable. Fitting methods such as linear fitting, polynomial fitting, and exponential fitting can be used to fit multiple sets of measured data, eliminate random fluctuations in the data, extract the stable law and quantitative correspondence of the time deviation with the change of operating temperature, and finally obtain a function or correspondence that can accurately represent the continuous change of time deviation with operating temperature under a fixed running time condition, which is the second fitting relationship.

[0071] For example, the time drift characteristic parameter is determined based on the first fitting relationship and the second fitting relationship. Specifically, the first fitting relationship, which characterizes the change of time deviation with independent running time, is integrated with the second fitting relationship, which characterizes the change of time deviation with operating temperature, to obtain the time drift characteristic parameter.

[0072] It can be seen that by collecting time deviation data for different independent running durations at a fixed temperature and fitting the first fitting relationship of the duration effect, and then collecting time deviation data for different operating temperatures at a fixed duration and fitting the second fitting relationship of the temperature effect, and finally combining the two fitting relationships to determine the time drift characteristic parameters, the effects of independent running duration and operating temperature on the timing deviation of the real-time clock chip can be separated and analyzed separately, which can comprehensively reflect the time drift characteristics of the real-time clock chip under actual operating conditions.

[0073] S302: Determine the first time deviation corresponding to the independent running time based on the first fitting relationship.

[0074] In this embodiment, after determining the first fitting relationship of the time deviation changing with the independent running time, the independent running time corresponding to the running time period after the historical moment of the real-time clock chip of the industrial smart tablet can be substituted into the first fitting relationship, thereby obtaining the first time deviation corresponding to the independent running time.

[0075] S303: Determine the second time deviation corresponding to the average operating temperature based on the second fitting relationship.

[0076] In this embodiment, after determining the second fitting relationship between the time deviation and the operating temperature, the average operating temperature of the real-time clock chip of the industrial smart panel during the operating period after the historical moment can be substituted into the second fitting relationship to obtain the second time deviation corresponding to the average operating temperature.

[0077] S304: Determine the target time deviation based on the first time deviation and the second time deviation.

[0078] In this embodiment, the first time deviation caused by independent running time and the second time deviation caused by operating temperature can be weighted and summed or directly superimposed to calculate the timing error caused by these two factors together, so as to obtain a total error value that can truly reflect the actual deviation of the real-time clock chip. This total error value is used as the final target time deviation. The target time deviation determined in this way takes into account the dual effects of running time and ambient temperature, making it more accurate and reliable.

[0079] As can be seen, by first determining the time drift characteristic parameters of the real-time clock chip, establishing fitting relationships between time deviation and independent running time, and time deviation and operating temperature, and then calculating the corresponding first and second time deviations based on the actual running time and operating temperature, and finally combining the two to obtain the target time deviation, the dual impact of time drift caused by the chip's long-term operation and changes in ambient temperature on timing accuracy can be fully considered. This makes the calculated time deviation more consistent with actual working conditions, significantly improving the accuracy and reliability of time deviation judgment, and providing a precise basis for subsequent graded execution of time synchronization operations. This can avoid unnecessary external synchronization operations and ensure that the industrial smart flat panel maintains high time accuracy in complex environments, thereby improving the stability of the entire time synchronization system.

[0080] Please see Figure 4 , Figure 4 This is another flowchart for determining the target time deviation provided in this application, including but not limited to the following steps:

[0081] S401: Determine the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation.

[0082] In this embodiment, the sum of the first weight and the second weight is 1. When determining the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation, the weight can be allocated according to the magnitude of the impact of the real-time clock chip's independent operating time and operating temperature on time drift in the actual use environment. The influence of the two factors on timing accuracy can be analyzed by first analyzing historical data, and then combined with the environmental characteristics and equipment operating characteristics of the industrial site, a relatively higher weight can be allocated to the factor with a greater impact, while ensuring that the sum of the first weight and the second weight is 1.

[0083] S402: Determine a reference time deviation based on the first time deviation, the second time deviation, the first weight, and the second weight.

[0084] In this embodiment, the reference time deviation can be calculated using the following formula:

[0085] Reference time deviation = first time deviation × first weight + second time deviation × second weight;

[0086] The reference time deviation can be determined based on the first time deviation, the second time deviation, the first weight, and the second weight in the manner described above.

[0087] S403: Obtain the frequency of time synchronization operation of the industrial smart tablet through the time synchronization device within a preset historical time period, and obtain the historical time synchronization frequency.

[0088] In this embodiment, the end time of the preset historical time period is earlier than the historical time. The historical time synchronization frequency of the industrial smart tablet through the time synchronization device within the preset historical time period is calculated by dividing the total number of times the time synchronization device performs external high-precision time synchronization operations on the industrial smart tablet within the preset historical time period by the total duration of the historical time period. This historical time synchronization frequency reflects how frequently the industrial smart tablet relies on external devices for time calibration over a period of time.

[0089] The magnitude of the historical time synchronization frequency can intuitively reflect the stability of the industrial smart tablet's timekeeping during past operation and its dependence on external time synchronization calibration. A higher historical time synchronization frequency indicates that the tablet's own timekeeping drift is more obvious and more prone to time errors, and the demand for external calibration is stronger. A lower historical time synchronization frequency indicates that the tablet's own timekeeping stability is better, and it can maintain relatively accurate timekeeping for a long time by relying on the internal real-time clock chip.

[0090] S404: When the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, the reference time deviation is determined as the target time deviation.

[0091] In this embodiment, when the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, it indicates that the industrial smart tablet has rarely required external time calibration in the past operation, and the timing stability of its internal real-time clock chip is good. The time drift caused by independent running time and operating temperature is relatively clear and the fluctuation is small. At this time, the reference time deviation obtained by weighted calculation can accurately reflect the actual timing error of the chip, and no additional correction is needed. Therefore, the reference time deviation can be directly determined as the final target time deviation.

[0092] S405: When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the reference time deviation is adjusted based on the historical time synchronization frequency to obtain the target time deviation.

[0093] In this embodiment, when the historical time synchronization frequency is greater than the time synchronization frequency threshold, it indicates that the industrial smart tablet required frequent external time calibration during previous use, and the timing stability of its internal real-time clock chip was poor, with large fluctuations and unstable patterns in time drift. The reference time deviation obtained by simply weighting the independent running time and operating temperature would have a certain gap with the actual error. Therefore, it is necessary to make targeted adjustments to the reference time deviation based on the frequent calibration requirements and drift fluctuations reflected by the historical time synchronization frequency, so that the final target time deviation is closer to the chip's actual timing error, thereby improving the accuracy and reliability of time deviation calculation.

[0094] In this embodiment, the time synchronization frequency difference can be obtained by first calculating the difference between the historical time synchronization frequency and the time synchronization frequency threshold. Then, the corresponding time deviation adjustment coefficient can be determined based on the time synchronization frequency difference. The adjustment coefficient and the reference time deviation can then be processed accordingly to correct the reference time deviation, thereby obtaining a target time deviation that is more in line with the actual timing of the industrial smart tablet.

[0095] For example, the difference between the historical time synchronization frequency and the time synchronization frequency threshold is determined to obtain the time synchronization frequency difference. Specifically, the difference between the historical time synchronization frequency and the time synchronization frequency threshold can intuitively determine the severity of the industrial smart tablet's previous need for frequent calibration. The larger the difference, the more unstable the device's timing and the more obvious the time drift. Therefore, it is necessary to determine the difference between the historical time synchronization frequency and the time synchronization frequency threshold to obtain the time synchronization frequency difference.

[0096] For example, the time deviation adjustment coefficient corresponding to the time synchronization frequency difference is determined. Specifically, it can be a preset mapping relationship between the time synchronization frequency difference and the time deviation adjustment coefficient. Based on this mapping relationship, the time deviation adjustment coefficient corresponding to the time synchronization frequency difference can be determined.

[0097] For example, the reference time deviation is adjusted based on the time deviation adjustment coefficient to obtain the target time deviation. Specifically, the target time deviation can be calculated as follows:

[0098] Target time deviation = Reference time deviation × (1 + Time deviation adjustment factor);

[0099] The reference time deviation can be adjusted based on the time deviation adjustment coefficient using the above method to obtain the target time deviation.

[0100] It can be seen that by using weighted calculation of reference time deviation and adaptive adjustment in combination with historical time synchronization frequency, the weighted result can be directly used to ensure calculation efficiency when the timing of the industrial smart tablet is stable. When the timing is unstable and calibration is frequent, the deviation value is dynamically corrected according to the frequency difference. This fully considers the dual impact of independent running time and working temperature on time drift, and also improves the adaptability and accuracy of error calculation by combining historical calibration habits. This makes the target time deviation more consistent with the actual operating conditions of the equipment, and improves the overall accuracy and stability of time synchronization of the industrial smart tablet.

[0101] It should be noted that when the historical time synchronization frequency is greater than the time synchronization frequency threshold, the aging degree value corresponding to the real-time clock chip is determined based on the historical time synchronization frequency, and it is determined whether the aging degree value is greater than the aging degree threshold. If so, a warning message is generated based on the aging degree value. The warning message is used to remind the real-time clock chip of the industrial smart tablet that it needs to be replaced. Specifically, when the historical time synchronization frequency is greater than the time synchronization frequency threshold, it indicates that the timing stability of the real-time clock chip of the industrial smart tablet is poor and the time drift is obvious. At this time, the aging degree value corresponding to the real-time clock chip can be determined according to the historical time synchronization frequency, and then the aging degree value is compared with the preset aging degree threshold. If the aging degree value is greater than the aging degree threshold, a corresponding warning message is generated based on the aging degree value to remind relevant personnel that the real-time clock chip of the industrial smart tablet has seriously aged and needs to be checked or replaced in time, so as to avoid the timing error from continuously increasing due to chip aging and affecting the normal operation of the equipment.

[0102] Please see Figure 5 , Figure 5 This is a flowchart of an embodiment of the present application for determining an aging degree value, including but not limited to the following steps:

[0103] S501: Determine the reference aging level value corresponding to the real-time clock chip based on the historical time synchronization frequency.

[0104] In this embodiment, it can be a mapping relationship between a preset historical time synchronization frequency and a reference aging value corresponding to the real-time clock chip. Based on this mapping relationship, the reference aging value corresponding to the real-time clock chip can be determined based on the historical time synchronization frequency.

[0105] S502: Obtain the cumulative power-on duration corresponding to the real-time clock chip.

[0106] In this embodiment, the longer the cumulative power-on time of the real-time clock chip, the more obvious the wear and performance degradation of the internal components of the real-time clock chip, the greater the time drift and timing error, and the higher the corresponding aging value. The shorter the cumulative power-on time, the better the real-time clock chip generally maintains its working state, the stronger the timing stability, and the lower the corresponding aging value. Therefore, it is necessary to obtain the cumulative power-on time of the real-time clock chip.

[0107] S503: Determine the optimization parameters corresponding to the cumulative power-on duration.

[0108] In this embodiment, it can be a mapping relationship between a preset cumulative power-on time and optimization parameters. Based on this mapping relationship, the optimization parameters corresponding to the cumulative power-on time can be determined.

[0109] S504: Adjust the reference aging value based on the optimized parameters to obtain the aging value corresponding to the real-time clock chip.

[0110] In this embodiment, the aging level value corresponding to the real-time clock chip is calculated in the following manner:

[0111] The aging level value corresponding to the real-time clock chip = reference aging level value × (1 + optimization parameters);

[0112] The reference aging value can be adjusted based on the optimization parameters using the above method to obtain the aging value corresponding to the real-time clock chip.

[0113] It can be seen that, based on the reference aging value obtained from the historical time synchronization frequency, further optimization parameters are introduced by combining the cumulative power-on time of the real-time clock chip. This can simultaneously take into account the two key aging factors of the chip's actual usage frequency and long-term operating wear. The final aging value no longer relies solely on the synchronization frequency data, but more comprehensively and realistically reflects the actual aging state of the chip, effectively improving the accuracy and reliability of aging judgment.

[0114] Please see Figure 6 , Figure 6 This is a structural schematic diagram of an industrial smart flat panel provided in an embodiment of this application. Figure 6 In China, industrial smart flat panels mainly include core hardware and functional modules such as a general serial bus host interface, real-time clock hardware, memory, processor, indicator lights, screen, dynamic correction module, and temperature sensor.

[0115] The universal serial bus host interface serves as the external data interaction interface for industrial smart tablets. It can be used to connect universal serial bus external devices such as USB flash drives, keyboards, and mice to realize functions such as data import and export, parameter configuration, and peripheral control, providing hardware support for convenient operation and data transmission in industrial settings.

[0116] Real-time clock hardware is the core of timing in industrial smart tablets. Also known as a real-time clock chip, it can continue to count time even after the device is powered off, providing the system with accurate reference time. It is the foundation for ensuring the normal operation of functions such as device time synchronization, log recording, and timing control.

[0117] The memory is used to store information such as system programs, application data, operation logs, time deviation data and configuration parameters of industrial smart tablets. It can be divided into volatile memory and non-volatile memory. The former ensures high-speed reading and writing of data during operation, while the latter ensures that critical data is not lost after power failure, providing data storage support for stable system operation.

[0118] As the computing and control core of the industrial smart panel, the processor is responsible for executing system instructions, processing various types of data, and scheduling the collaborative work of various modules, including core logical operations such as time deviation calculation, fitting analysis, and aging degree judgment. It is the core computing power support to ensure the efficient and stable operation of the equipment.

[0119] Indicator lights visually display the operating status of the industrial smart panel through different colors or flashing states, such as power on / off, network connection status, time synchronization status, and fault alarms, making it easy for on-site maintenance personnel to quickly identify the equipment's working status and promptly detect and handle abnormalities.

[0120] The screen serves as the human-machine interface for industrial smart tablets, displaying equipment operating parameters, time information, alarm prompts, and other content. It also supports touch operation, facilitating parameter configuration, data viewing, and function operation for maintenance personnel, thereby enhancing the convenience of interaction in the industrial field.

[0121] The dynamic correction module dynamically corrects the timing deviation of the real-time clock hardware based on data such as the time drift characteristics of the real-time clock chip, historical time synchronization frequency, and aging degree. By adjusting the time deviation compensation value, it ensures that the industrial smart tablet can maintain high timing accuracy under different working conditions and improves the reliability of time synchronization.

[0122] Temperature sensors collect real-time operating temperature data of the internal or surrounding environment of industrial smart tablets, providing temperature-dimensional data support for time deviation fitting analysis, drift characteristic parameter determination, and aging degree assessment. This helps the system accurately quantify the impact of temperature on real-time clock hardware timing drift and improve the accuracy of time deviation calculation and correction.

[0123] In summary, implementing the embodiments of the present invention has the following beneficial effects:

[0124] As can be seen, the industrial smart tablet time synchronization method described in this embodiment of the invention is applied to an industrial smart tablet in an industrial smart tablet time synchronization system. The industrial smart tablet time synchronization system includes a time synchronization device and the industrial smart tablet. First, the historical moment when the industrial smart tablet was last synchronized by the time synchronization device is obtained. Then, the independent runtime and average operating temperature of the real-time clock chip of the industrial smart tablet during the operating period after the historical moment are determined. Next, a target time deviation is determined based on the independent runtime and the average operating temperature. If the target time deviation is less than or equal to a time deviation threshold, a second time synchronization operation is performed on the industrial smart tablet based on the target time deviation. If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart tablet based on the time synchronization prompt message, thereby improving the accuracy of the industrial smart tablet time synchronization.

[0125] Please see Figure 7 , Figure 7 This is a schematic diagram of the structure of an industrial smart tablet time synchronization device provided in an embodiment of this application. The industrial smart tablet time synchronization device 700 is applied to an industrial smart tablet in an industrial smart tablet time synchronization system. The industrial smart tablet time synchronization system includes a time synchronization device and the industrial smart tablet. The industrial smart tablet time synchronization device 700 includes: an acquisition unit 701 and a processing unit 702.

[0126] The acquisition unit 701 is used to acquire the historical moment of the last time the industrial smart tablet was synchronized with the time synchronization device; the first time synchronization operation is the time calibration operation performed by the time synchronization device on the industrial smart tablet.

[0127] The processing unit 702 is used to determine the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel during the operating time period after the historical moment; the industrial smart panel includes the real-time clock chip.

[0128] The target time deviation is determined based on the independent operating time and the average operating temperature;

[0129] If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation.

[0130] If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message.

[0131] In some possible implementations, the processing unit 702 is specifically configured to: determine the target time deviation based on the independent runtime and the average operating temperature.

[0132] Determine the time drift characteristic parameters corresponding to the real-time clock chip; the time drift characteristic parameters include a first fitting relationship of time deviation changing with independent running time, and a second fitting relationship of time deviation changing with operating temperature;

[0133] The first time deviation corresponding to the independent runtime is determined based on the first fitting relationship;

[0134] The second time deviation corresponding to the average operating temperature is determined based on the second fitting relationship;

[0135] The target time deviation is determined based on the first time deviation and the second time deviation.

[0136] In some possible implementations, in determining the target time deviation based on the first time deviation and the second time deviation, the processing unit 702 is specifically configured to:

[0137] Determine the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation; the sum of the first weight and the second weight is 1;

[0138] A reference time deviation is determined based on the first time deviation, the second time deviation, the first weight, and the second weight;

[0139] The frequency of time synchronization operations performed on the industrial smart tablet via the time synchronization device within a preset historical time period is obtained to obtain the historical time synchronization frequency; the end time of the preset historical time period is earlier than the historical time.

[0140] When the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, the reference time deviation is determined as the target time deviation.

[0141] When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the reference time deviation is adjusted based on the historical time synchronization frequency to obtain the target time deviation.

[0142] In some possible implementations, in adjusting the reference time deviation based on the historical time synchronization frequency to obtain the target time deviation, the processing unit 702 is specifically used for:

[0143] The difference between the historical time synchronization frequency and the time synchronization frequency threshold is determined to obtain the time synchronization frequency difference.

[0144] Determine the time deviation adjustment coefficient corresponding to the time synchronization frequency difference;

[0145] The reference time deviation is adjusted based on the time deviation adjustment coefficient to obtain the target time deviation.

[0146] In some possible implementations, the processing unit 702 is further specifically used for:

[0147] When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the aging degree value of the real-time clock chip is determined based on the historical time synchronization frequency.

[0148] Determine whether the aging degree value is greater than the aging degree threshold;

[0149] If so, a warning message is generated based on the aging level value; the warning message is used to remind the industrial smart panel that the real-time clock chip needs to be replaced.

[0150] In some possible implementations, the processing unit 702 is specifically used for determining the aging level value corresponding to the real-time clock chip based on the historical time synchronization frequency:

[0151] The reference aging level value corresponding to the real-time clock chip is determined based on the historical time synchronization frequency.

[0152] Obtain the cumulative power-on duration corresponding to the real-time clock chip;

[0153] Determine the optimization parameters corresponding to the cumulative power-on duration;

[0154] The reference aging value is adjusted based on the optimized parameters to obtain the aging value corresponding to the real-time clock chip.

[0155] In some possible implementations, the processing unit 702 is specifically used for determining the time drift characteristic parameters corresponding to the real-time clock chip as follows:

[0156] The time deviation data of the real-time clock chip within the preset historical time period is obtained under the preset operating temperature and different independent running durations to obtain the first time deviation data.

[0157] Based on the first time deviation data, a first fitting relationship is obtained for the time deviation as a function of independent running time.

[0158] The time deviation data of the real-time clock chip is obtained within the preset historical time period, under a preset independent running length and different operating temperatures, to obtain the second time deviation data.

[0159] Based on the second time deviation data, a second fitting relationship between the time deviation and the working temperature is obtained;

[0160] The time drift characteristic parameters are determined based on the first fitting relationship and the second fitting relationship.

[0161] Please see Figure 8 , Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. For example... Figure 8 As shown, the electronic device 800 includes a transceiver 801, a processor 802, and a memory 803. These are connected via a bus 804. The memory 803 stores computer programs and data, and the transceiver 801 can transmit data stored in the memory 803 to the processor 802. The program includes instructions for performing the following steps:

[0162] Obtain the historical moment of the last time the industrial smart panel was synchronized via the time synchronization device; the first time synchronization operation was a time calibration operation performed by the time synchronization device on the industrial smart panel.

[0163] The independent runtime and average operating temperature of the real-time clock chip in the industrial smart panel are determined during the operating period after the historical moment; the industrial smart panel includes the real-time clock chip.

[0164] The target time deviation is determined based on the independent operating time and the average operating temperature;

[0165] If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation.

[0166] If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message.

[0167] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the target time deviation based on the independent runtime and the average operating temperature:

[0168] Determine the time drift characteristic parameters corresponding to the real-time clock chip; the time drift characteristic parameters include a first fitting relationship of time deviation changing with independent running time, and a second fitting relationship of time deviation changing with operating temperature;

[0169] The first time deviation corresponding to the independent runtime is determined based on the first fitting relationship;

[0170] The second time deviation corresponding to the average operating temperature is determined based on the second fitting relationship;

[0171] The target time deviation is determined based on the first time deviation and the second time deviation.

[0172] In some possible implementations, in determining the target time deviation based on the first time deviation and the second time deviation, the above procedure includes instructions for performing the following steps:

[0173] Determine the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation; the sum of the first weight and the second weight is 1;

[0174] A reference time deviation is determined based on the first time deviation, the second time deviation, the first weight, and the second weight;

[0175] The frequency of time synchronization operations performed on the industrial smart tablet via the time synchronization device within a preset historical time period is obtained to obtain the historical time synchronization frequency; the end time of the preset historical time period is earlier than the historical time.

[0176] When the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, the reference time deviation is determined as the target time deviation.

[0177] When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the reference time deviation is adjusted based on the historical time synchronization frequency to obtain the target time deviation.

[0178] In some possible implementations, in adjusting the reference time deviation based on the historical time synchronization frequency to obtain the target time deviation, the above procedure includes instructions for performing the following steps:

[0179] The difference between the historical time synchronization frequency and the time synchronization frequency threshold is determined to obtain the time synchronization frequency difference.

[0180] Determine the time deviation adjustment coefficient corresponding to the time synchronization frequency difference;

[0181] The reference time deviation is adjusted based on the time deviation adjustment coefficient to obtain the target time deviation.

[0182] In some possible implementations, the above procedure includes instructions for performing the following steps:

[0183] When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the aging degree value of the real-time clock chip is determined based on the historical time synchronization frequency.

[0184] Determine whether the aging degree value is greater than the aging degree threshold;

[0185] If so, a warning message is generated based on the aging level value; the warning message is used to remind the industrial smart panel that the real-time clock chip needs to be replaced.

[0186] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the aging level value corresponding to the real-time clock chip based on the historical time synchronization frequency:

[0187] The reference aging level value corresponding to the real-time clock chip is determined based on the historical time synchronization frequency.

[0188] Obtain the cumulative power-on duration corresponding to the real-time clock chip;

[0189] Determine the optimization parameters corresponding to the cumulative power-on duration;

[0190] The reference aging value is adjusted based on the optimized parameters to obtain the aging value corresponding to the real-time clock chip.

[0191] In some possible implementations, the above procedure includes instructions for performing the following steps in determining the time drift characteristic parameters corresponding to the real-time clock chip:

[0192] The time deviation data of the real-time clock chip within the preset historical time period is obtained under the preset operating temperature and different independent running durations to obtain the first time deviation data.

[0193] Based on the first time deviation data, a first fitting relationship is obtained for the time deviation as a function of independent running time.

[0194] The time deviation data of the real-time clock chip is obtained within the preset historical time period, under a preset independent running length and different operating temperatures, to obtain the second time deviation data.

[0195] Based on the second time deviation data, a second fitting relationship between the time deviation and the working temperature is obtained;

[0196] The time drift characteristic parameters are determined based on the first fitting relationship and the second fitting relationship.

[0197] It should be understood that the electronic devices mentioned in this application may include smartphones (such as Android phones, iOS phones, Windows Phones, etc.), tablets, PDAs, laptops, mobile internet devices (MIDs) or wearable devices, servers, edge computing nodes, etc. The above-mentioned electronic devices are merely examples and not exhaustive, and include, but are not limited to, the electronic devices described above.

[0198] This application also provides a computer-readable storage medium storing a computer program that is executed by a processor to implement some or all of the steps of any of the methods described in the above method embodiments.

[0199] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments.

[0200] It should be noted that, for the sake of simplicity, the aforementioned methods are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are optional, and the actions and modules involved are not necessarily essential to this application.

[0201] In the above embodiments, the descriptions of each embodiment have their own emphasis. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0202] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0203] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment, depending on actual needs.

[0204] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software program module.

[0205] If the integrated unit is implemented as a software program module and sold or used as an independent product, it can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0206] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage device, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0207] The embodiments of this application have been described in detail above. Specific examples have been used in this document to illustrate the principles and implementation methods of this application. The description of the embodiments above is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. An industrial intelligent tablet time synchronization method, characterized in that, The method includes: The historical moment when the time synchronization device last performed the first time synchronization operation on the industrial smart panel is obtained; the first time synchronization operation is the calibration time operation performed by the time synchronization device on the industrial smart panel. The independent runtime and average operating temperature of the real-time clock chip in the industrial smart panel are determined during the operating period after the historical moment; the industrial smart panel includes the real-time clock chip. The target time deviation is determined based on the independent operating time and the average operating temperature; If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation. If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message. The step of determining the target time deviation based on the independent running time and the average operating temperature includes: Determine the time drift characteristic parameters corresponding to the real-time clock chip; the time drift characteristic parameters include a first fitting relationship of time deviation changing with independent running time, and a second fitting relationship of time deviation changing with operating temperature; The first time deviation corresponding to the independent runtime is determined based on the first fitting relationship; The second time deviation corresponding to the average operating temperature is determined based on the second fitting relationship; The target time deviation is determined based on the first time deviation and the second time deviation; The step of determining the target time deviation based on the first time deviation and the second time deviation includes: Determine the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation; the sum of the first weight and the second weight is 1; A reference time deviation is determined based on the first time deviation, the second time deviation, the first weight, and the second weight; The frequency of time synchronization operations performed on the industrial smart tablet via the time synchronization device within a preset historical time period is obtained to obtain the historical time synchronization frequency; the end time of the preset historical time period is earlier than the historical time. When the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, the reference time deviation is determined as the target time deviation. When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the reference time deviation is adjusted based on the historical time synchronization frequency to obtain the target time deviation.

2. The method as described in claim 1, characterized in that, The step of adjusting the reference time deviation based on the historical time synchronization frequency to obtain the target time deviation includes: The difference between the historical time synchronization frequency and the time synchronization frequency threshold is determined to obtain the time synchronization frequency difference. Determine the time deviation adjustment coefficient corresponding to the time synchronization frequency difference; The reference time deviation is adjusted based on the time deviation adjustment coefficient to obtain the target time deviation.

3. The method as described in claim 2, characterized in that, The method further includes: When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the aging degree value of the real-time clock chip is determined based on the historical time synchronization frequency. Determine whether the aging degree value is greater than the aging degree threshold; If so, a warning message is generated based on the aging level value; the warning message is used to remind the industrial smart panel that the real-time clock chip needs to be replaced.

4. The method as described in claim 3, characterized in that, Determining the aging level value of the real-time clock chip based on the historical time synchronization frequency includes: The reference aging level value corresponding to the real-time clock chip is determined based on the historical time synchronization frequency. Obtain the cumulative power-on duration corresponding to the real-time clock chip; Determine the optimization parameters corresponding to the cumulative power-on duration; The reference aging value is adjusted based on the optimized parameters to obtain the aging value corresponding to the real-time clock chip.

5. The method as described in claim 4, characterized in that, Determining the time drift characteristic parameters corresponding to the real-time clock chip includes: The time deviation of the real-time clock chip within the preset historical time period is obtained under the preset operating temperature and different independent running durations to obtain a first time deviation data set. Based on the first time deviation data set, a first fitting relationship is obtained for the time deviation as a function of independent running time. The time deviation of the real-time clock chip within the preset historical time period, under a preset independent running length and different operating temperatures, is obtained to obtain a second time deviation data set. Based on the second time deviation data set, a second fitting relationship between the time deviation and the operating temperature is obtained; The time drift characteristic parameters are determined based on the first fitting relationship and the second fitting relationship.

6. An industrial intelligent flat panel time synchronization device, characterized in that, The device includes: an acquisition unit and a processing unit; The acquisition unit is used to acquire the historical moment when the time synchronization device last performed a first time synchronization operation on the industrial smart tablet; the first time synchronization operation is a calibration time operation performed by the time synchronization device on the industrial smart tablet. The processing unit is used to determine the independent runtime and average operating temperature of the real-time clock chip of the industrial smart panel during the operating period after the historical moment; the industrial smart panel includes the real-time clock chip. The target time deviation is determined based on the independent operating time and the average operating temperature; If the target time deviation is less than or equal to the time deviation threshold, a second time synchronization operation is performed on the industrial smart panel based on the target time deviation; the second time synchronization operation is a time calibration operation performed by the industrial smart panel on itself based on the target time deviation. If the target time deviation is greater than the time deviation threshold, a time synchronization prompt message is sent to the time synchronization device based on the target time deviation, so that the time synchronization device performs the first time synchronization operation on the industrial smart flat panel based on the time synchronization prompt message. The step of determining the target time deviation based on the independent running time and the average operating temperature includes: Determine the time drift characteristic parameters corresponding to the real-time clock chip; the time drift characteristic parameters include a first fitting relationship of time deviation changing with independent running time, and a second fitting relationship of time deviation changing with operating temperature; The first time deviation corresponding to the independent runtime is determined based on the first fitting relationship; The second time deviation corresponding to the average operating temperature is determined based on the second fitting relationship; The target time deviation is determined based on the first time deviation and the second time deviation; The step of determining the target time deviation based on the first time deviation and the second time deviation includes: Determine the first weight corresponding to the first time deviation and the second weight corresponding to the second time deviation; the sum of the first weight and the second weight is 1; A reference time deviation is determined based on the first time deviation, the second time deviation, the first weight, and the second weight; The frequency of time synchronization operations performed on the industrial smart tablet via the time synchronization device within a preset historical time period is obtained to obtain the historical time synchronization frequency; the end time of the preset historical time period is earlier than the historical time. When the historical time synchronization frequency is less than or equal to the time synchronization frequency threshold, the reference time deviation is determined as the target time deviation. When the historical time synchronization frequency is greater than the time synchronization frequency threshold, the reference time deviation is adjusted based on the historical time synchronization frequency to obtain the target time deviation.

7. An electronic device, characterized in that, The method includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the one or more programs include instructions for performing the steps of the method according to any one of claims 1-5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that is executed by a processor to implement the method as described in any one of claims 1-5.