Cable length detection method, device and equipment and storage medium

By combining the initial and target excitation signals, the impedance spectrum diagram is used to accurately calculate the cable length, which solves the problem of low cable length detection accuracy in the prior art, and achieves higher accuracy and safety.

CN119268535AActive Publication Date: 2025-01-07YANGZHOU POWER SUPPLY BRANCH OF STATE GRID JIANGSU ELECTRIC POWER CO LTD +3
View PDF 7 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing cable length detection methods are not accurate, 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 length range is determined, the target excitation signal is adjusted based on the difference, the target impedance spectrum diagram is obtained, and the target cable length is accurately calculated to ensure that the result is in the preset error Within the threshold.

Benefits of technology

It significantly improves the accuracy and accuracy of cable length detection, reduces maintenance time and cost, and avoids power outages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119268535A_ABST
    Figure CN119268535A_ABST
Patent Text Reader

Abstract

The invention discloses a cable length detection method, device and equipment and a storage medium, and the method comprises the steps: inputting an initial excitation signal to a to-be-detected cable, so as to obtain an initial impedance spectrogram of the to-be-detected cable; the impedance spectrogram represents the relation between the impedance spectrogram and the impedance of the to-be-detected cable under different frequencies; determining an initial cable length and an initial cable length range according to the initial impedance spectrogram; the initial cable length range comprises a first boundary cable length and a second boundary cable length; determining difference values between the initial cable length and the first boundary cable length and between the initial cable length and the second boundary cable length, and obtaining a first difference value and a second difference value; determining a target excitation signal based on the first difference value and / or the second difference value, so as to determine a target cable length of the to-be-detected cable based on the target excitation signal; it is ensured that the difference value between the target cable length and the target cable length range is within the preset error threshold value, and the accuracy and precision of cable length detection are greatly improved.
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 the length of a cable. Background Art

[0002] In recent years, the safety and environmental issues of overhead lines have prompted the widespread use of power cables. Compared with overhead lines, cables have the advantages of small footprint, high power supply reliability and large transmission capacity. However, with the increase in cable laying and operating years, cable failure and aging have become key issues that need attention. In actual operation, thermal effects, moisture, outer sheath damage and manufacturing process problems may cause cable aging, leading to cable failure. However, since most cables are laid underground, once a failure occurs, it is impossible to quickly and accurately find the fault point, which will increase maintenance time and cost, and even cause power outages, resulting in serious economic losses. Therefore, it is extremely important to monitor and diagnose the operating status of the cable to ensure the safe and stable operation of the cable.

[0003] The accuracy of cable fault location lies in the accuracy of total cable length measurement. If the fault location is not accurate enough, it may increase the difficulty and time of on-site construction. Therefore, the accuracy of cable length measurement is particularly important. However, in the existing cable length measurement, most of the workers obtain it through on-site experience, which usually leads to 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] Input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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;

[0007] 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;

[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 detected 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 diagram includes:

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

[0012] The initial cable length range is determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram and the frequency difference between adjacent peaks in the initial impedance spectrum diagram; 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 diagram.

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

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

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

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

[0017] Determine the frequency difference between two adjacent peaks based on the frequencies corresponding to a set number of peaks in the initial impedance spectrum graph 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] Determine the frequency difference between two non-adjacent peaks based on the frequencies corresponding to the set number of peaks in the initial impedance spectrum graph, and obtain a plurality of second frequency differences;

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

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

[0022] Optionally, 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:

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

[0024] 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 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 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;

[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 diagram.

[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 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;

[0030] The 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 the speed factor.

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

[0032] An acquisition module is used to input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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;

[0033] A first determination module, configured to 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;

[0034] A second determination module is used 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 determination 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, the electronic device 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, and the computer program is executed by the at least one processor so that the at least one processor can execute the cable length detection method described in 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, to obtain a first difference and a second difference; based on the The first difference and / or the second difference determines a target excitation signal, 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 is determined, and then a new impedance spectrum diagram is obtained based on the target excitation signal. The target cable length is determined by calculating 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.

[0042] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily 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 Embodiment 1 of the present invention;

[0045] Figure 2 A flowchart of a cable length detection method provided in Embodiment 2 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 diagram of the structure of a cable length detection device provided in Embodiment 3 of the present invention;

[0050] 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. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme 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 described embodiments 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 creative work should fall within the scope of protection of the present invention.

[0052] It should be noted that the terms "first", "second", etc. in the specification 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 data 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 that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0053] Embodiment 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 detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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.

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

[0057] Specifically, the cable to be detected can be determined according to whether a cable fault occurs, and an initial excitation signal with a frequency gradually changing from low frequency to high frequency within the 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. The impedance value of the cable to be detected at each frequency point can be calculated based on the amplitude and phase of the excitation signal and the response signal collected at each frequency point, and the impedance value of the cable to be detected at different frequencies is plotted into a graph to obtain an initial impedance spectrum of the cable to be detected.

[0058] In this embodiment, an excitation signal with a frequency within the 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 the 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 diagram; 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 detected determined according to the initial impedance spectrum diagram; the initial cable length range may refer to the cable length range of the cable to be detected determined according to 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 according to the frequency difference between any two adjacent peaks in the initial impedance spectrum diagram; the cable length range of the cable to be detected can be determined according to the frequency difference between any two adjacent peaks in the initial impedance spectrum diagram and the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram, 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 according to 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 more times every interval of M (M>0) Hz.

[0062] In this embodiment, the initial cable length can be determined according to the frequency difference between any two adjacent peaks in the initial impedance spectrum graph; the cable length range of the cable to be detected is determined according to 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 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.

[0064] The first difference may refer to the difference between the initial cable length and the first boundary cable length; the second difference may refer to the difference between the initial cable length and the 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 according to 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, and the impedance value of the cable to be detected at each frequency point within the target frequency range may be calculated according to the amplitude and phase of the excitation signal and the response signal collected at each frequency point within the target frequency range, and the impedance value 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 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 requirement and is determined based on the impedance spectrum 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 according to 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 according to 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 into the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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; the initial cable length and the initial cable length range are determined 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; 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 by using the first value and / or the second difference value to determine the target cable length of the cable to be detected based on the target excitation signal, which solves 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, 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.

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

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

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

[0073] 1. An array A with a size of 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, it can be determined whether the 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 the above four conditions are all met, the point corresponding to the maximum impedance value is determined as the peak from A[5], A[6], and A[7], 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 based on the peak judgment condition, it can be judged again 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 frequencies corresponding to the stored 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 the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram and the frequency difference between adjacent peaks in the initial impedance spectrum diagram; 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 diagram.

[0085] Specifically, the frequency interval between adjacent acquisition points in the initial impedance spectrum can be obtained by dividing the frequency range of the initial excitation signal by the number of acquisition points included 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 collection points in the initial impedance spectrum diagram, so as to facilitate the subsequent judgment of the accuracy of the cable length.

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

[0088] Determine the frequency difference between adjacent peaks in the initial impedance spectrum graph based on the 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 peak waves determined from the initial impedance spectrum. Specifically, when the number of peak waves determined from the initial impedance spectrum reaches the set number, the peak waves determined from the initial impedance spectrum may be stopped, that is, the initial cable length may be determined without obtaining the frequencies corresponding to all the peak waves in the initial impedance spectrum, which effectively saves the measurement time of the cable length.

[0090] Exemplarily, 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 the frequency difference between any two adjacent peaks in the initial impedance spectrum, the speed of light, and the speed factor.

[0092] The speed of light refers to the propagation speed of light waves or electromagnetic waves in a vacuum or medium, and is usually 300,000 km / s. The speed factor can refer to the ratio of the signal propagation speed in the cable to be tested to the speed of light in a vacuum, and is usually obtained by on-site testers by inputting it into the test system based on the material characteristics of the cable to be tested.

[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 diagram is obtained to determine the frequency difference between any two adjacent peaks in the initial impedance spectrum diagram; based on the frequency difference between any two adjacent peaks in the initial impedance spectrum diagram, the speed of light and the speed factor, the initial cable length is calculated, and the initial cable length can be compared with the initial cable length range to determine whether it meets the accuracy requirement. If it does, the initial cable length is determined as the target cable length; if it does 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 the frequencies corresponding to a set number of peaks in the initial impedance spectrum graph includes:

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

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

[0100] The first frequency difference may refer to the frequency difference between two adjacent peaks of a set number in the initial impedance spectrum. For example, if the set number is 4, the first frequency difference may be the frequency difference between peak wave 0 and peak wave 1 (i.e., it can be expressed as F[1]-F[0]), the frequency difference between peak wave 1 and peak wave 2 (i.e., it can be expressed as F[2]-F[1]), and the frequency difference between peak wave 2 and peak wave 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 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] Determine the frequency difference between two non-adjacent peaks based on the frequencies corresponding to the set number of peaks in the initial impedance spectrum graph, and obtain a plurality of second frequency differences;

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

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

[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 diagram. For example, if the set number is 4, the second frequency difference may be the frequency difference between peak 0 and peak 2 (i.e., it can be expressed as F[2]-F[0]), the frequency difference between peak 1 and peak 3 (i.e., it can be expressed as F[3]-F[1]), and the frequency difference between peak 0 and peak 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 0 and peak 2 is 1, i.e., peak 1; the number of peaks in the interval between peak 0 and peak 3 is 2, i.e., peak 1 and peak 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 frequency 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, based on the frequency corresponding to a set number of peaks in the initial impedance spectrum diagram, the frequency difference between two non-adjacent peaks is determined 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, and further improves the accuracy and precision of calculating the cable length.

[0114] Optionally, 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:

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

[0116] Specifically, the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram 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] 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 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. That is, the initial cable length range is l 正 ~l 反 .

[0123] In this embodiment, the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram can be determined according to the frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum diagram; based on the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram, the frequency difference between adjacent peaks in the initial impedance spectrum diagram, 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 is convenient for subsequent comparison with the initial cable length to determine the accuracy of the initial cable length.

[0124] Embodiment 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 diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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.

[0127] S220. 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.

[0128] S230: 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.

[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 requirement of the cable length; otherwise, it can be determined that the initial cable length meets the accuracy requirement 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 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 by using 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 the adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum diagram.

[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, is the target frequency interval between adjacent acquisition points, and p is the number of acquisition points included in the initial impedance spectrum. The target frequency range a1 to a1 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 according to the target frequency interval between adjacent acquisition points and the number of acquisition points included in the initial impedance spectrum diagram, and the target frequency range corresponding to the target excitation signal can be determined based on the target excitation signal cutoff frequency, thereby obtaining the impedance spectrum diagram of the cable to be detected within the target frequency range, and the target cable length can be determined according to the frequency difference between any two adjacent peaks in the impedance spectrum diagram within the target frequency range, 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.

[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 a 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 an initial cable length and a first boundary cable length and / or a second difference between an initial cable length and a 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 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; the problem of low detection accuracy of the cable length in the prior art is effectively solved, and the difference between the target cable length and the target cable length range is ensured to be within the preset error threshold, thereby greatly improving the accuracy and precision of the 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 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;

[0148] The 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 the speed factor.

[0149] The target impedance spectrum diagram may refer to an impedance spectrum diagram 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 detected to obtain the response signal corresponding to the target frequency range. According to 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 detected at each frequency point within the target frequency range can be calculated. The impedance values ​​of the cable to be detected at different frequencies within the target frequency range are plotted into a graph to obtain the impedance spectrum of the cable to be detected within the target frequency range. 2lastLess 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 contained 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 |You can use 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 diagram of the cable to be detected; wherein 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; based on the frequency difference between adjacent peaks in the target impedance spectrum diagram, 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 speed factor α is 0.6532, the cable length of the cable to be detected is 200 meters, and the preset error threshold is within ±1 meter. Under normal circumstances, the longer the cable length, the greater the error of the predetermined measurement distance. The specific steps for determining the target cable length of the cable to be detected by 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; then 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, it can be determined that f1 = 2.16172MHz, and the corresponding frequency of the peak adjacent to f1 is f2 = 2.66542MHz; then the number of acquisition points between two adjacent peaks in the initial impedance spectrum can 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, such as Figure 5 As shown, if the peak is located between two adjacent acquisition points, the difference between the frequencies corresponding to the two adjacent acquisition points and the frequency corresponding to the peak is at most half of the frequency interval between the adjacent acquisition points, and the frequency difference corresponding to 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 of 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 light speed 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 and the number of acquisition points p contained in the impedance spectrum to 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 can be obtained as:

[0178]

[0179] It can be seen that the number of acquisition points between two separated peaks in the target impedance spectrum is much larger 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 the cable to be detected to obtain an initial impedance spectrum of the cable to be detected; the initial cable length and the initial cable length range are determined according to 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 a target initial excitation signal within a target frequency range; 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 the speed factor, 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.

[0184] Embodiment 3

[0185] Figure 6 This is a schematic diagram of the structure of a cable length detection device provided in Embodiment 3 of the present invention. Figure 6 As shown, the device comprises:

[0186] The acquisition module 310 is used to input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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;

[0187] A first determination module 320, configured to 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;

[0188] A second determination module 330 is used 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 diagram;

[0192] An initial cable length range determining unit is used to determine the initial cable length range based on the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram and the frequency difference between adjacent peaks in the initial impedance spectrum diagram; 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 diagram.

[0193] Optionally, an initial cable length determination unit, comprising:

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

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

[0196] Optionally, the frequency difference between adjacent peaks is determined by the subunit, specifically used for:

[0197] Determine the frequency difference between two adjacent peaks based on the frequencies corresponding to a set number of peaks in the initial impedance spectrum graph 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] Determine the frequency difference between two non-adjacent peaks based on the frequencies corresponding to the set number of peaks in the initial impedance spectrum graph, and obtain a plurality of second frequency differences;

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

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

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

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

[0204] 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 an initial cable length range.

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

[0206] a target frequency interval determination unit, configured to determine a 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 a speed factor if the first difference and / or the second difference is greater than a preset error threshold;

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

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

[0209] A target impedance spectrum determination unit is used 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 determination unit is used 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 diagram, 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] Embodiment 4

[0213] Figure 7 A schematic diagram 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. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the 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] A number of 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 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 through a computer network such as the Internet and / or various telecommunication networks.

[0217] The processor 11 may be a variety of general and / or special processing components 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 running 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 a method for detecting the length of a cable.

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

[0219] Various embodiments of the systems and techniques described above 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), systems 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 can be executed and / or interpreted on a programmable system including 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, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0221] In the context of the present invention, a computer-readable storage medium stores computer instructions, which are used to implement the detection method of the cable length provided by the present invention when the processor executes. A computer-readable storage medium may be a tangible medium that may 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 may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the above. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may 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 above.

[0222] To provide interaction with a user, the systems and techniques described herein may 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 a pointing device (e.g., a mouse or a trackball), through which the user may provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may 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 backend 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 frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected by digital data communication (e.g., a communication network) in any form or medium. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN), blockchain network, and the Internet.

[0224] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.

[0225] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0226] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting cable length, characterized in that: include: Input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected, wherein the impedance spectrum diagram is obtained by collecting a 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, 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 detected 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 the frequency difference between adjacent peaks in the initial impedance spectrum; The initial cable length range is determined based on the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram and the frequency difference between adjacent peaks in the initial impedance spectrum diagram; 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 diagram.

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

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

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 diagram and the frequency difference between adjacent peaks in the initial impedance spectrum diagram includes: Determine the frequency interval between adjacent acquisition points in the initial impedance spectrum diagram based on the frequency range of the initial excitation signal and the number of acquisition points included in the initial impedance spectrum diagram; 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 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 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; 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 diagram.

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 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; The 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 the speed factor.

8. A cable length detection device, characterized in that: include: An acquisition module is used to input an initial excitation signal to the cable to be detected to obtain an initial impedance spectrum diagram of the cable to be detected; wherein the impedance spectrum diagram is obtained by collecting a 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; A first determination module, configured to 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; A second determination module is used 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 determination 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, and 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 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

  • Cable defect positioning method, equipment and medium

    CN115825643A

  • Coaxial cable length measuring method based on impedance spectrum

    CN117781835A

  • Guided wave-impedance cooperative multi-core cable structure damage detection method

    CN118937413A