Air pressure sensor communication control method and system based on PFM pulse frequency modulation
The communication and control method for barometric pressure sensors using PFM pulse frequency modulation solves the problem of high-precision transmission and control of barometric pressure sensors under low power consumption conditions. It achieves stable and reliable data transmission and control command feedback in noisy environments, and is suitable for IoT and industrial measurement and control systems.
Patent Information
- Application Number
- CN202511939333.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-22
- Publication Date
- 2026-01-20
- Estimated Expiration
- 2045-12-22
AI Technical Summary
Existing barometric pressure sensors struggle to achieve high-precision barometric pressure data transmission under low-power conditions, and are particularly susceptible to interference in long-distance or noisy environments, leading to control command delays or malfunctions, thus failing to meet the real-time response requirements of IoT and industrial measurement and control systems.
A barometric pressure sensor communication control method based on PFM pulse frequency modulation is adopted. Data is acquired through environmental parameter sensors, and signal conditioning and mapping processing are performed to generate pulse change sequences. Combined with encoding optimization and anti-interference processing, the integrity and accuracy of the pulse sequence during transmission are ensured. The main control unit integrates multi-source sensor data to judge abnormal deviations and provide control command feedback.
It achieves high-fidelity, low-power data expression and transmission under extremely low power conditions, ensuring accurate demodulation of air pressure values and timely feedback of control commands. It solves the problems of traditional transmission methods being susceptible to noise interference and high power consumption, and realizes highly reliable real-time monitoring and adaptive intelligent control.
Smart Images

Figure CN121367713A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application relates to the technical field of air pressure sensors, and particularly discloses an air pressure sensor communication control method and system based on PFM pulse frequency modulation. BACKGROUND
[0002] In the Internet of Things and industrial measurement and control systems, an air pressure sensor needs to reliably transmit real-time collected environmental air pressure data to a master control end to trigger precise device control actions, which is directly related to system safety and response efficiency. With the development of devices towards miniaturization, battery power supply and long-distance deployment, the power consumption requirement of sensor nodes is becoming more and more stringent, while the requirements for measurement accuracy and control timeliness are continuously increasing.
[0003] Existing air pressure transmission methods mostly use periodic sampling to send complete data packets through digital communication or use analog voltages to directly correspond to air pressure values. These methods often force the system to reduce the sampling frequency or shorten the communication distance in low-power consumption scenarios, otherwise the node power is quickly consumed; and once the sampling frequency or transmission distance is increased, data error accumulation or signal interference by external electromagnetic noise is caused, so that the air pressure value received by the master control end is deviated, and finally control instructions are delayed or misoperated.
[0004] The most core contradiction is concentrated in that when air pressure information must be carried and transmitted in a certain "frequency" form, how to make the frequency carrying information not only reflect the small changes of air pressure in high density, but also remain stable and unaltered for a long time under extremely weak signal energy. Because air pressure changes are usually slow and small in amplitude, but the master control end is required to distinguish differences of several pascals or even zero point several pascals, which means that the frequency needs to have extremely high resolution capability; at the same time, on the battery-powered node, sending high-frequency or complex waveform signals will quickly consume power, and sending too sparse or simple pulses cannot carry enough information, resulting in frequency drift or the master control end cannot accurately restore the real air pressure. For example, in high-altitude detection balloons or underground pipe network monitoring, the sensor may work for months or even years on a battery, and once the transmitted pulse frequency becomes too sparse due to power consumption limitations, or slightly shakes due to line noise, the master control end may misjudge the real air pressure fluctuation of tens of pascals as hundreds of pascals, and then trigger the wrong valve opening or alarm, causing serious consequences.
[0005] Therefore, how to establish a stable and distinguishable linear correspondence between the air pressure value and the pulse frequency under extremely low power consumption conditions, while ensuring that the frequency signal can still be accurately demodulated and restored after transmission in a long distance or noise environment, has become a key problem for realizing long-term reliable communication and control of high-precision air pressure sensors. SUMMARY
[0006] The application provides a PFM pulse frequency modulation-based air pressure sensor communication control method and system, aiming at solving at least one of the defects in the prior art.
[0007] An aspect of the application relates to a PFM pulse frequency modulation-based air pressure sensor communication control method, comprising the following steps: S100, acquiring parameter data from the environment through an environmental parameter sensor, processing the parameter data into an analog electrical signal through a signal conditioning unit comprising amplification and filtering functions, and inputting the analog electrical signal into a modulation unit for mapping processing to obtain a pulse change sequence; S200, according to the pulse change sequence, performing coding optimization using a corresponding relationship to determine the matching degree of the pulse change sequence and the parameter change amount, and transmitting the matched pulse change sequence to the receiving end of the host unit through a communication link; S300, filtering noise interference by performing anti-interference processing on the transmitted pulse change sequence using a signal transmission protocol, and if the integrity of the filtered pulse change sequence meets the conditions, restoring the original parameter data by performing inverse mapping processing on the filtered pulse change sequence through a demodulation unit; S400, according to the demodulated original parameter data, integrating corresponding data from additional sensors under a networking communication framework to obtain a networking integrated parameter data set, comparing the networking integrated parameter data set through a control logic, and analyzing and judging abnormal deviations; S500, processing the networking integrated parameter data set with abnormal deviations using a control mechanism to generate corresponding control instructions, and feeding back the control instructions to the terminal device through a communication link to perform parameter-related adjustment operations.
[0008] Further, step S100 comprises: S110, collecting at least one original environmental parameter data such as temperature, humidity, air pressure and light intensity in real time through an environmental parameter sensor to form a first parameter data set, performing offset compensation and linear correction on the first parameter data set according to a pre-established sensor calibration table to obtain a second parameter data set; S120, inputting the second parameter data set into a signal conditioning unit, amplifying a weak signal using an operational amplifier to obtain a first analog electrical signal, and filtering high-frequency noise from the first analog electrical signal through a low-pass filter to obtain a second analog electrical signal; S130, inputting the second analog electrical signal into a modulation unit, mapping the second analog electrical signal into a first pulse sequence with corresponding frequency changes using a voltage-to-frequency converter, and if the frequency of the first pulse sequence exceeds a preset threshold range, adjusting the frequency division coefficient through a frequency divider to obtain a second pulse sequence with stable frequency; S140, width coding is performed on the second pulse sequence by using a pulse width modulation encoder to form a pulse variation sequence containing environmental parameter information.
[0009] Further, the step S200 comprises: S210, according to the pulse variation sequence, a width-frequency double mapping optimization is performed by using a pre-established encoding correspondence table to obtain a first optimized pulse sequence; S220, point-by-point matching calculation is performed on the first optimized pulse sequence and the pre-stored parameter variation data set by using a comparator to determine a matching degree value; S230, if the matching degree value is greater than a preset threshold, feature extraction and recoding processing are performed on the first optimized pulse sequence by using a convolutional neural network to obtain a second optimized pulse sequence; S240, the second optimized pulse sequence is transmitted bit by bit through a serial communication link to a receiving end of a master control unit.
[0010] Further, the step S300 comprises: S310, anti-interference processing is performed on the transmitted pulse variation sequence by using a signal transmission protocol, noise interference is filtered through a median filter to obtain a first filtered pulse sequence; S320, according to a pre-established integrity check table, bit error rate calculation is performed on the first filtered pulse sequence to determine an integrity index; S330, if the integrity index is greater than a preset threshold, error correction optimization is performed on the first filtered pulse sequence by using a Hamming code error corrector to obtain a second filtered pulse sequence; S340, inverse width-frequency mapping processing is performed on the second filtered pulse sequence by using a demodulation unit to obtain original parameter data.
[0011] Further, the step S400 comprises: S410, according to the demodulated original parameter data, corresponding data is obtained from an additional sensor through a networking communication protocol, the corresponding data is synchronized with the demodulated original parameter data to obtain a preliminary fusion data set; S420, according to the preliminary fusion data set, data alignment processing is performed by using a hash matching tool, the data alignment processing fuses the corresponding data to obtain a networking integrated parameter data set; S430, according to the networking integrated parameter data set, a deviation index sequence of the networking integrated parameter data set is determined by performing domain-by-domain comparison through a control logic unit; S440, if the deviation index sequence exceeds a preset threshold, it is determined that there is an abnormal deviation.
[0012] Further, the step S500 comprises: S510, according to the judgment of the network integration parameter data set of abnormal deviation, the control mechanism is adopted to generate a targeted deviation compensation value sequence, and a preliminary control instruction set is obtained; S520, through the communication link, the current running state parameter of the terminal equipment is acquired in real time, the preliminary control instruction set is subjected to priority sorting processing, and an optimized control instruction sequence is determined; S530, if the single instruction deviation compensation value of the control instruction in the optimized control instruction sequence exceeds the upper limit of the safe adjustment of the terminal equipment, the control instruction is split into multiple progressive sub-instructions, and an adjusted control instruction set is obtained; S540, the adjusted control instruction set is issued to the corresponding terminal equipment through the communication link, and the terminal equipment executes the parameter adjustment operation after receiving the adjusted control instruction set and returns an execution completion confirmation signal.
[0013] Another aspect of the application relates to a PFM pulse frequency modulation based air pressure sensor communication control system for executing the PFM pulse frequency modulation based air pressure sensor communication control method described above, comprising: The pulse change sequence acquisition module is used for acquiring parameter data from the environment through the environment parameter sensor, processing the parameter data into analog signals through the signal conditioning unit including amplification and filtering functions, and inputting the analog signals into the modulation unit to obtain the pulse change sequence through mapping processing; The pulse change sequence transmission module is used for encoding optimization according to the pulse change sequence, determining the matching degree of the pulse change sequence and the parameter change amount, and transmitting the matched pulse change sequence to the receiving end of the master control unit through the communication link; The original parameter data restoration module is used for filtering noise interference by adopting a signal transmission protocol to implement anti-interference processing on the transmitted pulse change sequence, and if the integrity of the filtered pulse change sequence meets the condition, the original parameter data is restored by inversely mapping the filtered pulse change sequence through the demodulation unit; The abnormal deviation analysis module is used for integrating corresponding data from additional sensors to obtain a network integration parameter data set according to the demodulated original parameter data under the network communication framework, comparing the network integration parameter data set through control logic, and analyzing and judging abnormal deviation; The parameter related adjustment operation execution module is used for processing the network integration parameter data set of abnormal deviation by adopting a control mechanism to generate corresponding control instructions, and feeding back the control instructions to the terminal equipment to execute parameter related adjustment operation through the communication link.
[0014] The application has the following beneficial effects: The application provides a PFM pulse frequency modulation-based air pressure sensor communication control method and system. BRIEF DESCRIPTION OF DRAWINGS
[0015] Figure 1 FIG. 1 is a flowchart of an embodiment of the PFM pulse frequency modulation-based air pressure sensor communication control method. Figure 2 FIG. 2 is a functional block diagram of an embodiment of the PFM pulse frequency modulation-based air pressure sensor communication control system.
[0016] REFERENCE SIGNS 10, pulse change sequence acquisition module; 20, pulse change sequence transmission module; 30, original parameter data restoration module; 40, abnormal deviation judgment and analysis module; 50, parameter-related adjustment operation execution module. DETAILED DESCRIPTION
[0017] In order to better understand the above technical solutions, the above technical solutions will be described in detail below in combination with the drawings in the specification and specific embodiments.
[0018] As shown in FIG. 1, the first embodiment of the application provides a PFM pulse frequency modulation-based air pressure sensor communication control method, which includes the following steps: Figure 1 S100, obtaining parameter data from the environment by an environmental parameter sensor, processing the parameter data into an analog electrical signal by a signal conditioning unit including an amplification and filtering function, and inputting the analog electrical signal into a modulation unit to obtain a pulse change sequence through mapping processing.
[0019] With the ambient pressure as the core monitoring object, the ambient pressure parameter data is collected in real time by the deployed environmental parameter sensors (such as MEMS (Micro-Electro-Mechanical System) pressure sensors, high-precision piezoelectric pressure sensors), and the temperature, humidity and other auxiliary environmental parameters can be collected synchronously; the original parameter data is transmitted to the signal conditioning unit integrated with amplification and filtering functions - the weak sensor signal is amplified by the operational amplifier (the amplification multiple is dynamically adjusted according to the output sensitivity of the sensor to ensure that the signal amplitude is suitable for subsequent processing), and the high-frequency interference signals such as electromagnetic interference and sensor noise are filtered by the low-pass filter (such as RC (Resistor-Capacitor) filter, active filter), and the processed parameter data is converted into stable analog electrical signals. The analog electrical signals are input into the PFM (Pulse frequency modulation) modulation unit, and the mapping algorithm (such as linear mapping, segmented nonlinear mapping, which adapts to the corresponding relationship between the pressure parameter and the pulse frequency) is used to modulate and process the analog electrical signals: according to the amplitude change of the analog electrical signals (corresponding to the size change of the pressure parameter), a "pulse change sequence" with a frequency changing with the parameter is generated - that is, the larger (or smaller) the pressure parameter value is, the higher (or lower) the frequency of the pulse sequence is, and the width and amplitude of each pulse in the sequence remain fixed, only the frequency reflects the parameter change, ensuring accurate encoding of the parameter information.
[0020] S200, according to the pulse change sequence, the corresponding relationship is used for encoding optimization to determine the matching degree of the pulse change sequence and the parameter change amount, and the matched pulse change sequence is transmitted to the receiving end of the main control unit through the communication link.
[0021] For the pulse change sequence generated in step S100, the preset "pulse frequency-parameter change amount" corresponding relationship (such as the frequency range 1kHz-10kHz corresponding to the pressure range 80kPa-120kPa) is used for encoding optimization - by establishing a precise mapping table, the non-linear error is eliminated, and the one-to-one correspondence between the pulse frequency and the pressure parameter change amount is ensured; at the same time, the "matching degree" of the pulse change sequence and the parameter change amount is calculated (such as by mean square error, correlation quantity, and the matching degree ≥ 95% is qualified), to ensure the accuracy of the encoding. The matched pulse change sequence is transmitted to the receiving end of the main control unit through a designated communication link (such as a wired link such as UART (Universal Asynchronous Receiver and Transmitter), SPI (Serial Peripheral Interface), I2C (Inter-Integrated Circuit), or a wireless link such as LoRa (Long Range Radio) or Bluetooth, selected according to the application scenario); during transmission, the pulse sequence is packaged in a frame format (containing start bit, data bit, check bit, and stop bit), and the check bit is used to preliminarily judge whether the data transmission is incorrect, thereby ensuring the integrity of the sequence transmission.
[0022] S300, the transmitted pulse change sequence is subjected to anti-interference processing to filter noise interference using a signal transmission protocol, and if the integrity of the filtered pulse change sequence meets the conditions, the filtered pulse change sequence is subjected to inverse mapping processing to restore the original parameter data through a demodulation unit.
[0023] After the receiving end of the main control unit obtains the transmitted pulse change sequence, anti-interference processing is first performed using a signal transmission protocol (such as a CRC (Cyclic Redundancy Check) verification protocol or a parity verification protocol) to filter noise interference and data distortion caused by electromagnetic interference and link attenuation during transmission through a verification algorithm, to eliminate incorrect pulse signals and repair slightly distorted sequence data. The integrity of the filtered pulse change sequence is judged: if the frame structure of the sequence is complete, the check bit is matched, and the pulse frequency is within the preset effective range, it is determined that the integrity condition is met; if not, a retransmission instruction is sent to the transmitting end. For the pulse change sequence that meets the conditions, the PFM demodulation unit is input, and through inverse mapping processing (i.e., the reverse operation of PFM modulation, based on the mapping table in the encoding optimization stage), the pulse frequency signal is restored to the corresponding analog electrical signal, and then converted into digital form "original parameter data" (i.e., quantized data consistent with the air pressure parameters collected by the sensor).
[0024] S400, according to the demodulated original parameter data, the corresponding data from the additional sensor is integrated under the networking communication framework to obtain a networking integrated parameter data set, and the networking integrated parameter data set is compared and analyzed for abnormal deviation through control logic.
[0025] With the demodulated original air pressure parameter data as the core, under the preset networking communication framework (such as star networking, Mesh networking, supporting multiple sensor node access), the corresponding timestamp data from the additional sensors (such as temperature sensors, humidity sensors, wind speed sensors, etc., used to assist in judging the air pressure related environmental state) is integrated, the data redundancy and format heterogeneity problem is eliminated, and the "networking integrated parameter data set" is formed according to the structure of "timestamp + core parameter + auxiliary parameter + sensor identifier", which fully reflects the multi-dimensional state of the environment. By presetting the control logic (such as threshold comparison logic, trend analysis logic, multi-parameter correlation logic), the networking integrated parameter data set is compared and analyzed: the air pressure parameters and auxiliary parameters are compared with the preset standard value (such as the normal working environment air pressure range, the parameter linkage threshold value), or the trend of the parameter change with time is analyzed whether it is beyond the stable range, to judge whether there is "abnormal deviation" (such as air pressure sudden rise / sudden drop beyond the safety threshold, air pressure and temperature parameter linkage abnormality), and output the abnormal deviation judgment result (including abnormal parameter type, deviation value, occurrence timestamp).
[0026] S500, using the control mechanism to process the networking integrated parameter data set with abnormal deviation, generate corresponding control instructions, and feed back the control instructions to the terminal device through the communication link to execute parameter related adjustment operation.
[0027] For the networking integrated parameter data set with abnormal deviation determined in step S400, a preset control mechanism (such as proportional control, PID (Proportion Integration Differentiation, Proportion-Integration-Differentiation controller) control, fuzzy control, adapted according to application scenarios) is used for processing—based on the type, size, and influence range of the abnormal deviation, the optimal control amount is calculated, and the corresponding "control instruction" (such as adjusting the air pressure compensation module of the terminal device, starting the ventilation / pressurization equipment, adjusting the sensor acquisition frequency, etc.) is generated. The control instruction includes control object, control parameter, target value, execution time limit and other core information. The control instruction is fed back to the corresponding terminal device (such as air pressure regulation device, environmental control equipment, sensor terminal) through the communication link, and the terminal device executes parameter related adjustment operation after receiving the instruction; after the operation is completed, the terminal device feeds back the execution result to the master control unit, forming a "monitoring-control-feedback" closed loop, ensuring that the abnormal deviation is corrected in time, and the environmental air pressure and related state are maintained within a reasonable range.
[0028] Further, the air pressure sensor communication control method based on PFM pulse frequency modulation proposed in the embodiment, step S100 includes: S110. At least one raw environmental parameter data, such as temperature, humidity, air pressure, and light intensity, is collected in real time by environmental parameter sensors to form a first parameter dataset. Offset compensation and linear correction are performed on the first parameter dataset according to a pre-established sensor calibration table to obtain a second parameter dataset.
[0029] The following formula was used to perform offset compensation processing on the original environmental parameter data: (1) In formula (1), Indicates the second parameter in the dataset. Calibration data for each sensor, Indicates the first parameter in the dataset. The raw data collected by each sensor Indicates the first in the sensor calibration table The offset compensation value corresponding to each sensor.
[0030] The following formula is used to perform linear calibration correction on sensor data, eliminating non-ideal characteristics of the sensor: (2) In formula (2), This represents the sensor output value after linear correction. This represents the sensor's raw measurement value. Indicates the linear correction coefficient. This represents the bias term for linear correction.
[0031] The following formula is used to weightedly fuse multiple environmental parameter data: (3) In formula (3), express The comprehensive environmental parameter values at any given time. express Temperature data at any given time, in degrees Celsius (°C). express Humidity data at any given time, in units of relative humidity (%RH). express Light intensity data at any given time, in lux (lx). express The air pressure data at any given time is in kilopascals (kPa). , , , These represent the weighting coefficients of each environmental parameter, satisfying... The control logic of formula (3) is a multi-dimensional environmental parameter weighted fusion based on scene priority. Through standardization processing, dynamic weight distribution and quantitative evaluation, an index reflecting the overall state of the environment is output, providing a scientific basis for subsequent abnormal judgment and control decision.
[0032] In the intelligent agricultural monitoring system, the original data of temperature, humidity, air pressure and light intensity are collected by environmental parameter sensors in real time to form the first parameter data set. This collection process usually relies on integrated sensor modules, such as DHT22 sensors for temperature and humidity collection, BMP180 for air pressure monitoring, and photoresistors for light intensity capture. These sensors are installed in the farmland environment and collect data every second to form an original data set containing multi-dimensional values to ensure real-time performance. In one embodiment, assuming a greenhouse application scenario, the sensor detects a temperature of 25 degrees Celsius, a humidity of 60%, an air pressure of 1013 hundred pascals, and a light intensity of 500 lux. These data are directly used as the first parameter data set for subsequent processing to support the optimization of crop growth environment.
[0033] The first parameter data set is subjected to offset compensation and linear correction according to a pre-established sensor calibration table to obtain the second parameter data set. This calibration table is generated through laboratory tests, for example, multiple calibrations of DHT22 sensors to record their offset values and linear slopes under standard conditions such as 0 degrees Celsius. Specifically, offset compensation involves subtracting a known deviation, such as if the sensor reads 26 degrees Celsius at a standard 25 degrees Celsius, the compensation formula is simply adjusted to the actual value minus 1 degree Celsius; linear correction applies a slope factor, such as multiplying by 0.98 to correct nonlinear errors. In the greenhouse scenario, the temperature of the first parameter data set is compensated from 25 degrees Celsius to 24 degrees Celsius, and the humidity data is adjusted from 60% to 58% through linear correction, thereby forming a more accurate second parameter data set. This correction preserves data reliability and avoids the influence of inherent sensor errors on agricultural decisions, such as automatic triggering of irrigation systems.
[0034] S120, input the second parameter data set into the signal conditioning unit, use the operational amplifier to amplify the weak signal with fixed gain, obtain the first analog electric signal, filter out the high frequency noise of the first analog electric signal through the low pass filter, obtain the second analog electric signal.
[0035] The basic formula of the operational amplifier fixed gain amplification is as follows: (4) In formula (4), Vout represents the output voltage of the amplified first analog electric signal, with unit of volt (V). K represents the fixed gain multiple of the operational amplifier; The second parameter represents the weak signal voltage of the input dataset, measured in volts (V). The bias voltage of the operational amplifier is expressed in volts (V). The control logic of formula (4) is broken down into two steps, which can be simply described as "amplification first, then bias superposition".
[0036] The attenuation characteristics of a low-pass filter for signals of different frequencies are described by the following formula: (5) In formula (5), This indicates that the low-pass filter operates at a certain frequency. The transfer function at that point, Represents pi; It represents the signal frequency, and the unit is Hertz (Hz). This indicates the resistance value of the low-pass filter, and the unit is ohms (Ω). This represents the capacitance value of the low-pass filter, measured in farads (F). The imaginary unit is represented. The control logic of formula (5) controls the attenuation of the signal through "frequency-dependent complex impedance".
[0037] The following formula describes how a low-pass filter processes the input signal in the time domain: (6) In formula (6), This represents the second analog electrical signal obtained after passing through a low-pass filter. This represents the impulse response function of the filter. This represents the first analog electrical signal input to the filter. Represents the integral variable. Indicates the current moment.
[0038] The second parameter dataset is input into the signal conditioning unit, where an operational amplifier amplifies the weak signal with a fixed gain to obtain the first analog electrical signal. This signal conditioning unit typically uses an operational amplifier such as the LM358, set to a gain of 10, to amplify the weak voltage signal from 0.1 volts to 1 volt. Specifically, in agricultural monitoring, the humidity signal may be very weak, and amplification facilitates subsequent processing. Then, a low-pass filter is used to filter out high-frequency noise from the first analog electrical signal to obtain the second analog electrical signal. The filter can be an RC circuit with a cutoff frequency set to 100 Hz to filter out high-frequency interference caused by fan vibration. In the greenhouse example, after the amplified signal noise is filtered out, a stable second analog electrical signal is obtained, representing accurate environmental parameters. This helps the system maintain data purity in noisy environments.
[0039] S130. Input the second analog electrical signal into the modulation unit, and use a voltage-frequency converter to map the second analog electrical signal into a first pulse sequence with a corresponding frequency change. If the frequency of the first pulse sequence exceeds the preset threshold range, adjust the frequency division coefficient through a frequency divider to obtain a second pulse sequence with a stable frequency.
[0040] The core conversion relationship of a voltage-frequency converter is described by the following formula: (7) In formula (7), This indicates the frequency of the first pulse sequence, measured in Hertz (Hz). This represents the voltage-to-frequency conversion factor, with units of Hertz per Volt (Hz / V). This represents the input second analog electrical signal voltage value, in volts (V). The reference frequency offset of the converter is expressed in Hertz (Hz). The control logic of formula (7) is "input voltage amplification and conversion + reference offset superposition", the core of which is to linearly convert the voltage signal into a frequency signal.
[0041] The frequency adjustment mechanism of a frequency divider is described by the following formula: (8) In formula (8), Indicates the frequency of the first pulse sequence. This indicates the frequency of the second pulse sequence obtained after frequency division, and the unit is Hertz (Hz). This represents the division factor of the frequency divider. The control logic of formula (8) is to reduce the input frequency by a fixed ratio.
[0042] The second analog electrical signal is input to the modulation unit, where a voltage-to-frequency converter maps it into a first pulse sequence with corresponding frequency variations. This converter, such as a 555 timer-based circuit, maps a voltage of 0 to 5 volts to frequency pulses of 1 to 10 kHz. If the frequency of the first pulse sequence exceeds a preset threshold range, such as 15 kHz, a frequency divider is used to adjust the division coefficient, resulting in a stable second pulse sequence. The frequency divider can use a counter chip, such as a division by 2, to reduce the high frequency to a safe range. In agricultural scenarios, if the frequency is too high after the temperature signal is converted into pulses due to high temperature, frequency division adjustment ensures sequence stability, facilitates wireless transmission, and avoids data loss.
[0043] S140. The second pulse sequence is width encoded using a pulse width modulation encoder to form a pulse change sequence containing environmental parameter information.
[0044] The following formula describes how a pulse width modulation encoder linearly maps environmental parameter information to pulse width: (9) In formula (9), Indicates the first The modulation width of each pulse. Indicates the reference pulse width. This represents the conversion coefficient from environmental parameters to pulse width. Indicates the first The environmental parameter values at each sampling point. The control logic of formula (9) is "based on the reference pulse width + linear modulation of environmental parameters", the core of which is to convert the change of environmental parameters into a linear adjustment of the pulse width.
[0045] The mathematical representation of a pulse change sequence containing environmental parameter information is described by the following formula: (10) In formula (10), The time-domain expression representing the pulse variation sequence. Indicates the total number of pulses. Indicates the first The amplitude of each pulse, Indicates the pulse period. Indicates the first The duration of each pulse The function represents a rectangular window function. It represents the current moment.
[0046] The normalization coding process from environmental parameter values to pulse width is described by the following formula: (11) In formula (11), Indicates the first The encoding width of each pulse, Indicates the first The measured values of each environmental parameter, and These represent the minimum and maximum values of the environmental parameter, respectively. and These represent the minimum and maximum widths of the pulse width modulation, respectively.
[0047] The second pulse sequence is width-coded using a pulse width modulation encoder to form a pulse variation sequence containing environmental parameter information. This encoder adjusts the pulse width, increasing as the temperature rises, ranging from 1 millisecond to 10 milliseconds, thus embedding multi-parameter information. In the greenhouse system, the final sequence can be transmitted to the central controller, decoded, and used to adjust ventilation or lighting for automated management. This encoding method improves data transmission efficiency and anti-interference capabilities.
[0048] Furthermore, in the barometric pressure sensor communication control method based on PFM pulse frequency modulation proposed in this embodiment, step S200 includes: S210. Based on the pulse change sequence, a width-frequency dual mapping optimization is performed using a pre-established encoding correspondence table to obtain the first optimized pulse sequence.
[0049] The output value of the first optimized pulse sequence is obtained using the following formula: (12) In formula (12), This indicates that the first optimized pulse sequence is at time [time]. The output value, This represents the total number of mapping items in the code-to-database table. Indicates the first Width modulation coefficients of each mapping term, Indicates the first The frequency modulation coefficients of each mapping term, Indicates the input pulse change sequence at time... The value, Indicates the first The time delay parameter corresponding to each mapping item.
[0050] The output of the width-frequency dual mapping optimization function is obtained through the following formula: (13) In formula (13), This represents the output of the width-frequency dual-mapping optimization function. The parameter representing the width of the input pulse. This represents the frequency parameter of the input pulse. This represents the weighting coefficients for the width mapping. The weighting coefficients represent the frequency mapping. This represents a function that uses a pre-built width-encoded lookup table. This represents a function that pre-establishes a frequency encoding lookup table.
[0051] The pulse sequence value after processing by the encoding correspondence table is obtained by the following formula: (14) In formula (14), Indicates the first The pulse sequence values at each time point after processing by the encoding correspondence table. Indicates the first Pulse change at each time point Represents the encoding mapping function, This represents a pre-established table of encoding correspondences.
[0052] For processing pulse change sequences, a pre-established encoding correspondence table is first used to perform width-frequency dual mapping optimization, resulting in a first optimized pulse sequence. This encoding correspondence table is a pre-defined mapping structure that associates the pulse width and frequency parameters with specific optimization rules. For example, in a smart agriculture monitoring system, this table might contain corresponding entries for different environmental parameters such as soil moisture or carbon dioxide concentration. Each entry defines a combination of a width ranging from 0.5 milliseconds to 5 milliseconds and a frequency ranging from 500 Hz to 2000 Hz. Specifically, this mapping optimization process involves looking up the corresponding entry in the table element by element of the input pulse change sequence. If a pulse has a width of 2 milliseconds and a frequency of 1000 Hz, it is adjusted to an optimized width of 1.8 milliseconds and a frequency of 950 Hz according to the rules in the table to meet transmission requirements. In a greenhouse crop monitoring scenario, assuming the collected pulse sequence represents real-time soil moisture changes, dual mapping can optimize the original sequence into a more compact form, facilitating subsequent analysis.
[0053] S220. Perform point-by-point matching calculations between the first optimized pulse sequence and the pre-stored parameter change dataset using a comparator to determine the matching degree value.
[0054] The matching degree value of the pulse sequence is obtained by the following formula: (15) In formula (15), Indicates the first The matching degree value of each pulse sequence. This represents the total number of sampling points in the sequence. Indicates the first optimized pulse sequence at the 1st... The amplitude of each sampling point This represents the first parameter in the dataset representing the change in pre-stored parameters. The data set in the first The value of each sampling point This represents the standard deviation parameter used in the matching calculation.
[0055] A comparator performs point-by-point matching calculations between the first optimized pulse sequence and a pre-stored parameter change dataset to determine the matching degree. This comparator is an electronic component used to compare the differences between two signals. Here, it checks each pulse point of the optimized pulse sequence against a reference value in the pre-stored dataset. For example, the pre-stored parameter change dataset might be a collection of historical agricultural data containing humidity change curves under standard crop growing conditions. Specifically, the matching calculation process involves subtracting the corresponding reference point from each point in the sequence, calculating the absolute difference, then summing all differences and dividing by the number of points to obtain the average matching degree. If the average value is below a certain threshold, it is considered a high match. In one embodiment, in a system monitoring rice paddies, the point value sequence of the first optimized pulse sequence, such as [1.2, 1.5, 1.8], is compared point-by-point with the pre-stored dataset [1.1, 1.4, 1.7]. The calculated difference is [0.1, 0.1, 0.1], and the average matching degree is 0.1. If the preset threshold is 0.2, the matching degree is less than the threshold, indicating that the sequence highly matches the expected changes.
[0056] S230. If the matching degree value is greater than the preset threshold, a convolutional neural network is used to perform feature extraction and recoding on the first optimized pulse sequence to obtain the second optimized pulse sequence.
[0057] The second optimized pulse sequence is obtained using the following formula: (16) In formula (16), This represents the second optimized pulse sequence. This represents the feature vector extracted by the convolutional neural network. This indicates the number of basis functions of the encoder. Indicates the first The weight coefficients of each basis function Indicates the first Each basis function is used to generate an optimized pulse sequence through recoding.
[0058] The feature vector extracted by the convolutional neural network is obtained by the following formula: (17) In formula (17), This represents the first optimized pulse sequence. Represents the convolution kernel weight matrix. This represents the bias vector. This represents the activation function. This indicates the convolution operation.
[0059] If the matching degree value is greater than a preset threshold, a convolutional neural network is used to perform feature extraction and recoding on the first optimized pulse sequence to obtain the second optimized pulse sequence. A convolutional neural network is a deep learning model that captures local patterns in a sequence through convolutional layers. For example, in agricultural applications, this convolutional neural network may have multiple convolutional layers, each using a 3x3 kernel to scan the pulse sequence and extract features such as frequency abrupt changes or width patterns. These features are then recoded through fully connected layers, mapping the extracted features into a new pulse form. Specifically, the feature extraction process first converts the sequence into a one-dimensional tensor, applying convolutional operations to capture the relationship between adjacent pulses. For example, in orchard monitoring, the network extracts patterns representing light intensity fluctuations from the sequence, and after recoding, generates a more robust second optimized pulse sequence. This process ensures the stability of the sequence under noise interference.
[0060] S240. The second optimized pulse sequence is transmitted bit by bit through the serial communication link to the receiving end of the main control unit.
[0061] The signal strength received by the main control unit receiver is obtained using the following formula: (18) In formula (18), This indicates the signal strength received by the main control unit receiver. Indicates the number of bits received. Indicates the first The binary value of a bit. This represents the channel gain coefficient of a serial communication link.
[0062] The second optimized pulse sequence is transmitted bit-by-bit to the main control unit receiving end via a serial communication link. This serial communication link is a point-to-point data transmission method, such as using the RS-232 protocol, sending each bit of the pulse sequence one by one. In one embodiment, in a field crop management system, the second optimized pulse sequence is converted into a binary bit stream, such as encoding one pulse point as 8 bits of data, and transmitted to the main control unit at a baud rate of 9600 via the link. This unit may be an embedded controller. The receiving end parses the bit stream to recover the sequence for further agricultural decision support.
[0063] Preferably, in the barometric pressure sensor communication control method based on PFM pulse frequency modulation proposed in this embodiment, step S300 includes: S310. The transmitted pulse change sequence is subjected to anti-interference processing using a signal transmission protocol. Noise interference is filtered out by a median filter to obtain the first filtered pulse sequence.
[0064] The following formula is used to filter noise from a pulse sequence: (19) In formula (19), This indicates the first filtered pulse sequence after median filtering at time [time value missing]. The output value, This indicates the original transmitted pulse sequence at time [time]. The sampled values, This represents the window radius of the median filter. This indicates the midpoint operation.
[0065] The process of using a signal transmission protocol to perform anti-interference processing on transmitted pulse-varying sequences first requires understanding that a signal transmission protocol is a standardized set of rules used to ensure the reliability and security of data during transmission. For example, in a smart agriculture monitoring system, this signal transmission protocol might be based on a custom wireless transmission standard, such as the LoRa protocol, which resists external interference by adding redundant bits and check mechanisms. Specifically, when processing pulse-varying sequences, the signal transmission protocol first groups the sequence, with each group containing a fixed number of pulse points. Then, it applies anti-interference algorithms, such as interleaving coding, to rearrange the data bits to disperse the impact of sudden interference.
[0066] Filtering noise interference using a median filter is a crucial step. A median filter is a non-linear filtering technique that works by sorting each point in the sequence with its neighboring points and replacing the original value with the median, thus effectively removing isolated noise points without obscuring edge information. In a greenhouse vegetable monitoring scenario, assuming the transmitted pulse change sequence represents real-time temperature fluctuations, the pulse change sequence may be subject to electromagnetic interference, introducing noise. For example, the original sequence point values are [25.0, 26.5, 100.0, 27.0], where 100.0 is a noise point. Using a median filter with a window size of 3, for the third point, the median of [26.5, 100.0, 27.0], 26.5, is used to replace it, resulting in the first filtered pulse sequence [25.0, 26.5, 26.5, 27.0]. This process ensures the smoothness of the pulse change sequence, facilitating subsequent analysis.
[0067] S320. Based on the pre-established integrity check table, perform bit error rate calculation on the first filtering pulse sequence to determine the integrity index.
[0068] The following formula is used to calculate the bit error rate of the first filtering pulse sequence, and the accuracy of data transmission is quantified by statistically analyzing the ratio of erroneous bits to the total number of bits: (20) In formula (20), Indicates bit error rate. Indicates the number of bits detected as errors. Indicates the total number of bits transmitted.
[0069] The following formula is used to assess the system's reliability level by calculating the overall data integrity: (twenty one) In formula (21), Indicators representing completeness Indicates the first The number of errors in each data block Indicates the length of each data block. This indicates the total number of data blocks.
[0070] The following formula is used to perform data verification calculations based on a pre-established integrity check table: (twenty two) In formula (22), Indicates the integrity check value. This indicates the first check in the pre-established check table. A verification code, Indicates the corresponding data bits. This indicates the total number of check bits. This represents the XOR operation.
[0071] The process of calculating the bit error rate for the first filtered pulse sequence based on a pre-established integrity check table requires explanation. The integrity check table is a pre-defined database structure that stores the bit pattern and expected check value of a standard sequence, used to detect errors during transmission. Specifically, the bit error rate calculation involves converting the sequence into a binary bit stream, then comparing it bit-by-bit with a reference bit stream in the table, and calculating the proportion of mismatched bits as the error rate. For example, in orchard irrigation monitoring, the bit stream of the first filtered pulse sequence is 101010, while the reference in the table is 101011. The difference is in the last bit, and the bit error rate is approximately 1 / 6 ≈ 0.167. Then, the integrity index is judged; if the error rate is below 0.1, the index is considered good. This connection ensures continuity from filtering to verification, because if the filtered sequence has high integrity, it can directly proceed to the next step; otherwise, further processing is required.
[0072] S330. If the integrity index is greater than the preset threshold, the first filter pulse sequence is optimized by using a Hamming code error corrector to obtain the second filter pulse sequence.
[0073] The decision-making process for Hamming code error correction is described by the following formula: (twenty three) In formula (23), Indicates the second filtering pulse sequence One element, Indicates the first filtered pulse sequence One element, Indicates the detected error bit. This represents the Hamming code parity check matrix. This indicates the received codeword. Indicates transpose. This represents the XOR operation.
[0074] The second filtering pulse sequence is obtained using the following formula: (twenty four) In formula (24), This indicates the second filtering pulse sequence. Indicates the total number of pulses. Indicates the first The amplitude of each pulse, Indicates at time The unit impulse function at that point, Indicates the sampling period. Indicates the first The frequency corresponding to each pulse Indicates the first The phase of each pulse, Indicates the first The cosine oscillation waveform of a carrier signal.
[0075] If the integrity index exceeds a preset threshold, a Hamming code error corrector is used to optimize the first filtered pulse sequence. Hamming code is a forward error-correcting code that detects and corrects single-bit errors by adding parity bits. Its principle is to use multiple parity bits to cover different combinations of data bits. For example, in a (7,4) Hamming code, adding 3 parity bits to 4 data bits can correct 1 bit error. Specifically, in a paddy field environmental monitoring system, assuming there is an error in the bitstream of the first filtered sequence, the Hamming code error corrector first calculates the position of the parity bits. If an error bit is detected, it flips the bit to obtain the second filtered pulse sequence. This optimization improves the reliability of the data and provides accurate input for demodulation.
[0076] S340. The demodulation unit performs inverse width-frequency mapping processing on the second filtered pulse sequence to obtain the original parameter data.
[0077] The inverse width-frequency mapping function is defined by the following formula: (25) In formula (25), Represents the inverse width-frequency mapping function. Indicates the input frequency value. Indicates the maximum pulse width. Indicates the minimum pulse width. Indicates the maximum frequency value. This represents the minimum frequency value.
[0078] The demodulated raw parameter data is obtained using the following formula: (26) In formula (26), This indicates the first result obtained after demodulation. One set of original parameter data, This represents a filtered pulse sequence signal. Indicates the first demodulation unit The demodulation kernel function corresponding to each parameter. This indicates the integration time window.
[0079] The process of performing inverse width-frequency mapping on the second filtered pulse sequence through a demodulation unit, which is a hardware or software module used to recover the original signal, involves converting the optimized width and frequency parameters back into the original data. The principle is based on the inverse operation of a preset mapping table. For example, in crop growth monitoring, the pulse width of the second filtered pulse sequence is 2.0 milliseconds and the frequency is 1000 Hz. By looking up the table, the inverse mapping is converted to the original soil moisture value of 45%, thus obtaining the original parameter data. This step completes the closed loop of the entire processing, ensuring the accurate application of the monitoring data.
[0080] Furthermore, in the barometric pressure sensor communication control method based on PFM pulse frequency modulation proposed in this embodiment, step S400 includes: S410. Based on the demodulated raw parameter data, acquire corresponding data from the additional sensor through the networking communication protocol. Synchronize the corresponding data with the demodulated raw parameter data to obtain a preliminary fused dataset.
[0081] The initial fusion of the datasets is obtained using the following formula: (27) In formula (27), Indicates the first A preliminary fusion of dataset elements, This represents the fusion weights of the original parameter data. Indicates the first One set of original parameter data, This indicates the overall weight of the additional sensor data. This indicates the number of additional sensors participating in the fusion. Indicates the first Specific weights of each additional sensor, Indicates the first The first additional sensor Each corresponding data point.
[0082] Based on the demodulated raw parameter data, the process of acquiring corresponding data from additional sensors via a network communication protocol first requires understanding that a network communication protocol is a standardized framework for data exchange between multiple devices. For example, in a smart agriculture monitoring system, this network communication protocol might be based on the ZigBee standard, which achieves low-power wireless networking by defining packet structures and routing mechanisms. Specifically, demodulated raw parameter data, such as a soil moisture value of 45%, will trigger the network communication protocol to send a request to additional sensors, such as an air temperature sensor. After the sensor responds, it returns corresponding data, such as a temperature of 28.0 degrees Celsius. Then, these data are synchronized, that is, the timestamps are aligned to ensure that the time point of the moisture data matches the temperature data, forming a preliminary fused dataset. This preliminary fused dataset contains a combination of multi-source parameters, providing a foundation for subsequent analysis.
[0083] S420. Based on the preliminary fusion dataset, a hash matching tool is used to perform data alignment processing. The data alignment processing merges the corresponding data to obtain the network integration parameter dataset.
[0084] The core matching logic for data alignment is implemented using the following formula: (28) In formula (28), Indicates source data With target data The alignment matching results between them This represents the hash value of the source data. The hash value representing the target data. This represents the threshold parameter for hash matching, when the source data... With target data A match is successful if the difference between the hash values of two data items is less than or equal to the threshold, and otherwise it is 0.
[0085] The following formula describes the process of fusing and integrating all aligned data to form a complete network parameter dataset: (29) In formula (29), This represents the final generated network integration parameter dataset. This indicates the number of data sources participating in the fusion. Indicates the first One source data, This indicates the corresponding data after alignment. This represents the data fusion operator.
[0086] Based on the preliminary fusion dataset, a hash matching tool is used to perform data alignment. The hash matching tool is a software module based on hash functions used to quickly find and align data items. Its principle is to convert data keys into hash values and store them in a table for easy comparison. Specifically, in the orchard environmental monitoring scenario, the preliminary fusion dataset includes a humidity sequence [45%, 46%] and a temperature sequence [28.0, 29.0]. The hash matching tool first calculates the hash value for each data point; for example, it calculates the hash value for humidity 45% to obtain the key value. Then, it matches the temperature data to achieve fusion, that is, merging corresponding items into pairs, such as (45%, 28.0), resulting in a network-integrated parameter dataset. This network-integrated parameter dataset integrates the parameters of all sensors, improving data consistency.
[0087] S430. Based on the network integration parameter dataset, the control logic unit performs a domain-by-domain comparison to determine the deviation index sequence of the network integration parameter dataset.
[0088] The following formula is used to calculate the dispersion of the entire deviation index series: (30) In formula (30), The standardized deviation value represents the sequence of deviation indicators. This indicates the total number of fields involved in the comparison. Indicates the first Deviation measurement values for each domain, This represents the mean of all domain deviation values. The standard deviation represents the deviation value.
[0089] The process of determining a deviation index sequence through domain-by-domain comparison using a control logic unit (CLU). The CLU is an embedded processing module that executes the comparison algorithm. Its principle is to define domains such as humidity and temperature, and then calculate the differences one by one. Specifically, in a paddy field monitoring system, the humidity domain of the network-integrated parameter dataset is [45%, 46%], and the reference standard domain is [44%, 45%]. The CLU compares each point; for example, 45% differs from 44% by 1%, and 46% differs from 45% by 1%, forming a deviation index sequence [1%, 1%]. This deviation index sequence reflects the degree of data deviation, facilitating anomaly detection.
[0090] S440. If the deviation index sequence exceeds the preset threshold, it is determined that there is an abnormal deviation.
[0091] The following formula is used to define the criteria for judging abnormal deviations: (31) In formula (31), This indicates the result of the anomaly assessment. Indicates the first A series of deviation index values, This represents the preset anomaly detection threshold. When the deviation index sequence value exceeds the preset threshold, [the following occurs]. An equal value of 1 indicates the presence of an abnormal deviation; otherwise... A value of 0 indicates a normal state.
[0092] If the deviation index sequence exceeds a preset threshold, an abnormal deviation is identified. The preset threshold is, for example, 0.5%. When a value in the deviation index sequence, such as 1%, exceeds the preset threshold of 0.5%, the system determines an anomaly and triggers an alarm. Specifically, in greenhouse vegetable monitoring, if the deviation index sequence [1%, 1%] exceeds 0.5%, it is considered an abnormal deviation. This determination ensures timely monitoring and avoids potential problems.
[0093] Preferably, in the barometric pressure sensor communication control method based on PFM pulse frequency modulation proposed in this embodiment, step S500 includes: S510. Based on the network integration parameter dataset for judging abnormal deviations, a targeted deviation compensation value sequence is generated using a control mechanism to obtain a preliminary control command set.
[0094] The following formula is used to generate targeted deviation compensation values through a control mechanism: (32) In formula (32), Indicates the first Deviation compensation value for each control loop This represents the proportional adjustment coefficient. This represents the nonlinear control intensity parameter. This indicates the current deviation error signal. This represents the integral adjustment coefficient. Indicates the current moment. The integral variable is represented. The control logic of formula (32) is a composite control of "nonlinear proportional control + integral cumulative control", the core of which is to simultaneously deal with the "current nonlinear characteristics" and "historical cumulative effect" of the deviation.
[0095] The following formula is used to generate a discretized set of control commands: (33) In formula (33), Indicates the first The output value of each control command This indicates the total number of control strategy layers. Indicates the first Layer activation strength, Represents the step function. Indicates the first Layer status signals, Indicates the first The threshold parameter of the layer, Indicates the first The action amplitude of the layer. The control logic of formula (33) is "activation superposition of multi-layer strategy", the core of which is to generate the final control command by combining the state triggers of different layers.
[0096] Based on the network-integrated parameter dataset used to identify abnormal deviations, the process involves generating a targeted deviation compensation value sequence using a control mechanism. This control mechanism is a feedback control-based algorithm framework used to calculate deviation compensation. Its principle is to generate compensation values by analyzing deviation indicators. Specifically, in the intelligent agricultural monitoring system, if the network-integrated parameter dataset shows a soil moisture deviation of 2%, the control mechanism will calculate a compensation value sequence according to preset compensation rules, such as linear interpolation. For example, it might generate a compensation sequence [0.5%, 1.0%, 0.5%] for moisture deviation. These values aim to gradually correct the deviation. Then, the deviation compensation value sequence is transformed into a preliminary control instruction set, such as instructions like "increase irrigation by 0.5%." This preliminary control instruction set provides the basis for subsequent optimization. This generation process ensures the targeted nature of the compensation.
[0097] S520: Obtain the current operating status parameters of the terminal device in real time through the communication link, perform priority sorting processing on the preliminary control command set, and determine the optimized control command sequence; The current operating status parameters of the terminal device are obtained using the following formula: (34) In formula (34), Indicates the first Each terminal device at time The comprehensive condition assessment value, Indicates equipment performance parameters, This represents the response time parameter. This represents a parameter indicating resource utilization rate. This represents the error rate parameter. , , , These are the corresponding weighting coefficients. The control logic of formula (34) is "weighted comprehensive evaluation of multi-dimensional equipment indicators", the core of which is to integrate the operating parameters of different dimensions of the equipment to obtain the overall state value.
[0098] The optimized control command sequence is determined using the following formula: (35) In formula (35), Indicates the first position in the sequence Optimal control instructions for each bit. Represents the set of candidate instructions. Indicates the efficiency coefficient of instruction execution. Indicates the quality score of the instruction. This represents the execution cost coefficient. Indicates the instruction execution delay time. Indicates the first There are candidate control instructions. The control logic of formula (35) is "benefit-cost trade-off optimization", the core of which is to select the optimal instruction from the candidate instructions that has the "highest benefit and lowest cost delay".
[0099] The process of acquiring real-time operating status parameters of terminal devices through a communication link. A communication link is a wireless transmission channel, such as a network based on the LoRa protocol, used for data exchange. Its principle is to establish point-to-point or multi-point connections to achieve low-latency transmission. Specifically, in an orchard environment monitoring scenario, the system acquires current operating status parameters from irrigation terminal devices via the link, such as the current water pump speed being 80 rpm. Then, it performs priority sorting processing on the initial control command set. This processing is a weighted algorithm-based sorting method, which assigns priority scores. For example, emergency deviation commands have higher scores, so commands in the initial control command set, such as "increase irrigation" and "adjust temperature," are sorted first to determine an optimized control command sequence. For instance, the first command in the optimized control command sequence might be "immediately increase irrigation by 0.5%," thus improving the efficiency of command execution.
[0100] S530. If the single instruction deviation compensation value of the control instruction in the optimized control instruction sequence exceeds the safety adjustment limit of the terminal device, then the control instruction is split into multiple progressive sub-instructions to obtain the adjusted control instruction set.
[0101] The following formula is used to define the conditions for splitting control instructions: (36) In formula (36), Indicates the first The single instruction deviation compensation value for each control command. Indicates the first The value of each control command. Indicates the reference control value. Indicates the upper limit of the terminal device's security adjustment. When the value is greater than 1, it indicates that the control command exceeds the safety adjustment limit and needs to be split. The control logic of formula (36) is "threshold judgment between command deviation and safety limit", the core of which is to determine whether the control command exceeds the safety adjustment range of the equipment.
[0102] The following formula is used to generate a progressive sub-instruction sequence in a linear increment, ensuring that the adjustment range of each sub-instruction is within a safe range: (37) In formula (37), Indicates the first The instruction value of a progressive subinstruction. Indicates the base instruction value. This indicates the total amount of instruction changes. This represents the total number of sub-instructions after splitting. A progressive sub-instruction sequence is generated using a linearly increasing method to ensure that the adjustment range of each sub-instruction is within a safe range. This indicates the sequence number of the currently generated sub-instruction. The control logic of formula (37) is "based on the basic instruction + linear step-by-step increment", the core of which is to break down instructions that exceed the safe range into multiple small-amplitude sub-instructions.
[0103] If the deviation compensation value of a single control command in the optimized control command sequence exceeds the safety adjustment limit of the terminal equipment, where the safety adjustment limit is a preset threshold of the equipment, such as a maximum adjustment range of 1%, to prevent overload. Specifically, in a paddy field monitoring system, if the compensation value of a control command in the optimized control command sequence is 1.5%, exceeding the upper limit of 1%, then the control command is split into multiple progressive sub-commands. For example, "increase irrigation by 1.5%" is split into three sub-commands: "increase by 0.5%", "increase by 0.5%", and "increase by 0.5%", resulting in an adjusted set of control commands. This adjusted set of control commands ensures the gradual nature of the adjustment and avoids equipment damage.
[0104] S540: The adjusted set of control commands is sent one by one to the corresponding terminal device through the communication link. After receiving the adjusted set of control commands, the terminal device performs the parameter adjustment operation and returns an execution completion confirmation signal.
[0105] The following formula is used to define the total time model for the complete execution of a set of control instructions: (38) In formula (38), This indicates the total time required for all control commands to complete. This indicates the total number of control commands after adjustment. Indicates the first The time it takes for a control command to be transmitted to the terminal device via the communication link. Indicates that the terminal device executes the first The time required for each control command to adjust parameters. This indicates that the terminal device has returned the first... The time of the confirmation signal for the completion of each instruction. The control logic of formula (38) is "single instruction full process time accumulation", the core of which is to calculate the total time of the entire process from the initiation to the completion of each instruction.
[0106] The following formula is used to define the calculation model for execution success rate: (39) In formula (39), This indicates the overall success rate of instruction execution within the system. Indicates the total number of control commands sent. Indicates the first The actual execution result status of the control instruction. Indicates the first The expected execution result status of the control instruction. The value is 1 when the actual execution result matches the expected result, and 0 otherwise. The control logic of formula (39) is "to count the number of instructions with consistent results + to calculate the proportion", the core of which is to calculate the proportion of instructions that actually execute and match the expected result.
[0107] The mathematical model for adjusting terminal device parameters is described by the following formula: (40) In formula (40), This indicates the adjusted equipment parameter values. This represents the original parameter values of the device. This indicates the amount of parameter correction required based on the control command. This represents the retention coefficient of the original parameters. The coefficient representing the parameter correction is used to precisely control the adjustment range of equipment parameters through this formula. The control logic of formula (40) is "original parameter retention + weighted superposition of correction amount", the core of which is to precisely control the adjustment range of parameters.
[0108] The process of sending the adjusted set of control commands to the corresponding terminal devices one by one via a communication link also utilizes the aforementioned communication link for transmission. The principle is to serialize the commands and add checksums to ensure integrity. Specifically, in greenhouse vegetable monitoring, the system sends sub-commands from the set to the irrigation equipment one by one. Upon receiving the commands, the terminal devices execute parameter adjustment operations, such as gradually increasing humidity, and return a confirmation signal indicating completion. For example, the confirmation signal might include "Adjustment complete, current humidity 46%". This confirmation signal is fed back to the system, forming a closed-loop control, thereby achieving automation and reliability in monitoring.
[0109] Please see Figure 2This embodiment relates to a communication control system for a barometric pressure sensor based on PFM pulse frequency modulation, used to execute the aforementioned communication control method for a barometric pressure sensor based on PFM pulse frequency modulation. It includes a pulse change sequence acquisition module 10, a pulse change sequence transmission module 20, a raw parameter data restoration module 30, an abnormal deviation analysis module 40, and a parameter-related adjustment operation execution module 50. The pulse change sequence acquisition module 10 acquires parameter data from the environment through an environmental parameter sensor, processes the parameter data into an analog electrical signal via a signal conditioning unit including amplification and filtering functions, and inputs it to a modulation unit for mapping processing to obtain a pulse change sequence. The pulse change sequence transmission module 20 optimizes the encoding based on the pulse change sequence using a correspondence relationship, determines the matching degree between the pulse change sequence and the parameter change amount, and transmits the matched data through a communication link. The pulse change sequence is transmitted to the receiving end of the main control unit; the original parameter data restoration module 30 is used to perform anti-interference processing on the transmitted pulse change sequence using a signal transmission protocol to filter noise interference. If the integrity of the filtered pulse change sequence meets the conditions, the original parameter data is restored by inverse mapping processing of the filtered pulse change sequence through the demodulation unit; the abnormal deviation analysis module 40 is used to integrate the corresponding data from the additional sensors under the network communication framework based on the demodulated original parameter data to obtain the network integrated parameter dataset. The network integrated parameter dataset is compared by the control logic to analyze and judge abnormal deviations; the parameter related adjustment operation execution module 50 is used to process the network integrated parameter dataset judged by the control mechanism, generate corresponding control commands, and feed back the control commands to the terminal device through the communication link to execute the parameter related adjustment operation.
[0110] The PFM-based barometric pressure sensor communication control method and system provided in this embodiment, compared with the prior art, in a multi-sensor network scenario, converts environmental parameters into analog electrical signals after signal conditioning and maps them into a unique pulse change sequence. Encoding optimization is performed on the matching degree between the pulse sequence and the parameter changes to achieve high-fidelity, low-power data expression and transmission. Anti-interference filtering is implemented through the communication link combined with the signal transmission protocol to ensure the integrity of the pulse sequence before inverse mapping to restore the original parameter data. Subsequently, the main control unit integrates multi-source sensor data to form a network parameter dataset. Abnormal deviations are judged by comparison logic, and control commands are generated and fed back to the terminal for precise adjustment, forming a complete link from sensing, optimized transmission to closed-loop control. This effectively solves the problems of traditional analog or digital transmission being susceptible to noise interference, high power consumption, difficulty in fusion of multi-source network data, and delayed abnormal response in integrated services, ultimately achieving highly reliable real-time monitoring and adaptive intelligent control of environmental parameters.
[0111] Although preferred embodiments of the invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the invention. Clearly, those skilled in the art can make various alterations and modifications to the invention without departing from its spirit and scope. Thus, if these modifications and modifications of the invention fall within the scope of the claims and their equivalents, the invention is also intended to include these modifications and modifications.
Claims
1. A gas pressure sensor communication control method based on PFM pulse frequency modulation, characterized by, The method comprises the following steps: S100, acquiring parameter data from the environment through an environmental parameter sensor, processing the parameter data into an analog electric signal through a signal conditioning unit comprising amplification and filtering functions, and inputting the analog electric signal into a modulation unit for mapping processing to obtain a pulse variation sequence; S200, according to the pulse variation sequence, using a corresponding relationship for encoding optimization to determine the matching degree of the pulse variation sequence and the parameter variation quantity, and transmitting the matched pulse variation sequence to the receiving end of the main control unit through a communication link; S300, using a signal transmission protocol to implement anti-interference processing to filter noise interference on the transmitted pulse variation sequence, and if the integrity of the filtered pulse variation sequence meets the conditions, then using a demodulation unit to perform inverse mapping processing on the filtered pulse variation sequence to restore the original parameter data; S400, according to the demodulated original parameter data, integrating corresponding data from additional sensors under the networking communication framework to obtain a networking integrated parameter data set, comparing the networking integrated parameter data set through a control logic, and analyzing and judging abnormal deviations; S500, using a control mechanism to process the networking integrated parameter data set with abnormal deviations to generate corresponding control instructions, and feeding back the control instructions to the terminal device through a communication link to perform parameter-related adjustment operations.
2. The PFM pulse frequency modulation-based air pressure sensor communication control method according to claim 1, characterized by, Step S100 comprises: S110, collecting at least one original environmental parameter data such as temperature, humidity, air pressure and light intensity in real time through an environmental parameter sensor to form a first parameter data set, performing offset compensation and linear correction on the first parameter data set according to a pre-established sensor calibration table to obtain a second parameter data set; S120, inputting the second parameter data set into a signal conditioning unit, using an operational amplifier to perform fixed gain amplification on weak signals to obtain a first analog electric signal, and filtering high-frequency noise from the first analog electric signal through a low-pass filter to obtain a second analog electric signal; S130, inputting the second analog electric signal into a modulation unit, using a voltage-to-frequency converter to map the second analog electric signal into a first pulse sequence with corresponding frequency variation, and if the frequency of the first pulse sequence exceeds a pre-set threshold range, adjusting the frequency division coefficient through a frequency divider to obtain a second pulse sequence with stable frequency; S140, using a pulse width modulation encoder to perform width coding on the second pulse sequence to form a pulse variation sequence containing environmental parameter information.
3. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 1, wherein Step S200 comprises: S210, according to the pulse variation sequence, using a pre-established encoding correspondence table to perform width-frequency double mapping optimization to obtain a first optimized pulse sequence; S220, using a comparator to perform point-by-point matching calculation on the first optimized pulse sequence and a pre-stored parameter variation quantity data set to determine a matching degree value; S230, if the matching degree value is greater than a pre-set threshold value, using a convolutional neural network to perform feature extraction and re-encoding processing on the first optimized pulse sequence to obtain a second optimized pulse sequence; S240, performing bit-by-bit transmission on the second optimized pulse sequence through a serial communication link and transmitting it to the receiving end of the main control unit.
4. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 1, wherein, Step S300 comprises: S310, anti-interference processing is performed on the transmitted pulse change sequence by using a signal transmission protocol, noise interference is filtered by a median filter to obtain a first filtered pulse sequence; S320, according to a pre-established integrity check table, a bit error rate calculation is performed on the first filtered pulse sequence to determine an integrity index; S330, if the integrity index is greater than a preset threshold, a Hamming code error corrector is used to correct and optimize the first filtered pulse sequence to obtain a second filtered pulse sequence; S340, inverse width frequency mapping processing is performed on the second filtered pulse sequence by a demodulation unit to obtain original parameter data.
5. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 1, wherein, Step S400 includes: S410, according to the demodulated original parameter data, corresponding data is obtained from an additional sensor through a networking communication protocol, the corresponding data is synchronized with the demodulated original parameter data to obtain a preliminary fusion data set; S420, according to the preliminary fusion data set, a hash matching tool is used to perform data alignment processing, the data alignment processing fuses the corresponding data to obtain a networking integrated parameter data set; S430, according to the networking integrated parameter data set, a control logic unit is used for domain-by-domain comparison to determine a deviation index sequence of the networking integrated parameter data set; S440, if the deviation index sequence exceeds a preset threshold, it is determined that there is an abnormal deviation.
6. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 1, wherein, Step S500 includes: S510, according to the networking integrated parameter data set with abnormal deviation, a targeted deviation compensation value sequence is generated by using a control mechanism to obtain a preliminary control instruction set; The following formula is used to generate a targeted deviation compensation value by using a control mechanism: wherein, represents a deviation compensation value of the control loop, represents a proportional regulation coefficient, represents a non-linear regulation intensity parameter, represents a current deviation error signal, represents an integral regulation coefficient, represents a current time, represents an integral variable; The following formula is used to generate a discretized control instruction set: wherein, represents an output value of the control instruction, represents the total number of layers of the control policy, represents an activation strength of the layer, represents a step function, represents a state signal of the layer, represents a threshold parameter of the layer, represents an action amplitude of the layer; S520, the current running state parameters of the terminal device are obtained in real time through a communication link, priority sorting processing is performed on the preliminary control instruction set to determine an optimized control instruction sequence; S530, if the single instruction deviation compensation value of the control instruction in the optimized control instruction sequence exceeds the upper limit of the safe adjustment of the terminal device, the control instruction is split into multiple progressive sub-instructions to obtain an adjusted control instruction set; S540, the adjusted control instruction set is sequentially issued to the corresponding terminal device through the communication link, and the terminal device performs a parameter adjustment operation after receiving the adjusted control instruction set and returns an execution completion confirmation signal.
7. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 6, wherein, In step S520, the current running state parameters of the terminal device are obtained by the following formula: ; wherein, denotes the comprehensive state evaluation value of the terminal device at the time point in time, denotes a device performance parameter, denotes a response time parameter, denotes a resource utilization parameter, denotes an error rate parameter, , , , are respective weighting factors. The following formula is used to determine the optimized control instruction sequence: ; wherein, represents an optimal control instruction of the bit in the sequence, represents a candidate instruction set, represents an instruction execution benefit coefficient, represents an instruction quality score, represents an execution cost coefficient, represents an instruction execution delay time, represents the candidate control instruction.
8. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 7, wherein, In step S530, the following formula is used to define the split judgment condition of the control instruction: ; wherein, represents a single instruction offset compensation value of the control instruction, represents a numerical value of the control instruction, represents a reference control value, represents a terminal device safety adjustment upper limit, when is greater than 1, it indicates that the control instruction exceeds the safety adjustment upper limit and needs to be split. The following formula is used to generate a progressive sub-instruction sequence in a linear incremental manner to ensure that the adjustment amplitude of each sub-instruction is within a safe range: ; wherein, represents the instruction value of the progressive sub-instruction, represents the base instruction value, represents the total instruction change amount, represents the total number of sub-instructions after splitting, and the progressive sub-instruction sequence is generated in a linear incremental manner to ensure that the adjustment range of each sub-instruction is within a safe range, represents the current sub-instruction sequence number.
9. The PFM pulse frequency modulation based air pressure sensor communication control method according to claim 8, wherein, In step S540, the following formula is used to define the total time model of complete execution of the control instruction set: ; wherein, represents the total time for all control instruction execution to be completed, represents the total number of adjusted control instructions, represents the time for the first control instruction to be transmitted to the terminal device through the communication link, represents the time for the terminal device to execute the first control instruction to make parameter adjustment, represents the time for the terminal device to return the first instruction execution completion confirmation signal; The following formula is used to define the calculation model of the execution success rate: ; wherein, represents the success rate of instruction execution of the system as a whole, represents the total number of control instructions sent, represents the actual execution result state of the control instruction No. represents the expected execution result state of the control instruction No. is an indicator function, which takes the value 1 when the actual execution result coincides with the expected result, and 0 otherwise. The following formula describes the mathematical model of the parameter adjustment operation of the terminal device: ; wherein, represents the adjusted device parameter value, represents the original parameter value of the device, represents the parameter correction amount required according to the control instruction, represents the holding coefficient of the original parameter, represents the application coefficient of the parameter correction, which is used to accurately control the adjustment range of the device parameter.
10. A PFM pulse frequency modulation-based air pressure sensor communication control system for executing the PFM pulse frequency modulation-based air pressure sensor communication control method according to any one of claims 1 to 9, characterized by It includes: The pulse variation sequence acquisition module (10) is used for acquiring parameter data from an environment by an environmental parameter sensor, processing the parameter data into an analog electric signal through a signal conditioning unit including amplification and filtering functions, and inputting the analog electric signal into a modulation unit to obtain a pulse variation sequence through mapping processing; The pulse variation sequence transmission module (20) is used for determining the matching degree of the pulse variation sequence and a parameter variation amount according to the pulse variation sequence, performing coding optimization by using a corresponding relationship, and transmitting the matched pulse variation sequence to a receiving end of a master control unit through a communication link; The original parameter data restoration module (30) is used for performing anti-interference processing on the transmitted pulse variation sequence by using a signal transmission protocol to filter noise interference, and performing inverse mapping processing on the filtered pulse variation sequence by using a demodulation unit to restore original parameter data if the integrity of the filtered pulse variation sequence meets a condition; The abnormal deviation analysis module (40) is used for obtaining a networked integrated parameter data set by integrating corresponding data from additional sensors according to the demodulated original parameter data under a networked communication framework, comparing the networked integrated parameter data set by using a control logic, and analyzing and judging an abnormal deviation; The parameter related adjustment operation execution module (50) is used for processing the networked integrated parameter data set of the abnormal deviation by using a regulation and control mechanism, generating a corresponding control instruction, and feeding back the control instruction to a terminal device through a communication link to execute a parameter related adjustment operation.
Citation Information
Patent Citations
Pulse frequency modulation type image sensor circuit and processing method of the same
CN107396009A
Carrier generation method, device and equipment for pulse frequency modulation
CN118041321A
Photoelectric sensor controlled by pulse frequency modulation
CN118946860A
Full-isolation data acquisition method, circuit and terminal
CN120560117A
Adaptive energy converter with variable duty cycle and frequency modulation
WO2024013774A1
Cited By
Dynamic pulse width modulation method
CN121814069A
