A power line ranging method, system and device

By using carrier devices to send and receive ranging signals in power line communication, combined with the preset sampling clock and frequency domain signal relationship, the problem of low cable ranging accuracy is solved, and a higher precision line length measurement is achieved.

CN113391162BActive Publication Date: 2025-06-17GLOBAL ENERGY INTERCONNECTION RES INST CO LTD +2
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202110586197.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-27
Publication Date
2025-06-17
Estimated Expiration
2041-05-27

AI Technical Summary

Technical Problem

The existing cable ranging method has low ranging accuracy in power line communication and cannot accurately measure the line length.

Method used

By setting the first carrier device and the second carrier device at both ends of the power line to be measured, sending and receiving the ranging signal, using the preset sampling clock and frequency domain ranging signal relationship, the transmission time of the ranging signal on the power line is determined, and the line length is calculated based on the propagation speed.

Benefits of technology

It improves the accuracy of the sampling clock, breaks through the limitations of the sampling clock during the ranging process, and improves the accuracy of cable ranging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113391162B_ABST
    Figure CN113391162B_ABST
Patent Text Reader

Abstract

A power line ranging method, system and device provided by the present invention. The method includes: sending a first ranging signal to a second carrier device; receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal; and determining the line length of the power line to be measured based on the propagation speed and the transmission duration of the first ranging signal in the power line to be measured. By implementing the present invention, the limitation of the sampling clock in the ranging process is broken through, and the cable ranging accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power communication, and particularly to a power line ranging method, system and device. Background Art

[0002] Power Line Communication (PLC) technology refers to a wired communication method that uses high-voltage power lines, medium-voltage power lines or low-voltage power lines as information transmission media for voice or data transmission. Conventional power line communication technology loads a modulated high-frequency carrier signal on existing power lines for communication, so it is also called power line carrier communication. Power line carrier communication is usually divided into narrowband PLC and broadband PLC according to the used frequency band, and has been widely used in services such as medium and low voltage power consumption information collection and distribution automation.

[0003] Since PLC signals are transmitted in the power grid, in addition to the data communication function, the carrier signal can also be applied to some auxiliary functions, such as cable ranging and power grid topology identification. At present, there are mainly three categories of signal-based ranging methods at home and abroad: received signal strength ranging method, channel model ranging method and time of arrival of signal ranging method. The received signal strength method uses the strength of the received signal to judge the attenuation amount of the signal passing through the channel, so as to calculate the transmission line length, and is mostly used in scenarios such as Bluetooth and wireless sensing. However, the power grid structure is complex and the power line channel environment is harsh. The received carrier signal strength is not only related to channel attenuation, but also affected by impulse noise and colored background noise. Therefore, the ranging accuracy using the received signal strength method is not high. The channel model ranging method establishes a signal transmission model through channel estimation and estimates the signal transmission time from the model. The implementation complexity of this method is high, and the model establishment is easily interfered by channel noise and attenuation. Therefore, the ranging accuracy using the channel model ranging method is also not high. The time of arrival of signal ranging method uses a communication interaction between two devices to count the time difference between the sending time and the arrival time of the received signal to calculate the transmission line length, and is widely used in wireless application scenarios such as indoor positioning and global satellite navigation system. The time of arrival of signal ranging method first needs to establish a communication link between two devices. However, the power line channel is more severe than the wireless channel, and a more robust ranging signal needs to be designed to ensure communication robustness. Secondly, the ranging accuracy of the time of arrival of signal ranging method is limited by the system sampling clock (ranging signal bandwidth). The higher the sampling clock (the larger the ranging signal bandwidth), the higher the ranging accuracy, but at the same time the system complexity is also higher, and the communication reliability will also decrease accordingly.

[0004] Therefore, the above cable ranging methods cannot accurately measure the line length, thus affecting the ranging accuracy. Summary of the Invention

[0005] Therefore, the technical problem to be solved by the present invention is to overcome the defect of low ranging accuracy in the prior art, so as to provide a power line ranging method, system and device.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] In a first aspect, an embodiment of the present invention provides a power line ranging method. First carrier devices and second carrier devices are respectively arranged at both ends of a power line to be measured. The power line ranging method is applied to the first carrier device. The power line ranging method includes: sending a first ranging signal to the second carrier device; receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; determining a transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and a relationship between the second ranging signal, the first ranging signal and a frequency-domain ranging signal corresponding to the first ranging signal; and determining a line length of the power line to be measured based on a propagation speed of the first ranging signal in the power line to be measured and the transmission duration.

[0008] Optionally, the determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and a relationship between the second ranging signal, the first ranging signal and a frequency-domain ranging signal corresponding to the first ranging signal includes: determining a first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and a relationship between the second ranging signal and the first ranging signal; determining a second transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and a relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal; and adding the first transmission duration and the second transmission duration to calculate and obtain the transmission duration.

[0009] Optionally, the determining the first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and a relationship between the second ranging signal and the first ranging signal includes: performing a cross-correlation calculation on the second ranging signal and the first ranging signal; performing an addition and summation calculation on the result output after the cross-correlation calculation; comparing the addition and summation calculation result with a preset threshold value; when the addition and summation calculation result is greater than the preset threshold value, obtaining the current second ranging signal; and calculating an integer multiple sampling clock time delay of the current second ranging signal based on a preset sampling clock to obtain the first transmission duration.

[0010] Optionally, determining the second transmission duration of the first ranging signal on the power line to be measured based on the preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal includes: performing a fast Fourier transform on the second ranging signal; performing a conjugate multiplication calculation on the output result of the fast Fourier transform and the frequency-domain ranging signal corresponding to the first ranging signal; and performing a fractional sampling clock delay calculation on the output result of the conjugate multiplication calculation according to the preset sampling clock signal to obtain the second transmission duration.

[0011] Optionally, adding the first transmission duration and the second transmission duration to calculate the transmission duration includes: obtaining a first processing time for the first carrier device to send the first ranging signal and a second processing time for the second carrier device to receive the first ranging signal; adding the first transmission duration and the second transmission duration to calculate the ranging signal delay; and calculating the transmission duration according to the ranging signal delay, the first processing time, and the second processing time.

[0012] Optionally, before performing the cross-correlation calculation between the second ranging signal and the first ranging signal, it further includes: performing a normalization process on the second ranging signal.

[0013] In a second aspect, an embodiment of the present invention provides a power line ranging system, including: a sending module for sending a first ranging signal to a second carrier device; a receiving module for receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; a processing module for determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal; and a calculation module for determining the line length of the power line to be measured based on the propagation speed of the first ranging signal in the power line to be measured and the transmission duration.

[0014] In a third aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer instructions for causing the computer to execute the power line ranging method described in the first aspect of the present invention.

[0015] In a fourth aspect, an embodiment of the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other, where the memory stores computer instructions, and the processor executes the computer instructions to execute the power line ranging method described in the first aspect of the present invention.

[0016] The technical solution of the present invention has the following advantages:

[0017] The power line ranging method provided by the present invention includes: sending a first ranging signal to a second carrier device; receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal; and determining the line length of the power line to be measured based on the propagation speed and the transmission duration of the first ranging signal in the power line to be measured. By determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal, the delay of an integer multiple of the sampling clock and the delay of a fractional multiple of the sampling clock can be obtained simultaneously. Thereby, the accuracy of the sampling clock is improved, the limitation of the sampling clock in the ranging process is broken through, and the cable ranging accuracy is enhanced. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It is a schematic diagram of power line carrier ranging in an embodiment of the present invention;

[0020] Figure 2 It is a schematic flowchart of the power line ranging method in an embodiment of the present invention;

[0021] Figure 3 It is the calculation process of the first transmission duration in an embodiment of the present invention;

[0022] Figure 4 It is the calculation process of the second transmission duration in an embodiment of the present invention;

[0023] Figure 5 It is a schematic flowchart of the ranging process in an embodiment of the present invention;

[0024] Figure 6 It is a principle block diagram of a specific example of the power line ranging system in an embodiment of the present invention;

[0025] Figure 7 It is a composition diagram of a specific example of the computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0026] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0027] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the present invention. In addition, the terms "first", "second", and "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0028] In the description of the present invention, it should be noted that unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can also be the communication inside two elements. It can be a wireless connection or a wired connection. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

[0029] In addition, the technical features involved in different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0030] An embodiment of the present invention provides a power line ranging method, which estimates the transmission time of a carrier signal in a cable by using the signal interaction between power line carrier devices, so as to calculate the length of the cable connecting the power line carrier devices. As Figure 1 shown, it is a schematic diagram of power line carrier ranging. A first carrier device and a second carrier device are respectively arranged at both ends of the power line to be measured. The power line ranging method is applied to the first carrier device. As Figure 2 shown, the above power line ranging method includes the following steps:

[0031] Step S1: Send a first ranging signal to the second carrier device.

[0032] In a specific embodiment, the first carrier device and the second carrier device disposed at both ends of the power line to be measured both receive the configuration information sent by an external device. The first carrier device is configured as a ranging master device according to the configuration information, and the second carrier device is configured as a ranging slave device according to the configuration information. The above configuration processes are all completed within various internal controllers. After the status configuration of the first carrier device and the second carrier device is completed, the ranging operation of the power line to be measured is performed. Specifically, the ranging master device starts timing under the control of the internal controller. When the timer counts to a preset time, the internal controller controls the signal sending unit to send a first ranging signal. The first ranging signal is coupled to the power line to be measured through a coupler and thus transmitted to the ranging slave device. In the embodiment of the present invention, the ranging signal is an Orthogonal Frequency Division Multiplexing (OFDM) signal and is designed in the frequency domain. The initial information (with the same amplitude and random phase) is mapped to the corresponding subcarriers, and the sequence is converted from the frequency domain to the time domain by an IFFT transform. The preset time is adjusted according to actual needs.

[0033] Step S2: Receive the second ranging signal forwarded by the second carrier device after receiving the first ranging signal.

[0034] In a specific embodiment, the ranging slave device (i.e., the second carrier device) extracts the first ranging signal from the power line to be measured through a coupler. After the internal controller of the ranging slave device monitors the synchronization signal, it determines that the ranging slave device has extracted the first ranging signal. Further, after the internal controller of the ranging slave device monitors the synchronization signal, the internal controller controls the signal sending unit to send a second ranging signal. The second ranging signal is coupled to the power line to be measured through a coupler and thus transmitted to the ranging master device. In the embodiment of the present invention, by monitoring the synchronization signal in real time and sending the second ranging signal after monitoring the synchronization signal, the synchronization of the signal clocks is ensured.

[0035] Step S3: Based on the preset sampling clock and the relationship between the second ranging signal and the first ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal, determine the transmission duration of the first ranging signal on the power line to be measured.

[0036] In a specific embodiment, based on the preset sampling clock and the relationship between the second ranging signal and the first ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal, determining the transmission duration of the first ranging signal on the power line to be measured includes the following steps:

[0037] Step S31: Based on the preset sampling clock and the relationship between the second ranging signal and the first ranging signal, determine the first transmission duration of the first ranging signal on the power line to be measured.

[0038] In the embodiment of the present invention, the first transmission duration of the first ranging signal on the power line to be measured is determined through the following steps:

[0039] Step S311: Perform cross-correlation calculation on the second ranging signal and the first ranging signal.

[0040] Step S312: Perform summation calculation on the result output after the cross-correlation calculation.

[0041] Step S313: Compare the summation calculation result with a preset threshold value.

[0042] Step S314: When the summation calculation result is greater than the preset threshold value, obtain the current second ranging signal.

[0043] Step S315: Calculate the integer multiple sampling clock delay of the current second ranging signal based on a preset sampling clock to obtain the first transmission duration.

[0044] Specifically, the first transmission duration calculation process is as Figure 3 shown. In order to avoid drastic fluctuations in the amplitude of the second ranging signal, the ranging master device performs a normalization operation before the cross-correlation calculation, dividing each sampling point of the second ranging signal by an average amplitude value. For each sampling point s, this average amplitude value only counts the amplitudes of several sampling points around the sampling point s, and when calculating the average value, different sampling points have different weights: the closer to the sampling point s, the greater the weight, and vice versa. In this way, regardless of how drastic the oscillation of the signal amplitude before normalization is, the amplitude of the signal after normalization only fluctuates slightly within a certain range. The mathematical expression of the normalization operation is as follows:

[0045]

[0046] F N×1 ={|F(k)|,|F(k + 1)|,...,|F(k + N - 2)|,|F(k + N - 1)|} T (Equation 2)

[0047] W 1×N ={α0,α1,...,α N-1} (Equation 3)

[0048] Among them, F(k) and V(k) respectively represent the input and output of the normalization calculation. F N×1 represents a vector with a length of N, and its vector elements are the amplitudes of the adjacent sampling points of the kth input sampling point. W 1×N is a window function vector for calculating the average amplitude, and 0 < α n ≤ 1,, n = 0, 1,... N.

[0049] The cross-correlation calculation is performed between the normalized second ranging signal and the ranging signal stored locally (i.e., the first ranging signal):

[0050]

[0051] Among them, V(k) is the output of the normalization module; s represents the local time-domain ranging signal stored at the receiving end, and its length is Np; X* represents the conjugate of X.

[0052] Further, in order to overcome the influence of the channel multipath effect, after the cross-correlation calculation, the sum of every Len output correlation values is calculated by addition:

[0053]

[0054] The comparator compares the result output after the cross-correlation calculation with the preset threshold value P h for comparison. If it exceeds this threshold value, that is, m[k0]>P h , it indicates that the second ranging signal is detected and t ac =(k0 - N p -1)*T s is the integer multiple sampling clock delay of the second ranging signal, that is, the rough delay estimate t ac is obtained, where T s is the system sampling clock.

[0055] In addition, the ranging slave device also uses the above steps to detect the first ranging signal sent by the ranging master device. After detecting the first ranging signal, when the internal controller monitors the synchronization signal, it controls the signal sending unit to send the second ranging signal to realize the forwarding of the ranging signal.

[0056] Step S32: Based on the preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal, determine the second transmission duration of the first ranging signal on the power line to be measured.

[0057] In the embodiment of the present invention, the second transmission duration of the first ranging signal on the power line to be measured is determined through the following steps:

[0058] Step S321: Perform a fast Fourier transform on the second ranging signal;

[0059] Step S322: Perform a conjugate multiplication calculation on the output result of the fast Fourier transform and the frequency-domain ranging signal corresponding to the first ranging signal;

[0060] Step S323: Perform a fractional sampling clock delay calculation on the output result of the conjugate multiplication calculation according to the preset sampling clock signal to obtain the second transmission duration.

[0061] Specifically, the calculation process of the second transmission duration is as followsFigure 4 As shown in Figure 4 , after the coarse time delay estimation detects the second ranging signal, data with a length of Np is intercepted as the input for the fine time delay estimation:

[0062] r 1×Np ={F(k0), F(k0 + 1),... F(k0 + N p -1)} (Equation 6)

[0063] where F(k) is the input of the coarse time delay estimation, k0 is the sequence number of the sampling point in the coarse time delay estimation that exceeds the preset threshold, and N p is the length of the first ranging signal. The intercepted data is subjected to FFT calculation, i.e.:

[0064] R 1×Np = FFT{r 1×Np} = {A1, A2,..., A Np} (Equation 7)

[0065] After that, the output result of the fast Fourier transform is subjected to conjugate multiplication calculation with the frequency-domain ranging signal corresponding to the first ranging signal:

[0066]

[0067] After that, the time delay of the fractional sampling clock (i.e., the fine time delay estimation) is calculated through the following formula:

[0068] B n = real(D n ) / imag(D n ) n = 1, 2,..., N p (Equation 9)

[0069]

[0070]

[0071]

[0072] where real(X) represents the real part of the complex number X, imag(X) represents the imaginary part of the complex number X, T s is the system sampling clock, and τ af is the second transmission duration, i.e., the fractional sampling clock time delay estimation value.

[0073] Step S33: Add the first transmission duration and the second transmission duration to calculate the transmission duration.

[0074] In the embodiments of the present invention, adding the first transmission duration and the second transmission duration to calculate the transmission duration includes the following steps:

[0075] Step S331: Obtain the first processing time when the first carrier device sends the first ranging signal and the second processing time when the second carrier device receives the first ranging signal.

[0076] Step S332: Add the first transmission duration and the second transmission duration to calculate the ranging signal delay.

[0077] Step S333: Calculate the transmission duration based on the ranging signal delay, the first processing time, and the second processing time.

[0078] Specifically, through the coarse delay estimation and fine delay estimation algorithms, obtain the integer multiple delay and the fractional multiple delay of the sampling clock, and then the ranging signal delay T = t ac +τ af .. It can be known from Figure 5 that the transmission duration △t = (T - 2*t1 - 2*t2) / 2, where c is the transmission rate of the ranging signal in the cable, t1 is the processing time when the first carrier device sends the ranging signal, and t2 is the processing time when the second carrier device receives the ranging signal.

[0079] Step S4: Determine the line length of the power line to be measured based on the propagation speed and the transmission duration of the first ranging signal in the power line to be measured.

[0080] In a specific embodiment, the line length L can be obtained by the following formula:

[0081]

[0082] Where c is the transmission rate of the ranging signal in the cable, t1 is the processing time when the device sends the ranging signal, t2 is the processing time when the device receives the ranging signal, and △t is the transmission duration of the ranging signal. In the embodiments of the present invention, through the signal interaction between existing power line carrier devices, the line length of the medium and low voltage power lines connecting the carrier devices can be measured in real time and online, and it can be applied to fields such as medium and low voltage power grid topology identification and cable fault location, with the characteristics of simple principle, economic practicality, and convenient application.

[0083] The power line ranging method provided by the present invention includes: sending a first ranging signal to a second carrier device; receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal; and determining the line length of the power line to be measured based on the propagation speed and transmission duration of the first ranging signal in the power line to be measured. By determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal, the delay of an integer multiple of the sampling clock and the delay of a fractional multiple of the sampling clock can be obtained simultaneously. Thereby, the accuracy of the sampling clock is improved, the limitation of the sampling clock in the ranging process is broken through, and the cable ranging accuracy is enhanced.

[0084] An embodiment of the present invention provides a power line ranging system, as Figure 6 shown, including:

[0085] A sending module 1 for sending a first ranging signal to a second carrier device. For detailed content, refer to the relevant description of step S1 in the above embodiment, which will not be elaborated here.

[0086] A receiving module 2 for receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal. For detailed content, refer to the relevant description of step S2 in the above embodiment, which will not be elaborated here.

[0087] A processing module 3 for determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal. For detailed content, refer to the relevant description of step S3 in the above embodiment, which will not be elaborated here.

[0088] A calculation module 4 for determining the line length of the power line to be measured based on the propagation speed and transmission duration of the first ranging signal in the power line to be measured. For detailed content, refer to the relevant description of step S4 in the above embodiment, which will not be elaborated here.

[0089] The power line ranging system provided by the present invention utilizes the above power line ranging method to simultaneously obtain the delay of an integer multiple of the sampling clock and the delay of a fractional multiple of the sampling clock. Thereby, the accuracy of the sampling clock is improved, the limitation of the sampling clock in the ranging process is broken through, and the cable ranging accuracy is enhanced.

[0090] An embodiment of the present invention further provides a computer device, as Figure 7 shown. This device may include a processor 61 and a memory 62, where the processor 61 and the memory 62 may be connected through a bus or other means, Figure 7Take the example of connection via a bus.

[0091] The processor 61 may be a Central Processing Unit (CPU). The processor 61 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. chips, or combinations of the above types of chips.

[0092] As a non-transitory computer-readable storage medium, the memory 62 can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the corresponding program instructions / modules in the embodiments of the present invention. The processor 61 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory 62, that is, implements the power line ranging method in the above method embodiments.

[0093] The memory 62 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created by the processor 61, etc. In addition, the memory 62 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory 62 may optionally include a memory remotely set relative to the processor 61, and these remote memories can be connected to the processor 61 through a network. Examples of the above networks include but are not limited to the Internet, enterprise intranet, enterprise internal network, mobile communication network, and combinations thereof.

[0094] One or more modules are stored in the memory 62 and, when executed by the processor 61, execute the power line ranging method provided in the embodiments of the present invention.

[0095] The specific details of the above computer device can be understood by referring to the corresponding relevant descriptions and effects in the embodiments shown in Figures 1-4 and will not be elaborated here.

[0096] Those skilled in the art can understand that to implement all or part of the processes in the above-described embodiment methods, a computer program can be used to instruct relevant hardware. The program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above various methods. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memories.

[0097] Obviously, the above embodiments are merely examples given for clear illustration and are not limitations on the implementation manners. For those of ordinary skill in the art, other different forms of changes or variations can be made based on the above description. It is not necessary and impossible to enumerate all the implementation manners here. And the obvious changes or variations derived therefrom still fall within the protection scope of the present invention.

Claims

1. A power line ranging method, in which a first carrier device and a second carrier device are respectively arranged at both ends of a power line to be measured, and the power line ranging method is applied to the first carrier device, characterized in that, The power line ranging method includes: Sending a first ranging signal to the second carrier device; Receiving a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; Determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal; Determining the line length of the power line to be measured based on the propagation speed of the first ranging signal in the power line to be measured and the transmission duration; The step of determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal includes: Determining a first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the first ranging signal; Determining a second transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal; Adding the first transmission duration and the second transmission duration and calculating the sum to obtain the transmission duration; The step of determining a first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the first ranging signal includes: Performing a cross-correlation calculation on the second ranging signal and the first ranging signal; Performing an addition and summation calculation on the result output after the cross-correlation calculation; Comparing the addition and summation calculation result with a preset threshold value; When the addition and summation calculation result is greater than the preset threshold value, obtaining the current second ranging signal; Calculating the first transmission duration based on the preset sampling clock and the integer multiple sampling clock delay of the current second ranging signal; The step of determining a second transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal includes: Performing a fast Fourier transform on the second ranging signal; Performing a conjugate multiplication calculation on the output result of the fast Fourier transform and the frequency-domain ranging signal corresponding to the first ranging signal; Calculating the second transmission duration based on the preset sampling clock signal and the fractional multiple sampling clock delay of the output result of the conjugate multiplication calculation; 2. The power line ranging method according to claim 1, characterized in that, The step of adding the first transmission duration and the second transmission duration and calculating the sum to obtain the transmission duration includes: Obtaining a first processing time when the first carrier device sends the first ranging signal and a second processing time when the second carrier device receives the first ranging signal; Adding the first transmission duration and the second transmission duration and calculating the sum to obtain the ranging signal delay; Calculating the transmission duration based on the ranging signal delay, the first processing time, and the second processing time.

3. The power line ranging method according to claim 1, characterized in that, Before performing the cross-correlation calculation between the second ranging signal and the first ranging signal, it further includes: normalizing the second ranging signal.

4. A power line ranging system, characterized in that, It includes: A sending module, configured to send a first ranging signal to a second carrier device; A receiving module, configured to receive a second ranging signal forwarded by the second carrier device after receiving the first ranging signal; A processing module, configured to determine the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal; A calculation module, configured to determine the line length of the power line to be measured based on the propagation speed of the first ranging signal in the power line to be measured and the transmission duration; The determining the transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal, the first ranging signal, and the frequency-domain ranging signal corresponding to the first ranging signal includes: Determining a first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the first ranging signal; Determining a second transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal; Adding the first transmission duration and the second transmission duration and calculating the sum to obtain the transmission duration; The determining the first transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the first ranging signal includes: Performing a cross-correlation calculation between the second ranging signal and the first ranging signal; Performing an addition and summation calculation on the result output after the cross-correlation calculation; Comparing the addition and summation calculation result with a preset threshold value; When the addition and summation calculation result is greater than the preset threshold value, obtaining the current second ranging signal; Performing an integer multiple sampling clock delay calculation on the current second ranging signal based on a preset sampling clock to obtain the first transmission duration; The determining the second transmission duration of the first ranging signal on the power line to be measured based on a preset sampling clock and the relationship between the second ranging signal and the frequency-domain ranging signal corresponding to the first ranging signal includes: Performing a fast Fourier transform on the second ranging signal; Performing a conjugate multiplication calculation on the output result of the fast Fourier transform and the frequency-domain ranging signal corresponding to the first ranging signal; Performing a fractional multiple sampling clock delay calculation on the output result of the conjugate multiplication calculation according to the preset sampling clock signal to obtain the second transmission duration.

5. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the power line ranging method according to any one of claims 1-3.

6. A computer device, characterized in that, It includes: A memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to perform the power line ranging method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Power line distance measuring system

    CN215340145U