CN110061827B - Equidistant data acquisition method and device based on synchronous clock - Google Patents

Equidistant data acquisition method and device based on synchronous clock Download PDF

Info

Publication number
CN110061827B
CN110061827B CN201810052026.9A CN201810052026A CN110061827B CN 110061827 B CN110061827 B CN 110061827B CN 201810052026 A CN201810052026 A CN 201810052026A CN 110061827 B CN110061827 B CN 110061827B
Authority
CN
China
Prior art keywords
count
sampling
pulse signal
remainder
sum
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.)
Active
Application number
CN201810052026.9A
Other languages
Chinese (zh)
Other versions
CN110061827A (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.)
China EPRI Electric Power Engineering Co Ltd
Original Assignee
China EPRI Electric Power Engineering 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 China EPRI Electric Power Engineering Co Ltd filed Critical China EPRI Electric Power Engineering Co Ltd
Priority to CN201810052026.9A priority Critical patent/CN110061827B/en
Publication of CN110061827A publication Critical patent/CN110061827A/en
Application granted granted Critical
Publication of CN110061827B publication Critical patent/CN110061827B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H03ELECTRONIC CIRCUITRY
    • H03MCODING; DECODING; CODE CONVERSION IN GENERAL
    • H03M1/00Analogue/digital conversion; Digital/analogue conversion
    • H03M1/06Continuously compensating for, or preventing, undesired influence of physical parameters
    • H03M1/0617Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence
    • H03M1/0624Continuously compensating for, or preventing, undesired influence of physical parameters characterised by the use of methods or means not specific to a particular type of detrimental influence by synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0079Receiver details
    • H04L7/0087Preprocessing of received signal for synchronisation, e.g. by code conversion, pulse generation or edge detection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The method comprises the steps of judging rationality of a pulse per second signal, determining the count of each sampling point in one second, carrying out equidistant sampling on the pulse per second signal according to the count, carrying out numbering buffering on the pulse per second signal, uploading the pulse per second signal, and verifying the count of each sampling point in one second after the numbering buffering. The technical scheme provided by the invention can realize that the acquired data are uniformly and strictly synchronously sampled within 1 second according to the time interval, and can realize the control of the time interval efficiently and conveniently.

Description

Equidistant data acquisition method and device based on synchronous clock
Technical Field
The application relates to an equal interval data acquisition method and device of a power system, in particular to an equal interval data acquisition method and device based on a synchronous clock.
Background
With the development of navigation technology, the synchronous clock technology based on the satellite navigation system is widely applied to a plurality of industrial control systems in the electric field and the like. For the power system, the data acquisition of the same time section and different space physical places has important practical significance, and is beneficial to deep observation and analysis of the operation characteristics of the power grid and better grasp of the complex operation characteristics of the power grid. However, the conventional data acquisition system generally does not have a synchronous clock, so that analysis of data of each station according to time slices is inconvenient, and although some methods based on acquisition of the synchronous clock are known, when data acquisition is performed, the processing of equal intervals is not strictly equal to the time intervals, and it cannot be guaranteed that N samples performed in each second according to the sampling rate are strictly and uniformly distributed in one second as much as possible.
Disclosure of Invention
The invention provides an equidistant data acquisition method and device based on a synchronous clock, which aim to solve the problem of inaccurate equidistant processing during data acquisition, improve the synchronism of sampled data and realize the control of the equal time interval in a high-efficiency and convenient way.
The invention aims at adopting the following technical scheme:
in a method for equally spaced data acquisition based on a synchronous clock, the improvement comprising the steps of:
determining the count of the second pulse signals according to the rationality judgment result of the second pulse signals;
determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
and numbering the counts of all the sampling points in one second and uploading the counts.
Further, the determining the count of the second pulse signal according to the rationality judgment result of the second pulse signal includes:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts with history timeIf the phase difference does not exceed the preset value, the second pulse signal at the current moment is reasonable, and the count of the sampled second pulse signal takes M b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
Further, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second includes:
adding the sum of the remainder to the sum of the second pulse signals to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Further, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second includes:
if the second pulse signal advances by t 1 Time comes, then the sum of the count of the second pulse signal plus the remainder is used to subtract t 1 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Further, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second includes:
if the second pulse signal passes t 2 After time, then at t 2 In the time, the sum of the count of the pulse signal per second and the remainder is utilized to accumulate and reduce the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and the accumulated and reduced value is used as the remainder for determining the count of the next sampling point;
counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0;
t 2 after time, the sampling rate is subtracted by 1, and the sum of the remainder and the count of the second pulse signal is usedSubtracting t2, accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Further, the counting of each sampling point in one second is numbered and then uploaded, which comprises:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
Further, the counting of each sampling point in one second is numbered and then uploaded, and the method further comprises the following steps:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
In a synchronous clock-based equally spaced data acquisition device, the improvement comprising:
and a judging module: the method is used for judging the rationality of the second pulse signal and determining the count of the second pulse signal according to the judging result;
and a sampling module: the method comprises the steps of determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
numbering module: and the counting unit is used for numbering the counts of the sampling points in one second and uploading the counts.
Preferably, the judging module is configured to:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts with history timeIf the phase difference does not exceed the preset value, the second pulse signal at the current moment is reasonable, and the count of the sampled second pulse signal takes M b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
Preferably, the sampling module is configured to:
adding the sum of the remainder to the sum of the second pulse signals to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Preferably, the sampling module is configured to:
if the second pulse signal advances by t 1 Time comes, then the sum of the count of the second pulse signal plus the remainder is used to subtract t 1 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Preferably, the sampling module is configured to:
if the second pulse signal passes t 2 After time, then at t 2 In the time, the sum of the count of the pulse signal per second and the remainder is utilized to accumulate and reduce the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and the accumulated and reduced value is used as the remainder for determining the count of the next sampling point;
counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0;
t 2 after time, the sampling rate is subtracted by 1, and t is subtracted by the sum of the count of the second pulse signal plus the remainder 2 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Preferably, the numbering module is configured to:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
Preferably, the numbering module is further configured to:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
Compared with the prior art, the invention has the following beneficial effects:
1. the method and the device for acquiring the data at equal intervals based on the synchronous clock can realize that the acquired data are uniformly and strictly synchronously sampled within 1 second according to the time interval.
2. The equidistant data acquisition method and device based on the synchronous clock can utilize the high stability of the constant-temperature crystal oscillator to keep time and continuously ensure the synchronism of sampling.
3. The equal interval data acquisition method and device based on the synchronous clock can realize the division process in a subtraction mode, and can realize the control of the equal interval efficiently and conveniently;
4. according to the method and the device for acquiring the equidistant data based on the synchronous clock, the data are numbered and judged, so that the synchronism of the acquired data is further ensured.
Drawings
FIG. 1 is a flow chart of an equidistant data acquisition method based on a synchronous clock;
fig. 2 is a diagram of an equidistant data acquisition device based on a synchronous clock.
Detailed Description
The following detailed description of specific embodiments of the invention refers to the accompanying drawings.
The invention provides an equidistant data acquisition method based on a synchronous clock, as shown in fig. 1, which comprises the following steps:
determining the count of the second pulse signals according to the rationality judgment result of the second pulse signals;
determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
and numbering the counts of all the sampling points in one second and uploading the counts.
The second pulse signal is an IRIG_B signal sent by a synchronous clock or a second pulse signal sent by a Beidou satellite micro receiving module.
Specifically, the determining the count of the second pulse signal according to the rationality judgment result of the second pulse signal includes:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts from past 10 secondsIf the phase difference is not more than 1000, the pulse per second signal at the current moment is reasonable, and M is taken as the count of the sampled pulse per second signal b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
Specifically, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in the one second includes:
if the second pulse signal arrives at the preset time, the sum of the count of the second pulse signal plus the remainder is utilized to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and the accumulated and subtracted value is used as the remainder for determining the count of the next sampling point;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
For example, if the count of the second pulse signal is 4100 and the sampling rate is 1000, the first sampling point count is calculated as follows: accumulating and subtracting 1000 from the count 4100 of the second pulse signal until the residual value reaches 100, wherein the accumulated and subtracted value is 4, and then taking 4 as the first sampling point count;
the second sample point count is calculated as follows: taking the count 4100 of the second pulse signal plus the remainder 100 of the previous second, subtracting 1000 until the sum reaches 200, wherein the subtracting value is 4, and taking 4 as the second sampling point count;
the third sample point count is calculated as follows: taking the count 4100 of the second pulse signal plus the remainder 200 of the previous second, subtracting 1000 until the sum is 300, wherein the subtracting value is 4, and taking 4 as the third sampling point count;
the remaining sample points count and so on.
Specifically, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in the one second, further includes:
if the second pulse signal arrives earlier than the preset time, the sum of the count of the second pulse signal plus the remainder is used for subtracting t 1 (t 1 When the second pulse signal arrives in advance, the time difference between the actual arrival time and the preset time), the sampling rate is subtracted until the subtracted value is smaller than the sampling rate, and the subtracted value is used as the remainder for determining the counting of the next sampling point;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Specifically, the determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in the one second, further includes:
if the second pulse signal arrives later than the preset time delay, at t 2 Within time (t) 2 When the second pulse signal arrives in a lagging way, the time difference between the actual arrival time and the preset time) and the sum of the counting and the remainder of the second pulse signal of the last second is utilized to accumulate and reduce the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and the accumulated and reduced value is used as the remainder for determining the counting of the next sampling point;
counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0;
t 2 after the time, subtracting 1 from the sampling rate, subtracting t2 from the sum of the count of the second pulse signal plus the remainder, accumulating the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder for determining the count of the next sampling point;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Specifically, the step of numbering the counts sampled at equal intervals and uploading the counts includes:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
Specifically, the step of numbering the counts sampled at equal intervals and then uploading the counts further includes:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
The invention provides an equidistant data acquisition device based on a synchronous clock, as shown in fig. 2, the device comprises:
and a judging module: the method is used for judging the rationality of the second pulse signal and determining the count of the second pulse signal according to the judging result;
and a sampling module: the method comprises the steps of determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
numbering module: and the counting unit is used for numbering the counts of the sampling points in one second and uploading the counts.
Specifically, the judging module is configured to:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts from past 10 secondsIf the phase difference is not more than 1000, the pulse per second signal at the current moment is reasonable, and M is taken as the count of the sampled pulse per second signal b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
Specifically, the sampling module is configured to:
adding the sum of the remainder to the sum of the second pulse signals to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Specifically, the sampling module is further configured to:
if the second pulse signal advances by t 1 Time comes, then utilizeThe sum of the count of the second pulse signal plus the remainder minus t 1 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Specifically, the sampling module is further configured to:
if the second pulse signal passes t 2 After time, then at t 2 In the time, the sum of the count of the pulse signal per second and the remainder is utilized to accumulate and reduce the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and the accumulated and reduced value is used as the remainder for determining the count of the next sampling point;
counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0;
t 2 after time, the sampling rate is subtracted by 1, and t is subtracted by the sum of the count of the second pulse signal plus the remainder 2 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
Specifically, the numbering module is configured to:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
Specifically, the numbering module is further configured to:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.

Claims (12)

1. An equidistant data acquisition method based on a synchronous clock, which is characterized by comprising the following steps:
determining the count of the second pulse signals according to the rationality judgment result of the second pulse signals;
determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
numbering the counts of all sampling points in one second and uploading the counts;
the determining the count of the second pulse signal according to the rationality judgment result of the second pulse signal comprises the following steps:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts from past 10 secondsIf the phase difference is not more than 1000, the pulse per second signal at the current moment is reasonable, and M is taken as the count of the sampled pulse per second signal b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
2. The method of claim 1, wherein determining the count of sampling points in one second from the count of the pulse-per-second signal and sampling the pulse-per-second signal at equal intervals based on the count of sampling points in one second comprises:
adding the sum of the remainder to the sum of the second pulse signals to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
3. The method of claim 1, wherein determining the count of sampling points in one second from the count of the pulse-per-second signal and sampling the pulse-per-second signal at equal intervals based on the count of sampling points in one second comprises:
if the second pulse signal advances by t 1 Time comes, then the sum of the count of the second pulse signal plus the remainder is used to subtract t 1 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
4. The method of claim 1, wherein determining the count of sampling points in one second from the count of the pulse-per-second signal and sampling the pulse-per-second signal at equal intervals based on the count of sampling points in one second comprises:
if the second pulse signal passes t 2 After time, then at t 2 In time, the sum of the remainder of the counting of the pulse signals of the second of the last second is added and subtracted until the subtracted value is smaller than the sampling rate, and the subtracted value is used as the remainder for determining the counting of the next sampling point;
Counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by the sum of the count of the second pulse signal of the last second and the remainder, and the initial remainder is 0;
t 2 after time, the sampling rate is subtracted by 1, and t is subtracted by the sum of the count of the second pulse signal plus the remainder 2 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
5. The method of claim 1, wherein numbering the counts for each sample point in the one second and uploading comprises:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
6. The method of claim 1 or 5, wherein the numbering the counts of the sampling points in the one second is then uploaded, and further comprising:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
7. An equally spaced data acquisition device based on a synchronous clock, the device comprising:
and a judging module: the method is used for judging the rationality of the second pulse signal and determining the count of the second pulse signal according to the judging result;
and a sampling module: the method comprises the steps of determining the count of each sampling point in one second according to the count of the second pulse signal, and sampling the second pulse signal at equal intervals based on the count of each sampling point in one second;
numbering module: the counting module is used for numbering the counts of all sampling points in one second and uploading the counts;
the judging module is used for:
if the count M of the second pulse signal at the current moment b Average value of sum of second pulse signal counts from past 10 secondsIf the phase difference is not more than 1000, the pulse per second signal at the current moment is reasonable, and M is taken as the count of the sampled pulse per second signal b The method comprises the steps of carrying out a first treatment on the surface of the Otherwise, the second pulse signal at the current moment is unreasonable, and the count of the sampled second pulse signal is +.>
8. The apparatus of claim 7, wherein the sampling module is to:
adding the sum of the remainder to the sum of the second pulse signals to accumulate and subtract the sampling rate until the accumulated and subtracted value is smaller than the sampling rate, and taking the accumulated and subtracted value as the remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
9. The apparatus of claim 7, wherein the sampling module is to:
if the second pulse signal advances by t 1 Time comes, then the sum of the count of the second pulse signal plus the remainder is used to subtract t 1 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
10. The apparatus of claim 7, wherein the sampling module is to:
if the second pulse signal passes t 2 After time, then at t 2 In the time, the sum of the count of the pulse signal per second and the remainder is utilized to accumulate and reduce the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and the accumulated and reduced value is used as the remainder for determining the count of the next sampling point;
counting the count of a sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by the sum of the count of the second pulse signal of the last second and the remainder, and the initial remainder is 0;
t 2 after time, the sampling rate is subtracted by 1, and t is subtracted by the sum of the count of the second pulse signal plus the remainder 2 Accumulating and reducing the sampling rate until the accumulated and reduced value is smaller than the sampling rate, and taking the accumulated and reduced value as a remainder when the next sampling point is determined to be counted;
and counting the count of the sampling interval counter as a sampling point, wherein the count of the sampling interval counter is the number of times of accumulating and reducing the sampling rate by using the sum of the count and the remainder of the second pulse signal, and the initial remainder is 0.
11. The apparatus of claim 7, wherein the numbering module is to:
numbering the count of each sampling point in one second according to the sampling rate and storing the count into a buffer area; and when the storage is full, uploading the count of each sampling point in the buffer area according to the number.
12. The apparatus of claim 7 or 11, wherein the numbering module is further configured to:
and if the counts of the sampling points in one second are not uploaded in sequence according to the numbers, acquiring the second pulse signal again.
CN201810052026.9A 2018-01-19 2018-01-19 Equidistant data acquisition method and device based on synchronous clock Active CN110061827B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810052026.9A CN110061827B (en) 2018-01-19 2018-01-19 Equidistant data acquisition method and device based on synchronous clock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810052026.9A CN110061827B (en) 2018-01-19 2018-01-19 Equidistant data acquisition method and device based on synchronous clock

Publications (2)

Publication Number Publication Date
CN110061827A CN110061827A (en) 2019-07-26
CN110061827B true CN110061827B (en) 2023-07-18

Family

ID=67314901

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810052026.9A Active CN110061827B (en) 2018-01-19 2018-01-19 Equidistant data acquisition method and device based on synchronous clock

Country Status (1)

Country Link
CN (1) CN110061827B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7103125B1 (en) * 2001-05-16 2006-09-05 Lexmark International, Inc. Method and apparatus for effecting synchronous pulse generation for use in serial communications
JP2006254041A (en) * 2005-03-10 2006-09-21 Ikegami Tsushinki Co Ltd Clock recovery information forming circuit and clock recovery circuit
CN101316160A (en) * 2008-06-11 2008-12-03 南京磐能电力科技股份有限公司 Multi-node synchronization sampling and data transmission method
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7272201B2 (en) * 2003-08-20 2007-09-18 Schweitzer Engineering Laboratories, Inc. System for synchronous sampling and time-of-day clocking using an encoded time signal
FI20055362L (en) * 2005-06-29 2006-12-30 Abb Oy Automation telecommunications network
EP1903702A1 (en) * 2006-09-19 2008-03-26 STMicroelectronics N.V. Method and device for estimating the drift between two clocks, in particular for ranging applications in UWB-LDR technology
CN101540500B (en) * 2009-04-28 2010-11-10 南京中德保护控制系统有限公司 Data synchronization method of digital optical fiber differential protective clock by relay method
CN101984538B (en) * 2010-05-25 2012-12-19 国电南瑞科技股份有限公司 Data synchronization processing method for electronic mutual inductor using Manchester encoding
CN202256483U (en) * 2011-10-26 2012-05-30 江西省电力公司超高压分公司 GPS (Global Positioning System) second-based real-time self-adaptive evenly-spaced sampling synchronous data acquisition device
KR101795199B1 (en) * 2013-03-29 2017-11-07 미쓰비시덴키 가부시키가이샤 Signal processing device
CN103713552B (en) * 2013-12-23 2016-06-01 国电南瑞科技股份有限公司 Based on self-adaptation dynamic synchronization controlling of sampling device and the method thereof of pulse per second (PPS)
CN104991440B (en) * 2015-07-14 2017-03-01 中北大学 High accuracy IRIG B(AC)Code demodulation method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7103125B1 (en) * 2001-05-16 2006-09-05 Lexmark International, Inc. Method and apparatus for effecting synchronous pulse generation for use in serial communications
JP2006254041A (en) * 2005-03-10 2006-09-21 Ikegami Tsushinki Co Ltd Clock recovery information forming circuit and clock recovery circuit
CN101316160A (en) * 2008-06-11 2008-12-03 南京磐能电力科技股份有限公司 Multi-node synchronization sampling and data transmission method
CN103941622A (en) * 2014-04-28 2014-07-23 国家电网公司 Method for adopting high-accuracy pulse per second frequency multiplication to produce sampling pulse based on FPGA

Also Published As

Publication number Publication date
CN110061827A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN103368676B (en) A kind of strange land based on cyclic pulse signal synchronous data sampling method and system
CN106253902B (en) The multi-channel parallel acquisition system of identification calibration function is resetted with more device synchronizations
CN104115403B (en) Pulse frequency measurement equipment and method and control system
EP1978692A3 (en) High data rate interface apparatus and method
WO2009071686A3 (en) Global navigation receiver
EP2726835A1 (en) Vibration monitoring system
CN105245203B (en) High-precision low-speed clock duty ratio detecting system and method
CN109283864A (en) A kind of time synchronization of data sampling, calibration method and system
CN101865952B (en) Method for realizing high-precision synchronous phasor measurement
CN106855633B (en) A kind of synchronous method for extracting inert satellite combination metric data
CN110061827B (en) Equidistant data acquisition method and device based on synchronous clock
CN106645780A (en) Rotating speed detection method and system base on DSP
CN111443641B (en) Sampling rate correction method, system, device and storage medium
CN113673110A (en) Crystal oscillator clock correction method, device, equipment and medium
CN104977978A (en) Acquiring and processing method for non-synchronizing signals of system clock
CN110471087A (en) A kind of the time drift calculation method and system of spacecraft
CN107016217B (en) Method and system for calculating sampling filter current value
CN103558454B (en) A kind of Puled input frequency measurement method
EP2677325A2 (en) Physical quantity measuring apparatus and physical quantity measuring method
CN103813438B (en) A kind of slotted synchronous method, equipment and base station
CN105721092B (en) The method of resampling technique raising distributed system timing tracking accuracy
CN107517092B (en) Estimation method, the method, apparatus of signal synchronization and demodulation of waveforms detection threshold value
CN103632041A (en) Data processing method and device
CN108770056A (en) Ultra wide band synchronizing signal modification method, device and locating base station
US7447279B2 (en) Method and system for indicating zero-crossings of a signal in the presence of noise

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