CN113312290A - Method for recording time error of information between intelligent board cards in plug-and-play real-time system - Google Patents

Method for recording time error of information between intelligent board cards in plug-and-play real-time system Download PDF

Info

Publication number
CN113312290A
CN113312290A CN202110623706.3A CN202110623706A CN113312290A CN 113312290 A CN113312290 A CN 113312290A CN 202110623706 A CN202110623706 A CN 202110623706A CN 113312290 A CN113312290 A CN 113312290A
Authority
CN
China
Prior art keywords
time
information
event
time mark
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110623706.3A
Other languages
Chinese (zh)
Inventor
殷红德
王明涛
郭钱威
祝起真
喻波入
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan Nuoyi Electric Co ltd
Original Assignee
Henan Nuoyi Electric Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Henan Nuoyi Electric Co ltd filed Critical Henan Nuoyi Electric Co ltd
Priority to CN202110623706.3A priority Critical patent/CN113312290A/en
Publication of CN113312290A publication Critical patent/CN113312290A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4291Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a clocked protocol

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a method for recording time error of information between intelligent board cards in a plug-and-play real-time system, which comprises the following steps: step 1, the master control board card uniformly sends a time mark pulse and a time mark corresponding to the time mark pulse, and each slave board card carries out time scale correction according to the time mark pulse and the time mark corresponding to the time mark pulse; step 2, sampling at high speed and equal intervals; step 3, adopting a selectable filtering algorithm to confirm the validity of the signal; step 4, carrying out time merging recording on the information with small time interval; step 5, setting the data or event containing the time mark information as a high priority and transmitting the data or event preferentially; and 6, after each board card transmits the time mark information or the event to the main control board, the main control board arranges the information, and the invention has the beneficial effects that: 1. the problem of signal transmission delay in the process of high-speed signal transmission between intelligent board cards is solved; 2. the problem of time difference of high-speed data transmission between intelligent board cards is solved, and plug and play of the board cards is really realized.

Description

Method for recording time error of information between intelligent board cards in plug-and-play real-time system
Technical Field
The invention relates to the technical field of data recording, in particular to a method for recording time errors of information among intelligent board cards in a plug-and-play real-time system.
Background
In a real-time system (real-time measurement and control equipment), only one CPU and one clock are used by the equipment, information acquisition occurs at one time point, time errors basically do not exist, and the existing time errors mainly exist in sampling time intervals. As shown in fig. 1.
Event a and event b occur close in time and before the sampling time point T1, and the event occurrence times of both event a and event b are recorded as T1.
The event c and the event b occur at the more recent times, but the event c is before the sampling time T2 after the sampling time point TI, and the event occurrence time of the event c is recorded as T2.
Thus, the error in time b and event c is the sampling time interval T.
If a plurality of intelligent boards are used for data collection, the data information time error can not be limited to 10 milliseconds generally, and the reason is that: 1. the time scales are not unified, and the acquisition time points are different; 2. the transmission speed is slow; 3. the sampling time interval is long. Therefore, the scheme of the multiple intelligent board cards is generally applied to the field of process control of PLC and the like, and the requirement on time precision is not high.
Disclosure of Invention
The invention aims to provide a method for recording time errors of information between intelligent board cards in a plug-and-play real-time system, so as to solve the problems in the background technology.
In order to achieve the purpose, the invention provides the following technical scheme:
the method for recording time error of information between intelligent board cards in the plug-and-play real-time system comprises the following steps:
step 1, the master control board card uniformly sends a time mark pulse and a time mark corresponding to the time mark pulse, and each slave board card carries out time scale correction according to the time mark pulse and the time mark corresponding to the time mark pulse;
step 2, sampling at high speed and equal intervals;
step 3, adopting a selectable filtering algorithm to confirm the validity of the signal;
step 4, according to the requirement on the signal time consistency in specific application, time merging and recording are carried out on the information with small time interval;
step 5, adopting a high-speed competition bus, setting data or events containing time scale information as a high priority, and preferentially transmitting the data or events;
and 6, after each board card transmits the time mark information or the event to the main control board, the main control board arranges the information, and if the event which occurs later is transmitted and recorded firstly, the event which occurs firstly and then is transmitted is inserted into the event recording linked list.
As a further technical scheme of the invention: the purpose of step 1 is to unify time scales and ensure that the time error between the boards does not exceed 20 microseconds.
As a further technical scheme of the invention: when the slave board card does not receive the time synchronization command of the master control board card, the slave board card can update the time scale through the clock of the slave board card.
As a further technical scheme of the invention: the sampling interval of the step 2 is 50 microseconds, and the recording error of the signal generation time is controlled within 50 microseconds.
As a further technical scheme of the invention: in step 4, if the required time resolution is 1 ms, two events with a time interval of 100 μ s may be unified as the time record of the previous event.
As a further technical scheme of the invention: and the board cards adopt a high-speed data CAN bus for data transmission.
As a further technical scheme of the invention: and time pulse and time scale are adopted in the middle of the measurement and control equipment to perform board card time synchronization.
Compared with the prior art, the invention has the beneficial effects that: 1. the problem of signal transmission delay in the high-speed signal transmission process between intelligent board cards is solved. 2. The problem of time difference of high-speed data transmission between intelligent board cards is solved, and plug and play of the board cards is really realized.
Drawings
FIG. 1 is a prior art sample time diagram;
FIG. 2 is a schematic of the sampling times of the present invention;
fig. 3 is a flowchart of a unified time scale for each intelligent board.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1: referring to fig. 2-3, the method for recording time error of information between intelligent boards in a plug-and-play real-time system includes, first, unifying time scales of the boards to solve the problem of signal delay; the information insertion is carried out on the information data with the time marks by using the information linked list, so that the problem that the uploading sequence of the information data is inconsistent with the occurrence time sequence of the information events is solved.
The method can control the time error of information recording in the application of a plurality of intelligent board cards to be 500 microseconds (1 millisecond), can ensure the correctness of time sequence recording, and completely meets the requirement of a high-speed measurement and control system on the time error.
Step 1, uniformly sending a time mark pulse and a time mark corresponding to the time mark pulse by a main control board card to uniformly time scale and ensure that the time error between the board cards does not exceed 20 microseconds; each slave card performs time scale correction based on the time scale pulse and the time scale corresponding to the time scale pulse. When the slave board card does not receive the time synchronization command of the master control board card, the slave board card can update the time scale through the clock of the slave board card.
And 2, sampling at high speed and equal intervals, wherein the sampling interval is 50 microseconds, and the recording error of the signal generation time is controlled within 50 microseconds.
And 3, confirming the validity of the signal by adopting a selectable filtering algorithm.
Step 4, according to the requirement for signal time consistency in specific applications, time merging is performed on information with a small time interval, so that time scales recorded for different channels of the same event in an experiment are consistent, which is exemplified by: if a time resolution of 1 millisecond is required, two events with a time interval of 100 microseconds can be consolidated into the time record of the previous event. As shown in fig. 2.
And 5, setting data (events) containing time scale information to be in high priority by adopting a high-speed competition bus, transmitting the data with priority and ensuring that the receiving time error of the simultaneously transmitted events does not exceed 1 millisecond.
And 6, after each board card transmits the time mark information (event) to the main control board, the main control board arranges the information, and if the events which occur later are transmitted and recorded firstly, the events which occur firstly and are transmitted secondly are inserted into the event recording linked list.
The general recording mode of the time sampling occurrence time is as follows: the event occurrence times of the event a and the event b are recorded as T1, the event occurrence time of the event c is recorded as T2, and the event occurrence time of the event d is recorded as T3. Setting the sampling time interval T to 50 microseconds, the relationship between T1, T2, T3 is: t2 ═ T1+50 microseconds, T3 ═ T2+50 microseconds ═ T1+100 microseconds. Setting TI to 1.950 milliseconds, the event occurrence times of event a and event b are both recorded as T1-1.950 milliseconds, the event occurrence time of event c is recorded as T2-2.000 milliseconds, and the event occurrence time of event d is recorded as T3-2.050 milliseconds.
The time difference between the time occurrence and recording of the event c and the event b is 50 microseconds, the actual time interval between the two events is far less than 50 microseconds, and the error is large.
In the method, two events with the time interval of 100 microseconds are unified into the time record of the previous event. Namely, the event occurrence recording time of the event c is corrected to the event occurrence recording time of the time b, so that the problem that the error of the event time recording which occurs at two sides of the sampling time point and has the very close event actual occurrence time is large is solved.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present description refers to embodiments, not every embodiment may contain only a single embodiment, and such description is for clarity only, and those skilled in the art should integrate the description, and the embodiments may be combined as appropriate to form other embodiments understood by those skilled in the art.

Claims (7)

1. The method for recording time error of information among intelligent board cards in the plug-and-play real-time system is characterized by comprising the following steps:
step 1, the master control board card uniformly sends a time mark pulse and a time mark corresponding to the time mark pulse, and each slave board card carries out time scale correction according to the time mark pulse and the time mark corresponding to the time mark pulse;
step 2, sampling at high speed intervals;
step 3, adopting a selectable filtering algorithm to confirm the validity of the signal;
step 4, according to the requirement on the signal time consistency in specific application, time merging and recording are carried out on the information with small time interval;
step 5, adopting a high-speed competition bus, setting data or events containing time scale information as a high priority, and preferentially transmitting the data or events;
and 6, after each board card transmits the time mark information or the event to the main control board, the main control board arranges the information, and if the event which occurs later is transmitted and recorded firstly, the event which occurs firstly and then is transmitted is inserted into the event recording linked list.
2. The method of claim 1, wherein said step 1 is performed to unify time scales to ensure that inter-board time errors do not exceed 20 microseconds.
3. The method of claim 1, wherein the slave board card can update the time stamp through its own clock when the slave board card does not receive the time stamp command from the master board card.
4. The method of claim 1, wherein the sampling interval of step 2 is 50 μ sec, and the recording error of the signal occurrence time is controlled within 50 μ sec.
5. The method of claim 1, wherein in step 4, if the required time resolution is 1 ms, two events with a time interval of 100 μ s can be unified into the time record of the previous event.
6. The method of claim 4 wherein high speed CAN bus is used for data transmission between boards.
7. The method of claim 4 wherein the time pulses and time stamps are used in the measurement and control equipment to time-pair the cards.
CN202110623706.3A 2021-06-04 2021-06-04 Method for recording time error of information between intelligent board cards in plug-and-play real-time system Pending CN113312290A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110623706.3A CN113312290A (en) 2021-06-04 2021-06-04 Method for recording time error of information between intelligent board cards in plug-and-play real-time system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110623706.3A CN113312290A (en) 2021-06-04 2021-06-04 Method for recording time error of information between intelligent board cards in plug-and-play real-time system

Publications (1)

Publication Number Publication Date
CN113312290A true CN113312290A (en) 2021-08-27

Family

ID=77377706

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110623706.3A Pending CN113312290A (en) 2021-06-04 2021-06-04 Method for recording time error of information between intelligent board cards in plug-and-play real-time system

Country Status (1)

Country Link
CN (1) CN113312290A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116363832A (en) * 2023-03-31 2023-06-30 湖南长海科技发展有限公司 Full-scene wisdom ward allies oneself with news nursing system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU4291197A (en) * 1996-09-27 1998-04-17 Tele-Ip Limited Event recording and analysis in telecommunications networks
CN101211184A (en) * 2006-12-28 2008-07-02 上海自动化仪表股份有限公司 Affair sequential record method
CN101834599A (en) * 2009-03-13 2010-09-15 华东电网有限公司 Synchronizing unit and method for synchronizing distributed wave recording devices
CN101949715A (en) * 2010-08-10 2011-01-19 武汉武大卓越科技有限责任公司 Multi-sensor integrated synchronous control method and system for high-precision time-space data acquisition
CN103699103A (en) * 2013-12-30 2014-04-02 上海自动化仪表股份有限公司 Method for sequentially recording events in distributed control system
CN103777622A (en) * 2012-10-25 2014-05-07 杨卫民 Testing method of multiple-event sequence recording accuracy in large-scale distributed control system
CN103973386A (en) * 2014-05-23 2014-08-06 哈尔滨工业大学 Time aligning method for 1553B data and ADC data in data collecting system
CN106980306A (en) * 2017-03-29 2017-07-25 北京广利核***工程有限公司 A kind of nuclear power station data acquisition device and method
US20180322087A1 (en) * 2017-05-05 2018-11-08 Microchip Technology Incorporated Devices and methods for transmission of events with a uniform latency on serial communication links
CN111858416A (en) * 2020-09-03 2020-10-30 中电智能科技有限公司 Event recording module based on SPARC framework microcontroller

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU4291197A (en) * 1996-09-27 1998-04-17 Tele-Ip Limited Event recording and analysis in telecommunications networks
CN101211184A (en) * 2006-12-28 2008-07-02 上海自动化仪表股份有限公司 Affair sequential record method
CN101834599A (en) * 2009-03-13 2010-09-15 华东电网有限公司 Synchronizing unit and method for synchronizing distributed wave recording devices
CN101949715A (en) * 2010-08-10 2011-01-19 武汉武大卓越科技有限责任公司 Multi-sensor integrated synchronous control method and system for high-precision time-space data acquisition
CN103777622A (en) * 2012-10-25 2014-05-07 杨卫民 Testing method of multiple-event sequence recording accuracy in large-scale distributed control system
CN103699103A (en) * 2013-12-30 2014-04-02 上海自动化仪表股份有限公司 Method for sequentially recording events in distributed control system
CN103973386A (en) * 2014-05-23 2014-08-06 哈尔滨工业大学 Time aligning method for 1553B data and ADC data in data collecting system
CN106980306A (en) * 2017-03-29 2017-07-25 北京广利核***工程有限公司 A kind of nuclear power station data acquisition device and method
US20180322087A1 (en) * 2017-05-05 2018-11-08 Microchip Technology Incorporated Devices and methods for transmission of events with a uniform latency on serial communication links
CN111858416A (en) * 2020-09-03 2020-10-30 中电智能科技有限公司 Event recording module based on SPARC framework microcontroller

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林丹 等: "基于全球定位***的高精度事件顺序记录***", 《计算机应用》, vol. 31, no. 6, 30 June 2011 (2011-06-30), pages 1719 - 1722 *
陈威 等: "分布式测试***同步时钟校准的频率测量方法", 《探测与控制学报》, vol. 31, no. 5, 31 October 2009 (2009-10-31), pages 69 - 72 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116363832A (en) * 2023-03-31 2023-06-30 湖南长海科技发展有限公司 Full-scene wisdom ward allies oneself with news nursing system
CN116363832B (en) * 2023-03-31 2024-01-05 湖南长海科技发展有限公司 Full-scene wisdom ward allies oneself with news nursing system

Similar Documents

Publication Publication Date Title
CN110492965B (en) Method and device for synchronizing time of serial messages in master-slave system
CN101103278B (en) Automatic test system with synchronized instruments
EP3211497A1 (en) Master device, slave device, information processing device, event log collecting system, control method of master device, control method of slave device and control program
CN112597097B (en) Communication system based on ADC data acquisition card, application method and medium thereof
CN111272127B (en) Method for measuring and controlling synchronization through EtherCAT bus
CN112821974B (en) High-precision time synchronization method and device for vehicle-mounted ECU
US6149058A (en) Chip card reader with fast transmission protocol
CN113312290A (en) Method for recording time error of information between intelligent board cards in plug-and-play real-time system
DE102008027902A1 (en) Device and method for serial data transmission between a position measuring device and a control unit
CN102315929A (en) Timing synchronization controller of ground simulation system
CN111030909A (en) Method for time synchronization among CAN bus multi-master device communication
CN110943795A (en) Time synchronization method suitable for bus communication system
DE05009511T1 (en) Block-oriented control system on high-speed Ethernet
CN108206683A (en) A kind of dynamic compensated pulse circuit
CN107800500A (en) A kind of method, apparatus and equipment for determining time synchronized message clock time
CN109039515A (en) A kind of high-precision real-time time source generation method that B code is synchronous
CN114006672A (en) Vehicle-mounted multi-sensor data synchronous acquisition method and system
CN112924946A (en) Multi-source data time delay control and clock synchronous acquisition method in radar test
CN110765207B (en) Method for data synchronization between systems
DE10229110A1 (en) Method for synchronizing nodes of a communication system
CN203588045U (en) GPS directly-taking-type accurate SOE recording system
EP0218955B1 (en) Method for synchronous bit and byte data transfer on a serial interface
WO2011071680A1 (en) Method, system, and apparatus for archiving networked data
CN117294378A (en) Clock synchronization method, device and system
DE10134194C2 (en) Method and device for synchronous operation of a control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination