CN108020374B - Air pressure value determination method and device - Google Patents

Air pressure value determination method and device Download PDF

Info

Publication number
CN108020374B
CN108020374B CN201711236508.1A CN201711236508A CN108020374B CN 108020374 B CN108020374 B CN 108020374B CN 201711236508 A CN201711236508 A CN 201711236508A CN 108020374 B CN108020374 B CN 108020374B
Authority
CN
China
Prior art keywords
determining
calibration value
air pressure
ambient temperature
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
Application number
CN201711236508.1A
Other languages
Chinese (zh)
Other versions
CN108020374A (en
Inventor
孙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201711236508.1A priority Critical patent/CN108020374B/en
Publication of CN108020374A publication Critical patent/CN108020374A/en
Application granted granted Critical
Publication of CN108020374B publication Critical patent/CN108020374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01LMEASURING FORCE, STRESS, TORQUE, WORK, MECHANICAL POWER, MECHANICAL EFFICIENCY, OR FLUID PRESSURE
    • G01L19/00Details of, or accessories for, apparatus for measuring steady or quasi-steady pressure of a fluent medium insofar as such details or accessories are not special to particular types of pressure gauges
    • G01L19/04Means for compensating for effects of changes of temperature, i.e. other than electric compensation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The present disclosure relates to a method and a device for determining an air pressure value, wherein the method comprises: when an air pressure detection instruction is received, determining a first environment temperature in the current state; determining a calibration value corresponding to the first ambient temperature; and determining a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor. According to the method and the device, the air pressure value acquired by the air pressure sensor is calibrated through the calibration value corresponding to the environment temperature in the current state, the actual air pressure value of the current environment can be obtained, and the accuracy of measuring the air pressure value is improved.

Description

Air pressure value determination method and device
Technical Field
The present disclosure relates to the field of sensing technologies, and in particular, to a method and an apparatus for determining an air pressure value.
Background
Currently, many mobile terminals start to use a barometer to detect the barometric pressure at the location of the mobile terminal, and this function is mostly used in mountaineering scenes. At present, the air pressure value output by the mobile terminal is calculated according to the condition that the environmental temperature is 25 ℃. However, when the ambient temperature of the mobile terminal changes, the actual pressure level changes, and thus the pressure value output by the mobile terminal is not accurate.
Disclosure of Invention
In order to overcome the problems in the related art, embodiments of the present disclosure provide a method and an apparatus for determining an air pressure value, so as to solve the problem that an existing determination method may cause an inaccurate air pressure value when an ambient temperature changes.
According to a first aspect of embodiments of the present disclosure, there is provided a method of determining an air pressure value, the method may include:
when an air pressure detection instruction is received, determining a first environment temperature in the current state;
determining a calibration value corresponding to the first ambient temperature;
and determining a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
In an embodiment, the determining a calibration value corresponding to the first ambient temperature may include:
determining a calibration relationship between the first ambient temperature and the calibration value;
and determining a calibration value corresponding to the first environment temperature according to the calibration relation.
In an embodiment, the method may further comprise:
counting the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature;
and fitting the calibration values corresponding to the second environment temperatures and each second environment temperature to obtain the calibration relational expression.
In an embodiment, the determining a calibration value corresponding to the first ambient temperature may include:
determining a first relation list adopted by the first environment temperature, wherein the first relation list is used for recording the relation between the environment temperature and a calibration value;
and searching the calibration value corresponding to the first environment temperature from the first relation list.
In an embodiment, prior to determining the calibration value corresponding to the first ambient temperature, the method may further comprise:
determining a current altitude;
the determining a calibration value corresponding to the first ambient temperature may include:
determining a second relation list corresponding to the altitude, wherein the second relation list is used for recording the relation between the ambient temperature and a calibration value at the sea wave height;
and searching the calibration value corresponding to the first environment temperature from the second relation list.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for determining an air pressure value, the apparatus may include:
the temperature determination module is configured to determine a first environment temperature in a current state when receiving an air pressure detection instruction;
a calibration value determination module configured to determine a calibration value corresponding to the first ambient temperature;
and the air pressure value determining module is configured to determine a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
In an embodiment, the calibration value determining module may include:
a relational expression determination sub-module configured to determine a calibration relational expression between the first ambient temperature and the calibration value;
and the calibration value determining sub-module is configured to determine the calibration value corresponding to the first ambient temperature according to the calibration relation.
In an embodiment, the apparatus may further comprise:
the statistical module is configured to count the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature;
and the fitting module is configured to fit the calibration values corresponding to the second ambient temperatures and each second ambient temperature to obtain the calibration relation.
In an embodiment, the calibration value determining module may include:
a first relationship list determination sub-module configured to determine a first relationship list adopted by the first ambient temperature, the first relationship list being used for recording a relationship between the ambient temperature and a calibration value;
a first lookup sub-module configured to lookup the calibration value corresponding to the first ambient temperature from the first relationship list.
In an embodiment, the apparatus may further comprise:
a height determination module configured to determine a current altitude;
the calibration value determination module may include:
a second relation list determination sub-module configured to determine a second relation list corresponding to the altitude, the second relation list being used to record a relation between an ambient temperature and a calibration value at the sea wave height;
a second lookup sub-module configured to look up a calibration value corresponding to the first ambient temperature from the second relationship list.
According to a third aspect of embodiments of the present disclosure, there is provided an apparatus for determining an air pressure value, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an air pressure detection instruction is received, determining a first environment temperature in the current state;
determining a calibration value corresponding to the first ambient temperature;
and determining a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: when receiving the air pressure detection instruction, the mobile terminal may first determine a first ambient temperature in a current state, determine a calibration value corresponding to the first ambient temperature, and then determine a second air pressure value of the current environment according to the determined calibration value and a first air pressure value currently acquired by the air pressure sensor. According to the method and the device, the air pressure value acquired by the air pressure sensor is calibrated through the calibration value corresponding to the environment temperature in the current state, the actual air pressure value of the current environment can be obtained, and the accuracy of measuring the air pressure value is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1A is a flow chart illustrating a method of determining an air pressure value according to an exemplary embodiment;
FIG. 1B is a diagram illustrating a scenario of a mobile terminal displaying an air pressure value according to the embodiment shown in FIG. 1A;
FIG. 2 is a flow chart illustrating another method of determining an air pressure value according to an exemplary embodiment;
FIG. 3 is a flow chart illustrating yet another method of determining an air pressure value in accordance with an exemplary embodiment;
FIG. 4 is a flow chart illustrating yet another method of determining an air pressure value in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating an air pressure value determining apparatus in accordance with an exemplary embodiment;
FIG. 6 is a block diagram illustrating another air pressure value determining apparatus in accordance with an exemplary embodiment;
FIG. 7 is a block diagram illustrating yet another air pressure value determining apparatus in accordance with an exemplary embodiment;
FIG. 8 is a block diagram illustrating yet another air pressure value determining apparatus in accordance with an exemplary embodiment;
fig. 9 is a block diagram illustrating a device suitable for determining an air pressure value according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
FIG. 1A is a flow chart illustrating a method of determining an air pressure value according to an exemplary embodiment; fig. 1B is a view of a mobile terminal displaying an air pressure value according to the embodiment shown in fig. 1A, where the embodiment may be applied to a mobile terminal (e.g., a smart phone, a tablet computer), and a temperature sensor and an air pressure sensor may be disposed on the mobile terminal, as shown in fig. 1A, the air pressure value determining method includes the following steps:
in step 101, when an air pressure detection instruction is received, a first ambient temperature in a current state is determined.
In an embodiment, when a user needs to know the air pressure of a current position, an application program for detecting the air pressure on the mobile terminal may be opened, and the mobile terminal generates an air pressure detection instruction in response to the opening operation, so that the air pressure detection instruction may be received.
In another embodiment, the mobile terminal may determine an ambient temperature currently detected by the temperature sensor, and determine the ambient temperature as a first ambient temperature in a current state.
In step 102, a calibration value corresponding to a first ambient temperature is determined.
A description of how to determine the calibration value corresponding to the first ambient temperature may be found in any of the embodiments shown in fig. 2-4 described below, and will not be described in detail herein.
In step 103, a second air pressure value of the current environment is determined according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
Because the atmospheric pressure value collected by the atmospheric pressure sensor is not the actual atmospheric pressure value of the current environment due to the influence of the ambient temperature, further calibration is required after the atmospheric pressure sensor collects the atmospheric pressure value, that is, the second atmospheric pressure value determined according to the calibration value and the first atmospheric pressure value is the actual atmospheric pressure value of the current environment. It will be understood by those skilled in the art that the actual air pressure value of the current environment can be determined by related techniques based on the calibration value and the air pressure value currently acquired by the air pressure sensor, and the disclosure will not be described in detail herein.
In an exemplary scenario, as shown in fig. 1B, the first ambient temperature in the current state is-2 ℃, and the barometric pressure value indicated by the barometer pointer is the first barometric pressure value currently acquired by the barometric sensor: 992.5hPa, and by a calibration value corresponding to-2 ℃, the calibrated second air pressure value: 990.5hPa, it can therefore be determined that the actual barometric pressure value for the current environment is 990.5 hPa.
In this embodiment, when receiving the air pressure detection instruction, the mobile terminal may first determine a first ambient temperature in the current state, determine a calibration value corresponding to the first ambient temperature, and then determine a second air pressure value of the current environment according to the determined calibration value and a first air pressure value currently collected by the air pressure sensor. According to the method and the device, the air pressure value acquired by the air pressure sensor is calibrated through the calibration value corresponding to the environment temperature in the current state, the actual air pressure value of the current environment can be obtained, and the accuracy of measuring the air pressure value is improved.
In an embodiment, the step 102 may include:
determining a calibration relation between the first ambient temperature and the calibration value;
and determining a calibration value corresponding to the first environment temperature according to the calibration relation.
In an embodiment, the method may further include:
counting the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature;
and fitting the second environment temperature and the calibration value corresponding to each second environment temperature to obtain a calibration relational expression.
In an embodiment, the step 102 may further include:
determining a first relation list adopted by the first environment temperature, wherein the first relation list is used for recording the relation between the environment temperature and the calibration value;
and searching the calibration value corresponding to the first environment temperature from the first relation list.
In an embodiment, before the step 102, the method may further include:
determining a current altitude;
the step 102 may further include:
determining a second relation list corresponding to the altitude, wherein the second relation list is used for recording the relation between the ambient temperature and the calibration value under the sea wave height;
and searching the calibration value corresponding to the first environment temperature from the second relation list.
Please refer to the following embodiments for the details of how to determine the air pressure.
Therefore, the method provided by the embodiment of the disclosure can improve the accuracy of the measured air pressure value.
The technical solutions provided by the embodiments of the present disclosure are described below with specific embodiments.
FIG. 2 is a flow chart illustrating another method of determining an air pressure value according to an exemplary embodiment; in this embodiment, an example of determining a calibration value corresponding to the first ambient temperature is described by using the above method provided by the embodiment of the present disclosure, as shown in fig. 2, including the following steps:
in step 201, a calibration relationship between the first ambient temperature and the calibration value is determined.
In an embodiment, the mobile terminal may count the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature, and then fit the calibration values corresponding to the second ambient temperatures and each second ambient temperature to obtain the calibration relation.
The set number may be set according to practical experience, and those skilled in the art can understand that the set number may be set based on the accuracy of the calibration relation and the processing capability of the mobile terminal. The fitting algorithm may be a least squares fitting method, or may be other fitting algorithms, and the disclosure is not limited herein.
In step 202, a calibration value corresponding to the first ambient temperature is determined according to the calibration relation.
In an exemplary scenario, the calibration relation is k × x + b, and if the first ambient temperature is T, then T corresponds to the calibration value of k × T + b.
In this embodiment, the mobile terminal determines the calibration value corresponding to the first ambient temperature through the calibration relational expression between the first ambient temperature and the calibration value, and since the calibration value corresponding to each ambient temperature can be obtained through the calibration relational expression, the accuracy of the calibration value can be ensured, and the accuracy of the actual air pressure value is further improved.
FIG. 3 is a flow chart illustrating a method of determining an air pressure value according to an exemplary embodiment; in this embodiment, an example of determining a calibration value corresponding to the first ambient temperature is described by using the above method provided by the embodiment of the present disclosure, as shown in fig. 3, the method includes the following steps:
in step 301, a first relationship list for a first ambient temperature is determined, the first relationship list being used to record a relationship between the ambient temperature and a calibration value.
In an embodiment, a first relationship list recording a relationship between the ambient temperature and the calibration value may be configured in advance in the mobile terminal, so that after the first ambient temperature in the current state is determined, the corresponding calibration value may be directly found through the first relationship list. As shown in table 1, an exemplary first relationship list.
Ambient temperature (. degree. C.) -25 -10 0 10 25
Calibration value A1 A2 A3 A4 A5
TABLE 1
In step 302, a calibration value corresponding to the first ambient temperature is looked up from the first relationship list.
In an embodiment, since the ambient temperatures recorded in the first relationship list are in intervals, in the search process, if the first ambient temperature is within a certain temperature interval range in the first relationship list, the calibration value corresponding to the ambient temperature closest to the first ambient temperature may be determined as the calibration value corresponding to the first ambient temperature; if the first ambient temperature is in the middle of a certain temperature interval, the mean value of the calibration values corresponding to the two end points of the temperature interval can be determined as the calibration value corresponding to the first ambient temperature.
In an exemplary scenario, as shown in Table 1 above, if the first ambient temperature is-20 deg.C, then-20 deg.C is between (-25, -10) and the ambient temperature closest to-20 deg.C is-25 deg.C, so the calibration value A1 corresponding to-25 deg.C may be determined as the calibration value corresponding to-20 deg.C; if the first ambient temperature is 5 ℃, then 5 ℃ is between (0, 10) and in the middle of (0, 10), so the calibration value A3 corresponding to 0 ℃ and the mean 0.5 (A3+ a4) of the calibration value a4 corresponding to 10 ℃ can be determined as the calibration value corresponding to 5 ℃.
In this embodiment, the mobile terminal determines the calibration value corresponding to the first ambient temperature by searching the first relationship list, and since the first relationship list records the correspondence between the ambient temperature and the calibration value, it is not necessary to calculate the calibration value in a time-consuming manner, and therefore the calibration value corresponding to the first ambient temperature can be determined quickly.
FIG. 4 is a flow chart illustrating yet another method of determining an air pressure value in accordance with an exemplary embodiment; in the present embodiment, an example is performed by taking the determination of the calibration value corresponding to the first ambient temperature as an example by using the above method provided by the embodiment of the present disclosure. As shown in fig. 3, the method comprises the following steps:
in step 401, the current sea wave height is determined.
In an embodiment, since the mobile terminal is at different altitudes and the calibration value corresponding to the same ambient temperature is different, the mobile terminal may determine the current altitude before determining the calibration value corresponding to the first ambient temperature.
In another embodiment, the mobile terminal may determine current location information and determine a current altitude based on the current location information.
The current location information may be obtained through a Global Positioning System (GPS) module in the mobile terminal. Then the mobile terminal can acquire the altitude high speed corresponding to the current position information through the network server. For example, the current position information is 40 ° 2 '5 "north latitude, 116 ° 18' 9" east longitude, and the corresponding altitude is 50 meters.
In step 402, a second relationship list corresponding to the altitude is determined, and the second relationship list is used for recording the relationship between the ambient temperature and the calibration value at the sea wave height.
In an embodiment, as described in step 401 above, the calibration values corresponding to the same ambient temperature are different at different altitudes, so the mobile terminal may pre-configure a second relationship list corresponding to each altitude interval for recording the relationship between the ambient temperature and the calibration value at the sea wave altitude interval. For example, in the case where the altitude interval is 0 to 50 meters, the second relationship list is as shown in table 2, and in the case where the altitude is 51 to 100 meters, the second relationship list is as shown in table 3.
Ambient temperature (. degree. C.) -25 -10 0 10 25
Calibration value A1 A2 A3 A4 A5
TABLE 2
Ambient temperature (. degree. C.) -25 -10 0 10 25
Calibration value B1 B2 B3 B4 B5
TABLE 3
In step 403, a calibration value corresponding to the first ambient temperature is looked up from the second relationship list.
How to find the calibration value corresponding to the first ambient temperature from the second relationship list can be referred to the above description of step 302, and is not described in detail here.
In this embodiment, since the calibration values corresponding to the same ambient temperature are different at different altitudes, the mobile terminal may first determine the second relationship list corresponding to the current altitude, and then search the calibration value corresponding to the first ambient temperature from the second relationship list, so as to further ensure the accuracy of the calibration value.
Fig. 5 is a block diagram illustrating an air pressure value determining apparatus according to an exemplary embodiment, as shown in fig. 5, the air pressure value determining apparatus including:
a temperature determination module 51 configured to determine a first ambient temperature in a current state when receiving the air pressure detection instruction;
a calibration value determination module 52 configured to determine a calibration value corresponding to a first ambient temperature;
and an air pressure value determining module 53 configured to determine a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
Fig. 6 is a block diagram illustrating another air pressure value determining apparatus according to an exemplary embodiment, based on the embodiment illustrated in fig. 5, and as illustrated in fig. 6, the calibration value determining module 52 includes:
a relationship determination sub-module 521 configured to determine a calibration relationship between the first ambient temperature and a calibration value;
and a calibration value determining sub-module 522 configured to determine a calibration value corresponding to the first ambient temperature according to the calibration relation.
In an embodiment, the apparatus may further comprise:
a counting module 54 configured to count a set number of calibration values corresponding to each of the second ambient temperatures;
and a fitting module 55 configured to fit the second ambient temperature to the calibration value corresponding to each second ambient temperature to obtain a calibration relation.
Fig. 7 is a block diagram illustrating still another air pressure value determining apparatus according to an exemplary embodiment, based on the embodiment illustrated in fig. 5, and as illustrated in fig. 7, the calibration value determining module 52 includes:
a first relationship list determination submodule 523 configured to determine a first relationship list adopted by the first ambient temperature, the first relationship list being used for recording a relationship between the ambient temperature and the calibration value;
a first lookup sub-module 524 configured to lookup the calibration value corresponding to the first ambient temperature from the first relationship list.
Fig. 8 is a block diagram illustrating still another air pressure value determining apparatus according to an exemplary embodiment, based on the embodiment illustrated in fig. 5, as illustrated in fig. 8, the apparatus further includes:
an altitude determination module 56 configured to determine a current altitude;
a calibration value determination module 52 comprising:
a second relationship list determination sub-module 525 configured to determine a second relationship list corresponding to the altitude, the second relationship list being used to record a relationship between the ambient temperature and the calibration value at the sea wave height;
a second lookup sub-module 526 configured to look up a calibration value corresponding to the first ambient temperature from the second relationship list.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 9 is a block diagram illustrating a device suitable for determining an air pressure value according to an exemplary embodiment. For example, the apparatus 900 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 9, the apparatus 1000 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the device 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power supplies for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect an open/closed state of the device 900, the relative positioning of the components, such as a display and keypad of the apparatus 900, the sensor assembly 914 may also detect a change in the position of the apparatus 900 or a component of the apparatus 900, the presence or absence of user contact with the apparatus 900, orientation or acceleration/deceleration of the apparatus 900, and a change in the temperature of the apparatus 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Wherein the processor 920 is configured to:
when an air pressure detection instruction is received, determining a first environment temperature in the current state;
determining a calibration value corresponding to the first ambient temperature;
and determining a second air pressure value of the current environment according to the calibration value and the first air pressure value currently acquired by the air pressure sensor.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (9)

1. A method for determining a barometric pressure value, the method comprising:
when an air pressure detection instruction is received, determining a first environment temperature in the current state;
determining a calibration value corresponding to the first ambient temperature;
determining a second air pressure value of the current environment according to the calibration value and a first air pressure value currently acquired by an air pressure sensor;
wherein prior to determining a calibration value corresponding to the first ambient temperature, a current altitude is determined;
the determining a calibration value corresponding to the first ambient temperature comprises:
determining a second relation list corresponding to the altitude, wherein the second relation list is used for recording the relation between the ambient temperature and the calibration value at the altitude;
and searching the calibration value corresponding to the first environment temperature from the second relation list.
2. The method of claim 1, wherein said determining a calibration value corresponding to said first ambient temperature comprises:
determining a calibration relationship between the first ambient temperature and the calibration value;
and determining a calibration value corresponding to the first environment temperature according to the calibration relation.
3. The method of claim 2, further comprising:
counting the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature;
and fitting the calibration values corresponding to the second environment temperatures and each second environment temperature to obtain the calibration relational expression.
4. The method of claim 1, wherein said determining a calibration value corresponding to said first ambient temperature comprises:
determining a first relation list adopted by the first environment temperature, wherein the first relation list is used for recording the relation between the environment temperature and a calibration value;
and searching the calibration value corresponding to the first environment temperature from the first relation list.
5. An apparatus for determining an air pressure value, the apparatus comprising:
the temperature determination module is configured to determine a first environment temperature in a current state when receiving an air pressure detection instruction;
a calibration value determination module configured to determine a calibration value corresponding to the first ambient temperature;
the air pressure value determining module is configured to determine a second air pressure value of the current environment according to the calibration value and a first air pressure value currently acquired by the air pressure sensor;
wherein the apparatus further comprises:
a height determination module configured to determine a current altitude;
the calibration value determination module comprises:
a second relationship list determination sub-module configured to determine a second relationship list corresponding to the altitude, the second relationship list being used to record a relationship between the ambient temperature and a calibration value at the altitude;
a second lookup sub-module configured to look up a calibration value corresponding to the first ambient temperature from the second relationship list.
6. The apparatus of claim 5, wherein the calibration value determining module comprises:
a relational expression determination sub-module configured to determine a calibration relational expression between the first ambient temperature and the calibration value;
and the calibration value determining sub-module is configured to determine the calibration value corresponding to the first ambient temperature according to the calibration relation.
7. The apparatus of claim 6, further comprising:
the statistical module is configured to count the calibration values corresponding to the set number of second ambient temperatures and each second ambient temperature;
and the fitting module is configured to fit the calibration values corresponding to the second ambient temperatures and each second ambient temperature to obtain the calibration relation.
8. The apparatus of claim 5, wherein the calibration value determining module comprises:
a first relationship list determination sub-module configured to determine a first relationship list adopted by the first ambient temperature, the first relationship list being used for recording a relationship between the ambient temperature and a calibration value;
a first lookup sub-module configured to lookup the calibration value corresponding to the first ambient temperature from the first relationship list.
9. An apparatus for determining an air pressure value, the apparatus comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to:
when an air pressure detection instruction is received, determining a first environment temperature in the current state;
determining a calibration value corresponding to the first ambient temperature;
determining a second air pressure value of the current environment according to the calibration value and a first air pressure value currently acquired by an air pressure sensor;
wherein prior to determining a calibration value corresponding to the first ambient temperature, a current altitude is determined;
the determining a calibration value corresponding to the first ambient temperature comprises:
determining a second relation list corresponding to the altitude, wherein the second relation list is used for recording the relation between the ambient temperature and the calibration value at the altitude;
and searching the calibration value corresponding to the first environment temperature from the second relation list.
CN201711236508.1A 2017-11-30 2017-11-30 Air pressure value determination method and device Active CN108020374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711236508.1A CN108020374B (en) 2017-11-30 2017-11-30 Air pressure value determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711236508.1A CN108020374B (en) 2017-11-30 2017-11-30 Air pressure value determination method and device

Publications (2)

Publication Number Publication Date
CN108020374A CN108020374A (en) 2018-05-11
CN108020374B true CN108020374B (en) 2020-01-14

Family

ID=62077965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711236508.1A Active CN108020374B (en) 2017-11-30 2017-11-30 Air pressure value determination method and device

Country Status (1)

Country Link
CN (1) CN108020374B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109781341B (en) * 2018-12-25 2021-10-08 潍坊歌尔微电子有限公司 Data calibration method and device for air pressure sensor
CN110662153B (en) * 2019-10-31 2021-06-01 Oppo广东移动通信有限公司 Loudspeaker adjusting method and device, storage medium and electronic equipment
CN111964836B (en) * 2020-07-22 2022-09-13 歌尔科技有限公司 Barometer calibration method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379367A (en) * 2006-03-20 2009-03-04 高通股份有限公司 Method and apparatus for determining the altitude of a mobile device
CN101471972A (en) * 2007-12-28 2009-07-01 希姆通信息技术(上海)有限公司 Mobile phone weather forecast system
EP1857776B1 (en) * 2006-05-19 2009-12-23 ETA SA Manufacture Horlogère Suisse Barometric altimeter with a temperature compensating device
CN102175215A (en) * 2011-02-24 2011-09-07 上海德科电子仪表有限公司 Vehicle-mounted altitude monitoring device and method
CN102750815A (en) * 2012-07-03 2012-10-24 宁夏隆基宁光仪表有限公司 Concentrator with environmental monitoring function and control method thereof
CN106153001A (en) * 2015-04-01 2016-11-23 新士达光通股份有限公司 Height above sea level calculates system and height above sea level computational methods

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101379367A (en) * 2006-03-20 2009-03-04 高通股份有限公司 Method and apparatus for determining the altitude of a mobile device
EP1857776B1 (en) * 2006-05-19 2009-12-23 ETA SA Manufacture Horlogère Suisse Barometric altimeter with a temperature compensating device
CN101471972A (en) * 2007-12-28 2009-07-01 希姆通信息技术(上海)有限公司 Mobile phone weather forecast system
CN102175215A (en) * 2011-02-24 2011-09-07 上海德科电子仪表有限公司 Vehicle-mounted altitude monitoring device and method
CN102750815A (en) * 2012-07-03 2012-10-24 宁夏隆基宁光仪表有限公司 Concentrator with environmental monitoring function and control method thereof
CN106153001A (en) * 2015-04-01 2016-11-23 新士达光通股份有限公司 Height above sea level calculates system and height above sea level computational methods

Also Published As

Publication number Publication date
CN108020374A (en) 2018-05-11

Similar Documents

Publication Publication Date Title
CN106250430B (en) Method and device for sorting intelligent device list
EP3232156A1 (en) Obstacle locating method, apparatus and system, computer program and recording medium
CN112449026B (en) Ambient light compensation method, device, terminal and storage medium
CN107202574B (en) Motion trail information correction method and device
CN108020374B (en) Air pressure value determination method and device
CN109218509B (en) Information screen display method and device and computer readable storage medium
CN106253996B (en) Sensitivity attenuation test method and device
CN112082656A (en) Temperature determination method and device, electronic equipment and storage medium
CN110930351A (en) Light spot detection method and device and electronic equipment
CN105488074B (en) Photo clustering method and device
CN111177521A (en) Method and device for determining query term classification model
CN112525224B (en) Magnetic field calibration method, magnetic field calibration device, and storage medium
CN107657608B (en) Image quality determination method and device and electronic equipment
CN111125388B (en) Method, device and equipment for detecting multimedia resources and storage medium
US10739913B2 (en) Protective film detection method and apparatus, and storage medium
CN106646442A (en) Distance measurement method and terminal
CN115950415A (en) Method and device for determining navigation direction and storage medium
CN106790953B (en) Information interception method and device
CN106446827B (en) Iris recognition function detection method and device
CN111829651B (en) Method, device and equipment for calibrating light intensity value and storage medium
CN109211115B (en) Measuring method and device
CN107976171B (en) Information processing method, device and equipment
CN109813295B (en) Orientation determination method and device and electronic equipment
CN108667533B (en) Radio frequency parameter calibration method and device and electronic equipment
CN113138036B (en) Temperature detection method and device and electronic equipment

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