CN111964836B - Barometer calibration method and device and electronic equipment - Google Patents
Barometer calibration method and device and electronic equipment Download PDFInfo
- Publication number
- CN111964836B CN111964836B CN202010710514.1A CN202010710514A CN111964836B CN 111964836 B CN111964836 B CN 111964836B CN 202010710514 A CN202010710514 A CN 202010710514A CN 111964836 B CN111964836 B CN 111964836B
- Authority
- CN
- China
- Prior art keywords
- air pressure
- value
- test
- barometer
- calibration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01L—MEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
- G01L27/00—Testing or calibrating of apparatus for measuring fluid pressure
- G01L27/002—Calibrating, i.e. establishing true relation between transducer output value and value to be measured, zeroing, linearising or span error determination
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Measuring Fluid Pressure (AREA)
Abstract
The application discloses a barometer calibration method, a barometer calibration device and electronic equipment. The barometer calibration method comprises the following steps: acquiring an environment temperature value under an actual environment condition and an air pressure feedback value of an air pressure meter; determining an air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relationship between the air pressure calibration value and the air pressure feedback value and the environment temperature value; and calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value. The corresponding relation between the air pressure calibration value and the air pressure feedback value and the environmental temperature value is established in advance, so that the air pressure feedback value of the barometer can be quickly calibrated, the measurement precision of the barometer is greatly improved, and the calibrated barometer can be accurately used in various extreme application scenes.
Description
Technical Field
The application relates to the technical field of instrument measurement, in particular to a barometer calibration method and device and electronic equipment.
Background
In recent years, barometers are increasingly applied to various electronic devices used in daily life of people, for example, terminal devices such as smart wearable devices and mobile phones can all realize a function of measuring barometric pressure, and the usage of the barometers is accompanied by more extreme application scenes such as plateau scenes with higher altitude, which puts higher demands on the measurement accuracy of the barometers. For barometers, due to the influence of problems such as production and assembly processes, the sensitivity of barometer components and devices after leaving the factory may vary, and in order to compensate for the accuracy influence caused by the sensitivity variation, calibration work needs to be performed on each component.
The traditional barometer calibration scheme is: the method comprises the steps of placing components in a standard atmospheric pressure environment, reading the numerical value of a barometer, comparing the numerical value with standard atmospheric pressure, taking the difference value generated by the two as a calibration value, and weighting the read atmospheric pressure value to the calibration value in the actual use process of the barometer. The calibration method is simple and does not take more complicated situations into consideration, for example, when the equipment is used under severe conditions such as extreme cold and extreme high, the value fed back by the barometer has larger deviation.
Disclosure of Invention
In view of the above technical problem, the present application is proposed to provide a barometer calibration method, apparatus and electronic device that overcome or at least partially solve the above technical problem.
According to a first aspect of the present application, there is provided a barometer calibration method, comprising:
acquiring an environment temperature value under an actual environment condition and an air pressure feedback value of an air pressure meter;
determining an air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value;
and calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
According to a second aspect of the present application, there is provided a barometer calibration device comprising:
the acquiring unit is used for acquiring an environmental temperature value under an actual environmental condition and an air pressure feedback value of the air pressure meter;
the determining unit is used for determining the air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value;
and the calibration unit is used for calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
In accordance with a third aspect of the present application, there is provided an electronic device comprising:
a processor; and
a memory configured to store computer executable instructions that, when executed, cause the processor to perform the barometer calibration method as in any of the preceding.
According to a fourth aspect of the present application, there is provided a computer readable storage medium storing one or more programs which, when executed by an electronic device comprising a plurality of application programs, cause the electronic device to perform a barometer calibration method as in any of the preceding.
As can be seen from the above, in the technical solution of the embodiment of the present application, a corresponding relationship between the air pressure calibration value and the air pressure feedback value and the ambient temperature value is established in advance, then the ambient temperature value under the actual ambient condition and the air pressure feedback value of the barometer are obtained, and the air pressure calibration value corresponding to the ambient temperature value and the air pressure feedback value of the barometer can be quickly determined by using the established corresponding relationship; and calibrating the air pressure feedback value of the air pressure meter according to the air pressure calibration value so as to obtain the actual air pressure value. The corresponding relation between the air pressure calibration value and the air pressure feedback value and the environmental temperature value is established in advance, so that the air pressure feedback value of the barometer can be quickly calibrated, the measurement precision of the barometer is greatly improved, and the calibrated barometer can be accurately used in various extreme application scenes. In addition, the air pressure calibration value is determined without depending on the change of the external real air pressure value, so that the obtained measurement result is more accurate when the barometer is actually used.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart of a barometer calibration method according to an embodiment of the application;
FIG. 2 is a schematic structural diagram of a barometer calibration device according to an embodiment of the disclosure;
fig. 3 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic flowchart illustrating a barometer calibration method according to an embodiment of the present application, and referring to fig. 1, the barometer calibration method of the embodiment of the present application includes the following steps S110 to S130:
step S110, obtaining an environmental temperature value under an actual environmental condition and an air pressure feedback value of an air pressure meter;
step S120, determining an air pressure calibration value corresponding to the ambient temperature value and the air pressure feedback value of the barometer according to the corresponding relationship between the air pressure calibration value and the air pressure feedback value and the ambient temperature value;
and step S130, calibrating the air pressure feedback value of the air pressure meter according to the air pressure calibration value to obtain an actual air pressure value.
In specific implementation, based on main factors affecting the sensitivity of the barometer, the embodiment of the application constructs a corresponding relationship between the air pressure calibration value and the air pressure feedback value as well as the ambient temperature value in advance, where the corresponding relationship may be a fitting curve obtained by performing linear fitting on the air pressure calibration value, the air pressure feedback value and the ambient temperature value.
After the fitting curve of the air pressure calibration value, the air pressure feedback value and the temperature test value is established, the air pressure feedback value of the barometer in the actual use process can be calibrated. Here, the current environmental temperature value T1 under the actual environmental condition and the currently read air pressure feedback value P1 of the barometer may be obtained first, the environmental temperature value T1 and the air pressure feedback value P1 are input into the established fitting curve equation, so that the corresponding air pressure calibration value T11 may be obtained, and finally, the calibrated air pressure feedback value P1' may be obtained by adding the air pressure calibration value T11 to the air pressure feedback value P1 currently read by the barometer.
The corresponding relation between the air pressure calibration value and the air pressure feedback value and the environmental temperature value is established in advance, so that the air pressure feedback value of the barometer can be quickly calibrated, the measurement precision of the barometer is greatly improved, and the calibrated barometer can be accurately used in various extreme application scenes.
In one embodiment of the present application, before obtaining the ambient temperature value under the actual ambient condition and the barometric pressure feedback value of the barometer, the method further comprises: testing the barometer, and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environmental temperature value; the step of testing the barometer and determining the corresponding relationship between the air pressure calibration value and the air pressure feedback value and the environmental temperature value comprises the following steps: acquiring a plurality of environment test conditions of the barometer, wherein the environment test conditions comprise an air pressure test value and a temperature test value; determining an air pressure feedback value and an air pressure calibration value under each environment test condition; and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the environmental temperature value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition.
The barometer calibration method according to the embodiment of the present invention may be performed before the barometer is shipped, that is, before the barometer is shipped, a plurality of environmental test conditions are set in advance according to different application scenarios after the barometer is shipped, where the environmental test conditions refer to an air pressure test value, a temperature test value, and the like set in a specific environment, and since the usage environment of the barometer is usually in an air pressure range of 80kPa to 120kPa and a temperature range of-40 ℃ to 40 ℃, the plurality of environmental test conditions may be set in the usage range so as to simulate the usage of the barometer under the environmental test conditions.
After the plurality of environmental test conditions are determined, the air pressure feedback value and the air pressure calibration value of the corresponding barometer under each environmental test condition can be further acquired for each environmental test condition. The air pressure feedback value can be understood as an air pressure value actually read by the air pressure meter in the environment where the air pressure meter is located, and the air pressure calibration value can be understood as a numerical value which needs to be adjusted according to the air pressure value actually read by the air pressure meter.
Through the steps, the corresponding air pressure feedback value and the corresponding air pressure calibration value can be obtained for each environment test condition, and in order to improve the subsequent calibration efficiency of the barometer, the corresponding relation among the air pressure feedback value, the air pressure calibration value and the temperature test value under each environment test condition can be further established, so that when the temperature value of the environment or the scene where the barometer is located and the air pressure feedback value actually read by the barometer are obtained subsequently, the air pressure calibration value under the environment or the scene can be directly determined according to the temperature value and the air pressure feedback value actually read by the barometer.
According to the method and the device, the corresponding relation between the air pressure calibration value and the air pressure feedback value and the corresponding relation between the air pressure calibration value and the temperature test value are established by simulating various environment test conditions of the barometer in an actual application scene, and the feedback value of the barometer is jointly calibrated through two dimensions of the air pressure test value and the temperature test value, so that the measurement accuracy of the barometer is greatly improved, and the calibrated barometer can be accurately used in various extreme application scenes.
In one embodiment of the present application, obtaining a plurality of environmental test conditions of a barometer comprises: determining an environment test range and an environment test step length of the barometer according to an application scene of the barometer, wherein the environment test range comprises an air pressure test range and a temperature test range, and the environment test step length comprises the air pressure test step length and the temperature test step length; generating a plurality of air pressure test values within an air pressure test range according to the air pressure test step length, and generating a plurality of temperature test values within a temperature test range according to the temperature test step length; each environmental test condition corresponds to one air pressure test value and one temperature test value.
In specific implementation, because the measurement accuracy of the barometer is different in different application scenarios, for example, in a mountaineering scenario, the measurement accuracy of the barometer is affected by the altitude, and in an extremely cold environment, the measurement accuracy of the barometer is affected by the ambient temperature, when determining a plurality of environmental test conditions, in the embodiment of the present application, an environmental test range and an environmental test step length of the barometer may be determined according to a specific application scenario of the barometer, such as a mountaineering, a water sports, or an extremely cold environment, generally, an ordinary use environment of the barometer is in an air pressure range of 80kPa to 120kPa and a temperature range of-40 ℃ to 40 ℃, where an air pressure test step length and a temperature test step length are set for the air pressure test range and the temperature test range, respectively, and the size of the test step length may be set according to an actual situation, usually set to a small value, which can improve the accuracy of the correspondence relationship established subsequently to some extent. Of course, the size of the specific numerical value can be flexibly set by those skilled in the art according to actual situations, and is not limited specifically herein.
For example, in the range of 80kPa to 120kPa, and in the range of-40 ℃ to 40 ℃, the air pressure test step size may be set to 2kPa, and the temperature test step size may be set to 5 ℃, so that a series of test values, for example, air pressure test values (kPa), may be generated in the corresponding test ranges: 80,82,84 … … 118,120, 120, temperature test value (. degree. C.): -40, -35, -30 … … 35, 40. Any one air pressure test value and any one temperature test value are combined to be used as one environment test condition, through the process, a plurality of environment test conditions in the environment test range can be obtained,
in one embodiment of the present application, the determining the air pressure feedback value and the air pressure calibration value under each environmental test condition comprises: preliminarily acquiring an air pressure feedback value of the barometer under each environment test condition; adjusting the environmental air pressure value of the testing environment of the barometer according to the difference value between the air pressure feedback value and the air pressure testing value under the corresponding environmental testing condition, so that the air pressure feedback value is equal to the air pressure testing value; and determining an air pressure feedback value under each environment test condition according to the adjusted environment air pressure value, and determining an air pressure calibration value under each environment test condition according to the difference value of the adjusted environment air pressure value and the air pressure test value.
In the accuracy test of the barometer, the barometer may be placed in a test device, and the ambient pressure value and the ambient temperature in the test device may be manually set and controlled, and in order to improve the test efficiency, the ambient pressure value in the initial test device may be set to a value close to the pressure test value under a specific test condition, and the ambient temperature in the test device may be set to a value equal to the temperature test value under the specific test condition, for example, the temperature test value under a specific test condition is 40 ℃, the pressure test value is 80kPa, the ambient temperature in the test device may be set to a value of 40 ℃, and the ambient pressure value in the test device may be set to a value of about 80 kPa.
After the initial atmospheric pressure value in the test equipment is set, the barometer returns an atmospheric pressure feedback value read by the barometer under the environment, generally speaking, before the calibration is not performed, the atmospheric pressure feedback value is not equal to the real atmospheric pressure value, in order to obtain the measurement deviation of the barometer under the condition, the atmospheric pressure value in the test equipment can be adjusted, at this time, the atmospheric pressure feedback value read by the barometer in real time changes along with the atmospheric pressure feedback value, until the final atmospheric pressure feedback value is equal to the atmospheric pressure test value set under the condition, the adjusted atmospheric pressure value is obtained, the adjusted atmospheric pressure value is differed from the set atmospheric pressure test value, and the obtained difference value can be used as the atmospheric pressure calibration value under the environmental test condition. The method for determining the air pressure calibration value does not depend on the change of the external real air pressure value, so that the measurement result of the barometer is more accurate in actual use. Through the above process, the air pressure calibration value under each environmental test condition can be obtained, and as shown in table 1 below, one air pressure calibration value (T) corresponds to one temperature test value (T) and one air pressure feedback value (P).
TABLE 1
In one embodiment of the present application, determining the corresponding relationship between the air pressure calibration value and the air pressure feedback value and the temperature test value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition includes: carrying out linear fitting on the air pressure calibration value under each environment test condition, an air pressure feedback value and a temperature test value, wherein the air pressure feedback value is equal to the air pressure test value; and generating a change curve of the air pressure calibration value along with the air pressure feedback value and the temperature test value according to the linear fitting result to obtain the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the temperature test value.
After obtaining the air pressure calibration value under each environmental test condition, in order to improve the calibration efficiency of the barometer in the subsequent actual use process, the obtained air pressure calibration value under each environmental test condition, the air pressure feedback value and the temperature test value may be subjected to linear fitting to obtain a corresponding relationship between the three values. Specifically, the barometer feedback value and the temperature test value can be regarded as two independent variables, the barometric calibration value can be regarded as a dependent variable which changes along with the barometer feedback value and the temperature test value, and because of the existence of the two independent variables, a binary linear regression method can be adopted to perform linear fitting on the barometric calibration value, the barometer feedback value and the temperature test value, so as to obtain a fitting curve equation in the form of the following formula (1):
t=A*P+B*T+m, (1)
wherein P is the barometric feedback value of the barometer, T is not the current ambient temperature, T is the barometric calibration value, and A, B, m is the coefficient obtained after linear fitting.
The barometer calibration method belongs to the same technical concept as the barometer calibration method, and the embodiment of the application also provides a barometer calibration device. Fig. 2 shows a block diagram of a barometer calibration device according to an embodiment of the application, and referring to fig. 2, the barometer calibration device 200 comprises: an actual environment acquisition unit 210, a calibration value determination unit 220, and a calibration unit 230. In particular, the amount of the solvent to be used,
an actual environment obtaining unit 210, configured to obtain an environmental temperature value under an actual environment condition and an air pressure feedback value of the barometer;
a calibration value determining unit 220, configured to determine an air pressure calibration value corresponding to the ambient temperature value and the air pressure feedback value of the barometer according to a corresponding relationship between the air pressure calibration value and the air pressure feedback value and the ambient temperature value;
the calibration unit 230 is configured to calibrate an air pressure feedback value of the barometer according to the air pressure calibration value, so as to obtain an actual air pressure value.
In one embodiment of the present application, the apparatus further comprises: a correspondence determination unit configured to: before obtaining an environmental temperature value under an actual environmental condition and an air pressure feedback value of a barometer, obtaining a plurality of environmental test conditions of the barometer, wherein the environmental test conditions comprise an air pressure test value and a temperature test value; determining an air pressure feedback value and an air pressure calibration value under each environment test condition; and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the environmental temperature value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition.
In an embodiment of the application, the correspondence determining unit is specifically configured to: determining an environment test range and an environment test step length of the barometer according to an application scene of the barometer, wherein the environment test range comprises an air pressure test range and a temperature test range, and the environment test step length comprises the air pressure test step length and the temperature test step length; generating a plurality of air pressure test values within an air pressure test range according to the air pressure test step length, and generating a plurality of temperature test values within a temperature test range according to the temperature test step length; each environmental test condition corresponds to one air pressure test value and one temperature test value.
In an embodiment of the application, the correspondence determining unit is specifically configured to: preliminarily acquiring an air pressure feedback value of the barometer under each environment test condition; adjusting the environmental air pressure value of the testing environment of the barometer according to the difference value between the air pressure feedback value and the air pressure testing value under the corresponding environmental testing condition, so that the air pressure feedback value is equal to the air pressure testing value; and determining an air pressure feedback value under each environment test condition according to the adjusted environment air pressure value, and determining an air pressure calibration value under each environment test condition according to the difference value of the adjusted environment air pressure value and the air pressure test value.
In an embodiment of the application, the correspondence determining unit is specifically configured to: carrying out linear fitting on the air pressure calibration value under each environment test condition, an air pressure feedback value and a temperature test value, wherein the air pressure feedback value is equal to the air pressure test value; and generating a change curve of the air pressure calibration value along with the air pressure feedback value and the temperature test value according to the linear fitting result to obtain the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the temperature test value.
It should be noted that, the barometer calibration device can implement the steps of the barometer calibration method executed by the electronic device provided in the foregoing embodiment, and the related explanations regarding the barometer calibration method are applicable to the barometer calibration device, and are not described herein again.
To sum up, according to the technical solution of the embodiment of the present application, a corresponding relationship between the air pressure calibration value and the air pressure feedback value as well as the ambient temperature value is established in advance, then the ambient temperature value under the actual ambient condition and the air pressure feedback value of the barometer are obtained, and the air pressure calibration value corresponding to the ambient temperature value and the air pressure feedback value of the barometer can be quickly determined by using the established corresponding relationship; and calibrating the air pressure feedback value of the air pressure meter according to the air pressure calibration value so as to obtain the actual air pressure value. The corresponding relation between the air pressure calibration value and the air pressure feedback value and the corresponding relation between the air pressure calibration value and the ambient temperature value are established in advance, so that the air pressure feedback value of the barometer can be calibrated quickly, the measurement precision of the barometer is greatly improved, and the calibrated barometer can be accurately used in various extreme application scenes. In addition, the air pressure calibration value is determined without depending on the change of the external real air pressure value, so that the obtained measurement result is more accurate when the barometer is actually used.
It should be noted that:
fig. 3 illustrates a schematic structural diagram of the electronic device. Referring to fig. 3, at a hardware level, the electronic device includes a memory and a processor, and optionally further includes an interface module, a communication module, and the like. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may also include a non-volatile Memory, such as at least one disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the interface module, the communication module, and the memory may be connected to each other by an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 3, but this does not indicate only one bus or one type of bus.
A memory for storing computer executable instructions. The memory provides computer executable instructions to the processor through the internal bus.
A processor executing computer executable instructions stored in the memory and specifically configured to perform the following operations:
acquiring an environmental temperature value and an air pressure feedback value of an air pressure meter under an actual environmental condition;
determining an air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value;
and calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
The functions performed by the barometer calibration device as disclosed in the embodiment of FIG. 2 of the present application may be implemented in or by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor.
The electronic device may further perform the steps performed by the barometer calibration method in fig. 1, and implement the functions of the barometer calibration method in the embodiment shown in fig. 1, which are not described herein again.
Embodiments of the present application also provide a computer-readable storage medium storing one or more programs, which when executed by a processor, implement the foregoing method, and are specifically configured to perform:
acquiring an environmental temperature value and an air pressure feedback value of an air pressure meter under an actual environmental condition;
determining an air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value;
and calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) that may be characterized as containing computer-usable program code.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art to which the present application pertains. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (8)
1. A barometer calibration method, comprising:
acquiring an environmental temperature value and an air pressure feedback value of an air pressure meter under an actual environmental condition;
determining an air pressure calibration value corresponding to the environment temperature value and an air pressure feedback value of the barometer according to a corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value, wherein the corresponding relation is a fitting curve obtained by performing linear fitting on the air pressure calibration value, the air pressure feedback value and the environment temperature value;
the air pressure calibration value is obtained by the following steps:
preliminarily acquiring an air pressure feedback value of the barometer under each environment test condition;
adjusting the environmental air pressure value of the testing environment of the barometer according to the difference value between the air pressure feedback value and the air pressure testing value under the corresponding environmental testing condition, so that the air pressure feedback value is equal to the air pressure testing value;
determining an air pressure feedback value under each environment test condition according to the adjusted environment air pressure value, and determining an air pressure calibration value under each environment test condition according to the difference value of the adjusted environment air pressure value and the air pressure test value;
and calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
2. The method of calibrating a barometer of claim 1, wherein prior to obtaining the ambient temperature value and the barometric pressure feedback value for the actual ambient condition, the method further comprises: testing the barometer, and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value and the ambient temperature value;
the step of testing the barometer and determining the corresponding relationship between the air pressure calibration value and the air pressure feedback value and the environmental temperature value comprises the following steps:
acquiring a plurality of environmental test conditions of the barometer, wherein the environmental test conditions comprise an air pressure test value and a temperature test value;
determining an air pressure feedback value and an air pressure calibration value under each environment test condition;
and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the environmental temperature value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition.
3. The barometer calibration method of claim 2, wherein said obtaining a plurality of environmental test conditions of the barometer comprises:
determining an environment test range and an environment test step length of the barometer according to an application scene of the barometer, wherein the environment test range comprises an air pressure test range and a temperature test range, and the environment test step length comprises the air pressure test step length and the temperature test step length;
generating a plurality of air pressure test values in the air pressure test range according to the air pressure test step length, and generating a plurality of temperature test values in the temperature test range according to the temperature test step length;
each environmental test condition corresponds to one air pressure test value and one temperature test value.
4. The barometer calibration method of claim 2, wherein said determining the correspondence between the air pressure calibration value and the air pressure feedback value and the temperature test value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition comprises:
linearly fitting the air pressure calibration value under each environmental test condition with the air pressure feedback value and the temperature test value, wherein the air pressure feedback value is equal to the air pressure test value;
and generating a change curve of the air pressure calibration value along with the air pressure feedback value and the temperature test value according to a linear fitting result to obtain a corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the temperature test value.
5. A barometer calibration device, comprising:
the actual environment acquisition unit is used for acquiring an environment temperature value under an actual environment condition and an air pressure feedback value of the barometer;
the calibration value determining unit is used for determining the air pressure calibration value corresponding to the environment temperature value and the air pressure feedback value of the barometer according to the corresponding relation between the air pressure calibration value and the air pressure feedback value and the environment temperature value, wherein the corresponding relation is a fitting curve obtained by performing linear fitting on the air pressure calibration value, the air pressure feedback value and the environment temperature value;
the air pressure calibration value is obtained by the following method:
preliminarily acquiring an air pressure feedback value of the barometer under each environment test condition;
adjusting the environmental air pressure value of the testing environment of the barometer according to the difference value between the air pressure feedback value and the air pressure testing value under the corresponding environmental testing condition, so that the air pressure feedback value is equal to the air pressure testing value;
determining an air pressure feedback value under each environment test condition according to the adjusted environment air pressure value, and determining an air pressure calibration value under each environment test condition according to the difference value of the adjusted environment air pressure value and the air pressure test value;
and the calibration unit is used for calibrating the air pressure feedback value of the barometer according to the air pressure calibration value to obtain an actual air pressure value.
6. The barometer calibration device of claim 5, further comprising: a correspondence relation determining unit that determines a correspondence relation between the first and second objects,
the correspondence determining unit is configured to:
before acquiring an ambient temperature value under an actual ambient condition and an air pressure feedback value of an air pressure gauge, acquiring a plurality of ambient test conditions of the air pressure gauge, wherein the ambient test conditions comprise an air pressure test value and a temperature test value;
determining an air pressure feedback value and an air pressure calibration value under each environment test condition;
and determining the corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the environmental temperature value according to the air pressure feedback value, the air pressure calibration value and the temperature test value under each environmental test condition.
7. The barometer calibration device of claim 6, wherein the correspondence determining unit is specifically configured to:
linearly fitting the air pressure calibration value under each environmental test condition with the air pressure feedback value and the temperature test value, wherein the air pressure feedback value is equal to the air pressure test value;
and generating a change curve of the air pressure calibration value along with the air pressure feedback value and the temperature test value according to a linear fitting result to obtain a corresponding relation between the air pressure calibration value and the air pressure feedback value as well as the temperature test value.
8. An electronic device, comprising:
a processor; and
a memory configured to store computer executable instructions that, when executed, cause the processor to perform the barometer calibration method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710514.1A CN111964836B (en) | 2020-07-22 | 2020-07-22 | Barometer calibration method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010710514.1A CN111964836B (en) | 2020-07-22 | 2020-07-22 | Barometer calibration method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111964836A CN111964836A (en) | 2020-11-20 |
CN111964836B true CN111964836B (en) | 2022-09-13 |
Family
ID=73362466
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010710514.1A Active CN111964836B (en) | 2020-07-22 | 2020-07-22 | Barometer calibration method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111964836B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113504583B (en) * | 2021-07-05 | 2023-03-24 | 东方智感(浙江)科技股份有限公司 | Method, device, equipment and storage medium for mutual verification of multiple meteorological parameters |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331266A (en) * | 2011-06-13 | 2012-01-25 | 无锡格林通安全装备有限公司 | Multi-parameter gas sensor compensating method |
CN106647459A (en) * | 2016-11-22 | 2017-05-10 | 歌尔科技有限公司 | Air pressure detecting device and method and smart wearable device |
CN108020374A (en) * | 2017-11-30 | 2018-05-11 | 北京小米移动软件有限公司 | Atmospheric pressure value determines method and device |
CN110146215A (en) * | 2019-05-19 | 2019-08-20 | 瑞立集团瑞安汽车零部件有限公司 | A kind of baroceptor with temperature-compensating Yu parameter tuning measure |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4866640A (en) * | 1987-08-20 | 1989-09-12 | Granville-Phillips Company | Temperature compensation for pressure gauge |
JPH0659054A (en) * | 1992-08-06 | 1994-03-04 | Enpetsukusu Kishiyoukei Kk | Electronic weather apparatus |
DE59913515D1 (en) * | 1998-10-20 | 2006-07-20 | Asulab Sa | Barometric compensated altimeter, barometer, weather forecasting systems and related methods including ambient pressure bubble filtering |
JP4994494B2 (en) * | 2010-12-14 | 2012-08-08 | 株式会社エイムテック | Differential pressure measurement method and apparatus |
US8689635B2 (en) * | 2011-05-13 | 2014-04-08 | Taiwan Silicon Microelectronics Co., Ltd. | Automatic calibration procedure of temperature compensation for digital pressure gauges |
US9588006B2 (en) * | 2014-09-26 | 2017-03-07 | Invensense, Inc. | Systems and methods for pressure sensor calibration |
-
2020
- 2020-07-22 CN CN202010710514.1A patent/CN111964836B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331266A (en) * | 2011-06-13 | 2012-01-25 | 无锡格林通安全装备有限公司 | Multi-parameter gas sensor compensating method |
CN106647459A (en) * | 2016-11-22 | 2017-05-10 | 歌尔科技有限公司 | Air pressure detecting device and method and smart wearable device |
CN108020374A (en) * | 2017-11-30 | 2018-05-11 | 北京小米移动软件有限公司 | Atmospheric pressure value determines method and device |
CN110146215A (en) * | 2019-05-19 | 2019-08-20 | 瑞立集团瑞安汽车零部件有限公司 | A kind of baroceptor with temperature-compensating Yu parameter tuning measure |
Also Published As
Publication number | Publication date |
---|---|
CN111964836A (en) | 2020-11-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113253190B (en) | Method for correcting full-band amplitude of radio frequency channel of distributed system | |
CN111964836B (en) | Barometer calibration method and device and electronic equipment | |
CN104635035A (en) | System for quickly calibrating power of signal source based on segmenting type structure | |
WO2021077587A1 (en) | Differential data processing method, and receiver testing method | |
CN108228443B (en) | Web application testing method and device | |
CN109254904B (en) | Database pressure measurement method and device and electronic equipment | |
CN115728445A (en) | Sensor calibration method, device, equipment and computer readable storage medium | |
CN112578840B (en) | Method, system and storage medium for calibrating reference voltage by using temperature | |
CN113406473B (en) | Chip testing method and device, terminal equipment and storage medium | |
CN112540290A (en) | Test method and device for clock frequency calibration, storage medium and terminal | |
CN112578270A (en) | Test method and device for automatic calibration of reference voltage, storage medium and terminal | |
CN116481601A (en) | Dilution air flow amount calculation method and device and electronic equipment | |
CN108600042B (en) | WiFi test method and device for electronic equipment, storage medium and test equipment | |
CN111027716A (en) | Load prediction method and device | |
CN116400281A (en) | Calibration method of radio frequency testing machine, radio frequency testing machine and radio frequency testing system | |
CN113552557B (en) | Range finding calibration method, device and equipment for flight time camera | |
CN111678641B (en) | Performance test method and device of pressure sensor and storage medium | |
CN109525331A (en) | A kind of linear calibration methods and device of radio frequency link | |
CN116185128A (en) | MCU chip internal clock calibration method and circuit | |
CN110688430B (en) | Method and device for obtaining data bypass and electronic equipment | |
CN115549817A (en) | Radio frequency path calibration method, device, storage medium and program product | |
CN111884589B (en) | Method and device for determining temperature compensation parameters of frequency source | |
CN111722170B (en) | Device and method for determining stability of calibrating device of electric quantity transmitter and electronic equipment | |
CN113218527B (en) | Thermistor-based temperature detection method, device, equipment, medium and system | |
CN116304538B (en) | Method for evaluating uncertainty of detection result by using big data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |