CN105163373A - Positioning method and mobile terminal - Google Patents

Positioning method and mobile terminal Download PDF

Info

Publication number
CN105163373A
CN105163373A CN201510407986.9A CN201510407986A CN105163373A CN 105163373 A CN105163373 A CN 105163373A CN 201510407986 A CN201510407986 A CN 201510407986A CN 105163373 A CN105163373 A CN 105163373A
Authority
CN
China
Prior art keywords
mobile terminal
satellite
gps
current
described mobile
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.)
Granted
Application number
CN201510407986.9A
Other languages
Chinese (zh)
Other versions
CN105163373B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510407986.9A priority Critical patent/CN105163373B/en
Publication of CN105163373A publication Critical patent/CN105163373A/en
Application granted granted Critical
Publication of CN105163373B publication Critical patent/CN105163373B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0251Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses a positioning method and a mobile terminal. The method comprises the following steps that the mobile terminal detects whether the terminal is currently in an indoor environment; when it is detected that the mobile terminal is indoors and currently uses the GPS (Global Positioning System), the mobile terminal then stops the GPS; and the mobile terminal uses one or more supported positioning technologies except the GPS technology for positioning. The power consumption of the mobile terminal can be lowered.

Description

A kind of localization method and mobile terminal
Technical field
The present invention relates to field of terminal, particularly relate to a kind of localization method and mobile terminal.
Background technology
Location Based service (LocationBasedService, LBS) is extremely important technology in current mobile terminal, and the application developed based on LBS has at present been innumerable, from amusement and recreation to service for life, then to social application etc.Can say, LBS plays important role in all trades and professions.But in LBS, location technology mainly contains global positioning system (GlobalPositioningSystem, GPS) location technology, network location technology and architecture technology etc. at present.But current mobile terminal often supports multiple location technology all simultaneously, such as: mobile phone can support GPS location technology, network location technology and architecture technology.And mobile terminal is all often use multinomial location technology to carry out combination location simultaneously, but the accuracy that different location technology is located in various positions is in actual applications discrepant, such as: some location technology cannot position at ad-hoc location.Such mobile terminal uses multinomial location technology to carry out combination location always, there is the location technology that cannot position in this multinomial location technology when just easily appearing at ad-hoc location, this location technology that cannot position of use will cause extra power consumption to mobile terminal like this.
Summary of the invention
Embodiments provide a kind of localization method and mobile terminal, the power consumption of mobile terminal can be saved.
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 described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS;
Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.
Wherein, described method also comprises:
When described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, described mobile terminal opens described GPS, and judge currently whether be in outdoor environment, if, then use described GPS to position, and close the location technology except described GPS of described mobile terminal support.
Wherein, described mobile terminal judges that the current outdoor environment that whether is in comprises:
Described mobile terminal inputs the satellite information of multiple satellite to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
Wherein, described mobile terminal judges that the current outdoor environment that whether is in further comprises:
If when the satellite information of described multiple satellite does not all change, then determine that described mobile terminal is current and be in indoor environment.
Wherein, described mobile terminal judges that the current outdoor environment that whether is in further comprises:
When the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
Second aspect, the embodiment of the present invention provides a kind of mobile terminal, comprising: detecting unit, closing unit and the first positioning unit, wherein:
Described detecting unit, for detecting, whether described mobile terminal is current is in indoor environment;
Described closing unit, for when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, closes described GPS;
Described first positioning unit, positions for using except described GPS one of described mobile terminal support or multinomial location technology.
Wherein, described mobile terminal also comprises:
Judging unit, during for detecting that described mobile terminal displacement is greater than predeterminable range threshold value when described mobile terminal, described in open described GPS, and judge that described mobile terminal is current and whether be in outdoor environment;
Second positioning unit, if for judging that described mobile terminal is current and being in outdoor environment time, use described GPS to position, and close the location technology except described GPS that described mobile terminal supports.
Wherein, described judging unit is used for when described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, describedly open described GPS, and the satellite information of multiple satellite is inputted to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
Wherein, if when described judging unit does not also all change for the satellite information of described multiple satellite, then determine that described mobile terminal is current and be in indoor environment.
Wherein, when described judging unit is also all less than preset strength threshold value for the signal strength signal intensity of the satellite information changed described in judging, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
In technique scheme, whether mobile terminal detection is current is in indoor environment; When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS; Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.Can realize like this with during indoor environment, GPS being closed, because GPS cannot position in indoor environment, thus mobile terminal uses the multiple location technologies comprising GPS of support to position compared to existing technology always, the embodiment of the present invention can save the power consumption of mobile terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of localization method that the embodiment of the present invention provides;
Fig. 2 is the schematic flow sheet of the another kind of localization method that the embodiment of the present invention provides;
Fig. 3 is that a kind of outdoor environment that the embodiment of the present invention provides judges schematic diagram;
Fig. 4 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides;
Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides;
Fig. 6 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of localization method that the embodiment of the present invention provides, and as shown in Figure 1, comprises the following steps:
Whether 101, mobile terminal detection is current is in indoor environment.
Wherein, by positional information, mobile terminal can detect whether mobile terminal is current is in indoor environment, such as: mobile terminal detect current position be office or family time, just can determine currently to be in indoor environment.Or by GPS, mobile terminal can detect whether mobile terminal is current is in indoor environment.
102, when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using GPS, and described mobile terminal closes described GPS.
Wherein, above-mentioned current have use GPS can be understood as Current GPS for open mode, so just can realize, when mobile terminal is in indoor environment, GPS being closed.Because GPS cannot position in indoor environment, so just can avoid opening GPS but the GPS power consumption penalty that cannot position and cause.
103, mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.
Wherein, mobile terminal can be use the one in network location technology and architecture technology or two kinds of location technologies to position.Certainly, do not limit the one in just network location technology and architecture technology or two kinds of location technologies in step 103, step 103 can also be any location technology that the mobile terminal of follow-up research and development can be supported.
In the present embodiment, above-mentioned mobile terminal can be the mobile terminal of any support GPS location technology, such as: the mobile terminal of any support GPS location technologies such as mobile phone, panel computer, electronic reader, remote controller, notebook computer, mobile unit wearable device.
In the present embodiment, whether mobile terminal detection is current is in indoor environment; When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS; Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.Can realize like this with during indoor environment, GPS being closed, because GPS cannot position in indoor environment, thus mobile terminal uses the multiple location technologies comprising GPS of support to position compared to existing technology always, the embodiment of the present invention can save the power consumption of mobile terminal.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of the another kind of localization method that the embodiment of the present invention provides, and as shown in Figure 2, comprises the following steps:
Whether 201, mobile terminal detection is current is in indoor environment.
Wherein, by positional information, mobile terminal can detect whether mobile terminal is current is in indoor environment, such as: mobile terminal detect current position be office or family time, just can determine currently to be in indoor environment.Or by GPS, mobile terminal can detect whether mobile terminal is current is in indoor environment.
Wherein, detect the current indoor environment that whether is in of mobile terminal by GPS can comprise the steps:
Mobile terminal inputs the satellite information of multiple satellite to described GPS, and judges whether the satellite information of described N number of satellite changes, if when the satellite information of described multiple satellite does not all change, then determines that described mobile terminal is current and is in indoor environment;
If when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if described in the signal strength signal intensity of satellite information that changes when being all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
Certainly, if described in there is at least one in the signal strength signal intensity of satellite information that changes when being not less than preset strength threshold value, then can determine that described mobile terminal is current and be in outdoor environment.
Or, if described in the signal strength signal intensity of satellite information that changes when being all less than preset strength threshold value, when the quantity of the satellite that the satellite information changed described in judgement is corresponding is not less than default satellite threshold value, then can determines that described mobile terminal is current and be in outdoor environment.
If in, above-mentioned satellite information can comprise signal strength signal intensity, or can also comprise the information such as title or mark of satellite.
In addition, as shown in Figure 3, detect the current indoor environment that whether is in of mobile terminal above by GPS can comprise the steps:
1), arranging initializing variable (STimer) is 0;
2), each satellite information is inputted to GPS;
3), judge whether satellite information does not change, if so, then enter step 5), otherwise, then enter step 4);
4), judge whether signal strength signal intensity (CN) value of gps satellite is all less than the first given threshold value (MIN_VALUE), and whether the number of satellites changed is less than the minimum satellite vehicle number (MIN_NUM) of setting, if, then enter step 5), otherwise, then step 7 is entered);
5), by variable (STimer) add 1, and whether judgment variable (STimer) currency is greater than the maximum (MAX_NUM) of setting, if so, then performs step 6);
6), determine currently to be in indoor environment (such as: return True), and terminate; Otherwise, enter step 2);
7), determine currently to be in outdoor environment, and variable (STimer) is set to 0, in addition, can also step 2 be entered).
202, when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS.
Wherein, above-mentioned current have use GPS can be understood as Current GPS for open mode, so just can realize, when mobile terminal is in indoor environment, GPS being closed.Because GPS cannot position in indoor environment, so just can avoid opening GPS but the GPS power consumption penalty that cannot position and cause.
203, described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.
Wherein, mobile terminal can be use the one in network location technology and architecture technology or two kinds of location technologies to position.Certainly, do not limit the one in just network location technology and architecture technology or two kinds of location technologies in step 203, step 203 can also be any location technology that the mobile terminal of follow-up research and development can be supported.
204, when described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, described mobile terminal opens described GPS, and judges currently whether be in outdoor environment, if so, then performs step 205, if not, then can perform step 206.
Wherein, by location technology, mobile terminal can detect that described mobile terminal displacement is greater than predeterminable range threshold value, or by sports applications, mobile terminal can detect that described mobile terminal displacement is greater than predeterminable range threshold value, such as: detect that described mobile terminal displacement is greater than predeterminable range threshold value by the application of recording exercise data.
In addition, in the present embodiment, step 204 can also be after opening described GPS, in preset time T, judges currently whether be in outdoor environment, if so, then performs step 205.If when this preset time T is not judged to be in outdoor environment, then can step 206 be performed.Because ought not judge that mobile terminal is current to be within a certain period of time in outdoor environment, so, just need to close GPS, cause power consumption penalty to avoid GPS.
In the present embodiment, above-mentioned mobile terminal judges the current step whether being in outdoor environment, can comprise:
Mobile terminal inputs the satellite information of multiple satellite to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
Wherein, above-mentioned satellite information changes and can be understood as mobile terminal satellite when mobile and the movement of mobile terminal can be detected, thus the change of satellite information occurs.
In addition, above-mentioned mobile terminal judges that the current step whether being in outdoor environment can also comprise further:
If when the satellite information of described multiple satellite does not all change, then determine that described mobile terminal is current and be in indoor environment.
In addition, above-mentioned mobile terminal judges that the current step whether being in outdoor environment can also comprise further:
When the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
If when the quantity of the satellite that the satellite information changed described in judging is corresponding is not less than default satellite threshold value, can determines that mobile terminal is current and be in outdoor environment.Such as: when the quantity of the satellite that the satellite information changed is corresponding is not less than 3, then can determine that described mobile terminal is current and be in outdoor environment.
205, use described GPS to position, and close the location technology except described GPS of described mobile terminal support.
206, described GPS is closed.
In addition, in the present embodiment, the positioning track that mobile terminal uses GPS can also be added up in advance, this positioning track employs GPS in which position before can representing mobile terminal and carries out position, like this when detecting that mobile terminal is in these positions, just can determine that these positions are outdoor location, or directly open GPS and position.
In the present embodiment, the basis of the embodiment shown in Fig. 1 adds the execution mode of plurality of optional, and the power consumption of saving mobile terminal can be realized.
Be apparatus of the present invention embodiment below, the method that apparatus of the present invention embodiment realizes for performing the inventive method embodiment one to two, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to the embodiment of the present invention one and embodiment two.
Refer to Fig. 4, Fig. 4 is the structural representation of a kind of mobile terminal that the embodiment of the present invention provides, and as shown in Figure 4, comprising: detecting unit 41, closing unit 42 and the first positioning unit 43, wherein:
Detecting unit 41, for detecting, whether described mobile terminal is current is in indoor environment.
Wherein, by positional information, mobile terminal can detect whether mobile terminal is current is in indoor environment, such as: mobile terminal detect current position be office or family time, just can determine currently to be in indoor environment.Or by GPS, mobile terminal can detect whether mobile terminal is current is in indoor environment.
Closing unit 42, for when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, closes described GPS.
Wherein, above-mentioned current have use GPS can be understood as Current GPS for open mode, so just can realize, when mobile terminal is in indoor environment, GPS being closed.Because GPS cannot position in indoor environment, so just can avoid opening GPS but the GPS power consumption penalty that cannot position and cause.
First positioning unit 43, positions for using except described GPS one of described mobile terminal support or multinomial location technology.
Wherein, mobile terminal can be use the one in network location technology and architecture technology or two kinds of location technologies to position.Certainly, in the first positioning unit 43, do not limit the one in just network location technology and architecture technology or two kinds of location technologies, the first positioning unit 43 can also be any location technology that the mobile terminal of follow-up research and development can be supported.
In the present embodiment, above-mentioned mobile terminal can be the mobile terminal of any support GPS location technology, such as: the mobile terminal of any support GPS location technologies such as mobile phone, panel computer, electronic reader, remote controller, notebook computer, mobile unit wearable device.
In the present embodiment, whether mobile terminal detection is current is in indoor environment; When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS; Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.Can realize like this with during indoor environment, GPS being closed, because GPS cannot position in indoor environment, thus mobile terminal uses the multiple location technologies comprising GPS of support to position compared to existing technology always, the embodiment of the present invention can save the power consumption of mobile terminal.
Refer to Fig. 5, Fig. 5 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides, and as shown in Figure 5, comprising: detecting unit 51, closing unit 52, first positioning unit 53, judging unit 54 and the second positioning unit 55, wherein:
Detecting unit 51, for detecting, whether described mobile terminal is current is in indoor environment.
Wherein, by positional information, mobile terminal can detect whether mobile terminal is current is in indoor environment, such as: mobile terminal detect current position be office or family time, just can determine currently to be in indoor environment.Or by GPS, mobile terminal can detect whether mobile terminal is current is in indoor environment.
Wherein, detect the current indoor environment that whether is in of mobile terminal by GPS can comprise the steps:
Mobile terminal inputs the satellite information of multiple satellite to described GPS, and judges whether the satellite information of described N number of satellite changes, if when the satellite information of described multiple satellite does not all change, then determines that described mobile terminal is current and is in indoor environment;
If when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if described in the signal strength signal intensity of satellite information that changes when being all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
Certainly, if described in there is at least one in the signal strength signal intensity of satellite information that changes when being not less than preset strength threshold value, then can determine that described mobile terminal is current and be in outdoor environment.
Or, if described in the signal strength signal intensity of satellite information that changes when being all less than preset strength threshold value, when the quantity of the satellite that the satellite information changed described in judgement is corresponding is not less than default satellite threshold value, then can determines that described mobile terminal is current and be in outdoor environment.
If in, above-mentioned satellite information can comprise signal strength signal intensity, or can also comprise the information such as title or mark of satellite.
In addition, as shown in Figure 3, detect the current indoor environment that whether is in of mobile terminal above by GPS can comprise the steps:
1), arranging initializing variable (STimer) is 0;
2), each satellite information is inputted to GPS;
3), judge whether satellite information does not change, if so, then enter step 5), otherwise, then enter step 4);
4), judge whether signal strength signal intensity (CN) value of gps satellite is all less than the first given threshold value (MIN_VALUE), and whether the number of satellites changed is less than the minimum satellite vehicle number (MIN_NUM) of setting, if, then enter step 5), otherwise, then step 6 is entered);
5), variable (STimer) is added 1, and whether judgment variable (STimer) currency is greater than the maximum (MAX_NUM) of setting, if so, then determine currently to be in indoor environment (such as: return True), and terminate; Otherwise, enter step 2);
6), determine currently to be in outdoor environment, and variable (STimer) is set to 0, in addition, can also step 2 be entered).
Closing unit 22, for when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, closes described GPS.
Wherein, above-mentioned current have use GPS can be understood as Current GPS for open mode, so just can realize, when mobile terminal is in indoor environment, GPS being closed.Because GPS cannot position in indoor environment, so just can avoid opening GPS but the GPS power consumption penalty that cannot position and cause.
First positioning unit 53, positions for using except described GPS one of described mobile terminal support or multinomial location technology.
Wherein, mobile terminal can be use the one in network location technology and architecture technology or two kinds of location technologies to position.Certainly, in the first positioning unit 53, do not limit the one in just network location technology and architecture technology or two kinds of location technologies, the first positioning unit 53 can also be any location technology that the mobile terminal of follow-up research and development can be supported.
Judging unit 54, during for detecting that described mobile terminal displacement is greater than predeterminable range threshold value when described mobile terminal, described in open described GPS, and judge that described mobile terminal is current and whether be in outdoor environment;
Second positioning unit 55, if for judging that described mobile terminal is current and being in outdoor environment time, use described GPS to position, and close the location technology except described GPS that described mobile terminal supports.
Wherein, by location technology, mobile terminal can detect that described mobile terminal displacement is greater than predeterminable range threshold value, or by sports applications, mobile terminal can detect that described mobile terminal displacement is greater than predeterminable range threshold value, such as: detect that described mobile terminal displacement is greater than predeterminable range threshold value by the application of recording exercise data.
In addition, in the present embodiment, judging unit 54 can also be after opening described GPS, in preset time T, judge currently whether be in outdoor environment, if, then the second positioning unit 55 uses described GPS to position, and closes the location technology except described GPS of described mobile terminal support.If when this preset time T is not judged to be in outdoor environment, then close GPS.Because ought not judge that mobile terminal is current to be within a certain period of time in outdoor environment, so, just need to close GPS, cause power consumption penalty to avoid GPS.
In the present embodiment, judging unit 54 may be used for when described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, describedly open described GPS, and the satellite information of multiple satellite is inputted to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
Wherein, above-mentioned satellite information changes and can be understood as mobile terminal satellite when mobile and the movement of mobile terminal can be detected, thus the change of satellite information occurs.
In addition, if when the satellite information that judging unit 54 can also be used for described multiple satellite does not all change, then determine that described mobile terminal is current and be in indoor environment.
In addition, when the signal strength signal intensity of the satellite information changed described in judging unit 54 can also be used for judging all is less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
If when the quantity of the satellite that the satellite information changed described in judging is corresponding is not less than default satellite threshold value, can determines that mobile terminal is current and be in outdoor environment.Such as: when the quantity of the satellite that the satellite information changed is corresponding is not less than 3, then can determine that described mobile terminal is current and be in outdoor environment.
In addition, in the present embodiment, the positioning track that mobile terminal uses GPS can also be added up in advance, this positioning track employs GPS in which position before can representing mobile terminal and carries out position, like this when detecting that mobile terminal is in these positions, just can determine that these positions are outdoor location, or directly open GPS and position.
In the present embodiment, the basis of the embodiment shown in Fig. 4 adds the execution mode of plurality of optional, and the power consumption of saving mobile terminal can be realized.
Refer to Fig. 6, Fig. 6 is the structural representation of the another kind of mobile terminal that the embodiment of the present invention provides, for performing above-mentioned localization method.As shown in Figure 6, describedly can to comprise for terminal: at least one processor 100, at least one input unit 200, at least one output device 300, assembly such as memory 500 grade.Wherein, these assemblies are communicated to connect by one or more bus 400.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 6 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 100 is the control centre of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in memory 500 of being stored in and/or module, and call the data be stored in memory 500, to perform various function and the deal with data of terminal.Processor 100 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 100 can only comprise central processing unit (CentralProcessingUnit, be called for short CPU), also can be CPU, digital signal processor (digitalsignalprocessor, be called for short DSP), the combination of graphic process unit (GraphicProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input unit 200 can comprise the touch-screen of standard, keyboard, shooting are first-class, also can include line interface, wave point etc.
Output device 300 can comprise display screen, loud speaker etc., also can include line interface, wave point etc.
Memory 500 can be used for storing software program and module, processor 100, input unit 200 and output device 300 are stored in software program in memory 500 and module by calling, thus perform the various functions application of terminal and realize data processing.Memory 500 mainly comprises program storage area and data storage area, and wherein, program storage area can storage operation system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Concrete, processor 100 calls the application program be stored in memory 500, for performing following steps:
Detect and currently whether be in indoor environment;
When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, closes described GPS;
Except described GPS one of described mobile terminal support or multinomial location technology is used to position.
In the present embodiment, the step that processor 100 performs can also comprise:
When described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, described mobile terminal opens described GPS, and judge currently whether be in outdoor environment, if, then use described GPS to position, and close the location technology except described GPS of described mobile terminal support.
In the present embodiment, what processor 100 performed judges that the current step whether being in outdoor environment can comprise:
Described mobile terminal inputs the satellite information of multiple satellite to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
In the present embodiment, what processor 100 performed judges that the current step whether being in outdoor environment can also comprise further:
If when the satellite information of described multiple satellite does not all change, then determine that described mobile terminal is current and be in indoor environment.
In the present embodiment, what processor 100 performed judges that the current step whether being in outdoor environment can also comprise further:
When the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
In the present embodiment, above-mentioned mobile terminal can be the mobile terminal of any support GPS location technology, such as: the mobile terminal of any support GPS location technologies such as mobile phone, panel computer, electronic reader, remote controller, notebook computer, mobile unit wearable device.
In the present embodiment, whether mobile terminal detection is current is in indoor environment; When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS; Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.Can realize like this with during indoor environment, GPS being closed, because GPS cannot position in indoor environment, thus mobile terminal uses the multiple location technologies comprising GPS of support to position compared to existing technology always, the embodiment of the present invention can save the power consumption of mobile terminal.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a localization method, is characterized in that, comprising:
Whether mobile terminal detection is current is in indoor environment;
When detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, and described mobile terminal closes described GPS;
Described mobile terminal uses except described GPS one of described mobile terminal support or multinomial location technology to position.
2. the method for claim 1, is characterized in that, described method also comprises:
When described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, described mobile terminal opens described GPS, and judge currently whether be in outdoor environment, if, then use described GPS to position, and close the location technology except described GPS of described mobile terminal support.
3. method as claimed in claim 2, it is characterized in that, described mobile terminal judges that the current outdoor environment that whether is in comprises:
Described mobile terminal inputs the satellite information of multiple satellite to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
4. method as claimed in claim 3, it is characterized in that, described mobile terminal judges that the current outdoor environment that whether is in further comprises:
If when the satellite information of described multiple satellite does not all change, then determine that described mobile terminal is current and be in indoor environment.
5. method as claimed in claim 3, it is characterized in that, described mobile terminal judges that the current outdoor environment that whether is in further comprises:
When the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
6. a mobile terminal, is characterized in that, comprising: detecting unit, closing unit and the first positioning unit, wherein:
Described detecting unit, for detecting, whether described mobile terminal is current is in indoor environment;
Described closing unit, for when detecting that described mobile terminal is current and being in indoor environment, and described mobile terminal is current has when using global position system GPS, closes described GPS;
Described first positioning unit, positions for using except described GPS one of described mobile terminal support or multinomial location technology.
7. mobile terminal as claimed in claim 6, it is characterized in that, described mobile terminal also comprises:
Judging unit, during for detecting that described mobile terminal displacement is greater than predeterminable range threshold value when described mobile terminal, described in open described GPS, and judge that described mobile terminal is current and whether be in outdoor environment;
Second positioning unit, if for judging that described mobile terminal is current and being in outdoor environment time, use described GPS to position, and close the location technology except described GPS that described mobile terminal supports.
8. mobile terminal as claimed in claim 7, it is characterized in that, described judging unit is used for when described mobile terminal detects that described mobile terminal displacement is greater than predeterminable range threshold value, describedly open described GPS, and the satellite information of multiple satellite is inputted to described GPS, and judge whether the satellite information of described N number of satellite changes, if when the satellite information that the satellite information of described multiple satellite exists at least one satellite changes, whether the signal strength signal intensity of the satellite information changed described in judgement is all less than preset strength threshold value, if not, then determine that described mobile terminal is current and be in outdoor environment.
9. mobile terminal as claimed in claim 8, is characterized in that, if when described judging unit does not also all change for the satellite information of described multiple satellite, then determine that described mobile terminal is current and be in indoor environment.
10. method as claimed in claim 8, it is characterized in that, when described judging unit is also all less than preset strength threshold value for the signal strength signal intensity of the satellite information changed described in judging, whether the quantity of the satellite that the satellite information changed described in judgement is corresponding is less than default satellite threshold value, if so, then determine that described mobile terminal is current and be in indoor environment.
CN201510407986.9A 2015-07-13 2015-07-13 A kind of localization method and mobile terminal Active CN105163373B (en)

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 true CN105163373A (en) 2015-12-16
CN105163373B CN105163373B (en) 2019-02-01

Family

ID=54804103

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510407986.9A Active 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)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal
CN105933521A (en) * 2016-04-22 2016-09-07 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN106712793A (en) * 2017-02-23 2017-05-24 上海与德信息技术有限公司 Monitoring method and system based on mobile terminal
CN107331005A (en) * 2017-06-28 2017-11-07 深圳市沃特沃德股份有限公司 The control method and device of shared bicycle
CN107454253A (en) * 2017-07-18 2017-12-08 维沃移动通信有限公司 Start the method and mobile terminal of global position system GPS
CN107544085A (en) * 2016-06-24 2018-01-05 华为终端(东莞)有限公司 A kind of localization method and wearable device
CN108064023A (en) * 2017-12-13 2018-05-22 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN108235292A (en) * 2017-12-29 2018-06-29 中国平安财产保险股份有限公司 Extend mobile terminal continuation of the journey method, apparatus, equipment and readable storage medium storing program for executing
CN108931802A (en) * 2018-07-23 2018-12-04 中国科学院计算技术研究所 A kind of indoor and outdoor scene detection method
WO2019036939A1 (en) * 2017-08-23 2019-02-28 华为技术有限公司 Positioning method and apparatus
CN109982233A (en) * 2017-12-27 2019-07-05 ***通信集团吉林有限公司 A kind of terminal device method of determining position information, device and storage medium
CN110177335A (en) * 2019-05-29 2019-08-27 鹏城实验室 A kind of navigation locating method and system
CN110182176A (en) * 2018-02-23 2019-08-30 上海博泰悦臻电子设备制造有限公司 Control method, system, terminal and the storage medium of vehicle window clearing apparatus
CN110320544A (en) * 2018-03-30 2019-10-11 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium of identification terminal equipment position
CN110505580A (en) * 2019-08-14 2019-11-26 合肥科维特电气科技有限公司 A method of passing through LBS service auxiliary positioning vehicle
CN111148031A (en) * 2019-04-24 2020-05-12 广东小天才科技有限公司 Method for saving GPS positioning power consumption and wearable device
CN113176587A (en) * 2021-04-07 2021-07-27 甄十信息科技(上海)有限公司 Indoor and outdoor identification method and system, electronic equipment and computer readable medium
CN116224387A (en) * 2023-05-09 2023-06-06 深圳市易赛通信技术有限公司 Positioning method, device and equipment of wearable equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682032A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning mode control method, positioning mode control device and mobile terminal
CN105933521A (en) * 2016-04-22 2016-09-07 广东小天才科技有限公司 Mobile terminal positioning mode selection method and device
CN107544085A (en) * 2016-06-24 2018-01-05 华为终端(东莞)有限公司 A kind of localization method and wearable device
CN107544085B (en) * 2016-06-24 2021-02-12 华为终端有限公司 Positioning method and wearable device
CN106712793A (en) * 2017-02-23 2017-05-24 上海与德信息技术有限公司 Monitoring method and system based on mobile terminal
CN106712793B (en) * 2017-02-23 2019-06-21 上海与德信息技术有限公司 A kind of monitoring method and system based on mobile terminal
CN107331005A (en) * 2017-06-28 2017-11-07 深圳市沃特沃德股份有限公司 The control method and device of shared bicycle
CN107454253A (en) * 2017-07-18 2017-12-08 维沃移动通信有限公司 Start the method and mobile terminal of global position system GPS
US11212652B2 (en) 2017-08-23 2021-12-28 Honor Device Co., Ltd. Positioning method and apparatus
WO2019036939A1 (en) * 2017-08-23 2019-02-28 华为技术有限公司 Positioning method and apparatus
CN108064023A (en) * 2017-12-13 2018-05-22 广东欧珀移动通信有限公司 Control method, device, storage medium and mobile terminal based on locating module
CN109982233B (en) * 2017-12-27 2020-12-29 ***通信集团吉林有限公司 Method and device for determining position information of terminal equipment and storage medium
CN109982233A (en) * 2017-12-27 2019-07-05 ***通信集团吉林有限公司 A kind of terminal device method of determining position information, device 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
CN108235292A (en) * 2017-12-29 2018-06-29 中国平安财产保险股份有限公司 Extend mobile terminal continuation of the journey method, apparatus, equipment and readable storage medium storing program for executing
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
CN110320544A (en) * 2018-03-30 2019-10-11 北京百度网讯科技有限公司 Method, apparatus, equipment and the storage medium of identification terminal equipment position
CN108931802A (en) * 2018-07-23 2018-12-04 中国科学院计算技术研究所 A kind of indoor and outdoor scene detection method
CN108931802B (en) * 2018-07-23 2021-07-20 中国科学院计算技术研究所 Indoor and outdoor scene detection method
CN111148031A (en) * 2019-04-24 2020-05-12 广东小天才科技有限公司 Method for saving GPS positioning power consumption and wearable device
CN111148031B (en) * 2019-04-24 2022-05-03 广东小天才科技有限公司 Method for saving GPS positioning power consumption and wearable device
CN110177335A (en) * 2019-05-29 2019-08-27 鹏城实验室 A kind of navigation locating method and system
CN110505580A (en) * 2019-08-14 2019-11-26 合肥科维特电气科技有限公司 A method of passing through LBS service auxiliary positioning vehicle
CN113176587A (en) * 2021-04-07 2021-07-27 甄十信息科技(上海)有限公司 Indoor and outdoor identification method and system, electronic equipment and computer readable medium
CN116224387A (en) * 2023-05-09 2023-06-06 深圳市易赛通信技术有限公司 Positioning method, device and equipment of wearable equipment and storage medium
CN116224387B (en) * 2023-05-09 2023-07-07 深圳市易赛通信技术有限公司 Positioning method, device and equipment of wearable equipment and storage medium

Also Published As

Publication number Publication date
CN105163373B (en) 2019-02-01

Similar Documents

Publication Publication Date Title
CN105163373A (en) Positioning method and mobile terminal
WO2019233354A1 (en) Application preloading method and device, storage medium and terminal
US9201521B2 (en) Storing trace information
CN107908952B (en) Method and device for identifying real machine and simulator and terminal
CN105159530A (en) Application display object switching method and apparatus
CN103430151A (en) Method and apparatus for configuring resource
CN103581979A (en) WIFI network access method and terminal device
CN107463477A (en) Mobile terminal and its management method, computer-readable recording medium
CN105791560A (en) Data network access control method and user terminal
PH12015500205B1 (en) Method and device for an intelligent control of portable electronic devices
WO2014173211A1 (en) Code coverage testing method, device and system
CN106534555A (en) Touch control response system and method of mobile terminal
CN106034069A (en) Method for controlling push message display and mobile terminal
CN103900552A (en) Navigation device and method
CN104035702A (en) Method for preventing intelligent terminal operation error and intelligent terminal
CN109040370A (en) A kind of fingerprint identification method, terminal and computer readable storage medium
CN103257881A (en) Plug-in operation method based on browser, browser device and terminal
CN106776039A (en) A kind of data processing method and device
CN107249082B (en) Volume control method and device, storage medium and electronic equipment
EP2631769A2 (en) Apparatus and Method of Handling a Touch Input in a Terminal
CN105786647A (en) Data backup device and method and terminal
CN107797832B (en) Application cleaning method and device, storage medium and electronic equipment
CN106227534A (en) A kind of display screen division methods and terminal
CN107943606B (en) Fault processing method and device under double operating systems, memory and electronic equipment
CN101576863B (en) Self-start method and device for mobile terminal and mobile terminal comprising the device

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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant