Method, device, electronic device and storage medium for determining cable length
By obtaining the phase of multi-frequency sine wave electromagnetic waves at both ends of the cable, calculating the phase time difference and propagation speed, the problem of inaccurate cable length measurement is solved, and a higher-precision cable length measurement is achieved.
Patent Information
- Application Number
- CN202211630055.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-19
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2042-12-19
AI Technical Summary
In the prior art, when determining the length of a disk high-voltage cable by sound waves, the accuracy is low because the sound wave can conduct in both the air and in the cable, and its conduction in the cable cannot be effectively controlled.
By obtaining the phase of the sine wave electromagnetic waves of multiple frequencies within the preset time length at both ends of the cable, calculate the phase time difference between the two ends of the cable, and determine the cable length by using the propagation speed of the electromagnetic waves. A single-phase full-bridge five-frequency output inverter is used to generate sine waves of multiple frequencies, combined with the phase detector to identify the phase, calculate the phase time difference to determine the cable length.
The accuracy of determining the cable length is improved, and the initial and target lengths of the cable are derived by multiplying the phase time difference and propagation speed of the multi-frequency electromagnetic wave, which enhances the accuracy of measurement.
Smart Images

Figure CN115790470B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of power cable measurement, and in particular to a method, device, electronic equipment and storage medium for determining cable length. Background Art
[0002] With the development of technology, cables are becoming more widely used. During cable handling, users need to know the length of the reeled high-voltage cable. Straightening and measuring the reeled high-voltage cable is impractical. Currently, acoustic waves are commonly used to determine the length of the reeled high-voltage cable.
[0003] However, sound waves can be conducted in the air as well as in cables, and users cannot control the sound waves to be conducted only in cables, resulting in low accuracy in determining the length of the reeled high-voltage cable using sound waves. Summary of the Invention
[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device and storage medium for determining the length of a cable, which can determine the length of a cable and improve the accuracy of the determined cable length.
[0005] In a first aspect, an embodiment of the present application provides a method for determining the length of a cable, the method comprising:
[0006] Obtaining the phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset time length;
[0007] According to the phase of the electromagnetic wave at both ends of the cable, the phase time difference between the two ends of the cable at each moment is determined;
[0008] The length of the cable is determined based on all phase time differences and the propagation speed of electromagnetic waves.
[0009] In one possible implementation, obtaining phases of electromagnetic waves having multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time period includes:
[0010] Obtain the phases of electromagnetic waves at both ends of the cable within a preset time length, with a waveform of a sinusoidal wave and frequencies of 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0011] In one possible implementation, determining the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable includes:
[0012] In the phase-time correspondence table, the phase time corresponding to the phases at both ends of the cable at each moment is determined; the phase-time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies;
[0013] The absolute value of the difference between the phase times corresponding to the two ends of the cable at each moment is calculated to obtain the phase time difference.
[0014] In one possible implementation, determining the length of the cable based on all phase time differences and the propagation speed of the electromagnetic wave includes:
[0015] Determine each phase time difference and multiply it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable;
[0016] Based on all initial lengths, determine the target length of the cable.
[0017] In one possible implementation, determining a target length of the cable based on all initial lengths includes:
[0018] The average of all initial lengths is determined as the target length of the cable.
[0019] In a possible implementation, determining a target length of the cable based on all initial lengths further includes:
[0020] The weighted average of all initial lengths is determined as the target length of the cable.
[0021] In a second aspect, an embodiment of the present application further provides a device for determining cable length, the device for determining cable length comprising:
[0022] An acquisition module is used to obtain the phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset time length;
[0023] A determination module, used to determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable;
[0024] The determination module is further used to determine the length of the cable based on all phase time differences and the propagation speed of the electromagnetic wave.
[0025] In a possible implementation, the acquisition module is specifically configured to acquire the phases of electromagnetic waves at both ends of the cable within a preset time period, the waveform of which is a sine wave and the frequencies of which are 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz, respectively.
[0026] In one possible implementation, a determination module is specifically used to determine the phase time corresponding to the phase at both ends of the cable at each moment in a phase-time correspondence table; the phase-time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies; and the absolute value of the difference between the phase times corresponding to both ends of the cable at each moment is calculated to obtain the phase-time difference.
[0027] In a possible implementation, the determination module is specifically configured to determine the product of each phase time difference and the propagation speed of the electromagnetic wave to obtain an initial length of the cable; and determine a target length of the cable based on all initial lengths.
[0028] In a possible implementation manner, the determination module is specifically configured to determine an average value of all initial lengths as the target length of the cable.
[0029] In a possible implementation manner, the determination module is specifically configured to determine a weighted average of all initial lengths as the target length of the cable.
[0030] In a third aspect, an embodiment of the present application further provides an electronic device comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the cable length determination method as described in any one of the first aspects.
[0031] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for determining the cable length as described in any one of the items in the first aspect are executed.
[0032] Embodiments of the present application provide a method, device, electronic device, and storage medium for determining cable length. The method includes: obtaining the phases of electromagnetic waves of multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset duration; determining the phase time difference between the two ends of the cable at each moment based on the phases of the electromagnetic waves at both ends of the cable; and determining the length of the cable based on all phase time differences and the propagation speed of the electromagnetic waves. The present application determines the phase time difference by simultaneously determining the phases of electromagnetic waves of multiple frequencies at both ends of the cable, and can determine the length of the cable based on the phase time difference and the propagation speed of the electromagnetic waves, thereby improving the accuracy of the determined cable length. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without creative work.
[0034] Figure 1 A flow chart showing a method for determining cable length provided in an embodiment of the present application is shown;
[0035] Figure 2A flowchart illustrating another method for determining cable length provided in an embodiment of the present application is shown;
[0036] Figure 3 A flowchart illustrating another method for determining cable length provided in an embodiment of the present application is shown;
[0037] Figure 4 A flowchart illustrating another method for determining cable length provided in an embodiment of the present application is shown;
[0038] Figure 5 A schematic structural diagram of a device for determining cable length provided in an embodiment of the present application is shown;
[0039] Figure 6 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0040] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of illustration and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in this application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowcharts can be implemented out of sequence, and steps without logical context can be reversed or implemented simultaneously. In addition, those skilled in the art, under the guidance of the contents of this application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.
[0041] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the claimed application, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.
[0042] To enable those skilled in the art to utilize the present disclosure, the following embodiments are provided in conjunction with the specific application scenario of "power cable measurement technology." Those skilled in the art will appreciate that the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of this disclosure. While this disclosure primarily focuses on the "power cable measurement technology" context, it should be understood that this is merely an exemplary embodiment.
[0043] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0044] The following describes in detail a method for determining cable length provided in an embodiment of the present application.
[0045] Reference Figure 1 FIG. 1 is a flow chart of a method for determining cable length provided in an embodiment of the present application. The specific execution process of the method for determining cable length is as follows:
[0046] S101: Obtain phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time length.
[0047] S102. Determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable.
[0048] S103. Determine the length of the cable according to all phase time differences and the propagation speed of the electromagnetic wave.
[0049] The present application provides a method for determining cable length, comprising: obtaining the phases of electromagnetic waves of multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset duration; determining the phase time difference between the two ends of the cable at each moment based on the phases of the electromagnetic waves at both ends of the cable; and determining the length of the cable based on all phase time differences and the propagation speed of the electromagnetic waves. The present application determines the phase time difference by simultaneously determining the phases of electromagnetic waves of multiple frequencies at both ends of the cable, and can determine the cable length based on the phase time difference and the propagation speed of the electromagnetic waves, thereby improving the accuracy of the determined cable length.
[0050] The following describes the exemplary steps of the embodiment of the present application:
[0051] S101: Obtain phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time length.
[0052] In the embodiments of the present application, the cable refers to a cable with metal armor, and the two ends of the cable refer to the two endpoints of the cable, one end serving as the electromagnetic wave output end, and the other end serving as the electromagnetic wave receiving end. The cable is provided with a cable conductor layer and a metal armor layer from the inside out. The metal armor layers at both ends of the cable are coupled to a five-frequency transmitting coil and a five-frequency receiving coil, respectively. The five-frequency harmonic generator transmits the synthesized wave emitted by the five-frequency transmitting coil at one end of the cable via wireless energy. The five-frequency transmitting coil transmits the synthesized wave to the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthesized wave from the metal armor layer. The five-frequency harmonic generator is provided with a single-phase full-bridge five-frequency output inverter. The single-phase full-bridge five-frequency output inverter can simultaneously generate five sine waves at frequencies of 800kHz, 1.2MHz, 1.8MHz, 2.7MHz, and 4.05MHz.
[0053] The cable may be a reeled high voltage cable.
[0054] The phase detector receives the composite wave at both ends of the five-frequency transmitting coil and the five-frequency receiving coil cable, and identifies the phases of the five-frequency electromagnetic waves at both ends of the cable from the composite wave.
[0055] Here, the frequencies of the electromagnetic waves include 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz, and the synthetic wave refers to a synthetic wave of electromagnetic waves having frequencies including 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0056] Furthermore, by controlling the on / off switching of the single-phase full-bridge five-frequency output inverter, the square wave voltage signal output by the unidirectional full-bridge five-frequency output inverter contains a spectrum of five frequencies, thereby using only one inverter in the five-frequency harmonic generator to simultaneously output five frequencies. The waveform of this spectrum has a 1 / 4 cycle symmetry characteristic, with even-order harmonics automatically eliminated, leaving only odd-order harmonics. Therefore, the Fourier series expansion of the inverter output voltage is:
[0057]
[0058] Where wt is the electrical angle, w is the angular frequency, and m is the harmonic order. By switching the four switches of a single-phase full-bridge five-frequency inverter on and off according to the switching phase angle sequence, the inverter output voltage can contain the required frequency components.
[0059] By setting the fundamental wave and odd harmonic contents in the above formula to suppress undesired harmonics, the required five-frequency signal is obtained. The processing results are as follows:
[0060]
[0061] Where m is the order of harmonic, V dc is the DC input voltage of the inverter, V ac1 、V ac2 、V ac3 、Vac4、V ac5 Represent the desired amplitudes of the five output frequency voltages, and q is the highest harmonic order that can be modulated. To avoid forming a transcendental equation, the value of q should be set to 2N-1 so that the coefficient matrix in the formula is a square matrix, where N is the number of switches in a 1 / 4 symmetrical period, α1, α2, α3, ..., α N is the switching phase angle sequence, and 0<α1<α2<α3<…<α N <π / 2.
[0062] Specifically, the phases of electromagnetic waves at both ends of the cable are obtained within a preset time length, the waveform of which is a sine wave and the frequencies of which are 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz and 4.05 MHz respectively.
[0063] In the embodiments of this application, the preset duration refers to the period of the composite wave output by the unidirectional full-bridge five-frequency output inverter. In this embodiment, the composite wave period is 20 microseconds. Therefore, the phases of electromagnetic waves of 20 microseconds and frequencies of 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz at both ends of the cable are obtained. Different frequencies result in different composite wave periods, which are determined based on actual conditions.
[0064] S102. Determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable.
[0065] In the embodiments of the present application, the distance between the two ends of the cable causes the phases of the electromagnetic waves acquired at the same moment to differ. The phase time difference at the same moment refers to the time required for the phase at the electromagnetic wave output end of the cable to change to the phase at the electromagnetic wave receiving end of the cable. This phase time difference is calculated as the duration of the electromagnetic wave transmission from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable.
[0066] In addition, the phase combination of the five frequencies of electromagnetic waves used in the embodiment of the present application at any time is unique, so the phase time difference between the two ends of the cable at each moment is accurately determined by the phase of the five frequencies of electromagnetic waves at both ends of the cable in the embodiment of the present application.
[0067] Here, the embodiment of the present application can also determine the phase time difference at both ends of the cable at each moment by the phase of electromagnetic waves of other frequencies at both ends of the cable, but it is required that the phase combination of other frequencies at any moment is unique, and the specific selection of the number of frequencies and the frequency size is not specifically limited here.
[0068] Specifically, the phase and time correspondence table determines the phase time corresponding to the phases at both ends of the cable at each moment; the phase and time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies.
[0069] In the embodiment of the present application, the phase-time correspondence table stores the phases of electromagnetic waves of five frequencies at each moment during the propagation of the electromagnetic wave. For example, when the electromagnetic wave propagates for 1 / 16.2 microsecond, the phases of electromagnetic waves of five frequencies, 4.05 MHz, 2.7 MHz, 1.8 MHz, 1.2 MHz, and 800 kHz, are 90°, 60°, 40°, 26.67°, and 17.78°, respectively; when the electromagnetic wave propagates for 5 / 16.2 microsecond, the phases of electromagnetic waves of five frequencies, 4.05 MHz, 2.7 MHz, 1.8 MHz, 1.2 MHz, and 800 kHz, are 90°, 300°, 200°, 133.33°, and 88.89°, respectively.
[0070] In the phase-time correspondence table, you can find the phase time corresponding to the phase at each end of the cable. For example, if the phases of five electromagnetic waves at one end of the cable are 4.05 MHz, 2.7 MHz, 1.8 MHz, 1.2 MHz, and 800 kHz, respectively, are 90°, 60°, 40°, 26.67°, and 17.78°, the phase time is 1 / 16.2 microseconds.
[0071] Specifically, the absolute value of the difference between the phase times corresponding to the two ends of the cable at each moment is calculated to obtain the phase time difference.
[0072] In the embodiment of the present application, the absolute value of the difference between the phase times corresponding to the two ends of the cable at each moment refers to the time required for the phase of the electromagnetic wave output end at both ends of the cable to change to the phase of the electromagnetic wave receiving end at both ends of the cable, that is, the time it takes for the electromagnetic wave to be transmitted from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable.
[0073] S103. Determine the length of the cable according to all phase time differences and the propagation speed of the electromagnetic wave.
[0074] Specifically, each phase time difference is determined and the product of the phase time difference and the propagation speed of the electromagnetic wave is obtained to obtain the initial length of the cable.
[0075] In the embodiment of the present application, the initial length of the cable can be easily known by knowing the time taken for the electromagnetic wave to be transmitted from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable and the propagation speed of the electromagnetic wave.
[0076] The propagation speed of electromagnetic waves refers to the speed at which electromagnetic waves propagate in the metal armor layer of the cable.
[0077] Specifically, based on all initial lengths, a target length of the cable is determined.
[0078] Reference Figure 2 FIG. 1 is a flow chart of another method for determining cable length provided in an embodiment of the present application, and FIG. Figure 1 The following describes the steps of the embodiment of the present application:
[0079] S201: Obtain phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time period.
[0080] In the embodiment of the present application, the phase of the electromagnetic wave at the two ends of the cable within a preset time length includes the phase of the electromagnetic wave at the two ends of the cable at multiple moments.
[0081] Furthermore, the two ends of the cable refer to the two endpoints of the cable, one end serving as the electromagnetic wave output end, and the other end serving as the electromagnetic wave receiving end. The cable is provided with a cable conductor layer and a metal armor layer from the inside out. The metal armor layers at both ends of the cable are coupled with a five-frequency transmitting coil and a five-frequency receiving coil respectively. The five-frequency harmonic generator transmits the emitted synthetic wave to the five-frequency transmitting coil at one end of the cable via radio energy. The five-frequency transmitting coil couples the synthetic wave to the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthetic wave of the metal armor layer. Among them, a single-phase full-bridge five-frequency output inverter is provided in the five-frequency harmonic generator. The single-phase full-bridge five-frequency output inverter can simultaneously generate five sine waves of frequencies, namely 800kHz, 1.2MHz, 1.8MHz, 2.7MHz and 4.05MHz.
[0082] The phase detector receives the composite wave at both ends of the five-frequency transmitting coil and the five-frequency receiving coil cable, and identifies the phases of the five-frequency electromagnetic waves at both ends of the cable from the composite wave.
[0083] Here, the frequencies of the electromagnetic waves include 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz, and the synthetic wave refers to a synthetic wave of electromagnetic waves having frequencies including 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0084] S202. Determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable.
[0085] In the embodiment of the present application, due to the distance between the two ends of the cable, the phases of the electromagnetic waves obtained at the same time are different. The phase time difference at the same time refers to the time required for the phase of the electromagnetic wave output end at the two ends of the cable to change to the phase of the electromagnetic wave receiving end at the two ends of the cable. This phase time difference is used as the duration of time it takes for the electromagnetic wave to be transmitted from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable. Each moment corresponds to a phase time difference; for example, the preset duration includes moments of 1 microsecond, 2 microseconds, and 3 microseconds. Then, based on the phase of the electromagnetic wave at the two ends of the cable, the phase time difference of the electromagnetic wave at the two ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at the two ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at the two ends of the cable at 3 microseconds are determined.
[0086] S203. Determine each phase time difference and multiply it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable.
[0087] For example, the phase time difference includes the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds. Then, the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable. Therefore, the embodiments of the present application include multiple initial lengths.
[0088] S204: Determine the target length of the cable based on all initial lengths.
[0089] Optionally, an average of all initial lengths is determined as the target length of the cable.
[0090] In the embodiment of the present application, if the initial lengths a, b, and c are included, (a+b+c) / 3 is determined as the target length of the cable.
[0091] Optionally, a weighted average of all initial lengths is determined as the target length of the cable.
[0092] In the embodiment of the present application, if the initial lengths a, b, and c are included, and the weights are m, n, and x respectively, then (am+bn+cx) / 3 is determined as the target length of the cable.
[0093] Optionally, the average value of all initial lengths is determined as the first target length of the cable; the weighted average value of all initial lengths is determined as the second target length of the cable; and the weighted average value of the first target length and the second target length is determined as the final target length of the cable.
[0094] An embodiment of the present application provides another method for determining cable length, comprising: obtaining the phases of electromagnetic waves of multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset duration; determining the phase time difference between the two ends of the cable at each moment based on the phases of the electromagnetic waves at both ends of the cable; determining the initial length of the cable by multiplying each phase time difference by the propagation speed of the electromagnetic wave; and determining the target length of the cable based on all the initial lengths. Through the embodiments of the present application, the length of the cable can be determined, improving the accuracy of the determined cable length.
[0095] Reference Figure 3 FIG. 1 is a flow chart of another method for determining cable length provided in an embodiment of the present application, and FIG. Figure 1 The following describes the steps of the embodiment of the present application:
[0096] S301: Obtain phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time period.
[0097] In the embodiment of the present application, the phase of the electromagnetic wave at the two ends of the cable within a preset time length includes the phase of the electromagnetic wave at the two ends of the cable at multiple moments.
[0098] Furthermore, the two ends of the cable refer to the two end points of the cable, one end serves as the output end of the electromagnetic wave, and the other end serves as the receiving end of the electromagnetic wave. The cable is provided with a cable conductor layer and a metal armor layer from the inside to the outside. The metal armor layers at both ends of the cable are coupled with a five-frequency transmitting coil and a five-frequency receiving coil respectively. The five-frequency harmonic generator transmits the emitted synthetic wave to the five-frequency transmitting coil at one end of the cable via radio energy. The five-frequency transmitting coil transmits the synthetic wave to the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthetic wave of the metal armor layer. Among them, a single-phase full-bridge five-frequency output inverter is provided in the five-frequency harmonic generator. The single-phase full-bridge five-frequency output inverter can simultaneously generate five frequency sine waves, namely 800kHz, 1.2MHz, 1.8MHz, 2.7MHz and 4.05MHz.
[0099] The phase detector receives the composite wave at both ends of the five-frequency transmitting coil and the five-frequency receiving coil cable, and identifies the phases of the five-frequency electromagnetic waves at both ends of the cable from the composite wave.
[0100] Here, the frequencies of the electromagnetic waves include 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz, and the synthetic wave refers to a synthetic wave of electromagnetic waves having frequencies including 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0101] S302: Determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable.
[0102] In the embodiment of the present application, due to the distance between the two ends of the cable, the phases of the electromagnetic waves obtained at the same time are different. The phase time difference at the same time refers to the time required for the phase of the electromagnetic wave output end at the two ends of the cable to change to the phase of the electromagnetic wave receiving end at the two ends of the cable. This phase time difference is used as the duration of time it takes for the electromagnetic wave to be transmitted from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable. Each moment corresponds to a phase time difference; for example, the preset duration includes moments of 1 microsecond, 2 microseconds, and 3 microseconds. Then, based on the phase of the electromagnetic wave at the two ends of the cable, the phase time difference of the electromagnetic wave at the two ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at the two ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at the two ends of the cable at 3 microseconds are determined.
[0103] S303. Determine each phase time difference and multiply it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable.
[0104] For example, the phase time difference includes the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds. Then, the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable. Therefore, the embodiments of the present application include multiple initial lengths.
[0105] S304: Determine the average value of all initial lengths as the target length of the cable.
[0106] In the embodiment of the present application, if the initial lengths a, b, and c are included, (a+b+c) / 3 is determined as the target length of the cable.
[0107] An embodiment of the present application provides another method for determining cable length, comprising: obtaining the phases of electromagnetic waves having multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset duration. Based on the phases of the electromagnetic waves at both ends of the cable, determining the phase time difference between the two ends of the cable at each moment. Determining each phase time difference and multiplying it by the propagation velocity of the electromagnetic wave to obtain the initial length of the cable; and determining the average of all initial lengths as the target length of the cable. Through the embodiments of the present application, the length of the cable can be determined, improving the accuracy of the determined cable length.
[0108] Reference Figure 4FIG. 1 is a flow chart of another method for determining cable length provided in an embodiment of the present application, and FIG. Figure 1 The following describes the steps of the embodiment of the present application:
[0109] S401: Obtain phases of electromagnetic waves with multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset time period.
[0110] In the embodiment of the present application, the phase of the electromagnetic wave at the two ends of the cable within a preset time length includes the phase of the electromagnetic wave at the two ends of the cable at multiple moments.
[0111] Furthermore, the two ends of the cable refer to the two end points of the cable, one end serves as the output end of the electromagnetic wave, and the other end serves as the receiving end of the electromagnetic wave. The cable is provided with a cable conductor layer and a metal armor layer from the inside to the outside. The metal armor layers at both ends of the cable are coupled with a five-frequency transmitting coil and a five-frequency receiving coil respectively. The five-frequency harmonic generator transmits the emitted synthetic wave to the five-frequency transmitting coil at one end of the cable via radio energy. The five-frequency transmitting coil transmits the synthetic wave to the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthetic wave of the metal armor layer. Among them, a unidirectional full-bridge five-frequency output inverter is provided in the five-frequency harmonic generator. The unidirectional full-bridge five-frequency output inverter can simultaneously generate five sine waves of frequencies, namely 800kHz, 1.2MHz, 1.8MHz, 2.7MHz and 4.05MHz.
[0112] The phase detector receives the composite wave at both ends of the five-frequency transmitting coil and the five-frequency receiving coil cable, and identifies the phases of the five-frequency electromagnetic waves at both ends of the cable from the composite wave.
[0113] Here, the frequencies of the electromagnetic waves include 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz, and the synthetic wave refers to a synthetic wave of electromagnetic waves having frequencies including 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0114] S402: Determine the phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable.
[0115] In the embodiment of the present application, due to the distance between the two ends of the cable, the phases of the electromagnetic waves obtained at the same time are different. The phase time difference at the same time refers to the time required for the phase of the electromagnetic wave output end at the two ends of the cable to change to the phase of the electromagnetic wave receiving end at the two ends of the cable. This phase time difference is used as the duration of time it takes for the electromagnetic wave to be transmitted from the electromagnetic wave output end of the cable to the electromagnetic wave receiving end of the cable. Each moment corresponds to a phase time difference; for example, the preset duration includes moments of 1 microsecond, 2 microseconds, and 3 microseconds. Then, based on the phase of the electromagnetic wave at the two ends of the cable, the phase time difference of the electromagnetic wave at the two ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at the two ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at the two ends of the cable at 3 microseconds are determined.
[0116] S403. Determine each phase time difference and multiply it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable.
[0117] For example, the phase time difference includes the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond, the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds, and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds. Then, the phase time difference of the electromagnetic wave at both ends of the cable at 1 microsecond is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; the phase time difference of the electromagnetic wave at both ends of the cable at 2 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable; and the phase time difference of the electromagnetic wave at both ends of the cable at 3 microseconds is determined, and the product of the propagation velocity of the electromagnetic wave is used to obtain the initial length of the cable. Therefore, the embodiments of the present application include multiple initial lengths.
[0118] S404: Determine the weighted average of all initial lengths as the target length of the cable.
[0119] In the embodiment of the present application, if the initial lengths a, b, and c are included, and the weights are m, n, and x respectively, then (am+bn+cx) / 3 is determined as the target length of the cable.
[0120] An embodiment of the present application provides another method for determining the length of a cable, the method comprising: obtaining the phases of electromagnetic waves of multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset time length; determining the phase time difference at both ends of the cable at each moment based on the phases of the electromagnetic waves at both ends of the cable; determining each phase time difference and multiplying it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable; and determining the weighted average of all initial lengths as the target length of the cable; through the implementation of the present application, the length of the cable can be determined, thereby improving the accuracy of the determined cable length.
[0121] Based on the same inventive concept, an embodiment of the present application also provides a device for determining the cable length corresponding to the method for determining the cable length. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the method for determining the cable length in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0122] Reference Figure 5 FIG. 1 is a schematic diagram of a device for determining cable length provided in an embodiment of the present application, wherein the device for determining cable length includes:
[0123] An acquisition module 501 is configured to acquire the phases of electromagnetic waves having multiple frequencies and sinusoidal waveforms at both ends of the cable within a preset time period;
[0124] A determination module 502 is configured to determine a phase time difference between the two ends of the cable at each moment based on the phase of the electromagnetic wave at the two ends of the cable;
[0125] The determination module 502 is further configured to determine the length of the cable according to all phase time differences and the propagation speed of the electromagnetic wave.
[0126] In a possible implementation, the acquisition module 501 is specifically configured to acquire phases of electromagnetic waves at both ends of the cable within a preset time period, the waveform of which is a sinusoidal wave and the frequencies of which are 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
[0127] In one possible implementation, the determination module 502 is specifically used to determine the phase time corresponding to the phase at both ends of the cable at each moment in a phase-time correspondence table; the phase-time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies; and calculate the absolute value of the difference between the phase times corresponding to both ends of the cable at each moment to obtain the phase-time difference.
[0128] In a possible implementation, the determination module 502 is specifically configured to determine the product of each phase time difference and the propagation speed of the electromagnetic wave to obtain the initial length of the cable; and determine the target length of the cable based on all the initial lengths.
[0129] In a possible implementation, the determination module 502 is specifically configured to determine an average value of all initial lengths as the target length of the cable.
[0130] In a possible implementation, the determination module 502 is specifically configured to determine a weighted average of all initial lengths as the target length of the cable.
[0131] An embodiment of the present application provides a device for determining cable length, comprising: an acquisition module 501 for acquiring the phases of electromagnetic waves having multiple frequencies and sinusoidal waveforms at both ends of a cable within a preset duration; a determination module 502 for determining the phase time difference between the two ends of the cable at each moment based on the phases of the electromagnetic waves at both ends of the cable; and a determination module 502 for determining the length of the cable based on all phase time differences and the propagation speed of the electromagnetic waves. The present application determines the phase time difference by simultaneously determining the phases of electromagnetic waves having multiple frequencies at both ends of the cable, and can determine the length of the cable based on the phase time difference and the propagation speed of the electromagnetic waves, thereby improving the accuracy of the determined cable length.
[0132] like Figure 6 As shown, an electronic device 600 provided in an embodiment of the present application includes: a processor 601, a memory 602 and a bus, the memory 602 stores machine-readable instructions executable by the processor 601, and when the electronic device is running, the processor 601 communicates with the memory 602 through the bus, and the processor 601 executes the machine-readable instructions to perform the steps of the cable length determination method as described above.
[0133] Specifically, the memory 602 and processor 601 can be general-purpose memories and processors, which are not specifically limited here. When the processor 601 runs the computer program stored in the memory 602, the method for determining the cable length can be executed.
[0134] Corresponding to the above-mentioned method for determining the cable length, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, the steps of the above-mentioned method for determining the cable length are executed.
[0135] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0136] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed across multiple network elements. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0137] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0138] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the information processing method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
[0139] The above are only specific embodiments of the present application, but the scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A method for determining cable length, characterized in that: The method for determining the cable length includes: Obtaining the phases of five-frequency, sinusoidal electromagnetic waves at both ends of a cable within a preset duration; wherein the metal armor layers at both ends of the cable are respectively coupled to a five-frequency transmitting coil and a five-frequency receiving coil, a five-frequency harmonic generator transmits the synthesized wave to the five-frequency transmitting coil at one end of the cable via wireless energy, the five-frequency transmitting coil transmits the synthesized wave through the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthesized wave from the metal armor layer; In the phase-time correspondence table, the phase time corresponding to the phase at each end of the cable at each moment is determined; the phase-time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies; the phase combination of the electromagnetic waves of the five frequencies used at any moment is unique; in the phase-time correspondence table, the phase time corresponding to the phase at each end of the cable can be found; Calculate the absolute value of the difference between the phase times corresponding to the two ends of the cable at each moment to obtain the phase time difference; The length of the cable is determined according to all the phase time differences and the propagation speed of the electromagnetic wave.
2. The method for determining the cable length according to claim 1, wherein: The obtaining of the phases of the electromagnetic waves having five frequencies and sinusoidal waveforms at both ends of the cable within a preset time period includes: Obtain the phases of electromagnetic waves at both ends of the cable within a preset time length, with a waveform of a sinusoidal wave and frequencies of 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
3. The method for determining the cable length according to claim 1, wherein: The determining the length of the cable according to all the phase time differences and the propagation speed of the electromagnetic wave includes: Determine each phase time difference and multiply it by the propagation speed of the electromagnetic wave to obtain the initial length of the cable; Based on all of the initial lengths, a target length of the cable is determined.
4. The method for determining the cable length according to claim 3, wherein: Determining the target length of the cable according to all the initial lengths includes: The average of all the initial lengths is determined as the target length of the cable.
5. The method for determining the cable length according to claim 3, wherein: Determining the target length of the cable according to all the initial lengths further includes: A weighted average of all the initial lengths is determined as the target length of the cable.
6. A device for determining cable length, characterized in that: The device for determining the cable length comprises: An acquisition module is configured to acquire the phases of five-frequency, sinusoidal electromagnetic waves at both ends of a cable within a preset duration. The metal armor layers at both ends of the cable are coupled to a five-frequency transmitting coil and a five-frequency receiving coil, respectively. A five-frequency harmonic generator transmits a synthesized wave to the five-frequency transmitting coil at one end of the cable via wireless power. The five-frequency transmitting coil transmits the synthesized wave through the metal armor layer, and the five-frequency receiving coil at the other end of the cable extracts the synthesized wave from the metal armor layer. A determination module is configured to determine the phase time corresponding to the phases at both ends of the cable at each moment in a phase-time correspondence table; the phase-time correspondence table stores the phases and propagation times of electromagnetic waves of multiple frequencies; calculate the absolute value of the difference between the phase times corresponding to both ends of the cable at each moment to obtain the phase-time difference; the phase combination of the five frequencies of electromagnetic waves used at any moment is unique; and the phase time corresponding to the phases at both ends of the cable can be found in the phase-time correspondence table; The determination module is further configured to determine the length of the cable according to all the phase time differences and the propagation speed of the electromagnetic wave.
7. The device for determining the cable length according to claim 6, characterized in that: The acquisition module is specifically used to: Obtain the phases of electromagnetic waves at both ends of the cable within a preset time length, with a waveform of a sinusoidal wave and frequencies of 800 kHz, 1.2 MHz, 1.8 MHz, 2.7 MHz, and 4.05 MHz.
8. An electronic device, characterized in that: include: A processor, a storage medium, and a bus, wherein the storage medium stores machine-readable instructions executable by the processor. When the electronic device is running, the processor and the storage medium communicate via the bus, and the processor executes the machine-readable instructions to perform the steps of the method for determining the cable length as described in any one of claims 1 to 5.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method for determining the cable length according to any one of claims 1 to 5 are executed.
Citation Information
Patent Citations
Computing method for accurate time delay based on long term evolution (LTE) locating and reference signal characteristic
CN103200677A
Coiled cable length measuring system and method based on time-frequency domain
CN113295081A
Line selective time division communication system
US4010326A