Signal transmission method
By dynamically adjusting the pipeline signal transmission mode and frequency, the problem of unstable signal transmission in complex environments is solved, efficient and stable signal transmission is achieved, adapting to environmental changes, and reducing the risk of signal interruption.
Patent Information
- Application Number
- CN202510348678.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-07-08
AI Technical Summary
In pipeline signal transmission, the prior art is difficult to cope with signal transmission interference caused by complex and changing environmental conditions, resulting in transmission signal distortion, increased bit error rate and reduced transmission efficiency, and fluctuations in sensor performance affect signal stability.
By collecting transmission medium data and sensor performance data inside the pipeline, dynamically adjust the transmission mode and frequency, use the conversion device to switch to electromagnetic transmission mode, and frequency adjustment is performed based on real-time and historical environmental data to ensure the stability and efficiency of signal transmission.
It improves the accuracy and efficiency of signal transmission, reduces the risk of signal interruption or quality decline caused by environmental mutations, provides a stable and secure communication environment, and significantly improves the performance of the communication network.
Smart Images

Figure CN120281433A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular, to a signal transmission method. Background Art
[0002] In the transmission of pipeline signals, the transmission mode, frequency, and integrity during the transmission process of signals are crucial for the accurate acquisition and transmission efficiency of data. In related technologies, a fixed transmission mode (such as analog signals or digital signals) is mainly used for data transmission at a single frequency. However, due to the complex and changeable internal environment conditions of the pipeline (such as changes in temperature, pressure, and humidity), different environmental characteristics have a great impact on the transmission characteristics of signals. It is difficult for the signal transmission method to cope with the signal transmission interference caused by environmental changes, and problems such as signal transmission distortion, increased error rate, and reduced transmission efficiency are likely to occur.
[0003] In addition, the performance of sensors in the pipeline may fluctuate with the running time and environmental changes, resulting in a decrease in the signal transmission stability. Therefore, how to improve the signal transmission efficiency is still a technical problem to be solved. Summary of the Invention
[0004] In view of this, the present invention provides a signal transmission method, aiming to improve the signal transmission efficiency.
[0005] In a first aspect, the present application provides a signal transmission method, including: collecting the transmission medium data inside the pipeline and the performance data of the sensor, and determining the initial transmission mode of the sensor according to the transmission medium data and the performance data; the sensor is arranged inside the pipeline; collecting the first input signal of the sensor and the first output signal received by the terminal device, and determining whether to switch the initial transmission mode according to the first input signal and the first output signal; the terminal device is arranged outside the pipeline; when it is determined to switch the initial transmission mode, switching the initial transmission mode to an electromagnetic transmission mode based on a conversion device; the conversion device is arranged on one side of the sensor; collecting the length data of the pipeline, and determining the initial transmission frequency of the sensor based on the length data, the transmission medium data, and the performance data; collecting the second input signal and the second output signal in the sensor signal conversion stage and the third input signal and the third output signal in the terminal device signal restoration stage, and determining whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal, and the third output signal; when it is determined to adjust the initial transmission frequency, collecting the real-time environmental data inside the pipeline, comparing the real-time environmental data with the historical environmental data, adjusting the initial transmission frequency according to the comparison result, and transmitting data based on the adjusted initial transmission frequency.
[0006] Optionally, obtain a signal transmission score based on the transmission medium data and performance data, and compare the signal transmission score with a first signal transmission score and a second signal transmission score; when the signal transmission score is less than or equal to the first signal transmission score, determine that the initial transmission mode is analog signal transmission; when the signal transmission score is greater than the first signal transmission score and less than or equal to the second signal transmission score, determine that the initial transmission mode is serial digital signal transmission; when the signal transmission score is greater than the second signal transmission score, determine that the initial transmission mode is parallel digital signal transmission mode or differential signal transmission mode.
[0007] Optionally, calculate an integrity score of the signal during transmission according to the first input signal and the first output signal; when the integrity score is greater than or equal to the integrity score threshold, determine not to switch the initial transmission mode; when the integrity score is less than the integrity score threshold, determine to switch the initial transmission mode.
[0008] Optionally, the integrity score satisfies the following formula:
[0009]
[0010] Wherein, C represents the integrity score, Vo represents the amplitude of the output signal, Vi represents the amplitude of the input signal, BER represents the bit error rate, A represents the calculation part of the delay score, B represents the calculation part of the waveform similarity score, To represents the delay of the output signal, Ti represents the delay of the input signal, TL represents the ideal delay, MSE represents the mean square error, MSEL represents the ideal mean square error, and ω1, ω2, ω3, and ω4 represent weight coefficients.
[0011] Optionally, the initial transmission frequency satisfies the following formula:
[0012]
[0013] Wherein, f0 represents the initial transmission power, L represents the length of the pipeline, ε represents the dielectric constant of the transmission medium, μ represents the magnetic permeability of the transmission medium, Fp represents the performance factor of the sensor, and c represents the speed of light.
[0014] Optionally, collect the conversion time between the second input signal and the second output signal; collect the restoration time between the third input signal and the third output signal; collect the transmission time between the second output signal and the third input signal; calculate a transmission efficiency score according to the conversion time, the restoration time, and the transmission time; when the transmission efficiency score is greater than or equal to the transmission efficiency score threshold, determine not to adjust the initial transmission frequency; when the transmission efficiency score is less than the transmission efficiency score threshold, determine to adjust the initial transmission frequency.
[0015] Optionally, the transmission efficiency score satisfies the following formula:
[0016]
[0017] Among them, E represents the transmission efficiency score, Tc is the conversion time, Tr is the restoration time, Tt is the transmission time, α represents the conversion time influence coefficient, β represents the restoration time influence coefficient, k is the first constant, and γ is the second constant.
[0018] Optionally, when there is historical environmental data identical to the real-time environmental data in the historical environmental database, calculate the first adjustment coefficient according to the real-time environmental data, and adjust the initial transmission frequency according to the first adjustment coefficient; when there is no historical environmental data identical to the real-time environmental data in the historical environmental database, calculate the similarity results between the real-time environmental data and each piece of historical environmental data in the historical environmental database respectively, and adjust the initial transmission frequency according to the similarity results.
[0019] Optionally, calculate the first adjustment coefficient according to the real-time environmental data, and take the product value of the first adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency; among them, the real-time environmental data includes real-time temperature data, real-time humidity data, real-time pressure data, and real-time flow rate data.
[0020] Optionally, compare each similarity result with the similarity threshold, screen out the target historical environmental data whose similarity result is greater than or equal to the similarity threshold from the historical environmental data, and establish a target historical environmental data set based on the target historical environmental data; among them, the target historical environmental data set includes historical temperature data, historical humidity data, historical pressure data, and historical flow rate data; calculate the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate according to the target historical environmental data set; determine the second adjustment coefficient according to the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate, and take the product value of the second adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency.
[0021] Second aspect, the present application proposes a signal transmission device, including: an acquisition unit and a processing unit; the acquisition unit is configured to collect the transmission medium data inside the pipeline and the performance data of the sensor, and the processing unit is configured to determine the initial transmission mode of the sensor according to the transmission medium data and the performance data; the sensor is arranged inside the pipeline; the acquisition unit is configured to collect the first input signal of the sensor and the first output signal received by the terminal device, and the processing unit is configured to determine whether to switch the initial transmission mode according to the first input signal and the first output signal; the terminal device is arranged outside the pipeline; the processing unit is configured to, when it is determined to switch the initial transmission mode, switch the initial transmission mode to the electromagnetic transmission mode based on the conversion device; the conversion device is arranged on one side of the sensor; the processing unit is configured to collect the length data of the pipeline, and determine the initial transmission frequency of the sensor based on the length data, the transmission medium data and the performance data; the acquisition unit is configured to collect the second input signal and the second output signal in the sensor signal conversion stage and the third input signal and the third output signal in the terminal device signal restoration stage, and the processing unit is configured to determine whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal and the third output signal; the processing unit is configured to, when it is determined to adjust the initial transmission frequency, collect the real-time environment data inside the pipeline, compare the real-time environment data with the historical environment data, adjust the initial transmission frequency according to the comparison result, and transmit data based on the adjusted initial transmission frequency.
[0022] Third aspect, there is provided a signal transmission device, including a memory and a processor; the memory is used to store computer execution instructions, and the processor is connected to the memory through a bus; when the signal transmission device runs, the processor executes the computer execution instructions stored in the memory, so that the signal transmission device executes the signal transmission method of the first aspect.
[0023] The signal transmission device may be a network device or a part of the network device, such as a chip system in the network device. The chip system is used to support the network device to implement the functions involved in the first aspect and any one of its possible implementation manners. For example, it acquires, determines, and sends the data and / or information involved in the above signal transmission method. The chip system includes a chip and may also include other discrete devices or circuit structures.
[0024] Fourth aspect, there is provided a computer-readable storage medium, the computer-readable storage medium includes computer execution instructions, and when the computer execution instructions run on a computer, the computer is caused to execute the signal transmission method of the first aspect.
[0025] Fifth aspect, there is also provided a computer program product which includes computer instructions. When the computer instructions run on a signal transmission device, the signal transmission device is caused to execute the signal transmission method as described in the first aspect above.
[0026] It should be noted that the above computer instructions can be stored in whole or in part on a computer-readable storage medium. Among them, the computer-readable storage medium can be packaged together with the processor of the signal transmission device, or can be separately packaged from the processor of the signal transmission device. The embodiments of the present application do not make any limitation in this regard.
[0027] For the descriptions of the second aspect, the third aspect, the fourth aspect and the fifth aspect in the present application, reference can be made to the detailed description of the first aspect.
[0028] In the embodiments of the present application, the name of the above signal transmission device does not constitute a limitation to the device or functional module itself. In actual implementation, these devices or functional modules may appear under other names. For example, the receiving unit can also be called a receiving module, a receiver, etc. As long as the functions of each device or functional module are similar to those of the present application and fall within the scope of the claims of the present application and their equivalent technologies.
[0029] Compared with the prior art, the signal transmission device in the present application collects the transmission medium data inside the pipeline and the performance data of the sensor, and determines the initial transmission mode of the sensor according to the transmission medium data and the performance data, so as to effectively improve the accuracy and efficiency of signal transmission. Obtain and judge whether to switch the initial transmission mode according to the first input signal of the sensor and the first output signal received by the terminal device. When it is determined to switch the initial transmission mode, the initial transmission mode is switched to the electromagnetic transmission mode based on the conversion device, and the initial transmission frequency of the sensor is determined based on the length data, the transmission medium data and the performance data. Furthermore, the signal transmission device collects and determines whether to adjust the initial transmission frequency based on the second input signal in the sensor signal conversion stage, the second output signal, the third input signal in the terminal device signal restoration stage, and the third output signal. When adjusting the initial transmission frequency, collect the real-time environment data inside the pipeline, compare the real-time environment data with the historical environment data, adjust the initial transmission frequency according to the comparison result, and transmit data based on the adjusted initial transmission frequency. Through real-time monitoring and historical data analysis, the system can predict and adapt to environmental changes, so as to maintain the optimal signal transmission performance under different conditions. In addition, this method can also reduce the risk of signal interruption or quality degradation caused by sudden environmental changes, and provide a more stable and secure operating environment for the communication system. Through this intelligent frequency adjustment strategy, the performance of the communication network can be significantly improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] By reading the following detailed description of the preferred embodiments, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present invention. Moreover, throughout the drawings, the same reference symbols are used to represent the same components. In the drawings:
[0031] Figure 1 FIG. is a schematic structural diagram of a signal transmission system provided by an embodiment of the present application;
[0032] Figure 2 FIG. is a schematic hardware structure diagram of a signal transmission device provided by an embodiment of the present application;
[0033] Figure 3 FIG. is a schematic flowchart of a signal transmission method provided by an embodiment of the present application;
[0034] Figure 4 FIG. is a schematic structural diagram of another signal transmission device provided by an embodiment of the present application. Detailed Embodiments
[0035] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided so that the present disclosure can be more thoroughly understood and the scope of the present disclosure can be completely conveyed to those skilled in the art. It should be noted that, without conflict, the embodiments in the present invention and the features in the embodiments can be combined with each other. The present invention will be described in detail below with reference to the drawings and in combination with the embodiments.
[0036] In signal transmission, the transmission mode, frequency, and integrity during the transmission process of signals are crucial for the accurate acquisition and transmission efficiency of data. In the related art, a fixed transmission mode (such as analog signals or digital signals) is mainly used for data transmission at a single frequency. However, due to the complex and variable internal environment conditions of the pipeline (such as changes in temperature, pressure, and humidity), different environmental characteristics have a greater impact on the transmission characteristics of signals. The signal transmission method is difficult to cope with the signal transmission interference caused by environmental changes, and problems such as signal distortion, increased error rate, and reduced transmission efficiency are likely to occur. In addition, the performance of sensors in the pipeline may fluctuate with the running time and environmental changes, resulting in a decrease in the signal transmission stability. Therefore, how to improve the transmission efficiency of pipeline signals is still a technical problem to be solved.
[0037] In this case, an embodiment of the present application provides a signal transmission method, including: collecting transmission medium data inside the pipeline and performance data of the sensor, and determining an initial transmission mode of the sensor according to the transmission medium data and the performance data; the sensor is arranged inside the pipeline; collecting a first input signal of the sensor and a first output signal received by the terminal device, and determining whether to switch the initial transmission mode according to the first input signal and the first output signal; the terminal device is arranged outside the pipeline; when it is determined to switch the initial transmission mode, switching the initial transmission mode to an electromagnetic transmission mode based on a conversion device; the conversion device is arranged on one side of the sensor; collecting length data of the pipeline, and determining an initial transmission frequency of the sensor based on the length data, the transmission medium data, and the performance data; collecting a second input signal and a second output signal in the sensor signal conversion stage and a third input signal and a third output signal in the terminal device signal restoration stage, and determining whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal, and the third output signal; when it is determined to adjust the initial transmission frequency, collecting real-time environment data inside the pipeline, comparing the real-time environment data with historical environment data, adjusting the initial transmission frequency according to the comparison result, and transmitting data based on the adjusted initial transmission frequency.
[0038] As can be seen from the above, the signal transmission device in the present application collects transmission medium data inside the pipeline and performance data of the sensor, and determines the initial transmission mode of the sensor according to the transmission medium data and the performance data, which can effectively improve the accuracy and efficiency of signal transmission. Obtaining and determining whether to switch the initial transmission mode according to the first input signal of the sensor and the first output signal received by the terminal device, when it is determined to switch the initial transmission mode, switching the initial transmission mode to an electromagnetic transmission mode based on the conversion device, and determining the initial transmission frequency of the sensor based on the length data, the transmission medium data, and the performance data. Furthermore, the signal transmission device collects and determines whether to adjust the initial transmission frequency based on the second input signal, the second output signal in the sensor signal conversion stage and the third input signal, the third output signal in the terminal device signal restoration stage. When adjusting the initial transmission frequency, collecting real-time environment data inside the pipeline, comparing the real-time environment data with historical environment data, adjusting the initial transmission frequency according to the comparison result, and transmitting data based on the adjusted initial transmission frequency. Through real-time monitoring and historical data analysis, the system can predict and adapt to environmental changes, so as to maintain the optimal signal transmission performance under different conditions. In addition, this method can also reduce the risk of signal interruption or quality degradation caused by sudden environmental changes, and provide a more stable and secure operating environment for the communication system. Through this intelligent frequency adjustment strategy, the performance of the communication network can be significantly improved.
[0039] The above signal transmission method can be applied to a signal transmission system.Figure 1 shows a schematic structural diagram of the signal transmission system. As Figure 1 shown, the signal transmission system includes: a data-to-be-acquired pipeline 101, a sensor group 102, and a signal transmission device 103. Among them, the sensor group 102 includes multiple sensors. The signal transmission device 103 is connected to each sensor in the sensor group 102.
[0040] Optionally, the data-to-be-acquired pipeline 101 can be pipelines of different types, such as natural gas pipelines, crude oil pipelines, refined product pipelines, etc.
[0041] The sensors in the sensor group 102 are used to collect data of the data-to-be-acquired pipeline 101, such as parameters such as magnetic signals, temperature, speed, etc. at the detection points.
[0042] Optionally, the sensors in the above-mentioned sensor group 102 can include ultrasonic sensors, temperature sensors, vibration sensors, flow sensors, signal sensors, transmission medium sensors, and pressure sensors, etc. Magnetic signal sensors are usually used to detect the magnetic signal intensity of the object to be detected. Speed sensors are usually used to detect the speed of the object to be detected. Temperature sensors are usually used to detect the temperature of the object to be detected. Vibration sensors are usually used to detect the vibration state of the object to be detected. Flow sensors are usually used to detect the flow rate generated when the fluid flows in the object to be detected. Ultrasonic sensors are used to detect the length of the object to be detected. Signal sensors are used to detect the signal intensity of the object to be detected, and transmission medium sensors are used to detect the transmission medium data of the object to be detected. Pressure sensors are usually used to detect the pressure of the object to be detected.
[0043] In the embodiments of the present application, the sensors in the sensor group 102 can emit detection signals to the data-to-be-acquired pipeline 101 and obtain the detection data of the data-to-be-acquired pipeline 101 (i.e., the data collected by the sensors). Then, the sensors in the sensor group 102 can send the data they collect to the signal transmission device 103 wirelessly.
[0044] The signal transmission device 103 can wirelessly receive the original data collected by the sensors in the sensor group 102 and determine the data acquisition result according to the data collected by the sensors in the sensor group 102.
[0045] Optionally, the signal transmission device 103 can include a preprocessing unit. The preprocessing unit is wirelessly connected to the sensor group 102 deployed on the data-to-be-acquired pipeline 101, and is used to collect the scale data of the sensor group 102 and determine the data preprocessing period according to the scale data.
[0046] Optionally, the signal transmission device 103 may further include a processing unit. After determining the data acquisition result, the data acquisition result may be sent to the processing unit so that the processing unit can also make a reasonable risk assessment and respond quickly.
[0047] Optionally, the processing unit may also be a processing unit of other devices other than the signal transmission device 103, and the embodiments of the present application do not limit this.
[0048] Optionally, the physical device of the signal transmission device 103 may be a server, a terminal, or other types of electronic devices, and the embodiments of the present application do not limit this.
[0049] Optionally, the above terminal may be at least one of devices such as a smart phone, a smart watch, a desktop computer, a laptop computer, a virtual reality terminal, an augmented reality terminal, a wireless terminal, and a laptop portable computer.
[0050] Optionally, the above server may be a server in a server cluster (composed of multiple servers), a chip in the server, a system on a chip in the server, or may also be implemented by a virtual machine (VM) deployed on a physical machine. The embodiments of the present application do not limit this.
[0051] The basic hardware structure of the signal transmission device 103 includes Figure 2 the components included in the signal transmission device shown. Below, taking Figure 2 the signal transmission device shown as an example, the hardware structure of the signal transmission device 103 is introduced.
[0052] As Figure 2 shown, it is a schematic diagram of a hardware structure of a signal transmission device provided by an embodiment of the present application. The signal transmission device includes a processor 21, a memory 22, a communication interface 23, and a bus 24. The processor 21, the memory 22, and the communication interface 23 can be connected through the bus 24.
[0053] The processor 21 is the control center of the signal transmission device, which can be a single processor or a collective term for multiple processing elements. For example, the processor 21 can be a general-purpose central processing unit (CPU), or other general-purpose processors. Among them, the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0054] As an embodiment, the processor 21 may include one or more CPUs, such as Figure 2 the CPU 0 and CPU 1 shown in
[0055] The memory 22 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or can also be an electrically erasable programmable read-only memory (EEPROM), a magnetic disk storage medium or other magnetic storage devices, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.
[0056] In a possible implementation, the memory 22 can exist independently of the processor 21. The memory 22 can be connected to the processor 21 through the bus 24 and is used to store instructions or program code. When the processor 21 calls and executes the instructions or program code stored in the memory 22, the signal transmission method provided in the following embodiments of the present application can be implemented.
[0057] In the embodiments of the present application, for the signal transmission device 103, the software programs stored in the memory 22 are different, so the functions implemented by the signal transmission device 103 are different. The functions performed by each device will be described in conjunction with the following flowcharts.
[0058] In another possible implementation, the memory 22 can also be integrated with the processor 21.
[0059] The communication interface 23 is used for the signal transmission device to be connected to other devices through a communication network. The communication network can be an Ethernet, a radio access network, a wireless local area network (WLAN), etc. The communication interface 23 can include a receiving unit for receiving data and a sending unit for sending data.
[0060] The bus 24 can be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 2 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.
[0061] It should be noted that Figure 2 the structure shown in Figure 2 does not constitute a limitation on the signal transmission device. In addition to
[0062] the components shown, the signal transmission device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0063] The signal transmission method provided by the embodiments of the present application is applied to Figure 1 the signal transmission device 103 in the signal transmission system shown in Figure 3 the figure. As
[0064] shown, the signal transmission method includes:
[0065] Among them, the sensor is arranged inside the pipeline.
[0066] Optionally, the transmission medium data includes the dielectric constant and magnetic permeability of the transmission medium, and the performance data includes sensor sensitivity, accuracy, resolution, and response time.
[0067] It can be understood that by determining the initial transmission mode of the sensor according to the transmission medium data and performance data, the accuracy and efficiency of signal transmission can be effectively improved. Comparing the transmission score with the first transmission score threshold and the second transmission score threshold, and determining the initial transmission mode according to the comparison result, which has flexibility and adaptability in practical applications.
[0068] S302. The signal transmission device collects the first input signal of the sensor and the first output signal received by the terminal device, and determines whether to switch the initial transmission mode according to the first input signal and the first output signal.
[0069] Among them, the terminal device is arranged outside the pipeline.
[0070] In a possible implementation manner, the sensor is started, and after the sensor operates for the first time period, the first input signal of the sensor and the first output signal received by the external terminal device are collected.
[0071] In this way, the system can dynamically adjust the transmission mode according to the actual signal transmission situation, thereby ensuring the stability and reliability of signal transmission.
[0072] S303. When it is determined to switch the initial transmission mode, the signal transmission device switches the initial transmission mode to the electromagnetic transmission mode based on the conversion device.
[0073] Among them, the conversion device is set on the sensor side.
[0074] It should be explained that the initial transmission mode is determined according to the transmission medium and sensor performance, and the initial transmission mode is the electrical signal transmission mode. The electromagnetic transmission mode is an option based on the conversion device when the initial transmission mode needs to be switched. The conversion device can automatically select the most suitable transmission mode according to the calculation results of the signal integrity score and transmission score to ensure the efficiency and quality of signal transmission.
[0075] S304. The signal transmission device collects the length data of the pipeline and determines the initial transmission frequency of the sensor based on the length data, transmission medium data, and performance data.
[0076] Among them, the initial transmission frequency satisfies the following formula:
[0077]
[0078] Among them, f0 represents the initial transmission power, L represents the length of the pipeline, ε represents the dielectric constant of the transmission medium, μ represents the magnetic permeability of the transmission medium, Fp represents the performance factor of the sensor, and c represents the speed of light.
[0079] It should be explained that the performance factor of the sensor is obtained by theoretical calculation of the physical structure and material properties of the sensor or prediction using simulation tools.
[0080] It can be understood that the calculation of the initial transmission frequency takes into account the pipeline length, physical properties of the transmission medium, and sensor performance, ensuring that the frequency of signal transmission matches the actual transmission conditions. In this way, problems such as signal attenuation or interference caused by improper frequency selection can be effectively avoided, thereby further improving the stability and reliability of signal transmission. In practical applications, this frequency calculation method based on physical parameters and sensor performance can provide an optimized starting point for signal transmission and a reference basis for subsequent possible frequency adjustments.
[0081] S305. The signal transmission device collects the second input signal in the sensor signal conversion stage, the second output signal, the third input signal in the terminal device signal restoration stage, and the third output signal, and determines whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal, and the third output signal.
[0082] Optionally, adjusting the initial transmission frequency is to optimize the signal transmission process and ensure the integrity and efficiency of the signal during transmission.
[0083] S306. When it is determined to adjust the initial transmission frequency, the signal transmission device collects the real-time environmental data inside the pipeline, compares the real-time environmental data with the historical environmental data, adjusts the initial transmission frequency according to the comparison result, and transmits data based on the adjusted initial transmission frequency.
[0084] It should be noted that the collection and analysis of real-time environmental data are crucial for the dynamic adjustment of the signal transmission frequency. By real-time monitoring of environmental factors such as temperature, humidity, and pressure inside the pipeline, the system can promptly capture any changes that may affect the signal transmission quality.
[0085] It can be understood that through the collection of real-time environmental data and the comparison with the historical environmental database, the system can flexibly adjust the signal transmission frequency to adapt to the changing environmental conditions. This dynamic adjustment mechanism ensures the efficiency and stability of the signal transmission process, and also improves the adaptability and robustness of the entire system.
[0086] In some embodiments of the present application, in the above S301, the signal transmission device determines the initial transmission mode of the sensor according to the transmission medium data and the performance data, specifically including:
[0087] S401. The signal transmission device obtains a signal transmission score according to the transmission medium data and the performance data, and compares the signal transmission score with the first signal transmission score and the second signal transmission score.
[0088] In a possible implementation manner, before the signal transmission device obtains the signal transmission score according to the transmission medium data and the performance data, it normalizes the transmission medium data and the performance data to unify the dimensions of different parameters; and performs weighted summation on the normalized data to obtain the final transmission score.
[0089] It should be noted that the setting of the weight coefficient is based on the influence degree of different parameters on the transmission efficiency, ensuring that the scoring result can truly reflect the comprehensive performance of the transmission medium and the sensor.
[0090] S402. When the signal transmission score is less than or equal to the first signal transmission score, the signal transmission device determines that the initial transmission mode is analog signal transmission.
[0091] It can be understood that when the transmission score is less than or equal to the first transmission score threshold, it is determined that the initial transmission mode is analog signal transmission, which indicates that the characteristics of the transmission medium are not suitable for digital signal transmission. Therefore, choosing analog signal transmission can ensure the stability and reliability of the signal.
[0092] S403. When the signal transmission score is greater than the first signal transmission score and less than or equal to the second signal transmission score, the signal transmission device determines that the initial transmission mode is serial digital signal transmission.
[0093] It is understandable that when the transmission score is greater than the first transmission score threshold and less than or equal to the second transmission score, serial digital signal transmission is selected, which indicates that the performance of the transmission medium and the sensor is at a medium level, and serial digital signal transmission can provide better transmission efficiency and accuracy.
[0094] S404. When the signal transmission score is greater than the second signal transmission score, the signal transmission device determines that the initial transmission mode is a parallel digital signal transmission mode or a differential signal transmission mode.
[0095] It should be explained that when the transmission score is greater than the second transmission score threshold, a parallel digital signal transmission mode or a differential signal transmission mode is selected, which indicates that the performance of the transmission medium and the sensor is very excellent and is suitable for using a transmission method with high efficiency and high accuracy.
[0096] It is understandable that in this way, the most suitable signal transmission mode can be flexibly selected according to different transmission media and sensor performances, so as to optimize the working efficiency and performance of the entire signal transmission system. Comparing the transmission score with the first transmission score threshold and the second transmission score threshold, and determining the initial transmission mode according to the comparison result has flexibility and adaptability in practical applications.
[0097] In some embodiments of the present application, in S302 above, the signal transmission device determines whether to switch the initial transmission mode according to the first input signal and the first output signal, specifically including:
[0098] S501. The signal transmission device calculates the integrity score of the signal during transmission according to the first input signal and the first output signal.
[0099] The integrity score satisfies the following formula:
[0100]
[0101] Where C represents the integrity score, Vo represents the amplitude of the output signal, Vi represents the amplitude of the input signal, BER represents the bit error rate, A represents the calculation part of the delay score, B represents the calculation part of the waveform similarity score, To represents the delay of the output signal, Ti represents the delay of the input signal, TL represents the ideal delay, MSE represents the mean square error, MSEL represents the ideal mean square error, and ω1, ω2, ω3, and ω4 represent the weight coefficients.
[0102] It should be explained that the integrity score is calculated comprehensively based on multiple parameters, where ω1, ω2, ω3, and ω4 are weight coefficients corresponding to the importance of the output signal amplitude, bit error rate, delay score, and waveform similarity score respectively. The setting of these weight coefficients is determined according to different requirements for signal transmission quality in actual applications. For example, if the integrity requirement for the signal is very high, the weight coefficient ω2 of the bit error rate may be set relatively large to ensure the accuracy of signal transmission. On the contrary, if the real-time performance of transmission is more important, the weight coefficient ω3 of the delay score may be given a larger value. By adjusting these weight coefficients, the integrity score can be made more in line with the needs of actual applications, thus providing a more accurate basis for the selection of signal transmission modes.
[0103] Optionally, the calculation method of the integrity score provides a way to quantify the signal transmission quality, enabling the system to decide whether to switch the transmission mode according to the actual performance of the signal during transmission. This dynamic adjustment mechanism not only improves the efficiency of signal transmission but also enhances the robustness of the system, ensuring the stability and reliability of signal transmission in various complex environments.
[0104] It can be understood that judging whether to switch the initial transmission mode according to the integrity score of the signal during transmission is an effective method to ensure the reliability of signal transmission.
[0105] S502. When the integrity score is greater than or equal to the integrity score threshold, the signal transmission device determines not to switch the initial transmission mode.
[0106] Optionally, the integrity score threshold is 0.85.
[0107] It should be explained that when the integrity score is relatively high, it indicates that the signal has less loss during transmission and can maintain a relatively high quality. Therefore, there is no need to switch the transmission mode.
[0108] S503. When the integrity score is less than the integrity score threshold, the signal transmission device determines to switch the initial transmission mode.
[0109] It should be explained that when the integrity score is relatively low, it indicates that the signal may be interfered or lost during transmission. At this time, switching to a more suitable transmission mode can improve the signal transmission quality and reduce information loss.
[0110] In some embodiments of the present application, in the above S305, the signal transmission device determines whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal, and the third output signal, specifically including:
[0111] S601. The signal transmission device collects the conversion time between the second input signal and the second output signal.
[0112] S602. The signal transmission device collects the restoration time between the third input signal and the third output signal.
[0113] S603. The signal transmission device collects the transmission time between the second output signal and the third input signal.
[0114] S604. The signal transmission device calculates the transmission efficiency score according to the conversion time, the restoration time, and the transmission time.
[0115] Among them, the transmission efficiency score satisfies the following formula:
[0116]
[0117] Among them, E represents the transmission efficiency score, Tc is the conversion time, Tr is the restoration time, Tt is the transmission time, α represents the conversion time influence coefficient, β represents the restoration time influence coefficient, k is the first constant, and γ is the second constant.
[0118] It can be seen that α, β, c, and γ are set according to the different degrees of emphasis on signal conversion efficiency, restoration efficiency, and transmission efficiency in actual applications. For example, if the requirement for signal conversion efficiency is high, then the conversion time influence coefficient α may be given a larger value. Similarly, if the restoration efficiency is more critical, then the restoration time influence coefficient β may be adjusted accordingly. The first constant c and the second constant γ are used to balance the influence of each time parameter on the final score and ensure the rationality of the scoring result. Through such a scoring mechanism, the system can more accurately reflect the signal transmission efficiency and provide a quantitative basis for frequency adjustment. This scoring method based on time parameters not only improves the signal processing efficiency but also enhances the system's adaptability to different transmission conditions, thus ensuring the high efficiency and stability of signal transmission.
[0119] S605. When the transmission efficiency score is greater than or equal to the transmission efficiency score threshold, the signal transmission device determines not to adjust the initial transmission frequency.
[0120] Among them, the transmission efficiency score threshold is 0.9.
[0121] S606. When the transmission efficiency score is less than the transmission efficiency score threshold, the signal transmission device determines to adjust the initial transmission frequency.
[0122] It should be noted that adjusting the initial transmission frequency is to optimize the signal transmission process and ensure the integrity and efficiency of the signal during transmission. When the transmission efficiency score is less than 0.9, it means that the current transmission frequency may not be optimal, and there may be efficiency losses during the conversion, transmission, or restoration stages of the signal. At this time, the system will make necessary adjustments to the initial transmission frequency based on a comprehensive evaluation of the conversion time, restoration time, and transmission time. The purpose of the adjustment is to shorten the processing time of the signal in each stage, improve the overall transmission efficiency, and thus meet or exceed the transmission efficiency score standard of 0.9. In this way, the system can self-optimize, adapt to different transmission conditions and requirements, and ensure the high efficiency and stability of signal transmission.
[0123] In some embodiments of the present application, in S306 above, when it is determined to adjust the initial transmission frequency, the signal transmission device collects real-time environmental data inside the pipeline, compares the real-time environmental data with historical environmental data, and adjusts the initial transmission frequency according to the comparison result. Specifically, it includes:
[0124] S701. When there is historical environmental data in the historical environmental database that is the same as the real-time environmental data, the signal transmission device calculates a first adjustment coefficient based on the real-time environmental data and adjusts the initial transmission frequency according to the first adjustment coefficient.
[0125] It should be noted that when there are records in the historical environmental database that match the real-time environmental data, the system can use these historical data to predict the possible impact of the current environment on signal transmission and calculate an adjustment coefficient accordingly.
[0126] Optionally, the adjustment coefficient will be used to fine-tune the initial transmission frequency to adapt to the current environmental conditions, thereby ensuring the stability and reliability of signal transmission.
[0127] S702. When there is no historical environmental data in the historical environmental database that is the same as the real-time environmental data, the signal transmission device calculates the similarity results between the real-time environmental data and each piece of historical environmental data in the historical environmental database, and adjusts the initial transmission frequency according to the similarity results.
[0128] It should be noted that if there are no records in the historical environmental database that exactly match the real-time environmental data, the system will use a similarity calculation method to evaluate the correlation between the real-time data and the historical data. By calculating the similarity, the system can find the historical data closest to the current environment and make frequency adjustments accordingly. This method allows the system to still make reasonable frequency adjustment decisions even when there is no direct historical data.
[0129] In some embodiments of the present application, the above signal transmission device calculates a first adjustment coefficient according to real-time environmental data, and adjusts the initial transmission frequency according to the first adjustment coefficient. Specifically, it includes:
[0130] S801. The signal transmission device calculates a first adjustment coefficient according to real-time environmental data, and takes the product value of the first adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency.
[0131] Among them, the real-time environmental data includes real-time temperature data, real-time humidity data, real-time pressure data, and real-time flow rate data.
[0132] It should be explained that when calculating the first adjustment coefficient, first, the real-time temperature data, real-time humidity data, real-time pressure data, and real-time flow rate data are normalized to eliminate the differences between data with different dimensions. Then, according to the preset weight assignment, the normalized data is multiplied by the corresponding weights, and finally all the products are added to obtain the first adjustment coefficient. The assignment of weights reflects the influence degree of different environmental factors on the adjustment of the signal transmission frequency.
[0133] Exemplarily, if the influence of temperature change on signal transmission is relatively large, the weight of the temperature data will be relatively high.
[0134] It can be understood that in this way, the system can dynamically adjust the transmission frequency according to the comprehensive evaluation of real-time environmental data to adapt to environmental changes and ensure the stability and efficiency of signal transmission. This dynamic adjustment mechanism based on real-time data enables the system to more intelligently respond to complex and changeable transmission environments, thereby providing a more reliable and efficient signal transmission service.
[0135] In some embodiments of the present application, the above signal transmission device calculates the similarity results between the real-time environmental data and each piece of historical environmental data in the historical environmental database, and adjusts the initial transmission frequency according to the similarity results. Specifically, it includes:
[0136] S901. The signal transmission device compares each similarity result with a similarity threshold, screens out the target historical environmental data whose similarity result is greater than or equal to the similarity threshold from the historical environmental data, and establishes a target historical environmental data set based on the target historical environmental data.
[0137] Among them, the target historical environmental data set includes historical temperature data, historical humidity data, historical pressure data, and historical flow rate data.
[0138] Optionally, the similarity result satisfies the following formula:
[0139]
[0140] Among them, S represents the similarity result, X represents the feature vector of real-time environmental data, Y represents the feature vector of historical environmental data, Xj represents the j-th element of the feature vector of real-time environmental data, Yj represents the j-th element of the feature vector of historical environmental data, and m represents the number of feature vectors.
[0141] It can be understood that the cosine similarity in the similarity calculation formula is a method to measure the angle between two non-zero vectors. By calculating the dot product of the real-time environmental data vector and the historical environmental data vector and dividing it by the product of the norms of their respective vectors, the resulting cosine value can reflect the similarity between the two. When the cosine value is close to 1, it means that the directions of the two vectors are almost the same, that is, the real-time environmental data is very similar to the historical environmental data; when the cosine value is close to 0, it means that there is no obvious similarity between the two. By setting a reasonable similarity threshold, the system can screen out historical data that is similar enough to the real-time environmental data, so as to perform effective frequency adjustment. This method not only improves the efficiency of signal processing but also ensures the stability and reliability of signal transmission in a complex and changing transmission environment.
[0142] S902. The signal transmission device calculates the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate according to the target historical environmental data set.
[0143] S903. The signal transmission device determines the second adjustment coefficient according to the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate, and takes the product value of the second adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency.
[0144] Optionally, the second adjustment coefficient satisfies the following formula:
[0145]
[0146] Among them, K2 represents the second adjustment coefficient, η1, η2, η3, and η4 represent adjustment influence coefficients, Sh represents the historical average temperature, Sr represents the real-time environmental temperature, Hh represents the historical average humidity, Hr represents the real-time environmental humidity, Ph represents the historical average pressure, Pr represents the real-time environmental pressure, Vh represents the historical average flow rate, and Vr represents the real-time environmental flow rate.
[0147] It can be seen that the settings of the adjustment influence coefficients η1, η2, η3, and η4 are based on the assessment of the importance of different environmental factors affecting signal transmission. For example, if historical data indicates that temperature changes have the greatest impact on signal transmission, the value of η1 will be set relatively high to ensure that the temperature factor occupies a larger weight in frequency adjustment. Similarly, η2, η3, and η4 correspond to the impacts of humidity, pressure, and flow rate respectively, and their values will be adjusted according to the relative importance of their respective impacts on signal transmission. In this way, the system can comprehensively consider various environmental factors and dynamically adjust the signal transmission frequency to adapt to changing environmental conditions. This flexible adjustment mechanism not only improves the efficiency and stability of signal transmission, but also enhances the adaptability and robustness of the system in the face of complex and changing environments.
[0148] In summary, the method for switching detection signals provided in this embodiment can effectively cope with various environmental changes and ensure the continuity and reliability of signal transmission. Through real-time monitoring and historical data analysis, the system can predict and adapt to environmental changes, thereby maintaining optimal signal transmission performance under different conditions. In addition, this method can also reduce the risk of signal interruption or quality degradation caused by sudden environmental changes, providing a more stable and secure operating environment for the communication system. Through this intelligent frequency adjustment strategy, the performance of the communication network can be significantly improved.
[0149] Another structural schematic diagram of a signal transmission device provided in an embodiment of the present application. As Figure 4 shown, the signal transmission device includes: an acquisition unit 1001 and a processing unit 1002;
[0150] An acquisition unit 1001 for collecting data of the transmission medium inside the pipeline and performance data of the sensor, and a processing unit 1002 for determining an initial transmission mode of the sensor according to the transmission medium data and the performance data; the sensor is arranged inside the pipeline; the acquisition unit 1001 for collecting a first input signal of the sensor and a first output signal received by the terminal device, and the processing unit 1002 for judging whether to switch the initial transmission mode according to the first input signal and the first output signal; the terminal device is arranged outside the pipeline; the processing unit 1002 for, when it is determined to switch the initial transmission mode, switching the initial transmission mode to an electromagnetic transmission mode based on a conversion device; the conversion device is arranged on one side of the sensor; the processing unit 1002 for collecting length data of the pipeline and determining an initial transmission frequency of the sensor based on the length data, the transmission medium data and the performance data; the acquisition unit 1001 for collecting a second input signal in the sensor signal conversion stage, a second output signal, a third input signal and a third output signal in the terminal device signal restoration stage, and the processing unit 1002 for judging whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal and the third output signal; the processing unit 1002 for, when it is judged to adjust the initial transmission frequency, collecting real-time environment data inside the pipeline, comparing the real-time environment data with historical environment data, adjusting the initial transmission frequency according to the comparison result, and transmitting data based on the adjusted initial transmission frequency.
[0151] Optionally, the processing unit 1002 is further configured to: obtain a signal transmission score according to the transmission medium data and the performance data, and compare the signal transmission score with a first signal transmission score and a second signal transmission score; when the signal transmission score is less than or equal to the first signal transmission score, determine that the initial transmission mode is analog signal transmission; when the signal transmission score is greater than the first signal transmission score and less than or equal to the second signal transmission score, determine that the initial transmission mode is serial digital signal transmission; when the signal transmission score is greater than the second signal transmission score, determine that the initial transmission mode is parallel digital signal transmission mode or differential signal transmission mode.
[0152] Optionally, the processing unit 1002 is further configured to: calculate an integrity score of the signal during transmission according to the first input signal and the first output signal; when the integrity score is greater than or equal to an integrity score threshold, determine not to switch the initial transmission mode; when the integrity score is less than the integrity score threshold, determine to switch the initial transmission mode.
[0153] Optionally, the integrity score satisfies the following formula:
[0154]
[0155] Among them, C represents the integrity score, Vo represents the amplitude of the output signal, Vi represents the amplitude of the input signal, BER represents the bit error rate, A represents the calculation part of the delay score, B represents the calculation part of the waveform similarity score, To represents the delay of the output signal, Ti represents the delay of the input signal, TL represents the ideal delay, MSE represents the mean square error, MSEL represents the ideal mean square error, and ω1, ω2, ω3, and ω4 represent the weight coefficients.
[0156] Optionally, the initial transmission frequency satisfies the following formula:
[0157]
[0158] Among them, f0 represents the initial transmission power, L represents the length of the pipeline, ε represents the dielectric constant of the transmission medium, μ represents the magnetic permeability of the transmission medium, Fp represents the performance factor of the sensor, and c represents the speed of light.
[0159] Optionally, the acquisition unit 1001 is further configured to collect the conversion time between the second input signal and the second output signal; the acquisition unit 1001 is further configured to collect the restoration time between the third input signal and the third output signal; collect the transmission time between the second output signal and the third input signal; the processing unit 1002 is further configured to calculate the transmission efficiency score according to the conversion time, the restoration time, and the transmission time; when the transmission efficiency score is greater than or equal to the transmission efficiency score threshold, it is determined not to adjust the initial transmission frequency; when the transmission efficiency score is less than the transmission efficiency score threshold, it is determined to adjust the initial transmission frequency.
[0160] Optionally, the transmission efficiency score satisfies the following formula:
[0161]
[0162] Among them, E represents the transmission efficiency score, Tc is the conversion time, Tr is the restoration time, Tt is the transmission time, α represents the conversion time influence coefficient, β represents the restoration time influence coefficient, k is the first constant, and γ is the second constant.
[0163] Optionally, the processing unit 1002 is further configured to: when there is historical environment data in the historical environment database that is the same as the real-time environment data, calculate the first adjustment coefficient according to the real-time environment data, and adjust the initial transmission frequency according to the first adjustment coefficient; when there is no historical environment data in the historical environment database that is the same as the real-time environment data, calculate the similarity results between the real-time environment data and each piece of historical environment data in the historical environment database respectively, and adjust the initial transmission frequency according to the similarity results.
[0164] Optionally, the processing unit 1002 is further configured to: calculate a first adjustment coefficient according to real-time environment data, and use the product value of the first adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency; wherein, the real-time environment data includes real-time temperature data, real-time humidity data, real-time pressure data, and real-time flow rate data.
[0165] Optionally, the processing unit 1002 is further configured to: compare each similarity result with a similarity threshold, screen out target historical environment data from the historical environment data whose similarity result is greater than or equal to the similarity threshold, and establish a historical environment data set based on the target historical environment data; wherein, the target historical environment data includes historical temperature data, historical humidity data, historical pressure data, and historical flow rate data; calculate the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate according to the target historical environment data set; determine a second adjustment coefficient according to the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate, and use the product value of the second adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency.
[0166] The embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium includes computer-executable instructions. When the computer-executable instructions run on a computer, the computer is enabled to execute the signal transmission method provided in the above embodiment.
[0167] The embodiment of the present application also provides a computer program product. The computer program product can be directly loaded into a memory and contains software code. After being loaded and executed by a computer, the computer program product can implement the signal transmission method provided in the above embodiment. Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: they can still modify or equivalently replace the technical solutions of the present invention, and these modifications or equivalent replacements do not enable the modified technical solutions to deviate from the spirit and scope of the technical solutions of the present invention.
[0168] For the system provided in the above embodiment, only the above-mentioned division of each functional module is used for illustration. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the modules or steps in the embodiment of the present invention can be further decomposed or combined. For example, the modules in the above embodiment can be combined into one module, or further split into multiple sub-modules to complete all or part of the functions described above. For the names of the modules and steps involved in the embodiment of the present invention, they are only used to distinguish each module or step, and are not regarded as an improper limitation of the present invention.
[0169] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0170] The present application is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams can be implemented by computer program instructions, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can also be implemented. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 block or multiple blocks.
[0171] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means that implement the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 block or multiple blocks.
[0172] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one Figure 1 flow or multiple flows and / or blocks Figure 1 block or multiple blocks.
[0173] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: still can modify the specific embodiments of the present invention or make equivalent substitutions, and any modification or equivalent substitution that does not depart from the spirit and scope of the present invention should be covered by the protection scope of the claims of the present invention.
Claims
1. A signal transmission method, characterized in that, Including: Collecting the transmission medium data inside the pipeline and the performance data of the sensor, and determining the initial transmission mode of the sensor according to the transmission medium data and the performance data; The sensor is arranged inside the pipeline; Collecting the first input signal of the sensor and the first output signal received by the terminal device, and judging whether to switch the initial transmission mode according to the first input signal and the first output signal; The terminal device is arranged outside the pipeline; When it is determined to switch the initial transmission mode, switching the initial transmission mode to an electromagnetic transmission mode based on a conversion device; the conversion device is arranged on one side of the sensor; Collecting the length data of the pipeline, and determining the initial transmission frequency of the sensor based on the length data, the transmission medium data and the performance data; Collecting the second input signal and the second output signal in the signal conversion stage of the sensor and the third input signal and the third output signal in the signal restoration stage of the terminal device, and judging whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal and the third output signal; When it is judged to adjust the initial transmission frequency, collecting the real-time environment data inside the pipeline, comparing the real-time environment data with the historical environment data, adjusting the initial transmission frequency according to the comparison result, and transmitting data based on the adjusted initial transmission frequency.
2. The signal transmission method according to claim 1, wherein The determining the initial transmission mode of the sensor according to the transmission medium data and the performance data includes: Obtaining a signal transmission score according to the transmission medium data and the performance data, and comparing the signal transmission score with a first signal transmission score and a second signal transmission score; when the signal transmission score is less than or equal to the first signal transmission score, determining that the initial transmission mode is analog signal transmission; When the signal transmission score is greater than the first signal transmission score and less than or equal to the second signal transmission score, determining that the initial transmission mode is serial digital signal transmission; When the signal transmission score is greater than the second signal transmission score, determining that the initial transmission mode is parallel digital signal transmission mode or differential signal transmission mode.
3. The signal transmission method according to claim 2, characterized in that, The judging whether to switch the initial transmission mode according to the first input signal and the first output signal includes: Calculating an integrity score of the signal during transmission according to the first input signal and the first output signal; When the integrity score is greater than or equal to an integrity score threshold, determining not to switch the initial transmission mode; When the integrity score is less than the integrity score threshold, determining to switch the initial transmission mode.
4. The signal transmission method according to claim 3, characterized in that The integrity score satisfies the following formula: Among them, C represents the integrity score, Vo represents the amplitude of the output signal, Vi represents the amplitude of the input signal, BER represents the bit error rate, A represents the calculation part of the delay score, B represents the calculation part of the waveform similarity score, To represents the delay of the output signal, Ti represents the delay of the input signal, TL represents the ideal delay, MSE represents the mean square error, MSEL represents the ideal mean square error, and ω1, ω2, ω3, and ω4 represent the weight coefficients.
5. The signal transmission method according to claim 1, wherein the initial transmission frequency satisfies the following formula: Among them, f0 represents the initial transmission power, L represents the length of the pipeline, ε represents the dielectric constant of the transmission medium, μ represents the magnetic permeability of the transmission medium, Fp represents the performance factor of the sensor, and c represents the speed of light.
6. The signal transmission method according to claim 5, wherein judging whether to adjust the initial transmission frequency according to the second input signal, the second output signal, the third input signal, and the third output signal includes: acquiring the conversion time between the second input signal and the second output signal; acquiring the restoration time between the third input signal and the third output signal; acquiring the transmission time between the second output signal and the third input signal; calculating a transmission efficiency score according to the conversion time, the restoration time, and the transmission time; when the transmission efficiency score is greater than or equal to the transmission efficiency score threshold, it is determined not to adjust the initial transmission frequency; when the transmission efficiency score is less than the transmission efficiency score threshold, it is determined to adjust the initial transmission frequency.
7. The signal transmission method according to claim 6, wherein The transmission efficiency score satisfies the following formula: Among them, E represents the transmission efficiency score, Tc is the conversion time, Tr is the restoration time, Tt is the transmission time, α represents the conversion time influence coefficient, β represents the restoration time influence coefficient, k is the first constant, and γ is the second constant.
8. The signal transmission method according to claim 1, characterized in that, When it is determined to adjust the initial transmission frequency, collect the real-time environmental data inside the pipeline, compare the real-time environmental data with the historical environmental data, and adjust the initial transmission frequency according to the comparison result, including: when there is historical environmental data identical to the real-time environmental data in the historical environmental database, calculate a first adjustment coefficient according to the real-time environmental data, and adjust the initial transmission frequency according to the first adjustment coefficient; when there is no historical environmental data identical to the real-time environmental data in the historical environmental database, calculate the similarity result between the real-time environmental data and each piece of historical environmental data in the historical environmental database respectively, and adjust the initial transmission frequency according to the similarity result.
9. The signal transmission method according to claim 8, wherein Calculating the first adjustment coefficient according to the real-time environmental data and adjusting the initial transmission frequency according to the first adjustment coefficient includes: calculating the first adjustment coefficient according to the real-time environmental data, and taking the product value of the first adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency; wherein, the real-time environmental data includes real-time temperature data, real-time humidity data, real-time pressure data, and real-time flow rate data.
10. The signal transmission method according to claim 8, wherein Calculating the similarity results between the real-time environmental data and each piece of historical environmental data in the historical environmental database respectively, and adjusting the initial transmission frequency according to the similarity results, including: Comparing each similarity result with a similarity threshold, screening out target historical environmental data from the historical environmental data whose similarity results are greater than or equal to the similarity threshold, and establishing a target historical environmental data set based on the target historical environmental data; wherein, the target historical environmental data set includes historical temperature data, historical humidity data, historical pressure data, and historical flow rate data; Calculating the historical average temperature, historical average humidity, historical average pressure, and historical average flow rate according to the target historical environmental data set; Determining a second adjustment coefficient according to the historical average temperature, the historical average humidity, the historical average pressure, and the historical average flow rate, and taking the product value of the second adjustment coefficient and the initial transmission frequency as the adjusted transmission frequency.