CN106597502B - Height above sea level determines method and device - Google Patents

Height above sea level determines method and device Download PDF

Info

Publication number
CN106597502B
CN106597502B CN201611184684.0A CN201611184684A CN106597502B CN 106597502 B CN106597502 B CN 106597502B CN 201611184684 A CN201611184684 A CN 201611184684A CN 106597502 B CN106597502 B CN 106597502B
Authority
CN
China
Prior art keywords
mobile terminal
height above
sea level
above sea
level
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
CN201611184684.0A
Other languages
Chinese (zh)
Other versions
CN106597502A (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 CN201611184684.0A priority Critical patent/CN106597502B/en
Publication of CN106597502A publication Critical patent/CN106597502A/en
Application granted granted Critical
Publication of CN106597502B publication Critical patent/CN106597502B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The disclosure is directed to a kind of height above sea level to determine method and device, belong to application of electronic technology field.This method comprises: obtaining the number of the signal website around mobile terminal, signal website is for issuing network signal when receiving height above sea level determine instruction;According to the number of the signal website around mobile terminal, judge whether mobile terminal meets default height above sea level and determine condition;If mobile terminal, which meets default height above sea level, determines condition, the first height above sea level of mobile terminal position is determined by the barometer in mobile terminal, and, the second height above sea level of mobile terminal position is determined by the GPS in mobile terminal;Final height above sea level is determined based on the first height above sea level and the second height above sea level.The disclosure solves the problems, such as the higher cost of determining height above sea level, reduces the cost of determining height above sea level.The disclosure is for determining height above sea level.

Description

Height above sea level determines method and device
Technical field
This disclosure relates to application of electronic technology field, in particular to a kind of height above sea level determines method and device.
Background technique
Mountain-climbing is a kind of extremely common outdoor sports, and user is during mountain-climbing, when stepping on to a certain height, usually It is desired to determine the height above sea level of oneself position.
In the related technology, user can wear mountain-climbing wrist-watch mountain-climbing, and during user's mountain-climbing, mountain-climbing wrist-watch can be counted It calculates the height above sea level of user position and shows the height above sea level, user is determined by the height above sea level of observation mountain-climbing watch displays where itself The height above sea level of position.
In implementing the present disclosure, inventor find the relevant technologies the prior art has at least the following problems:
Since the relevant technologies need to determine height above sea level using mountain-climbing this special equipment of wrist-watch, accordingly, it is determined that the cost of height above sea level It is higher.
Summary of the invention
In order to solve the problems, such as to determine the higher cost of height above sea level in the related technology, it is true that the embodiment of the present disclosure provides a kind of height above sea level Determine method and device.The technical solution is as follows:
According to the first aspect of the embodiments of the present disclosure, a kind of height above sea level is provided and determines method, which comprises
When receiving height above sea level determine instruction, the number of the signal website around mobile terminal, the signal website are obtained For issuing network signal;
According to the number of the signal website around the mobile terminal, judge whether the mobile terminal meets default height above sea level Determine condition;
It is true by the barometer in the mobile terminal if the mobile terminal, which meets the default height above sea level, determines condition First height above sea level of the fixed mobile terminal position, and, it is determined by the global position system GPS in the mobile terminal Second height above sea level of the mobile terminal position;
Final height above sea level is determined based on first height above sea level and second height above sea level.
Optionally, the method also includes:
It is true by the GPS in the mobile terminal if the mobile terminal is unsatisfactory for the default height above sea level and determines condition The final height above sea level of the fixed mobile terminal position.
Optionally, whether the number according to the signal website around the mobile terminal, judge the mobile terminal Meet default height above sea level and determine condition, comprising:
Judge whether the number of the signal website around the mobile terminal is greater than default website number threshold value;
If the number of the signal website around the mobile terminal is greater than the default website number threshold value, it is determined that described Mobile terminal meets default height above sea level and determines condition;
If the number of the signal website around the mobile terminal is not more than the default website number threshold value, it is determined that institute It states mobile terminal and is unsatisfactory for default height above sea level and determine condition.
Optionally, the barometer by the mobile terminal determines the first sea of the mobile terminal position It pulls out, comprising:
The atmospheric pressure value of the mobile terminal position is determined by the barometer in the mobile terminal;
According to the location information of the mobile terminal, the sea level gas of the mobile terminal position is obtained from server Pressure value;
Determine the atmospheric pressure value of the mobile terminal position and the sea-level pressure value of the mobile terminal position Draught head;
According to the relationship and the draught head of draught head and height above sea level, the first sea of the mobile terminal position is determined It pulls out.
Optionally, it is in place to obtain the mobile terminal institute from server for the location information according to the mobile terminal The sea-level pressure value set, comprising:
Generate the inquiry request of the location information including the mobile terminal;
The inquiry request is sent to server;
The inquiry response that the server is sent is received, the inquiry response includes the location information with the mobile terminal Corresponding sea-level pressure value;
By sea-level pressure value corresponding with the location information of the mobile terminal, it is in place to be determined as the mobile terminal institute The sea-level pressure value set.
Optionally, described when receiving height above sea level determine instruction, obtain the number of the signal website around mobile terminal, packet It includes:
When receiving height above sea level determine instruction, the movement of signal station scans is executed, the signal station around mobile terminal is obtained The number of point.
Optionally, final height above sea level is determined based on first height above sea level and second height above sea level, comprising:
Determine the precision of second height above sea level;
Judge whether the precision of second height above sea level meets default height above sea level precision conditions;
If the precision of second height above sea level meets the default height above sea level precision conditions, second height above sea level is determined as most Whole height above sea level;
If the precision of second height above sea level is unsatisfactory for the default height above sea level precision conditions, first height above sea level is determined as Final height above sea level.
Optionally, the signal website includes: any one in Wireless Fidelity WIFI hot spot and base station.
According to the second aspect of an embodiment of the present disclosure, a kind of height above sea level determining device is provided, described device includes:
Module is obtained, is configured as obtaining the signal station around the mobile terminal when receiving height above sea level determine instruction The number of point, the signal website is for issuing network signal;
Judgment module is configured as the number according to the signal website around the mobile terminal, judges described mobile whole Whether end, which meets default height above sea level, determines condition;
First determining module is configured as passing through institute when the mobile terminal meets the default height above sea level and determines condition The first height above sea level that the barometer in mobile terminal determines the mobile terminal position is stated, and, pass through the mobile terminal In global position system GPS determine the second height above sea level of the mobile terminal position;
Second determining module is configured as determining final height above sea level based on first height above sea level and second height above sea level.
Optionally, described device further include:
Third determining module is configured as passing through when the mobile terminal is unsatisfactory for the default height above sea level and determines condition GPS in the mobile terminal determines the final height above sea level of the mobile terminal position.
Optionally, the judgment module, comprising:
Judging submodule, is configured as judging whether the number of the signal website around the mobile terminal is greater than default station Point number threshold value;
First determines submodule, and the number for being configured as the signal website around the mobile terminal is greater than described preset When website number threshold value, determine that the mobile terminal meets default height above sea level and determines condition;
Second determines submodule, is configured as the number of the signal website around the mobile terminal no more than described pre- If when website number threshold value, determining that the mobile terminal is unsatisfactory for default height above sea level and determines condition.
Optionally, first determining module, comprising:
First determines submodule, is configured as determining the mobile terminal place by the barometer in the mobile terminal The atmospheric pressure value of position;
Acquisition submodule is configured as the location information according to the mobile terminal, obtains from server described mobile whole Hold the sea-level pressure value of position;
Second determines submodule, is configured to determine that the atmospheric pressure value and the mobile terminal of the mobile terminal position The draught head of the sea-level pressure value of position;
Third determines submodule, is configured as relationship and the draught head according to draught head and height above sea level, determine described in First height above sea level of mobile terminal position.
Optionally, the acquisition submodule, comprising:
Generation unit is configurable to generate the inquiry request of the location information including the mobile terminal;
Transmission unit is configured as sending the inquiry request to server;
Receiving unit, is configured as receiving the inquiry response that the server is sent, the inquiry response include with it is described The corresponding sea-level pressure value of the location information of mobile terminal;
Determination unit is configured as sea-level pressure value corresponding with the location information of the mobile terminal being determined as The sea-level pressure value of the mobile terminal position.
Optionally, the acquisition module is configured as when receiving height above sea level determine instruction, and it is dynamic to execute signal station scans Make, obtains the number of the signal website around mobile terminal.
Optionally, second determining module, comprising:
First determines submodule, is configured to determine that the precision of second height above sea level;
Judging submodule is configured as judging whether the precision of second height above sea level meets default height above sea level precision conditions;
Second determines submodule, is configured as meeting the default height above sea level precision conditions in the precision of second height above sea level When, second height above sea level is determined as final height above sea level;
Third determines submodule, is configured as being unsatisfactory for the default height above sea level precision conditions in the precision of second height above sea level When, first height above sea level is determined as final height above sea level.
Optionally, the signal website includes: any one in Wireless Fidelity WIFI hot spot and base station.
According to the third aspect of an embodiment of the present disclosure, a kind of height above sea level determining device is provided, described device includes:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
When receiving height above sea level determine instruction, the number of the signal website around mobile terminal, the signal website are obtained For issuing network signal;
According to the number of the signal website around the mobile terminal, judge whether the mobile terminal meets default height above sea level Determine condition;
It is true by the barometer in the mobile terminal if the mobile terminal, which meets the default height above sea level, determines condition First height above sea level of the fixed mobile terminal position, and, it is determined by the global position system GPS in the mobile terminal Second height above sea level of the mobile terminal position;
Final height above sea level is determined based on first height above sea level and second height above sea level.
The technical solution that the embodiment of the present disclosure provides can include the following benefits:
The technical solution that the embodiment of the present disclosure provides, mobile terminal obtain mobile whole when receiving height above sea level determine instruction The number of signal website around holding judges whether mobile terminal meets according to the number of the signal website around mobile terminal Default height above sea level determines condition, when mobile terminal meets default height above sea level and determines condition, is determined by the barometer in mobile terminal First height above sea level of mobile terminal position, and, the second of mobile terminal position is determined by the GPS in mobile terminal Height above sea level determines final height above sea level based on the first height above sea level and the second height above sea level.Since mobile terminal can determine mobile terminal position Height above sea level, user can determine the height above sea level of itself position according to the height above sea level of mobile terminal position, it is therefore not necessary to using Special equipment solves the problems, such as the higher cost of determining height above sea level, reduces the cost of determining height above sea level.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
In order to illustrate more clearly of embodiment of the disclosure, attached drawing needed in embodiment description will be made below Simply introduce, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present disclosure, common for this field For technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved in each embodiment of the disclosure;
Fig. 2 is the method flow diagram that a kind of height above sea level shown according to an exemplary embodiment determines method;
Fig. 3-1 is that a kind of height above sea level shown according to another exemplary embodiment determines the method flow diagram of method;
Fig. 3-2 is that a kind of of Fig. 3-1 illustrated embodiment offer judges whether mobile terminal meets default height above sea level and determine condition Method flow diagram;
Fig. 3-3 is that a kind of barometer by mobile terminal that Fig. 3-1 illustrated embodiment provides determines mobile terminal institute In the method flow diagram of the first height above sea level of position;
Fig. 3-4 is a kind of sea-level pressure value for acquisition mobile terminal position that Fig. 3-1 illustrated embodiment provides Method flow diagram;
Fig. 3-5 is a kind of method of the final height above sea level for determining mobile terminal position that Fig. 3-1 illustrated embodiment provides Flow chart;
Fig. 4-1 is a kind of block diagram of height above sea level determining device shown according to an exemplary embodiment;
Fig. 4-2 is a kind of block diagram of the height above sea level determining device shown according to another exemplary embodiment;
Fig. 4-3 is a kind of block diagram of judgment module shown according to Fig. 4-1 illustrated embodiment;
Fig. 4-4 is the block diagram according to the first determining module of one kind shown in Fig. 4-1 illustrated embodiment;
Fig. 4-5 is the block diagram that submodule is determined according to one kind first shown in Fig. 4-1 illustrated embodiment;
Fig. 4-6 is the block diagram according to the second determining module of one kind shown in Fig. 4-1 illustrated embodiment;
Fig. 5 is a kind of block diagram of height above sea level determining device shown according to an exemplary embodiment.
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
Fig. 1 is a kind of structural schematic diagram of implementation environment involved in each embodiment of the disclosure.The implementation environment can be with It include: mobile terminal 120 and server 140.
Mobile terminal 120 can be the electronic equipment that function is determined with height above sea level, and be provided with gas in the mobile terminal 120 Pressure meter and global positioning system (English: Global Positioning System;Referred to as: GPS), mobile terminal 120 can lead to The barometer or GPS crossed in mobile terminal 120 determine the height above sea level of 120 position of mobile terminal.In the embodiments of the present disclosure, it moves Dynamic terminal 120 can compress mark for smart phone, tablet computer, smartwatch, intelligent wearable device, dynamic image expert Quasi- 5 (English: MovingPicture Experts Group Audio Layer V of audio level;Referred to as: MP5) player, knee Mo(u)ld top half portable computer etc..
Mobile terminal 120 can be connect by cable network or wireless network with server 140.Wherein, wireless network connects Connecing can include but is not limited to: Wireless Fidelity (English: WIreless FIdelity;Referred to as: WIFI) connection, bluetooth connection, red Outer connection, purple honeybee (English: Zigbee) connection, this implementation environment are not construed as limiting this.
Server 140 can be a server, or the server cluster consisted of several servers or one A cloud computing service center, the server 140 can store the corresponding relationship of location information and sea-level pressure value as movement Really the corresponding data of process offer are pulled out in Dinghai to terminal 120.Wherein, the location information can be Internet protocol (English: Internet Protocol;Referred to as: IP) address or GPS position information, this implementation environment are not construed as limiting this.
Fig. 2 is the method flow diagram that a kind of height above sea level shown according to an exemplary embodiment determines method, the present embodiment with The height above sea level determines that method is applied in the mobile terminal 120 shown in Fig. 1 in implementation environment to illustrate.Referring to fig. 2, the height above sea level The method of determination may include the following steps:
In step 201, when receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, Signal website is for issuing network signal.
In step 202, according to the number of the signal website around mobile terminal, it is default to judge whether mobile terminal meets Height above sea level determines condition.
In step 203, true by the barometer in mobile terminal if mobile terminal meets default height above sea level and determines condition Determine the first height above sea level of mobile terminal position, and, mobile terminal is determined by the global position system GPS in mobile terminal Second height above sea level of position.
In step 204, final height above sea level is determined based on the first height above sea level and the second height above sea level.
In conclusion the height above sea level that the embodiment of the present disclosure provides determines method, mobile terminal is receiving height above sea level determine instruction When, the number for obtaining the signal website around mobile terminal judges to move according to the number of the signal website around mobile terminal Whether terminal, which meets default height above sea level, determines condition, when mobile terminal meets default height above sea level and determines condition, by mobile terminal Barometer determine the first height above sea level of mobile terminal position, and, mobile terminal institute is determined by the GPS in mobile terminal The second height above sea level in position determines final height above sea level based on the first height above sea level and the second height above sea level.Since mobile terminal can determine movement The height above sea level of terminal position, user can determine the height above sea level of itself position according to the height above sea level of mobile terminal position, It is therefore not necessary to solve the problems, such as the higher cost of determining height above sea level using special equipment, the cost of determining height above sea level is reduced.
Fig. 3-1 is that a kind of height above sea level shown according to another exemplary embodiment determines the method flow diagram of method, this implementation Example determines that method is applied to illustrate in implementation environment shown in Fig. 1 with the height above sea level.Referring to Fig. 3-1, which determines method May include the following steps:
In step 301, when receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, Signal website is for issuing network signal.
In the embodiments of the present disclosure, user can operate mobile terminal triggering height above sea level determine instruction.Illustratively, mobile terminal In application program for determining height above sea level can be installed, and the figure of the application program can be shown in the main interface of mobile terminal Mark, when the user clicks when the icon of the application program, user triggers height above sea level determine instruction, and mobile terminal receives the sea of user's triggering Pull out determine instruction;Alternatively, mobile terminal, which is provided with height above sea level, determines key, and when user, which presses the height above sea level, determines key, user's touching Send out height above sea level determine instruction, mobile terminal receive user triggering height above sea level determine instruction, the height above sea level determine key can for virtually by Key or physical button, when the height above sea level determines that key is virtual key, which determines that key can be for for determining height above sea level Application program in key, can be such as, but not limited to for the key in other applications, the other applications: chat Class application program (for example, wechat), online shopping class application program (for example, Taobao), payment class application program (for example, Alipay), When the height above sea level determines that key is physical button, which determines that key can be set in the front, the back side or side of mobile terminal Face, and the height above sea level determines that key can also be same key with the physical button of other on mobile terminal, user can be by not Same mode operates the physical button to trigger corresponding instruction, and the embodiment of the present disclosure is not construed as limiting this.
When mobile terminal receives height above sea level determine instruction, the number of the signal website around available mobile terminal.Its In, for issuing network signal, signal website includes but is not limited to signal website: any one in WIFI hot spot and base station, The embodiment of the present disclosure is not construed as limiting this.Optionally, mobile terminal can execute signal station when receiving height above sea level determine instruction Spot scan movement, obtains the number of the signal website around mobile terminal, for example, mobile terminal scans to obtain by WIFI hot spot The number of WIFI hot spot around mobile terminal.Wherein, the process of mobile terminal execution signal station scans movement can refer to The relevant technologies, details are not described herein for the embodiment of the present disclosure.
In step 302, according to the number of the signal website around mobile terminal, it is default to judge whether mobile terminal meets Height above sea level determines condition.If so, thening follow the steps 303;If it is not, thening follow the steps 305.
It, can be according to the letter around mobile terminal after the number of signal website around acquisition for mobile terminal mobile terminal The number of number website, judges whether mobile terminal meets default height above sea level and determine condition.Illustratively, Fig. 3-2 is please referred to, it illustrates The a kind of of Fig. 3-1 illustrated embodiment offer judges whether mobile terminal meets the method flow diagram that default height above sea level determines condition, joins See Fig. 3-2, this method comprises:
In sub-step 3021, judge whether the number of the signal website around mobile terminal is greater than default website number threshold Value.If so, executing sub-step 3022;If it is not, then executing sub-step 3023.
Optionally, mobile terminal can be by by the number of the signal website around mobile terminal and default website number threshold Value is compared to judge whether the number of the signal website around mobile terminal is greater than default website number threshold value.Wherein, in advance If website number threshold value can be M, the value of the M can be rule of thumb arranged, and the embodiment of the present disclosure is not construed as limiting this.
In the embodiments of the present disclosure, it is assumed that signal website in step 301 around the mobile terminal of acquisition for mobile terminal Number is M1, and M1 is greater than M, then M1 is compared by mobile terminal with M can determine that M1 is greater than M, and therefore, mobile terminal determines The number of signal website around mobile terminal is greater than default website number threshold value.
In sub-step 3022, determine that mobile terminal meets default height above sea level and determines condition.
If it is default to determine that the number of the signal website around mobile terminal is greater than for mobile terminal in above-mentioned sub-step 3021 Website number threshold value, then mobile terminal determines that mobile terminal meets default height above sea level and determines condition.In the embodiments of the present disclosure, due to The number of signal website around mobile terminal is greater than default website number threshold value, therefore mobile terminal meets default height above sea level and determines Condition.
In sub-step 3023, determine that mobile terminal is unsatisfactory for default height above sea level and determines condition.
If mobile terminal determines the number of the signal website around mobile terminal no more than pre- in above-mentioned sub-step 3021 If website number threshold value, then mobile terminal determines that mobile terminal is unsatisfactory for default height above sea level and determines condition.
In step 303, the first height above sea level of mobile terminal position is determined by the barometer in mobile terminal, with And the second height above sea level of mobile terminal position is determined by the GPS in mobile terminal.
In the embodiments of the present disclosure, it is provided with barometer and GPS in mobile terminal, if mobile whole in above-mentioned steps 302 It holds and determines that the default height above sea level of mobile terminal satisfaction determines condition, then mobile terminal is determined mobile whole by the barometer in mobile terminal The first height above sea level of position is held, and determines the second height above sea level of mobile terminal position by the GPS in mobile terminal.Example Ground please refers to Fig. 3-3, determines and moves it illustrates a kind of barometer by mobile terminal that Fig. 3-1 illustrated embodiment provides The method flow diagram of first height above sea level of dynamic terminal position, referring to Fig. 3-3, this method comprises:
In sub-step 3031, the atmospheric pressure value of mobile terminal position is determined by the barometer in mobile terminal.
Barometer is provided in mobile terminal, the barometer in the mobile terminal can measure mobile terminal position Atmospheric pressure value, the atmospheric pressure value of the mobile terminal position can be P0.It should be noted that since mobile terminal is usually by user It carries, therefore, the atmospheric pressure value of mobile terminal position that is to say the atmospheric pressure value of user position, and the embodiment of the present disclosure is to this It is not construed as limiting.
In sub-step 3032, according to the location information of mobile terminal, mobile terminal position is obtained from server Sea-level pressure value.
In the embodiments of the present disclosure, server can store the corresponding relationship of location information Yu sea-level pressure value, mobile Terminal can obtain the sea-level pressure value of mobile terminal position from server according to the location information of mobile terminal.Show Example ground, please refers to Fig. 3-4, and it illustrates a kind of Hai Ping for acquisition mobile terminal position that Fig. 3-1 illustrated embodiment provides The method flow diagram of face atmospheric pressure value, referring to Fig. 3-4, this method comprises:
In sub-step 30311A, mobile terminal generates the inquiry request of the location information including mobile terminal.
Wherein, location information may include IP address and GPS position information.IP address is a kind of unification that IP agreement provides Address format, every host for following IP agreement in internet all has a logical address, which can be used to The difference of physical address is shielded, which that is to say IP address.GPS position information can indicate a location point, and GPS Location information may include longitude, latitude and height above sea level.
In the embodiments of the present disclosure, mobile terminal can first obtain the location information of mobile terminal, and then regeneration includes The inquiry request of the location information of mobile terminal.Illustratively, when location information includes IP address, the movement of acquisition for mobile terminal The IP address of terminal can be IPA1, then mobile terminal generates the inquiry request including IP address IPA1.Illustratively, when position is believed When breath includes GPS position information, the GPS position information of the mobile terminal of acquisition for mobile terminal can be (lo1, la1, h1), lo It indicates longitude (English: Longitude), la is indicated latitude (English: Latitude), and h indicates height above sea level (English: High), then is moved Dynamic terminal generates the inquiry request including GPS position information (lo1, la1, h1).Wherein, the IP of acquisition for mobile terminal mobile terminal The process that address, the GPS position information of mobile terminal and mobile terminal generate inquiry request can refer to the relevant technologies, this public affairs Opening embodiment, details are not described herein.
In sub-step 30312A, mobile terminal sends inquiry request to server.
After mobile terminal generates inquiry request, inquiry request can be sent to server.Illustratively, mobile terminal is to service Device send include IP address IPA1 inquiry request, alternatively, mobile terminal to server send include GPS position information (lo1, La1, h1) inquiry request.
In sub-step 30313A, server is according to the location information of mobile terminal, inquiring position information and sea level gas The corresponding relationship of pressure value obtains sea-level pressure value corresponding with the location information of mobile terminal.
In the embodiments of the present disclosure, server is stored with the corresponding relationship of location information Yu sea-level pressure value, mobile whole Hold to server send inquiry request when, server can receive mobile terminal transmission inquiry request, then according to the inquiry The location information of mobile terminal in request, the corresponding relationship of inquiring position information and sea-level pressure value are obtained with movement eventually The corresponding sea-level pressure value of the location information at end.Wherein, server can be moved by being parsed to inquiry request The location information of terminal.In the embodiments of the present disclosure, location information and the corresponding relationship of sea-level pressure value can be IP address With the corresponding relationship of sea-level pressure value, or the corresponding relationship of GPS position information and sea-level pressure value, illustratively, The IP address of server storage and the corresponding relationship of sea-level pressure value can be as shown in table 1 below, the GPS location of server storage The corresponding relationship of information and sea-level pressure value can be as shown in table 2 below:
Table 1
IP address Sea-level pressure value
IPA1 P1
IPA2 P2
IPA3 P3
…… ……
Table 2
GPS position information Sea-level pressure value
(lo1, la1, h1) P1
(lo2, la2, h2) P2
(lo3, la3, h3) P3
…… ……
In the embodiments of the present disclosure, when location information is IP address, server parses inquiry request and can obtain To the IP address IPA1 of mobile terminal, then the corresponding relationship according to shown in the IP address IPA1 inquiry table 1 of mobile terminal, is obtained Sea-level pressure value corresponding with the IP address of mobile terminal is P1.When location information is GPS position information, server is to looking into It askes request to be parsed to obtain the GPS position information (lo1, la1, h1) of mobile terminal, then according to the GPS location of mobile terminal Corresponding relationship shown in information (lo1, la1, h1) inquiry table 2, available sea corresponding with the GPS position information of mobile terminal Plane atmospheric pressure value is P1.
In sub-step 30314A, server generates inquiry response, and inquiry response includes the location information with mobile terminal Corresponding sea-level pressure value.
After server obtains sea-level pressure value corresponding with the location information of mobile terminal, can according to mobile terminal The corresponding sea-level pressure value of location information generate inquiry response, include the location information with mobile terminal in the inquiry response Corresponding sea-level pressure value.Illustratively, server generates inquiry response, includes the position with mobile terminal in the inquiry response The corresponding sea-level pressure value P1 of information.
In sub-step 30315A, server sends inquiry response to mobile terminal.
After server generates inquiry response, inquiry response can be sent to mobile terminal.Illustratively, server is whole to movement End is sent and the inquiry response including the corresponding sea-level pressure value P1 of the location information of mobile terminal.
In sub-step 30316A, mobile terminal obtains sea corresponding with the location information of mobile terminal from inquiry response Plane atmospheric pressure value.
When server sends inquiry response to mobile terminal, mobile terminal can receive the inquiry response of server transmission, Then sea-level pressure value corresponding with the location information of mobile terminal is obtained from inquiry response.Wherein, mobile terminal can be with Inquiry response is parsed to obtain sea-level pressure value corresponding with the location information of mobile terminal, then obtains the sea level Atmospheric pressure value.Illustratively, mobile terminal obtains sea-level pressure value corresponding with the location information of mobile terminal from inquiry response P1。
In sub-step 30317A, mobile terminal is by sea-level pressure value corresponding with the location information of mobile terminal, really It is set to the sea-level pressure value of mobile terminal position.
Mobile terminal, can be with after obtaining corresponding with the location information of mobile terminal sea-level pressure value in inquiry response Sea-level pressure value corresponding with the location information of mobile terminal is determined as to the sea-level pressure value of mobile terminal position. Illustratively, sea-level pressure value corresponding with the location information of mobile terminal is P1, and P1 is determined as mobile terminal by mobile terminal The sea-level pressure value of position.
It should be noted that above-mentioned Tables 1 and 2 is only exemplary, it can not be to limit the disclosure, and above-mentioned table Sea-level pressure value in 1 may be the same or different with the sea-level pressure value in table 2, for example, the P1 in above-mentioned table 1 It may be the same or different with the P1 in table 2, the embodiment of the present disclosure is not construed as limiting this.
In sub-step 3033, the atmospheric pressure value of mobile terminal position and the sea level of mobile terminal position are determined The draught head of atmospheric pressure value.
Mobile terminal determines the atmospheric pressure value of mobile terminal position and obtains the sea level gas of mobile terminal position After pressure value, the gas of the atmospheric pressure value of mobile terminal position and the sea-level pressure value of mobile terminal position can be determined Pressure difference.In the embodiments of the present disclosure, the atmospheric pressure value of mobile terminal position is P0, the sea level gas of mobile terminal position Pressure value is P1, and therefore, mobile terminal determines the draught head of P0 and P1.
In sub-step 3034, according to the relationship and draught head of draught head and height above sea level, mobile terminal position is determined The first height above sea level.
Mobile terminal can safeguard the relationship of draught head and height above sea level, in atmospheric pressure value and the shifting for determining mobile terminal position After the draught head of the sea-level pressure value of dynamic terminal position, mobile terminal can according to the relationship of draught head and height above sea level with And the draught head of the atmospheric pressure value of mobile terminal position and the sea-level pressure value of mobile terminal position, it determines mobile whole The first height above sea level of position is held, the implementation of the process can refer to the relevant technologies, and the embodiment of the present disclosure is no longer superfluous herein It states.
It should be noted that the embodiment of the present disclosure is illustrated so that sea level height above sea level is 0 as an example, in practical application, The sea level height above sea level of different location can be different, and therefore, sea level height above sea level can not be 0, at this point, mobile terminal can safeguard gas The relationship of pressure difference and height above sea level difference, mobile terminal can also obtain the sea level height above sea level of mobile terminal position from server, so Afterwards according to the atmospheric pressure value of the relationship and mobile terminal position of draught head and height above sea level difference, the Hai Ping of mobile terminal position Face height above sea level determines the first height above sea level of mobile terminal position, and details are not described herein for the embodiment of the present disclosure.
It should also be noted that, the above content in step 303 describes the process that mobile terminal determines the first height above sea level, In addition to this, when mobile terminal meets default height above sea level and determines condition, mobile terminal can also be true by the GPS in mobile terminal Determine the second height above sea level of mobile terminal position.Wherein, GPS can position mobile terminal to obtain the GPS of mobile terminal Location information, which can indicate a location point, and the GPS position information may include longitude, latitude and sea It pulls out, mobile terminal can determine the second height above sea level of mobile terminal position according to the GPS position information.Illustratively, mobile whole The GPS position information at end can be (lo1, la1, h1), and therefore, mobile terminal can determine the second of mobile terminal position Height above sea level is h1.
In step 304, final height above sea level is determined based on the first height above sea level and the second height above sea level.
After mobile terminal determines the first height above sea level and the second height above sea level of user position, the first height above sea level and second can be based on Final height above sea level is determined in height above sea level.Illustratively, Fig. 3-5 is please referred to, it illustrates a kind of determinations of Fig. 3-1 illustrated embodiment offer most The method flow diagram of whole height above sea level, referring to Fig. 3-5, this method comprises:
In sub-step 3041, the precision of the second height above sea level is determined.
Mobile terminal can determine the precision of the second height above sea level.In the embodiments of the present disclosure, barometer is determining mobile terminal When the height above sea level of position, the precision of the second height above sea level can also be determined, and the precision of the second height above sea level is fed back into mobile terminal, move Dynamic terminal determines the precision of the second height above sea level by receiving the precision for the second height above sea level that barometer is fed back.Wherein, barometer determines The process of the precision of second height above sea level can refer to the relevant technologies, and details are not described herein for the embodiment of the present disclosure.
In sub-step 3042, judge whether the precision of the second height above sea level meets default height above sea level precision conditions.If so, executing Sub-step 3043;If it is not, then executing sub-step 3044.
After mobile terminal determines the precision of the second height above sea level, it can be determined that whether the precision of the second height above sea level meets default height above sea level essence Degree condition.Optionally, mobile terminal may determine that whether the precision of the second height above sea level is less than default precision threshold, if the second height above sea level Precision is less than default precision threshold, then mobile terminal determines that the precision of the second height above sea level meets default height above sea level precision conditions, if second The precision of height above sea level is not less than default precision threshold, then mobile terminal determines that the precision of the second height above sea level is unsatisfactory for default height above sea level precision item Part.Wherein, default precision threshold can be rule of thumb arranged, and illustratively, presetting precision threshold is 20 meters, the embodiment of the present disclosure pair This is not construed as limiting.
In sub-step 3043, the second height above sea level is determined as final height above sea level.
If mobile terminal determines that the precision of the second height above sea level meets default height above sea level precision conditions in above-mentioned sub-step 3042, Second height above sea level is determined as final height above sea level by mobile terminal.For example, when the precision of the second height above sea level is less than 20 meters, mobile terminal is by Two height above sea level are determined as final height above sea level.
In sub-step 3044, the first height above sea level is determined as final height above sea level.
If mobile terminal determines that the precision of the second height above sea level is unsatisfactory for default height above sea level precision conditions in above-mentioned sub-step 3042, Then the first height above sea level is determined as final height above sea level by mobile terminal.For example, when the precision of the second height above sea level is not less than 20 meters, mobile terminal First height above sea level is determined as final height above sea level.
In step 305, the final height above sea level of mobile terminal position is determined by the GPS in mobile terminal.
If mobile terminal determines that mobile terminal is unsatisfactory for default height above sea level and determines condition in step 302, mobile terminal is logical The GPS crossed in mobile terminal determines the final height above sea level of mobile terminal position.Illustratively, mobile terminal passes through in mobile terminal GPS mobile terminal is positioned to obtain the GPS position information of mobile terminal, which may include longitude, latitude Degree and height above sea level, mobile terminal can determine the final height above sea level of mobile terminal position according to the GPS position information, and the disclosure is real Applying example, details are not described herein.
It should be noted that in the embodiments of the present disclosure, the number of the signal website around mobile terminal is greater than default When website number threshold value, it is believed that mobile terminal is in the more intensive place of population, at this point, the sea level gas that barometer is got Pressure value is usually relatively more accurate, therefore the first sea of mobile terminal position can be determined by the barometer in mobile terminal The first height above sea level that the GPS in mobile terminal determines mobile terminal position is pulled out and passed through, the first height above sea level and second are then based on Height above sea level determines final height above sea level;When the number of signal website around mobile terminal is not more than default website number threshold value, it is believed that Mobile terminal is in the more sparse place of population, at this point, the accuracy for the sea-level pressure value that barometer is got usually compared with It is low, therefore the final height above sea level of mobile terminal position can be directly determined by the GPS in mobile terminal, it can mention in this way The accuracy that High aititude determines.
It should also be noted that, height above sea level provided in an embodiment of the present invention determines that the sequencing of method and step can be fitted Work as adjustment, step according to circumstances can also accordingly be increased and decreased, and anyone skilled in the art takes off in the present invention In the technical scope of dew, the method that can readily occur in variation be should be covered by the protection scope of the present invention, therefore no longer superfluous It states.
In conclusion the height above sea level that the embodiment of the present disclosure provides determines method, mobile terminal is receiving height above sea level determine instruction When, the number for obtaining the signal website around mobile terminal judges to move according to the number of the signal website around mobile terminal Whether terminal, which meets default height above sea level, determines condition, when mobile terminal meets default height above sea level and determines condition, by mobile terminal Barometer determine the first height above sea level of mobile terminal position, and, mobile terminal institute is determined by the GPS in mobile terminal The height above sea level for meeting default altitude conditions in first height above sea level and the second height above sea level is determined as final height above sea level by the second height above sea level in position. Since mobile terminal can determine the height above sea level of mobile terminal position, user can be according to the height above sea level of mobile terminal position Determine the height above sea level of itself position, it is therefore not necessary to solve the problems, such as the higher cost of determining height above sea level using special equipment, Reduce the cost of determining height above sea level.
When out on tours mountain-climbing, user would generally wonder the height above sea level of oneself position, if to calculate sea It pulls out, existing known scheme is to need user to carry the mountain-climbing wrist-watch that can calculate height above sea level by barometer, however use Most still mobile phones is carried in the trip of family, the mobile terminal in the embodiment of the present disclosure can be mobile phone, can use mobile phone meter Height above sea level is calculated, the tool that people's trip carries is reduced, optimizes user's trip experience.In addition, calculating height above sea level by barometer The method height above sea level precision that is influenced, and be calculated by air pressure be limited by the sea-level pressure value of selection, sea level gas completely Pressure value is obtained when barometer can not surf the Internet less than if all positions all use the same benchmark atmospheric pressure value, to meter Being affected for result is calculated, the accuracy for causing height above sea level to determine is lower, and the embodiment of the present disclosure is default by meeting in mobile terminal When height above sea level determines condition, while determining by barometer in mobile terminal and GPS the height above sea level of mobile terminal position, and It selects to meet default final height above sea level of the height above sea level precision conditions as mobile terminal position in the height above sea level being calculated, in this way may be used To reduce influence of the sea-level pressure value to calculated result, the accuracy that height above sea level determines is higher.
The height above sea level that the embodiment of the present disclosure provides determines method, can provide more for user when mobile terminal does not have network Accurate height above sea level can provide more accurate height above sea level when mobile terminal has network for user, so, no matter move Terminal has network again without network, and mobile terminal can provide accurate height above sea level for user.
Following is embodiment of the present disclosure, can be used for executing embodiments of the present disclosure.It is real for disclosure device Undisclosed details in example is applied, embodiments of the present disclosure is please referred to.
Fig. 4-1 is a kind of block diagram of height above sea level determining device 400 shown according to an exemplary embodiment, which determines dress Setting 400 being implemented in combination with as the mobile terminal 120 in implementation environment shown in Fig. 1 by software, hardware or both It is some or all of.Referring to fig. 4-1, which may include:
Module 410 is obtained, is configured as when receiving height above sea level determine instruction, the signal website around mobile terminal is obtained Number, signal website is for issuing network signal;
Judgment module 420 is configured as the number of the signal website around according to mobile terminal, whether judges mobile terminal Meet default height above sea level and determines condition;
First determining module 430 is configured as passing through mobile terminal when mobile terminal meets default height above sea level and determines condition In barometer determine the first height above sea level of mobile terminal position, and, pass through the global position system GPS in mobile terminal Determine the second height above sea level of mobile terminal position;
Second determining module 440 is configured as determining final height above sea level based on the first height above sea level and the second height above sea level.
In conclusion the height above sea level determining device that the embodiment of the present disclosure provides, mobile terminal are receiving height above sea level determine instruction When, the number for obtaining the signal website around mobile terminal judges to move according to the number of the signal website around mobile terminal Whether terminal, which meets default height above sea level, determines condition, when mobile terminal meets default height above sea level and determines condition, by mobile terminal Barometer determine the first height above sea level of mobile terminal position, and, mobile terminal institute is determined by the GPS in mobile terminal The second height above sea level in position determines final height above sea level based on the first height above sea level and the second height above sea level.Since mobile terminal can determine movement The height above sea level of terminal position, user can determine the height above sea level of itself position according to the height above sea level of mobile terminal position, It is therefore not necessary to solve the problems, such as the higher cost of determining height above sea level using special equipment, the cost of determining height above sea level is reduced.
Optionally, Fig. 4-2 is please referred to, it illustrates another height above sea level determining devices 400 of embodiment of the present disclosure offer Block diagram, referring to fig. 4-2, on the basis of Fig. 4-1, the height above sea level determining device 400 further include:
Third determining module 450 is configured as when mobile terminal is unsatisfactory for default height above sea level and determines condition, pass through it is mobile eventually GPS in end determines the final height above sea level of mobile terminal position.
Optionally, Fig. 4-3 is please referred to, it illustrates a kind of block diagram for judgment module 420 that the embodiment of the present disclosure provides, ginsengs See Fig. 4-3, judgment module 420, comprising:
Judging submodule 421, is configured as judging whether the number of the signal website around mobile terminal is greater than default station Point number threshold value;
First determines submodule 422, and the number for being configured as the signal website around mobile terminal is greater than default website When number threshold value, determine that mobile terminal meets default height above sea level and determines condition;
Second determines submodule 423, is configured as the number of the signal website around mobile terminal no more than default station When point number threshold value, determine that mobile terminal is unsatisfactory for default height above sea level and determines condition.
Optionally, Fig. 4-4 is please referred to, it illustrates the frames for the first determining module of one kind 430 that the embodiment of the present disclosure provides Figure, referring to fig. 4-4, first determining module 430, comprising:
First determines submodule 431, is configured as determining mobile terminal position by the barometer in mobile terminal Atmospheric pressure value;
Acquisition submodule 432 is configured as the location information according to mobile terminal, obtains mobile terminal place from server The sea-level pressure value of position;
Second determines submodule 433, is configured to determine where the atmospheric pressure value and mobile terminal of mobile terminal position The draught head of the sea-level pressure value of position;
Third determines submodule 434, is configured as relationship and draught head according to draught head and height above sea level, determines mobile whole Hold the first height above sea level of position.
Optionally, Fig. 4-5 is please referred to, it illustrates one kind first that the embodiment of the present disclosure provides to determine submodule 431 Block diagram, referring to fig. 4-5, first determines submodule 431, comprising:
Generation unit 4311 is configurable to generate the inquiry request of the location information including mobile terminal;
Transmission unit 4312 is configured as sending inquiry request to server;
Receiving unit 4313 is configured as receiving the inquiry response that server is sent, and inquiry response includes and mobile terminal The corresponding sea-level pressure value of location information;
Determination unit 4314 is configured as sea-level pressure value corresponding with the location information of mobile terminal being determined as The sea-level pressure value of mobile terminal position.
Optionally, module 410 is obtained, is configured as when receiving height above sea level determine instruction, it is dynamic to execute signal station scans Make, obtains the number of the signal website around mobile terminal.
Optionally, Fig. 4-6 is please referred to, it illustrates the frames for the second determining module of one kind 440 that the embodiment of the present disclosure provides Figure, referring to fig. 4-6, the second determining module 440, comprising:
First determines submodule 441, is configured to determine that the precision of the second height above sea level;
Judging submodule 442 is configured as judging whether the precision of the second height above sea level meets default height above sea level precision conditions;
Second determines submodule 443, is configured as when the precision of the second height above sea level meets default height above sea level precision conditions, by the Two height above sea level are determined as final height above sea level;
Third determines submodule 444, is configured as when the precision of the second height above sea level is unsatisfactory for default height above sea level precision conditions, will First height above sea level is determined as final height above sea level.
Optionally, signal website includes: any one in Wireless Fidelity WIFI hot spot and base station.
In conclusion the height above sea level determining device that the embodiment of the present disclosure provides, mobile terminal are receiving height above sea level determine instruction When, the number for obtaining the signal website around mobile terminal judges to move according to the number of the signal website around mobile terminal Whether terminal, which meets default height above sea level, determines condition, when mobile terminal meets default height above sea level and determines condition, by mobile terminal Barometer determine the first height above sea level of mobile terminal position, and, mobile terminal institute is determined by the GPS in mobile terminal The second height above sea level in position determines final height above sea level based on the first height above sea level and the second height above sea level.Since mobile terminal can determine movement The height above sea level of terminal position, user can determine the height above sea level of itself position according to the height above sea level of mobile terminal position, It is therefore not necessary to solve the problems, such as the higher cost of determining height above sea level using special equipment, the cost of determining height above sea level is reduced.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Referring to FIG. 5, it illustrates a kind of frames of device 500 determined for height above sea level shown in an exemplary embodiment Figure.For example, device 500 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, put down Panel device, Medical Devices, body-building equipment, personal digital assistant etc..
Referring to Fig. 5, device 500 may include following one or more components: processing component 502, memory 504, power supply Component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor module 514 and communication Component 516.
The integrated operation of the usual control device 500 of processing component 502, such as with display, call, data communication, fixed Position, height above sea level determination, camera operation and record operate associated operation.Processing component 502 may include one or more processing Device 520 executes instruction, to complete all or part of the steps that above-mentioned height above sea level determines method.In addition, processing component 502 can wrap One or more modules are included, convenient for the interaction between processing component 502 and other assemblies.For example, processing component 502 may include Multi-media module, to facilitate the interaction between multimedia component 508 and processing component 502.
Memory 504 is configured as storing various types of data to support operation on device 500.These data Example include the instruction for any application or method that operate on device 500, contact data, telephone book data, message, Picture, video etc..Memory 504 can be real by any kind of volatibility or non-volatile memory device or their combination It is existing, such as static random access memory (English: Dynamic Random Access Memory;Referred to as: SRAM), electric erasable Programmable read only memory (English: Electrically Erasable Programmable Read-Only Memory;Letter Claim: EEPROM), Erasable Programmable Read Only Memory EPROM (English: Erasable Programmable Read Only Memory;Referred to as: EPROM), programmable read only memory (English: Programmable Read Only Memory;Referred to as: PROM), read-only memory (English: Read-Only Memory;Referred to as: ROM), magnetic memory, flash memory, disk or light Disk.
Power supply module 506 provides electric power for the various assemblies of device 500.Power supply module 506 may include power management system System, one or more power supply and other with for device 500 generate, manage, and distribute the associated component of electric power.
Multimedia component 508 includes that the screen of an output interface is provided between device 500 and user.In some implementations In example, screen may include liquid crystal display (English: Liquid Crystal Display;Referred to as: LCD) and touch panel (English: Touch Panle;Referred to as: TP).If screen includes touch panel, screen may be implemented as touch screen, to receive Input signal from the user.Touch panel includes one or more touch sensors to sense touch, slide, and touch panel On gesture.Touch sensor can not only sense the boundary of a touch or slide action, but also detect and touch or slide behaviour Make relevant duration and pressure.In some embodiments, multimedia component 508 include a front camera and/or after Set camera.When device 500 is in operation mode, such as in a shooting mode or a video mode, front camera and/or postposition are imaged Head can receive external multi-medium data.Each front camera and rear camera can be a fixed optical lens System has focusing and optical zoom capabilities.
Audio component 510 is configured as output and/or input audio signal.For example, audio component 510 includes a Mike Wind (English: Microphone;Referred to as: MIC), when device 500 is in operation mode, such as call model, logging mode and voice When recognition mode, microphone is configured as receiving external audio signal.The received audio signal can be further stored in Memory 504 is sent via communication component 516.In some embodiments, audio component 510 further includes a loudspeaker, is used In output audio signal.
I/O interface 512 provides interface between processing component 502 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons can include but is not limited to: home button, volume button, start button and Locking press button.
Sensor module 514 includes one or more sensors, and the state for providing various aspects for device 500 is commented Estimate.For example, sensor module 514 can detecte the state that opens/closes of device 500, the relative positioning of component, such as component For the display and keypad of device 500, sensor module 514 can be with the position of 500 1 components of detection device 500 or device Set change, the existence or non-existence that user contacts with device 500, the temperature in 500 orientation of device or acceleration/deceleration and device 500 Variation.Sensor module 514 may include proximity sensor, be configured to detect without any physical contact near The presence of object.Sensor module 514 can also include optical sensor, as complementary metal oxide semiconductor (English: Complementary Metal Oxide Semiconductor;Referred to as: CMOS) or charge coupled cell is (English: Charge- coupled Device;Referred to as: CCD) imaging sensor, for being used in imaging applications.In some embodiments, the sensing Device assembly 514 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 516 is configured to facilitate the communication of wired or wireless way between device 500 and other equipment.Device 500 can access the wireless network based on communication standard, such as Wireless Fidelity (English: WIreless FIdelity;Referred to as: WIFI), 2G, 3G or their combination.In one exemplary embodiment, communication component 516 comes from via broadcast channel reception The broadcast singal or broadcast related information of external broadcasting management system.In one exemplary embodiment, communication component 516 also wraps Include near-field communication (English: Near Field Communication;Referred to as: NFC) module, to promote short range communication.For example, In NFC module can be based on radio frequency identification (English: Radio Frequency Identification;Referred to as: RFID) technology, it is infrared Data association (English: Infrared Data Association;Referred to as: IrDA) technology, ultra wide band (English: Ultra Wideband;Referred to as: UWB) technology, bluetooth (English: Bluetooth;Referred to as: BT) technology and other technologies is realized.
In the exemplary embodiment, device 500 can by one or more application specific integrated circuit (English: Application Specifc Integrated Circuit;Referred to as: ASIC), digital signal processor (English: Digital Signal Processing;Referred to as: DSP), digital signal processing appts (English: Digital Signal Processing Device;Referred to as: DSPD), programmable logic device (English: Programable Logic Device;Referred to as: PLD), live Programmable gate array (English: Field-Programmable Gate Array;Referred to as: FPGA), controller, microcontroller, micro- Processor or other electronic components are realized, determine method for executing above-mentioned height above sea level.
In the exemplary embodiment, a kind of non-transitorycomputer readable storage medium including instruction, example are additionally provided It such as include the memory 504 of instruction, above-metioned instruction can be executed by the processor 520 of device 500 to complete the above-mentioned height above sea level side of determination Method.For example, non-transitorycomputer readable storage medium can be ROM, random access memory (English: Random Access Memory;Referred to as: RAM), laser record read only memory (English: Compact Disk Read-Only Memory;Referred to as: CD-ROM), tape, floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in storage medium is held by the processor of device 500 When row, so that device 500 is able to carry out a kind of height above sea level and determines method, this method comprises:
When receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, signal website is used for Issue network signal;
According to the number of the signal website around mobile terminal, judge whether mobile terminal meets default height above sea level and determine item Part;
If mobile terminal, which meets default height above sea level, determines condition, mobile terminal institute is determined by the barometer in mobile terminal The first height above sea level in position, and, the of mobile terminal position is determined by the global position system GPS in mobile terminal Two height above sea level;
Final height above sea level is determined based on the first height above sea level and the second height above sea level.
In conclusion the height above sea level determining device that the embodiment of the present disclosure provides, mobile terminal are receiving height above sea level determine instruction When, the number for obtaining the signal website around mobile terminal judges to move according to the number of the signal website around mobile terminal Whether terminal, which meets default height above sea level, determines condition, when mobile terminal meets default height above sea level and determines condition, by mobile terminal Barometer determine the first height above sea level of mobile terminal position, and, mobile terminal institute is determined by the GPS in mobile terminal The second height above sea level in position determines final height above sea level based on the first height above sea level and the second height above sea level.Since mobile terminal can determine movement The height above sea level of terminal position, user can determine the height above sea level of itself position according to the height above sea level of mobile terminal position, It is therefore not necessary to solve the problems, such as the higher cost of determining height above sea level using special equipment, the cost of determining height above sea level is reduced.
Term "and/or" in the disclosure, only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds Relationship, for example, A and/or B, can indicate: individualism A exists simultaneously A and B, these three situations of individualism B.In addition, this Character "/" in text typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure Its embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Person's adaptive change follows the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by following Claim is pointed out.
It should be understood that the present disclosure is not limited to the precise structures that have been described above and shown in the drawings, and And various modifications and changes may be made without departing from the scope thereof.The scope of the present disclosure is only limited by the accompanying claims.

Claims (11)

1. a kind of height above sea level determines method, which is characterized in that the described method includes:
When receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, the signal website is used for Issue network signal;
Judge whether the number of the signal website around the mobile terminal is greater than default website number threshold value;
If the number of the signal website around the mobile terminal is greater than the default website number threshold value, it is determined that the movement Terminal meets default height above sea level and determines condition;
The atmospheric pressure value of the mobile terminal position is determined by the barometer in the mobile terminal;
According to the location information of the mobile terminal, the sea-level pressure of the mobile terminal position is obtained from server Value;
Determine the gas of the atmospheric pressure value of the mobile terminal position and the sea-level pressure value of the mobile terminal position Pressure difference;
According to the relationship and the draught head of draught head and height above sea level, the first height above sea level of the mobile terminal position is determined;
The second height above sea level of the mobile terminal position is determined by the global position system GPS in the mobile terminal;
The precision of second height above sea level is determined based on the barometer;
Judge whether the precision of second height above sea level meets default height above sea level precision conditions;
If the precision of second height above sea level meets the default height above sea level precision conditions, second height above sea level is determined as final sea It pulls out;
If the precision of second height above sea level is unsatisfactory for the default height above sea level precision conditions, first height above sea level is determined as finally Height above sea level.
2. the method according to claim 1, wherein the method also includes:
If the number of the signal website around the mobile terminal is not more than the default website number threshold value, it is determined that the shifting Dynamic terminal is unsatisfactory for default height above sea level and determines condition, determines the mobile terminal position by the GPS in the mobile terminal Final height above sea level.
3. the method according to claim 1, wherein the location information according to the mobile terminal, from clothes Business device obtains the sea-level pressure value of the mobile terminal position, comprising:
Generate the inquiry request of the location information including the mobile terminal;
The inquiry request is sent to server;
The inquiry response that the server is sent is received, the inquiry response includes sea corresponding with the position of the mobile terminal Plane atmospheric pressure value;
By sea-level pressure value corresponding with the location information of the mobile terminal, it is determined as the mobile terminal position Sea-level pressure value.
4. the method according to claim 1, wherein described when receiving height above sea level determine instruction, acquisition movement The number of the signal website of terminal surrounding, comprising:
When receiving height above sea level determine instruction, the movement of signal station scans is executed, the signal website around mobile terminal is obtained Number.
5. method according to any one of claims 1 to 4, which is characterized in that the signal website includes: Wireless Fidelity WIFI Any one in hot spot and base station.
6. a kind of height above sea level determining device, which is characterized in that described device includes:
Module is obtained, is configured as when receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, The signal website is for issuing network signal;
Judgment module, is configured as judging whether the number of the signal website around the mobile terminal is greater than default website number Threshold value, if the number of the signal website around the mobile terminal is greater than the default website number threshold value, it is determined that the shifting Dynamic terminal meets default height above sea level and determines condition;
First determining module is configured as determining the mobile terminal position by the barometer in the mobile terminal Atmospheric pressure value obtains the sea level gas of the mobile terminal position from server according to the location information of the mobile terminal Pressure value determines the gas of the atmospheric pressure value of the mobile terminal position and the sea-level pressure value of the mobile terminal position Pressure difference determines the first height above sea level of the mobile terminal position according to the relationship and the draught head of draught head and height above sea level, And the second height above sea level of the mobile terminal position is determined by the global position system GPS in the mobile terminal;
Second determining module is configured as determining the precision of second height above sea level based on the barometer, judges second sea Whether the precision pulled out meets default height above sea level precision conditions, if the precision of second height above sea level meets the default height above sea level precision item Second height above sea level is then determined as final height above sea level by part;If the precision of second height above sea level is unsatisfactory for the default height above sea level precision First height above sea level is then determined as final height above sea level by condition.
7. device according to claim 6, which is characterized in that described device further include:
Third determining module, if the number for the signal website being configured as around the mobile terminal is not more than the default website Number threshold value, it is determined that the mobile terminal is unsatisfactory for default height above sea level and determines condition, is determined by the GPS in the mobile terminal The final height above sea level of the mobile terminal position.
8. device according to claim 6, which is characterized in that the acquisition submodule, comprising:
Generation unit is configurable to generate the inquiry request of the location information including the mobile terminal;
Transmission unit is configured as sending the inquiry request to server;
Receiving unit is configured as receiving the inquiry response that the server is sent, and the inquiry response includes and the movement The corresponding sea-level pressure value of the location information of terminal;
Determination unit is configured as sea-level pressure value corresponding with the location information of the mobile terminal being determined as described The sea-level pressure value of mobile terminal position.
9. device according to claim 6, which is characterized in that
The acquisition module is configured as when receiving height above sea level determine instruction, is executed the movement of signal station scans, is moved The number of the signal website of terminal surrounding.
10. according to any device of claim 6 to 9, which is characterized in that the signal website includes: Wireless Fidelity Any one in WIFI hot spot and base station.
11. a kind of height above sea level determining device, which is characterized in that described device includes:
Processor;
For storing the memory of the executable instruction of the processor;
Wherein, the processor is configured to:
When receiving height above sea level determine instruction, the number of the signal website around mobile terminal is obtained, the signal website is used for Issue network signal;
Judge whether the number of the signal website around the mobile terminal is greater than default website number threshold value;
If the number of the signal website around the mobile terminal is greater than the default website number threshold value, it is determined that the movement Terminal meets default height above sea level and determines condition;
The atmospheric pressure value of the mobile terminal position is determined by the barometer in the mobile terminal;
According to the location information of the mobile terminal, the sea-level pressure of the mobile terminal position is obtained from server Value;
Determine the gas of the atmospheric pressure value of the mobile terminal position and the sea-level pressure value of the mobile terminal position Pressure difference;
According to the relationship and the draught head of draught head and height above sea level, the first height above sea level of the mobile terminal position is determined;
The second height above sea level of the mobile terminal position is determined by the global position system GPS in the mobile terminal;
The precision of second height above sea level is determined based on the barometer;
Judge whether the precision of second height above sea level meets default height above sea level precision conditions;
If the precision of second height above sea level meets the default height above sea level precision conditions, second height above sea level is determined as final sea It pulls out;
If the precision of second height above sea level is unsatisfactory for the default height above sea level precision conditions, first height above sea level is determined as finally Height above sea level.
CN201611184684.0A 2016-12-20 2016-12-20 Height above sea level determines method and device Active CN106597502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611184684.0A CN106597502B (en) 2016-12-20 2016-12-20 Height above sea level determines method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611184684.0A CN106597502B (en) 2016-12-20 2016-12-20 Height above sea level determines method and device

Publications (2)

Publication Number Publication Date
CN106597502A CN106597502A (en) 2017-04-26
CN106597502B true CN106597502B (en) 2019-10-29

Family

ID=58599898

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611184684.0A Active CN106597502B (en) 2016-12-20 2016-12-20 Height above sea level determines method and device

Country Status (1)

Country Link
CN (1) CN106597502B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107395896A (en) * 2017-08-23 2017-11-24 惠州Tcl移动通信有限公司 A kind of mobile terminal sends method, storage device and the mobile terminal of location information
WO2019226225A1 (en) * 2018-05-24 2019-11-28 Nextnav, Llc Systems and methods for sensor calibration and location determination
US11073441B2 (en) 2018-05-24 2021-07-27 Nextnav, Llc Systems and methods for determining when to calibrate a pressure sensor of a mobile device
CN109141354B (en) * 2018-07-18 2021-08-17 奇酷互联网络科技(深圳)有限公司 Method and device for detecting altitude or water depth based on mobile terminal screen
CN113703007A (en) * 2020-05-21 2021-11-26 比亚迪股份有限公司 Altitude data monitoring and displaying method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023000A (en) * 2010-09-30 2011-04-20 清华大学 Method for measuring height by fusing unmanned helicopter barometric altimeter and GPS (global positioning system)
JP2012211915A (en) * 2012-06-15 2012-11-01 Casio Comput Co Ltd Mobile display device, and program
CN103370601A (en) * 2011-02-18 2013-10-23 索尼爱立信移动通讯有限公司 System and method for determining altitude
CN103796158A (en) * 2014-01-17 2014-05-14 广州中道电子科技有限公司 Method and system for judging whether electronic equipment is used out of scope and electronic equipment
KR101454003B1 (en) * 2014-04-17 2014-10-27 케이아이씨시스템즈 (주) System for real-time measuring 3d location information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5285650B2 (en) * 2010-03-31 2013-09-11 株式会社ゼンリンデータコム Information providing system, advanced information acquisition system, advanced information acquisition device, and program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102023000A (en) * 2010-09-30 2011-04-20 清华大学 Method for measuring height by fusing unmanned helicopter barometric altimeter and GPS (global positioning system)
CN103370601A (en) * 2011-02-18 2013-10-23 索尼爱立信移动通讯有限公司 System and method for determining altitude
JP2012211915A (en) * 2012-06-15 2012-11-01 Casio Comput Co Ltd Mobile display device, and program
CN103796158A (en) * 2014-01-17 2014-05-14 广州中道电子科技有限公司 Method and system for judging whether electronic equipment is used out of scope and electronic equipment
KR101454003B1 (en) * 2014-04-17 2014-10-27 케이아이씨시스템즈 (주) System for real-time measuring 3d location information

Also Published As

Publication number Publication date
CN106597502A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106597502B (en) Height above sea level determines method and device
US9654942B2 (en) System for and method of transmitting communication information
CN106973330B (en) Screen live broadcasting method, device and system
US10334282B2 (en) Methods and devices for live broadcasting based on live broadcasting application
CN104023121A (en) Mode switching method and device
CN103024182B (en) Method and device which enter into photo album interface from shoot interface of mobile terminal
CN108307106B (en) Image processing method and device and mobile terminal
CN110691268B (en) Message sending method, device, server, mobile terminal and storage medium
CN104615655A (en) Information recommendation method and device
CN104301308B (en) Call control method and device
KR20150009186A (en) Method for operating an conversation service based on messenger, An user interface and An electronic device supporting the same
CN105898573B (en) Multimedia file playing method and device
CN107423386B (en) Method and device for generating electronic card
JP2017519462A (en) Number marking method, apparatus, program, and recording medium
CN105100197B (en) The method and device of application is installed
US20180088664A1 (en) Method and device for switching environment picture
KR20150044830A (en) Mobile apparatus and wearable apparatus for displaying information, and methods thereof
CN109104564B (en) Shooting prompting method and terminal equipment
CN107239184B (en) Touch screen touch device and method and mobile terminal
CN111343714B (en) Terminal positioning method and device, electronic equipment and storage medium
CN110929159B (en) Resource release method, device, equipment and medium
CN105516457A (en) Communication message processing method and apparatus
CN105491518A (en) Method and device for social reminding based on wearable devices
US20170034347A1 (en) Method and device for state notification and computer-readable storage medium
CN106101464A (en) Number mark method and device

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