CN109375762A - A kind of method, apparatus and terminal reducing power consumption - Google Patents

A kind of method, apparatus and terminal reducing power consumption Download PDF

Info

Publication number
CN109375762A
CN109375762A CN201811134330.4A CN201811134330A CN109375762A CN 109375762 A CN109375762 A CN 109375762A CN 201811134330 A CN201811134330 A CN 201811134330A CN 109375762 A CN109375762 A CN 109375762A
Authority
CN
China
Prior art keywords
motion state
user
motion
sensor
position acquisition
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.)
Pending
Application number
CN201811134330.4A
Other languages
Chinese (zh)
Inventor
王春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201811134330.4A priority Critical patent/CN109375762A/en
Publication of CN109375762A publication Critical patent/CN109375762A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3287Power saving characterised by the action undertaken by switching off individual functional units in the computer system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2411Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on the proximity to a decision surface, e.g. support vector machines

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application provides a kind of method, apparatus and terminal for reducing power consumption, and method includes: the sensing data for obtaining terminal;The motion state of user is determined according to the sensing data;The corresponding position acquisition period is determined according to the motion state;The real time position of the user is obtained using the corresponding position acquisition period under different motion states;In this way, third party application is first determining different motion state, each motion state corresponding position acquisition period is recycled to obtain when obtaining the real time position of user;The scheme for obtaining user's real time position with the same position acquisition period always compared to the prior art in this way, can be substantially reduced the frequency of acquisition, and then can reduce the frequency for waking up terminal, the final stand-by power consumption for reducing terminal.

Description

A kind of method, apparatus and terminal reducing power consumption
Technical field
The present invention relates to field of communication technology more particularly to a kind of method, apparatus and terminal for reducing power consumption.
Background technique
Currently, battery has become crucial one of challenge using the time for the mobile terminals such as smart phone. Chief reason first is that the developer of third-party application develops the application for being largely used to mobile terminal, such as it is some for true The application program of warranty family safety, this application program can frequently wake up eventually due to needing in real time to position user End system carries out the acquisition of real time position, increases the stand-by power consumption of terminal.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method, apparatus and terminal of the reduction power consumption of problem.
The first aspect of the present invention provides a kind of method for reducing power consumption, which comprises
Obtain the sensing data of terminal;
The motion state of user is determined according to the sensing data;
The corresponding position acquisition period is determined according to the motion state;
The real time position of the user is obtained using the corresponding position acquisition period under different motion states.
Optionally, the sensing data for obtaining terminal, comprising:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
According to the acquisition sensor, method in the sensor manager object, obtain corresponding with preset sensor type Sensor object;
Corresponding sensing data is obtained from the sensor object.
Optionally, the sensing data includes: bearing data and acceleration information in predetermined period.
Optionally, the motion state that user is determined according to the sensing data, comprising:
The acceleration information is screened, the sample for obtaining the corresponding preset quantity of different motion state accelerates degree According to;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using support vector machines sorting algorithm, it is pre- to obtain motion state Survey model;
The motion state of the user is predicted using the motion state motion model.
Optionally, the sample motion feature includes: the average value of the sample acceleration information, variance, maximum value, most It is a variety of in small value and frequency.
Optionally, the method also includes:
It is being determined in corresponding position acquisition periodic process according to the motion state, according to each user in predetermined period Acceleration information, the corresponding reference acceleration for predicting each user;
The position acquisition period corresponding with the reference acceleration is adjusted according to the reference acceleration of each user.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be stationary state, determine the corresponding position acquisition period for no acquisition state.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be walking states, determine the corresponding position acquisition period be 40~60s.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be running state, determine the corresponding position acquisition period be 10~30s.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be cycling state, determine the corresponding position acquisition period be 8~15s.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be driving condition, determine the corresponding position acquisition period be 5~8s.
It is optionally, described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be unknown state, determine the corresponding position acquisition period be 90~100s.
Optionally, the method also includes:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, obtains the user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.
Optionally, the network signal if it does not exist, comprising: the reality of the user is obtained using global position system GPS When position.
The second aspect of the present invention, provides a kind of device for reducing power consumption, and described device includes:
First acquisition unit, for obtaining the sensing data of terminal;
First determination unit, for determining the motion state of user according to the sensing data;
Second determination unit, for determining the corresponding position acquisition period according to the motion state;
Second acquisition unit, for utilizing the corresponding position acquisition period to obtain the user under different motion states Real time position.
Optionally, the first acquisition unit is specifically used for:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
It is to get parms with preset sensor type, according to the acquisition sensor side in the sensor manager object Method obtains sensor object corresponding with preset sensor type;
Corresponding sensing data is obtained from the sensor object.
Optionally, the sensing data includes: bearing data and acceleration information in predetermined period.
Optionally, first determination unit is specifically used for:
The acceleration information is screened, the sample for obtaining the corresponding preset quantity of different motion state accelerates degree According to;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using SVM multi-classification algorithm, to obtain motion state prediction model;
The motion state of the user is predicted using the motion state motion model.
Optionally, the sample motion feature includes: the average value of the sample acceleration information, variance, maximum value, most It is a variety of in small value and frequency.
Optionally, described device further include: adjustment unit is used for:
It is being determined in corresponding position acquisition periodic process according to the motion state, according to each user in predetermined period Acceleration information, the corresponding reference acceleration for predicting each user;
The position acquisition period corresponding with the reference acceleration is adjusted according to the reference acceleration of each user.
Optionally, second determination unit is specifically used for: when the motion state is stationary state, corresponding position is obtained Take the period for no acquisition state.
Optionally, second determination unit is specifically used for: when the motion state be walking states, determine corresponding position It sets and obtains the period as 40~60s.
Optionally, second determination unit is specifically used for:
When the motion state be running state, determine the corresponding position acquisition period be 10~30s.
Optionally, second determination unit is specifically used for:
When the motion state be cycling state, determine the corresponding position acquisition period be 8~15s.
Optionally, second determination unit is specifically used for:
When the motion state be driving condition, determine the corresponding position acquisition period be 5~8s.
Optionally, second determination unit is specifically used for:
When the motion state be unknown state, determine the corresponding position acquisition period be 90~100s.
Optionally, the second acquisition unit is also used to:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, obtains the user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.
Optionally, the second acquisition unit is specifically used for: if it does not exist when the network signal, utilizing global positioning system System GPS obtains the real time position of the user.
The third aspect of the present invention provides a kind of computer readable storage medium, is stored thereon with computer program, special The step of sign is, any of the above-described the method is realized when which is executed by processor.
The fourth aspect of the present invention provides a kind of terminal for reducing power consumption, comprising:
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the place The program instruction that device executes is managed, the processor calls described program instruction to be able to carry out the step such as any of the above-described the method Suddenly.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
The embodiment of the present application provides a kind of method, apparatus and terminal for reducing power consumption, and method includes: to obtain the biography of terminal Sensor data;The motion state of user is determined according to the sensing data;Corresponding position is determined according to the motion state Obtain the period;The real time position of the user is obtained using the corresponding position acquisition period under different motion states;In this way, Third party application is first determining different motion state, recycles each motion state when obtaining the real time position of user What the corresponding position acquisition period obtained;User is obtained with the same position acquisition period always compared to the prior art in this way The scheme of real time position can be substantially reduced the frequency of acquisition, and then can reduce the frequency for waking up terminal, finally reduce terminal Stand-by power consumption.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the method flow schematic diagram according to an embodiment of the invention for reducing power consumption;
Fig. 2 shows the apparatus structure schematic diagrams according to an embodiment of the invention for reducing power consumption;
Fig. 3 shows terminal structure schematic diagram according to an embodiment of the invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
The embodiment of the invention provides a kind of method, apparatus and terminal for reducing power consumption, to solve the shifting of the prior art Dynamic terminal is due to the third party application that is mounted with, the technical issues of leading to the stand-by power consumption increase of terminal.
Embodiment one
The present embodiment provides a kind of methods for reducing power consumption, as shown in Figure 1, method includes:
S110 obtains the sensing data of terminal;
In the present embodiment, terminal may include some Intelligent mobile equipments such as smart phone, IPAD, and sensing data is general It may include: the exercise datas such as bearing data and acceleration information in predetermined period, predetermined period is generally 30 days.Because of terminal Usually with user, so the sensing data of terminal is also considered as the exercise data of user.
As a kind of optional embodiment, the sensing data of terminal is obtained, comprising:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
According to the acquisition sensor, method in the sensor manager object, obtain corresponding with preset sensor type Sensor object;
Corresponding sensing data is obtained from the sensor object.
Here, sub thread is the thread for acquiring sensing data, after sub thread establishes, is obtained using sub thread Sensor manager object SensorManager is previously provided with the side for obtaining sensor object in sensor manager object Method.
Because the sensor type in terminal includes a variety of, such as: gravity sensor, direction sensor, temperature sensor etc.. If therefore want to obtain certain type of sensing data, need with preset sensor type to be to get parms, according to sensing Acquisition sensor, method in device manager object obtains the corresponding sensor object of sensor type.
When getting sensor object, corresponding sensing data can be obtained from sensor object.Wherein, this implementation What the sensing data in example mainly included is three axis (x, y, z) acceleration information.But since 3-axis acceleration data include Two kinds: one is the acceleration generated due to constant gravity, another kind is the acceleration generated due to user movement;Therefore In order to improve the accuracy of data, as a kind of optional embodiment, after getting sensing data, comprising: to gravity The acceleration information of generation carries out noise reduction process, removes the interference of gravity.
Then sensing data is written in preset text file the 3-axis acceleration after noise reduction process, by text text Part is stored into local cache.
The wherein data format of sensing data are as follows: " timestamp, x-axis acceleration, y-axis acceleration, z-axis acceleration ".
S111 determines the motion state of user according to the sensing data;
After getting sensing data, the motion state of user can be determined according to sensing data, comprising:
Acceleration information is screened, the sample acceleration information of the corresponding preset quantity of different motion state is obtained;
Feature extraction is carried out to the sample acceleration information of preset quantity, obtains the sample movement of motion state for identification Feature;
Sample motion feature is carried out using support vector machines (SVM, Support Vector Machine) sorting algorithm Training, to obtain motion state prediction model;
The motion state of the user is predicted using motion state motion model.
In practical application, acceleration information can be screened according to preset screening rule, it can also be at random to adding Speed data carries out screening and obtains sample acceleration information.It can be according to sample when being screened according to preset screening rule This duration is screened, for example only obtains the acceleration information that duration is greater than 10s, and duration is less than to the acceleration information of 10s It filters out.
After getting the sample acceleration information of preset quantity, feature extraction is carried out to sample acceleration information, obtains and uses In the sample motion feature of identification motion state.The method of feature extraction specifically includes that time domain extraction method and Frequency domain extracting method, this Feature extraction is mainly carried out according to time domain extraction method in embodiment.
As a kind of optional embodiment, sample motion feature includes: the average value of sample acceleration information, variance, most It is a variety of in big value, minimum value and frequency.
Wherein, average value refers to the average value sought respectively for each axle acceleration data, and average value is for describing sample The general trend of acceleration information;Variance refers to the variance sought respectively for each axle acceleration data, for describing sample Variation fluctuation;Maximum value refers to the maximum value that do not seek for each axle acceleration data;Minimum value refers to for each axle acceleration The minimum value that data are not sought;Amplitude refers to average value and maximum comprising maximum value in each axle acceleration data and minimum value The variance of value and minimum value, amplitude are used to describe the fluctuation range of sample acceleration information;Frequency refers to each axle acceleration data Average distance between middle maximum value and minimum value, for describing the speed of sample data fluctuation.
After sample motion feature extracts, sample motion feature is trained using svm classifier algorithm, to obtain fortune Dynamic State Forecasting Model.Wherein, svm classifier algorithm belongs to supervised study, including training stage and test phase.The present embodiment The middle training stage uses the sample motion feature on axially different as original signal, is the soft of kernel function using radial basis function Interval SVM is trained, to obtain motion state prediction model.
When being trained, it is assumed that have k motion state, training stage meeting combination of two is trained, and will eventually get k (k-1)/2 motion state prediction model.The mode of ballot can be so selected in test phase, first obtaining all kinds of motion states Poll is preset as 0, and each motion state prediction model is recycled to classify respectively to each test data, last who gets the most votes's fortune Dynamic state is final motion state.
S112 determines the corresponding position acquisition period according to the motion state;
After the motion state of user is determined, the corresponding position acquisition period is determined according to the motion state, is wrapped It includes:
When motion state is stationary state, determine the corresponding position acquisition period for no acquisition state;Designated herein No acquisition state is the state for the position acquisition period being 0, i.e., is without obtaining the real-time of user when motion state is stationary state Position.
But when monitoring that motion state is switched to another motion state by a kind of motion state, corresponding position Obtaining the period can also adjust in real time.
In general, because the acceleration of each user is different, (acceleration of adult and child are different certainly ), even when being under same motion state, different users can also have different reference accelerations, therefore one Multiple reference accelerations may be corresponded under motion state.In order to be optimal power modes, the present embodiment is according to fortune It, can be with specific reference to the reference acceleration data pair and benchmark of each user during dynamic state determines the corresponding position acquisition period The acceleration information corresponding position acquisition period is adjusted in real time.
As a kind of optional embodiment, method further include:
In determining corresponding position acquisition periodic process according to motion state, according to each user adding in predetermined period Speed data, the corresponding reference acceleration for predicting each user;
Under the same motion state, position corresponding with reference acceleration is adjusted according to the reference acceleration of each user It sets and obtains the period;Wherein, multiple reference accelerations are corresponded under each motion state, the corresponding position of each reference acceleration is obtained Take the period.
As a kind of optional embodiment, each user is predicted according to acceleration information of each user in predetermined period Reference acceleration, comprising:
Training acceleration information is proposed from the acceleration information in predetermined period;
Training acceleration information is merged, training dataset is formed;
By machine learning algorithm (such as neural network algorithm, logistic regression algorithm), benchmark is carried out using training dataset Acceleration prediction model training, to generate reference acceleration prediction model;
The reference acceleration of user is predicted using reference acceleration prediction model.
It is so used as a kind of optional embodiment, the corresponding position acquisition period is determined according to motion state, comprising: work as fortune Dynamic state is walking states, determines that the corresponding position acquisition period is 40~60s.
It such as in the actual process,, can will be right under walking states when the reference acceleration for detecting user is very fast The position acquisition period modulation answered is 40~50s;It, can will be right under walking states when the reference acceleration of user is slower The position acquisition period modulation answered is 50~60s.
As a kind of optional embodiment, the corresponding position acquisition period is determined according to motion state, comprising: when movement shape State is running state, determines that the corresponding position acquisition period is 10~30s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under running state Whole is 15~20s;It, can be by corresponding position acquisition period tune under running state when the reference acceleration of user is slower Whole is 20~30s.
As a kind of optional embodiment, the corresponding position acquisition period is determined according to motion state, comprising: when movement shape State is cycling state, determines that the corresponding position acquisition period is 8~15s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under cycling state Whole is 8~10s;It, can be by corresponding position acquisition period modulation under cycling state when the reference acceleration of user is slower For 10~15s.
As a kind of optional embodiment, the corresponding position acquisition period is determined according to motion state, comprising: when movement shape State is driving condition, determines that the corresponding position acquisition period is 5~8s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under driving condition Whole is 5~6s;It, can be by corresponding position acquisition period modulation under driving condition when the reference acceleration of user is slower For 6~8s.
As a kind of optional embodiment, the corresponding position acquisition period is determined according to motion state, comprising: when the fortune Dynamic state is unknown state, determines that the corresponding position acquisition period is 90~100s.
It should be noted that in practical applications, can also be adjusted according to the actual situation to the position acquisition period.
S113 obtains the real time position of the user under different motion states using the corresponding position acquisition period.
After each motion state corresponding position acquisition period is determined, corresponding position is utilized under different motion states It sets and obtains the period and obtain the real time position of the user.
Because in practical applications, generally by utilizing global positioning system (GPS, Global Positioning System) or the method for network positions carry out position acquisition, but using GPS carry out position acquisition when, stand-by power consumption can very greatly, In order to advanced optimize the stand-by power consumption of terminal, as a kind of optional embodiment, method further include:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, preferential to obtain user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.Wherein, so-called network signal includes: wireless network signal and mobile data network signal in the present embodiment.
It should be noted that during the real time position using the different position acquisition periods to obtain the user, Include:
Current motion state is monitored, (is switched by a kind of motion state when listening to current motion state switching When to another motion state), it need to be scanned in the way of network positions or GPS positioning immediately, reacquire user's Real time position.
When motion state is stablized, then the user is obtained according to the motion state corresponding position acquisition period always Real time position.
When obtaining the real time position of user using Wi-Fi positioning, it is accomplished by
The wireless access point around simultaneously collection terminal is scanned, media access control (MAC, the Media of wireless access point are obtained Access Control) address;The MAC Address of wireless access point is sent to server, server can be according to wireless access point Mac address information the geographical location information of each wireless access point is retrieved from location database, by each wireless access The geographical location information of point carries out coordinate computation, determines specific latitude and longitude information.When the longitude and latitude of all wireless access point After information is all determined, so that it may determine that the current longitude and latitude of user is believed according to the latitude and longitude information of all wireless access point Breath.Wherein, the quantity of wireless access point is more, determines that the accuracy of the current latitude and longitude information of user will be more accurate.
When obtaining the real time position of user by base station information, it is implemented as follows:
Obtain the base station position information that terminal is currently accessed;
Believe from the geography being currently accessed around according to the base station position information being currently accessed is obtained in Distribution GIS Breath;
It is determined according to the geography information around the base station position information and base station being currently accessed belonging to the base station being currently accessed Cellular cell, the current geographical location information of user is determined according to affiliated cellular cell, then carry out to geographical location information Conversion, obtains corresponding latitude and longitude information.
Here, because operator is when establishing base station, each base station has exact position to record, therefore can get end Hold the base station position information being currently accessed.
As a kind of optional embodiment, the network signal if it does not exist, comprising: obtain the user's using GPS Real time position.
Based on same inventive concept, the application also provides a kind of device for reducing power consumption, detailed in Example two.
Embodiment two
The present embodiment provides a kind of devices for reducing power consumption, as shown in Fig. 2, device includes: first acquisition unit 21, first Determination unit 22, the second determination unit 23 and second acquisition unit 24;Wherein,
First acquisition unit 21 is used to obtain the sensing data of terminal.
In the present embodiment, terminal may include some Intelligent mobile equipments such as smart phone, IPAD, and sensing data is general It may include: the exercise datas such as bearing data and acceleration information in predetermined period, predetermined period is generally 30 days.Because of terminal Usually with user, so the sensing data of terminal is also considered as the exercise data of user.
As a kind of optional embodiment, first acquisition unit 21 is specifically used for:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
It is to get parms with preset sensor type, according to the acquisition sensor side in the sensor manager object Method obtains the corresponding sensor object of the sensor type;
Corresponding sensing data is obtained from the sensor object.
Here, sub thread is the thread for acquiring sensing data, after sub thread establishes, is obtained using sub thread Sensor manager object SensorManager is previously provided with the side for obtaining sensor object in sensor manager object Method.
Because the sensor type in terminal includes a variety of, such as: gravity sensor, direction sensor, temperature sensor etc.. If therefore want to obtain certain type of sensing data, according to the acquisition sensor, method in sensor manager object, obtain Take sensor object corresponding with preset sensor type.
When getting sensor object, corresponding sensing data can be obtained from sensor object.Wherein, this implementation What the sensing data in example mainly included is three axis (x, y, z) acceleration information.But since 3-axis acceleration data include Two kinds: one is the acceleration generated due to constant gravity, another kind is the acceleration generated due to user movement;Therefore In order to improve the accuracy of data, as a kind of optional embodiment, after getting sensing data, comprising: to gravity The acceleration information of generation carries out noise reduction process, removes the interference of gravity.
Then preset text is written in sensing data by the 3-axis acceleration after noise reduction process by first acquisition unit 21 In file, by text files memory into local cache.
The wherein data format of sensing data are as follows: " timestamp, x-axis acceleration, y-axis acceleration, z-axis acceleration ".
After getting sensing data, the first determination unit 22 is used to determine the movement of user according to the sensing data State.
As a kind of optional embodiment, the first determination unit 22 is specifically used for:
Acceleration information is screened, the sample acceleration information of the corresponding preset quantity of different motion state is obtained;
Feature extraction is carried out to the sample acceleration information of preset quantity, obtains the sample movement of motion state for identification Feature;
Sample motion feature is trained using support vector machines sorting algorithm, to obtain motion state prediction mould Type;
The motion state of the user is predicted using motion state motion model.
In practical application, acceleration information can be screened according to preset screening rule, it can also be at random to adding Speed data carries out screening and obtains sample acceleration information.It can be according to sample when being screened according to preset screening rule This duration is screened, for example only obtains the acceleration information that duration is greater than 10s, and duration is less than to the acceleration information of 10s It filters out.
After getting the sample acceleration information of preset quantity, feature extraction is carried out to sample acceleration information, obtains and uses In the sample motion feature of identification motion state.The method of feature extraction specifically includes that time domain extraction method and Frequency domain extracting method, this Feature extraction is mainly carried out according to time domain extraction method in embodiment.
As a kind of optional embodiment, sample motion feature includes: the average value of sample acceleration information, variance, most It is a variety of in big value, minimum value and frequency.
Wherein, average value refers to the average value sought respectively for each axle acceleration data, and average value is for describing sample The general trend of acceleration information;Variance refers to the variance sought respectively for each axle acceleration data, for describing sample Variation fluctuation;Maximum value refers to the maximum value that do not seek for each axle acceleration data;Minimum value refers to for each axle acceleration The minimum value that data are not sought;Amplitude refers to average value and maximum comprising maximum value in each axle acceleration data and minimum value The variance of value and minimum value, amplitude are used to describe the fluctuation range of sample acceleration information;Frequency refers to each axle acceleration data Average distance between middle maximum value and minimum value, for describing the speed of sample data fluctuation.
After sample motion feature extracts, sample motion feature is trained using svm classifier algorithm, to obtain fortune Dynamic State Forecasting Model.Wherein, svm classifier algorithm belongs to supervised study, including training stage and test phase.The present embodiment The middle training stage uses the sample motion feature on axially different as original signal, is the soft of kernel function using radial basis function Interval SVM is trained, to obtain motion state prediction model.
When being trained, it is assumed that have k motion state, training stage meeting combination of two is trained, and will eventually get k (k-1)/2 motion state prediction model.The mode of ballot can be so selected in test phase, first obtaining all kinds of motion states Poll is preset as 0, and each motion state prediction model is recycled to classify respectively to each test data, last who gets the most votes's fortune Dynamic state is final motion state.
After the motion state of user is determined, the second determination unit 23 is used to be determined according to the motion state and correspond to The position acquisition period.
As a kind of optional embodiment, the second determination unit 23 is specifically used for:
When motion state is stationary state, determine the corresponding position acquisition period for no acquisition state;Designated herein No acquisition state is the state for the position acquisition period being 0, i.e., is without obtaining the real-time of user when motion state is stationary state Position.
But when monitoring that motion state is switched to other motion states by stationary state, corresponding position acquisition week Phase can also adjust in real time.
In general, because the acceleration of each user is different, (acceleration of adult and child are different certainly ), even when being under same motion state, different users can also have different reference accelerations, therefore one Multiple reference accelerations may be corresponded under motion state.In order to be optimal power modes, the present embodiment is according to fortune During dynamic state determines the corresponding position acquisition period, the reference acceleration data with specific reference to each user are understood to correspondence The position acquisition period adjusted in real time.
Referring to fig. 2, corresponding position acquisition week device further include: adjustment unit 25 is used for: is being determined according to motion state During phase, according to acceleration information of each user in predetermined period, the corresponding reference acceleration for predicting each user;
Under the same motion state, position corresponding with reference acceleration is adjusted according to the reference acceleration of each user and is obtained Take the period;Wherein, multiple reference accelerations, each reference acceleration corresponding position acquisition week are corresponded under each motion state Phase.
As a kind of optional embodiment, each user is predicted according to acceleration information of each user in predetermined period Reference acceleration, comprising:
Training acceleration information is proposed from the acceleration information in predetermined period;
Training acceleration information is merged, training dataset is formed;
By machine learning algorithm (such as neural network algorithm, logistic regression algorithm), benchmark is carried out using training dataset Acceleration prediction model training, to generate reference acceleration prediction model;
The reference acceleration of user is predicted using reference acceleration prediction model.
It is so used as a kind of optional embodiment, the second determination unit 23 is specifically used for: when motion state is walking states, Determine that the corresponding position acquisition period is 40~60s.
It such as in the actual process,, can will be right under walking states when the reference acceleration for detecting user is very fast The position acquisition period modulation answered is 40~50s;It, can will be right under walking states when the reference acceleration of user is slower The position acquisition period modulation answered is 50~60s.
As a kind of optional embodiment, the second determination unit 23 is specifically used for: when motion state is running state, determination The corresponding position acquisition period is 10~30s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under running state Whole is 15~20s;It, can be by corresponding position acquisition period tune under running state when the reference acceleration of user is slower Whole is 20~30s.
As a kind of optional embodiment, the second determination unit 23 is specifically used for: when motion state is cycling state, determination The corresponding position acquisition period is 8~15s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under cycling state Whole is 8~10s;It, can be by corresponding position acquisition period modulation under cycling state when the reference acceleration of user is slower For 10~15s.
As a kind of optional embodiment, the second determination unit 23 is specifically used for: when motion state is driving condition, determination The corresponding position acquisition period is 5~8s.
For example, when the reference acceleration of user is very fast, it, can be by corresponding position acquisition period tune under driving condition Whole is 5~6s;It, can be by corresponding position acquisition period modulation under driving condition when the reference acceleration of user is slower For 6~8s.
As a kind of optional embodiment, the second determination unit 23 is specifically used for: when the motion state be unknown state, Determine that the corresponding position acquisition period is 90~100s.
It should be noted that in practical applications, can also be adjusted according to the actual situation to the position acquisition period.
After each motion state corresponding position acquisition period is determined, second acquisition unit 24 is used in different movements The real time position of the user is obtained under state using the corresponding position acquisition period.
Because in practical applications, carrying out position generally by using the method for global position system GPS or network positions When setting acquisition, but carrying out position acquisition using GPS, stand-by power consumption can be very big, in order to advanced optimize the stand-by power consumption of terminal, makees For a kind of optional embodiment, second acquisition unit 24 is also used to:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, preferential to obtain user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.Wherein, so-called network signal includes: wireless network signal and mobile data network signal in the present embodiment.
It should be noted that during the real time position using the different position acquisition periods to obtain the user, Second acquisition unit 24 is also used to:
Current motion state is monitored, (is switched by a kind of motion state when listening to current motion state switching When to another motion state), it need to be scanned in the way of network positions or GPS positioning immediately, reacquire user's Real time position.
When motion state is stablized, then the user is obtained according to the motion state corresponding position acquisition period always Real time position.
When obtaining the real time position of user using Wi-Fi positioning, it is accomplished by
The wireless access point around simultaneously collection terminal is scanned, the MAC Address of wireless access point is obtained;By wireless access point MAC Address is sent to server, and server can be retrieved from location database often according to the mac address information of wireless access point The geographical location information of each wireless access point is carried out coordinate computation, determined by the geographical location information of a wireless access point Specific latitude and longitude information.After the latitude and longitude information of all wireless access point is all determined, so that it may according to all wireless The latitude and longitude information of access point determines the current latitude and longitude information of user.Wherein, the quantity of wireless access point is more, determines and uses The accuracy of the current latitude and longitude information in family will be more accurate.
When obtaining the real time position of user by base station information, it is implemented as follows:
Obtain the base station position information that terminal is currently accessed;
Believe from the geography being currently accessed around according to the base station position information being currently accessed is obtained in Distribution GIS Breath;
It is determined according to the geography information around the base station position information and base station being currently accessed belonging to the base station being currently accessed Cellular cell, the current geographical location information of user is determined according to affiliated cellular cell, then carry out to geographical location information Conversion, obtains corresponding latitude and longitude information.
Here, because operator is when establishing base station, each base station has exact position to record, therefore can get end Hold the base station position information being currently accessed.
As a kind of optional embodiment, second acquisition unit 24 is also used to: the network signal if it does not exist, is utilized GPS obtains the real time position of the user.
The technical solution provided in the embodiment of the present application, has at least the following technical effects or advantages:
The embodiment of the present application provides a kind of method, apparatus and terminal for reducing power consumption, and method includes: to obtain the biography of terminal Sensor data;The motion state of user is determined according to the sensing data;Corresponding position is determined according to the motion state Obtain the period;The real time position of the user is obtained using the corresponding position acquisition period under different motion states;In this way, Third party application is first determining different motion state, recycles each motion state when obtaining the real time position of user What the corresponding position acquisition period obtained;User is obtained with the same position acquisition period always compared to the prior art in this way The scheme of real time position can be substantially reduced the frequency of acquisition, and then can reduce the frequency for waking up terminal, finally reduce terminal Stand-by power consumption.
The present invention additionally provides a kind of mobile terminal simultaneously, as shown in figure 3, for ease of description, illustrating only and this hair The relevant part of bright embodiment, it is disclosed by specific technical details, please refer to present invention method part.The terminal can be with Being includes mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, taking the terminal as an example:
Fig. 3 shows the block diagram of the part-structure of mobile phone relevant to terminal provided in an embodiment of the present invention.With reference to figure 3, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 31, memory 132, input unit 33, display unit 34, passes Sensor 35, voicefrequency circuit 36, Wireless Fidelity (wireless-fidelity, Wi-Fi) module 37, processor 38 and power supply 39 Equal components.It will be understood by those skilled in the art that handset structure shown in Fig. 3 does not constitute the restriction to mobile phone, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
It is specifically introduced below with reference to each component parts of the Fig. 3 to mobile phone:
RF circuit 31 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, will be under base station After row information receives, handled to processor 38;In addition, the data for designing uplink are sent to base station.In general, RF circuit 31 includes But be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 31 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), it is long term evolution (Long Term Evolution, LTE), Email, short Messaging service (Short Messaging Service, SMS) etc..
Memory 32 can be used for storing software program and module, and processor 38 is stored in the soft of memory 32 by operation Part program and module, thereby executing the various function application and data processing of mobile phone.Memory 32 can mainly include storage Program area and storage data area, wherein storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created number according to mobile phone According to (such as audio data, phone directory etc.) etc..In addition, memory 32 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Input unit 33 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone and The related key signals input of function control.Specifically, input unit 33 may include touch panel 331 and other input equipments 332.Touch panel 331, also referred to as touch screen, collect user on it or nearby touch operation (such as user use hand The operation of any suitable object or attachment such as finger, stylus on touch panel 331 or near touch panel 331), and according to Preset formula drives corresponding attachment device.Optionally, touch panel 331 may include touch detecting apparatus and touch control Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and touch operation bring signal is detected, it will Signal sends touch controller to;Touch controller receives touch information from touch detecting apparatus, and is converted into contact Coordinate, then give processor 38, and order that processor 38 is sent can be received and executed.Furthermore, it is possible to using resistance-type, The multiple types such as condenser type, infrared ray and surface acoustic wave realize touch panel 331.In addition to touch panel 331, input unit 33 It can also include other input equipments 332.Specifically, other input equipments 332 can include but is not limited to physical keyboard, function One of key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. are a variety of.
Display unit 34 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 34 may include display panel 341, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 341.Further, touch panel 331 can cover display panel 341, when touch panel 331 detect it is on it or attached After close touch operation, processor 38 is sent to determine the type of touch event, is followed by subsequent processing device 38 according to touch event Type provides corresponding visual output on display panel 341.Although in Fig. 3, touch panel 331 is with display panel 341 The input and input function of mobile phone are realized as two independent components, but in some embodiments it is possible to by touch surface Plate 331 and display panel 341 are integrated and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 35, such as optical sensor, motion sensor and other sensors.Tool Body, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjusts the brightness of display panel 341, proximity sensor can when mobile phone is moved in one's ear, close display panel 341 and/ Or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions Size can detect that size and the direction of gravity when static, can be used to identify mobile phone posture application (such as horizontal/vertical screen switching, Dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;It can also configure as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 36, loudspeaker 361, microphone 362 can provide the audio interface between user and mobile phone.Voicefrequency circuit Electric signal after the audio data received conversion can be transferred to loudspeaker 361 by 36, be converted to sound letter by loudspeaker 361 Number output;On the other hand, the voice signal of collection is converted to electric signal by microphone 362, is converted after being received by voicefrequency circuit 360 For audio data, then by after the processing of audio data output processor 38, such as another mobile phone is sent to through RF circuit 31, or Audio data is exported to memory 32 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 37 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 is shown WiFi module 37, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely It is omitted in the range of the essence of invention.
Processor 38 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 32, and call the number being stored in memory 32 According to, execute mobile phone various functions and processing data, thus to mobile phone carry out integral monitoring.Optionally, processor 38 may include One or more processing units;Preferably, processor 38 can integrate application processor and modem processor, wherein application The main processing operation system of processor, user interface and application program etc., modem processor mainly handles wireless communication.It can With understanding, above-mentioned modem processor can not also be integrated into processor 38.
Mobile phone further includes the power supply 39 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 38 are logically contiguous, to realize management charging, electric discharge and power managed etc. by power-supply management system Function.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In embodiments of the present invention, processor 38 included by the terminal is also with the following functions: the processor 38 obtains Take the sensing data of terminal;The motion state of user is determined according to the sensing data;It is determined according to the motion state The corresponding position acquisition period;The real-time of the user is obtained using the corresponding position acquisition period under different motion states Position.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments in this include institute in other embodiments Including certain features rather than other feature, but the combination of the feature of different embodiment means in the scope of the present invention Within and form different embodiments.For example, in the following claims, embodiment claimed it is any it One can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) come realize device according to an embodiment of the present invention, some in terminal or The some or all functions of whole components.The present invention is also implemented as a part for executing method as described herein Or whole device or device program (for example, computer program and computer program product).Such realization present invention Program can store on a computer-readable medium, or may be in the form of one or more signals.Such letter It number can be downloaded from an internet website to obtain, be perhaps provided on the carrier signal or be provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses A1, a kind of method for reducing power consumption, which comprises
Obtain the sensing data of terminal;
The motion state of user is determined according to the sensing data;
The corresponding position acquisition period is determined according to the motion state;
The real time position of the user is obtained using the corresponding position acquisition period under different motion states.
A2, method as described in a1, the sensing data for obtaining terminal, comprising:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
According to the acquisition sensor, method in the sensor manager object, obtain corresponding with preset sensor type Sensor object;
Corresponding sensing data is obtained from the sensor object.
To the described in any item methods of A2, the sensing data includes by A3, such as A1: bearing data in predetermined period and Acceleration information.
A4, the method as described in A3, the motion state that user is determined according to the sensing data, comprising:
The acceleration information is screened, the sample for obtaining the corresponding preset quantity of different motion state accelerates degree According to;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using support vector machines sorting algorithm, it is pre- to obtain motion state Survey model;
The motion state of the user is predicted using the motion state motion model.
A5, the method as described in A4, the sample motion feature include: the average value of the sample acceleration information, side It is a variety of in difference, maximum value, minimum value and frequency.
A6, the method as described in seeking A3, the method also includes:
It is being determined in corresponding position acquisition periodic process according to the motion state, according to each user in predetermined period Acceleration information, the corresponding reference acceleration for predicting each user;
The position acquisition period corresponding with the reference acceleration is adjusted according to the reference acceleration of each user.
A7, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be stationary state, determine the corresponding position acquisition period for no acquisition state.
A8, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be walking states, determine the corresponding position acquisition period be 40~60s.
A9, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be running state, determine the corresponding position acquisition period be 10~30s.
A10, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be cycling state, determine the corresponding position acquisition period be 8~15s.
A11, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be driving condition, determine the corresponding position acquisition period be 5~8s.
A12, method as described in a1, it is described that the corresponding position acquisition period is determined according to the motion state, comprising:
When the motion state be unknown state, determine the corresponding position acquisition period be 90~100s.
A13, method as described in a1, the method also includes:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, obtains the user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.
A14, the method as described in A13, the if it does not exist network signal, comprising: obtained using global position system GPS The real time position of the user.
B15, a kind of device for reducing power consumption, described device include:
First acquisition unit, for obtaining the sensing data of terminal;
First determination unit, for determining the motion state of user according to the sensing data;
Second determination unit, for determining the corresponding position acquisition period according to the motion state;
Second acquisition unit, for utilizing the corresponding position acquisition period to obtain the user under different motion states Real time position.
B16, the device as described in B15, the first acquisition unit are specifically used for:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
It is to get parms with preset sensor type, according to the acquisition sensor side in the sensor manager object Method obtains sensor object corresponding with preset sensor type;
Corresponding sensing data is obtained from the sensor object.
The described in any item devices of B17, such as B15~B16, the sensing data includes: the direction number in predetermined period According to and acceleration information.
B18, the device as described in B17, first determination unit are specifically used for:
The acceleration information is screened, the sample for obtaining the corresponding preset quantity of different motion state accelerates degree According to;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using SVM multi-classification algorithm, to obtain motion state prediction model;
The motion state of the user is predicted using the motion state motion model.
B19, the device as described in B18, the sample motion feature include: the sample acceleration information average value, It is a variety of in variance, maximum value, minimum value and frequency.
B20, the device as described in B17, described device further include: adjustment unit is used for:
It is being determined in corresponding position acquisition periodic process according to the motion state, according to each user in predetermined period Acceleration information, the corresponding reference acceleration for predicting each user;
The position acquisition period corresponding with the reference acceleration is adjusted according to the reference acceleration of each user.
B21, the device as described in B15, second determination unit are specifically used for: when the motion state is static shape State, corresponding position acquisition period are without the state of acquisition.
B22, the device as described in B15, second determination unit are specifically used for: when the motion state is walking shape State determines that the corresponding position acquisition period is 40~60s.
B23, the device as described in B15, second determination unit are specifically used for:
When the motion state be running state, determine the corresponding position acquisition period be 10~30s.
B24, the device as described in B15, second determination unit are specifically used for:
When the motion state be cycling state, determine the corresponding position acquisition period be 8~15s.
B25, the device as described in B15, second determination unit are specifically used for:
When the motion state be driving condition, determine the corresponding position acquisition period be 5~8s.
B26, the device as described in B15, second determination unit are specifically used for:
When the motion state be unknown state, determine the corresponding position acquisition period be 90~100s.
B27, the device as described in B15, the second acquisition unit are also used to:
During the real time position using the different position acquisition periods to obtain the user, net is judged whether there is Network signal, the network signal, obtains the user in the way of Wi-Fi positioning, base station location or bluetooth positioning if it exists Real time position.
B28, the device as described in B27, the second acquisition unit are specifically used for: if it does not exist when the network signal, The real time position of the user is obtained using global position system GPS.
C29, a kind of computer readable storage medium, are stored thereon with computer program, when which is executed by processor The step of realizing any one of A1 to A14 the method.
D30, a kind of terminal for reducing power consumption characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the place The program instruction that device executes is managed, the processor calls described program instruction to be able to carry out any one of A1 to A14 the method Step.

Claims (10)

1. a kind of method for reducing power consumption, which is characterized in that the described method includes:
Obtain the sensing data of terminal;
The motion state of user is determined according to the sensing data;
The corresponding position acquisition period is determined according to the motion state;
The real time position of the user is obtained using the corresponding position acquisition period under different motion states.
2. the method as described in claim 1, which is characterized in that the sensing data for obtaining terminal, comprising:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
According to the acquisition sensor, method in the sensor manager object, biography corresponding with preset sensor type is obtained Sensor object;
Corresponding sensing data is obtained from the sensor object.
3. such as the described in any item methods of claim 1 to 2, which is characterized in that the sensing data includes: in predetermined period Bearing data and acceleration information.
4. method as claimed in claim 3, which is characterized in that the movement shape for determining user according to the sensing data State, comprising:
The acceleration information is screened, the sample acceleration information of the corresponding preset quantity of different motion state is obtained;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using support vector machines sorting algorithm, to obtain motion state prediction mould Type;
The motion state of the user is predicted using the motion state motion model.
5. a kind of device for reducing power consumption, which is characterized in that described device includes:
First acquisition unit, for obtaining the sensing data of terminal;
First determination unit, for determining the motion state of user according to the sensing data;
Second determination unit, for determining the corresponding position acquisition period according to the motion state;
Second acquisition unit, for utilizing the corresponding position acquisition period to obtain the reality of the user under different motion states When position.
6. device as claimed in claim 5, which is characterized in that the first acquisition unit is specifically used for:
Establish sub thread;
Sensor manager object is obtained using the sub thread;
According to the acquisition sensor, method in the sensor manager object, biography corresponding with preset sensor type is obtained Sensor object;
Corresponding sensing data is obtained from the sensor object.
7. such as the described in any item devices of claim 5 to 6, which is characterized in that the sensing data includes: in predetermined period Bearing data and acceleration information.
8. device as claimed in claim 7, which is characterized in that first determination unit is specifically used for:
The acceleration information is screened, the sample acceleration information of the corresponding preset quantity of different motion state is obtained;
Feature extraction is carried out to the sample acceleration information, obtains the sample motion feature of motion state for identification;
The sample motion feature is trained using SVM multi-classification algorithm, to obtain motion state prediction model;
The motion state of the user is predicted using the motion state motion model.
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 step of any one of Claims 1-4 the method is realized when row.
10. a kind of terminal for reducing power consumption characterized by comprising
At least one processor;And
At least one processor being connect with the processor communication, wherein the memory is stored with can be by the processor The program instruction of execution, the processor call described program instruction to be able to carry out such as any one of Claims 1-4 the method The step of.
CN201811134330.4A 2018-09-27 2018-09-27 A kind of method, apparatus and terminal reducing power consumption Pending CN109375762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811134330.4A CN109375762A (en) 2018-09-27 2018-09-27 A kind of method, apparatus and terminal reducing power consumption

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811134330.4A CN109375762A (en) 2018-09-27 2018-09-27 A kind of method, apparatus and terminal reducing power consumption

Publications (1)

Publication Number Publication Date
CN109375762A true CN109375762A (en) 2019-02-22

Family

ID=65402799

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811134330.4A Pending CN109375762A (en) 2018-09-27 2018-09-27 A kind of method, apparatus and terminal reducing power consumption

Country Status (1)

Country Link
CN (1) CN109375762A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399005A (en) * 2020-03-09 2020-07-10 展讯通信(上海)有限公司 Attitude determination positioning method, system, medium and electronic device for mobile terminal
CN111879334A (en) * 2020-07-31 2020-11-03 歌尔科技有限公司 Step counting method, step counting device and computer readable storage medium
CN112731478A (en) * 2020-08-20 2021-04-30 浙江利尔达物芯科技有限公司 Low-power-consumption operation method of positioning terminal

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402176A (en) * 2013-07-31 2013-11-20 深圳市中兴移动通信有限公司 Method and device for dynamically adjusting positioning period
CN104296749A (en) * 2014-11-03 2015-01-21 中国科学院深圳先进技术研究院 Motion state perception-based low power consumption positioning method and system
CN104601817A (en) * 2015-01-20 2015-05-06 电子科技大学 User base attribute forecasting method based on smart phone acceleration sensor
CN105021187A (en) * 2015-07-21 2015-11-04 深圳市西博泰科电子有限公司 Low-power outdoor positioning method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system
US9723383B2 (en) * 2015-03-27 2017-08-01 Samsung Electronics Co., Ltd. Method and apparatus for recognizing user's activity using accelerometer

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103402176A (en) * 2013-07-31 2013-11-20 深圳市中兴移动通信有限公司 Method and device for dynamically adjusting positioning period
CN104296749A (en) * 2014-11-03 2015-01-21 中国科学院深圳先进技术研究院 Motion state perception-based low power consumption positioning method and system
CN104601817A (en) * 2015-01-20 2015-05-06 电子科技大学 User base attribute forecasting method based on smart phone acceleration sensor
US9723383B2 (en) * 2015-03-27 2017-08-01 Samsung Electronics Co., Ltd. Method and apparatus for recognizing user's activity using accelerometer
CN105021187A (en) * 2015-07-21 2015-11-04 深圳市西博泰科电子有限公司 Low-power outdoor positioning method
CN105223593A (en) * 2015-09-17 2016-01-06 北京奇虎科技有限公司 Terminal positioning frequency adjustment method, system and positioning interval control method, system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399005A (en) * 2020-03-09 2020-07-10 展讯通信(上海)有限公司 Attitude determination positioning method, system, medium and electronic device for mobile terminal
CN111879334A (en) * 2020-07-31 2020-11-03 歌尔科技有限公司 Step counting method, step counting device and computer readable storage medium
CN111879334B (en) * 2020-07-31 2022-03-25 歌尔科技有限公司 Step counting method, step counting device and computer readable storage medium
CN112731478A (en) * 2020-08-20 2021-04-30 浙江利尔达物芯科技有限公司 Low-power-consumption operation method of positioning terminal

Similar Documents

Publication Publication Date Title
US9241242B2 (en) Information recommendation method and apparatus
CN109241765A (en) Mobile terminal and the right management method of application program, device
CN106598529A (en) Method and device for sub-screen display of mobile terminal, and mobile terminal
CN104238918B (en) List View component slippage display methods and device
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
JP2015534693A (en) Desktop display method, apparatus, terminal, program, and recording medium
CN107391198B (en) Method for scheduling task and device, computer readable storage medium, mobile terminal
CN108334539A (en) Object recommendation method, mobile terminal and computer readable storage medium
CN104571979B (en) A kind of method and apparatus for realizing split view
CN106126160B (en) A kind of effect adjusting method and user terminal
CN106373531A (en) Method for adjusting displaying brightness and electronic equipment
CN106375582B (en) Vibration control method and device
CN107368400A (en) CPU monitoring methods, device, computer-readable recording medium and mobile terminal
CN109375762A (en) A kind of method, apparatus and terminal reducing power consumption
CN106775828A (en) Application program installation method and device, computer equipment
CN108920220A (en) A kind of method, apparatus and terminal of function call
CN107634952A (en) Brush amount resource determining method and device
CN108920306A (en) What is managed based on memory restarts localization method, mobile terminal and readable storage medium storing program for executing
CN107832375A (en) Control method, terminal and the server that picture is shown
CN106791153A (en) Using PUSH message classifying indication method, device and mobile terminal
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN106705988B (en) Road conditions methods of exhibiting, device and computer equipment
CN108196968A (en) Mobile terminal restarts localization method, mobile terminal and computer readable storage medium
CN106155888A (en) The detection method of webpage loading performance and device in a kind of Mobile solution
CN109688611A (en) A kind of configuration method, device, terminal and the storage medium of frequency range parameter

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190222