A method, device, equipment and storage medium for detecting the length of a cable

By obtaining the initial impedance spectrum of the cable and adjusting the excitation signal, the problem of low cable length measurement accuracy is solved, and higher detection accuracy and accuracy are achieved.

CN119268535BActive Publication Date: 2025-08-05YANGZHOU POWER SUPPLY BRANCH OF STATE GRID JIANGSU ELECTRIC POWER CO LTD +3
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411651963.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-08-05
Estimated Expiration
2044-11-19

AI Technical Summary

Technical Problem

The existing cable length measurement accuracy is not high, resulting in inaccurate fault positioning, increasing maintenance time and cost, and may even cause power outages.

Method used

By inputting the initial excitation signal to the cable to be detected, the initial impedance spectrum diagram is obtained, the initial cable length and its range is determined, and the target excitation signal is adjusted according to the difference, the target length of the cable is finally determined to ensure detection accuracy.

Benefits of technology

Improve the accuracy and accuracy of cable length detection, ensure that the difference between the target cable length and the target cable length range is within the preset error threshold, and reduce the error in fault positioning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119268535B_ABST
    Figure CN119268535B_ABST
Patent Text Reader

Abstract

The present invention discloses a cable length detection method, device, equipment and storage medium. The method comprises: inputting an initial excitation signal into a cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; the impedance spectrum diagram represents the relationship between the impedance of the cable to be detected at different frequencies; determining an initial cable length and an initial cable length range according to the initial impedance spectrum diagram; the initial cable length range includes a first boundary cable length and a second boundary cable length; determining the difference between the initial cable length and the first boundary cable length and the second boundary cable length respectively to obtain a first difference and a second difference; determining a target excitation signal based on the first difference and / or the second difference to determine a target cable length of the cable to be detected based on the target excitation signal; ensuring that the difference between the target cable length and the target cable length range is within a preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cable detection, and in particular to a method, device, equipment and storage medium for detecting cable length. Background Art

[0002] In recent years, safety and environmental concerns surrounding overhead power lines have led to the widespread deployment of power cables. Compared to overhead lines, cables offer advantages such as smaller footprint, higher power supply reliability, and larger transmission capacity. However, as cable installations and years of operation increase, cable failure and aging have become key concerns. During actual operation, thermal effects, moisture, sheath damage, and manufacturing process issues can all cause cable aging, leading to failures. However, since most cables are laid underground, once a failure occurs, the fault point cannot be quickly and accurately located, increasing repair time and costs, and may even cause power outages and significant economic losses. Therefore, monitoring and diagnosing the operating status of cables to ensure safe and stable operation is crucial.

[0003] The accuracy of cable fault location depends on the accuracy of total cable length measurement. If fault location is not accurate enough, it may lead to increased difficulty and time-consuming on-site construction. Therefore, the accuracy of cable length measurement is particularly important. However, existing cable length measurement methods are mostly based on field experience, which often results in low cable length detection accuracy. Summary of the Invention

[0004] The present invention provides a method, device, equipment and storage medium for detecting cable length, so as to solve the problem of low measurement accuracy of cable length in the prior art.

[0005] In a first aspect, an embodiment of the present invention provides a method for detecting cable length, comprising:

[0006] Inputting an initial excitation signal to the cable to be tested to obtain an initial impedance spectrum of the cable to be tested; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be tested to the initial excitation signal, and the impedance spectrum represents the relationship between the impedance of the cable to be tested at different frequencies;

[0007] Determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length;

[0008] Determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference;

[0009] A target excitation signal is determined based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be inspected based on the target excitation signal.

[0010] Optionally, determining the initial cable length and the initial cable length range according to the initial impedance spectrum graph includes:

[0011] determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum;

[0012] The initial cable length range is determined based on a frequency interval between adjacent acquisition points in the initial impedance spectrum and a frequency difference between adjacent peaks in the initial impedance spectrum; wherein the frequency interval between adjacent acquisition points is determined by a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum.

[0013] Optionally, determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum graph includes:

[0014] determining a frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph;

[0015] The initial cable length is determined based on a frequency difference between adjacent peaks in the initial impedance spectrum, a speed of light, and a speed factor.

[0016] Optionally, determining the frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph includes:

[0017] determining frequency differences between two adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of first frequency differences;

[0018] Determine the average of the plurality of first frequency differences as the frequency difference between adjacent peaks in the initial impedance spectrum; or,

[0019] determining frequency differences between any two non-adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of second frequency differences;

[0020] determining a third frequency difference based on the second frequency difference and the number of peaks in the intervals between non-adjacent peaks;

[0021] An average of the plurality of third frequency differences is determined as a frequency difference between adjacent peaks in the initial impedance spectrum.

[0022] Optionally, determining the initial cable length range based on a frequency interval between adjacent acquisition points in the initial impedance spectrum graph and a frequency difference between adjacent peaks in the initial impedance spectrum graph includes:

[0023] Determining a frequency interval between adjacent acquisition points in the initial impedance spectrum graph based on a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum graph;

[0024] The first boundary cable length and the second boundary cable length are determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor to obtain an initial cable length range.

[0025] Optionally, determining a target excitation signal based on the first difference and / or the second difference includes:

[0026] If the first difference and / or the second difference is greater than a preset error threshold, determining a target frequency interval between adjacent acquisition points based on the initial cable length, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and a speed factor;

[0027] A target excitation signal is determined based on a target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum.

[0028] Optionally, determining a target cable length of the cable to be detected based on the target excitation signal includes:

[0029] Inputting the target initial excitation signal to the cable to be tested to obtain a target impedance spectrum of the cable to be tested; wherein the number of acquisition points between adjacent peaks in the target impedance spectrum is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum;

[0030] The target cable length of the cable to be tested is determined based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and the speed factor.

[0031] In a second aspect, a device for detecting cable length is provided, comprising:

[0032] An acquisition module is configured to input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum of the cable to be detected; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be detected to the initial excitation signal, and the impedance spectrum represents a relationship between the impedance of the cable to be detected at different frequencies;

[0033] A first determining module is configured to determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length;

[0034] A second determining module is configured to determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference;

[0035] The third determining module is configured to determine a target excitation signal based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be detected based on the target excitation signal.

[0036] According to a third aspect, an electronic device is provided, comprising:

[0037] at least one processor; and

[0038] a memory communicatively connected to the at least one processor; wherein,

[0039] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can perform the cable length detection method according to any embodiment of the present invention.

[0040] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cable length detection method described in any embodiment of the present invention when executed.

[0041] The technical solution of the embodiment of the present invention is to obtain an initial impedance spectrum diagram of the cable to be detected by inputting an initial excitation signal into the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting the response signal of the cable to be detected to the initial excitation signal, and the impedance spectrum diagram represents the relationship between the impedance of the cable to be detected at different frequencies; determine the initial cable length and the initial cable length range according to the initial impedance spectrum diagram; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length; determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length respectively, and obtain a first difference and a second difference; based on the The first difference and / or the second difference determine a target excitation signal to determine the target cable length of the cable to be detected based on the target excitation signal, which solves the problem of low cable length detection accuracy in the prior art. The initial cable length and the initial cable length range are determined by the initial excitation signal. When the difference between the initial cable length and the initial cable length range exceeds a preset error threshold, a new target excitation signal is determined, and then a new impedance spectrum spectrum diagram is obtained based on the target excitation signal. The target cable length is determined by calculation through the new impedance spectrum spectrum diagram, which ensures that the difference between the target cable length and the target cable length range is within the preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0042] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flowchart of a method for detecting cable length provided in Example 1 of the present invention;

[0045] Figure 2 A flowchart of a cable length detection method provided in the second embodiment of the present invention;

[0046] Figure 3 An initial impedance spectrum diagram provided by the second embodiment of the present invention;

[0047] Figure 4 A target impedance spectrum diagram provided in the second embodiment of the present invention;

[0048] Figure 5 A schematic diagram of a wave peak located between adjacent collection points provided in the second embodiment of the present invention;

[0049] Figure 6 A schematic structural diagram of a cable length detection device provided in a third embodiment of the present invention;

[0050] Figure 7 A schematic structural diagram of an electronic device that can be used to implement an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of the present invention.

[0052] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] Example 1

[0054] Figure 1 This is a flow chart of a cable length detection method provided in the first embodiment of the present invention. This embodiment is applicable to the case of cable length detection. The method can be executed by a cable length detection device. The cable length detection device can be implemented in the form of hardware and / or software. The cable length detection device can be configured in an electronic device. Figure 1 As shown, the method includes:

[0055] S110. Input an initial excitation signal to the cable to be tested to obtain an initial impedance spectrum of the cable to be tested; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be tested to the initial excitation signal, and the impedance spectrum represents a relationship between the impedance of the cable to be tested at different frequencies.

[0056] The cable to be tested may refer to a cable whose length needs to be tested, specifically a cable whose length needs to be tested due to a cable fault. The initial excitation signal may refer to an input signal set within an initial frequency range, and the frequency range generally changes gradually from low frequency to high frequency. For example, the initial frequency range of the excitation signal may be set to 1-100MHz. Specifically, the excitation signal may be generated by a signal generator, and a corresponding response signal may be obtained by inputting the cable to be tested. The amplitude and phase of the excitation signal and the response signal at each frequency point may be manually recorded or automatically collected. In addition, in order to improve the reliability of the data, multiple measurements may be performed at each frequency point, and the average value may be taken as the measurement result at that frequency point. The impedance spectrum diagram may refer to a graph plotting the impedance values of the cable to be tested at different frequencies, which may clearly show the impedance characteristics of the cable to be tested at different frequencies. The initial impedance spectrum diagram may refer to an impedance spectrum diagram at different frequencies within the initial frequency range.

[0057] Specifically, the cable to be detected can be determined based on whether a cable fault occurs. An initial excitation signal with a frequency gradually changing from low frequency to high frequency within an initial frequency range is generated by a signal generator and input into the cable to be detected to obtain a response signal corresponding to the initial frequency range. Based on the amplitude and phase of the collected excitation signal and response signal at each frequency point, the impedance value of the cable to be detected at each frequency point can be calculated. The impedance values of the cable to be detected at different frequencies are plotted into a graph to obtain an initial impedance spectrum of the cable to be detected.

[0058] In this embodiment, an excitation signal having a frequency within an initial frequency range is input to the cable to be detected, and the impedance value of the cable to be detected at each frequency point collected within the initial frequency range is determined to obtain an initial impedance spectrum of the cable to be detected within the initial frequency range, thereby providing important data for the subsequent calculation of the initial cable length.

[0059] S120. Determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length.

[0060] Among them, the initial cable length may refer to the cable length of the cable to be tested determined based on the initial impedance spectrum diagram; the initial cable length range may refer to the cable length range of the cable to be tested determined based on the initial impedance spectrum diagram; the first boundary cable length may refer to the shortest length value of the initial cable length, and the second boundary cable length may refer to the longest length value of the initial cable length; the initial cable length is between the first boundary cable length and the second boundary cable length.

[0061] Specifically, the initial cable length can be determined based on the frequency difference between any two adjacent peaks in the initial impedance spectrum; the cable length range of the cable to be tested can be determined based on the frequency difference between any two adjacent peaks in the initial impedance spectrum and the frequency interval between adjacent acquisition points in the initial impedance spectrum, wherein the frequency interval between adjacent acquisition points can refer to the frequency interval between any two adjacent acquisition points determined within the initial frequency range based on a preset number of acquisition points; for example, it can be assumed that the amplitude and phase of the excitation signal and the response signal are acquired once or multiple times at every interval of M (M>0) Hz.

[0062] In this embodiment, the initial cable length can be determined based on the frequency difference between any two adjacent peaks in the initial impedance spectrum graph; the cable length range of the cable to be tested is determined based on the frequency difference between any two adjacent peaks in the initial impedance spectrum graph and the frequency interval between adjacent acquisition points in the initial impedance spectrum graph, and the initial cable length is between the first boundary cable length and the second boundary cable length in the cable length range.

[0063] S130: Determine the differences between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference.

[0064] The first difference may refer to a difference between an initial cable length and a first boundary cable length; and the second difference may refer to a difference between an initial cable length and a second boundary cable length.

[0065] In this embodiment, the initial cable length may be subtracted from the first boundary cable length and the second boundary cable length to obtain a first difference value and a second difference value.

[0066] S140: Determine a target excitation signal based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be detected based on the target excitation signal.

[0067] Among them, the target excitation signal may refer to an input signal set within a target frequency range, the target frequency range is smaller than the initial frequency range, and the target frequency range gradually changes from low frequency to high frequency. Specifically, the target frequency range may be determined based on the first difference and / or the second difference. The target excitation signal may be input into the cable to be detected to obtain a response signal corresponding to the target frequency range. Based on the amplitude and phase of the excitation signal and the response signal collected at each frequency point within the target frequency range, the impedance value of the cable to be detected at each frequency point within the target frequency range may be calculated, and the impedance values of the cable to be detected at different frequencies within the target frequency range may be plotted into a graph to obtain an impedance spectrum diagram of the cable to be detected within the target frequency range. The target cable length may refer to a cable length that meets the accuracy requirements and is determined based on the impedance spectrum diagram within the target frequency range. The accuracy requirement may refer to the difference between the target cable length and the target cable length range being within a preset error threshold.

[0068] Specifically, a target excitation signal within the target frequency range can be determined based on the first difference and / or the second difference, and an impedance spectrum diagram of the cable to be tested within the target frequency range can be obtained based on the target excitation signal. The target cable length can be determined based on the frequency difference between any two adjacent peaks in the impedance spectrum diagram within the target frequency range.

[0069] In this embodiment, an initial excitation signal is input to the cable to be detected to obtain an initial impedance spectrum of the cable to be detected; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be detected to the initial excitation signal, and the impedance spectrum represents the relationship between the impedance of the cable to be detected at different frequencies; the initial cable length and the initial cable length range are determined based on the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length; the difference between the initial cable length and the first boundary cable length and the second boundary cable length is determined, respectively, to obtain a first difference and a second difference; based on the first difference The target excitation signal is determined based on the initial excitation signal and / or the second difference, so as to determine the target cable length of the cable to be detected based on the target excitation signal, thereby solving the problem of low detection accuracy of the cable length in the prior art. The initial cable length and the initial cable length range are determined by the initial excitation signal. When the difference between the initial cable length and the initial cable length range exceeds a preset error threshold, a new target excitation signal can be determined, and then a new impedance spectrum diagram is obtained based on the target excitation signal. The target cable length is determined by the new impedance spectrum diagram, thereby ensuring that the difference between the target cable length and the target cable length range is within the preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0070] Optionally, determining the initial cable length and the initial cable length range according to the initial impedance spectrum graph includes:

[0071] determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum;

[0072] The peak may refer to the maximum impedance value that satisfies the peak determination condition. Specifically, the peak may be obtained by a peak determination algorithm, which includes:

[0073] 1. An array A with a set value can be defined. Specifically, the set value can be a positive odd number, such as 13. The entire impedance spectrum is traversed starting from the first point of the initial impedance spectrum (i.e., the acquisition point corresponding to the initial lowest frequency of the excitation signal).

[0074] 2. Starting from the first point of the initial impedance spectrum, obtain the impedance value corresponding to the frequency of each acquisition point in turn and fill it into array A. If the set size of array A is 13, when array A is filled, you can determine whether these 13 numbers contain a peak based on the peak judgment condition.

[0075] Where A[N] is the impedance value corresponding to the Nth point of the initial impedance spectrum, N is a positive integer, and the peak judgment condition can be:

[0076] (1)A[5] is greater than A[0], A[1], A[2], A

[10] , A

[11] , and A

[12] at the same time.

[0077] (2)A[6] is greater than A[0], A[1], A[2], A

[10] , A

[11] , and A

[12] at the same time.

[0078] (3) A[7] is greater than A[0], A[1], A[2], A

[10] , A

[11] , and A

[12] at the same time.

[0079] (4) In order to prevent spectrum fluctuations, A[3], A[4], A[8], and A[9] are not included in the calculation.

[0080] If all of the above four conditions are met, the point corresponding to the maximum impedance value is determined from A[5], A[6], and A[7] as the peak, and the frequency corresponding to the peak is recorded and saved.

[0081] If any of the above peak judgment conditions is not met, it can be determined that array A does not contain a peak, then A[0] can be discarded, and the next data can be traversed, and the new traversed data can be written into A

[12] , that is, all the data in array A can be moved forward to obtain a new array A, and then it can be judged again based on the peak judgment condition whether the new array A contains a peak.

[0082] 3. If the number of peaks determined from the initial impedance spectrum reaches a set number, the traversal can be stopped, where the set number is a positive integer of at least 2.

[0083] Specifically, after obtaining a set number of peaks, the frequency difference between any two adjacent peaks can be determined according to the stored frequencies corresponding to the peaks, and then the initial cable length can be determined based on the frequency difference between the adjacent peaks.

[0084] The initial cable length range is determined based on a frequency interval between adjacent acquisition points in the initial impedance spectrum and a frequency difference between adjacent peaks in the initial impedance spectrum; wherein the frequency interval between adjacent acquisition points is determined by a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum.

[0085] Specifically, the frequency interval between adjacent acquisition points in the initial impedance spectrum can be calculated by dividing the frequency range of the initial excitation signal by the number of acquisition points in the initial impedance spectrum to obtain the frequency interval between any two adjacent acquisition points. The first boundary cable length and the second boundary cable length are determined based on the calculated frequency interval between adjacent acquisition points in the initial impedance spectrum and the frequency difference between any two adjacent peaks in the initial impedance spectrum.

[0086] In this embodiment, a set number of peaks can be determined from the initial impedance spectrum diagram, and the initial cable length can be determined based on the frequency difference between any two adjacent peaks; the first boundary cable length and the second boundary cable length can be determined based on the frequency difference between any two adjacent peaks and the calculated frequency interval between adjacent acquisition points in the initial impedance spectrum diagram, which facilitates the subsequent judgment of the cable length accuracy.

[0087] Optionally, determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum graph includes:

[0088] determining a frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph;

[0089] The set number may refer to a preset number of peaks determined from the initial impedance spectrum. Specifically, when the number of peaks determined from the initial impedance spectrum reaches the set number, further peak determination from the initial impedance spectrum may be stopped. This means that the initial cable length can be determined without obtaining the frequencies corresponding to all peaks in the initial impedance spectrum, effectively saving cable length measurement time.

[0090] For example, assuming that the number is set to 4, 4 peak waves can be determined from the initial impedance spectrum diagram according to the peak determination algorithm and the frequency corresponding to each peak wave can be saved; based on the frequency corresponding to each peak wave, the frequency difference between any two adjacent peak waves can be determined, for example, the frequency difference between adjacent peak waves can be the frequency difference between peak wave 1 and peak wave 2, or the frequency difference between peak wave 2 and peak wave 3, or the frequency difference between peak wave 3 and peak wave 4.

[0091] The initial cable length is determined based on a frequency difference between any two adjacent peaks in the initial impedance spectrum, the speed of light, and a speed factor.

[0092] The speed of light refers to the propagation speed of light or electromagnetic waves in a vacuum or medium, typically set at 300,000 km / s. The velocity factor is the ratio of the signal propagation speed in the cable under test to the speed of light in a vacuum. This factor is typically determined by field testers and input into the test system based on the material properties of the cable under test.

[0093] Specifically, the initial cable length can be determined by the following formula:

[0094]

[0095] Where l is the initial cable length, f1 is the frequency corresponding to a peak point in the initial impedance spectrum, f2 is the frequency corresponding to a peak point adjacent to f1 in the initial impedance spectrum, |f2-f1| is the frequency difference between any two adjacent peaks in the initial impedance spectrum, V 光 is the speed of light, and α is the speed factor.

[0096] In this embodiment, the frequency corresponding to a set number of peaks in the initial impedance spectrum graph is obtained to determine the frequency difference between any two adjacent peaks in the initial impedance spectrum graph; the initial cable length is calculated based on the frequency difference between any two adjacent peaks in the initial impedance spectrum graph, the speed of light, and the speed factor. The initial cable length can be compared with the initial cable length range to determine whether it meets the accuracy requirements. If so, the initial cable length is determined as the target cable length; if not, the target excitation signal is determined based on the difference between the initial cable length and the first boundary cable length and the second boundary cable length, so as to determine the target cable length of the cable to be detected based on the target excitation signal, thereby ensuring that the difference between the target cable length and the target cable length range is within a preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0097] Optionally, determining the frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph includes:

[0098] determining frequency differences between two adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of first frequency differences;

[0099] Determining an average of the plurality of first frequency differences as a frequency difference between adjacent peaks in the initial impedance spectrum;

[0100] The first frequency difference may refer to the frequency difference between a set number of adjacent peaks in the initial impedance spectrum. For example, if the set number is 4, the first frequency difference may be the frequency difference between peak 0 and peak 1 (i.e., it can be expressed as F[1]-F[0]), the frequency difference between peak 1 and peak 2 (i.e., it can be expressed as F[2]-F[1]), and the frequency difference between peak 2 and peak 3 (i.e., it can be expressed as F[3]-F[2]). The mean may refer to the average value, i.e., the average value of multiple first frequency differences.

[0101] Specifically, the average of the multiple first frequency differences can be calculated using the following formula:

[0102]

[0103] Among them, f 范围 is the frequency difference between adjacent peaks in the initial impedance spectrum.

[0104] or,

[0105] determining frequency differences between any two non-adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of second frequency differences;

[0106] determining a third frequency difference based on the second frequency difference and the number of peaks in the intervals between non-adjacent peaks;

[0107] An average of the plurality of third frequency differences is determined as a frequency difference between adjacent peaks in the initial impedance spectrum.

[0108] Among them, the second frequency difference may refer to the frequency difference between a set number of non-adjacent peaks in the initial impedance spectrum. For example, if the set number is 4, the second frequency difference may be the frequency difference between peak wave 0 and peak wave 2 (i.e., it can be expressed as F[2]-F[0]), the frequency difference between peak wave 1 and peak wave 3 (i.e., it can be expressed as F[3]-F[1]), and the frequency difference between peak wave 0 and peak wave 3 (i.e., it can be expressed as F[3]-F[0]). The number of peaks in the interval between non-adjacent peaks may refer to the number of complete peaks existing between two non-directly adjacent peaks; for example, the number of peaks in the interval between peak wave 0 and peak wave 2 is 1, i.e., peak wave 1; the number of peaks in the interval between peak wave 0 and peak wave 3 is 2, i.e., peak wave 1 and peak wave 2. The third frequency difference may refer to the ratio between the second frequency difference and the number of peaks in the interval between its corresponding non-adjacent peaks plus 1. For example, the third frequency difference may be

[0109] Specifically, the average of multiple third frequency differences can be calculated using the following formula:

[0110] or,

[0111]

[0112] Among them, f 范围 is the frequency difference between adjacent peaks in the initial impedance spectrum.

[0113] In this embodiment, the frequency difference between two adjacent peaks can be determined by the frequencies corresponding to a set number of peaks in the initial impedance spectrum diagram to obtain multiple first frequency differences; the average of the multiple first frequency differences is determined as the frequency difference between adjacent peaks in the initial impedance spectrum diagram; or, the frequency difference between two non-adjacent peaks is determined based on the frequencies corresponding to a set number of peaks in the initial impedance spectrum diagram to obtain multiple second frequency differences; the third frequency difference is determined based on the second frequency difference and the number of peaks in the interval between non-adjacent peaks; the average of the multiple third frequency differences is determined as the frequency difference between adjacent peaks in the initial impedance spectrum diagram; the present invention determines the frequency difference between adjacent peaks in the initial impedance spectrum diagram by the above two methods, which is more accurate than the method of directly obtaining the frequency difference by subtracting the frequencies corresponding to two adjacent peaks, further improving the accuracy and precision of calculating the cable length.

[0114] Optionally, determining the initial cable length range based on a frequency interval between adjacent acquisition points in the initial impedance spectrum graph and a frequency difference between adjacent peaks in the initial impedance spectrum graph includes:

[0115] Determining a frequency interval between adjacent acquisition points in the initial impedance spectrum graph based on a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum graph;

[0116] Specifically, the frequency interval between adjacent acquisition points in the initial impedance spectrum can be determined based on the following formula:

[0117]

[0118] in, is the frequency interval between adjacent acquisition points in the initial impedance spectrum, a1 is the starting frequency of the initial excitation signal, a2 is the cutoff frequency of the initial excitation signal, and p is the number of acquisition points included in the initial impedance spectrum.

[0119] The first boundary cable length and the second boundary cable length are determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor to obtain an initial cable length range.

[0120] Specifically, the first boundary cable length and the second boundary cable length may be determined based on the following formula:

[0121]

[0122] Among them, l 正 is the first boundary cable length, l 反 is the length of the second boundary cable, f1 is the frequency corresponding to a peak point in the impedance spectrum, f2 is the frequency corresponding to a peak point adjacent to f1 in the impedance spectrum, |f2-f1|=f 范围 , is the frequency interval between adjacent acquisition points, V 光 is the speed of light, and α is the speed factor. The initial cable length range is l 正 ~l 反 .

[0123] In this embodiment, the frequency interval between adjacent acquisition points in the initial impedance spectrum can be determined based on the frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum. Based on the frequency interval between adjacent acquisition points in the initial impedance spectrum, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor, the first boundary cable length and the second boundary cable length are determined to obtain the initial cable length range, which facilitates subsequent comparison with the initial cable length and determines the accuracy of the initial cable length.

[0124] Example 2

[0125] Figure 2This is a flow chart of a cable length detection method provided in the second embodiment of the present invention. The technical solution of this embodiment is further refined on the basis of the above embodiment. Figure 2 As shown, the method includes:

[0126] S210. Input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum of the cable to be detected; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be detected to the initial excitation signal, and the impedance spectrum represents a relationship between the impedance of the cable to be detected at different frequencies.

[0127] S220. Determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length.

[0128] S230: Determine the differences between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference.

[0129] S240: Determine whether the first difference and / or the second difference is greater than a preset error threshold.

[0130] The preset error threshold may refer to a preset cable length error accuracy threshold.

[0131] In this embodiment, the obtained first difference and / or second difference can be compared with the preset error threshold respectively to determine whether the first difference and / or the second difference is greater than the preset error threshold. If so, it can be determined that the initial cable length does not meet the accuracy requirements of the cable length; otherwise, it can be determined that the initial cable length meets the accuracy requirements of the cable length.

[0132] S250: If yes, determine the target frequency interval between adjacent acquisition points according to the initial cable length, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor.

[0133] The target frequency interval may refer to the frequency interval between any two adjacent acquisition points within the target frequency range.

[0134] Specifically, the target frequency interval between adjacent acquisition points can be determined based on the following formula:

[0135]

[0136] in, is the first frequency interval to be determined between adjacent acquisition points, is the second frequency interval to be determined between adjacent acquisition points, f1 is the frequency corresponding to a peak point in the initial impedance spectrum, f2 is the frequency corresponding to a peak point adjacent to f1 in the initial impedance spectrum, |f2-f1|=f 范围 , V 光 is the speed of light, α is the speed factor, and l is the cable length. By comparing the first frequency interval to be determined between adjacent acquisition points and the second frequency interval to be determined The smaller frequency interval to be determined is determined as the target frequency interval.

[0137] In this embodiment, the target frequency interval between adjacent acquisition points can be calculated and determined based on the initial cable length, the frequency difference between any two adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor.

[0138] S260: Determine a target excitation signal based on the target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum.

[0139] Specifically, the target excitation signal can be determined based on the following formula:

[0140]

[0141] Among them, a 2last is the target excitation signal cutoff frequency, The target frequency interval between adjacent acquisition points, p is the number of acquisition points included in the initial impedance spectrum. The target frequency range a1 to a2 corresponding to the target excitation signal can be determined according to the target excitation signal cutoff frequency. 2last , a1 is the starting frequency of the initial excitation signal; specifically, the target cutoff frequency a 2last Less than the initial cutoff frequency a2, where a2 is the cutoff frequency of the initial excitation signal.

[0142] In this embodiment, the target excitation signal cutoff frequency can be determined based on the target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum diagram. The target frequency range corresponding to the target excitation signal is determined based on the target excitation signal cutoff frequency, and then the impedance spectrum diagram of the cable to be tested within the target frequency range is obtained. The target cable length can be determined based on the frequency difference between any two adjacent peaks in the impedance spectrum diagram within the target frequency range, ensuring that the difference between the target cable length and the target cable length range is within a preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0143] S270: If not, determine the initial cable length as the target cable length.

[0144] Specifically, if the first difference and / or the second difference are both not greater than the preset error threshold, it can be determined that the initial cable length meets the accuracy requirement of the cable length, and the initial cable length can be directly determined as the target cable length.

[0145] In this embodiment, it is determined whether a first difference between the initial cable length and the first boundary cable length and / or a second difference between the initial cable length and the second boundary cable length is greater than a preset error threshold; if so, a target excitation signal is determined based on the initial cable length, any of the initial impedance spectrum diagram, the target frequency interval between the adjacent acquisition points, and the number of acquisition points included in the initial impedance spectrum diagram, so as to determine the target cable length of the cable to be detected based on the target excitation signal; if not, the initial cable length is determined as the target cable length; this effectively solves the problem of low cable length detection accuracy in the prior art, ensures that the difference between the target cable length and the target cable length range is within the preset error threshold, and greatly improves the accuracy and precision of cable length detection.

[0146] Optionally, determining a target cable length of the cable to be detected based on the target excitation signal includes:

[0147] Inputting the target initial excitation signal to the cable to be tested to obtain a target impedance spectrum of the cable to be tested; wherein the number of acquisition points between adjacent peaks in the target impedance spectrum is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum;

[0148] The target cable length of the cable to be tested is determined based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and the speed factor.

[0149] The target impedance spectrum diagram may refer to impedance spectrum diagrams at different frequencies within a target frequency range.

[0150] Specifically, the target excitation signal within the target frequency range can be input into the cable to be tested to obtain the response signal within the target frequency range. Based on the amplitude and phase of the excitation signal and the response signal at each frequency point within the target frequency range, the impedance value of the cable to be tested at each frequency point within the target frequency range can be calculated. The impedance values of the cable to be tested at different frequencies within the target frequency range are plotted into a graph to obtain the impedance spectrum of the cable to be tested within the target frequency range. 2lastis smaller than the initial cutoff frequency a2, that is, the target frequency range is smaller than the initial frequency range, and the number of acquisition points included in the impedance spectrum diagram remains unchanged. Therefore, the number of acquisition points between adjacent peaks in the target impedance spectrum diagram is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum diagram. The more acquisition points there are between adjacent peaks in the impedance spectrum diagram, the more accurate the frequency difference between adjacent peaks obtained based on the target impedance spectrum diagram, thereby improving the accuracy of cable length detection.

[0151] Specifically, the target cable length of the cable to be tested can be determined based on the following formula:

[0152]

[0153] Among them, l m is the target cable length, f 1m is the frequency corresponding to a peak point in the target impedance spectrum, f 2m The target impedance spectrum is shown in Figure 2. 1m The frequency corresponding to an adjacent peak point, |f 2m -f 1m | is the frequency difference between any two adjacent peaks in the target impedance spectrum, V 光 is the speed of light, and α is the speed factor. In addition, |f 2m -f 1m | can be achieved through f 范围m OK, f 范围m is the frequency difference between adjacent peaks in the target impedance spectrum, which can be specifically determined by f 范围 Calculated by formula.

[0154] In this embodiment, the target initial excitation signal is input into the cable to be detected to obtain a target impedance spectrum of the cable to be detected; wherein the number of acquisition points between adjacent peaks in the target impedance spectrum is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum; based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and the speed factor, the target cable length of the cable to be detected is determined, ensuring that the difference between the target cable length and the target cable length range is within a preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0155] In a specific embodiment, Figure 3 An initial impedance spectrum diagram provided by the second embodiment of the present invention, Figure 4A target impedance spectrum diagram is provided for the second embodiment of the present invention. For example, it can be assumed that the number of acquisition points p included in the impedance spectrum diagram is 4000, the velocity factor α is 0.6532, the cable length of the cable to be tested is 200 meters, and the preset error threshold is within ±1 meter. Generally, the longer the cable length, the greater the error in the specified measurement distance. The specific steps for determining the target cable length of the cable to be tested using the cable length detection method are as follows:

[0156] 1. Under normal circumstances, the initial frequency range of the initial excitation signal of the cable to be tested is set to 1-100MHz, that is, a1 is 1MHz and a2 is 100MHz; the following can be obtained: Figure 3 Assume that the frequency of a peak in the initial impedance spectrum is f1. Based on the peak determination algorithm, we can determine that f1 = 2.16172 MHz, and the frequency of the peak adjacent to f1 is f2 = 2.66542 MHz. The number of acquisition points between two adjacent peaks in the initial impedance spectrum can then be obtained as:

[0157]

[0158] Specifically, Figure 5 A schematic diagram of a wave peak located between adjacent collection points provided in the second embodiment of the present invention is shown in FIG. Figure 5 As shown, if the peak is located between two adjacent acquisition points, the maximum difference between the frequencies corresponding to the two adjacent acquisition points and the frequency corresponding to the peak is half of the frequency interval between the adjacent acquisition points, while the frequency difference between the two peaks can be the frequency interval between the adjacent acquisition points.

[0159] 2. The frequency interval between adjacent acquisition points in the initial impedance spectrum can be determined based on the following formula:

[0160]

[0161] The initial cable length can be determined based on the following formula:

[0162]

[0163] Based on the frequency interval between adjacent acquisition points in the initial impedance spectrum The frequency difference between adjacent peaks in the initial impedance spectrum is f2-f1, and the speed of light V 光 and the velocity factor α, determine the first boundary cable length l 正 and the second boundary cable length l 反 , obtain the initial cable length range:

[0164] First boundary cable length:

[0165]

[0166] First boundary cable length:

[0167]

[0168] That is, the initial cable length ranges from 185.41 meters to 204.57 meters, and the first difference between the initial cable length and 194.5 meters is +10 meters, and the second difference is -9 meters, which far exceeds the preset error threshold of ±1 meter.

[0169] 3. If the first difference and / or the second difference is greater than the preset error threshold, then according to the initial cable length l, the frequency difference between any two adjacent peaks in the initial impedance spectrum |f2-f1|, the speed of light V 光 and the speed factor α, which determines the target frequency interval between adjacent acquisition points

[0170] The first frequency interval to be determined:

[0171]

[0172] The second frequency interval to be determined:

[0173]

[0174] Since the first frequency interval to be determined Less than the first frequency interval to be determined between adjacent acquisition points Therefore, the first frequency interval to be determined can be Determined as the target frequency interval between adjacent acquisition points

[0175] 4. Then, the target frequency interval between adjacent acquisition points can be used And the number of acquisition points p included in the impedance spectrum diagram, determine the target cutoff frequency a of the target excitation signal 2last :

[0176]

[0177] 5. Input the target initial excitation signal within the target frequency range to the cable to be tested, where the target frequency range is 1-10.8MHz. The target impedance spectrum of the cable to be tested is as follows: Figure 4 As shown, based on the target impedance spectrum, the frequency f of a peak in the target impedance spectrum is determined by the peak determination algorithm. 1m=2.16949MHz, and f 1m The frequency f corresponding to an adjacent peak point 2m =2.65938MHz. The number of acquisition points between two adjacent peaks in the target impedance spectrum is:

[0178]

[0179] It can be seen that the number of acquisition points between two separated peaks in the target impedance spectrum is much greater than the number of acquisition points between two separated peaks in the initial impedance spectrum. The more acquisition points between two separated peaks in the impedance spectrum, the higher the measurement accuracy.

[0180] 6. Based on the frequency difference f between adjacent peaks in the target impedance spectrum 2m -f 1m , speed of light V 光 and the velocity factor α, determine the target cable length of the cable to be tested:

[0181]

[0182] It can be seen that the target cable length is only 0.004 meters different from the actual cable length, and the calculation error is within the preset error threshold of ±1 meter, which greatly improves the calculation accuracy of the cable.

[0183] In this embodiment, an initial excitation signal is input to a cable to be detected to obtain an initial impedance spectrum of the cable to be detected; an initial cable length and an initial cable length range are determined based on the initial impedance spectrum, wherein the initial cable length range includes a first boundary cable length and a second boundary cable length; the difference between the initial cable length and the first boundary cable length and the second boundary cable length is determined to obtain a first difference and a second difference; a target frequency interval between adjacent acquisition points is determined based on the first difference and / or the second difference, and a target cutoff frequency of a target excitation signal is determined based on the target frequency interval between adjacent acquisition points; a target impedance spectrum of the cable to be detected is obtained by applying a target initial excitation signal within a target frequency range; and a target cable length of the cable to be detected is determined based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and a speed factor. This ensures that the difference between the target cable length and the target cable length range is within a preset error threshold, thereby greatly improving the accuracy and precision of cable length detection.

[0184] Example 3

[0185] Figure 6 This is a schematic diagram of the structure of a cable length detection device provided by the third embodiment of the present invention. Figure 6 As shown, the device includes:

[0186] An acquisition module 310 is configured to input an initial excitation signal to the cable to be tested to obtain an initial impedance spectrum of the cable to be tested; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be tested to the initial excitation signal, and the impedance spectrum represents the relationship between the impedance of the cable to be tested at different frequencies;

[0187] A first determining module 320 is configured to determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length;

[0188] A second determining module 330 is configured to determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference;

[0189] The third determination module 340 is configured to determine a target excitation signal based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be detected based on the target excitation signal.

[0190] Optionally, the first determining module 320 includes:

[0191] an initial cable length determining unit, configured to determine the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum;

[0192] an initial cable length range determining unit, configured to determine the initial cable length range based on a frequency interval between adjacent acquisition points in the initial impedance spectrum graph and a frequency difference between adjacent peaks in the initial impedance spectrum graph; wherein the frequency interval between adjacent acquisition points is determined by the frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum graph.

[0193] Optional, initial cable length determination unit, including:

[0194] a frequency difference between adjacent peaks determining subunit, configured to determine the frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph;

[0195] The initial cable length determination subunit is configured to determine the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and a speed factor.

[0196] Optionally, the frequency difference between adjacent peaks determining subunit is specifically configured to:

[0197] determining frequency differences between two adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of first frequency differences;

[0198] Determine the average of the plurality of first frequency differences as the frequency difference between adjacent peaks in the initial impedance spectrum; or,

[0199] determining frequency differences between any two non-adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of second frequency differences;

[0200] determining a third frequency difference based on the second frequency difference and the number of peaks in the intervals between non-adjacent peaks;

[0201] An average of the plurality of third frequency differences is determined as a frequency difference between adjacent peaks in the initial impedance spectrum.

[0202] Optionally, an initial cable length range determination unit is configured to:

[0203] Determining a frequency interval between adjacent acquisition points in the initial impedance spectrum graph based on a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum graph;

[0204] The first boundary cable length and the second boundary cable length are determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor to obtain an initial cable length range.

[0205] Optionally, the third determining module 340 includes:

[0206] a target frequency interval determining unit, configured to determine a target frequency interval between adjacent acquisition points based on the initial cable length, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and a speed factor if the first difference and / or the second difference is greater than a preset error threshold;

[0207] The target excitation signal determining unit is configured to determine a target excitation signal based on a target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum.

[0208] Optionally, the third determining module 340 further includes:

[0209] a target impedance spectrum determining unit, configured to input the target initial excitation signal to the cable to be detected to obtain a target impedance spectrum of the cable to be detected; wherein the number of acquisition points between adjacent peaks in the target impedance spectrum is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum;

[0210] The target cable length determining unit is configured to determine the target cable length of the cable to be detected based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and the speed factor.

[0211] The cable length detection device provided in the embodiment of the present invention can execute the cable length detection method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0212] Example 4

[0213] Figure 7 A schematic diagram of the structure of an electronic device that can be used to implement an embodiment of the present invention is shown. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0214] like Figure 7 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by the at least one processor 11, and the computer program is executed by the at least one processor 11 so that the at least one processor 11 can execute the method provided by the present invention.

[0215] The processor 11 can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 12 or a computer program loaded from a storage unit 18 into a random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0216] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0217] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the cable length detection method.

[0218] In some embodiments, the cable length detection method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the cable length detection method described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to perform the cable length detection method in any other suitable manner (e.g., via firmware).

[0219] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard parts (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0220] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0221] In the context of the present invention, a computer-readable storage medium stores computer instructions, and the computer instructions are used to implement the detection method of cable length provided by the present invention when the processor is executed. A computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. A computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium can be a machine-readable signal medium. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0222] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD monitor)) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0223] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0224] A computing system may include a client and a server. The client and server are generally remote from each other and typically interact via a communication network. The client-server relationship arises through computer programs running on the respective computers and establishing a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, a host product within a cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosts and virtual private server (VPS) services.

[0225] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved. This is not limited herein.

[0226] The above specific embodiments do not limit the scope of protection of the present invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention are intended to be included within the scope of protection of the present invention.

Claims

1. A method for detecting cable length, characterized in that: include: Inputting an initial excitation signal to the cable to be tested to obtain an initial impedance spectrum of the cable to be tested, wherein the impedance spectrum is obtained by collecting a response signal of the cable to be tested to the initial excitation signal, and the impedance spectrum represents the relationship between different frequencies and the impedance of the cable to be tested; Determining the initial cable length and the initial cable length range according to the initial impedance spectrum, wherein the initial cable length range includes a first boundary cable length and a second boundary cable length; Determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference; A target excitation signal is determined based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be inspected based on the target excitation signal.

2. The method according to claim 1, characterized in that Determining the initial cable length and the initial cable length range according to the initial impedance spectrum diagram includes: determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum; The initial cable length range is determined based on a frequency interval between adjacent acquisition points in the initial impedance spectrum and a frequency difference between adjacent peaks in the initial impedance spectrum; wherein the frequency interval between adjacent acquisition points is determined by a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum.

3. The method according to claim 2, characterized in that Determining the initial cable length based on a frequency difference between adjacent peaks in the initial impedance spectrum graph includes: determining a frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph; The initial cable length is determined based on a frequency difference between adjacent peaks in the initial impedance spectrum, a speed of light, and a speed factor.

4. The method according to claim 3, characterized in that Determining a frequency difference between adjacent peaks in the initial impedance spectrum graph based on frequencies corresponding to a set number of peaks in the initial impedance spectrum graph includes: determining frequency differences between two adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of first frequency differences; determining an average of the plurality of first frequency differences as a frequency difference between adjacent peaks in the initial impedance spectrum; or, determining frequency differences between any two non-adjacent peaks based on frequencies corresponding to a set number of peaks in the initial impedance spectrum to obtain a plurality of second frequency differences; determining a third frequency difference based on the second frequency difference and the number of peaks in the intervals between non-adjacent peaks; An average of the plurality of third frequency differences is determined as a frequency difference between adjacent peaks in the initial impedance spectrum.

5. The method according to claim 2, characterized in that Determining the initial cable length range based on the frequency interval between adjacent acquisition points in the initial impedance spectrum graph and the frequency difference between adjacent peaks in the initial impedance spectrum graph includes: Determining a frequency interval between adjacent acquisition points in the initial impedance spectrum graph based on a frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum graph; The first boundary cable length and the second boundary cable length are determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor to obtain an initial cable length range.

6. The method according to claim 1, characterized in that Determining a target excitation signal based on the first difference and / or the second difference includes: If the first difference and / or the second difference is greater than a preset error threshold, determining a target frequency interval between adjacent acquisition points based on the initial cable length, the frequency difference between adjacent peaks in the initial impedance spectrum, the speed of light, and a speed factor; A target excitation signal is determined based on a target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum.

7. The method according to claim 6, characterized in that Determining a target cable length of the cable to be detected based on the target excitation signal includes: Inputting the target excitation signal to the cable to be tested to obtain a target impedance spectrum of the cable to be tested; wherein the number of acquisition points between adjacent peaks in the target impedance spectrum is greater than the number of acquisition points between adjacent peaks in the initial impedance spectrum; The target cable length of the cable to be tested is determined based on the frequency difference between adjacent peaks in the target impedance spectrum, the speed of light, and the speed factor.

8. A device for detecting cable length, characterized in that: include: an acquisition module, configured to input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum of the cable to be detected; wherein the impedance spectrum is obtained by collecting a response signal of the cable to be detected to the initial excitation signal, and the impedance spectrum represents a relationship between different frequencies and the impedance of the cable to be detected; A first determining module is configured to determine the initial cable length and the initial cable length range according to the initial impedance spectrum; wherein the initial cable length range includes a first boundary cable length and a second boundary cable length; A second determining module is configured to determine the difference between the initial cable length and the first boundary cable length and the second boundary cable length, respectively, to obtain a first difference and a second difference; The third determining module is configured to determine a target excitation signal based on the first difference and / or the second difference, so as to determine a target cable length of the cable to be detected based on the target excitation signal.

9. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor to enable the at least one processor to perform the cable length detection method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cable length detection method according to any one of claims 1 to 7 when executed.

Citation Information

Patent Citations

  • Cable local-defect diagnosis method

    CN104133155A

  • Drill rod length measuring method and measuring system

    CN113028964A