CN108169775A - Control method, device, storage medium and mobile terminal based on locating module - Google Patents

Control method, device, storage medium and mobile terminal based on locating module Download PDF

Info

Publication number
CN108169775A
CN108169775A CN201711327829.2A CN201711327829A CN108169775A CN 108169775 A CN108169775 A CN 108169775A CN 201711327829 A CN201711327829 A CN 201711327829A CN 108169775 A CN108169775 A CN 108169775A
Authority
CN
China
Prior art keywords
mobile terminal
gnss module
state
preset
module
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
CN201711327829.2A
Other languages
Chinese (zh)
Other versions
CN108169775B (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 CN201711327829.2A priority Critical patent/CN108169775B/en
Publication of CN108169775A publication Critical patent/CN108169775A/en
Application granted granted Critical
Publication of CN108169775B publication Critical patent/CN108169775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/34Power consumption

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present application discloses the control method based on locating module, device, storage medium and mobile terminal.This method includes:When GNSS module in the terminal is in normal mode of operation when by LBS application calls, passes through AP and obtain acceleration information in the horizontal direction that the acceleration transducer not comprising arithmetic logic generates;Integral operation is carried out to the acceleration information got in preset duration by AP;Whether mobile terminal is determined in the first preset state according to operation result, the first preset state includes stationary state and/or the state that proceeds slowly;When determining that mobile terminal is in first preset state, control GNSS module enters low power mode of operation.The embodiment of the present application can detect the motion state of mobile terminal in the case where saving mobile terminal manufacture cost, rationally GNSS module be controlled to enter low power mode of operation, extend the cruise duration of mobile terminal by using above-mentioned technical proposal.

Description

Control method, device, storage medium and mobile terminal based on locating module
Technical field
The invention relates to field of locating technology more particularly to the control method based on locating module, device, storage Medium and mobile terminal.
Background technology
It is to obtain mobile terminal by location technology to use based on location-based service (Location Based Service, LBS) The location information at family and the value-added service for providing respective service to the user, at present, many applications in mobile terminal are all based on What LBS developed, range has covered the fields such as amusement and recreation, service for life and social networking application, so, LBS technologies Play important role in all trades and professions.LBS is applied when providing location dependant services, needs to call locating module, To obtain the location information of locating module positioning.
At present, the positioning method of mobile terminal mainly includes Global Navigation Satellite System (Global Navigation Satellite System, GNSS) positioning, network positions and base station location etc..Wherein, GNSS positioning methods have positioning accurate The advantages that degree is high and does not need to using mobile data network, but position fixing process power consumption is very big, when influencing the continuation of the journey of mobile terminal Between.There is still a need for improvement for the existing scheme controlled GNSS locating modules.
Invention content
The embodiment of the present application provides a kind of control method based on locating module, device, storage medium and mobile terminal, can To optimize the control program based on GNSS locating modules in mobile terminal.
In a first aspect, the embodiment of the present application provides a kind of control method based on locating module, including:
Global Satellite Navigation System GNSS module in the terminal when by based on location-based service LBS application calls at When normal mode of operation, the acceleration number of degrees in the horizontal direction of acceleration transducer generation are obtained by application processor AP According to, wherein, arithmetic logic is not included in the acceleration transducer;
Integral operation is carried out to the acceleration information got in preset duration by the AP;
Whether the mobile terminal is determined in the first preset state according to operation result, first preset state includes Stationary state and/or the state that proceeds slowly;
When determining that the mobile terminal is in first preset state, the GNSS module is controlled to enter low-power consumption work Operation mode.
Second aspect, the embodiment of the present application provide a kind of control device based on locating module, including:
Acceleration information acquisition module, for Global Satellite Navigation System GNSS module in the terminal because by based on Location-based service LBS application calls and in normal mode of operation when, pass through application processor AP obtain acceleration transducer generate Horizontal direction on acceleration information, wherein, in the acceleration transducer do not include arithmetic logic;
Computing module, for carrying out integral operation to the acceleration information got in preset duration by the AP;
State determining module, for determining the mobile terminal whether in the first preset state, institute according to operation result It states the first preset state and includes stationary state and/or the state that proceeds slowly;
Positioning control module, for when determining that the mobile terminal is in first preset state, described in control GNSS module enters low power mode of operation.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the control method based on locating module as described in the embodiment of the present application when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of mobile terminal, including memory, GNSS module, using processing Device AP and storage on a memory and the computer program that can be run in application processor, the application processor execution meter The control method based on locating module as described in the embodiment of the present application is realized during calculation machine program.
The control program based on locating module provided in the embodiment of the present application, GNSS module in the terminal is because of quilt LBS application calls and in normal mode of operation when, pass through AP obtain acceleration transducer generate horizontal direction on acceleration Degrees of data, wherein, arithmetic logic is not included in acceleration transducer;By AP to the acceleration information that is got in preset duration Carry out integral operation;According to operation result determine mobile terminal remain static or proceed slowly state when, control GNSS moulds Block enters low power mode of operation.By using above-mentioned technical proposal, can in the case where saving mobile terminal manufacture cost, By AP and the cooperation of the acceleration transducer not comprising arithmetic logic detects the motion state of mobile terminal, and according to motion state Rationally adjustment GNSS module operating mode, when stationary state or proceed slowly state when, can control GNSS module enter it is low Power consumption operating mode, reduce GNSS module caused by power consumption, extend cruise duration of mobile terminal.
Description of the drawings
Fig. 1 is a kind of flow diagram of the control method based on locating module provided by the embodiments of the present application;
Fig. 2 is that a kind of current scene that detects provided by the embodiments of the present application is illustrated if appropriate for the flow that GNSS module works Figure;
Fig. 3 is the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 4 is the flow diagram of another control method based on locating module provided by the embodiments of the present application;
Fig. 5 is a kind of structure diagram of the control device based on locating module provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is appreciated that It is that specific embodiment described herein is used only for explaining the application rather than the restriction to the application.It further needs exist for illustrating , part relevant with the application rather than entire infrastructure are illustrated only for ease of description, in attached drawing.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing described as flow chart or method.Although each step is described as the processing of sequence, many of which by flow chart Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated during completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Fig. 1 be a kind of flow diagram of the control method based on locating module provided by the embodiments of the present application, this method It can be performed by the control device based on locating module, wherein the device can be generally integrated in by software and or hardware realization In mobile terminal.As shown in Figure 1, this method includes:
When step 101, GNSS module in the terminal are in normal mode of operation when by LBS application calls, lead to Cross the acceleration information in the horizontal direction that AP acquisition acceleration transducers generate.
Wherein, arithmetic logic is not included in the acceleration transducer.
Illustratively, the mobile terminal in the embodiment of the present application may include that mobile phone and tablet computer etc. are provided with GNSS and determine The mobile equipment of position module (abbreviation GNSS module).The embodiment of the present application is not construed as limiting the concrete type of GNSS module, can be with It is defended including global positioning system (Global Positioning System, GPS), Beidou satellite navigation system and Galileo Star navigation system (GALILEO) etc..
GNSS module power consumption in position fixing process is very big, influences the cruise duration of mobile terminal.Generally, in mobile terminal It can load and much be applied based on location-based service (Location Based Service, LBS), as electronic map class applies (such as hundred Spend map etc.), take out class application (such as U.S. group takes out), social class application (such as wechat), the application of information service class (such as masses Comment etc.) and GT grand touring application (such as taking journey) etc..When LBS applications are needed using positioning service, can send to GNSS The call request (namely the Location Request of GNSS positioning methods is initiated in LBS applications) of module, if agreeing to, the call request is (even same Anticipate the Location Request), then GNSS module will be activated and in normal mode of operation, search of satellite signal and obtain other Related data used for positioning, and then the location information (also known as location information) of mobile terminal is calculated, LBS is supplied to apply, LBS is using abundanter service is provided a user further according to location information, and after LBS applications, which are cancelled, calls, GNSS module is It can close.Whether the working condition of GNSS module reasonable, dependent on LBS application whether reasonable employment GNSS module, the relevant technologies Middle mobile terminal can't carry out management and control to the working condition for being in the GNSS module in LBS application call states so that GNSS There is the excessive situation of some power consumptions caused by due to improper use in module.
In the embodiment of the present application, in order to rationally control the work of GNSS module, can according to the motion state of mobile terminal come Determine the operating mode of GNSS module.At present, with the fast development of sensor technology, the type of sensor is more and more, work( Can be stronger and stronger, however cost is also higher and higher therewith.In the relevant technologies, mobile terminal generally has fortune using gyroscope etc. The advanced sensors of logic are calculated the motion state that detects mobile terminal or by adding sensor center (sensor hub) Mode combine the detection that sensor carries out motion state of mobile terminal, sensor hub have operational capability, can be to passing Sensor generate data calculated and analyzed, so as to obtain the advanced sensors such as the testing result of motion state, gyroscope or Final testing result can be sent to the processor in mobile terminal by sensor hub, so as to processor according to testing result Perform corresponding operation.However, for the mobile terminal of some low sides, in order to control manufacture cost, tend not to consider Addition gyroscope etc. has the advanced sensors of arithmetic logic or sensor hub so that these mobile terminals can not be based on existing Some modes realize the detection of motion state of mobile terminal.
Application processor (Application Processor, AP) is the most important processor in mobile terminal, mobile The system operation of terminal and the operation of application program, all rely on AP.In the embodiment of the present application, directly acquired by AP and do not wrapped Acceleration information caused by common acceleration transducer containing arithmetic logic in horizontal direction, and based on acquired sensing Device initial data carries out the operations such as operation and subsequent identification so that advanced sensors and the sensor such as not integrated gyroscope The low side mobile terminal of hub can realize the detection of motion state, and the work of GNSS module is rationally controlled based on motion state. Caused by the variation of position information of mobile terminal is by the movement in horizontal direction, it is only obtained in the embodiment of the present application Water intaking square upward acceleration information, can reduce data acquisition amount and calculation amount, so as to reduce power consumption.
Step 102 carries out integral operation by the AP to the acceleration information got in preset duration.
Illustratively, the integral operation can be time-domain integration or Frequency Domain Integration, can once integrate, Can also be quadratic integral, the embodiment of the present application does not limit.Speed that the result of integral operation can be horizontally oriented, position Move or with speed or the relevant data of displacement, will be illustrated by taking the displacement of horizontal direction as an example below.The embodiment of the present application Specific arithmetic operation details is not limited.Subsequent judgement for convenience, the result of integral operation can be absolute value shape The data of formula.
Wherein, the concrete numerical value of preset duration can be set according to actual demand, such as can be 5 seconds.Optionally, when presetting Length can determine the prediction result of user behavior according to mobile terminal.Illustratively, it is with default measurement period (such as one day) Unit is counted or is learnt to the movement locus of mobile terminal, if determining that user is current according to statistical result or learning outcome The first probability that period residing for moment remains static is higher than the first predetermined probabilities threshold value (such as 80%), then sets preset duration It is set to the first preset duration (such as 5 seconds);If first probability is less than or equal to the first predetermined probabilities threshold value, by preset duration The second preset duration (such as 10 seconds) of the first preset duration is set greater than, to extend the time of integration, improves motion state detection As a result accuracy.It is understood that more predetermined probabilities threshold values and more preset durations can also be set, it is real Now dynamic adjustment preset duration.
Step 103 determines whether the mobile terminal is default in the first preset state, described first according to operation result State includes stationary state and/or the state that proceeds slowly.
When mobile terminal remains static or proceed slowly state, the position of mobile terminal is almost unchanged or changes very It is small, if GNSS module is in the normal mode of operation, it can ceaselessly carry out satellite signal search and the operation of other located in connection, production Raw larger power consumption influences the cruise duration of mobile terminal.
Illustratively, when operation result is less than the first predetermined threshold value, determine that the mobile terminal remains static;When Operation result be greater than or equal to first predetermined threshold value, and less than the second predetermined threshold value when, determine that the mobile terminal is in Proceed slowly state.First predetermined threshold value and the second predetermined threshold value can be related to the mode of integral operation, when operation result is speed When spending, the first predetermined threshold value and the second predetermined threshold value are velocity amplitude, such as respectively 0.1 meter per second and 1 meter per second;When operation result is During displacement, the first predetermined threshold value and the second predetermined threshold value are shift value, such as respectively 0.5 meter and 5 meters.First predetermined threshold value and Concrete numerical value the embodiment of the present application of two predetermined threshold values does not limit.
Step 104, when determining that the mobile terminal is in first preset state, the GNSS module is controlled to enter Low power mode of operation.
In the embodiment of the present application, determine mobile terminal remain static or proceed slowly state when, if GNSS module Efficient normal operating condition is still kept, power consumption is higher, and therefore, controllable GNSS module enters low power mode of operation, saves Unnecessary positioning action reduces the system power dissipation of mobile terminal.
In the embodiment of the present application, control the specific implementation that the GNSS module enters low power mode of operation that can have Many kinds, the embodiment of the present application do not limit.Illustratively, GNSS module can be closed, such as stops supplying GNSS module Electricity, the advantages of this arrangement are as follows, positioning function can thoroughly be closed, avoid power consumption caused by GNSS module.It is also controllable GNSS module enters dormant state, and can stop search the relevant operations such as satellite-signal, the advantages of this arrangement are as follows, GNSS module It is stopped, GNSS module can be reduced because of power consumption caused by positioning, and when being positioned, can quickly recovered to just Normal working condition.Also controllable GNSS module reduces the frequency for performing positioning relevant operation, such as can reduce search of satellite The frequency of signal can also reduce the frequency to application layer reporting position information.The correlator in GNSS module can also be controlled The channel and the stopping processing of control correlation unit for closing preset number are closed the corresponding signal of channel or data, present count Mesh can be fixed value or variable determines according to actual conditions.The advantages of this arrangement are as follows positioning function is still It can use, when mobile terminal occurs mobile, can timely update location information, while also be able to reduce power consumption.In addition, it can also adopt Low power mode of operation is realized with the modes such as positioning accuracy are such as reduced, and the application does not limit.
In order to facilitate the technical solution for understanding the embodiment of the present application, correlator is simply introduced below.It is mobile whole GNSS module in end includes receiver rf front-end, correlator and base band and resolves control unit, is generally comprised in correlator more A channel, it can be common that 12 channels and 20 channels (the embodiment of the present application does not limit total number of channels), it is worked in GNSS module Cheng Zhong, whole channels in correlator both participate in operation.The radiofrequency signal of satellite-signal is after antenna receives, before radio frequency reception After end is amplified the processing such as filtering, mixing and sampling, it is sent into correlator and carries out related operation.During related operation, The locality reproduction carrier multiplication that signal generates first with correlator, which is realized, to be demodulated, and is divided into after divesting carrier wave with phase and orthorhombic phase two Road, then the realization despreading that is multiplied respectively with locality reproduction code, send the data to base band resolving control unit and do base after integrated dump Tape handling, it is final to obtain satellite navigation message and location information.Meanwhile base band resolve control unit by by carrier tracking loop and Carrier frequency control word and code frequency control word Real-time Feedback that code tracking loop calculates return the digital controlled oscillator in correlator, real Real-time capture and tracking of the existing correlator loop to satellite-signal.As it can be seen that each channel in correlator is both needed to carry out largely Operation will necessarily generate larger power consumption.In the embodiment of the present application, when GNSS module is controlled to enter low power mode of operation, Default control instruction can be sent from AP to GNSS module, GNSS module is made to instruct the present count for closing correlator according to default control Purpose channel and the stopping processing of control correlation unit are closed the corresponding signal of channel or data.Wherein, correlation unit can wrap Include data prediction with interrupt control unit, numerical control carrier oscillator, C/A codes (thick ranging code) generator, digital multiplier and Integrate dump unit and epoch counter etc..By the above-mentioned reducing power consumption mode taken, the power consumption that can generate correlator It is greatly reduced, it is demonstrated experimentally that the quantity of the logic gate included in GNSS module is reduced to 100,000 from 500,000 using aforesaid way, The power consumption of GNSS module can be effectively reduced.
Control method provided by the embodiments of the present application based on locating module, GNSS module in the terminal is because of quilt LBS application calls and in normal mode of operation when, pass through AP obtain acceleration transducer generate horizontal direction on acceleration Degrees of data, wherein, arithmetic logic is not included in the acceleration transducer;By AP to the acceleration that is got in preset duration Data carry out integral operation;Determine whether the mobile terminal is pre- in the first preset state, described first according to operation result If state includes stationary state and/or the state that proceeds slowly;When determining that the mobile terminal is in first preset state, The GNSS module is controlled to enter low power mode of operation.It, can be in the mobile terminal system of saving by using above-mentioned technical proposal In the case of causing this, by AP and the cooperation of the acceleration transducer not comprising arithmetic logic detects the movement shape of mobile terminal State, and rationally adjust according to motion state the operating mode of GNSS module, when stationary state or proceed slowly state when, controllably GNSS module processed enters low power mode of operation, reduce GNSS module caused by power consumption, extend cruise duration of mobile terminal.
In some embodiments, it is described when determining that the mobile terminal is in first preset state, described in control GNSS module enters low power mode of operation, including:When determining that the mobile terminal is in first preset state, judge Current scene works if appropriate for the GNSS module;If being not suitable for, the GNSS module is controlled to enter low-power consumption Working mould Formula.The advantages of this arrangement are as follows when mobile terminal remains static or proceeds slowly state, it is also possible to be converted at any time Other positions change faster motion state, can be to working as front court residing for mobile terminal in order to ensure the timeliness of positioning function Scape is judged, if current scene is not suitable for GNSS module work, even if illustrating that GNSS module is in normal mode of operation, also very It possibly can not position or positioning result is insincere, therefore, controllable GNSS module enters low power mode of operation, such as closes GNSS module.
Illustratively, being not suitable for the scene of GNSS module work can seal including such as indoor environment or other closings or half In closed loop border, such as in tunnel and under overpass.Optionally, judge that current scene works if appropriate for the GNSS module, It may include judging whether current scene is indoor scene, if indoor scene, it is determined that be not suitable for GNSS module work.Judgement is The no mode for indoor scene has very much, and the embodiment of the present application is not specifically limited.For example, pass through GNSS module or other positioning Mode (such as base station location mode or network positions mode) positions current location, and obtaining corresponding weather according to current location believes Breath acquires weather dependent data, by the weather dependent data acquired and the day by the default sensor in mobile terminal Whether gas information is compared, judge the mobile terminal in indoor environment according to comparison result.Further, it is described by institute The weather dependent data of acquisition is compared with the Weather information, including:It obtains pre- in acquired weather dependent data If the sampled value of project;The sampled value is compared with corresponding to the standard value of the preset term in the Weather information; Wherein, the preset term includes any one in gas epidemic disaster, intensity of illumination, uitraviolet intensity, wind-force and air quality It is a or multiple.By taking preset term includes temperature as an example, the temperature value included in Weather information is the standard value of outdoor temperature, mobile Terminal can acquire the sampled value that environment temperature is used as temperature by built-in temperature sensor.Generally, the isolation due to wall The presence of effect so that indoor and outdoor temperature is there are difference, especially at summer and winter or more severe outdoor weather (such as Rainy days or wind are bigger etc.), the temperature difference of indoor and outdoor is larger, because when weather is warmmer or colder, using air-conditioning or confession Temperature is adjusted in heating equipment etc., and indoor temperature can be caused to be different from outdoor temperature, if sampled value differs larger with standard value, Explainable mobile terminal is in indoor environment.For example, the current location of positioning is Tianjin peace zone, Tianjin peace is got The temperature in area be 4 degrees Celsius, then standard value be 4, and if mobile terminal indoors, indoor environment is warmer, sampled value may It is 20, it is seen that sampled value and standard value difference are larger, it may be determined that mobile terminal is in interior.
Illustratively, can also be judged according to the number of satellite and satellite signal strength that GNSS module current search arrives current Scene works if appropriate for GNSS module.Optionally, judge whether is satellite information Satellite quantity that GNSS module currently obtains Meet positioning requirement, the signal strength of satellite whether meet positioning needed for intensity, can if wherein any one is unsatisfactory for Think that current scene is not suitable for GNSS module work.Specifically, when judging the satellite information centre halfback that GNSS module currently obtains When star number is less than the CN values of default minimum satellite vehicle number or satellite-signal less than preset signal strength threshold value, it is believed that work as front court Scape is not suitable for GNSS module work.Wherein, CN values refer to the power ratio of carrier wave and noise, for weighing the intensity of satellite-signal. Optionally, minimum satellite vehicle number is 4, and preset signal strength threshold value is 8.
Illustratively, can the satellite information that acquires of GNSS module described in timing acquisition, and in the satellite information currently obtained When identical with the satellite information that the last time obtains, the value of pre-set environmental parameter is added 1, the environmental parameter it is initial Value is 0;When the value of the environmental parameter obtained in preset time is more than default environmental parameter threshold value, determine current scene not It is suitble to GNSS module work.Further, when the satellite information currently obtained is differed with the upper satellite information once obtained, If the intensity value of satellite information Satellite signal currently obtained is less than preset signal strength threshold value, and the satellite letter currently obtained Number of satellites in breath is less than default value, then the value of environmental parameter is added 1;Otherwise, it determines current scene is suitble to GNSS moulds Block works.
In some embodiments, current scene can be determined as follows to work if appropriate for GNSS module.Fig. 2 is this The flow diagram that a kind of detection current scene that application embodiment provides works if appropriate for GNSS module, as shown in Fig. 2, inspection Current scene is surveyed if appropriate for GNSS module work to specifically comprise the following steps:
Step 201, initialization context parametric variable STimer=0.
Step 202, the satellite information for obtaining GNSS module acquisition.
Whether the satellite information that step 203, judgement currently obtain and the satellite information that the last time obtains are identical, if so, Perform step 205;Otherwise, step 204 is performed.
Step 204 judges whether that the CN values of satellite information Satellite signal currently obtained are less than preset signal strength threshold Value MIN_VALUE, and number of satellites is less than default minimum satellite vehicle number MIN_NUM, if so, performing step 205;Otherwise, it performs Step 207.
Step 205, STimer values add 1.
Step 206 judges whether STimer is more than default environmental parameter threshold value MAX_NUM, if so, step 208 is performed, Terminate flow;Otherwise, it returns and performs step 202.
Wherein, the concrete numerical value of MAX_NUM does not limit, such as can be 5.
Step 207 reinitializes STimer=0, and returns and perform step 202.
Illustratively, illustrate that GNSS module at this time can realize positioning, so current scene is suitble to GNSS module to work.
Step 208 determines that current scene is not suitable for GNSS module work.
By above-mentioned steps shown in Fig. 2, current scene can be accurately determined out and worked if appropriate for GNSS module.
In some embodiments, the GNSS module can be controlled to enter low-power consumption in different ways according to actual conditions Operating mode.Illustratively, it before the control GNSS module enters low power mode of operation, further includes:Obtain institute State the type information of LBS applications;The control GNSS module enters low power mode of operation, including:According to the type Information and the mobile terminal state in which determine the targeted manner that the GNSS module is controlled to enter low power mode of operation, And the GNSS module is controlled to enter low power mode of operation according to the targeted manner.The advantages of this arrangement are as follows simultaneous In the case of the location requirement for caring for different types of LBS applications, the reducing power consumption mode of GNSS module is enriched.
Wherein, the type information of LBS applications can include electronic map class application (such as Baidu map), traffic class (such as Ooze row or rub and visit bicycle etc.), take out class application (such as U.S. group take out), social class using (such as wechat), information service Class application (such as public comment), GT grand touring application (such as taking journey), video class application program (such as iqiyi.com), game class application Program (such as king's honor), text class application program (such as office), can classify, no according to different classification policies Same classification policy may correspond to different classification results.Wherein, the type information of LBS applications can reflect the application program pair The height of positioning accuracy request.If navigation type application program is higher to positioning accuracy request, rubs and visit bicycle, vehicle has come etc. using journey Ordered pair positioning accuracy request is also higher.These application programs not only need accurately to obtain the city residing for user, in city Each region, street information in region or even will also accurately acquire latitude and longitude information.And information service class application program, The application programs such as game class and camera are relatively low to positioning accuracy request.These application programs relatively low to positioning accuracy request only obtain Take each region in the city or city residing for family, it is possible to provide preferable service to the user.
Further, it is described to determine to control the GNSS according to the type information and the mobile terminal state in which Module enters the targeted manner of low power mode of operation, including:When the type information is the first preset kind, and the movement When terminal remains static, determine that the control GNSS module enters the targeted manner of low power mode of operation for described in closing GNSS module;When the type information is the second preset kind, and the mobile terminal remains static, control institute is determined GNSS module is stated to enter the targeted manner of low power mode of operation the GNSS module enters dormant state in order to control;When the class Type information is the first preset kind, and the mobile terminal is in when proceeding slowly state, determine the control GNSS module into Enter the targeted manner of low power mode of operation in order to control the GNSS module close correlator the first preset number channel, with And the stopping processing of control correlation unit is closed the corresponding signal of channel or data;When the type information is the second default class Type, and the mobile terminal is in when proceeding slowly state, determines that the control GNSS module enters low power mode of operation The GNSS module closes the channel of the second preset number of correlator and control correlation unit stopping to targeted manner in order to control Processing is closed the corresponding signal of channel or data.
Wherein, the positioning accuracy that the corresponding LBS applications of first preset kind need is less than second preset kind The positioning accuracy that corresponding LBS applications need, first preset number are more than second preset number.What is set in this way is good It is in can be determining to integrate with reference to demand of the motion state and application program for specifically needing reducing power consumption to positioning accuracy By the way of any reducing power consumption.It is understood that in the third above-mentioned situation and the 4th kind of situation, GNSS moulds are controlled Correlator in the block closes the channel of preset number and the stopping processing of control correlation unit be closed the corresponding signal of channel or The mode of data, also can be replaced other modes, and GNSS module is controlled to reduce as previously described and performs positioning relevant operation Frequency.
Illustratively, the first preset kind and the second preset kind can be set by system default, also can independently be set by user It puts.It, can also be by history use habit of the mobile terminal to user's sample and corresponding scene information when being set by system default It is counted or is learnt and generate formulation.For example, the embodiment of the present application may also include:User is used according to predetermined period different The historical custom data of the application program of type are counted or are learnt;Determine that first is default according to statistical result or learning outcome Type and the second preset kind.As it was noted above, different classes of LBS apply to positioning accuracy request difference, can will to positioning The not high LBS application types of required precision are ranged in the first preset kind, by the LBS application class higher to positioning accuracy request Type is ranged in the second preset kind.
Specifically, the historical custom data include the number of invocation map picture, the frequency refreshed to map picture Rate, the number of manual correction position and actively open in the numbers of GNSS positioning functions at least one of.User use should During with program, application program can be operated according to the demand of oneself, when user carries out aforesaid operations, can said Bright user is higher to the positioning accuracy request of the application program, and it is higher to positioning accuracy request to further relate to the application program.It can With understanding, the number of application call map picture is more, illustrates that user is frequently necessary to understand by invocation map Detailed location information residing for mobile terminal further illustrates that the application program is higher to positioning accuracy request;Application program The frequency refreshed to map picture is higher, illustrates that the location information that the application program obtains cannot meet user demand, such as The location information precision that location information is incorrect or application program obtains that application program obtains is inadequate, by constantly right Map picture is refreshed, and to obtain correct, accurate location information, further illustrates that the application program will to positioning accuracy Ask higher;When application program is positioned, the position of user's frequent manual correction application program positioning or user entangle manually The number of positive position is more, illustrates that the location information that the application program obtains cannot meet user demand, as application program obtains The location information precision that location information is incorrect or application program obtains it is inadequate or even application program is by repeatedly calling Map picture or frequent ground-to-ground picture face are refreshed, and can not also meet the requirement of user, at this point, user is actively manual Location information is corrected, further illustrates that the application program is higher to positioning accuracy request;When application program is positioned, Yong Hujing The number of normal manually opened GNSS positioning functions or unlatching GNSS positioning functions is more, illustrates that user it is expected the application program It is directly positioned, and is not intended to through network positions, base station location or indigo plant by the higher GNSS positioning methods of positioning accuracy The relatively low positioning methods of positioning accuracies such as tooth positioning are positioned, and further illustrate that the application program gets over positioning accuracy request It is high.Respectively in user's sample, the number of each application call map picture, the frequency refreshed to map picture, The number of manual correction position and the number for actively opening GNSS positioning functions carry out statistical learning, determine to positioning accuracy It is required that relatively low LBS applications and the LBS application higher to positioning accuracy request, and then determine that the first preset kind and second is preset Type.
In some embodiments, it after the GNSS module is controlled to enter low power mode of operation, further includes:It repeats logical Cross the operation for the acceleration information that the AP is obtained in the horizontal direction that the acceleration transducer generates;Determining the movement When terminal is in the second preset state, the GNSS module is controlled to enter normal mode of operation, wherein, second preset state For the motion state except first preset state.Specifically, continuing through AP obtains the level that acceleration transducer generates Acceleration information on direction carries out integral operation, according to operation result by AP to the acceleration got in preset duration Determine that the mobile terminal whether in the first preset state, if being not in, controls GNSS module to enter normal mode of operation. The advantages of this arrangement are as follows after control GNSS module enters low power mode of operation, continue to judge motion state, Jin Ershi When grasp motion state of mobile terminal variation, when being not in the first preset state, illustrate that mobile terminal has occurred faster Mobile, position change is larger, is manually operated without user, the automatic normal mode of operation for restoring GNSS module, fixed to ensure The precision of position result and accuracy.
Fig. 3 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, is such as schemed Shown, this method includes:
Step 301 detects GNSS module in mobile terminal when by LBS application calls in normal mode of operation.
Step 302 passes through the acceleration information in the horizontal direction of AP acquisition acceleration transducer generations.
Step 303 carries out integral operation by AP to the acceleration information got in preset duration.
Step 304 determines whether mobile terminal remains static according to operation result, if so, performing step 305; Otherwise, return to step 302.
Step 305 judges that current scene works if appropriate for GNSS module, and step 302 is performed if so, returning;Otherwise, Perform step 306.
Step 306 closes GNSS module.
Step 307 continues through AP and obtains acceleration information in the horizontal direction that acceleration transducer generates, to default The acceleration information got in duration carries out integral and calculating.
Step 308 determines whether mobile terminal switches to motion state according to operation result, if so, performing step 309;Otherwise, it returns and performs step 307.
Step 309, control GNSS module enter normal mode of operation.
Control method provided by the embodiments of the present application based on locating module, it is applied widely, it is applicable to low side machine The mobile terminal of type saves manufacture cost, and by AP and the cooperation detection of the acceleration transducer not comprising arithmetic logic is mobile eventually The motion state at end, when remaining static, detection current scene works if appropriate for GNSS module, in unsuitable GNSS moulds Block closes GNSS module when working, and can reduce the power consumption of mobile terminal, extends stand-by time, after GNSS module is closed, uses Same mode continues to detect motion state, when entering motion state, reopens GNSS module, makes GNSS module extensive in time Multiple normal operating mode provides accurate location information for LBS applications.
Fig. 4 is the flow diagram of another control method based on locating module provided by the embodiments of the present application, is such as schemed Shown, this method includes:
Step 401 detects GNSS module in mobile terminal when by LBS application calls in normal mode of operation.
Step 402 passes through the acceleration information in the horizontal direction of AP acquisition acceleration transducer generations.
Step 403 carries out integral operation by AP to the acceleration information got in preset duration.
Step 404 determines whether mobile terminal remains static or proceed slowly state according to operation result, if so, Then perform step 405;Otherwise, it returns and performs step 402.
Step 405, the type information for obtaining LBS applications, the motion state according to residing for type information and mobile terminal are true Surely control GNSS module enters the mode of low power mode of operation.
Step 406, when type information is the first preset kind, and when mobile terminal remains static, close GNSS moulds Block.
Step 407, when type information is the second preset kind, and when mobile terminal remains static, control GNSS moulds Block enters dormant state.
Step 408, when type information be the first preset kind, and mobile terminal be in proceed slowly state when, control GNSS module closes the channel of the first preset number of correlator and the stopping processing of control correlation unit is closed channel correspondence Signal or data.
Step 409, when type information be the second preset kind, and mobile terminal be in proceed slowly state when, control GNSS module closes the channel of the second preset number of correlator and the stopping processing of control correlation unit is closed channel correspondence Signal or data.
Wherein, the positioning accuracy that the corresponding LBS applications of first preset kind need is less than second preset kind The positioning accuracy that corresponding LBS applications need, first preset number are more than second preset number.
Step 410 continues through AP and obtains acceleration information in the horizontal direction that acceleration transducer generates, to default The acceleration information got in duration carries out integral and calculating.
Whether step 411 determines mobile terminal according to operation result in the second preset state, if so, performing step 412;Otherwise, it returns and performs step 410.
Step 412, control GNSS module enter normal mode of operation.
It should be noted that after step 405 is performed, one is selected from step 406- steps 409 according to actual conditions and held Then row performs step 410.
Control method provided by the embodiments of the present application based on locating module, it is applied widely, it is applicable to low side machine The mobile terminal of type saves manufacture cost, and by AP and the cooperation detection of the acceleration transducer not comprising arithmetic logic is mobile eventually The motion state at end, when determining to need that GNSS module is controlled to enter low power mode of operation according to motion state, according to calling GNSS module LBS application type information and mobile terminal specific motion state determine how control GNSS module enter it is low Power consumption operating mode in the case of the location requirement for taking into account different types of LBS applications, more reasonably controls GNSS module Reducing power consumption.
Fig. 5 is a kind of structure diagram of the control device based on locating module provided by the embodiments of the present application, which can By software and or hardware realization, be typically integrated in mobile terminal, can by perform based on the control method of locating module come pair GNSS module in mobile terminal is controlled.As shown in figure 5, the device includes:
Acceleration information acquisition module 501, for Global Satellite Navigation System GNSS module in the terminal because of quilt When normal mode of operation is in based on location-based service LBS application calls, acceleration transducer is obtained by application processor AP Acceleration information in the horizontal direction of generation, wherein, arithmetic logic is not included in the acceleration transducer;
Computing module 502, for carrying out integral operation to the acceleration information got in preset duration by the AP;
State determining module 503, for determining whether the mobile terminal is in the first preset state according to operation result, First preset state includes stationary state and/or the state that proceeds slowly;
Positioning control module 504, for when determining that the mobile terminal is in first preset state, described in control GNSS module enters low power mode of operation.
The control device based on locating module provided in the embodiment of the present application, GNSS module in the terminal is because of quilt LBS application calls and in normal mode of operation when, pass through AP obtain acceleration transducer generate horizontal direction on acceleration Degrees of data, wherein, arithmetic logic is not included in the acceleration transducer;By AP to the acceleration that is got in preset duration Data carry out integral operation;Determine whether the mobile terminal is pre- in the first preset state, described first according to operation result If state includes stationary state and/or the state that proceeds slowly;When determining that the mobile terminal is in first preset state, The GNSS module is controlled to enter low power mode of operation.It, can be in the mobile terminal system of saving by using above-mentioned technical proposal In the case of causing this, by AP and the cooperation of the acceleration transducer not comprising arithmetic logic detects the movement shape of mobile terminal State, and rationally adjust according to motion state the operating mode of GNSS module, when stationary state or proceed slowly state when, controllably GNSS module processed enters low power mode of operation, reduce GNSS module caused by power consumption, extend cruise duration of mobile terminal.
Optionally, it is described to determine whether the mobile terminal is in the first preset state according to operation result, including:
When operation result is less than the first predetermined threshold value, determine that the mobile terminal remains static;
When operation result is greater than or equal to first predetermined threshold value, and is less than the second predetermined threshold value, the shifting is determined Dynamic terminal is in the state that proceeds slowly.
Optionally, it is described when determining that the mobile terminal is in first preset state, control the GNSS module Into low power mode of operation, including:
When determining that the mobile terminal is in first preset state, judge current scene if appropriate for the GNSS Module works;
If being not suitable for, the GNSS module is controlled to enter low power mode of operation.
Optionally, the control GNSS module enters low power mode of operation, including:
Close the GNSS module;Or,
The GNSS module is controlled to enter dormant state;Or,
The GNSS module is controlled to close the channel of the preset number of correlator and control correlation unit stopping processing quilt The corresponding signal of closing passage or data.
Optionally, which further includes:
Type information acquisition module, for before the control GNSS module enters low power mode of operation, obtaining Take the type information of the LBS applications;
The control GNSS module enters low power mode of operation, including:
It is determined that the GNSS module is controlled to enter low work(according to the type information and the mobile terminal state in which The targeted manner of work consuming operation mode, and the GNSS module is controlled to enter low power mode of operation according to the targeted manner.
Optionally, it is described to determine to control the GNSS moulds according to the type information and the mobile terminal state in which Block enters the targeted manner of low power mode of operation, including:
When the type information is the first preset kind, and the mobile terminal remains static, control institute is determined It states GNSS module and enters the targeted manner of low power mode of operation to close the GNSS module;
When the type information is the second preset kind, and the mobile terminal remains static, control institute is determined GNSS module is stated to enter the targeted manner of low power mode of operation the GNSS module enters dormant state in order to control;
When the type information is the first preset kind, and the mobile terminal is in when proceeding slowly state, determines control It makes the GNSS module and enters the targeted manner of low power mode of operation closes correlator in the GNSS module in order to control the The channel of one preset number and the stopping processing of control correlation unit are closed the corresponding signal of channel or data;
When the type information is the second preset kind, and the mobile terminal is in when proceeding slowly state, determines control It makes the GNSS module and enters the targeted manner of low power mode of operation closes correlator in the GNSS module in order to control the The channel of two preset numbers and the stopping processing of control correlation unit are closed the corresponding signal of channel or data;
Wherein, the positioning accuracy that the corresponding LBS applications of first preset kind need is less than second preset kind The positioning accuracy that corresponding LBS applications need, first preset number are more than second preset number.
Optionally, the acceleration information acquisition module is additionally operable to:Enter low-power consumption work controlling the GNSS module After pattern, the behaviour for the acceleration information that the AP is obtained in the horizontal direction that the acceleration transducer generates is iterated through Make;
The positioning control module is additionally operable to:When determining that the mobile terminal is in the second preset state, described in control GNSS module enters normal mode of operation, wherein, second preset state is the movement shape except first preset state State.
The embodiment of the present application also provides a kind of storage medium for including computer executable instructions, and the computer can perform When being performed by computer processor for performing the control method based on locating module, this method includes for instruction:
When GNSS module in the terminal is in normal mode of operation when by LBS application calls, obtained by AP The acceleration information in horizontal direction that acceleration transducer generates, wherein, it is patrolled in the acceleration transducer not comprising operation Volume;
Integral operation is carried out to the acceleration information got in preset duration by the AP;
Whether the mobile terminal is determined in the first preset state according to operation result, first preset state includes Stationary state and/or the state that proceeds slowly;
When determining that the mobile terminal is in first preset state, the GNSS module is controlled to enter low-power consumption work Operation mode.
Storage medium --- any various types of memory devices or storage device.Term " storage medium " is intended to wrap It includes:Install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (example Such as hard disk or optical storage);Memory component of register or other similar types etc..Storage medium can further include other types Memory or combination.In addition, storage medium can be located at program in the first computer system being wherein performed or It can be located in different second computer systems, second computer system is connected to the first meter by network (such as internet) Calculation machine system.Second computer system can provide program instruction and be used to perform to the first computer.Term " storage medium " can With include may reside in different location (such as in different computer systems by network connection) two or more Storage medium.Storage medium can store the program instruction that can be performed by one or more processors and (such as be implemented as counting Calculation machine program).
Certainly, a kind of storage medium for including computer executable instructions that the embodiment of the present application is provided, computer The positioning action that executable instruction is not limited to the described above, can also be performed that the application any embodiment provided based on positioning Relevant operation in the control method of module.
The embodiment of the present application provides a kind of mobile terminal, and it is provided by the embodiments of the present application fixed to be integrated in the mobile terminal Position device.Fig. 6 is a kind of structure diagram of mobile terminal provided by the embodiments of the present application.Mobile terminal 600 can include:It deposits Reservoir 601, GNSS module 602 and are stored on memory 601 and can be run in application processor 603 application processor 603 Realized when computer program, the application processor 603 perform the computer program as described in the embodiment of the present application based on The control method of locating module.
Mobile terminal provided by the embodiments of the present application can pass through AP in the case where saving mobile terminal manufacture cost The motion state of mobile terminal is detected, and rationally adjust according to motion state with the acceleration transducer cooperation not comprising arithmetic logic The operating mode of whole GNSS module, when stationary state or proceed slowly state when, controllable GNSS module enters low-power consumption work Operation mode, reduce GNSS module caused by power consumption, extend cruise duration of mobile terminal.
Fig. 7 is the structure diagram of another mobile terminal provided by the embodiments of the present application, which can include: Housing (not shown), memory 701, GPS chip (not shown), application processor AP702, circuit board are (in figure not Show) and power circuit (not shown).The circuit board is placed in the space interior that the housing surrounds;The AP702 It is arranged on the circuit board with the memory 701;The power circuit, for each circuit for the mobile terminal or Device is powered;The memory 701, for storing executable program code;The AP702 is by reading the memory 701 The executable program code of middle storage runs computer program corresponding with the executable program code, to realize following walk Suddenly:
When GNSS module in the terminal is in normal mode of operation when by LBS application calls, obtained by AP The acceleration information in horizontal direction that acceleration transducer generates, wherein, it is patrolled in the acceleration transducer not comprising operation Volume;
Integral operation is carried out to the acceleration information got in preset duration by the AP;
Whether the mobile terminal is determined in the first preset state according to operation result, first preset state includes Stationary state and/or the state that proceeds slowly;
When determining that the mobile terminal is in first preset state, the GNSS module is controlled to enter low-power consumption work Operation mode.
The mobile terminal further includes:Peripheral Interface 703, RF (Radio Frequency, radio frequency) circuit 705, audio-frequency electric Road 706, loud speaker 711, power management chip 708, input/output (I/O) subsystem 709, other input/control devicess 710, Touch screen 712, other input/control devicess 710 and outside port 704, these components pass through one or more communication bus Or signal wire 707 communicates.
It should be understood that diagram mobile terminal 700 is only an example of mobile terminal, and mobile terminal 700 Can have than more or less components shown in figure, two or more components can be combined or can be with It is configured with different components.Various parts shown in figure can be including one or more signal processings and/or special Hardware, software including integrated circuit are realized in the combination of hardware and software.
The mobile terminal provided in this embodiment for being controlled locating module is described in detail below, it should Mobile terminal is by taking mobile phone as an example.
Memory 701, the memory 701 can be by access such as AP702, Peripheral Interfaces 703, and the memory 701 can To include high-speed random access memory, nonvolatile memory can also be included, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to AP702 and deposited by Peripheral Interface 703, the Peripheral Interface 703 Reservoir 701.
I/O subsystems 709, the I/O subsystems 709 can be by the input/output peripherals in equipment, such as touch screen 712 With other input/control devicess 710, it is connected to Peripheral Interface 703.I/O subsystems 709 can include 7091 He of display controller For controlling one or more input controllers 7092 of other input/control devicess 710.Wherein, one or more input controls Device 7092 processed receives electric signal from other input/control devicess 710 or sends electric signal to other input/control devicess 710, Other input/control devicess 710 can include physical button (pressing button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.What deserves to be explained is input controller 7092 can with it is following any one connect:Keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 712, the touch screen 712 are the input interface and output interface between customer mobile terminal and user, Visual output is shown to user, visual output can include figure, text, icon, video etc..
Display controller 7091 in I/O subsystems 709 receives electric signal from touch screen 712 or is sent out to touch screen 712 Electric signals.Touch screen 712 detects the contact on touch screen, and the contact detected is converted to and shown by display controller 7091 The interaction of user interface object on touch screen 712, that is, realize human-computer interaction, the user interface being shown on touch screen 712 Icon that object can be the icon of running game, be networked to corresponding network etc..What deserves to be explained is equipment can also include light Mouse, light mouse are the extensions for not showing the touch sensitive surface visually exported or the touch sensitive surface formed by touch screen.
RF circuits 705 are mainly used for establishing the communication of mobile phone and wireless network (i.e. network side), realize mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuits 705 receive and send RF letters Number, RF signals are also referred to as electromagnetic signal, and RF circuits 705 convert electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuits 705 can include performing The known circuit of these functions includes but not limited to antenna system, RF transceivers, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 706 is mainly used for receiving audio data from Peripheral Interface 703, which is converted to telecommunications Number, and the electric signal is sent to loud speaker 711.
Loud speaker 711 for the voice signal for receiving mobile phone from wireless network by RF circuits 705, is reduced to sound And play the sound to user.
Power management chip 708, the hardware for being connected by AP702, I/O subsystem and Peripheral Interface be powered and Power management.
Positioning device, storage medium and the mobile terminal provided in above-described embodiment can perform the application any embodiment institute The control method based on locating module provided has and performs the corresponding function module of this method and advantageous effect.Not above-mentioned The technical detail of detailed description in embodiment, reference can be made to the controlling party based on locating module that the application any embodiment is provided Method.
Note that it above are only the preferred embodiment of the application and institute's application technology principle.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, can carry out for a person skilled in the art it is various it is apparent variation, The protection domain readjusted and substituted without departing from the application.Therefore, although being carried out by above example to the application It is described in further detail, but the application is not limited only to above example, in the case where not departing from the application design, also It can include other more equivalent embodiments, and scope of the present application is determined by scope of the appended claims.

Claims (10)

1. a kind of control method based on locating module, which is characterized in that including:
Global Satellite Navigation System GNSS module in the terminal is when by based on location-based service LBS application calls in just During normal operating mode, the acceleration information in the horizontal direction of acceleration transducer generation is obtained by application processor AP, In, arithmetic logic is not included in the acceleration transducer;
Integral operation is carried out to the acceleration information got in preset duration by the AP;
Whether the mobile terminal is determined in the first preset state according to operation result, first preset state includes static State and/or the state that proceeds slowly;
When determining that the mobile terminal is in first preset state, the GNSS module is controlled to enter low-power consumption Working mould Formula.
2. according to the method described in claim 1, it is characterized in that, whether described determine the mobile terminal according to operation result In the first preset state, including:
When operation result is less than the first predetermined threshold value, determine that the mobile terminal remains static;
When operation result is greater than or equal to first predetermined threshold value, and is less than the second predetermined threshold value, determine described mobile whole End is in the state that proceeds slowly.
It is 3. according to the method described in claim 1, it is characterized in that, described when the determining mobile terminal is in described first in advance If during state, the GNSS module is controlled to enter low power mode of operation, including:
When determining that the mobile terminal is in first preset state, judge current scene if appropriate for the GNSS module Work;
If being not suitable for, the GNSS module is controlled to enter low power mode of operation.
4. according to the method described in claim 1, it is characterized in that, the control GNSS module enters low-power consumption Working mould Formula, including:
Close the GNSS module;Or,
The GNSS module is controlled to enter dormant state;Or,
The GNSS module is controlled to close the channel of the preset number of correlator and correlation unit stopping processing being controlled to be closed The corresponding signal of channel or data.
5. according to the method described in claim 4, it is characterized in that, enter low-power consumption work in the control GNSS module Before pattern, further include:
Obtain the type information of the LBS applications;
The control GNSS module enters low power mode of operation, including:
According to the type information and the mobile terminal state in which determine that the GNSS module is controlled to enter low-power consumption work The targeted manner of operation mode, and the GNSS module is controlled to enter low power mode of operation according to the targeted manner.
It is 6. according to the method described in claim 5, it is characterized in that, described according to the type information and mobile terminal institute The state at place determines the targeted manner that the GNSS module is controlled to enter low power mode of operation, including:
When the type information is the first preset kind, and the mobile terminal remains static, determine described in control GNSS module enters the targeted manner of low power mode of operation to close the GNSS module;
When the type information is the second preset kind, and the mobile terminal remains static, determine described in control GNSS module enters the targeted manner of low power mode of operation, and the GNSS module enters dormant state in order to control;
When the type information be the first preset kind, and the mobile terminal be in proceed slowly state when, determine control institute GNSS module is stated to enter the targeted manner of low power mode of operation the GNSS module closes the first default of correlator in order to control The channel of number and the stopping processing of control correlation unit are closed the corresponding signal of channel or data;
When the type information be the second preset kind, and the mobile terminal be in proceed slowly state when, determine control institute GNSS module is stated to enter the targeted manner of low power mode of operation the GNSS module closes the second default of correlator in order to control The channel of number and the stopping processing of control correlation unit are closed the corresponding signal of channel or data;
Wherein, the positioning accuracy that the corresponding LBS applications of first preset kind need is corresponded to less than second preset kind LBS application need positioning accuracy, first preset number be more than second preset number.
7. according to any methods of claim 1-6, which is characterized in that enter low-power consumption work controlling the GNSS module After operation mode, further include:
Iterate through the operation for the acceleration information that the AP is obtained in the horizontal direction that the acceleration transducer generates;
When determining that the mobile terminal is in the second preset state, the GNSS module is controlled to enter normal mode of operation, In, second preset state is the motion state except first preset state.
8. a kind of control device based on locating module, which is characterized in that including:
Acceleration information acquisition module, for Global Satellite Navigation System GNSS module in the terminal because by based on position When servicing LBS application calls and being in normal mode of operation, pass through application processor AP and obtain the water that acceleration transducer generates Square upward acceleration information, wherein, arithmetic logic is not included in the acceleration transducer;
Computing module, for carrying out integral operation to the acceleration information got in preset duration by the AP;
State determining module, for whether determining the mobile terminal in the first preset state according to operation result, described the One preset state includes stationary state and/or the state that proceeds slowly;
Positioning control module, for when determining that the mobile terminal is in first preset state, controlling the GNSS moulds Block enters low power mode of operation.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The control method based on locating module as described in any in claim 1-7 is realized during row.
10. a kind of mobile terminal, which is characterized in that including memory, Global Satellite Navigation System GNSS module, application processor On a memory and the computer program that can be run in the AP, when AP execution computer program, be realized for AP and storage The control method based on locating module as described in claim 1-7 is any.
CN201711327829.2A 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal Active CN108169775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711327829.2A CN108169775B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711327829.2A CN108169775B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Publications (2)

Publication Number Publication Date
CN108169775A true CN108169775A (en) 2018-06-15
CN108169775B CN108169775B (en) 2020-05-12

Family

ID=62525816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711327829.2A Active CN108169775B (en) 2017-12-13 2017-12-13 Control method and device based on positioning module, storage medium and mobile terminal

Country Status (1)

Country Link
CN (1) CN108169775B (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109239749A (en) * 2018-08-22 2019-01-18 深圳普创天信科技发展有限公司 Localization method, terminal and computer readable storage medium
CN109581437A (en) * 2018-12-07 2019-04-05 歌尔科技有限公司 A kind of wearable device and its localization method, device
CN110505580A (en) * 2019-08-14 2019-11-26 合肥科维特电气科技有限公司 A method of passing through LBS service auxiliary positioning vehicle
CN110907963A (en) * 2019-12-06 2020-03-24 Oppo广东移动通信有限公司 Satellite positioning engine control method and device and electronic equipment
CN111366954A (en) * 2018-12-26 2020-07-03 成都鼎桥通信技术有限公司 Control method and device for GPS satellite search in Android system
WO2020140922A1 (en) * 2019-01-02 2020-07-09 中国移动通信有限公司研究院 Location tracking method for mobile communication and low-power dissipation location tracking system
CN112637758A (en) * 2020-08-05 2021-04-09 华为技术有限公司 Equipment positioning method and related equipment thereof
CN112880686A (en) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 Object motion monitoring and positioning method, device and storage medium
CN114253385A (en) * 2020-09-25 2022-03-29 北京小米移动软件有限公司 Power consumption management method and device of mobile terminal and computer readable storage medium
CN114513752A (en) * 2021-12-30 2022-05-17 山东信通电子股份有限公司 Mobile terminal positioning control method, equipment and medium
WO2022116754A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Low-power-consumption positioning method and apparatus, and electronic device
CN114814268A (en) * 2022-04-13 2022-07-29 南京磁之汇电机有限公司 Motor rotating speed obtaining method, device and system and computer readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052861A (en) * 2004-11-05 2007-10-10 国际商业机器公司 Movement detection device and movement detection method
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN106855627A (en) * 2016-12-29 2017-06-16 湖南国科微电子股份有限公司 A kind of method for reducing GNSS receiver power consumption, device and receiver
CN106973150A (en) * 2017-03-16 2017-07-21 广东欧珀移动通信有限公司 Positioning precision level adjustment method, device and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052861A (en) * 2004-11-05 2007-10-10 国际商业机器公司 Movement detection device and movement detection method
CN104066163A (en) * 2014-04-24 2014-09-24 深圳市研强通信技术有限公司 Power consumption saving device, mobile terminal and power consumption saving method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system
CN105682198A (en) * 2016-01-13 2016-06-15 广东欧珀移动通信有限公司 Positioning control method and device of mobile terminal and mobile terminal
CN106855627A (en) * 2016-12-29 2017-06-16 湖南国科微电子股份有限公司 A kind of method for reducing GNSS receiver power consumption, device and receiver
CN106973150A (en) * 2017-03-16 2017-07-21 广东欧珀移动通信有限公司 Positioning precision level adjustment method, device and mobile terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109239749A (en) * 2018-08-22 2019-01-18 深圳普创天信科技发展有限公司 Localization method, terminal and computer readable storage medium
CN109581437A (en) * 2018-12-07 2019-04-05 歌尔科技有限公司 A kind of wearable device and its localization method, device
CN111366954B (en) * 2018-12-26 2023-11-24 成都鼎桥通信技术有限公司 GPS star searching control method and device in Android system
CN111366954A (en) * 2018-12-26 2020-07-03 成都鼎桥通信技术有限公司 Control method and device for GPS satellite search in Android system
WO2020140922A1 (en) * 2019-01-02 2020-07-09 中国移动通信有限公司研究院 Location tracking method for mobile communication and low-power dissipation location tracking system
CN110505580A (en) * 2019-08-14 2019-11-26 合肥科维特电气科技有限公司 A method of passing through LBS service auxiliary positioning vehicle
CN110907963A (en) * 2019-12-06 2020-03-24 Oppo广东移动通信有限公司 Satellite positioning engine control method and device and electronic equipment
CN112637758A (en) * 2020-08-05 2021-04-09 华为技术有限公司 Equipment positioning method and related equipment thereof
CN112637758B (en) * 2020-08-05 2022-09-09 华为技术有限公司 Equipment positioning method and related equipment thereof
CN114253385A (en) * 2020-09-25 2022-03-29 北京小米移动软件有限公司 Power consumption management method and device of mobile terminal and computer readable storage medium
WO2022116754A1 (en) * 2020-12-02 2022-06-09 中兴通讯股份有限公司 Low-power-consumption positioning method and apparatus, and electronic device
CN112880686A (en) * 2021-01-20 2021-06-01 湖南赫兹信息技术有限公司 Object motion monitoring and positioning method, device and storage medium
CN114513752A (en) * 2021-12-30 2022-05-17 山东信通电子股份有限公司 Mobile terminal positioning control method, equipment and medium
CN114513752B (en) * 2021-12-30 2024-02-27 山东信通电子股份有限公司 Mobile terminal positioning control method, mobile terminal positioning control equipment and mobile terminal positioning control medium
CN114814268A (en) * 2022-04-13 2022-07-29 南京磁之汇电机有限公司 Motor rotating speed obtaining method, device and system and computer readable storage medium

Also Published As

Publication number Publication date
CN108169775B (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN108169775A (en) Control method, device, storage medium and mobile terminal based on locating module
CN108093368A (en) Control method, device, storage medium and mobile terminal based on locating module
CN108076429A (en) Localization method, device, storage medium and mobile terminal
CN108055642B (en) Control method and device of positioning module, storage medium and mobile terminal
CN108008423B (en) Control method and device based on positioning module, storage medium and mobile terminal
CN102498706B (en) Mobile device battery management
CN107302638A (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN108076507A (en) Positioning method control method, device, storage medium and mobile terminal
US10623893B2 (en) Auto-resizing of geofences
CN105182385B (en) Geographic location monitoring method and equipment
US20070069946A1 (en) Systems and methods for position based services in a mobile device
CN109164477B (en) Application positioning method and mobile terminal
CN108168569A (en) Air navigation aid, device, storage medium, mobile terminal and onboard system
CN111316673A (en) Electronic fence updating method and communication device
CN209248468U (en) Mobile device for the position monitoring based on state
WO2019228630A1 (en) Collecting or triggering collecting positioning data for updating and/or generating a positioning map
CN108024209A (en) Position control method, device, storage medium and terminal device
CN109923506A (en) Information processing method and positioning chip, mobile terminal
CN108012237A (en) Position control method, device, storage medium and terminal device
US20140279786A1 (en) Application-controlled granularity for power-efficient classification
CN108093373A (en) Position control method, device, storage medium and terminal device
CN108020851A (en) Control method, device, storage medium and mobile terminal based on locating module
CN108040320B (en) GNSS positioning control method and device, storage medium and mobile terminal
CN108151730A (en) Position control method, device, storage medium and terminal device
CN108111580A (en) Area determination method, device, storage medium, mobile terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant