Air pressure factory calibration method and system, computer equipment and storage medium

Through the multi-reference calibration air pressure method, the problem of inaccurate accuracy of relative height difference between equipment is solved, the consistency of height measurement and calibration efficiency are improved, and the operation and maintenance costs are reduced.

CN120084476APending Publication Date: 2025-06-03TIANJIN TIANAN BORUI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510241429.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

The accuracy of the relative height difference between devices is inaccurate, mainly due to the air pressure measurement deviation caused by sensor manufacturing errors, calibration errors, long-term drifts, temperature changes and other factors.

Method used

The multi-reference calibration air pressure method is adopted, and multiple devices with small air pressure fluctuations are used as references to perform multi-reference redundant calibration and long-term stable acquisition to eliminate single-device errors and adapt to environmental changes.

Benefits of technology

It improves the consistency of relatively high measurements between equipment, significantly improves calibration efficiency, reduces operation and maintenance costs, and realizes real-time data acquisition, centralized storage and automatic processing, which facilitates data tracking and quality analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120084476A_ABST
    Figure CN120084476A_ABST
Patent Text Reader

Abstract

The invention discloses an air pressure factory calibration method and system, computer equipment and a storage medium, and relates to the technical field of measurement and calibration, and the method comprises the steps: configuring two barometers for each piece of equipment, reading the data of the barometers, and carrying out the data filtering; data processing is carried out through compensation measures; collecting data of the calibration equipment and the reference equipment at the same time; the collected data are received and recorded through an upper computer, and noise filtering and abnormal value elimination are carried out; the current reference air pressure is calculated according to the air pressure mean value of the reference equipment, and when the updating time of any reference air pressure data exceeds the effective time period, the updating time is not included in reference air pressure calculation; rejecting bad equipment from the equipment of which the air pressure is to be calibrated according to a deviation error factor from the reference equipment; and writing the air pressure deviation of the reference equipment into the to-be-calibrated equipment to finish air pressure calibration. According to the method, the consistency of relative height between equipment is improved, the problem of low efficiency of one-by-one calibration is solved, the operation and maintenance cost is remarkably reduced, and the problem of data management dispersion is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of measurement and calibration, and particularly relates to a barometric pressure factory calibration method, system, computer device, and storage medium. Background Art

[0002] When calculating the height difference through the barometric pressure difference, since the barometric pressure measurement values of each device will vary due to barometric pressure fluctuations, and due to differences in the external environment (such as climate change) or the device itself, this error may be more obvious. In order to improve the accuracy of barometric pressure measurement, a reliable barometric pressure calibration method is needed to eliminate these errors so that the barometric pressure values of each device tend to be consistent at the same time and location.

[0003] The basic principle of a barometer for height measurement is that the barometer can compare the measured atmospheric pressure with a standard atmospheric pressure model (such as the International Standard Atmosphere model ISA) to calculate the corresponding height. There is a certain mathematical relationship between the barometric pressure value at a given location and the barometric pressure value at a reference location (usually sea level). This relationship can be described by some standard formulas (such as the International Standard Atmosphere model): , Suppose there are two devices (Device 1 and Device 2), and they measure barometric pressures P1 and P2 respectively. To calculate the height difference Δh between these two devices, assume that the temperature is normal temperature (about 288.15 K) and the gravitational acceleration g takes a constant value.

[0004] The key to height calibration lies in accurately compensating for changes in atmospheric pressure and eliminating the influence of the environment, sensors, and barometric pressure changes. However, there are some limitations in the prior art for height calibration, which specifically include the following:

[0005] 1. Nonlinear influence of the relationship between barometric pressure and height.

[0006] The relationship between atmospheric pressure and height is not strictly linear. During the acquisition process, it is affected by multiple factors such as temperature, humidity, and barometric pressure fluctuations, resulting in a large relative height error that may occur in the actual application of simple formulas;

[0007] 2. Manufacturing differences and calibration differences.

[0008] There are differences in the production and calibration of barometers between different devices. When calculating the height difference using barometric pressure values, there may be different reference errors, and even at the same location, there may be a certain error between devices;

[0009] 3. Usage complexity and cost.

[0010] Using multiple sensors to cooperate in measuring height values will increase the system complexity and cost, and using a standard air pressure source to regularly correct the measured values will increase the usage complexity and maintenance cost;

[0011] 4. Complex algorithms or calculation models.

[0012] Using real-time air pressure data to compare and calibrate the height with an atmospheric pressure model requires accurate air pressure data and a complex calculation model. Summary of the Invention

[0013] In view of the above problems, the present invention is proposed.

[0014] Therefore, the technical problem solved by the present invention is: the problem of inaccurate relative height difference accuracy between devices. There are inherent differences in air pressure measurement between different devices, mainly due to factors such as manufacturing errors, calibration errors, long-term drift, and temperature changes of sensors. This difference will cause deviations in the air pressure values measured by different devices, thereby affecting the height difference calculated based on the air pressure values. By using a multi-reference calibration air pressure method, the relative height accuracy between devices is improved.

[0015] The present invention uses multiple devices with small air pressure fluctuations as references and calibrates through multiple reference devices, which can better eliminate the errors of single devices, adapt to environmental changes, and prevent calibration value errors of all devices to be calibrated due to errors of single devices.

[0016] To solve the above technical problems, the present invention provides the following technical solution: An air pressure factory calibration method, including: equipping each device with two barometers, reading the data of the barometers and performing data filtering; performing data processing through compensation measures; simultaneously collecting data from the calibration device and the reference device; receiving and recording the collected data through the host computer and performing noise filtering and outlier rejection; calculating the current reference air pressure according to the average air pressure of the reference device, and if the update time of any reference air pressure data exceeds the effective period, it is not included in the calculation of the reference air pressure; eliminating defective devices for the devices to be calibrated according to the deviation error factors from the reference devices; writing the air pressure deviation of the reference device into the devices to be calibrated to complete the air pressure calibration.

[0017] As a preferred scheme of the air pressure factory calibration method described in the present invention, wherein: the data filtering includes, Circular buffer and data averaging; Each device is equipped with two barometers, and the data of the two barometers are read through the I2C communication method and stored in two buffers containing 30 elements respectively; After filtering out the 5 values with the largest fluctuations in the buffer of 30 elements, taking the average value of the 25 small-fluctuation data, averaging the average values of the two buffers again, and storing the result in a buffer of 10 elements; Output the average air pressure value of the current buffer.

[0018] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the data processing includes, Temperature compensation and secondary temperature compensation; The temperature compensation includes calculating the deviation between the temperature and the reference temperature, calculating the temperature value after temperature compensation, calculating the deviation between the calibration and the air pressure and temperature measurements, and calculating the sensitivity of the calibration to the air pressure and temperature measurements; The secondary temperature compensation includes calculating the secondary temperature compensation correction value, calculating the auxiliary variable, calculating the secondary compensation value of the offset, calculating the secondary compensation value of the sensitivity, updating the temperature value, updating the offset, and updating the sensitivity.

[0019] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the data collection includes, Air pressure data, device ID, and collection time; Place the device to be calibrated for air pressure value and multiple selected reference devices with small air pressure fluctuations in a sealed room at the same time to collect air pressure; The collection time is two nights a day; The reference device with small air pressure fluctuations includes screening out devices with an air pressure fluctuation range not exceeding 10 Pa as reference devices by continuously observing the air pressure data collected by the devices.

[0020] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the noise filtering and outlier rejection include, Record but do not use the data of the device in the 15 minutes before collection, and use the data of the device after 15 minutes of stable operation to filter noise and reject outliers from the collected air pressure data; Calculate the current reference air pressure according to the average air pressure of the reference devices. When the update time of any reference air pressure data exceeds the effective period, it is not included in the calculation of the reference air pressure; The effective period includes that when the data of the reference device has not been updated for more than 180 seconds, the current data is not used to calculate the reference air pressure.

[0021] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the rejection of defective devices includes, According to the specified standard, classify the devices to be calibrated for air pressure into three categories according to the deviation error factors from the reference devices; The specified standard includes collecting data of the device for two nights a day and calculating the average standard deviation; When the average standard deviation ≥ 10, the device is considered unqualified; When 7 ≤ average standard deviation < 10, the device is considered a second-class product; When the average standard deviation < 7, the equipment is considered first-class product.

[0022] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the deviation error factor includes Calculate the maximum error, minimum error, and standard deviation of the equipment to be calibrated for air pressure and the reference equipment; Calibrate according to the specified standard; Mark the unqualified equipment number in the file generated after calibration. When writing the calibration value, avoid the unqualified equipment numbers and hand them over to the maintenance department for rework.

[0023] As a preferred embodiment of the air pressure factory calibration method described in the present invention, wherein: the air pressure calibration includes Each device contains a list storing the difference from the reference air pressure. The average value of the data in the list is the calibration value. Write the air pressure calibration value calculated by the host computer into the device through wireless communication, then the air pressure value of the device is the collected and filtered air pressure value + calibration value.

[0024] Another object of the present invention is to provide an air pressure factory calibration system. The present invention aims to solve a series of technical problems such as data accuracy, equipment calibration consistency, production efficiency, product quality control, environmental adaptability, and data management. By automatically collecting, filtering, and noise-filtering air pressure data, establishing and regularly updating the reference air pressure, ensuring the measurement consistency of multiple devices, improving production efficiency, reducing manual intervention and errors, thus ensuring that the factory-produced barometers meet the quality standards, enhancing the market competitiveness of products, and adapting to different environmental conditions. At the same time, it realizes the orderly management and long-term storage of a large amount of air pressure data, facilitating data analysis and traceability.

[0025] To solve the above technical problems, the present invention provides the following technical solutions: A barometric pressure factory calibration system, comprising: a data acquisition module, which reads the barometer data of each device through I2C communication, forms a preliminary barometric pressure data set, and stores the read data into a buffer; a data filtering module, which processes the collected barometric pressure data, eliminates the 5 values with the largest fluctuations, takes the average of the remaining 25 values, and finally stores it into a buffer with 10 elements; a calibration data acquisition module, which collects barometric pressure data in a closed environment, covering one day and two nights, to establish a reference barometric pressure; a data transmission and storage module, which transmits the collected barometric pressure data, device ID, and acquisition time to the host computer for recording and storage; a host computer processing module, which performs noise filtering and outlier elimination on the received barometric pressure data, confirms the stability of the device, and only adopts the data after stable operation; a reference barometric pressure update module, which periodically updates the reference barometric pressure, compares the average barometric pressure value of the device to adjust the current reference barometric pressure, sets an effective period, and automatically eliminates the data that has not been updated outside the effective period; a calibration module, which classifies the barometric pressure calibration device into three categories according to the error and standard deviation indexes between the device and the reference device, and writes the calculated barometric pressure deviation into the device to be calibrated to complete the barometric pressure calibration process.

[0026] A computer device, comprising a memory and a processor, the memory stores a computer program, and is characterized in that when the processor executes the computer program, it implements the steps of a barometric pressure factory calibration method configured by the method.

[0027] A computer-readable storage medium, on which a computer program is stored, and is characterized in that when the computer program is executed by a processor, it implements the steps of a barometric pressure factory calibration method configured by the method.

[0028] The beneficial effects of the present invention: The present invention can improve the consistency of the relative height between devices. Aiming at the problem of barometric pressure measurement differences between different devices, this patent eliminates the reference error between devices and improves the consistency of relative height measurement through multi-reference redundant calibration and long-term stable acquisition; overcomes the low efficiency problem of one-by-one calibration. The method of calibrating devices one by one takes a long time and is prone to errors, while this patent significantly improves the calibration efficiency through wireless communication and batch data processing, meeting the requirements of large-scale device calibration scenarios; significantly reduces the operation and maintenance costs. Centralized data management through wireless communication improves the operation simplicity. The batch calibration process shortens the calibration time, and redundant design and data filtering reduce the maintenance requirements of the devices; solves the problem of decentralized data management. By analyzing key parameters such as the maximum error, minimum error, and standard deviation between the device and the reference device, the quality grade classification of the device (such as unqualified, first-class product, second-class product, etc.) is realized, and real-time data acquisition, centralized storage, and automatic processing of data are achieved, facilitating data tracking and quality analysis. Description of the Drawings

[0029] To more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings, where:

[0030] Figure 1 It is the overall flowchart of a method for factory calibration of air pressure provided by an embodiment of the present invention.

[0031] Figure 2 It is the air pressure data of multiple benchmarks for a method for factory calibration of air pressure provided by an embodiment of the present invention.

[0032] Figure 3 It is the trend chart of the air pressure data of multiple devices to be calibrated for a method for factory calibration of air pressure provided by an embodiment of the present invention.

[0033] Figure 4 It is the air pressure data of multiple devices to be calibrated for a method for factory calibration of air pressure provided by an embodiment of the present invention.

[0034] Figure 5 It is to import the saved file for a method for factory calibration of air pressure provided by an embodiment of the present invention, and automatically distinguish whether the product calibration is qualified.

[0035] Figure 6 It is to generate and save the calibration value file of the device to be calibrated for a method for factory calibration of air pressure provided by an embodiment of the present invention. Specific Embodiments

[0036] To make the above objects, features, and advantages of the present invention more obvious and understandable, the following will describe the specific embodiments of the present invention in detail with reference to the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0037] Many specific details are set forth in the following description in order to provide a thorough understanding of the present invention. However, the present invention can also be implemented in other ways different from those described herein. Those skilled in the art can make similar extensions without departing from the connotation of the present invention. Therefore, the present invention is not limited by the specific embodiments disclosed below.

[0038] Embodiment 1, referring to Figure 1 , which is the first embodiment of the present invention. This embodiment provides a method for factory calibration of air pressure, including: Step S1: Equip each device with two barometers, read the data of the barometers and perform data filtering.

[0039] Specifically, it includes a circular buffer and data averaging.

[0040] Furthermore, each device is equipped with two barometers A and B. The data of the two barometers are read through the I2C communication method and stored in two buffers containing 30 elements respectively; Specifically, in the 30 - data buffer, the absolute values of each data and the average value are sorted in ascending order, and the 5 data with the largest fluctuations are discarded. The remaining 25 are regarded as data with small fluctuations.

[0041] The 30 data in the buffer are , and the average value of the buffer is calculated as: , where is the value collected by the i - th barometer A and stored in the 30 - data buffer, i is the variable index, is the average value of the buffer of barometer A; The absolute value of the difference between each data and the average value is . After sorting in ascending order, the last 5 data with large fluctuations are discarded , and 25 data with small fluctuations are found . For the average value of the 25 data with small fluctuations Output: , After filtering out the 5 values with the largest fluctuations in the 30 - element buffer, take the average value of the 25 data with small fluctuations, and average the average values of the two buffers again. The result is stored in a 10 - element buffer; Specifically, the re - averaging is to output two average values in the two buffers respectively, and the re - averaged output is: , where is the average value output after re - averaging, is the average value of the buffer of barometer B; Taking the average of the average data of the two barometer buffers makes the finally output barometric value more reliable and avoids incorrect output of the barometric value due to the failure of one barometer; The barometer shows between 950 hPa and 1050 hPa under normal atmospheric pressure conditions. When the read barometric value is not within this range, it is considered that this barometer is faulty, and its data is not used. The average barometric value of the current buffer is output: Put the output into a 10 - element buffer, , Take the average value again : , At this time, the average value is used as the current air pressure value of the current device. The present invention ensures that even if one sensor fails or malfunctions (such as abnormal temperature, too high or too low air pressure value), the data of another sensor can still be used, increasing data redundancy and reliability.

[0042] Step S2: Perform data processing through compensation measures.

[0043] Specifically, it includes temperature compensation and secondary temperature compensation; The temperature compensation includes calculating the deviation between the measured temperature and the reference temperature: , Calculate the temperature value after temperature compensation: , Calculate the deviation between the measured air pressure and temperature during calibration: , Calculate the sensitivity of the measured air pressure and temperature during calibration: , Among them, is a measured temperature value, is the calibration coefficient of the sensor. These coefficients are determined during production and stored in the sensor for subsequent calculation of calibration values. The elements in the array are to , corresponding to different calibration coefficients respectively; is the difference between the temperature and the reference temperature of 2000K, is the temperature value after temperature compensation, is the deviation between the measured air pressure and temperature during calibration, is the sensitivity of the measured air pressure and temperature during calibration; The secondary temperature compensation includes calculating the secondary temperature compensation correction value : , Calculate the auxiliary variable: , Calculate the secondary compensation value of the offset: , Calculate the secondary compensation value of the sensitivity: , Update the temperature value : , Update offset : , Update sensitivity : , wherein, is an auxiliary variable for storing result; is the quadratic compensation value of the offset related to temperature, is the quadratic compensation value of the sensitivity related to temperature.

[0044] Step S3: Collect data from the calibration device and the reference device simultaneously.

[0045] The data collection specifically includes barometric data, device ID, and collection time; Put the device that needs to calibrate the barometric value and multiple selected reference devices with small barometric fluctuations into a sealed room to collect barometric pressure simultaneously; The collection time is two nights a day, aiming to cover the barometric pressure fluctuations from day to night as much as possible; The reference device with small barometric fluctuations includes screening out devices with a barometric fluctuation range not exceeding 10 Pa as reference devices by continuously observing the barometric data collected by the devices.

[0046] Step S4: Receive and record the collected data through the host computer and perform noise filtering and outlier rejection.

[0047] Specifically, the data in the first 15 minutes before the device collection is recorded but not used, and the data after the device has been working stably for 15 minutes is used to perform noise filtering and outlier rejection on the collected barometric data.

[0048] Step S5: Calculate the current reference barometric pressure according to the barometric mean value of the reference device. When the update time of any reference barometric pressure data exceeds the effective period, it is not included in the calculation of the reference barometric pressure.

[0049] It should be noted that the current reference barometric pressure is calculated according to the barometric mean value of the reference device. Among them, the barometric pressure received from the reference device is saved in the data list, and the average value is calculated based on the barometric data of all reference devices for 180 seconds as the reference barometric pressure; It should also be noted that when the update time of any reference barometric pressure data exceeds the effective period, it is not included in the calculation of the reference barometric pressure; The effective period includes that when the data of the reference device has not been updated for more than 180 seconds, the current data is not used to calculate the reference barometric pressure.

[0050] Step S6: Eliminate defective devices for the devices to be calibrated for air pressure based on the deviation error factors from the reference device.

[0051] Furthermore, according to the preset standards, the devices to be calibrated for air pressure are classified into three categories based on their maximum error, minimum error, and standard deviation factors from the reference device, so as to eliminate defective devices. The specific specified standards include that the device collects data for two nights a day and calculates the average standard deviation. When the average standard deviation ≥ 10, the device is considered unqualified. When 7 ≤ average standard deviation < 10, the device is considered a second-class product. When the average standard deviation < 7, the device is considered a first-class product.

[0052] It should be noted that calculate the maximum error of the device to be calibrated for air pressure from the reference device: , Minimum error: , Standard deviation: , , Among them, is the real-time air pressure of the device, is the reference air pressure, is the deviation between the real-time air pressure of the device and the reference air pressure, is the total number of devices, and i is the variable index; Calibrate according to the specified standards; Mark the unqualified device numbers in the file generated after calibration. When writing the calibration value, avoid the unqualified device numbers and hand them over to the maintenance department for rework.

[0053] Step S7: Write the air pressure deviation of the reference device into the device to be calibrated to complete the air pressure calibration.

[0054] Furthermore, write the calculated air pressure deviation from the reference device into the device to be calibrated to complete the air pressure calibration, which can calculate the relative height according to the air pressure difference between different devices.

[0055] It should be noted that each device contains a list storing the difference from the reference air pressure, and the average value of the data in the list is the calibration value. Write the air pressure calibration value calculated by the upper computer into the device through wireless communication, then the air pressure value of the device is the air pressure value after acquisition and filtering + the calibration value. Calculate the relative height: , Among them: h is the height, , are two barometric pressure values.

[0056] Embodiment 2 is an embodiment of the present invention. This embodiment provides a barometric pressure factory calibration system, including: a data acquisition module 100, a data filtering module 200, a calibration data acquisition module 300, a data transmission and storage module 400, a host computer processing module 500, a reference barometric pressure update module 600, and a calibration module 700.

[0057] The data acquisition module 100 reads the barometer data of each device through I2C communication, forms a preliminary barometric pressure data set, and stores the read data in a buffer.

[0058] Specifically, start I2C communication, connect barometer A and barometer B; regularly read the data of each barometer; store the read barometric pressure values in a buffer of 30 elements (one for barometer A and one for barometer B); after the data acquisition is completed, notify the data filtering module 200 that the data is ready for processing.

[0059] The data filtering module 200 processes the collected barometric pressure data, eliminates the 5 values with the largest fluctuations, takes the average of the remaining 25 values, and finally stores it in a buffer of 10 elements.

[0060] Specifically, receive the buffer data of 30 elements from the data acquisition module 100; sort the barometric pressure data of each buffer in ascending order; discard the largest 5 values and retain the remaining 25 values; calculate the average of the 25 values and store it in a new buffer of 10 elements; send the filtered data to the host computer processing module 500 for further processing.

[0061] The calibration data acquisition module 300 collects barometric pressure data in a closed environment, covering one day and two nights, to establish a reference barometric pressure.

[0062] Specifically, collect multiple selected reference devices with small barometric pressure fluctuations; synchronously start the acquisition of barometric pressure data (including device ID and acquisition time); record the barometric pressure data, and the continuous acquisition time is one day and two nights; after the data acquisition is completed, calculate the reference barometric pressure (not affected by abnormal changes); transfer the reference barometric pressure to the reference barometric pressure update module 600 for update.

[0063] The data transmission and storage module 400 transmits the collected barometric pressure data, device ID, and acquisition time to the host computer for recording and storage.

[0064] Specifically, receive the filtered data from the data filtering module 200; package the data, including barometric pressure data, device ID, and timestamp; send the data to the host computer processing module 500 through a communication interface for recording and storage; ensure the successful transmission of the data and give a confirmation feedback.

[0065] The host computer processing module 500 filters out noise and eliminates outliers from the received air pressure data to confirm the stability of the device, and only adopts the data after stable operation.

[0066] Specifically, it receives the data sent by the data transmission and storage module 400; filters out the data in the first 15 minutes before stable operation; performs outlier detection and noise filtering on the remaining data, and eliminates the outliers exceeding the set threshold (such as ±10 Pa); sends the cleaned data to the reference air pressure update module 600 and the calibration module 700 for subsequent processing.

[0067] The reference air pressure update module 600 updates the reference air pressure regularly, compares the average air pressure value of the device to adjust the current reference air pressure, sets the effective period, and automatically eliminates the data that has not been updated outside the effective period; specifically, it receives the reference air pressure data from the calibration data acquisition module 300; calculates the average air pressure value of the current device regularly (such as every hour); if the average air pressure value is updated within 180 seconds, it is used as the new reference air pressure; the updated reference air pressure is sent to the calibration module 700 to provide a basis for subsequent air pressure calibration.

[0068] The calibration module 700 classifies the air pressure calibration device into three categories according to the error and standard deviation indexes between the device and the reference device, and writes the calculated air pressure deviation into the device to be calibrated to complete the air pressure calibration process.

[0069] Specifically, it receives the data from the host computer processing module 500, including the cleaned air pressure data and the reference air pressure; calculates the maximum error, minimum error and standard deviation between each device to be calibrated and the reference air pressure; classifies the devices into three categories (unqualified, second-class products, first-class products) according to the set rules (such as, average standard deviation ≥ 10 is unqualified); for unqualified devices, generate a report marking the device number and record it for subsequent processing; write the calculated air pressure deviation value into the qualified device to be calibrated and perform the final air pressure calibration; after calibration, send the calibration value to the device to be calibrated through wireless communication means to achieve data update.

[0070] Embodiment 3, the third embodiment of the present invention, which is different from the first two embodiments in that: Specifically, when the air pressure factory calibration method is implemented in the form of software functional units and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, external hard drives, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0071] The computer program includes several instructions that can cause a computer device (such as a server, a personal computer, or other network devices) to execute the following steps: Equip each device with two barometers (A and B) and read data through I2C communication. 30 data of each barometer are stored in a buffer. Data averaging and fluctuation screening are performed, and the 5 data with the largest fluctuations are discarded. The remaining 25 data are used to calculate the average value. The average values of the two buffers are averaged again to form a buffer with 10 elements for outputting the current air pressure value. If the readings of the barometers are not within the range of 950 hPa to 1050 hPa, it is considered a failure and the data is not used.

[0072] Perform primary and secondary temperature compensations, calculate the deviation between the real-time temperature and the reference temperature, and adjust the sensitivity and offset of the air pressure measurement result; Place the device to be calibrated and multiple stable reference devices in a sealed room for air pressure data collection, and continuously observe to ensure that the air pressure fluctuation is less than 10 Pa; Record the data after the device has been operating stably for 15 minutes, and perform noise filtering and outlier rejection to ensure the reliability of the data.

[0073] Calculate the current reference air pressure based on the air pressure mean of the reference devices, and ignore the data that exceeds the effective period (not updated for 180 seconds); Calculate the standard deviation of the device according to the deviation between the device to be calibrated and the reference devices, classify the devices into qualified, first-class, and second-class products, and eliminate the unqualified devices; Write the air pressure deviation of the reference device into the device to be calibrated to complete the air pressure calibration, so as to calculate the relative height of the device according to the air pressure difference.

[0074] The logic and / or steps represented in the flowchart or otherwise described herein can, for example, be considered as a definable sequence of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device. As used in this specification, a "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

[0075] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection (electronic device) having one or more wirings, a portable computer diskette (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium can even be paper or other suitable media on which the program can be printed, as the program can be obtained electronically, for example, by optically scanning the paper or other media, followed by editing, deciphering, or otherwise processing as appropriate, and then storing it in a computer memory.

[0076] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, multiple steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or a combination of the following techniques well known in the art can be used: discrete logic circuits having logic gates for implementing logical functions on data signals, application specific integrated circuits having appropriate combinational logic gates, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.

[0077] The computer program of the present invention further supports real-time operations. For example, each device of the computer program of the present invention is equipped with two barometers for mutual backup, ensuring the redundancy of data collection. Even if one of the sensors fails, the other can continue to provide reliable data, so that real-time monitoring is not affected; the ring buffer and data averaging technology are adopted to perform real-time fluctuation analysis on the collected barometric data. By discarding the abnormal values with large fluctuations, a stable barometric average value can be quickly obtained, which can greatly reduce the data processing time and improve the real-time performance; by calculating the temperature compensation of the sensor in real time, the accuracy of the barometric data is ensured, strengthening the adaptability of the system under various environmental conditions and avoiding unnecessary delays; the selection of the reference device and real-time data collection enable the device to be calibrated to continuously compare with the data of multiple reference devices, so as to make quick adjustments and ensure the accuracy and timeliness of the output value.

[0078] Example 4, referring to Figures 2 - 6 , which is an embodiment of the present invention, provides a method for factory calibration of air pressure. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through experiments.

[0079] Figure 2 Combining the barometric data of multiple references Figure 3 and Figure 4 the barometric data of multiple devices to be calibrated, collect the data save files for one day and two nights; import the saved files and automatically distinguish whether the calibration is qualified, as Figure 5 shown; after writing the calculated calibration value into the device, the calibrated barometric pressure emitted during the wireless communication of all devices can achieve the unity of relative height and the consistency of factory production, solving the problem of large relative height differences caused by factors such as device differences and manufacturing differences. Figure 6

[0080] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not restrictive. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present invention, and they should all be covered by the scope of the claims of the present invention.

Claims

1. A method for factory calibration of air pressure, characterized in that: include, Each device is equipped with two barometers to read the barometer data and filter the data; Data processing through compensation measures; Collect data from calibration equipment and reference equipment simultaneously; The collected data is received and recorded by the host computer and subjected to noise filtering and outlier elimination; The current reference air pressure is calculated based on the average air pressure of the reference equipment. If the update time of any reference air pressure data exceeds the valid period, it will not be included in the reference air pressure calculation; Eliminate bad equipment from the equipment to be calibrated based on the deviation error factor from the reference equipment; Write the air pressure deviation of the reference device into the device to be calibrated to complete the air pressure calibration.

2. The air pressure factory calibration method according to claim 1, characterized in that: The data filtering includes: Ring buffer and data averaging; Each device is equipped with two barometers. The data of the two barometers are read through I2C communication and stored in two buffers containing 30 elements respectively. After filtering out the 5 values ​​with the largest fluctuations from the 30-element buffer, take the average of the 25 values ​​with smaller fluctuations, average the averages of the two buffers again, and store the result in the 10-element buffer; Output the average air pressure value of the current buffer.

3. The air pressure factory calibration method according to claim 1 or 2, characterized in that: The data processing includes: Temperature compensation, secondary temperature compensation; The temperature compensation includes calculating the deviation of the temperature from the reference temperature, calculating the temperature value after temperature compensation, calculating the deviation from the air pressure and temperature measurement during calibration, and calculating the sensitivity from the air pressure and temperature measurement during calibration; The secondary temperature compensation includes calculating a secondary temperature compensation correction value, calculating an auxiliary variable, calculating a secondary compensation value of an offset, calculating a secondary compensation value of a sensitivity, updating a temperature value, updating an offset, and updating a sensitivity.

4. The air pressure factory calibration method according to claim 3, characterized in that: The collected data includes: Air pressure data, device ID, and collection time; The equipment that needs to be calibrated for air pressure and multiple selected reference equipment with small air pressure fluctuations are placed in a closed room to collect air pressure; The time collection period is one day and two nights; The reference device with small air pressure fluctuation includes a device whose air pressure fluctuation range does not exceed 10Pa, which is selected as the reference device by continuously observing the air pressure data collected by the device.

5. The air pressure factory calibration method according to claim 4, characterized in that: The noise filtering and outlier removal include: Record but do not use the data from the 15 minutes before the equipment is collected. Use the data after the equipment has been working stably for 15 minutes, and filter the collected air pressure data for noise and outliers. The current reference air pressure is calculated based on the average air pressure of the reference equipment. If the update time of any reference air pressure data exceeds the valid period, it will not be included in the reference air pressure calculation; The effective period includes when the data of the reference device is not updated for more than 180 seconds, and the current data is not used to calculate the reference air pressure.

6. The air pressure factory calibration method according to claim 1, 2, 4 or 5, characterized in that: The defective rejection device includes: According to the specified standards, the equipment to be calibrated for air pressure is divided into three categories according to the deviation error factor from the reference equipment; The stated standards include the equipment collecting data for one day and two nights and calculating the average standard deviation; When the average standard deviation is ≥10, the equipment is considered unqualified; When 7≤mean standard deviation<10, the equipment is considered second-class; When the mean standard deviation is less than 7, the equipment is considered to be first-class.

7. The air pressure factory calibration method according to claim 6, characterized in that: The deviation error factor, include, Calculate the maximum error, minimum error, and standard deviation between the device to be calibrated and the reference device; Calibration according to specified standards; The unqualified equipment number is marked in the file generated after calibration. When writing the calibration value, avoid the unqualified equipment number and hand it over to the maintenance department for rework.

8. The air pressure factory calibration method according to claim 1, 2, 4, 5 or 7, characterized in that: The air pressure calibration includes, Each device contains a list that stores the difference from the reference air pressure. The average of the data in the list is the calibration value. The air pressure calibration value calculated by the host computer is written to the device through wireless communication. The air pressure value of the device is the collected and filtered air pressure value + the calibration value.

9. A barometric pressure factory calibration system, characterized in that: include, The data acquisition module (100) reads the barometer data of each device through I2C communication to form a preliminary air pressure data set, and stores the read data in a buffer; The data filtering module (200) processes the collected air pressure data, removes the five values ​​with the largest fluctuations, takes the average of the remaining 25 values, and finally stores them in a buffer of 10 elements; The calibration data acquisition module (300) collects air pressure data in a closed environment, covering one day and two nights, to establish a reference air pressure; The data transmission and storage module (400) transmits the collected air pressure data, device ID, and collection time to a host computer for recording and storage; The host computer processing module (500) performs noise filtering and outlier removal on the received air pressure data, confirms the stability of the equipment, and only adopts data after stable operation; The reference air pressure update module (600) periodically updates the reference air pressure, compares the average air pressure value of the device to adjust the current reference air pressure, sets an effective period, and automatically removes data that has not been updated outside the effective period; The calibration module (700) classifies the air pressure calibration equipment into three categories according to the error and standard deviation index between the equipment and the reference equipment, writes the calculated air pressure deviation into the equipment to be calibrated, and completes the air pressure calibration process.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the air pressure factory calibration method are implemented.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the air pressure factory calibration method are implemented.