CN104251690B - A kind of method and electronic equipment for obtaining relative altitude - Google Patents

A kind of method and electronic equipment for obtaining relative altitude Download PDF

Info

Publication number
CN104251690B
CN104251690B CN201310263282.XA CN201310263282A CN104251690B CN 104251690 B CN104251690 B CN 104251690B CN 201310263282 A CN201310263282 A CN 201310263282A CN 104251690 B CN104251690 B CN 104251690B
Authority
CN
China
Prior art keywords
pressure value
model
relative altitude
unit
electronic equipment
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
CN201310263282.XA
Other languages
Chinese (zh)
Other versions
CN104251690A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201310263282.XA priority Critical patent/CN104251690B/en
Publication of CN104251690A publication Critical patent/CN104251690A/en
Application granted granted Critical
Publication of CN104251690B publication Critical patent/CN104251690B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C5/00Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels
    • G01C5/06Measuring height; Measuring distances transverse to line of sight; Levelling between separated points; Surveyors' levels by using barometric means

Abstract

The invention discloses a kind of method and electronic equipment for obtaining relative altitude, it is related to electric terminal application field, relative altitude can be got according to pressure values.Specific embodiment of the invention includes:The atmospheric pressure value of the electronic equipment local environment is obtained by the sensing unit of electronic equipment, when change of the atmospheric pressure value in scheduled time length is maintained within first threshold, it is determined that atmospheric pressure value now is the first benchmark atmospheric pressure value;When the current gas pressure value for obtaining exceeds the first threshold, according to current gas pressure value and the first air pressure a reference value of the determination, relative altitude is obtained.Technical solution of the present invention is mainly used in relative altitude acquisition flow.

Description

A kind of method and electronic equipment for obtaining relative altitude
Technical field
The present invention relates to electric terminal application field, more particularly to a kind of method and electronic equipment for obtaining relative altitude.
Background technology
At present, we measure the absolute pressure of air by a kind of sensor for measuring atmospheric pressure, exhausted by this Current atmospheric pressure value just can be accurately got to pressure, and because of the atmospheric pressure value on any height, equal on this height The big gas column weight that unit area is born, then we just can obtain the exhausted of current location according to the atmospheric pressure value of optional position To height.Such as, we can measure the atmospheric pressure value of position, so as to can just know the sea of position in mountain-climbing Pull out, likewise, when our a certain positions in building, it is also possible to the same height above sea level for obtaining being in position.But, it is above-mentioned Method can not meet us and obtain the demand of relative altitude.For example when climbing the mountain, we can not be known from the foot of the hill, arrived The height of current location.And for example, when floor is positioned, due to 1 layer of different buildings, its height above sea level is different, i.e., on mountain The 1st layer of building and mountain under be clearly different, then when our a certain positions in building, even if getting this The pressure values of position, can not determine the position is which layer of this building, that is to say, that can not obtain this position Relative altitude.
The content of the invention
It is electronic equipment that embodiments of the invention provide a kind of method for obtaining relative altitude, can be according to the pressure of measurement Value gets relative altitude.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of method for obtaining relative altitude, the method is applied to electronic equipment, and the electronic equipment has sensing unit, Including:
The atmospheric pressure value of the electronic equipment local environment is obtained using the sensing unit;
When change of the atmospheric pressure value in scheduled time length is maintained within first threshold, the first air pressure base is determined Quasi- value;
When the current gas pressure value for obtaining is more than the first threshold, based on the current gas pressure value and the determination the One air pressure a reference value obtains relative altitude.
A kind of electronic equipment, including:
Sensing unit, the atmospheric pressure value for obtaining the electronic equipment local environment;
Determining unit, the conversion for the atmospheric pressure value that is obtained when the sensing unit in scheduled time length is maintained When within first threshold, determine that the atmospheric pressure value is the first air pressure a reference value;
Acquiring unit, for when the current gas pressure value that the sensing unit is obtained exceedes the first threshold, based on institute State the first air pressure a reference value acquisition relative altitude that current gas pressure value and the determining unit determine.
A kind of method and electronic equipment for obtaining relative altitude provided in an embodiment of the present invention, electricity is got in sensing unit After the atmospheric pressure value of sub- equipment local environment, and change when the atmospheric pressure value in scheduled time length maintains first threshold When, determine the atmospheric pressure value for the first air pressure a reference value, when current gas pressure value exceedes the first threshold, according to current gas pressure value and First air pressure a reference value obtains relative altitude.Technical solution of the present invention, solving in the prior art can not be directly perceived according to atmospheric pressure value Obtain the problem of relative altitude.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
A kind of flow chart of the method for acquisition relative altitude that Fig. 1 is provided for one embodiment of the invention;
A kind of air pressure that Fig. 2-1 is provided for one embodiment of the invention with height change schematic diagram;
Another air pressure that Fig. 2-2 is provided for one embodiment of the invention with height change schematic diagram;
Another air pressure that Fig. 2-3 is provided for one embodiment of the invention with height change schematic diagram;
A kind of flow chart of the method for acquisition relative altitude that Fig. 3 is provided for another embodiment of the present invention;
The composition schematic diagram of a kind of electronic equipment that Fig. 4 is provided for another embodiment of the present invention;
The composition schematic diagram of another electronic equipment that Fig. 5 is provided for another embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
One embodiment of the invention provides a kind of method for obtaining relative altitude, and the method is applied to electronic equipment, such as Fig. 1 Shown, the method includes:
101st, the atmospheric pressure value of electronic equipment local environment is obtained.
Wherein, the atmospheric pressure value is performed by the sensing unit for including in electronic equipment.
102nd, when the change when above-mentioned atmospheric pressure value in scheduled time length is maintained within first threshold, the first gas is determined Pressure a reference value.
Optionally, above-mentioned first air pressure a reference value is contained in above-mentioned first threshold or one group of atmospheric pressure value.
Optionally, it is determined that also including setting the first threshold before the first air pressure a reference value.Preferably, first threshold Value refers to the atmospheric pressure value of the starting point of height to be measured, when electronic equipment does not exist relative altitude, or relative altitude in local environment When differing minimum, atmospheric pressure value now is obtained by sensing unit, and sets the atmospheric pressure value of the acquisition and be set to first threshold, and not The first threshold is different in same environment.
Further, when the current gas pressure value that sensing unit is obtained exceeds first threshold, following 103 are performed.
103rd, according to current gas pressure value and the first air pressure a reference value of determination, relative altitude is obtained.
Specifically, the first air pressure a reference value is the air pressure that electronic equipment is in initial point position, current gas pressure value is electronics The air pressure in final position at equipment;And acquire relative altitude with the corresponding relation of height change according to air pressure value changes.
For example, if necessary to the difference in height between measurement position A and position B, and determining that position A is starting point, position B is for eventually Point, then the first air pressure a reference value represents the atmospheric pressure value of position A, current gas pressure value represents the atmospheric pressure value of position B.Further, According to air pressure with the variation relation of height, such as, within the km of height above sea level 2,12 meters are often raised, atmospheric pressure reduces by 1 millimetres of mercury, from And obtain the relative altitude of A and B.
Optionally, the atmospheric pressure value of the electronic equipment local environment for being got according to sensing unit, can also carry out following behaviour Make:
When a, current gas pressure value exceed first threshold, the first model is drawn according to the atmospheric pressure value for acquiring.
What deserves to be explained is, the first model is the curve drawn according to atmospheric pressure value.
B, judge whether the first model meets second condition.
What deserves to be explained is, perform b judgement before, set up preset model, the preset model represent atmospheric pressure with The variation relation of height.Above-mentioned b is then performed specifically, judging whether the first model is contained in preset model.
Additionally, preset model represents the variation relation of air pressure and altitude, it is preferred that the preset model passes through rectangular co-ordinate System represents, and it is position to set abscissa, and ordinate is atmospheric pressure value.The preset model at least includes following three kinds of forms:
The first form:People when normal roadside travels, walks about, the smooth variation of air pressure, as shown in Fig. 2-1;
Optionally, in can setting now curve, the maximum of air pressure and the minimum value of air pressure, as the end points of first threshold. And in the Fig. 2-1, the change of the positional representation horizontal level of abscissa.
Second form:When stair climbing, with the slow uniform descent of increase pressure values of stair exponent number, as shown in Fig. 2-2;
The third form:It is identical compared to atmospheric pressure trends when stair climbing when sitting elevator, but rate of change is big, such as figure Shown in 2-3.
What deserves to be explained is, in above-mentioned Fig. 2-2,2-3, there is the position of difference in height in the position shown in weighing apparatus coordinate, expression The change put, that is to say, that the direction height that abscissa arrow is pointed to is increased.
Other any one or a few forms can also be included according to actual conditions preset model.
C, when it is determined that the first model is contained in preset model, perform above-mentioned 103.
Preferably, the situation gone upstairs with reference to described in above-mentioned b, the data before upper first rank stair are the first air pressure A reference value, the atmospheric pressure value of current position acquisition is current gas pressure value.
What deserves to be explained is, the atmospheric pressure value got according to sensing unit draws the first model, by with preset model Matching, can know current motion state.
Further, after above-mentioned relative altitude is got, electronic equipment can show the relative altitude to user.
A kind of method for obtaining relative altitude provided in an embodiment of the present invention, the method is applied to electronic equipment, in electronics Sensing unit in equipment is acquired after the atmospheric pressure value for representing local environment, and when the atmospheric pressure value is in scheduled time length When change maintains first threshold, the atmospheric pressure value is determined for the first air pressure a reference value, when current gas pressure value exceedes first threshold, Relative altitude is obtained according to the current atmospheric pressure value and the first air pressure a reference value.Technical solution of the present invention, solves in the prior art The problem of relative altitude can not be intuitively obtained according to atmospheric pressure value, Consumer's Experience is improve.
Another embodiment of the present invention provides a kind of method for obtaining relative altitude, as shown in figure 3, the method includes:
201st, the atmospheric pressure value of electronic equipment local environment is obtained.
The 202nd, first threshold is set.
203rd, judge the atmospheric pressure value for obtaining whether in first threshold.
Further, when it is determined that atmospheric pressure value in predetermined time period within the first threshold when, it is determined that gas now Pressure value is the first air pressure a reference value;When it is determined that current gas pressure value exceeds the first threshold, following 204 are performed.
204th, according to the first air pressure a reference value and current gas pressure value, relative altitude is obtained.
What deserves to be explained is, this step with it is 103 corresponding in a upper embodiment, related content describes identical, herein not Repeat explanation.
205th, relative altitude is shown.
What deserves to be explained is, the display of relative altitude includes, but are not limited to following two kinds of representations:
The first representation:Relative altitude is directly shown to user.
For example, we are when climbing the mountain, the relative altitude in setting time, climbed the mountain directly can be shown to user.Tool Body, used as the first air pressure a reference value, the pressure at the end of setting time is to work as to the pressure that can be obtained when timing starts Preceding atmospheric pressure value, and then according to the first air pressure a reference value and current gas pressure value, relative altitude is obtained, and the relative altitude value is straight Connect and be shown to user.
Second representation:According to actual conditions, relative altitude is converted into the form of user's needs, shown.
Preferably, if user is in a certain building, and now the demand of user is, gets position and is located at Number of floor levels, then relative altitude is now converted into number of floor levels and is shown to user.
What deserves to be explained is, with reference to the description of a upper embodiment, acquire electronic equipment local environment atmospheric pressure value it Afterwards, because atmospheric pressure value is to obtain in real time, curve can be drawn according to the atmospheric pressure value of the real-time acquisition, the curve is the first mould Type, and first model be used to representing air pressure with and height change relation, and it is determined that first model is contained in preset model When middle, according to current gas pressure value and the first air pressure a reference value, relative altitude is obtained.
With reference to above-mentioned second representation, preferably electronic equipment is so that floor shows as an example, if the position that user is in It is the second layer of building, then according to the atmospheric pressure value before going upstairs and the atmospheric pressure value of the position, gets relative altitude.Specifically , during stair climbing with reference to described in above-mentioned b air pressure with stair exponent number change curve, due to before going upstairs in flat Ground, that is to say, that atmospheric pressure value now is contained within first threshold, then air pressure change represented by curve, as horizontal line or The curve that person changes by a small margin, when going upstairs, air pressure starts to reduce, then the critical point for reducing air pressure to by level is made It is the first air pressure a reference value selected point.
Further, if user is in position higher than the second layer, and fixed by the height between floor, now According to known story height and the relative altitude for getting, and then the number of floor levels that position is located at can be got, or Person combines change curve of the air pressure with stair exponent number, in addition to ground floor, as soon as place's air pressure level often occur goes to decline, illustrates to use Family switchs to stair climbing state by level land, then can be according to the secondary of the curve drawn by the atmospheric pressure value namely change of the first model Number, knows and is presently in number of floor levels.
Further what deserves to be explained is, obtain the relative altitude after, can also to user display change electronic equipment The prompt message of working condition, or the working condition of automatic change electronic equipment is set according to user.The prompt message includes The prompting letter of the prompt message, the prompt message of change network connection or unlatching navigation of the contextual model of prompting change electronic equipment Breath etc..Such as, user can start sensing unit in the scheduled time, in the atmospheric pressure value obtained according to sensing unit, and perform State after 201-205, user can just know current floor information, can also specify electronic equipment display reminding information or from The floor information of dynamic change working condition.Further, if the floor of display is consistent with the floor of user preset, electronics Equipment display reminding change contextual model is the prompt message of vibrational state, or directly change contextual model is vibrational state.Its In, the working condition of display reminding information or automatic change electronic equipment can be set by user or electronic equipment.
Likewise, when user may be set in designated floor, the prompt message of display change network connection;Or reaching finger When making position, navigation feature of electronic equipment etc. is opened, specific implementation, the prompting with above-mentioned display change contextual model is believed The implementation method of breath or automatic change contextual model is identical, is not repeated.
A kind of method for obtaining relative altitude provided in an embodiment of the present invention, the method is applied to electronic equipment, and electronics sets Sensing unit in standby is acquired after the atmospheric pressure value for representing local environment, and the change when the atmospheric pressure value in scheduled time length When change maintains first threshold, the atmospheric pressure value is determined for the first air pressure a reference value, when current gas pressure value exceedes first threshold, root Relative altitude is obtained according to the current atmospheric pressure value and the first air pressure a reference value, and relative altitude can be set according to user's request Display format, while the working condition of electronic equipment can be changed according to the relative altitude.Technical solution of the present invention, solves existing There is the problem that can not intuitively obtain relative altitude in technology according to atmospheric pressure value, improve Consumer's Experience.
A kind of device for obtaining relative altitude is the embodiment of the invention provides, as shown in figure 4, the device includes:Sensing is single Unit 41, determining unit 42, acquiring unit 43.
Sensing unit 41, the atmospheric pressure value for obtaining electronic equipment local environment.
Determining unit 42, the conversion for the atmospheric pressure value that is obtained when sensing unit 41 in scheduled time length maintains When within one threshold value, the first air pressure a reference value is determined.
Optionally, above-mentioned first air pressure a reference value is contained in above-mentioned first threshold or one group of atmospheric pressure value.
Acquiring unit 43, for when the current gas pressure value that sensing unit 41 is obtained exceedes first threshold, based on current gas The first air pressure a reference value that pressure value and determining unit 42 determine obtains relative altitude.
Optionally, the first air pressure a reference value is the air pressure that electronic equipment is in initial point position, and current gas pressure value is electronics The air pressure in final position at equipment;And according to air pressure value changes and the corresponding relation of height change, acquire relative altitude. For example, if necessary to the difference in height between measurement position A and position B, and determine that position A is starting point, position B is terminal, then First air pressure a reference value represents the atmospheric pressure value of position A, and current gas pressure value represents the atmospheric pressure value of position B.Further, according to air pressure With the variation relation of height, such as, within the km of height above sea level 2, often raise 12 meters, atmospheric pressure 1 millimetres of mercury of reduction, so as to obtain A With B relative altitudes.
Optionally, as shown in figure 5, the electronic equipment also includes:Setting unit 44, rendering model unit 45, judging unit 46th, model sets up unit 47, display unit 48.
Setting unit 44, for setting first threshold.
Preferably, when electronic equipment is minimum in the absence of relative altitude, or relative altitude difference in local environment, pass through Sensing unit 41 obtains atmospheric pressure value now, and sets the atmospheric pressure value of the acquisition and be set to first threshold.
Rendering model unit 45, for when the current gas pressure value that sensing unit 41 is obtained exceedes first threshold, according to gas Pressure value draws the first model.
Wherein, the first model is the curve that atmospheric pressure value is drawn with the transformation relation of height.
Judging unit 46, is additionally operable to judge whether the first model that rendering model unit 45 is drawn meets second condition.
Wherein, judge whether the first model meets second condition, that is, judge whether first model is contained in model foundation In the preset model that unit 47 is set up.
Acquiring unit 43, is additionally operable to when judging unit 46 determines that the first model meets second condition, according to sensing unit First air pressure a reference value of the 41 current gas pressure values for obtaining and determining unit 42, obtains relative altitude.
Optionally, also include:
Model sets up unit 47, for setting up preset model.
Wherein, preset model is the curve for representing atmospheric pressure and the variation relation of height.
Preferably, the preset model is by right-angle coordinate representation, and it is position to set abscissa, and ordinate is atmospheric pressure value. The preset model at least includes following three kinds of forms:
The first form:People when normal roadside travels, walks about, the smooth variation of air pressure, as shown in accompanying drawing 2-1;
Second form:When stair climbing, with the slow uniform descent of increase pressure values of stair exponent number, such as accompanying drawing 2-2 institutes Show;
The third form:It is identical compared to atmospheric pressure trends when stair climbing when sitting elevator, but rate of change is big, as attached Shown in Fig. 2-3.
Other any one or a few forms can also be included according to actual conditions preset model.
C, when it is determined that the first model is contained in preset model, perform above-mentioned 103.
Preferably, the situation gone upstairs with reference to described in above-mentioned b, the data before upper first rank stair are base value According to the atmospheric pressure value of current position acquisition is end data.
Judging unit 46, specifically for judging whether the first model that rendering model unit 45 is drawn is contained in model foundation In the preset model that unit 47 is set up.
Display unit 48, for showing the relative altitude that acquiring unit 43 is obtained.
Optionally, the display of display unit 48 relative altitude, includes, but are not limited to following two kinds of representations:
The first representation:Relative altitude is directly shown to user.
For example, we are when climbing the mountain, the relative altitude in setting time, climbed the mountain directly can be shown to user.Tool Body, used as the first air pressure a reference value, the pressure at the end of setting time is to work as to the pressure that can be obtained when timing starts Preceding atmospheric pressure value, and then according to the first air pressure a reference value and current gas pressure value, gets relative altitude, and by the relative altitude value It is directly displayed to user.
Second representation:According to actual conditions, relative altitude is converted into the form of user's needs, shown.
Preferably, if user is in a certain building, and now the demand of user is located to get position Number of floor levels, then relative altitude is now converted into number of floor levels and is shown to user.
Further what deserves to be explained is, the display unit 48 of the electronic equipment is additionally operable to be obtained relatively in acquiring unit 43 After height, to the prompt message of user's display change electronic device works state, or can also set automatic according to user Change the working condition of electronic equipment.Wherein, prompt message includes the prompting change contextual model of electronic equipment, network connection Prompt message opens prompt message of navigation etc..Such as, user can start sensing unit in the scheduled time, according to sensing The atmospheric pressure value that unit is obtained, after the above-mentioned 201-205 of execution, and is shown to user with floor information.If display floor with When the floor of user preset is consistent, display reminding change contextual model is the prompt message of vibrational state, or directly changes scene Pattern is vibrational state.Wherein, the working condition of display reminding information or change electronic equipment can be set by user or electronic equipment It is fixed.Likewise, when user may be set in designated floor, the prompt message of display change network connection;Or reaching command bits When putting, open navigation feature etc. of electronic equipment, specific implementation, with the prompt message of above-mentioned display change contextual model or The implementation method of automatic change contextual model is identical, is not repeated.
Electronic equipment provided in an embodiment of the present invention, after sensing unit acquires the atmospheric pressure value for representing local environment, When change of the determining unit in the atmospheric pressure value in scheduled time length maintains first threshold, determine that the atmospheric pressure value is the first gas Pressure a reference value, and then acquiring unit is when preceding atmospheric pressure value exceedes first threshold, according to the current atmospheric pressure value and the first air pressure benchmark Value obtains relative altitude, and the relative altitude is shown to user from display unit.Electronic equipment provided in an embodiment of the present invention, solution Having determined can not intuitively obtain the problem of relative altitude according to atmospheric pressure value in the prior art, improve Consumer's Experience.
Through the above description of the embodiments, it is apparent to those skilled in the art that the present invention can be borrowed Software is helped to add the mode of required common hardware to realize, naturally it is also possible to which by hardware, but the former is more preferably in many cases Implementation method.Based on such understanding, the portion that technical scheme substantially contributes to prior art in other words Dividing can be embodied in the form of software product, and the computer software product is stored in the storage medium that can read, and such as be counted The floppy disk of calculation machine, hard disk or CD etc., including some instructions are used to so that computer equipment (can be personal computer, Server, or the network equipment etc.) perform method described in each embodiment of the invention.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (8)

1. a kind of method for obtaining relative altitude, methods described is applied to electronic equipment, and the electronic equipment has sensing unit, It is characterised in that it includes:
The atmospheric pressure value of the electronic equipment local environment is obtained using the sensing unit;
When change of the atmospheric pressure value in scheduled time length is maintained within first threshold, the first air pressure benchmark is determined Value;
When the current gas pressure value for obtaining is more than the first threshold, based on the current gas pressure value and the gas of the determination first Pressure a reference value obtains relative altitude.
2. it is according to claim 1 obtain relative altitude method, it is characterised in that also include:First threshold is set Value.
3. it is according to claim 1 obtain relative altitude method, it is characterised in that also include:
When the current gas pressure value for obtaining is more than the first threshold, painted according to the atmospheric pressure value that the sensing unit is obtained The first model is made, wherein, first model is the curve of the current gas pressure value and height change relation;
Preset model is set up, the preset model represents the variation relation of atmospheric pressure and height;
Judge whether first model meets second condition;It is described to judge whether first model meets the Article 2 Part, including:Judge whether first model is contained in the preset model;
When it is determined that first model meets the second condition, according to the current gas pressure value and the first air pressure benchmark Value, obtains the relative altitude.
4. the method for the acquisition relative altitude according to Claims 2 or 3, it is characterised in that obtaining the relative altitude Afterwards, also include:Show the relative altitude.
5. a kind of electronic equipment, it is characterised in that including:
Sensing unit, the atmospheric pressure value for obtaining the electronic equipment local environment;
Determining unit, the conversion for the atmospheric pressure value that is obtained when the sensing unit in scheduled time length maintains When within one threshold value, the first air pressure a reference value is determined;
Acquiring unit, for when the current gas pressure value that the sensing unit is obtained exceedes the first threshold, being worked as based on described The first air pressure a reference value that preceding atmospheric pressure value and the determining unit determine, obtains relative altitude.
6. electronic equipment according to claim 5, it is characterised in that the electronic equipment also includes:Setting unit, is used for The first threshold is set.
7. electronic equipment according to claim 5, it is characterised in that the electronic equipment also includes:
Rendering model unit, for when the current gas pressure value for obtaining is more than the first threshold, according to the sensing unit The atmospheric pressure value for obtaining draws the first model, wherein, first model is the current gas pressure value and height change relation Curve;
Model sets up unit, and for setting up preset model, the preset model represents the variation relation of atmospheric pressure and height;
Judging unit, is additionally operable to judge whether first model that the rendering model unit is drawn meets second condition;Institute Judging unit is stated to be built specifically for judging whether first model of the rendering model unit drafting is contained in the model In the preset model that vertical unit is set up;
The acquiring unit, is additionally operable to determine that first model that the rendering model unit is obtained is expired when the judging unit During the foot second condition, described in the current gas pressure value obtained according to the sensing unit and determining unit determination First air pressure a reference value, obtains the relative altitude.
8. the electronic equipment according to claim 6 or 7, it is characterised in that also include:
Display unit, after obtaining the relative altitude in the acquiring unit, shows the relative altitude.
CN201310263282.XA 2013-06-27 2013-06-27 A kind of method and electronic equipment for obtaining relative altitude Active CN104251690B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310263282.XA CN104251690B (en) 2013-06-27 2013-06-27 A kind of method and electronic equipment for obtaining relative altitude

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310263282.XA CN104251690B (en) 2013-06-27 2013-06-27 A kind of method and electronic equipment for obtaining relative altitude

Publications (2)

Publication Number Publication Date
CN104251690A CN104251690A (en) 2014-12-31
CN104251690B true CN104251690B (en) 2017-06-27

Family

ID=52186807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310263282.XA Active CN104251690B (en) 2013-06-27 2013-06-27 A kind of method and electronic equipment for obtaining relative altitude

Country Status (1)

Country Link
CN (1) CN104251690B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104729463B (en) * 2015-03-20 2017-03-15 广东小天才科技有限公司 A kind of altitude correction method and device
US10039080B2 (en) * 2016-03-04 2018-07-31 Apple Inc. Situationally-aware alerts
CN106441218A (en) * 2016-09-05 2017-02-22 广东欧珀移动通信有限公司 Processing method and device of altitudes
US11248908B2 (en) * 2017-02-24 2022-02-15 Here Global B.V. Precise altitude estimation for indoor positioning
CN108180895A (en) * 2018-01-10 2018-06-19 云南电网有限责任公司电力科学研究院 A kind of method based on height above sea level peak value measurement relative altitude
CN109631833A (en) * 2018-12-18 2019-04-16 重庆邮电大学 The difference barometric leveling method merged based on storage verification with inertial sensor
CN109685928A (en) * 2019-01-22 2019-04-26 重庆市蛛丝网络科技有限公司 A kind of electronic patrol device and method
CN109922452A (en) * 2019-02-12 2019-06-21 浙江每日互动网络科技股份有限公司 A kind of method that server obtains mobile terminal height
CN111750917A (en) * 2019-08-25 2020-10-09 广东小天才科技有限公司 Method and device for identifying inter-floor movement mode and intelligent equipment
CN111735429B (en) * 2020-05-11 2021-11-26 腾讯科技(深圳)有限公司 Floor recognition method and device, computer equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002286492A (en) * 2001-03-26 2002-10-03 Denso Corp Portable navigation device
CN1932698A (en) * 2005-09-13 2007-03-21 Eta瑞士钟表制造股份有限公司 Altimeter watch
CN101655366B (en) * 2008-08-18 2011-12-28 高德软件有限公司 Altitude measurement method and altitude measurement system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002286492A (en) * 2001-03-26 2002-10-03 Denso Corp Portable navigation device
CN1932698A (en) * 2005-09-13 2007-03-21 Eta瑞士钟表制造股份有限公司 Altimeter watch
CN101655366B (en) * 2008-08-18 2011-12-28 高德软件有限公司 Altitude measurement method and altitude measurement system

Also Published As

Publication number Publication date
CN104251690A (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN104251690B (en) A kind of method and electronic equipment for obtaining relative altitude
CN105247320B (en) Use the device of the change of air pressure measured value identification vertical direction
US9632107B2 (en) Movement amount estimation system, movement amount estimation method and mobile terminal
CN106643739B (en) Indoor environment personnel positioning method and system
Vanini et al. Adaptive context-agnostic floor transition detection on smart mobile devices
Zhang et al. Elevator ride comfort monitoring and evaluation using smartphones
CN111427075B (en) Path navigation method, path navigation device, mobile terminal and readable storage medium
CN104249957A (en) Group Management System Of Elevator
CN107121140A (en) A kind of location acquiring method based on Multiple Source Sensor
CN106294969A (en) A kind of method of steel structure net rack hydraulic pressure lift precision controlling based on BIM
CN105769209A (en) Method for calculating heat consumption and electronic device
JP2019215646A (en) Parking position guide system and parking position guide program
CN104729463B (en) A kind of altitude correction method and device
JP2008173251A (en) Ascending and descending motion detecting apparatus and activity meter using it
CN103152487A (en) Method for performing floor positioning by utilizing intelligent mobile
CN111366170B (en) State determination method and electronic equipment
TW201220210A (en) Method for pedestrian behavior recognition and the system thereof
CN102980557A (en) Portable terminal equipment and method for measuring height of building by using portable terminal equipment
CN105307120B (en) The safety prompt function method and system of riding lifting device
JP6325245B2 (en) Electronic device, measurement data processing method, and measurement data processing program
JP4674148B2 (en) Building flow planning system
JP6054905B2 (en) Path shape determination device, exercise support system, and program
CN105293223B (en) elevator floor automatic obtaining method and device
JP2003331063A (en) Device and program for recording exercise history
JP2012168818A (en) Electronic device, pedometer and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant