A multi-device time synchronization method
Patent Information
- Application Number
- CN202311683579.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-08
- Publication Date
- 2026-09-25
- Estimated Expiration
- 2043-12-08
AI Technical Summary
鉴于现有技术的上述缺点、不足,本发明提供一种多设备时间同步方法,其解决了脉冲丢失或者存在延迟到达的问题和多采样设备时,对多个采样设备的协同记录支持较差,多个采样设备收到的脉冲的时刻存在延迟,而导致多设备在记录信号时刻的基准不准最终导致记录的SOE时刻不准的问题
本发明的有益效果是:使用脉冲同步线和数据通讯线来实现脉冲源、DCS控制器和采样设备之间的数据交流,更加精确地记录SOE产生时间;对于多采样设备的系统,每一个采样设备均通过自身计数,实现设备之间的时间同步,确保设备间的SOE记录时间的精确性。
Smart Images

Figure CN117596348B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of automation control technology, and in particular to a method for time synchronization of multiple devices. Background Technology
[0002] SOE recording is the recording of transitions and the timing of transitions in a sampled signal. It requires the recording time to have millisecond-level time resolution and to be able to distinguish the order in which consecutive signal transitions or multiple device signal transitions occur.
[0003] Current SOE recording methods typically use a pulse source to generate and send pulse signals to a signal sampling device. The pulse source records the signal transition times on a second-by-second basis, while the signal sampling device records the test signal data on a millisecond-by-millisecond basis. The two times are then added together to obtain the actual measured signal time. This recording method is generally suitable for recording signals from a single sampling device. However, it suffers from significant errors when multiple sampling devices are needed for simultaneous recording.
[0004] First, it takes some time for the pulse signal generated by the pulse source to reach the sampling device. There may be situations where the pulse source has already emitted a pulse, but the sampling device has not yet received the pulse, or the pulse may be lost after being emitted and not delivered to the sampling device. In such cases, if the measured signal time is incorrect, the recorded time will be wrong.
[0005] Secondly, the support for collaborative recording of multiple sampling devices is poor. There is a delay in the timing of the pulses received by multiple sampling devices, which is determined by factors such as the wiring length from each sampling device to the pulse source and the response speed of the sampling devices. Each sampling device cannot guarantee that it will receive the pulse signal at the same time. This will cause many devices to have inaccurate references for recording measurement signals, ultimately resulting in inaccurate recorded SOE timing. Summary of the Invention
[0006] (a) Technical problems to be solved In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides a multi-device time synchronization method, which solves the problems of pulse loss or delayed arrival, poor support for collaborative recording of multiple sampling devices, and delays in the timing of pulses received by multiple sampling devices, which leads to inaccurate references for the recording signal timing of multiple devices and ultimately inaccurate recorded SOE timing.
[0007] (II) Technical Solution To achieve the above objectives, the main technical solutions adopted by the present invention include: Firstly, a multi-device SOE recording system is provided, comprising: DCS controller, pulse source, and at least one sampling device; The pulse source is used to generate pulse signals according to a preset period. The pulse source is connected to the DCS controller and each sampling device through a pulse synchronization line. The DCS controller and each sampling device receive the pulse signal generated by the pulse source through a pulse synchronization line; The DCS controller sends data containing a synchronization number to each sampling device via a data communication line; the synchronization number is the count data when the DCS controller receives a pulse signal. When each of the sampling devices receives a pulse signal, it counts according to a preset time resolution; the DCS controller receives SOE record information obtained by each sampling device based on the synchronization number and the sampling device's own count value.
[0008] Optionally, the pulse source is a pulse source in the DCS controller.
[0009] Optionally, the data communication line includes a CAN bus or an Ethernet cable.
[0010] Secondly, a multi-device time synchronization method based on a multi-device SOE recording system includes: When the DCS controller receives a pulse signal from the pulse source through the pulse synchronization line, it counts the synchronization number according to the preset synchronization number counting rules. The DCS controller sends data containing the counted synchronization number to all the sampling devices through the data communication line, and records the counted synchronization number and the standard time corresponding to the synchronization number as a pair of data records in the preset SOE synchronization time table. When each of the sampling devices receives a pulse signal, the sampling device counts from 0 according to a preset time resolution; When the sampling signal of the sampling device changes, the sampling device records the change information, the count value at the time of the change, and the current synchronization number as a set of data in the pre-set SOE record information table.
[0011] Optionally, the method further includes: The DCS controller queries the SOE record information table from the sampling device via the data communication line based on a pre-set period, and records the device number of the queried sampling device. The DCS controller maps the synchronization number corresponding to each jump information in the SOE record information table to the synchronization number in the SOE synchronization time table, finds the standard time corresponding to each synchronization number, and calculates the actual time corresponding to each standard time according to the SOE record information table. The DCS controller records each transition information, the corresponding device number, and the actual time as a set of data in a pre-set SOE record table.
[0012] Optionally, it is characterized in that, The DCS controller counts synchronization numbers according to a pre-set synchronization number counting rule, including: when the DCS controller receives a pulse signal, it increases the original synchronization number value by 1 to form a synchronization number corresponding to the pulse signal; The sampling device counts according to a preset time resolution, including: When the sampling device receives a pulse signal, it increments the original count value by 1 every time a preset time resolution is reached. When the sampling device receives a new pulse signal, it updates the count value to the initial value of 0.
[0013] Optionally, it is characterized in that, If the sampling device receives a synchronization number within the waiting time after receiving the pulse signal, then the synchronization number is used as the new synchronization number; the waiting time is preset by the sampling device. If the sampling device does not receive a synchronization number within the waiting time after receiving the pulse signal, the synchronization number previously received within the waiting time is used as the new synchronization number.
[0014] Optionally, it is characterized in that, When the DCS controller receives a pulse signal, it increments the value of the original synchronization number by 1 to form a synchronization number corresponding to the pulse signal. The DCS controller determines whether the value of the current synchronization number exceeds a specified range. If it does, the generated synchronization number is set as the starting value 0.
[0015] Optionally, it is characterized in that, The standard time is UTC time; The actual time corresponding to each standard time is: The actual time is obtained according to Formula 1: Formula 1 is: .
[0016] (III) Beneficial Effects The beneficial effects of this invention are: using pulse synchronization lines and data communication lines to realize data exchange between the pulse source, DCS controller and sampling device, the SOE generation time is recorded more accurately; for systems with multiple sampling devices, each sampling device achieves time synchronization between devices through its own counting, ensuring the accuracy of SOE recording time between devices. Attached Figure Description
[0017] Figure 1 This is a structural diagram of a multi-device SOE recording system; Figure 2 A structural diagram of a multi-device SOE recording system using a DCS as a second pulse source; Figure 3 A flowchart illustrating the operation of a multi-device time synchronization method for a multi-device SOE recording system; Figure 4 A pre-set SOE synchronization schedule for the DCS controller; Figure 5 A timing diagram showing the synchronization number received by the sampling device; Figure 6 The timing diagram shows the sampling device not receiving the synchronization number. Figure 7 A pre-set SOE record information table for the sampling equipment; Figure 8 A pre-configured SOE record table for the DCS controller. Detailed Implementation
[0018] To better explain and facilitate understanding of this invention, the relevant proprietary terms are explained below.
[0019] SOE: Event Sequence, used to record the order in which multiple events occur.
[0020] Synchronous second pulse: A high-level or low-level pulse signal is generated every second by an external signal source or a controller such as a PLC or DCS.
[0021] Synchronization line: A cable that transmits pulse signals between devices, usually a shielded twisted pair.
[0022] Synchronization signal: generated by PLC, DCS and other controllers when sending synchronization pulses, and sent to signal acquisition equipment via bus or network.
[0023] DCS controller: Distributed controller.
[0024] Sampling equipment: DI signal sampling equipment with SOE recording function.
[0025] Count value: The count value calculated by the sampling device according to the preset time resolution.
[0026] This invention proposes a multi-device SOE recording system and a time synchronization method.
[0027] UTC time: Coordinated Universal Time, commonly using 64-bit UTC time.
[0028] To better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that the present invention can be understood more clearly and thoroughly, and that the scope of the present invention can be fully conveyed to those skilled in the art.
[0029] Example 1 This embodiment proposes a multi-device SOE recording system, such as... Figure 1 As shown, it includes: DCS controller, pulse source, and at least one sampling device; The pulse source is used to generate pulse signals according to a preset period. The pulse source is connected to the DCS controller and each sampling device through a pulse synchronization line. A commonly used pulse source is an external second pulse source, used to generate precise high or low level pulse signals with a one-second period, connected to the DCS controller and sampling devices through a second pulse synchronization line. Alternatively, the pulse source can be a second pulse generated by the DCS controller itself.
[0030] The DCS controller and each sampling device receive the pulse signal generated by the pulse source through a pulse synchronization line; The DCS controller sends data containing a synchronization number to each sampling device via a data communication line; the synchronization number is the count data when the DCS controller receives a pulse signal; the data communication line typically uses a CAN bus or an Ethernet cable. When each of the sampling devices receives a pulse signal, it counts according to a preset time resolution; the DCS controller receives SOE record information obtained by each sampling device based on the synchronization number and the sampling device's own count value.
[0031] This embodiment uses a pulse synchronization line to enable the DCS controller and each sampling device to synchronously receive the pulse signal emitted by the pulse source; by using a data communication line, it enables rapid data exchange between the DCS controller and all sampling devices, more accurately records the SOE generation time, realizes time synchronization between devices, and ensures the accuracy of SOE recording time between devices.
[0032] Example 2 This embodiment provides a multi-device time synchronization method based on the multi-device SOE recording system described in Embodiment 1, including: When the DCS controller receives a pulse signal from the pulse source through the pulse synchronization line, it counts the synchronization number according to the preset synchronization number counting rules. The DCS controller sends data containing the counted synchronization number to all the sampling devices through the data communication line, and records the counted synchronization number and the standard time corresponding to the synchronization number as a pair of data records in the preset SOE synchronization time table. When each of the sampling devices receives a pulse signal, the sampling device starts counting from 0 according to a preset time resolution; if the preset time resolution is 2.5 milliseconds, the count value increases by 1 every 2.5 milliseconds, and after the sampling device receives a new pulse signal, the count starts counting from 0 again.
[0033] When the sampling signal of the sampling device changes, the sampling device records the change information, the count value at the time of the change, and the current synchronization number as a set of data in the pre-set SOE record information table.
[0034] This embodiment achieves accurate recording of the receiving time when a pulse signal is received by the DCS controller by recording the synchronization number; it records the information of the transition moment by receiving the synchronization number through the sampling device and using time resolution; it achieves synchronous reception of pulse signals by the DCS controller and the sampling device by using a pulse synchronization line; and it achieves data transmission between the DCS controller and the sampling device by using a data communication line, ensuring the accuracy of SOE recording time between the devices.
[0035] Example 3 This embodiment provides a multi-device time synchronization method based on the multi-device SOE recording system described in Embodiment 1, including: When each of the sampling devices receives the pulse signal, it counts according to a preset time resolution. After receiving the pulse signal, the sampling device will start counting from 0 according to the preset time resolution. For example, if the time resolution of the device is 2.5 milliseconds, then the count will increase by 1 every 2.5 milliseconds.
[0036] When the DCS controller receives a pulse signal from the pulse source through the pulse synchronization line, it counts the synchronization number according to the preset synchronization number counting rules. The DCS controller sends data containing the counted synchronization number to all the sampling devices through the data communication line, and records the counted synchronization number and the standard time corresponding to the synchronization number as a pair of data records in the preset SOE synchronization time table.
[0037] When each of the sampling devices receives a pulse signal, the sampling device starts counting from 0 according to a preset time resolution; if the preset time resolution is 2.5 milliseconds, the count value increases by 1 every 2.5 milliseconds, and after the sampling device receives a new pulse signal, the count starts counting from 0 again.
[0038] When the sampling signal of the sampling device changes, the sampling device records the change information, the count value at the time of the change, and the current synchronization number as a set of data in the pre-set SOE record information table. The sampling device records the current synchronization number + count value + change information (positive or negative change) as a record in the SOE record table.
[0039] The DCS controller queries the SOE record information table from the sampling device via the data communication line at a pre-set period and records the device number of the queried sampling device. Alternatively, the DCS controller can receive a query command, in which case the DCS controller will actively query the SOE record information table from the sampling device via the data communication line and record the device number of the queried sampling device.
[0040] The DCS controller maps the synchronization number corresponding to each jump information in the SOE record information table to the synchronization number in the SOE synchronization time table, finds the standard time corresponding to each synchronization number, and calculates the actual time corresponding to each standard time according to the SOE record information table. The DCS controller records each transition information, the corresponding device number, and the actual time as a set of data in a pre-set SOE record table.
[0041] The standard time is Coordinated Universal Time (UTC). The actual time is calculated using Formula 1, which is: .
[0042] The SOE synchronization table is used to record SOE events. The corresponding UTC time when the pulse occurred can be found using the synchronization number. The SOE record table records information including the 64-bit actual time, device number, and transition information.
[0043] The DCS controller counts synchronization numbers according to a pre-set synchronization number counting rule, including: when the DCS controller receives a pulse signal, it increases the original synchronization number value by 1 to form a synchronization number corresponding to the pulse signal; The sampling device counts according to a preset time resolution, including: When the sampling device receives a pulse signal, it increments the original count value by 1 every time a preset time resolution is reached. When the sampling device receives a new pulse signal, it updates the count value to the initial value of 0.
[0044] When the DCS controller receives a pulse signal, it increments the value of the original synchronization number by 1 to form a synchronization number corresponding to the pulse signal. The DCS controller determines whether the current synchronization number value exceeds the specified range. If it does, the generated synchronization number is used as the starting value 0. The specified range of the synchronization number value changes according to the size of the set byte variable.
[0045] For example, the DCS controller increments the synchronization number by 1 for each pulse signal it receives. If the synchronization number is defined using a byte variable, its value ranges from 0 to 255. It increments by 1 for each pulse signal received, and after exceeding 255, it starts incrementing from 0 again, continuously cycling.
[0046] If the sampling device receives a synchronization number within the waiting time after receiving the pulse signal, then the synchronization number is used as the new synchronization number; the waiting time is preset by the sampling device. If the sampling device does not receive a synchronization number within the waiting time after receiving the pulse signal, the synchronization number previously received within the waiting time is used as the new synchronization number.
[0047] For example, when the sampling device receives a pulse signal, it will begin preparing the synchronization number sent by the DCS controller and wait for a period of time. If the waiting time is 400 milliseconds (the specific waiting time may vary depending on network data transmission delays), if a synchronization number is received during the waiting period, the synchronization number will be updated; if no synchronization number is received during the waiting period, the previously received synchronization number will be used as the current synchronization number. In short, regardless of whether the synchronization number sent by the DCS controller is received normally by the sampling device, the sampling device records the current synchronization number + Count value + transition information.
[0048] This embodiment uses pulse synchronization lines and data communication lines to realize data exchange between the pulse source, DCS controller and sampling device, so as to record the SOE generation time more accurately. For systems with multiple sampling devices, each sampling device achieves time synchronization between devices through its own counting, ensuring the accuracy of SOE recording time between devices.
[0049] Example 4 This embodiment provides a multi-device time synchronization method based on the multi-device SOE recording system described in Embodiment 1, including: The components include a pulse source, DCS controller, signal sampling equipment, pulse synchronization line, and data communication line. The pulse source typically uses an external second-second pulse source; the pulse synchronization line usually uses a second-second pulse synchronization line; and the data communication line includes CAN bus and Ethernet cables, such as... Figure 1 As shown.
[0050] External second pulse source: Used to generate precise high or low level pulse signals with a one-second cycle, connected to the DCS controller and sampling device via a second pulse synchronization line. The external second pulse can be replaced by a second pulse generated by the DCS controller itself, such as... Figure 2 As shown.
[0051] DCS Controller: SOE recording device, which receives external second pulse signals through the second pulse synchronization line, and sends synchronization numbers to the sampling device and receives SOE records from the sampling device through the data communication line (CAN bus or Ethernet cable).
[0052] Sampling equipment: An external signal sampling device that receives external second pulse signals via a second pulse synchronization line, receives synchronization signals sent by the DCS controller via a data communication line (CAN bus or Ethernet cable), and sends the sampled SOE records to the DCS controller. The flowchart of the multi-device time synchronization method for a multi-device SOE recording system is as follows: Figure 3 As shown, it includes: S01. An external second pulse generates a pulse signal with a period of one second and sends it to the DCS controller and sampling equipment.
[0053] After receiving the second pulse signal, the S02 DCS controller immediately sends the current synchronization number to each sampling device via the data communication line (CAN bus or Ethernet cable).
[0054] The synchronization number is incremented by 1 for each second pulse signal received by the DCS controller. For example, if the synchronization number is defined using a byte variable, its value ranges from 0 to 255. It increments by 1 for each second pulse signal received, and after exceeding 255, it starts incrementing from 0 again, continuously cycling.
[0055] S03 and DCS controllers, while sending the current synchronization number, record the current system's 64-bit UTC time and synchronization number, storing them as a pair in the SOE synchronization time table. The format is as follows: Figure 4 As shown.
[0056] When recording SOE events, the SOE synchronization schedule can be used to find the corresponding UTC time of the second pulse by using the synchronization number.
[0057] S04. After receiving the second pulse signal, the sampling device will start counting from 0 according to a preset time resolution. For example, if the set time resolution is 2.5 milliseconds, the count will increase by 1 every 2.5 milliseconds until a new synchronization number is received, at which point the count will start counting from 0 again. When a transition occurs in the sampling signal, the sampling device will record the current signal transition information (positive or negative transition) and the count value, and also record the current synchronization number in the SOE record information table. The SOE record information table is as follows: Figure 7 As shown.
[0058] When the sampling device receives a second pulse, it begins preparing to receive the synchronization number from the DCS controller. It waits for a period of time (e.g., 400 milliseconds, the exact time depending on network data transmission delays). If a synchronization number is received within this waiting period, it updates the synchronization number. If no synchronization number is received during this period, the previously received synchronization number is used as the current synchronization number. In short, regardless of whether the synchronization number from the DCS controller is received by the sampling device, the device records the current synchronization number + Count value + transition information (positive or negative transition) as the time value of the signal transition recorded by the sampling device. The normal timing of the synchronization number is as follows: Figure 5 Synchronization number loss timing, such as Figure 6 As shown.
[0059] like Figure 5 As shown, t0~t2 represent the arrival times of the second pulse received by the sampling device; synchronization numbers 0~2 represent the times when the sampling device receives the synchronization numbers; and the sampling signal represents the times when the sampling signal transitions. When the sampling device normally receives the synchronization number, it receives the second pulse signal at time t1 and begins preparing to receive the synchronization number, simultaneously incrementing the counter by 1 every preset time resolution (e.g., 2.5 milliseconds). Upon receiving synchronization number 1 at synchronization number 1, the sampling device records synchronization number 1 as the current synchronization number. Upon receiving a sampling signal transition at the sampling signal time, the sampling device records the signal transition information and the current counter value. Thus, the sampling device obtains three pieces of information: synchronization number 1 + counter value + transition information (positive or negative transition), which together form a single SOE record.
[0060] like Figure 6As shown, t0~t2 represent the arrival times of the second pulse received by the sampling device; synchronization number 0 represents the time when the sampling device receives the synchronization number; and the sampling signal represents the time when the sampling signal transitions. If the sampling device loses the synchronization number, it receives the second pulse signal at time t1 and begins preparing to receive the synchronization number, simultaneously incrementing the counter by 1 every preset time resolution (e.g., 2.5 milliseconds). If no synchronization number is received after the preset waiting time, and a sampling signal transition is received at the sampling time, the sampling device records the signal transition information and the count value starting at time t0. Thus, the sampling device obtains three pieces of information: synchronization number 0 + count value + transition information (positive or negative transition), which together form a SOE record.
[0061] S05. The DCS controller periodically or proactively queries the sampling device for SOE record information via a data communication line (CAN bus or Ethernet cable). The sampling device then sends the SOE record information to the DCS controller. The SOE record information sent by the sampling device to the DCS controller includes the synchronization number, count value, transition information, and sampling device number. When the DCS controller periodically or proactively queries the sampling device for SOE record information, a query should be performed once within each synchronization number cycle.
[0062] S06. The DCS controller receives the SOE record information table from the sampling device, then looks up the SOE synchronization time table in the DCS controller using the synchronization number to find the 64-bit UTC time corresponding to the synchronization number. The 64-bit actual time of the sampling signal transition is calculated using the following formula: .
[0063] SOE record table as follows Figure 8 As shown, the recorded information includes the 64-bit actual time, device number, and transition information (positive or negative transition).
[0064] S01~S06 describe the process of generating and recording a single SOE record using a single sampling device as an example. The processing principle for multiple devices is similar. Multiple sampling devices are connected to an external second pulse source and the DCS controller via a second pulse synchronization line, ensuring that the DCS controller receives the second pulse signal synchronously with multiple sampling devices and begins recording time simultaneously. The DCS controller sends a synchronization signal and receives SOE records from the sampling devices via a data communication line (CAN bus or Ethernet cable), and then records the SOEs from multiple devices.
[0065] This embodiment uses pulse synchronization lines and data communication lines to realize data exchange between the pulse source, DCS controller and sampling device, so as to record the SOE generation time more accurately. For systems with multiple sampling devices, each sampling device achieves time synchronization between devices through its own counting, ensuring the accuracy of SOE recording time between devices.
[0066] In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0067] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0068] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can mean that the first and second features are in direct contact, or that they are in indirect contact through an intermediate medium. Furthermore, "above," "over," or "on top" the second feature can mean that the first feature is directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," or "beneath" the second feature can mean that the first feature is directly below or diagonally below the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.
[0069] In the description of this specification, the terms "one embodiment," "some embodiments," "embodiment," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0070] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make modifications, alterations, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for time synchronization of multiple devices, characterized in that, The method is implemented based on a multi-device SOE recording system, which includes a DCS controller, a pulse source, and at least one sampling device. The pulse source generates pulse signals according to a preset period, and the pulse source is connected to the DCS controller and each sampling device via a pulse synchronization line. The method includes: When the DCS controller receives a pulse signal from the pulse source through the pulse synchronization line, it counts the synchronization number according to the preset synchronization number counting rules. The DCS controller sends data containing the counted synchronization number to all the sampling devices through the data communication line, and records the counted synchronization number and the standard time corresponding to the synchronization number as a pair of data records in the preset SOE synchronization time table. When each of the sampling devices receives a pulse signal, the sampling device counts from 0 according to a preset time resolution; When the sampling signal of the sampling device changes, the sampling device records the change information, the count value at the time of the change, and the current synchronization number as a set of data in the pre-set SOE record information table; The DCS controller queries the SOE record information table from the sampling device via the data communication line based on a pre-set period, and records the device number of the queried sampling device. The DCS controller maps the synchronization number corresponding to each jump information in the SOE record information table to the synchronization number in the SOE synchronization time table, finds the standard time corresponding to each synchronization number, and calculates the actual time corresponding to each standard time according to the SOE record information table. The DCS controller records each transition information, the device number corresponding to each transition information, and the actual time corresponding to each transition information as a set of data in a pre-set SOE record table. The DCS controller counts synchronization numbers according to a pre-set synchronization number counting rule, including: when the DCS controller receives a pulse signal, it increases the original synchronization number value by 1 to form a synchronization number corresponding to the pulse signal; The sampling device counts according to a preset time resolution, including: When the sampling device receives a pulse signal, it increments the original count value by 1 every time a preset time resolution is reached. When the sampling device receives a new pulse signal, it updates the count value to the initial value of 0.
2. The multi-device time synchronization method according to claim 1, characterized in that, The pulse source is the pulse source in the DCS controller.
3. The multi-device time synchronization method according to claim 1, characterized in that, The data communication line includes: CAN bus or Ethernet cable.
4. The multi-device time synchronization method according to claim 1, characterized in that, If the sampling device receives a synchronization number within the waiting time after receiving the pulse signal, then the synchronization number is used as the new synchronization number; the waiting time is preset by the sampling device. If the sampling device does not receive a synchronization number within the waiting time after receiving the pulse signal, the synchronization number previously received within the waiting time is used as the new synchronization number.
5. The multi-device time synchronization method according to claim 1, characterized in that, When the DCS controller receives a pulse signal, it increments the value of the original synchronization number by 1 to form a synchronization number corresponding to the pulse signal. The DCS controller determines whether the value of the current synchronization number exceeds a specified range. If it does, the generated synchronization number is set as the starting value 0.
6. The multi-device time synchronization method according to claim 1, characterized in that, The standard time is UTC time; The actual time corresponding to each standard time is: The actual time is obtained according to Formula 1: Formula 1 is: 。
Citation Information
Patent Citations
Periodical pulse signal-based different place data synchronous acquisition method and periodical pulse signal-based different place data synchronous acquisition system
CN103368676A
Rapid data acquisition system and method
CN114488970A