CN109917637A - A kind of data collecting card high precision time service method - Google Patents

A kind of data collecting card high precision time service method Download PDF

Info

Publication number
CN109917637A
CN109917637A CN201910188504.3A CN201910188504A CN109917637A CN 109917637 A CN109917637 A CN 109917637A CN 201910188504 A CN201910188504 A CN 201910188504A CN 109917637 A CN109917637 A CN 109917637A
Authority
CN
China
Prior art keywords
data
collecting card
pps
host computer
data collecting
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.)
Granted
Application number
CN201910188504.3A
Other languages
Chinese (zh)
Other versions
CN109917637B (en
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.)
Sichuan Energy Internet Research Institute EIRI Tsinghua University
Original Assignee
Sichuan Energy Internet Research Institute EIRI Tsinghua University
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 Sichuan Energy Internet Research Institute EIRI Tsinghua University filed Critical Sichuan Energy Internet Research Institute EIRI Tsinghua University
Priority to CN201910188504.3A priority Critical patent/CN109917637B/en
Publication of CN109917637A publication Critical patent/CN109917637A/en
Application granted granted Critical
Publication of CN109917637B publication Critical patent/CN109917637B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Fixing By Use Of Radio Waves (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention discloses a kind of data collecting card high precision time service methods, and GPS time service module carries out signal connection, transmission absolute time to host computer by serial ports and host computer first, and sends second pulse signal to data collecting card.Then data collecting card carries out signal connection by PCIe bus and host computer, and continuously uploads data to host computer according to the N number of sampled point of every bag data.Host computer calculates the hits between two pulse per second (PPS)s according to the data that data collecting card uploads, deviation caused by eliminating because of Crystal Oscillator Errors, then multiple averaging is carried out, eliminate error caused by being shaken by pulse per second (PPS), accurate sample rate is acquired, the precision time service of every bag data sampled point can be completed.Data collecting card high precision time service method proposed by the present invention provides High Precision Time Stamps especially in high-speed sampling for the collected data waveform of data collecting card, and provides high-precision time dimension information.

Description

A kind of data collecting card high precision time service method
Technical field
The invention belongs to digital processing field more particularly to a kind of data collecting card high precision time service methods.
Background technique
Data collecting card is widely used in all types of industries scene at present, simulates sum number from sensor or other Devices to test etc. Automatic collection non electrical quantity or electric quantity signal in word unit under test are sent to host computer and are analyzed, handled.Data collection system is In conjunction with realizing flexible, the customized survey of user based on the measurement software and hardware product of computer or other dedicated testing platforms Amount system.More and more application scenarios need data collecting card data acquisition at present, while providing high-precision for data Timestamp, part data acquisition fixture having time stabs function, or selects dedicated time service module, and above two mode increases Hardware cost is added.In addition, having its time precision of the capture card of timestamp function not high currently on the market, it is micro- to can only achieve 5 The precision of second.
Summary of the invention
To solve the above-mentioned problems, the present invention proposes a kind of data collecting card high precision time service method, comprising the following steps:
S1.GPS time service module carries out signal connection by serial ports and host computer, sends absolute time to host computer, concurrently Send second pulse signal to data collecting card;
S2. data collecting card carries out signal connection by PCIe bus and host computer, and according to the N number of sampled point of every bag data The continuous data that upload are to host computer;
S3. host computer judges whether the bag data includes pulse per second (PPS) rising edge by the data that data collecting card uploads, when When the bag data includes pulse per second (PPS) rising edge, its position for being located at the bag data is recorded, is labeled as Pm, then proceed to monitor next A pulse per second (PPS) rising edge, if not monitoring pulse per second (PPS) rising edge in m bag data, and monitors the second in m+1 bag data Rising edge of a pulse then records its position for being located at the bag data, is labeled as Pn
S4. the sampled point S between two pulse per second (PPS)s is calculated, deviation caused by the Crystal Oscillator Errors because of data collecting card is eliminated:
S=N-Pm+N×m+Pn(formula 1);
S4. error caused by shaking for elimination because of pulse per second (PPS), is averaged multiple sampled point S, its average value can be obtained Sm:
Sm=(S1+S2+ ... Sm)/m (formula 2);
S5. the time interval Δ t between each sampled point is calculated:
Δ t=1/Sm(formula 3);
S6. the nanosecond precise time T of b-th of sampled point in a bag data between two pulse per second (PPS)s is calculated:
T=(N-Pm+ (a-1) × N+b) × Δ t (formula 4);
S7. second grade absolute time nanosecond precise time T sent with GPS time service module can be obtained with combining Complete split-second precision realizes the high-precision time service of data collecting card data.
Further, GPS time service module sends the SDI0 interface of second pulse signal to capture card.
Further, judge the bag data whether include pulse per second (PPS) rising edge method are as follows: host computer judges that SDI0 is No changed by 0 is 1, if variation, which includes pulse per second (PPS) rising edge.
The beneficial effects of the present invention are: for the collected data waveform of data collecting card, especially in high-speed sampling, High Precision Time Stamps are provided, and provide high-precision time dimension information.The method proposed through the invention, can be obtained height The nsec of precision, precision were 100 nanoseconds.
Detailed description of the invention
Fig. 1 is the principle of the present invention figure;
Fig. 2 is that the data of data collecting card upload schematic diagram.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, this hair of Detailed description of the invention is now compareed Bright specific embodiment.
The present invention proposes a kind of data collecting card high precision time service method, as shown in Figure 1, GPS time service module passes through serial ports Signal connection is carried out with host computer, sends absolute time to host computer, and sends second pulse signal and connects to data collecting card SDI0 Mouthful.Data collecting card carries out signal connection by PCIe bus and host computer, and continuously uploads according to the N number of sampled point of every bag data Data are to host computer, as shown in Figure 2.Host computer is by judging whether data collecting card SDI0 from 0 becomes 1, to judge the packet number According to whether including pulse per second (PPS) rising edge, when the bag data includes pulse per second (PPS) rising edge, its position for being located at the bag data is recorded, Labeled as Pm, it then proceedes to monitor next pulse per second (PPS) rising edge, if not monitoring pulse per second (PPS) rising edge in m bag data, And pulse per second (PPS) rising edge is monitored in m+1 bag data, then its position for being located at the bag data is recorded, P is labeled asn.First The sampled point S between two pulse per second (PPS)s is calculated, deviation caused by the Crystal Oscillator Errors because of data collecting card: S=N-P is eliminatedm+N×m +Pn.Error caused by eliminate because of pulse per second (PPS) shake, is averaged multiple sampled point S, its average value S can be obtainedm=(S1+ S2+…Sm)/m.Then the time interval Δ t=1/S between each sampled point is calculatedm.A between two pulse per second (PPS)s is calculated again Nanosecond precise time T=(N-Pm+ (a-1) × N+b) × Δ t of b-th of sampled point in bag data.It is finally that nanosecond is accurate Complete split-second precision, realization number can be obtained with combining in the second grade absolute time that time T is sent with GPS time service module According to capture card data high-precision time service.
In a specific embodiment of the present invention, data collecting card resolution ratio is 12, occupies the high by 12 of 16 A/D data Position, D2~D0 connection signal SDI2~SDI0, D3 are unused.Specifically, data collecting card selects Ling Hua PCIe-9814, data are adopted The Crystal Oscillator Errors of truck are 20ppm, and sample rate 40MHz, every bag data is 1M sampled point, calculate adopting between two pulse per second (PPS)s Sample number, deviation caused by eliminating because of Crystal Oscillator Errors carry out multiple averaging afterwards, eliminate error caused by being shaken by pulse per second (PPS), acquire The precision time service of every bag data sampled point can be completed in accurate sample rate.
In a specific embodiment of the present invention, because error caused by the second pulse signal of GPS module is ± 50ns, pulse per second (PPS) Signal errors is random error, Normal Distribution.Crystal Oscillator Errors are steady-state error, at any time, temperature it is slowly varying, in short-term surely It is fixed.Assuming that there are error εs by GPS second pulse and UCT (Universal Time Coordinated), and ε obedience is just distributed very much, is taken Sample number is N, then has:
ε~N (0, ζ2)
Assuming that the system output time is x, then UCT time are as follows:
yi=xii
In formula, yiI-th of pulse per second (PPS) corresponding UCT, time error ε are exported for GPSi
Time difference δ between two pulse per second (PPS)sTi=yi+1-yi, then it is spaced the time difference of multiple pulse per second (PPS) times are as follows:
δT1T2+…δTn=yi+1-yii+11
Difference after multi collect between pulse per second (PPS) is mainly derived from second pulse signal shake, is excessively arranged standby while adopted Collect same signal and carry out timestamp comparison, error is within 100ns.
The above is only a preferred embodiment of the present invention, it should be understood that the present invention is not limited to described herein Form should not be regarded as an exclusion of other examples, and can be used for other combinations, modifications, and environments, and can be at this In the text contemplated scope, modifications can be made through the above teachings or related fields of technology or knowledge.And those skilled in the art institute into Capable modifications and changes do not depart from the spirit and scope of the present invention, then all should be in the protection scope of appended claims of the present invention It is interior.

Claims (3)

1. a kind of method when data collecting card high-precision time service, which comprises the following steps:
S1.GPS time service module carries out signal connection, transmission absolute time to host computer by serial ports and host computer, and sends the second Pulse signal is to data collecting card;
S2. data collecting card carries out signal connection by PCIe bus and host computer, and continuous according to the N number of sampled point of every bag data Data are uploaded to host computer;
S3. host computer judges whether the bag data includes pulse per second (PPS) rising edge by the data that data collecting card uploads, when the packet When data include pulse per second (PPS) rising edge, its position for being located at the bag data is recorded, is labeled as Pm, then proceed to monitor next second Rising edge of a pulse if not monitoring pulse per second (PPS) rising edge in m bag data, and monitors pulse per second (PPS) in m+1 bag data Rising edge then records its position for being located at the bag data, is labeled as Pn
S4. the sampled point S between two pulse per second (PPS)s is calculated, deviation caused by the Crystal Oscillator Errors because of data collecting card is eliminated:
S=N-Pm+N×m+Pn(formula 1);
S4. error caused by shaking for elimination because of pulse per second (PPS), is averaged multiple sampled point S, its average value S can be obtainedm:
Sm=(S1+S2+ ... Sm)/m (formula 2);
S5. the time interval Δ t between each sampled point is calculated:
Δ t=1/Sm(formula 3);
S6. the nanosecond precise time T of b-th of sampled point in a bag data between two pulse per second (PPS)s is calculated:
T=(N-Pm+ (a-1) × N+b) × Δ t (formula 4);
S7. second grade absolute time nanosecond precise time T sent with GPS time service module can be obtained completely with combining Split-second precision, realize the high-precision time service of data collecting card data.
2. a kind of GPS timing method according to claim 1, which is characterized in that in the step S1, GPS time service module Send the SDI0 interface of second pulse signal to capture card.
3. a kind of GPS timing method according to claim 2, which is characterized in that in the step S3, judge the bag data Whether include pulse per second (PPS) rising edge method are as follows: host computer judge SDI0 whether by 0 variation for 1, if changing, the bag data packet Rising edge containing pulse per second (PPS).
CN201910188504.3A 2019-03-13 2019-03-13 High-precision time service method for data acquisition card Active CN109917637B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910188504.3A CN109917637B (en) 2019-03-13 2019-03-13 High-precision time service method for data acquisition card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910188504.3A CN109917637B (en) 2019-03-13 2019-03-13 High-precision time service method for data acquisition card

Publications (2)

Publication Number Publication Date
CN109917637A true CN109917637A (en) 2019-06-21
CN109917637B CN109917637B (en) 2020-10-09

Family

ID=66964457

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910188504.3A Active CN109917637B (en) 2019-03-13 2019-03-13 High-precision time service method for data acquisition card

Country Status (1)

Country Link
CN (1) CN109917637B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111336913A (en) * 2020-03-19 2020-06-26 苏州华电电气股份有限公司 Transformer winding deformation live monitoring device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3672851B2 (en) * 2001-07-13 2005-07-20 白山工業株式会社 Data collection system and method for geophysical exploration
US20060244649A1 (en) * 2005-04-28 2006-11-02 Denso Corporation Analogue to digital conversion device
CN102495546A (en) * 2011-11-16 2012-06-13 上海森首光电科技有限公司 Timing method and device of data collection
CN102902879A (en) * 2012-08-28 2013-01-30 南京国电南自电网自动化有限公司 Synchronous phasor calculation method based on discrete Fourier transform (DFT) recursion of field programmable gate array (FPGA) hardware
CN103368676A (en) * 2012-03-28 2013-10-23 中国科学院声学研究所 Periodical pulse signal-based different place data synchronous acquisition method and periodical pulse signal-based different place data synchronous acquisition system
CN106850115A (en) * 2017-03-07 2017-06-13 中国地质大学(武汉) A kind of Multi-channel data acquisition synchronization system and method
CN108519610A (en) * 2018-03-29 2018-09-11 武汉大学 Multi-sensor combined navigation system time synchronization and real-time data acquisition method
CN108631900A (en) * 2018-07-24 2018-10-09 北京新宇航星科技有限公司 The preposition of High Precision Time Stamps beats stamp method and system
CN109143283A (en) * 2018-02-24 2019-01-04 上海华测导航技术股份有限公司 A kind of design method for the satellite receiver that high-precision PPS is provided for accurate time transmission

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3672851B2 (en) * 2001-07-13 2005-07-20 白山工業株式会社 Data collection system and method for geophysical exploration
US20060244649A1 (en) * 2005-04-28 2006-11-02 Denso Corporation Analogue to digital conversion device
CN102495546A (en) * 2011-11-16 2012-06-13 上海森首光电科技有限公司 Timing method and device of data collection
CN103368676A (en) * 2012-03-28 2013-10-23 中国科学院声学研究所 Periodical pulse signal-based different place data synchronous acquisition method and periodical pulse signal-based different place data synchronous acquisition system
CN102902879A (en) * 2012-08-28 2013-01-30 南京国电南自电网自动化有限公司 Synchronous phasor calculation method based on discrete Fourier transform (DFT) recursion of field programmable gate array (FPGA) hardware
CN106850115A (en) * 2017-03-07 2017-06-13 中国地质大学(武汉) A kind of Multi-channel data acquisition synchronization system and method
CN109143283A (en) * 2018-02-24 2019-01-04 上海华测导航技术股份有限公司 A kind of design method for the satellite receiver that high-precision PPS is provided for accurate time transmission
CN108519610A (en) * 2018-03-29 2018-09-11 武汉大学 Multi-sensor combined navigation system time synchronization and real-time data acquisition method
CN108631900A (en) * 2018-07-24 2018-10-09 北京新宇航星科技有限公司 The preposition of High Precision Time Stamps beats stamp method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111336913A (en) * 2020-03-19 2020-06-26 苏州华电电气股份有限公司 Transformer winding deformation live monitoring device
CN111336913B (en) * 2020-03-19 2021-11-23 苏州华电电气股份有限公司 Transformer winding deformation live monitoring device

Also Published As

Publication number Publication date
CN109917637B (en) 2020-10-09

Similar Documents

Publication Publication Date Title
CN100529766C (en) Equivalent sampling device
US6609077B1 (en) ATE timing measurement unit and method
US20070258378A1 (en) Methods and systems relating to distributed time markers
CN101207591B (en) Method and system for measuring signal characteristics of data signals transmitted between integrated circuit chips
US4777616A (en) Increased resolution logic analyzer using asynchronous sampling
US20070248122A1 (en) Methods and systems relating to distributed time markers
EP3217249B1 (en) Method and structure for determining inter-system global clock
CN105549379A (en) Synchronous measurement apparatus based on high precision time reference triggering and method thereof
JP4907663B2 (en) Strobe technique for recovering clocks in digital signals
JPH07181204A (en) Logic-signal display method
CN104349163A (en) Measurement display device and measurement system for end-to-end video transmission delay
CN107728460B (en) A kind of high-resolution time interval measurement method
CN102928677A (en) Nano pulse signal acquiring method
CN1965270B (en) Measuring clock jitter
CN109917637A (en) A kind of data collecting card high precision time service method
US20130285673A1 (en) System and method for low voltage differential signaling test
CN205120884U (en) Disconnected detecting system of sliding ring wink
CN110907886B (en) Error detection system and method for electric energy of electric energy meter
CN108957174B (en) Voltage sag detection device and method
CN110062223A (en) A kind of method and its circuit system of high-precise synchronization test camera frame signal
CN104020375A (en) Device and method for detecting time parameters of intelligent substation merging units
US9170603B2 (en) Time-correlation of data
CN101123482B (en) A device and method for testing sliding index in digital communication network
CN110736877A (en) High-speed acquisition method and device for time domain reflection signals
CN106802367B (en) Vibrating string type sensor signal period measurement method and device based on overlapping grouping

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
GR01 Patent grant
GR01 Patent grant