Summary of the invention
Embodiments of the invention provide a kind of method and the device of diagnosing cable, can reduce cable diagnostics device power consumption and reduce design difficulty and cost simultaneously.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method diagnosing cable, comprising:
The digital waveform data corresponding according to preset waveform pattern generates waveform signal and is sent to cable to be detected;
Receive the reflected signal that described cable to be detected generates according to described waveform signal, wherein said reflected signal is the superposition of near-end echo that described waveform signal produces in the described cable to be detected reflection wave signal corresponding with described waveform signal;
Described reflected signal is converted to digital reflection signals data;
The numerical data that numerical data corresponding according to the described near-end echo of described preset waveform pattern simulation generation for described digital reflection signals data subduction obtains described reflection wave signal is designated as digital reflection wave signal data;
Detect described digital reflection wave signal data peaks information, wherein said peak information comprises the maximum of the amplitude of described digital reflection wave signal data and minimum and described amplitude in temporal information corresponding to maximum and minimum place;
The present situation of described cable is confirmed according to described peak information.
In the implementation that the first is possible, according to first aspect, the described digital waveform data corresponding according to preset waveform pattern generation waveform signal is sent to cable to be detected and comprises:
Generate digital waveform data according to preset waveform pattern and record the first moment of described digital waveform data generation;
Described digital waveform data be converted to corresponding described waveform signal and be sent to described cable to be detected.
In the implementation that the second is possible, the implementation possible according to the first, detects described digital reflection wave signal data peaks information and comprises:
When detection receives the maximum of the amplitude of described digital reflection wave signal data, the generation very first time records and records the maximum of described amplitude;
Interocclusal record when generating second when detecting and receiving the minimum of the amplitude of described digital reflection wave signal data also records the minimum of described amplitude.
In the implementation that the third is possible, according to described peak information, the implementation possible according to the second, describedly confirms that the present situation of described cable comprises:
When the maximum of described amplitude is greater than the first default amplitude threshold and the minimum of described amplitude is greater than the second default amplitude threshold, determine that described cable to be detected is normal;
Each self-corresponding default amplitude threshold is less than or equal to when having one in the maximum of described amplitude and the minimum of described amplitude at least, and the amplitude direction of described digital reflection wave signal data and the same phase time of described digital waveform data, determine that described cable to be detected is opened a way;
Each self-corresponding default amplitude threshold is less than or equal to when having one in the maximum of described amplitude and the minimum of described amplitude at least, and the amplitude direction of described digital reflection wave signal data and described digital waveform data anti-phase time, determine described cable short circuit to be detected.
In the 4th kind of possible implementation, the implementation possible according to the third, described determine described cable short circuit to be detected after also comprise:
If the absolute value of the maximum of the amplitude of described digital waveform data is greater than the minimizing absolute value of amplitude, then calculate location of short circuit according to described very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of described digital waveform data is less than the minimizing absolute value of amplitude, then according to described second time interocclusal record, fixed delay and propagation velocity calculate location of short circuit.
In the 5th kind of possible implementation, the implementation possible according to the third, described determine described cable to be detected open circuit after also comprise:
If the absolute value of the maximum of the amplitude of described digital waveform data is less than the minimizing absolute value of amplitude, then calculate open-circuit position according to described very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of described digital waveform data is greater than the minimizing absolute value of amplitude, then according to described second time interocclusal record, fixed delay and propagation velocity calculate open-circuit position.
Wherein said fixed delay is described digital waveform data and the propagation time of described reflected signal data in described cable diagnostics device, and described propagation velocity is the speed that described waveform signal is propagated in described cable to be detected.
Second aspect, provides a kind of cable diagnostics device, comprising:
Control processor, is sent to transmitter and echo gecerator for preset waveform pattern by described preset waveform pattern;
Described transmitter, is sent to cable to be detected for receiving the preset waveform pattern of described control processor and generating waveform signal according to digital waveform data corresponding to described preset waveform pattern;
Receiver, for receiving the reflected signal that described cable to be detected generates according to described waveform signal, wherein said reflected signal is the superposition of near-end echo that described waveform signal produces in the described cable to be detected reflection wave signal corresponding with described waveform signal;
Receiver, also delivers to data processor for described reflected signal is converted to digital reflection signals Data Concurrent;
Data processor, the numerical data obtaining described reflection wave signal for the numerical data that the described digital reflection signals data subduction sent by described receiver is corresponding according to the described near-end echo of described waveform pattern simulation generation is designated as digital reflection wave signal data, wherein said echo gecerator, for receiving described preset waveform pattern that described control processor sends and numerical data corresponding to the described near-end echo generated according to the simulation of described preset waveform pattern;
Detection machine, for detecting described digital reflection wave signal data peaks information that described data processor sends and described peak information being sent to control processor, wherein said peak information comprises the maximum of the amplitude of described digital reflection wave signal data and minimum and described amplitude in temporal information corresponding to maximum and minimum place;
Control processor, confirms the present situation of described cable according to the described peak information of described detection machine transmission.
In the implementation that the first is possible, according to first aspect, described transmitter also comprises:
Pulse generator, for generating described digital waveform data according to preset waveform pattern and described digital waveform data being sent to digital-to-analogue conversion transmitter;
Described digital-to-analogue conversion transmitter, the described digital waveform data for being sent by described pulse generator is converted to corresponding described waveform signal and is sent to described cable to be detected;
Wherein, the detection machine of described cable diagnostics device also comprises timer, the first moment that described timer generates for recording described digital waveform data.
In the implementation that the second is possible, the implementation possible according to the first, described detection machine comprises:
Peak detector, the maximum of described amplitude is sent to control processor by the amplitude for detecting the described digital reflection wave signal data received also records described amplitude maximum when detecting and receiving the maximum of the amplitude of described digital reflection wave signal data, and is sent to described control processor by described timer generation very first time record;
Peak detector, also for detecting the amplitude of the described digital reflection wave signal data received and the minimum of described amplitude is sent to control processor by the minimum recording described amplitude when detection receives the minimum of the amplitude of described digital reflection wave signal data, and when generating second by described timer, interocclusal record is sent to described control processor.
In the implementation that the third is possible, the implementation possible according to the second,
Described control processor specifically for, the minimum of amplitude described in the maximum value receiving the described amplitude that described peak detector sends, and the described very first time record that sends of described timer and described second time interocclusal record, when the maximum of described amplitude is greater than the first default amplitude threshold and the minimum of described amplitude is greater than the second default amplitude threshold, determine that described cable to be detected is normal;
Or when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of described amplitude and the minimum of described amplitude, and the amplitude direction of described digital reflection wave signal data and the same phase time of described digital waveform data, determine that described cable to be detected is opened a way;
Or when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of described amplitude and the minimum of described amplitude, and the amplitude direction of described digital reflection wave signal data and described digital waveform data anti-phase time, determine described cable short circuit to be detected.
In the 4th kind of possible implementation, the implementation possible according to the third,
If described control treatment implement body is also greater than the minimizing absolute value of amplitude for the absolute value of the maximum of the amplitude of described digital waveform data, then calculate location of short circuit according to described very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of described digital waveform data is less than the minimizing absolute value of amplitude, then according to described second time interocclusal record, fixed delay and propagation velocity calculate location of short circuit.
In the 5th kind of possible implementation, the implementation possible according to the third, if described control treatment implement body is also less than the minimizing absolute value of amplitude for the absolute value of the maximum of the amplitude of described digital waveform data, then calculate open-circuit position according to described very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of described digital waveform data is greater than the minimizing absolute value of amplitude, then according to described second time interocclusal record, fixed delay and propagation velocity calculate open-circuit position.
Wherein said fixed delay is described digital waveform data and the propagation time of described reflected signal data in described cable diagnostics device, and described propagation velocity is the speed that described waveform signal is propagated in described cable to be detected.
The method of the diagnosis cable that embodiments of the invention provide and device, adopt the method for Digital Signal Processing that the reflected signal generated by preset waveform pattern subduction near-end echo is obtained reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments of the invention disclose a kind of method diagnosing cable, and as shown in Figure 1, the method comprises the steps:
101, the waveform signal of generation is sent to cable to be detected by cable diagnostics device.
102, the reflected signal that cable to be detected generates according to waveform signal is received.
Wherein, reflected signal is the superposed signal of near-end echo that waveform signal produces in the cable to be detected reflection wave signal corresponding with waveform signal.
103, this reflected signal is converted to digital reflection signals data, and deducts the numerical data that the numerical data corresponding according to the near-end echo of preset waveform pattern simulation generation obtains reflection wave signal.
104, the peak information of digital reflection wave signal is detected.
Wherein, peak information comprises the maximum of the amplitude of digital reflection wave signal data and minimum and amplitude in temporal information corresponding to maximum and minimum place.
105, the present situation of cable is confirmed according to peak information.
The method of the diagnosis cable that the present embodiment provides, adopt the method for Digital Signal Processing that the reflected signal generated by preset waveform pattern subduction near-end echo is obtained reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
Embodiments of the invention specifically describe the method that embodiment one diagnoses cable, and (be specifically as the criterion with specification) as shown in Figure 2, the method comprises the steps:
201, the waveform signal of generation is sent to cable to be detected by cable diagnostics device.
202, the reflected signal that cable to be detected generates according to waveform signal is received.
Wherein, reflected signal is the superposed signal of near-end echo that waveform signal produces in the cable to be detected reflection wave signal corresponding with waveform signal.
203, reflected signal is converted to digital reflection signals data, and deducts the numerical data that the numerical data corresponding according to the near-end echo of preset waveform pattern simulation generation obtains reflection wave signal.
204, the peak information of digital reflection wave signal is detected.
Wherein, peak information comprises the maximum of the amplitude of digital reflection wave signal data and minimum and amplitude in temporal information corresponding to maximum and minimum place.
Wherein 204 specifically comprise:
204a, generate the very first time when detecting the maximum of the amplitude of digital reflection wave signal data received and record and record the maximum of amplitude.
204b, interocclusal record record the minimum of amplitude when generating second when detecting the minimum of the amplitude of digital reflection wave signal data received.
205a, when the maximum of amplitude is greater than the first default amplitude threshold and the minimum of amplitude is greater than the second default amplitude threshold, determine that cable to be detected is normal.
205b, when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of amplitude and the minimum of amplitude, and the amplitude direction of digital reflection wave signal data and the same phase time of digital waveform data, determine cable open circuit to be detected.
205c, when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of amplitude and the minimum of amplitude, and the amplitude direction of digital reflection wave signal data and digital waveform data anti-phase time, determine cable short circuit to be detected.
If the absolute value of the maximum of the amplitude of 206a digital waveform data is less than the minimizing absolute value of amplitude, then calculate open-circuit position according to very first time record, fixed delay and propagation velocity; If the absolute value of the maximum of the amplitude of digital waveform data is greater than the minimizing absolute value of amplitude, then according to second time interocclusal record, fixed delay and propagation velocity calculate open-circuit position.
If the absolute value of the maximum of the amplitude of 206b digital waveform data is greater than the minimizing absolute value of amplitude, then calculate location of short circuit according to very first time record, fixed delay and propagation velocity; If the absolute value of the maximum of the amplitude of digital waveform data is less than the minimizing absolute value of amplitude, then according to second time interocclusal record, fixed delay and propagation velocity calculate location of short circuit.
Wherein fixed delay is the propagation time in digital waveform data and reflected signal online data cable diagnostic device, and propagation velocity is the speed that waveform signal is propagated in cable to be detected.
The method of the diagnosis cable that the present embodiment provides, adopt the method for Digital Signal Processing that the reflected signal generated by preset waveform pattern subduction near-end echo is obtained reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
Embodiments of the invention disclose a kind of cable diagnostics device 3, as shown in Figure 3, comprising: control processor 31, echo gecerator 32, transmitter 33, receiver 34, data processor 35 and detection machine 36, wherein:
Control processor 31, is sent to transmitter 33 and echo gecerator 32 for preset waveform pattern by preset waveform pattern.
Transmitter 33, is sent to cable to be detected for receiving the preset waveform pattern of control processor 31 and generating waveform signal according to digital waveform data corresponding to preset waveform pattern.
Receiver 34, for receiving the reflected signal that cable to be detected generates according to waveform signal, wherein reflected signal is the superposition of near-end echo that waveform signal produces in the cable to be detected reflection wave signal corresponding with waveform signal.
Receiver 34, also delivers to data processor 35 for reflected signal being converted to digital reflection signals Data Concurrent.
Data processor 35, the numerical data obtaining reflection wave signal for the numerical data that the digital reflection signals data subduction sent by receiver 34 is corresponding according to the near-end echo of waveform pattern simulation generation is designated as digital reflection wave signal data, wherein echo gecerator 32, for receiving the preset waveform pattern that control processor 31 sends and numerical data corresponding to near-end echo generated according to the simulation of preset waveform pattern.
Detection machine 36, for detecting digital reflection wave signal data peaks information that data processor 35 sends and this peak information being sent to control processor 31, peak information wherein comprises the maximum of the amplitude of digital reflection wave signal data and minimum and amplitude in temporal information corresponding to maximum and minimum place.
Control processor 31, according to the present situation detecting the peak information confirmation cable that machine 36 sends.
The cable diagnostics device that the present embodiment provides, adopt the method for Digital Signal Processing that the reflected signal generated by preset waveform pattern subduction near-end echo is obtained reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
Embodiments of the invention specifically describe a kind of cable diagnostics device, as shown in Figure 4, comprising: control processor 31, echo gecerator 32, transmitter 33, receiver 34, data processor 35 and detection machine 36, wherein:
Control processor 31, is sent to transmitter 33 and echo gecerator 32 for preset waveform pattern by described preset waveform pattern.
Transmitter 33, is sent to cable to be detected for receiving the preset waveform pattern of control processor 31 and generating waveform signal according to digital waveform data corresponding to preset waveform pattern.
Concrete, transmitter 33 also comprises: pulse generator 331 and digital-to-analogue conversion transmitter 332, wherein
Pulse generator 331, for generating digital waveform data according to preset waveform pattern and digital waveform data being sent to digital-to-analogue conversion transmitter 332;
Described digital-to-analogue conversion transmitter 332, the described digital waveform data for being sent by described pulse generator 331 is converted to corresponding described waveform signal and is sent to described cable to be detected.
Receiver 34, for receiving the reflected signal that cable to be detected generates according to waveform signal, wherein reflected signal is the superposition of near-end echo that waveform signal produces in the cable to be detected reflection wave signal corresponding with waveform signal.
Receiver 34, also delivers to data processor 35 for reflected signal being converted to digital reflection signals Data Concurrent.
Data processor 35, the numerical data obtaining reflection wave signal for the numerical data that the digital reflection signals data subduction sent by receiver 34 is corresponding according to the near-end echo of waveform pattern simulation generation is designated as digital reflection wave signal data, wherein echo gecerator 32, for receiving the preset waveform pattern that control processor 31 sends and numerical data corresponding to near-end echo generated according to the simulation of this preset waveform pattern.
Detection machine 36, for detecting digital reflection wave signal data peaks information that data processor 35 sends and peak information being sent to control processor 31, peak information wherein comprises the maximum of the amplitude of digital reflection wave signal data and minimum and amplitude in temporal information corresponding to maximum and minimum place.
Concrete, detection machine 36 also comprises: peak detector 361 and timer 362, wherein:
Peak detector 361, for detect the digital reflection wave signal data received amplitude and when the maximum of amplitude of the digital reflection wave signal data received being detected the maximum of record amplitude the maximum of amplitude is sent to control processor 31, and generate the very first time by timer 362 and record and be sent to control processor 31;
Peak detector 361, also for detect the digital reflection wave signal data received amplitude and when the minimum of the amplitude receiving digital reflection wave signal data being detected the minimum of record amplitude the minimum of amplitude is sent to control processor 31, and when generating second by timer 362, interocclusal record is sent to control processor 31.
Timer 362, the first moment that the digital waveform data also sent for recording impulse generator 331 generates.
Control processor 31, according to the present situation detecting the peak information confirmation cable that machine 36 sends.
Concrete, control processor 31 specifically for, receive the minimum of the maximum value amplitude of the amplitude that peak detector 361 sends, and timer 362 send the very first time record and second time interocclusal record, when the maximum of amplitude is greater than the first default amplitude threshold and the minimum of amplitude is greater than the second default amplitude threshold, determine that cable to be detected is normal;
Or, when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of amplitude and the minimum of amplitude, and the amplitude direction of digital reflection wave signal data and the same phase time of digital waveform data, determine cable open circuit to be detected;
Or, when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum of amplitude and the minimum of described amplitude, and the amplitude direction of described digital reflection wave signal data and digital waveform data anti-phase time, determine cable short circuit to be detected.
Further, optionally, if the concrete minimizing absolute value being also greater than amplitude for the absolute value of the maximum of the amplitude of digital waveform data of control processor 31, then location of short circuit is calculated according to very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of digital waveform data is less than the minimizing absolute value of amplitude, then according to second time interocclusal record, fixed delay and propagation velocity calculate location of short circuit.
Optionally, if the concrete minimizing absolute value being also less than amplitude for the absolute value of the maximum of the amplitude of digital waveform data of control processor 31, then open-circuit position is calculated according to very first time record, fixed delay and propagation velocity;
If the absolute value of the maximum of the amplitude of digital waveform data is greater than the minimizing absolute value of amplitude, then according to second time interocclusal record, fixed delay and propagation velocity calculate open-circuit position.
Wherein fixed delay is the propagation time in digital waveform data and reflected signal online data cable diagnostic device, and described propagation velocity is the speed that waveform signal is propagated in cable to be detected.
The cable diagnostics device that the present embodiment provides, adopt the method for Digital Signal Processing that the reflected signal generated by preset waveform pattern subduction near-end echo is obtained reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
(wherein the party's wave amplitude direction is for forward for square wave for the waveform signal sent with transmitter 33, namely the amplitude of wave trough position is 0, the amplitude of crest location is positive number) be specifically described, wherein square-wave waveform is as shown in Figure 5, first control processor 31, preset square-wave waveform pattern is sent to pulse generator 331, square-wave waveform data are converted to corresponding square-wave signal through digital to analog converter 332 and are sent to cable to be detected by pulse generator 331, simultaneously when pulse generator 331 is by square-wave waveform schema creation square-wave waveform data, timer 362 generates the first moment t0 at the moment.Reflected signal can be produced according to current cable situation in short circuit or open circuit place after cable reception to be detected to square-wave signal, and import in receiver 34.And the superposition of the reflected signal that receiver 34 the receives reflection wave signal that to be near-end echo that square-wave signal produces in cable to be detected corresponding with square-wave signal.Now, the signal after this superposition is converted to digital signal by receiver 34, and is sent to data processor 35 and carries out subtracting computing, deducts the square-wave signal of transmission, just obtain pure reflection wave signal with the signal after superposition.
This reflection wave signal detects maximum X1 and the minimum X2 of reflected waveform data amplitude through peak detector 361.While maximum reflected waveform data amplitude being detected, timer 362 generates very first time record t1, and interocclusal record t2 when timer 362 generates second while minimum X2 reflected waveform data being detected.
Finally, the timer 362 of the amplitude maximum X1 that sends according to peak detector 361 of control processor 31 and peak value minimum X2 and correspondence generate very first time record t1 and second time interocclusal record t2 confirm the present situation of cable.
Wherein, when the maximum X1 of amplitude is greater than the first default amplitude threshold A1 and the minimum X2 of amplitude is greater than the second default amplitude threshold A2, determine that detected cable is normal; The amplitude of normally loaded signal is generally greater than the amplitude of detection waveform (waveform signal).
Or when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum X1 of amplitude and the minimum X2 of amplitude, and the absolute value of the maximum of amplitude | X1| is less than the minimizing absolute value of amplitude | during X2|, the crest of reflected waveform data be on the occasion of, trough is 0, determine cable short circuit to be detected, and calculate location of short circuit according to very first time record t1, fixed delay Δ t and propagation velocity v; For the reflection wave signal that the square-wave waveform shown in Fig. 5 is corresponding,
The computing formula of the line length of location of short circuit is: L1=(t1-Δ t) * v/2;
Or when having at least one to be less than or equal to each self-corresponding default amplitude threshold in the maximum X1 of amplitude and the minimum X2 of amplitude, and the absolute value of the maximum of amplitude | X1| is greater than the minimizing absolute value of amplitude | during X2|, the crest of reflected waveform data is 0, trough is negative value, determine cable to be detected open circuit, and according to second time interocclusal record t 2 and fixed delay Δ t and propagation velocity v calculate open-circuit position; For the reflection wave signal that the square-wave waveform shown in Fig. 5 is corresponding,
The computing formula of the line length of open-circuit position is L2=(t2-Δ t) * v/2;
Wherein fixed delay is the propagation time in digital waveform data and reflected signal online data cable diagnostic device, and propagation velocity is the speed that waveform signal is propagated in cable to be detected, and therefore fixed delay is the constant relevant with cable diagnostics device.
The cable diagnostics device that the present embodiment provides, adopt the method for Digital Signal Processing that the reflected signal by preset square-wave waveform schema creation is reduced near-end echo and obtain reflection wave signal, the situation of cable is judged again according to the reflection wave signal obtained, compare and adopt the mode of analog to save partial simulation circuit member cable diagnostics device can be made to reduce power consumption, reduce design difficulty and cost simultaneously.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.