[go: up one dir, main page]

CN102832911A - Digital signal recovery method and device - Google Patents

Digital signal recovery method and device Download PDF

Info

Publication number
CN102832911A
CN102832911A CN2011101592629A CN201110159262A CN102832911A CN 102832911 A CN102832911 A CN 102832911A CN 2011101592629 A CN2011101592629 A CN 2011101592629A CN 201110159262 A CN201110159262 A CN 201110159262A CN 102832911 A CN102832911 A CN 102832911A
Authority
CN
China
Prior art keywords
pulse width
width information
digital signal
current pulse
judged result
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
CN2011101592629A
Other languages
Chinese (zh)
Other versions
CN102832911B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201110159262.9A priority Critical patent/CN102832911B/en
Publication of CN102832911A publication Critical patent/CN102832911A/en
Application granted granted Critical
Publication of CN102832911B publication Critical patent/CN102832911B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measuring Frequencies, Analyzing Spectra (AREA)
  • Measurement Of Current Or Voltage (AREA)

Abstract

The invention provides a digital signal recovery method and device. The method comprises the following steps: measuring the current pulse width information of a detected digital signal according to a reference clock; calculating the digital signal sampling frequency according to the current pulse width information; and performing recovery processing on the detected digital signal according to the digital signal sampling frequency. By the method, the digital signal sampling frequency can be acquired in real time according to the current pulse width information of the detected digital signal, thereby avoiding signal loss in the digital signal recovery process.

Description

A kind of digital signal restoration methods and device
Technical field
The present invention relates to digital signal recovery technology field, specifically can design a kind of digital signal restoration methods and device.
Background technology
Digital signal is in generation, transmission and recovery process, and owing to the discreteness of information source self, the inhomogeneities of transmission medium, it is unusual that decay, distortion etc. unavoidably appear in signal, shown in accompanying drawing 1.Common signal dutyfactor distortion is exactly that digital signal ratio of high-low level in one-period squints, and has departed from 50% of standard.Therefore, need recover to overcome the problems referred to above digital signal.
For the recovery of digital signal, universal method is to adopt the clock of a upper frequency and fixed-frequency to sample, and recovers through relevant filtering scheduling algorithm at present.According to nyquist sampling theorem: when sample frequency fs.max greater than signal in during 2 times of highest frequency fmax; That is: fs.max>=2fmax; Then the digital signal after the sampling has intactly kept the information in the primary signal; Correctly reconstruction signal guarantees that sample frequency is 5~10 times of signal highest frequency in the general practical application.
As a rule, sample rate is high more, and the data of sampling also can be more accurately credible.For example oscilloscope is when sampling low-duty-cycle pulses signal, in order to improve measuring accuracy, all is to use oscillographic high sampling rate to gather Wave data usually.The data of using higher sample rate can directly cause collecting are too huge, and are higher to memory space and processor (CPU) arithmetic speed and Capability Requirement, are unfavorable for extensively promoting the use of in the occasion that low cost requires.Simultaneously, the frequency of part occasion requirement sampling clock can not be too high, crosses high-frequency and can cause the inaccurate problem of repeated sampling result on the contrary.For example commonly used fan rotating speed signals collection in the communication base station, relatively more responsive because in general number of fans is more to whole cost, be not suitable for adopting simultaneously CPU to handle than high sampling rate and high operational capability.
Under low frequency signal is gathered scene, the for example collection of fan rotating speed signals, because the rising edge of this type tach signal changes slowly with trailing edge, sample rate is too high, will appear in edge 0.7~1IH time repeatedly that repeated sampling adds up, and causes the counting increase bigger than normal; If sample rate is low excessively, will require to occur digit pulse and detect imperfectly because of not satisfying sample rate, cause dropout, counting reduces.Both of these case all can cause the fan rotating speed signals sampled result inaccurate.This analoglike device of fan, except the tach signal frequency was low, tach signal digit pulse duty ratio was also unstable, even big saltus step possibly occur; Especially this situation is particularly evident in speed regulation process.The situation of signal dutyfactor distortion can be shown in accompanying drawing 1.The high-low level duty ratio is 50% in the normal digital pulse signal one-period, that is is that high level and low level respectively account for 50%.But for a certain reason, the high level pulse narrowed width becomes 50%-Δ x by original 50%, and low level pulse is changed to 50%+ Δ x.Signal dutyfactor changes, if still adopt the fixed sample rate that sample rate requires that satisfies just of original design to sample, just occurs because of not satisfying the sample rate requirement unavoidablely, and causes digital signal the phenomenon of dropout when recovery, to occur.
All situation more than comprehensive; Adopt fixed sample rate to carry out digital signal samples at present,, can't satisfy the sample rate requirement for the pulse signal of pulse duration saltus step; Can not satisfy all application scenarios fully, thereby cause digital signal the phenomenon of dropout when recovering, to occur.
Summary of the invention
Technical problem to be solved by this invention provides a kind of digital signal restoration methods and device, thereby avoids occurring dropout appears in digital signal when recovering phenomenon.
For solving the problems of the technologies described above, the present invention provides scheme following:
The embodiment of the invention provides a kind of digital signal restoration methods, comprising:
Based on a reference clock, measure the current pulse width information of digital signal to be detected;
Based on said current pulse width information, calculate the digital signal samples frequency;
Based on said digital signal samples frequency, said digital signal to be detected is recovered to handle.
Preferably, in the said method, the current pulse width information of said measurement digital signal to be detected comprises:
According to the pulse pattern parameter of preset digital signal to be detected, measure the current pulse width information of digital signal to be detected.
Preferably, in the said method, based on said current pulse width information, comprise before calculating the digital signal samples frequency:
Magnitude relationship between the lowest numeric signal sampling pulse width information of judging said current pulse width information and presetting is obtained first judged result;
When said first judged result when being said current pulse width information more than or equal to said lowest numeric signal sampling pulse width information, get into saidly based on said current pulse width information, calculate the digital signal samples frequency step.
Preferably, in the said method, when said first judged result when being said current pulse width information less than said lowest numeric signal sampling pulse width information, said method also comprises:
Judge that said current pulse width information whether greater than 2 doubling time time widths of said reference clock, obtains second judged result;
When said second judged result when being said current pulse width information, be the maximum sample frequency that system allows with said digital signal samples frequency configuration less than 2 doubling time time widths of said reference clock;
When said second judged result when being said current pulse width information greater than 2 doubling time time widths of said reference clock; Based on a preset adjustment step-length; Adjust said preset lowest numeric signal sampling pulse width information, reduce said preset lowest numeric signal sampling pulse duration numerical value.
Preferably, in the said method, based on a preset adjustment step-length, also comprise after adjusting said preset lowest numeric signal sampling pulse width information:
Judge that said current pulse width information whether more than or equal to adjusted lowest numeric signal sampling pulse width information, obtains the 3rd judged result;
When said the 3rd judged result when being said current pulse width information more than or equal to said adjusted lowest numeric signal sampling pulse width information, get into saidly based on said current pulse width information, calculate the digital signal samples frequency step;
When said the 3rd judged result when being said current pulse width information less than said adjusted lowest numeric signal sampling pulse width information; Return saidly, adjust said preset lowest numeric signal sampling pulse width information step based on a preset adjustment step-length.
Preferably; In the said method; When being said current pulse width information when first judged result less than said lowest numeric signal sampling pulse width information; Perhaps when being said current pulse width information when said second judged result, also comprise: send alarm prompt less than 2 doubling time time widths of said reference clock.
Preferably, said in the said method based on said current pulse width information, calculate the digital signal samples frequency and comprise:
Based on the sampling multiplying power parameter that said current pulse width information and is preset, calculate the digital signal samples frequency.
Preferably, in the said method, also comprise:
At preset week in a time interval after date, carry out saidly once more based on a reference clock, measure the current pulse width information step of digital signal to be detected.
The embodiment of the invention also provides a kind of digital signal recovery device, comprising:
Measurement module is used for based on a reference clock, measures the current pulse width information of digital signal to be detected;
Computing module is used for based on said current pulse width information, calculates the digital signal samples frequency;
Processing module is used for based on said digital signal samples frequency, and said digital signal to be detected is recovered to handle.
Preferably, in the said device, also comprise:
First judge module; Be used to judge the magnitude relationship between current pulse width information that said measurement module obtains and the lowest numeric signal sampling pulse width information of presetting; Obtain first judged result; And when being said current pulse width information, trigger said computing module more than or equal to said lowest numeric signal sampling pulse width information in said first judged result.
Preferably, in the said device, also comprise:
Second judge module; When being used for first judged result when said first judge module and being said current pulse width information less than said lowest numeric signal sampling pulse width information; Judge that said current pulse width information whether greater than 2 doubling time time widths of said reference clock, obtains second judged result;
Module is set, and when being used for second judged result when said second judge module and being said current pulse width information less than 2 doubling time time widths of said reference clock, is the maximum sample frequency that system allows with said digital signal samples frequency configuration;
Adjusting module; When being used for second judged result when said second judge module and being said current pulse width information greater than 2 doubling time time widths of said reference clock; Based on a preset adjustment step-length; Adjust said lowest numeric signal by sampling pulse width information, reduce said preset lowest numeric signal sampling pulse duration numerical value, and after adjustment, trigger said first judge module.
Preferably, in the said device, said first judge module also is used for: judge that said current pulse width information whether more than or equal to adjusted lowest numeric signal sampling pulse width information, obtains the 3rd judged result;
When said the 3rd judged result when being said current pulse width information more than or equal to said adjusted lowest numeric signal sampling pulse width information, said first judge module triggers said computing module;
When said the 3rd judged result when being said current pulse width information less than said adjusted lowest numeric signal sampling pulse width information, said first judge module triggers said adjusting module.
Preferably, in the said device, also comprise:
Alarm module; Be used in first judged result when being said current pulse width information less than said lowest numeric signal sampling pulse width information when first judge module; Perhaps when being said current pulse width information, send alarm prompt less than 2 doubling time time widths of said reference clock in second judged result when said second judge module.
Preferably, in the said device, also comprise:
Presetting module is used for being provided with in advance the lowest numeric signal by sampling pulse width information.
Preferably, in the said device, also comprise:
Restart module, be used for triggering said measurement module at preset week in a time interval after date.
Can find out that from the above digital signal restoration methods and device that the embodiment of the invention provides through based on a reference clock, are measured the current pulse width information of digital signal to be detected; Based on said current pulse width information, calculate the digital signal samples frequency; Based on said digital signal samples frequency, said digital signal to be detected is recovered to handle.Thereby realize based on the current pulse duration phenomenon of digital signal to be detected, the digital signal samples rate of obtaining in real time, thus avoid occurring dropout appears in digital signal when recovering phenomenon.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the digital signal sketch map that distortion takes place duty ratio in the prior art;
The digital signal restoration methods schematic flow sheet one that Fig. 2 provides for the embodiment of the invention;
The digital signal restoration methods digital signal pulse width measuring sketch map that Fig. 3 provides for the embodiment of the invention;
The digital signal restoration methods schematic flow sheet two that Fig. 4 provides for the embodiment of the invention;
The digital signal restoration methods sampling self adaptation adjustment sketch map that Fig. 5 provides for the embodiment of the invention;
The digital signal recovery device structural representation one that Fig. 6 provides for the embodiment of the invention;
The digital signal recovery device structural representation two that Fig. 7 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of digital signal restoration methods, and shown in accompanying drawing 2, this method specifically can comprise:
Step 201 based on a reference clock, is measured the current pulse width information of digital signal to be detected;
Step 202 based on said current pulse width information, is calculated the digital signal samples frequency;
Step 203 based on said digital signal samples frequency, is recovered to handle to said digital signal to be detected.
The digital signal restoration methods that the embodiment of the invention provides under the situation of any hardware resource, only just can realize the self adaptation of sample frequency through the related algorithm computing in not changing present signal sampling system; And the sample rate self adaptation is a lasting process; The reference signal is being measured the measured number signal always, according to measuring result of calculation, real-time update sample frequency; Guarantee the credibility of sampled data, thereby avoid occurring dropout appears in digital signal when recovering phenomenon.
The digital signal restoration methods that the embodiment of the invention provides is when measuring the current pulse width information of digital signal to be detected; The reference clock that needs a high accuracy high frequency; Generally, can directly adopt the system works clock of digital signal samples system to get final product.
In the embodiment of the invention, the measuring process of current pulse width information can be based on preset in advance measurement parameter, and for example the pulse pattern of digital signal to be detected waits and realizes.And digital signal samples frequency computation part process can be based on preset in advance calculating parameter, and the multiplying power of for example sampling realizes.
The pulse pattern of the digital signal to be detected that the embodiment of the invention is related; Mainly be according to the practical application demand; The pulse of measuring digital signal to be detected is high level (H) or low level (L); Being provided with of this measurement parameter can adapt to present part occasion demand low level signal, the demand of part occasion demand high level signal.When concrete the application,,, stop counting at trailing edge then in pulse signal rising edge to be detected enabling counting if detect the high level pulse deration of signal; If detect the low level pulse deration of signal,, stop counting at rising edge then in pulse signal trailing edge to be detected enabling counting.The sketch map of above-mentioned counting process can be shown in accompanying drawing 3.And counting principle can be: in the high level or low-level period of pulse signal, the every output one-period of reference clock signal-count just adds 1 (N automatically N+1=N n+ 1).If measuring required reference clock frequency is F, then be 1/F measuring period, if a certain pulse signal width meter numerical value is N, then the current pulse duration P of digital signal to be detected can be: P=N/F.
The related sampling multiplying power of the embodiment of the invention specifically can be set to M, and M is necessary for and is not less than 2 integer.The purpose that is provided with so mainly is the requirement owing to sampling thheorem, and the sampled signal frequency is necessary for by the sampled signal frequency more than 2 times.
Because any one system is owing to the performance limitations of hardware device own, certainty of measurement all has certain credible scope; According to the particular demands of application scenario, need the interference signal outside the filtering expection signal simultaneously.Therefore, the embodiment of the invention can be provided with a lowest numeric signal sampling pulse width information in advance according to practical application, can be made as P MinP MinSetting; Main characteristic according to digital signal to be measured; Interference signal to the unknown is provided with the filtering thresholding, and the digital signal that is equivalent to make input only detects normal digital signal possible under this applied environment through a specific band pass filter; The interference signal that the filtering band is outer, the credibility of enhancing sampled result.In the embodiment of the invention, the lowest numeric signal sampling pulse width information thresholding P that promptly samples MinRequire below must satisfying: satisfy sampling thheorem such as nyquist sampling theorem requirement; Measurement must be with the frequency F of reference clock foundation as a reference.
When concrete the realization, based on a reference clock, measure obtain the current pulse width information P of digital signal to be detected after, can be with the P and preset lowest numeric signal sampling pulse width information of actual measurement, thresholding P promptly samples MinCompare judgement, carry out subsequent treatment according to comparative result.
Concrete, if P>=P Min, promptly the pulse width information of digital signal to be detected is within the measuring range of reference signal, and the follow-up calculating of carrying out sample frequency, and the employing frequency that can obtain based on calculating are carried out digital signal and are recovered to handle.If P<P Min, then can surpass the minimum threshold alarm, the prompting sampled result is credible to be reduced, even not available.
If P<P Min, then also have another kind of situation, the lowest numeric signal sampling frequency P that promptly is provided with in advance MinUnreasonable, so to this situation, the embodiment of the invention thresholding of also can sampling is adjusted flow process automatically.And sampling thresholding self-regulating process can carry out based on a judged result, and this judged result can be based on P Min, P and reference clock 2 doubling time time widths be that size between the 2/F is more definite.
Concrete, if P is not only less than P Min, but also less than 2/F, the sample frequency that can directly digital signal recovery processing be needed so is provided with the maximum sample frequency P that the digital signal samples system allows Max(in a specific embodiment, because limited by systematic function, P MaxCan be consistent with the frequency of system reference clock), and the alarm prompt measurement result is insincere fully; If 2/F<P<P Min, then start the sampling thresholding and adjust flow process automatically, the sampling thresholding that is provided with is in advance deducted a preset sampling adjust step-length, promptly reduce the numerical value of sampling thresholding.Specifically can be shown in following formula: P Min2=P Min1-x (wherein x is the sampling thresholding adjustment step-length that is provided with in advance, and default setting is the one-period time width 1/F of reference clock F), adjustment sampling thresholding.And, follow-uply also can compare judgement to the pulse width information P of the current measurement of digital signal and adjusted sampling thresholding again, obtain a judged result.If measured value P is still less than adjusted sampling thresholding, for example P Min2, the adjustment of the thresholding of then sampling once more, until measured value P greater than adjusted sampling thresholding.
When measured value P more than or equal to preset P MinPerhaps adjusted P MinThe time, the embodiment of the invention can be carried out like the described sample frequency computational process of step 202.
Concrete, the computational process of sample frequency (can be set to H) can be carried out based on following formula: H=M/P, and wherein, P is the current measured value of digital signal pulse duration to be detected, and M is preset sampling multiplying power, because P=N/F, then H=MF/N.
The embodiment of the invention can be carried out digital signal based on this sample frequency and recover to handle after being calculated definite sample frequency H.Concrete recovery processing procedure also has been the mature technique operation, repeats no more at this.
Content like above-mentioned statement can be known; What digital signal that the embodiment of the invention provides recovered that processing method institute will realize is the sample frequency adaptive process, and the adaptive essence of sample rate is the pulse width information of the digital signal to be detected obtained according to current measurement, and current digit signals sampling frequency is obtained in calculating in real time; Therefore; The method that the embodiment of the invention provides can be behind Preset Time interval, and execution in step 21 is to step 23, to realize the self adaptation of sample frequency once more.
For the ease of understanding, below in conjunction with accompanying drawing 4, a full implementation example of the digital signal restoration methods that the embodiment of the invention is provided is carried out detailed explanation.This embodiment specifically can comprise:
Step 401 is provided with detected parameters.
Related detected parameters in this step specifically can comprise the pulse pattern of sampling multiplying power M, digital signal to be detected, the lowest numeric signal sampling pulse width information thresholding P that promptly samples Min1Deng.
Step 402 is measured the current pulse width information of digital signal to be detected.
Concrete, can measure the current pulse width information P of digital signal to be detected based on the system works clock F of signal sampling system.
The related digital signal of the embodiment of the invention specifically can be handshake etc.
Step 403 judges that whether P is more than or equal to P Min1
As P>=P MinThe time, follow-up execution in step step 407; If P<P Min1The time, follow-up execution in step 404.
Step 404 judges that whether P is less than 2/F.
If P<2/F, then execution in step 405, and the maximum employing frequency configuration that the signal sampling system is allowed is that digital signal is recovered the sample frequency that processing needs, and the alarm prompt measurement result is insincere fully.Need to prove, between step 403 and step 404, also can carry out alarm prompt.
If P>2/F, then execution in step 406, adjustment P Min1
Concrete, can like 1/F, adjust P based on a preset adjustment step-length Min1, reduce P Min1Numerical value, adjusted sampling thresholding can be used P Min2Expression.
After the adjustment, execution in step 403 once more, judge that whether P is more than or equal to P Min2
If P>=P Min2, then follow-up execution in step 407, otherwise execution in step 406 once more, until adjusted sampling thresholding more than or equal to P.
Step 407, the calculating sampling frequency.
Concrete, can adopt the calculating of frequency based on formula: H=MF/N.
Step 408 is carried out digital signal and is recovered to handle.
Concrete, as can to obtain based on calculating employing frequency H carries out the recovery of digital signal and handles.
Step 409 restarts step 402.
Concrete, after preset time interval, restart step 402, to realize the self adaptation of sample frequency.
Below in conjunction with like accompanying drawing 5, concrete digital signal samples frequency self-adaption adjustment process in the embodiment of the invention is described.
At first, can minimum sampling multiplying power M=2 be set according to the sample rate requirement, suppose that by sampled digital signal (502) cycle be 2T, according to the sampling thheorem requirement, the digital signal samples frequency (501) that this moment, self adaptation went out is f 1=MF/N 1(annotate: the sampling law require sampled signal must be not more than cycle time by the sampled signal high impulse time 1/2).Measured signal distorts after (504), though the overall cycle does not change, still be 2T, and the high level duty ratio has original 50%, and to distort be 40%.In order to satisfy the sample rate requirement, the self adaptation digital signal samples frequency f of coming out then x=5/4*f 1(503), concrete computational process can be as follows:
f 1=MF/N 1 ;N 1*1/F=T (1)
f x=M xF/N x ;N x*1/F=T*4/5 (2)
Then, f x=5/4*f (3)
It is thus clear that embodiment of the invention technical scheme can realize the self adaptation of sample frequency.
Can find out that from the above the digital signal restoration methods that the embodiment of the invention provides through based on a reference clock, is measured the current pulse width information of digital signal to be detected; Based on said current pulse width information, calculate the digital signal samples frequency; Based on said digital signal samples frequency, said digital signal to be detected is recovered to handle.Thereby realize based on the current pulse duration phenomenon of digital signal to be detected, the digital signal samples rate of obtaining in real time, thus avoid occurring dropout appears in digital signal when recovering phenomenon.And, the method that the embodiment of the invention provides, do not change existing signal sampling system in any hardware resource; Through utilizing the existing hardware resource,, finally realize the sample rate self adaptation according to above self-adaptive processing and algorithm; This is not only the sampling request that satisfies the duty ratio distorted signal; Be actually and reduced, strengthened digital signal and recovered ability of processing, reduce the cost that digital signal acquiring is rebuild greatly by the requirement of sampled signal quality.
The embodiment of the invention also provides a kind of digital signal recovery device, and shown in accompanying drawing 6, this device specifically can comprise:
Measurement module 601 is used for based on a reference clock, measures the current pulse width information of digital signal to be detected;
Computing module 602 is used for based on said current pulse width information, calculates the digital signal samples frequency;
Processing module 603 is used for based on said digital signal samples frequency, and said digital signal to be detected is recovered to handle.
The digital signal recovery device that the embodiment of the invention provides under the situation of any hardware resource, only just can be realized the self adaptation of sample frequency through the related algorithm computing in not changing present signal sampling system; And the sample rate self adaptation is a lasting process; The reference signal is being measured the measured number signal always, according to measuring result of calculation, real-time update sample rate; Guarantee the credibility of data sampling, thereby avoid occurring dropout appears in digital signal when recovering phenomenon.
The digital signal recovery device that the embodiment of the invention provides needs the reference clock of a high accuracy high frequency when measuring the current pulse width information of digital signal to be detected, generally, can directly adopt the system works clock F of signal sampling system to get final product.
In optional embodiment of the present invention, said device can also comprise:
Presetting module 604 is used for being provided with in advance sampling parameter, like the lowest numeric signal by sampling pulse width information P Min, sampling multiplying power M, digital signal to be detected pulse pattern etc.
Measurement module 601 can be measured the current pulse width information P of digital signal to be detected based on the parameters such as pulse pattern of preset in advance digital signal to be detected, and P=N/F, and wherein N is a digital signal width measure count value to be detected.
Computing module 602 can calculate digital signal samples frequency F based on preset in advance sampling multiplying power M, and concrete formula H=M/P capable of using carries out, because P=N/F, then H=MF/N.
Because any one system is owing to the performance limitations of hardware device own, certainty of measurement all has certain credible scope; According to the particular demands of application scenario, need the interference signal outside the filtering expection signal simultaneously.Therefore, the embodiment of the invention can be provided with a lowest numeric signal sampling pulse width information in advance according to practical application, can be made as P MinP MinSetting; Main characteristic according to digital signal to be measured; Interference signal to the unknown is provided with the filtering thresholding, and the digital signal that is equivalent to make input only detects normal digital signal possible under this applied environment through a specific band pass filter; The interference signal that the filtering band is outer, the credibility of enhancing sampled result.In the embodiment of the invention, the lowest numeric signal sampling pulse width information thresholding P that promptly samples MinRequire below must satisfying: satisfy the sampling thheorem requirement; Measurement must be with the frequency F of reference clock foundation as a reference.
In optional embodiment of the present invention, said device also comprises:
Judge module 605 is used to the current pulse width information P and preset lowest numeric signal sampling pulse width information P that judge that said measurement module 601 obtains MinBetween magnitude relationship, obtain a judged result.
When judged result is that current pulse width information P is more than or equal to lowest numeric signal sampling pulse width information P MinThe time, judge module 605 triggers said computing module 602.
When judged result is that current pulse width information P is less than said lowest numeric signal sampling pulse width information P MinThe time, judge module 605 also can trigger judge module optional in the embodiment of the invention 606.
Judge module 606 is used to judge that current pulse width information P whether greater than the 2 doubling time time width 2/F of reference clock F, obtains a judged result.
In optional embodiment of the present invention, said device also comprises:
Module 607 is set; 2/F when being used for judged result when judge module 606 and being current pulse width information P less than 2 doubling time time widths of reference clock, the maximum sample frequency that required digital signal samples frequency configuration allowed for the signal sampling system when digital signal was recovered to handle.
Adjusting module 608, when being used for judged result when judge module 606 and being current pulse width information P greater than 2 doubling time time width 2/F of reference clock, based on a preset adjustment step-length, like 1/F, adjustment lowest numeric signal is by sampling pulse width information P Min, promptly reduce P MinNumerical value.Adjusted lowest numeric signal can be used P by sampling pulse width information Min2Expression.
In optional embodiment of the present invention, judge module 605 is used to also judge that whether current pulse width information P is more than or equal to adjusted lowest numeric signal sampling pulse width information P Min2
When P more than or equal to P Min2The time, judge module 605 triggers computing module 602;
When P less than P Min2The time, judge module 605 triggers adjusting modules 608, repeats set-up procedure, until P more than or equal to adjusted P MinX
In optional embodiment of the present invention, said device also comprises:
Alarm module 609, being used in the judged result when judge module 605 is that current pulse width information P is less than preset lowest numeric signal sampling pulse width information P MinThe time, perhaps when being current pulse width information P, send alarm prompt less than 2 doubling time time width 2/F of reference clock in judged result when judge module 606.
In optional embodiment of the present invention, said device also comprises:
Restart module 610, be used for, trigger again and start measurement module 601 at preset week in a time interval after date.
It is the digital signal recovery device that the embodiment of the invention provides; Behind the certain hour interval, through measuring and calculation process, obtain up-to-date sample frequency again; And carry out digital signal based on up-to-date sample frequency and recover to handle, thereby the self adaptation of realization sample frequency.
The concrete structure sketch map of the digital signal recovery device that the embodiment of the invention provides also can be shown in accompanying drawing 7.
Can find out that from the above the digital signal recovery device that the embodiment of the invention provides through based on a reference clock, is measured the current pulse width information of digital signal to be detected; Based on said current pulse width information, calculate the digital signal samples frequency; Based on said digital signal samples frequency, said digital signal to be detected is recovered to handle.Thereby realize based on the current pulse duration phenomenon of digital signal to be detected, the digital signal samples rate of obtaining in real time, thus avoid occurring dropout appears in digital signal when recovering phenomenon.And, the method that the embodiment of the invention provides, do not change existing signal sampling system in any hardware resource; Through utilizing the existing hardware resource,, finally realize the sample rate self adaptation according to above self-adaptive processing and algorithm; This is not only the sampling request that satisfies the duty ratio distorted signal; Be actually and reduced, strengthened digital signal and recovered ability of processing, reduce the cost that digital signal acquiring is rebuild greatly by the requirement of sampled signal quality.
The above only is an execution mode of the present invention; Should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; Can also make some improvement and retouching, these improvement and retouching also should be regarded as protection scope of the present invention.

Claims (15)

1. a digital signal restoration methods is characterized in that, comprising:
Based on a reference clock, measure the current pulse width information of digital signal to be detected;
Based on said current pulse width information, calculate the digital signal samples frequency;
Based on said digital signal samples frequency, said digital signal to be detected is recovered to handle.
2. method according to claim 1 is characterized in that, the current pulse width information of said measurement digital signal to be detected comprises:
According to the pulse pattern parameter of preset digital signal to be detected, measure the current pulse width information of digital signal to be detected.
3. method according to claim 1 is characterized in that, said method is based on said current pulse width information, comprises before calculating the digital signal samples frequency:
Magnitude relationship between the lowest numeric signal sampling pulse width information of judging said current pulse width information and presetting is obtained first judged result;
When said first judged result when being said current pulse width information more than or equal to said lowest numeric signal sampling pulse width information, get into saidly based on said current pulse width information, calculate the digital signal samples frequency step.
4. method according to claim 3 is characterized in that, when said first judged result when being said current pulse width information less than said lowest numeric signal sampling pulse width information, said method also comprises:
Judge that said current pulse width information whether greater than 2 doubling time time widths of said reference clock, obtains second judged result;
When said second judged result when being said current pulse width information, be the maximum sample frequency that system allows with said digital signal samples frequency configuration less than 2 doubling time time widths of said reference clock;
When said second judged result when being said current pulse width information greater than 2 doubling time time widths of said reference clock; Based on a preset adjustment step-length; Adjust said preset lowest numeric signal sampling pulse width information, reduce said preset lowest numeric signal sampling pulse duration numerical value.
5. method according to claim 4 is characterized in that, said method is based on a preset adjustment step-length, also comprises after adjusting said preset lowest numeric signal sampling pulse width information:
Judge that said current pulse width information whether more than or equal to adjusted lowest numeric signal sampling pulse width information, obtains the 3rd judged result;
When said the 3rd judged result when being said current pulse width information more than or equal to said adjusted lowest numeric signal sampling pulse width information, get into saidly based on said current pulse width information, calculate the digital signal samples frequency step;
When said the 3rd judged result when being said current pulse width information less than said adjusted lowest numeric signal sampling pulse width information; Return saidly, adjust said preset lowest numeric signal sampling pulse width information step based on a preset adjustment step-length.
6. method according to claim 4; It is characterized in that; Said method is when being said current pulse width information when first judged result less than said lowest numeric signal sampling pulse width information; Perhaps when being said current pulse width information when said second judged result, also comprise: send alarm prompt less than 2 doubling time time widths of said reference clock.
7. method according to claim 1 is characterized in that, and is said based on said current pulse width information, calculates the digital signal samples frequency and comprises:
Based on the sampling multiplying power parameter that said current pulse width information and is preset, calculate the digital signal samples frequency.
8. according to each described method of claim 1 to 7, it is characterized in that said method also comprises:
At preset week in a time interval after date, carry out saidly once more based on a reference clock, measure the current pulse width information step of digital signal to be detected.
9. a digital signal recovery device is characterized in that, comprising:
Measurement module is used for based on a reference clock, measures the current pulse width information of digital signal to be detected;
Computing module is used for based on said current pulse width information, calculates the digital signal samples frequency;
Processing module is used for based on said digital signal samples frequency, and said digital signal to be detected is recovered to handle.
10. device according to claim 9 is characterized in that, said device also comprises:
First judge module; Be used to judge the magnitude relationship between current pulse width information that said measurement module obtains and the lowest numeric signal sampling pulse width information of presetting; Obtain first judged result; And when being said current pulse width information, trigger said computing module more than or equal to said lowest numeric signal sampling pulse width information in said first judged result.
11. device according to claim 10 is characterized in that, said device also comprises:
Second judge module; When being used for first judged result when said first judge module and being said current pulse width information less than said lowest numeric signal sampling pulse width information; Judge that said current pulse width information whether greater than 2 doubling time time widths of said reference clock, obtains second judged result;
Module is set, and when being used for second judged result when said second judge module and being said current pulse width information less than 2 doubling time time widths of said reference clock, is the maximum sample frequency that system allows with said digital signal samples frequency configuration;
Adjusting module; When being used for second judged result when said second judge module and being said current pulse width information greater than 2 doubling time time widths of said reference clock; Based on a preset adjustment step-length; Adjust said lowest numeric signal by sampling pulse width information, reduce said preset lowest numeric signal sampling pulse duration numerical value, and after adjustment, trigger said first judge module.
12. device according to claim 11, its characteristic with, said first judge module also is used for: judge that said current pulse width information whether more than or equal to adjusted lowest numeric signal sampling pulse width information, obtains the 3rd judged result;
When said the 3rd judged result when being said current pulse width information more than or equal to said adjusted lowest numeric signal sampling pulse width information, said first judge module triggers said computing module;
When said the 3rd judged result when being said current pulse width information less than said adjusted lowest numeric signal sampling pulse width information, said first judge module triggers said adjusting module.
13. device according to claim 12 is characterized in that, said device also comprises:
Alarm module; Be used in first judged result when being said current pulse width information less than said lowest numeric signal sampling pulse width information when first judge module; Perhaps when being said current pulse width information, send alarm prompt less than 2 doubling time time widths of said reference clock in second judged result when said second judge module.
14. device according to claim 10 is characterized in that, said device also comprises:
Presetting module is used for being provided with in advance the lowest numeric signal by sampling pulse width information.
15., it is characterized in that said device also comprises according to each described device of claim 9 to 14:
Restart module, be used for triggering said measurement module at preset week in a time interval after date.
CN201110159262.9A 2011-06-14 2011-06-14 A kind of digital signal recovery method and device Active CN102832911B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110159262.9A CN102832911B (en) 2011-06-14 2011-06-14 A kind of digital signal recovery method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110159262.9A CN102832911B (en) 2011-06-14 2011-06-14 A kind of digital signal recovery method and device

Publications (2)

Publication Number Publication Date
CN102832911A true CN102832911A (en) 2012-12-19
CN102832911B CN102832911B (en) 2016-11-23

Family

ID=47335906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110159262.9A Active CN102832911B (en) 2011-06-14 2011-06-14 A kind of digital signal recovery method and device

Country Status (1)

Country Link
CN (1) CN102832911B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107112985A (en) * 2014-12-11 2017-08-29 华为技术有限公司 A kind of system and method for detecting dropout
WO2018068508A1 (en) * 2016-10-14 2018-04-19 广州视源电子科技股份有限公司 Method and device for fault diagnosis of blood oxygen probe
CN108234928A (en) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 A kind of display synchronous method and video display terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5327466A (en) * 1991-08-28 1994-07-05 Frank Marinaro 1X asynchronous data sampling clock
JPH1082874A (en) * 1996-09-05 1998-03-31 Seiko Kurotsuku Kk Pulse detecting circuit and radio wave correcting timepiece
CN1771661A (en) * 2003-04-09 2006-05-10 夏普株式会社 Waveform shaping method, waveform shaping device, electronic device, waveform shaping program, and recording medium
CN101272362A (en) * 2008-05-08 2008-09-24 中兴通讯股份有限公司 Recovery method of baseband signal
CN101548167A (en) * 2006-07-14 2009-09-30 Dft微系统公司 Signal integrity measurement systems and methods using a predominantly digital time-base generator

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5327466A (en) * 1991-08-28 1994-07-05 Frank Marinaro 1X asynchronous data sampling clock
JPH1082874A (en) * 1996-09-05 1998-03-31 Seiko Kurotsuku Kk Pulse detecting circuit and radio wave correcting timepiece
CN1771661A (en) * 2003-04-09 2006-05-10 夏普株式会社 Waveform shaping method, waveform shaping device, electronic device, waveform shaping program, and recording medium
CN101548167A (en) * 2006-07-14 2009-09-30 Dft微系统公司 Signal integrity measurement systems and methods using a predominantly digital time-base generator
CN101272362A (en) * 2008-05-08 2008-09-24 中兴通讯股份有限公司 Recovery method of baseband signal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107112985A (en) * 2014-12-11 2017-08-29 华为技术有限公司 A kind of system and method for detecting dropout
CN107112985B (en) * 2014-12-11 2020-04-28 华为技术有限公司 System and method for detecting signal loss
WO2018068508A1 (en) * 2016-10-14 2018-04-19 广州视源电子科技股份有限公司 Method and device for fault diagnosis of blood oxygen probe
CN108234928A (en) * 2016-12-21 2018-06-29 杭州海康威视数字技术股份有限公司 A kind of display synchronous method and video display terminal
CN108234928B (en) * 2016-12-21 2020-05-01 杭州海康威视数字技术股份有限公司 Display synchronization method and video display terminal

Also Published As

Publication number Publication date
CN102832911B (en) 2016-11-23

Similar Documents

Publication Publication Date Title
CN102223264A (en) Alarm processing method and alarm processing system for monitoring system
CN106645780B (en) DSP-based rotating speed detection method and system
WO2011003347A1 (en) Measureing device and measuring method for continuous physical quantity
CN102902879A (en) Synchronous phasor calculation method based on discrete Fourier transform (DFT) recursion of field programmable gate array (FPGA) hardware
CN111769819A (en) A data acquisition method and system with adaptive and adjustable sampling frequency
EP2965458B1 (en) Dithering circuit for sampling serial data transmission
CN103176042A (en) Frequency measurement method and device and frequency meter
CN102832911A (en) Digital signal recovery method and device
CN117388673A (en) ATE equipment and chip testing method thereof, electronic equipment and storage medium
CN104181391A (en) Harmonic detection method of digital power meter
CN110702972B (en) Adaptive sampling method and device for analog signals
CN106645952A (en) Signal phase difference detection method and system
CN102043090A (en) Measurement system for frequency-shift signal parameter of track circuit
CN110187237B (en) Grid synchronization acquisition method and device for real-time detection and adjustment of crystal oscillator output frequency
CN105824051A (en) Pseudo-random correlation identification technology-based electrical prospecting instrument and method thereof
CN103916198B (en) Timing Synchronization evaluated error method of testing and system
CN104656604B (en) A kind of utilization MODBUS communication protocols realize the safety and stability control device of electric network and its method of man-machine interaction
CN103018547A (en) Normalizing multiprocessor electric power metering method
CN103630744B (en) PMU phase-angle detection method and system
CN102141574B (en) Portable turbine dynamic rotating speed measuring device and method
CN115225244A (en) Low-voltage integrated reading electric energy meter clock time setting method, device, main equipment and medium
CN110504758B (en) A Substation Equipment Detection Device Based on Ethernet Physical Layer
CN109412901B (en) Method and system for detecting continuity of acquired data based on time domain processing
CN207817134U (en) A kind of circuit recording network distribution device
CN113884972B (en) Intelligent ammeter remote operation error detection method based on big data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant