A measurement system based on ethernet-apl
By combining Ethernet-APL technology with temperature-measurement characteristic curves, the real-time and accuracy issues of traditional wired transmission methods in the Industrial Internet of Things are solved, and a highly stable and accurate measurement system is achieved.
Patent Information
- Application Number
- CN202511475504.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-16
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2045-10-16
AI Technical Summary
Traditional wired transmission methods are difficult to meet the requirements of real-time performance, reliability and intrinsic safety in the era of Industrial Internet of Things, and temperature fluctuations affect the stability and accuracy of the measurement results of detection sensors.
Employing Ethernet-APL technology, and combining a computational measurement unit, a curve correction unit, and a packaging generation unit, the system collects ambient temperature data in real time through a temperature sensor, establishes a temperature-measurement characteristic curve, corrects the measured values of the detection sensor, and generates an APL signal for transmission to the APL gateway.
It improves the stability and accuracy of the detection sensor measurement, reduces interference caused by temperature fluctuations, avoids incorrect judgments and misoperations, and ensures high-precision data transmission and processing.
Smart Images

Figure CN120947840B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of industrial equipment measurement technology, and more specifically, to a measurement system based on Ethernet-APL. Background Technology
[0002] In the field of industrial production and equipment monitoring, online detection plays a crucial role. For example, in the processes of oil refining and chemical manufacturing, various online detection methods monitor the operating status and process parameters of equipment in real time, providing strong support for the safe and reliable operation of equipment and the accuracy and stability of process operation and adjustment. Currently, most existing detection functions adopt traditional wired transmission methods, such as 4-20mA analog signals or RS-485 buses.
[0003] However, with the development of the Industrial Internet of Things (IIoT), its requirements for real-time performance, reliability, and intrinsic safety are constantly increasing. Traditional detection functions can no longer meet the new demands. Traditional wired transmission methods have many limitations in terms of data transmission speed, transmission distance, power supply, and protocol compatibility, and cannot adapt to the large-scale, high-speed, and reliable data transmission and processing needs of the Industrial Internet of Things era.
[0004] The emergence of Ethernet-APL (Advanced Physical Layer) technology has brought new opportunities to solve these problems. This technology boasts advantages such as high speed, long-distance power supply, intrinsic safety, and Ethernet protocol compatibility, providing an ideal solution for upgrading industrial inspection systems. However, in sensor measurements, temperature fluctuations can significantly impact the results. Without proper handling, strain or corrosion rate data measured by the sensor will have large deviations, easily leading to misjudgments and malfunctions. Furthermore, temperature fluctuations exacerbate interference, greatly reducing the stability and accuracy of sensor measurements. Therefore, we provide a measurement system based on Ethernet-APL. Summary of the Invention
[0005] The purpose of this invention is to provide a measurement system based on Ethernet-APL to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention provides a measurement system based on Ethernet-APL, including a calculation and measurement unit, a curve correction unit, and a package generation unit;
[0007] The calculation and measurement unit obtains power to provide power to the embedded microprocessor and then performs initialization. After initialization, the constant current source circuit outputs current to the detection sensor and generates a voltage signal. It records the measured value, constant current value, and voltage value of the detection sensor. The voltage signal is sent to the signal conditioning circuit for amplification and filtering. The processed signal is then input to the analog-to-digital conversion circuit for simulation. The analog signal is recorded and converted into a digital signal. The digital data is then measured using the detection sensor. At the same time, the ambient temperature data is collected in real time by the temperature sensor.
[0008] The curve correction unit obtains the fitting coefficient and uses the ambient temperature data collected in the calculation and measurement unit to determine whether there is a drastic change in ambient temperature. When it is determined that there is a drastic change in ambient temperature, the fitting coefficient is used to fit the measured value of the detection sensor with the collected ambient temperature data, and a temperature-measurement characteristic curve is established to calculate the measurement change value of the detection sensor under the new ambient temperature data. Then, the corrected measurement value is calculated to correct the measurement value of the detection sensor.
[0009] The encapsulation generation unit receives the correction command from the curve correction unit, inputs the corrected measurement value into the embedded microprocessor and calculates the measured physical quantity, then encapsulates the data and generates corresponding analytical data, which is then sent to the Ethernet communication module. The APL signal is generated and transmitted to the APL gateway.
[0010] As a further improvement to this technical solution, the judgment calculation module utilizes the power supply and reference circuit to obtain power through the PoDL part of the IEEE 802.3bu standard, thereby providing power to the embedded microprocessor and subsequently performing initialization.
[0011] After initialization, the constant current source circuit outputs current to the detection sensor and generates a voltage signal. It records the sensor's measured value, constant current value, and voltage value. It uses the voltage signal and the sensor's measured value to determine whether they are proportional. It calculates the current value using the voltage value and the sensor's measured value. When the current value equals the constant current value, it is determined that the voltage signal is proportional to the sensor's measured value. By analyzing the relationship between voltage and measurement, the operating status and performance of the circuit components can be understood, and the circuit parameters can be optimized and adjusted to improve overall performance.
[0012] As a further improvement to this technical solution, the analog measurement module receives the command from the judgment calculation module that the voltage signal is proportional to the measured value of the detection sensor, and sends the voltage signal to the signal conditioning circuit. The voltage signal is amplified and filtered by the time-division differential control signal conditioning circuit. The voltage signal after amplification and filtering is more accurate and stable, reducing measurement errors caused by signal distortion and noise interference. This is crucial for the measurement of detection sensors that require high precision, and provides a reliable basis for subsequent data analysis and decision-making.
[0013] As a further improvement to this technical solution, the curve establishment module obtains the fitting coefficient, and uses the ambient temperature data collected in the simulation measurement module and the set ambient temperature threshold to determine whether there is a drastic change in ambient temperature. When a drastic change in ambient temperature is determined, the fitting coefficient is used to fit the measured value of the detection sensor with the collected ambient temperature data. A temperature-measurement characteristic curve is established by using the collected ambient temperature data and the fitted measured value of the detection sensor. By determining whether the ambient temperature change is drastic, and fitting the measured value with the fitting coefficient and the collected ambient temperature data when the change is drastic, the change of measurement with temperature can be captured more accurately, thereby improving the accuracy of measurement and avoiding measurement errors.
[0014] As a further improvement to this technical solution, the measurement correction module collects new ambient temperature data through a temperature sensor and substitutes it into the temperature-measurement characteristic curve to calculate the measurement change value of the detection sensor under the new ambient temperature data. Then, it converts the digital data measured in the analog measurement module into the measurement value when it is an analog signal. The corrected measurement value is calculated using the measurement value and the measurement change value when it is an analog signal. The measurement value of the detection sensor is corrected by correcting the correction parameter value. By correcting the measurement value by calculating the measurement change value according to the temperature-measurement characteristic curve, the interference of temperature on the measurement results can be effectively eliminated, making the measurement value closer to the true value. This avoids large deviations in the strain or corrosion rate data measured by the detection sensor, and significantly improves the measurement accuracy.
[0015] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0016] 1. In this Ethernet-APL-based measurement system, a curve module is established to obtain fitting coefficients. The ambient temperature data collected in the simulation measurement module is compared with a set ambient temperature threshold to determine if there are drastic changes in ambient temperature. When a drastic change in ambient temperature is determined, the fitting coefficients are used to fit the measured values of the detection sensor to the collected ambient temperature data. A temperature-measurement characteristic curve is established by combining the collected ambient temperature data and the fitted measured values of the detection sensor. By establishing an accurate temperature-measurement characteristic curve, the measured values can be corrected according to the current ambient temperature, reducing interference caused by temperature fluctuations, avoiding erroneous judgments and misoperations due to temperature interference, and improving the stability of the detection sensor measurement.
[0017] 2. In this Ethernet-APL-based measurement system, the measurement correction module acquires new ambient temperature data through a temperature sensor and substitutes it into the temperature-measurement characteristic curve. It calculates the measurement change value of the sensor under the new ambient temperature data, then converts the digital data measured in the analog measurement module into an analog signal measurement value. Using the analog signal measurement value and the measurement change value, a corrected measurement value is calculated. The measurement value of the sensor is corrected by using correction parameter values. By calculating the measurement change value based on the temperature-measurement characteristic curve to correct the measurement value, the interference of temperature on the measurement results can be effectively eliminated, making the measurement value closer to the true value. This avoids large deviations in the strain or corrosion rate data measured by the sensor and improves the measurement accuracy of the sensor. Attached Figure Description
[0018] Figure 1 This is a block diagram of the overall system structure of the present invention;
[0019] Figure 2 This is a block diagram of the present invention.
[0020] The meanings of the labels in the diagram are as follows:
[0021] 1. Calculation and measurement unit; 11. Judgment and calculation module; 12. Simulation measurement module;
[0022] 2. Curve Correction Unit; 21. Curve Creation Module; 22. Measurement Correction Module;
[0023] 3. Packaging and generation unit; 31. Computational packaging module; 32. Generation and storage module. Detailed Implementation
[0024] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0025] Example 1
[0026] This invention provides a measurement system based on Ethernet-APL. Please refer to [link / reference]. Figure 1 It includes a calculation and measurement unit 1, a curve correction unit 2, and a packaging and generation unit 3;
[0027] The calculation and measurement unit 1 obtains power to provide power to the embedded microprocessor and then performs initialization. After initialization, the constant current source circuit outputs current to the detection sensor and generates a voltage signal. It records the measured value, constant current value, and voltage value of the detection sensor. The voltage signal is sent to the signal conditioning circuit for amplification and filtering. The processed signal is then input to the analog-to-digital converter circuit for simulation. The analog signal is recorded and converted into a digital signal. The digital data is then measured by the detection sensor. Simultaneously, the ambient temperature data is collected in real time by the temperature sensor. The curve correction unit 2 obtains the fitting coefficient and uses the ambient temperature data collected in the calculation and measurement unit 1 to determine whether there is a drastic change in ambient temperature. When a drastic change in ambient temperature is determined, the fitting coefficient is used to fit the measured value of the detection sensor with the collected ambient temperature data, and a temperature-measurement characteristic curve is established to calculate the change in the measured value of the detection sensor under the new ambient temperature data. The corrected measured value is then calculated and corrected for the measured value of the detection sensor. The encapsulation and generation unit 3 receives the correction command from the curve correction unit 2, inputs the corrected measured value into the embedded microprocessor, calculates the measured physical quantity, encapsulates it, generates the corresponding analytical data, and sends the corresponding analytical data to the Ethernet communication module. The APL signal is generated and transmitted to the APL gateway.
[0028] For a more detailed explanation of the above units, please refer to [link / reference]. Figure 2 ;
[0029] The calculation and measurement unit 1 includes a judgment and calculation module 11 and an analog measurement module 12;
[0030] The judgment calculation module 11 uses the power supply and reference circuit to obtain power through the PoDL part of the IEEE 802.3bu standard via a coupling / decoupling network to provide power and voltage to the embedded microprocessor. After the embedded microprocessor is powered on, it immediately executes the initialization process to complete the SPI interface configuration, internal register settings and interrupt vector table establishment.
[0031] After initialization, the constant current source circuit starts working, outputting current to the detection sensor (measuring probe) and recording the measured value of the detection sensor. and constant current value The current causes the sensor to generate a voltage signal, and the voltage value is recorded. The system uses the voltage signal and the measured value from the detection sensor to determine whether they are proportional, and calculates multiple sets of current values based on the voltage value and the sensor's measurement value. When multiple current values are equal and equal to the constant current value, it is determined that the voltage signal is proportional to the measured value of the detection sensor. By monitoring and analyzing the voltage-to-measurement ratio, the working status and performance of each circuit component can be understood. Based on this information, the circuit parameters can be optimized and adjusted, such as adjusting the output current of the constant current source and optimizing the gain of the signal conditioning circuit, thereby improving the overall performance.
[0032] Since the voltage signal output by the detection sensor is usually weak and may contain noise interference, the analog measurement module 12 receives the command from the judgment and calculation module 11 that the voltage signal is proportional to the measured value of the detection sensor. The module then sends the voltage signal to the signal conditioning circuit. The signal conditioning circuit amplifies and filters the voltage signal using a time-division differential control circuit, resulting in a processed voltage signal. This amplified and filtered voltage signal is more accurate and stable, reducing measurement errors caused by signal distortion and noise interference. This is crucial for detection sensors requiring high precision. For example, when measuring minute changes to monitor strain or corrosion rates, high-precision signal processing can improve the accuracy of measurement results, providing a reliable basis for subsequent data analysis and decision-making. The processed signal is input to an analog-to-digital converter (ADC) for simulation, and the analog signal is recorded. The ADC communicates with the embedded microprocessor via an SPI serial interface to convert the analog signal into a digital signal, which is then transmitted to the embedded microprocessor. The embedded microprocessor uses a sensor to measure the digital data and obtains the measured digital data. Simultaneously, a temperature sensor collects ambient temperature data in real time, obtaining the collected ambient temperature data. This is used in subsequent signal processing to eliminate temperature drift errors and improve measurement accuracy;
[0033] Curve correction unit 2 includes curve creation module 21 and measurement correction module 22;
[0034] In industrial settings where temperatures fluctuate drastically, including high and low temperatures, the measured values of the detection sensor are significantly affected by temperature, leading to measurement errors. The curve module 21 acquires the fitting coefficients from historical data. The system uses the ambient temperature data collected by the simulation measurement module 12 and the set ambient temperature threshold to determine whether there is a drastic change in ambient temperature. When the collected ambient temperature data is greater than the set ambient temperature threshold, it is determined that there is a drastic change in ambient temperature. The fitting coefficient is then used to determine the situation. Ambient temperature data collected in simulation measurement module 12 Fitting the measured values of the detection sensor Specific algorithm formula: By collecting ambient temperature data and fitting the measured values of the detection sensor, a temperature-measurement characteristic curve is established. Drastic changes in ambient temperature can significantly affect the measurement results of the detection sensor. Traditional measurement methods may not be able to reflect the changes in measurement values caused by such changes in a timely and accurate manner. By judging whether the ambient temperature change is drastic, and fitting the measured values with the collected ambient temperature data when the change is drastic, the change of measurement with temperature can be captured more accurately, thereby improving the accuracy of the measurement. For example, in some industrial production scenarios, the start-up or shutdown of equipment can cause the ambient temperature to rise or fall rapidly. In such cases, this method can correct the measured values in a timely manner and avoid measurement errors.
[0035] Historical data includes fitting coefficients ;
[0036] Measurement correction module 22 acquires new ambient temperature data through temperature sensor. The new ambient temperature data is substituted into the temperature-measurement characteristic curve of the curve creation module 21. The measurement change value of the sensor caused by temperature change under the new ambient temperature data is obtained through the temperature-measurement characteristic curve. The measured values are then converted from the digital data measured in the analog measurement module 12 into analog signals. The corrected measurement value is calculated using the measured value and the measurement change value of the analog signal. Specific algorithm formula: The measured values of the detection sensor are corrected by adjusting parameter values, as these values are easily affected by ambient temperature. Under different temperature conditions, the measured value of the same physical quantity may change, leading to measurement errors. By acquiring ambient temperature data in real time and calculating the measurement change value based on the temperature-measurement characteristic curve to correct the measured value, the interference of temperature on the measurement results can be effectively eliminated, making the measured value closer to the true value. For example, in a high-temperature industrial furnace environment, without temperature correction, the strain or corrosion rate data measured by the detection sensor will have a large deviation, while after correction, the measurement accuracy can be significantly improved; the correction command is then passed to the packaging generation unit 3.
[0037] The packaging generation unit 3 includes a computing packaging module 31 and a generation storage module 32;
[0038] The calculation and encapsulation module 31 receives the correction command from the measurement correction module 22 and inputs the corrected measurement value into the embedded microprocessor. The embedded microprocessor calculates the measured physical quantity (such as strain or corrosion rate) based on the corrected measurement value. For example, it performs conversion between the corrected measurement value and the measured physical quantity. Simultaneously, the embedded microprocessor encapsulates the measured physical quantity to generate corresponding analytical data. Since the measured values from the detection sensor are affected by various factors, after error correction such as temperature correction, the true measured value can be more accurately reflected. The embedded microprocessor calculates the measured physical quantity (such as strain or corrosion rate) based on this correction value, which can significantly reduce measurement errors and accurately reflect the actual state of the measured object. For example, in bridge structural health monitoring, it can accurately measure the strain of the bridge structure and promptly detect potential safety hazards.
[0039] The embedded microprocessor sends the corresponding parsed data to the Ethernet communication module via the SPI interface. Ethernet communication module The PHY physical interface chip with integrated APL physical layer is selected. The PHY chip communicates with the embedded microprocessor through the internal SPI interface and receives the corresponding parsed data sent by the embedded microprocessor.
[0040] The storage module 32 generates a storage module via an Ethernet communication module. Upon receiving the corresponding parsed data, the PHY chip sends a clock signal according to the external crystal oscillator clock to generate an APL signal. The APL signal is then transmitted to the APL gateway via the PHY chip and the APL two-wire interface.
[0041] After the APL signal is transmitted to the APL gateway, the Ethernet communication module... The corresponding parsed data is sent to the embedded microprocessor's internal FLASH data storage function for storage. Measurement data from sensors in industrial environments is crucial for assessing equipment operating status, detecting potential faults, and analyzing production processes. Storing the parsed data in FLASH allows for long-term data retention, which helps in building a historical database.
[0042] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the present invention as claimed. The scope of protection of the present invention is defined by the appended claims and their equivalents.
Claims
1. An Ethernet-APL based measurement system, characterized by: It comprises a calculation measurement unit (1), a curve correction unit (2) and a package generation unit (3); The calculation measurement unit (1) obtains power for embedded microprocessor and then performs initialization, after the initialization, the constant current source circuit outputs current to the detection sensor and generates voltage signal, records the measurement value of the detection sensor, the constant current value and the voltage value, transmits the voltage signal to the signal conditioning circuit and performs amplification and filtering processing, then inputs the processed signal to the analog-digital conversion circuit for analog, records the analog signal and converts it into digital signal, then measures the digital data by the detection sensor, and simultaneously collects the environmental temperature data in real time by the temperature sensor; The curve correction unit (2) obtains fitting coefficient, judges whether there is severe environmental temperature change by using the collected environmental temperature data in the calculation measurement unit (1), when it is judged that there is severe environmental temperature change, fits the measurement value of the detection sensor by using the fitting coefficient and the collected environmental temperature data, and establishes temperature-measurement characteristic curve to calculate the measurement change value of the detection sensor under the new environmental temperature data, and then calculates the corrected measurement value to correct the measurement value of the detection sensor; The encapsulation generating unit (3) receives the modified command in the curve modifying unit (2), inputs the modified measurement value into the embedded microprocessor and calculates the measured physical quantity, then encapsulates and generates corresponding analysis data, and sends the corresponding analysis data to the Ethernet communication module and generates an APL signal transmission to the APL gateway.
2. The Ethernet-APL based measurement system of claim 1, wherein: The calculation measurement unit (1) comprises a judgment calculation module (11) and an analog measurement module (12); The judgment calculation module (11) obtains power by coupling through the PoDL part of IEEE802.3bu standard by using power supply and reference circuit, provides power for embedded microprocessor and then performs initialization; After the initialization, the constant current source circuit outputs current to the detection sensor and generates voltage signal, records the measurement value of the detection sensor, the constant current value and the voltage value, judges whether they are proportional by using the voltage signal and the measurement value of the detection sensor, calculates the current value by the voltage value and the measurement value of the detection sensor, when the current value is equal to the constant current value, it is judged that the voltage signal and the measurement value of the detection sensor are proportional.
3. The Ethernet-APL based measurement system of claim 2, wherein: The analog measurement module (12) receives the command that the voltage signal and the measurement value of the detection sensor are proportional in the judgment calculation module (11), transmits the voltage signal to the signal conditioning circuit, performs amplification and filtering processing on the voltage signal by the time-sharing differential control signal conditioning circuit, inputs the processed signal to the analog-digital conversion circuit for analog, and records the analog signal.
4. The Ethernet-APL based measurement system of claim 3, wherein: The analog measurement module (12) converts the analog signal into digital signal, transmits the converted digital signal to the embedded microprocessor and measures the digital data by the detection sensor, and simultaneously collects the environmental temperature data in real time by the temperature sensor.
5. The Ethernet-APL based measurement system of claim 4, wherein: The curve correction unit (2) comprises an established curve module (21) and a measurement correction module (22); The establishing curve module (21) acquires fitting coefficients, judges whether there is a sharp change in the ambient temperature by using the ambient temperature data collected in the simulation measurement module (12) and the set ambient temperature threshold, and when it is determined that there is a sharp change in the ambient temperature, fitting coefficients and the collected ambient temperature data are used to fit the measurement value of the detection sensor, and a temperature-measurement characteristic curve is established by using the collected ambient temperature data and the fitted measurement value of the detection sensor.
6. The Ethernet-APL based measurement system of claim 5, wherein: The measurement correction module (22) acquires new ambient temperature data by the temperature sensor and substitutes it into the temperature-measurement characteristic curve, calculates the measurement change value of the detection sensor under the new ambient temperature data, and then converts the digital data measured in the simulation measurement module (12) into an analog signal to calculate the measurement value, uses the measurement value of the analog signal and the measurement change value to calculate the corrected measurement value, and corrects the measurement value of the detection sensor by the corrected parameter value.
7. The Ethernet-APL based measurement system of claim 4, wherein: The packaging generation unit (3) includes a calculation packaging module (31) and a generation storage module (32). The calculation encapsulation module (31) receives the corrected command in the measurement correction module (22), inputs the corrected measurement value into the embedded microprocessor, and calculates the measured physical quantity, the embedded microprocessor encapsulates the measured physical quantity, generates corresponding analysis data, and sends the corresponding analysis data to the Ethernet communication module through the SPI interface module.
8. The Ethernet-APL based measurement system of claim 7, wherein: The generating storage module (32) communicates through an Ethernet communication module The corresponding analysis data is received, and the APL signal is regenerated and transmitted to the APL gateway.
Citation Information
Patent Citations
Current sensor temperature compensation method based on high-order polynomial fitting
CN114636855A