CN105163373B - A kind of localization method and mobile terminal - Google Patents
A kind of localization method and mobile terminal Download PDFInfo
- Publication number
- CN105163373B CN105163373B CN201510407986.9A CN201510407986A CN105163373B CN 105163373 B CN105163373 B CN 105163373B CN 201510407986 A CN201510407986 A CN 201510407986A CN 105163373 B CN105163373 B CN 105163373B
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- gps
- satellite
- currently
- satellite information
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 26
- 230000004807 localization Effects 0.000 title claims abstract description 12
- 238000005516 engineering process Methods 0.000 claims abstract description 77
- 238000001514 detection method Methods 0.000 claims abstract description 20
- 238000004590 computer program Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 5
- 238000012827 research and development Methods 0.000 description 4
- 238000013500 data storage Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 210000004209 hair Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Position Fixing By Use Of Radio Waves (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention discloses a kind of localization method and mobile terminal, this method can include: whether mobile terminal detection is current is in indoor environment;When detecting that the mobile terminal is currently at indoor environment, and when the mobile terminal is currently had using global position system GPS, the mobile terminal closes the GPS;The mobile terminal is positioned using the one or more location technology in addition to the GPS that the mobile terminal is supported.The embodiment of the present invention can save the power consumption of mobile terminal.
Description
Technical field
The present invention relates to field of terminal more particularly to a kind of localization methods and mobile terminal.
Background technique
Location based service (Location Based Service, LBS) is extremely important skill in current mobile terminal
Art, and currently based on LBS developed application be it is innumerable, answered from amusement and recreation to service for life, then to social activity
With etc..It can be said that LBS plays important role in all trades and professions.However, location technology mainly has entirely in LBS at present
Ball positioning system (Global Positioning System, GPS) location technology, network location technology and base station location technology
Deng.However, at present mobile terminal often all simultaneously support a variety of location technologies, such as: mobile phone can support GPS positioning technology,
Network location technology and base station location technology.And mobile terminal is all often to be combined to determine using multinomial location technology simultaneously
Position, but the accuracy that different location technologies position in various positions in practical applications is discrepant, such as: some are fixed
Position technology can not be positioned in specific position.Mobile terminal is combined positioning using multinomial location technology always in this way, just
It, in this way can not using this in the presence of the location technology that can not be positioned in this multinomial location technology when easily occurring in specific position
The location technology positioned will cause additional power consumption to mobile terminal.
Summary of the invention
The embodiment of the invention provides a kind of localization method and mobile terminals, can save the power consumption of mobile terminal.
In a first aspect, the embodiment of the present invention provides a kind of localization method, comprising:
Whether mobile terminal detection is current is in indoor environment;
When detecting that the mobile terminal is currently at indoor environment, and the mobile terminal currently has using global fixed
When the system GPS of position, the mobile terminal closes the GPS;
The one or more location technology in addition to the GPS that the mobile terminal is supported using the mobile terminal
It is positioned.
Wherein, the method also includes:
It is described mobile whole when the mobile terminal detects that the mobile terminal moving distance is greater than pre-determined distance threshold value
The GPS is opened at end, and judges currently whether be in outdoor environment, if so, being positioned using the GPS, and closes institute
State the location technology in addition to the GPS of mobile terminal support.
Wherein, mobile terminal judgement it is current whether in outdoor environment include:
The mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges the satellite letter of N number of satellite
Whether breath changes, if the satellite information of the multiple satellite changes there are the satellite information of at least one satellite,
Judge whether the signal strength of the changed satellite information is respectively less than preset strength threshold value, if not, it is determined that the shifting
Dynamic terminal is currently at outdoor environment.
Wherein, whether the mobile terminal judgement currently further comprises in outdoor environment:
If the satellite information of the multiple satellite does not change, it is determined that the mobile terminal is currently at interior
Environment.
Wherein, whether the mobile terminal judgement currently further comprises in outdoor environment:
When judging that the signal strength of the changed satellite information is respectively less than preset strength threshold value, the generation is judged
Whether the quantity of the corresponding satellite of the satellite information of variation is less than default satellite threshold value, if so, determining that the mobile terminal is worked as
It is preceding to be in indoor environment.
Second aspect, the embodiment of the present invention provide a kind of mobile terminal, comprising: detection unit, closing unit and first are fixed
Bit location, in which:
The detection unit, for whether detecting the mobile terminal currently in indoor environment;
The closing unit, for when detecting that the mobile terminal is currently at indoor environment, and it is described it is mobile eventually
When end is currently had using global position system GPS, the GPS is closed;
First positioning unit, one in addition to the GPS or more for being supported using the mobile terminal
Item location technology is positioned.
Wherein, the mobile terminal further include:
Judging unit, for detecting that the mobile terminal moving distance is greater than pre-determined distance threshold value when the mobile terminal
When, it is described to open the GPS, and judge the mobile terminal currently whether in outdoor environment;
Second positioning unit, if when for judging that the mobile terminal is currently at outdoor environment, being carried out using the GPS
Positioning, and close the location technology in addition to the GPS that the mobile terminal is supported.
Wherein, the judging unit is used to preset when the mobile terminal detects that the mobile terminal moving distance is greater than
It is described to open the GPS when distance threshold, and input to the GPS satellite information of multiple satellites, and judge described N number of defend
Whether the satellite information of star changes, if there are the satellite information of at least one satellite hairs for the satellite information of the multiple satellite
When changing, judge whether the signal strength of the changed satellite information is respectively less than preset strength threshold value, if it is not, then really
The fixed mobile terminal is currently at outdoor environment.
Wherein, if the satellite information that the judging unit is also used to the multiple satellite does not change, it is determined that
The mobile terminal is currently at indoor environment.
Wherein, it is default to be also used to judge that the signal strength of the changed satellite information is respectively less than for the judging unit
When intensity threshold, judge whether the quantity of the corresponding satellite of the changed satellite information is less than default satellite threshold value, if
It is, it is determined that the mobile terminal is currently at indoor environment.
In above-mentioned technical proposal, whether mobile terminal detection is current is in indoor environment;When detecting the mobile terminal
When being currently at indoor environment, and when the mobile terminal is currently had using global position system GPS, the mobile terminal is closed
The GPS;The one or more location technology in addition to the GPS that the mobile terminal is supported using the mobile terminal
It is positioned.It is may be implemented in this way to close GPS when indoor environment, because GPS can not be positioned in environment indoors, from
And mobile terminal is positioned using multiple location technologies including GPS of support always compared with prior art, the present invention
Embodiment can save the power consumption of mobile terminal.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of localization method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another localization method provided in an embodiment of the present invention;
Fig. 3 is that a kind of outdoor environment provided in an embodiment of the present invention judges schematic diagram;
Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of localization method provided in an embodiment of the present invention, as shown in Figure 1,
The following steps are included:
101, whether mobile terminal detection is current is in indoor environment.
Wherein, mobile terminal can detect whether mobile terminal is currently in indoor environment by location information, such as: it moves
When dynamic terminal detects that current position is office or family, so that it may which determination is currently at indoor environment.Or it is mobile
Terminal can detect whether mobile terminal is currently in indoor environment by GPS.
102, when detecting that the mobile terminal is currently at indoor environment, and the mobile terminal currently has use
When GPS, the mobile terminal closes the GPS.
Wherein, it is above-mentioned currently have can be understood as current GPS using GPS and be in an open state, thus may be implemented when moving
When dynamic terminal is in indoor environment, GPS is closed.It, thus can be to avoid because GPS can not be positioned in environment indoors
Open GPS but GPS can not be positioned and caused by power consumption penalty.
103, the one or more location technology in addition to the GPS that mobile terminal is supported using the mobile terminal
It is positioned.
Wherein, mobile terminal can be is positioned using one of network location technology and base station location technology or two kinds
Technology is positioned.Certainly, in step 103 limit be one of network location technology and base station location technology or
Two kinds of location technologies of person, step 103 can also be any location technology that the mobile terminal of subsequent research and development can be supported.
In the present embodiment, above-mentioned mobile terminal can be any mobile terminal for supporting GPS positioning technology, such as: mobile phone,
Any support GPS positioning technology such as tablet computer, electronic reader, remote controler, laptop, mobile unit wearable device
Mobile terminal.
In the present embodiment, whether mobile terminal detection is current is in indoor environment;When detecting that the mobile terminal is current
When in indoor environment, and when the mobile terminal is currently had using global position system GPS, described in the mobile terminal is closed
GPS;The mobile terminal is carried out using the one or more location technology in addition to the GPS that the mobile terminal is supported
Positioning.It is may be implemented in this way to close GPS when indoor environment, because GPS can not be positioned in environment indoors, thus phase
It is positioned using multiple location technologies including GPS of support always than prior art mobile terminal, the present invention is implemented
Example can save the power consumption of mobile terminal.
Referring to Fig. 2, Fig. 2 is the flow diagram of another localization method provided in an embodiment of the present invention, such as Fig. 2 institute
Show, comprising the following steps:
201, whether mobile terminal detection is current is in indoor environment.
Wherein, mobile terminal can detect whether mobile terminal is currently in indoor environment by location information, such as: it moves
When dynamic terminal detects that current position is office or family, so that it may which determination is currently at indoor environment.Or it is mobile
Terminal can detect whether mobile terminal is currently in indoor environment by GPS.
Wherein, whether detect mobile terminal currently by GPS may include steps of in indoor environment:
Mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges that the satellite information of N number of satellite is
It is no to change, if the satellite information of the multiple satellite does not change, it is determined that the mobile terminal is currently at
Indoor environment;
If the satellite information of the multiple satellite changes there are the satellite information of at least one satellite, described in judgement
Whether the signal strength of changed satellite information is respectively less than preset strength threshold value, if the changed satellite information
When signal strength is respectively less than preset strength threshold value, judge whether the quantity of the corresponding satellite of the changed satellite information is small
In default satellite threshold value, if so, determining that the mobile terminal is currently at indoor environment.
Certainly, if there are at least one to be not less than preset strength threshold in the signal strength of the changed satellite information
When value, then it can determine that the mobile terminal is currently at outdoor environment.
Alternatively, if when the signal strength of the changed satellite information is respectively less than preset strength threshold value, described in judgement
When the quantity of the corresponding satellite of changed satellite information is not less than default satellite threshold value, then the mobile terminal can be determined
It is currently at outdoor environment.
If in, above-mentioned satellite information may include signal strength, either can also include title or mark of satellite etc.
Information.
In addition, as shown in figure 3, above by GPS detection mobile terminal currently whether in indoor environment may include as
Lower step:
1), setting initializing variable (STimer) is 0;
2), each satellite information is inputted to GPS;
3), judge whether satellite information does not change, if it is, entering step 5), otherwise, then enter step 4);
4), judge whether signal strength (CN) value of GPS satellite is both less than first given threshold value (MIN_VALUE), and
Whether changed number of satellites is less than the minimum satellite vehicle number (MIN_NUM) of setting, if so, entering step 5), otherwise, then
It enters step 7);
5), by variable (STimer) plus 1, and whether judgment variable (STimer) current value is greater than the maximum value of setting
(MAX_NUM), if so, thening follow the steps 6);
6) it, determines and is currently at indoor environment (such as: returning True), and terminate;Otherwise, it enters step 2);
7), determination is currently at outdoor environment, and sets 0 for variable (STimer), furthermore it is also possible to enter step
2)。
202, when detecting that the mobile terminal is currently at indoor environment, and the mobile terminal currently has using complete
When ball position system GPS, the mobile terminal closes the GPS.
Wherein, it is above-mentioned currently have can be understood as current GPS using GPS and be in an open state, thus may be implemented when moving
When dynamic terminal is in indoor environment, GPS is closed.It, thus can be to avoid because GPS can not be positioned in environment indoors
Open GPS but GPS can not be positioned and caused by power consumption penalty.
203, the mobile terminal is positioned using the one or more in addition to the GPS that the mobile terminal is supported
Technology is positioned.
Wherein, mobile terminal can be is positioned using one of network location technology and base station location technology or two kinds
Technology is positioned.Certainly, in step 203 limit be one of network location technology and base station location technology or
Two kinds of location technologies of person, step 203 can also be any location technology that the mobile terminal of subsequent research and development can be supported.
204, when the mobile terminal detects that the mobile terminal moving distance is greater than pre-determined distance threshold value, the shifting
Dynamic terminal opens the GPS, and judges currently whether be in outdoor environment, if so, 205 are thened follow the steps, if it is not, can then hold
Row step 206.
Wherein, mobile terminal can detect that the mobile terminal moving distance is greater than pre-determined distance threshold by location technology
Value or mobile terminal can detect that the mobile terminal moving distance is greater than pre-determined distance threshold value, example by sports applications
Such as: detecting that the mobile terminal moving distance is greater than pre-determined distance threshold value by the application of record exercise data.
In addition, step 204 can also be after opening the GPS in the present embodiment, in preset time T, judgement is current
Whether outdoor environment is in, if so, thening follow the steps 205.If when the preset time T is not judged in outdoor environment,
Step 206 can then be executed.Because ought not judge that mobile terminal is currently at outdoor environment within a certain period of time, then,
It just needs to close GPS, causes power consumption penalty to avoid GPS.
In the present embodiment, above-mentioned mobile terminal judgement current the step of whether being in outdoor environment, may include:
Mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges that the satellite information of N number of satellite is
It is no to change, if the satellite information of the multiple satellite changes there are the satellite information of at least one satellite, judgement
Whether the signal strength of the changed satellite information is respectively less than preset strength threshold value, if not, it is determined that described mobile whole
End is currently at outdoor environment.
Wherein, above-mentioned satellite information, which changes, can be understood as mobile terminal satellite can detecte movement when moving
The movement of terminal, so that the variation of satellite information occur.
In addition, above-mentioned mobile terminal judgement current the step of whether being in outdoor environment, further can also include:
If the satellite information of the multiple satellite does not change, it is determined that the mobile terminal is currently at interior
Environment.
In addition, above-mentioned mobile terminal judgement current the step of whether being in outdoor environment, further can also include:
When judging that the signal strength of the changed satellite information is respectively less than preset strength threshold value, the generation is judged
Whether the quantity of the corresponding satellite of the satellite information of variation is less than default satellite threshold value, if so, determining that the mobile terminal is worked as
It is preceding to be in indoor environment.
It, can be with if judge that the quantity of the corresponding satellite of the changed satellite information is not less than default satellite threshold value
Determine that mobile terminal is currently at outdoor environment.Such as: the quantity of the corresponding satellite of changed satellite information is not less than 3
When, then it can determine that the mobile terminal is currently at outdoor environment.
205, it is positioned using the GPS, and closes the positioning skill in addition to the GPS that the mobile terminal is supported
Art.
206, the GPS is closed.
In addition, in the present embodiment the positioning track that mobile terminal uses GPS can also be counted in advance, which can
To indicate which position GPS having been used to carry out position in front of mobile terminal, in this way when detecting that mobile terminal is in these positions
When setting, so that it may determine that these positions are outdoor location, or directly open GPS and positioned.
In the present embodiment, the embodiment of plurality of optional is increased on the basis of embodiment shown in Fig. 1, and is ok
Realize the power consumption for saving mobile terminal.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is for executing embodiment of the present invention method one to two
The method of realization, for ease of description, only parts related to embodiments of the present invention are shown, and particular technique details does not disclose
, please refer to the embodiment of the present invention one and embodiment two.
Referring to Fig. 4, Fig. 4 is a kind of structural schematic diagram of mobile terminal provided in an embodiment of the present invention, as shown in figure 4,
It include: detection unit 41, closing unit 42 and the first positioning unit 43, in which:
Detection unit 41, for whether detecting the mobile terminal currently in indoor environment.
Wherein, mobile terminal can detect whether mobile terminal is currently in indoor environment by location information, such as: it moves
When dynamic terminal detects that current position is office or family, so that it may which determination is currently at indoor environment.Or it is mobile
Terminal can detect whether mobile terminal is currently in indoor environment by GPS.
Closing unit 42, for when detecting that the mobile terminal is currently at indoor environment, and the mobile terminal
When currently having using global position system GPS, the GPS is closed.
Wherein, it is above-mentioned currently have can be understood as current GPS using GPS and be in an open state, thus may be implemented when moving
When dynamic terminal is in indoor environment, GPS is closed.It, thus can be to avoid because GPS can not be positioned in environment indoors
Open GPS but GPS can not be positioned and caused by power consumption penalty.
First positioning unit 43, the one or more in addition to the GPS for being supported using the mobile terminal
Location technology is positioned.
Wherein, mobile terminal can be is positioned using one of network location technology and base station location technology or two kinds
Technology is positioned.Certainly, not limiting in the first positioning unit 43 is in network location technology and base station location technology
One or two kinds of location technology, it is any that the first positioning unit 43 can also be that the mobile terminal of subsequent research and development can be supported
Location technology.
In the present embodiment, above-mentioned mobile terminal can be any mobile terminal for supporting GPS positioning technology, such as: mobile phone,
Any support GPS positioning technology such as tablet computer, electronic reader, remote controler, laptop, mobile unit wearable device
Mobile terminal.
In the present embodiment, whether mobile terminal detection is current is in indoor environment;When detecting that the mobile terminal is current
When in indoor environment, and when the mobile terminal is currently had using global position system GPS, described in the mobile terminal is closed
GPS;The mobile terminal is carried out using the one or more location technology in addition to the GPS that the mobile terminal is supported
Positioning.It is may be implemented in this way to close GPS when indoor environment, because GPS can not be positioned in environment indoors, thus phase
It is positioned using multiple location technologies including GPS of support always than prior art mobile terminal, the present invention is implemented
Example can save the power consumption of mobile terminal.
Referring to Fig. 5, Fig. 5 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention, such as Fig. 5 institute
Show, comprising: detection unit 51, closing unit 52, the first positioning unit 53, judging unit 54 and the second positioning unit 55, in which:
Detection unit 51, for whether detecting the mobile terminal currently in indoor environment.
Wherein, mobile terminal can detect whether mobile terminal is currently in indoor environment by location information, such as: it moves
When dynamic terminal detects that current position is office or family, so that it may which determination is currently at indoor environment.Or it is mobile
Terminal can detect whether mobile terminal is currently in indoor environment by GPS.
Wherein, whether detect mobile terminal currently by GPS may include steps of in indoor environment:
Mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges that the satellite information of N number of satellite is
It is no to change, if the satellite information of the multiple satellite does not change, it is determined that the mobile terminal is currently at
Indoor environment;
If the satellite information of the multiple satellite changes there are the satellite information of at least one satellite, described in judgement
Whether the signal strength of changed satellite information is respectively less than preset strength threshold value, if the changed satellite information
When signal strength is respectively less than preset strength threshold value, judge whether the quantity of the corresponding satellite of the changed satellite information is small
In default satellite threshold value, if so, determining that the mobile terminal is currently at indoor environment.
Certainly, if there are at least one to be not less than preset strength threshold in the signal strength of the changed satellite information
When value, then it can determine that the mobile terminal is currently at outdoor environment.
Alternatively, if when the signal strength of the changed satellite information is respectively less than preset strength threshold value, described in judgement
When the quantity of the corresponding satellite of changed satellite information is not less than default satellite threshold value, then the mobile terminal can be determined
It is currently at outdoor environment.
If in, above-mentioned satellite information may include signal strength, either can also include title or mark of satellite etc.
Information.
In addition, as shown in figure 3, above by GPS detection mobile terminal currently whether in indoor environment may include as
Lower step:
1), setting initializing variable (STimer) is 0;
2), each satellite information is inputted to GPS;
3), judge whether satellite information does not change, if it is, entering step 5), otherwise, then enter step 4);
4), judge whether signal strength (CN) value of GPS satellite is both less than first given threshold value (MIN_VALUE), and
Whether changed number of satellites is less than the minimum satellite vehicle number (MIN_NUM) of setting, if so, entering step 5), otherwise, then
It enters step 6);
5), by variable (STimer) plus 1, and whether judgment variable (STimer) current value is greater than the maximum value of setting
(MAX_NUM), it is currently at indoor environment (such as: returning True) if it is, determining, and terminated;Otherwise, it enters step
2);
6), determination is currently at outdoor environment, and sets 0 for variable (STimer), furthermore it is also possible to enter step
2)。
Closing unit 22, for when detecting that the mobile terminal is currently at indoor environment, and the mobile terminal
When currently having using global position system GPS, the GPS is closed.
Wherein, it is above-mentioned currently have can be understood as current GPS using GPS and be in an open state, thus may be implemented when moving
When dynamic terminal is in indoor environment, GPS is closed.It, thus can be to avoid because GPS can not be positioned in environment indoors
Open GPS but GPS can not be positioned and caused by power consumption penalty.
First positioning unit 53, the one or more in addition to the GPS for being supported using the mobile terminal
Location technology is positioned.
Wherein, mobile terminal can be is positioned using one of network location technology and base station location technology or two kinds
Technology is positioned.Certainly, not limiting in the first positioning unit 53 is in network location technology and base station location technology
One or two kinds of location technology, it is any that the first positioning unit 53 can also be that the mobile terminal of subsequent research and development can be supported
Location technology.
Judging unit 54, for detecting that the mobile terminal moving distance is greater than pre-determined distance threshold when the mobile terminal
It is described to open the GPS when value, and judge the mobile terminal currently whether in outdoor environment;
Second positioning unit 55, if when for judging that the mobile terminal is currently at outdoor environment, using the GPS into
Row positioning, and close the location technology in addition to the GPS that the mobile terminal is supported.
Wherein, mobile terminal can detect that the mobile terminal moving distance is greater than pre-determined distance threshold by location technology
Value or mobile terminal can detect that the mobile terminal moving distance is greater than pre-determined distance threshold value, example by sports applications
Such as: detecting that the mobile terminal moving distance is greater than pre-determined distance threshold value by the application of record exercise data.
In addition, judging unit 54 can also be after opening the GPS in the present embodiment, and in preset time T, judgement
It is current whether to be in outdoor environment, if so, the second positioning unit 55 is positioned using the GPS, and close the movement
The location technology in addition to the GPS that terminal is supported.If when the preset time T is not judged in outdoor environment,
Close GPS.Because ought not judge that mobile terminal is currently at outdoor environment within a certain period of time, then, it is necessary to it closes
GPS causes power consumption penalty to avoid GPS.
In the present embodiment, judging unit 54 can be used for detecting the mobile terminal moving distance when the mobile terminal
It is described to open the GPS when greater than pre-determined distance threshold value, and the satellite information of multiple satellites is inputted to the GPS, and judge institute
Whether the satellite information for stating N number of satellite changes, if the satellite information of the multiple satellite defending there are at least one satellite
When star information changes, judge whether the signal strength of the changed satellite information is respectively less than preset strength threshold value,
If not, it is determined that the mobile terminal is currently at outdoor environment.
Wherein, above-mentioned satellite information, which changes, can be understood as mobile terminal satellite can detecte movement when moving
The movement of terminal, so that the variation of satellite information occur.
In addition, when if the satellite information that judging unit 54 can be also used for the multiple satellite does not change, really
The fixed mobile terminal is currently at indoor environment.
In addition, judging unit 54 can be also used for judging that the signal strength of the changed satellite information is respectively less than pre-
If when intensity threshold, judging whether the quantity of the corresponding satellite of the changed satellite information is less than default satellite threshold value,
If so, determining that the mobile terminal is currently at indoor environment.
It, can be with if judge that the quantity of the corresponding satellite of the changed satellite information is not less than default satellite threshold value
Determine that mobile terminal is currently at outdoor environment.Such as: the quantity of the corresponding satellite of changed satellite information is not less than 3
When, then it can determine that the mobile terminal is currently at outdoor environment.
In addition, in the present embodiment the positioning track that mobile terminal uses GPS can also be counted in advance, which can
To indicate which position GPS having been used to carry out position in front of mobile terminal, in this way when detecting that mobile terminal is in these positions
When setting, so that it may determine that these positions are outdoor location, or directly open GPS and positioned.
In the present embodiment, the embodiment of plurality of optional is increased on the basis of embodiment shown in Fig. 4, and is ok
Realize the power consumption for saving mobile terminal.
Referring to Fig. 6, Fig. 6 is the structural schematic diagram of another mobile terminal provided in an embodiment of the present invention, for executing
Above-mentioned localization method.As shown in fig. 6, the terminal that is used for may include: at least one processor 100, at least one input
Device 200, at least one output device 300, the equal components of memory 500.Wherein, these components pass through one or more bus
400 are communicatively coupled.It will be understood by those skilled in the art that the structure of terminal shown in Fig. 6 is not constituted to the present invention
The restriction of embodiment, it is also possible to hub-and-spoke configuration either busbar network, can also include more more or less than illustrating
Component, perhaps combine certain components or different component layouts.Wherein:
Processor 100 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, is led to
It crosses operation or executes the program and/or module being stored in memory 500, and call the data being stored in memory 500,
To execute the various functions and processing data of terminal.Processor 100 can be by integrated circuit (Integrated Circuit, letter
Claim IC) composition, such as can be made of the IC of single encapsulation, it can also be by the envelope of more identical functions of connection or different function
It fills IC and forms.For example, processor 100 can only include central processing unit (Central Processing Unit, letter
Claim CPU), it is also possible to CPU, digital signal processor (digital signal processor, abbreviation DSP), graphics process
The combination of device (Graphic Processing Unit, abbreviation GPU) and various control chips.In embodiments of the present invention,
CPU can be single operation core, also may include multioperation core.
Input unit 200 may include touch screen, keyboard, camera of standard etc., also may include wireline interface, wireless
Interface etc..
Output device 300 may include display screen, loudspeaker etc., also may include wireline interface, wireless interface etc..
Memory 500 can be used for storing software program and module, processor 100, input unit 200 and output device
300 by calling the software programs and module that are stored in memory 500, thereby executing terminal various function applications and
Realize data processing.Memory 500 mainly includes program storage area and data storage area, wherein program storage area can store behaviour
Application program needed for making system, at least one function etc.;Data storage area, which can be stored, uses created number according to terminal
According to etc..In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc..
Specifically, processor 100 calls the application program being stored in memory 500, for executing following steps:
Whether detection is current is in indoor environment;
When detecting that the mobile terminal is currently at indoor environment, and the mobile terminal currently has using global fixed
When the system GPS of position, the GPS is closed;
It is positioned using the one or more location technology in addition to the GPS that the mobile terminal is supported.
In the present embodiment, processor 100 execute the step of can also include:
It is described mobile whole when the mobile terminal detects that the mobile terminal moving distance is greater than pre-determined distance threshold value
The GPS is opened at end, and judges currently whether be in outdoor environment, if so, being positioned using the GPS, and closes institute
State the location technology in addition to the GPS of mobile terminal support.
In the present embodiment, processor 100 execute judgement currently whether be in outdoor environment the step of may include:
The mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges the satellite letter of N number of satellite
Whether breath changes, if the satellite information of the multiple satellite changes there are the satellite information of at least one satellite,
Judge whether the signal strength of the changed satellite information is respectively less than preset strength threshold value, if not, it is determined that the shifting
Dynamic terminal is currently at outdoor environment.
In the present embodiment, the step of whether judgement that processor 100 executes currently is in outdoor environment, further can be with
Include:
If the satellite information of the multiple satellite does not change, it is determined that the mobile terminal is currently at interior
Environment.
In the present embodiment, the step of whether judgement that processor 100 executes currently is in outdoor environment, further can be with
Include:
When judging that the signal strength of the changed satellite information is respectively less than preset strength threshold value, the generation is judged
Whether the quantity of the corresponding satellite of the satellite information of variation is less than default satellite threshold value, if so, determining that the mobile terminal is worked as
It is preceding to be in indoor environment.
In the present embodiment, above-mentioned mobile terminal can be any mobile terminal for supporting GPS positioning technology, such as: mobile phone,
Any support GPS positioning technology such as tablet computer, electronic reader, remote controler, laptop, mobile unit wearable device
Mobile terminal.
In the present embodiment, whether mobile terminal detection is current is in indoor environment;When detecting that the mobile terminal is current
When in indoor environment, and when the mobile terminal is currently had using global position system GPS, described in the mobile terminal is closed
GPS;The mobile terminal is carried out using the one or more location technology in addition to the GPS that the mobile terminal is supported
Positioning.It is may be implemented in this way to close GPS when indoor environment, because GPS can not be positioned in environment indoors, thus phase
It is positioned using multiple location technologies including GPS of support always than prior art mobile terminal, the present invention is implemented
Example can save the power consumption of mobile terminal.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, abbreviation RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (6)
1. a kind of localization method characterized by comprising
Whether mobile terminal detection is current is in indoor environment;
When detecting that the mobile terminal is currently at indoor environment, and the mobile terminal currently has using global positioning system
When system GPS, the mobile terminal closes the GPS;
The mobile terminal is carried out using the one or more location technology in addition to the GPS that the mobile terminal is supported
Positioning;
When the mobile terminal detects that the mobile terminal moving distance is greater than pre-determined distance threshold value, the mobile terminal is beaten
The GPS is opened, in preset time T, whether judgement is current is in outdoor environment, if so, positioned using the GPS,
And the location technology in addition to the GPS that the mobile terminal is supported is closed, if not judging in the preset time T
Mobile terminal is currently at outdoor environment, then closes the GPS;
Mobile terminal judgement it is current whether in outdoor environment include:
The mobile terminal inputs the satellite information of multiple satellites to the GPS, and judges the satellite information of the multiple satellite
Whether change, if the satellite information of the multiple satellite changes there are the satellite information of at least one satellite, sentences
Break the changed satellite information signal strength whether be respectively less than preset strength threshold value, if not, it is determined that the movement
Terminal is currently at outdoor environment;If the satellite information of the multiple satellite does not change, it is determined that described mobile whole
End is currently at indoor environment.
2. the method as described in claim 1, which is characterized in that mobile terminal judgement it is current whether in outdoor environment into
One step further include:
When judging that the signal strength of the changed satellite information is respectively less than preset strength threshold value, change described in judgement
The quantity of the corresponding satellite of satellite information whether be less than default satellite threshold value, if so, determining that the mobile terminal is currently located
In indoor environment.
3. a kind of mobile terminal characterized by comprising detection unit, closing unit and the first positioning unit, in which:
The detection unit, for whether detecting the mobile terminal currently in indoor environment;
The closing unit, for when detecting that the mobile terminal is currently at indoor environment, and the mobile terminal is worked as
Before when having using global position system GPS, close the GPS;
First positioning unit, the one or more in addition to the GPS for being supported using the mobile terminal are fixed
Position technology is positioned;
Judging unit, for when the mobile terminal detect the mobile terminal moving distance be greater than pre-determined distance threshold value when,
So that the mobile terminal is opened the GPS, and judges the mobile terminal currently whether in outdoor ring in preset time T
Border;
If do not judged in the preset time T in outdoor environment, the closing unit closes the GPS;
Second positioning unit, if when for judging that the mobile terminal is currently at outdoor environment in preset time T, using institute
It states GPS to be positioned, and closes the location technology in addition to the GPS that the mobile terminal is supported;
The judging unit is also used to detect that the mobile terminal moving distance is greater than pre-determined distance threshold when the mobile terminal
It is described to open the GPS when value, and the satellite information of multiple satellites is inputted to the GPS, and judge defending for the multiple satellite
Whether star information changes, if there are the satellite informations of at least one satellite to change for the satellite information of the multiple satellite
When, judge whether the signal strength of the changed satellite information is respectively less than preset strength threshold value, if not, it is determined that described
Mobile terminal is currently at outdoor environment;If the satellite information of the multiple satellite does not change, it is determined that the shifting
Dynamic terminal is currently at indoor environment.
4. mobile terminal as claimed in claim 3, which is characterized in that the judging unit is also used to judge described change
The signal strength of satellite information when being respectively less than preset strength threshold value, judge the corresponding satellite of the changed satellite information
Quantity whether be less than default satellite threshold value, if so, determining that the mobile terminal is currently at indoor environment.
5. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating
Machine program, the computer program is for instructing relevant hardware to complete method described in claim 1 to 2 any one.
6. a kind of mobile terminal, which is characterized in that mobile terminal includes: at least one processor, at least one input unit, extremely
A few output device and memory;Wherein, at least one processor, at least one input unit, at least one output device
It is communicatively coupled with memory by one or more bus;
Wherein, the processor calls application program stored in memory, requires 1 to 2 any one for perform claim
The method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510407986.9A CN105163373B (en) | 2015-07-13 | 2015-07-13 | A kind of localization method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510407986.9A CN105163373B (en) | 2015-07-13 | 2015-07-13 | A kind of localization method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105163373A CN105163373A (en) | 2015-12-16 |
CN105163373B true CN105163373B (en) | 2019-02-01 |
Family
ID=54804103
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510407986.9A Expired - Fee Related CN105163373B (en) | 2015-07-13 | 2015-07-13 | A kind of localization method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105163373B (en) |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105682032B (en) * | 2016-01-13 | 2018-04-06 | 广东欧珀移动通信有限公司 | A kind of station-keeping mode control method, device and mobile terminal |
CN105933521A (en) * | 2016-04-22 | 2016-09-07 | 广东小天才科技有限公司 | Method and device for selecting positioning mode by mobile terminal |
CN107544085B (en) * | 2016-06-24 | 2021-02-12 | 华为终端有限公司 | Positioning method and wearable device |
CN106712793B (en) * | 2017-02-23 | 2019-06-21 | 上海与德信息技术有限公司 | A kind of monitoring method and system based on mobile terminal |
CN107331005B (en) * | 2017-06-28 | 2019-12-17 | 深圳市沃特沃德股份有限公司 | control method and device for sharing bicycle |
CN107454253B (en) * | 2017-07-18 | 2021-01-08 | 维沃移动通信有限公司 | Method for starting Global Positioning System (GPS) and mobile terminal |
CA3073457C (en) * | 2017-08-23 | 2022-07-05 | Huawei Technologies Co., Ltd. | Positioning method and apparatus |
CN108064023B (en) * | 2017-12-13 | 2020-01-14 | Oppo广东移动通信有限公司 | Control method and device based on positioning module, storage medium and mobile terminal |
CN109982233B (en) * | 2017-12-27 | 2020-12-29 | 中国移动通信集团吉林有限公司 | Method and device for determining position information of terminal equipment and storage medium |
CN108235292B (en) * | 2017-12-29 | 2020-11-17 | 中国平安财产保险股份有限公司 | Method, device and equipment for prolonging endurance of mobile terminal and readable storage medium |
CN110182176A (en) * | 2018-02-23 | 2019-08-30 | 上海博泰悦臻电子设备制造有限公司 | Control method, system, terminal and the storage medium of vehicle window clearing apparatus |
CN110320544B (en) * | 2018-03-30 | 2022-03-01 | 北京百度网讯科技有限公司 | Method, device, equipment and storage medium for identifying position of terminal equipment |
CN108931802B (en) * | 2018-07-23 | 2021-07-20 | 中国科学院计算技术研究所 | Indoor and outdoor scene detection method |
CN111148031B (en) * | 2019-04-24 | 2022-05-03 | 广东小天才科技有限公司 | Method for saving GPS positioning power consumption and wearable device |
CN110177335B (en) * | 2019-05-29 | 2021-05-14 | 鹏城实验室 | Navigation positioning method and system |
CN110505580A (en) * | 2019-08-14 | 2019-11-26 | 合肥科维特电气科技有限公司 | A method of passing through LBS service auxiliary positioning vehicle |
CN113176587B (en) * | 2021-04-07 | 2023-02-07 | 甄十信息科技(上海)有限公司 | Indoor and outdoor identification method and system, electronic equipment and computer readable medium |
CN116224387B (en) * | 2023-05-09 | 2023-07-07 | 深圳市易赛通信技术有限公司 | Positioning method, device and equipment of wearable equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102645666A (en) * | 2012-05-11 | 2012-08-22 | 常熟南师大发展研究院有限公司 | Method for switching indoor ultra wide band (UWB) location and outdoor global position system (GPS) location |
EP2616774A1 (en) * | 2010-09-17 | 2013-07-24 | Qualcomm Incorporated | Indoor positioning using pressure sensors |
CN104066163A (en) * | 2014-04-24 | 2014-09-24 | 深圳市研强通信技术有限公司 | Power consumption saving device, mobile terminal and power consumption saving method |
CN104822133A (en) * | 2015-04-22 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for controlling positioning mode of intelligent terminal |
-
2015
- 2015-07-13 CN CN201510407986.9A patent/CN105163373B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2616774A1 (en) * | 2010-09-17 | 2013-07-24 | Qualcomm Incorporated | Indoor positioning using pressure sensors |
CN102645666A (en) * | 2012-05-11 | 2012-08-22 | 常熟南师大发展研究院有限公司 | Method for switching indoor ultra wide band (UWB) location and outdoor global position system (GPS) location |
CN104066163A (en) * | 2014-04-24 | 2014-09-24 | 深圳市研强通信技术有限公司 | Power consumption saving device, mobile terminal and power consumption saving method |
CN104822133A (en) * | 2015-04-22 | 2015-08-05 | 广东欧珀移动通信有限公司 | Method and device for controlling positioning mode of intelligent terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105163373A (en) | 2015-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105163373B (en) | A kind of localization method and mobile terminal | |
US11467855B2 (en) | Application preloading method and device, storage medium and terminal | |
CN108363593B (en) | Application program preloading method and device, storage medium and terminal | |
EP3575962B1 (en) | Method and device for preloading application, storage medium and intelligent terminal | |
CN108614722B (en) | Application program preloading method and device, storage medium and terminal | |
US20190347107A1 (en) | Method for Preloading Application, Storage Medium, and Terminal | |
CN107656671A (en) | Suspend small window control method and device, terminal installation and computer-readable recording medium | |
CN108762831B (en) | Application program preloading method and device, storage medium and terminal | |
CN108829456A (en) | Application program preloads method, apparatus, storage medium and terminal | |
CN109992315B (en) | Touch screen control method and device, terminal and storage medium | |
WO2019227994A1 (en) | Method and apparatus for updating application prediction model, storage medium, and terminal | |
CN108710513A (en) | Application program launching method, device, storage medium and terminal | |
CN108762844B (en) | Application program preloading method and device, storage medium and terminal | |
CN105549847B (en) | A kind of image display method and user terminal at playback of songs interface | |
CN105867729A (en) | A message display device and method | |
CN111796884B (en) | Access control method, device, equipment and computer readable storage medium | |
CN106569812A (en) | Application program notification processing method and system of mobile terminal | |
CN104994547B (en) | A kind of Network Access Method and user terminal | |
CN102646037A (en) | Menu display processing method and terminal device | |
CN105208623A (en) | Mobile terminal control method and mobile terminal | |
CN109388309A (en) | Display methods, device, terminal and the storage medium of menu | |
CN104780253B (en) | A kind of book management method | |
CN108815838A (en) | A kind of game control method, electronic equipment and computer readable storage medium | |
CN110399079B (en) | Equipment control method and device and mobile terminal equipment | |
CN113595662B (en) | Signal prompting method, device, terminal equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190201 |
|
CF01 | Termination of patent right due to non-payment of annual fee |