CN106055075B - A kind of method for closing and device of sensor - Google Patents
A kind of method for closing and device of sensor Download PDFInfo
- Publication number
- CN106055075B CN106055075B CN201610379811.6A CN201610379811A CN106055075B CN 106055075 B CN106055075 B CN 106055075B CN 201610379811 A CN201610379811 A CN 201610379811A CN 106055075 B CN106055075 B CN 106055075B
- Authority
- CN
- China
- Prior art keywords
- function
- sensor
- rank
- module
- time
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
Abstract
The embodiment of the invention discloses a kind of method for closing of sensor and devices;The following steps are included: calling function setup function rank to the sensor in terminal system, the terminal system current time is obtained, and corresponding objective function rank is obtained according to current time, the sensor is closed according to objective function rank and calls function.The program can call function based on the sensor closed in terminal system, it and is multiple ranks to these function setups, the electric quantity consumption of terminal can be reduced, and since there is no directly close whole sensors for the program, for compared with the prior art, the service efficiency of sensor can be improved while reducing terminal power consumption.
Description
Technical field
The present invention relates to field of terminal technology, and in particular to a kind of method for closing and device of sensor.
Background technique
With the popularization of intelligent terminals, more and more users are learnt using intelligent terminal, are entertained etc., mobile terminal
Such as the function of smart phone is stronger and stronger, not only enriches user's life, also brings advantage to the user, at the same time various intelligence
The application program of energy terminal is also developed, to meet the different application demand of user.
In order to realize various functions to meet the various demands of user, usual intelligent terminal will be installed various applications
Program, and various sensor devices to application program pluralistic function provide hardware foundation in intelligent terminal, such as
For adjusting the light sensor of screen intensity, the gravity sensor of acquisition acceleration, for the capacitance sensor of fingerprint recognition
Etc..
Currently, in order to lower the consumption of intelligent terminal electricity, and then promote the cruising ability of intelligent terminal, intelligent terminal meeting
Closure sensor namely closure sensor call function, such as intelligent terminal that sensor can be automatically closed, or according to user
Operation carry out closure sensor.Although being consumed however, current this sensor shutdown strategy can reduce terminal power, by
It is that sensor all in closing system calls function in the program, is not easy to targetedly be managed control to sensor,
According to the function of sensor, the frequency of use of different sensors is not also identical, sensor higher for some frequency of use,
It also needs to restart the sensor after shutdown, wastes more time, inefficiency.
Summary of the invention
The embodiment of the present invention provides the method for closing and device of a kind of sensor, can reduce the same of terminal power consumption
When, improve the service efficiency of sensor.
The embodiment of the present invention provides a kind of method for closing of sensor, comprising:
Function setup function rank is called to the sensor in terminal system;
The terminal system current time is obtained, and corresponding objective function rank is obtained according to the time;
The sensor, which is closed, according to the objective function rank calls function.
Further, described the step of obtaining corresponding objective function rank according to the time, specifically includes:
Whether in preset time range to judge the current time;
If so, obtaining the corresponding objective function rank of the preset time range.
Further, after the sensor in terminal system calls function setup function rank, according to described
Before time generating function turn-off request, the method also includes:
Obtain the current operating status of the terminal;
Judge whether the current operating conditions are preset state;
If so, the step of executing according to the time generating function turn-off request.
Further, before the step of obtaining the terminal system current time, the method also includes:
Obtain the current CPU usage of the terminal;
Judge whether the CPU usage reaches preset threshold;
If so, execution obtains the step of terminal system current time.
Further, the step of sensor in application program calls function setup function rank is specifically wrapped
It includes:
It obtains the sensor and calls sensor corresponding to function;
Determine frequency of use of the sensor in the terminal;
Function setup function rank is called to the sensor according to the frequency of use.
The embodiment of the invention also provides a kind of closing devices of sensor, comprising: setup module, time-obtaining module,
Rank obtains module and closedown module;
The setup module, for calling function setup function rank to the sensor in terminal system;
The time-obtaining module, for obtaining the terminal system current time;
The rank obtains module, for obtaining corresponding objective function rank according to the current time;
The closedown module calls function for closing the sensor according to the objective function rank.
Further, the rank obtains module and specifically includes: judging submodule and acquisition submodule;
The judging submodule, for whether in preset time range to judge the current time;
The acquisition submodule, for obtaining the preset time range pair when above-mentioned judging submodule is judged as YES
The objective function rank answered.
Further, described device further include: state acquisition module and first judgment module;
The state acquisition module, for calling function setup letter to the sensor in terminal system in the setup module
After several levels are other, before the rank obtains module according to the time generating function turn-off request, it is current to obtain the terminal
Operating status;
The first judgment module, for judging whether the current operating conditions are preset state;
The rank obtains module, specifically for being given birth to according to the time when the first judgment module is judged as YES
At function turn-off request.
Further, described device further include: utilization rate obtains module and the second judgment module;
The utilization rate obtains module, for the time-obtaining module obtain the terminal system current time it
Before, obtain the current CPU usage of the terminal;
Second judgment module, for judging whether the CPU usage reaches preset threshold;
The time-obtaining module, specifically for obtaining the terminal system when second judgment module is judged as YES
It unites the current time.
Further, the setup module specifically includes: acquisition submodule determines submodule and setting submodule;
The acquisition submodule calls sensor corresponding to function for obtaining the sensor;
The determining submodule, for determining frequency of use of the sensor in the terminal;
The setting submodule, for calling function setup function rank to the sensor according to the frequency of use.
The embodiment of the present invention, which is used, calls function setup function rank to the sensor in terminal system, obtains terminal system
The current time, and according to current time generating function turn-off request, corresponding target letter is obtained according to the function turn-off request
Several levels are other, close the sensor according to objective function rank and call function.The program can be based in closing terminal system
Sensor calls function, and is multiple ranks to these function setups, can reduce the electric quantity consumption of terminal, and due to the program
There is no whole sensors is directly closed, compared with the prior art for, can be while reducing terminal power consumption, promotion
The service efficiency of sensor.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those skilled in the art, without creative efforts, it can also be obtained according to these attached drawings other attached
Figure.
Fig. 1 is a kind of method for closing flow diagram for sensor that the embodiment of the present invention one provides;
Fig. 2 is the method for closing flow diagram of the sensor provided by Embodiment 2 of the present invention in practical application;
Fig. 3 is a kind of structural schematic diagram of the closing device for sensor that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram of the closing device for second of sensor that the embodiment of the present invention three provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
The embodiment of the present invention provides the method for closing and device of a kind of sensor.It will be described in detail respectively below.
Embodiment one,
The angle of closing device from sensor is described the present embodiment, and the closing device of the sensor specifically can be with
It integrates in the terminal, which can be for mobile internet device (such as smart phone, tablet computer), intelligent wearable device (such as
Smartwatch) etc. each class of electronic devices.
Referring to Fig. 1, Fig. 1 is the flow diagram of the method for closing for the sensor that the embodiment of the present invention one provides, this reality
The method for closing for applying the sensor of example includes:
Step S101 calls function setup function rank to the sensor in terminal system.
When computer compiles or runs, related command is completed using some function, in systems by function
It calls to execute function body, realizing for each function is carried out by function in system, specifically, a series of execution
It is exactly function that the sentence of some function, which is combined,.
In the embodiment of the present invention, call function setup rank can be according to sensor the sensor in system
Frequency of use is configured, for example it is higher that sensor corresponding to the higher sensor of frequency of use, which is called function setup,
Rank, it is lower rank that sensor corresponding to the lower sensor of frequency of use, which is called function setup, i.e., above-mentioned to application
The step of sensor in program calls function setup function rank can specifically include:
It obtains sensor and calls sensor corresponding to function;
Determine the frequency of use of sensor in the terminal;
Function setup function rank is called to sensor according to frequency of use.
Wherein it is determined that the method for the frequency of use of sensor in the terminal can there are many, such as by calculate identical
The access times of different sensors obtain the frequency of use of each sensor in period, pass to be determined according to frequency of use
The corresponding sensor of sensor calls function to carry out rank setting.
Wherein, to sensor call function setup function rank the form of expression can also there are many, such as using number
Sensor calling function is defined as 1 grade of function, 2 grades of functions, 3 grades of functions etc., letter is also can use by sensor and calls letter
Number is defined as A grades of functions, B grades of functions, C grades of functions etc., can be scheduled with different parameters to the function rank, herein
It does not further limit.
Step S102 obtains the terminal system current time.
Wherein, the step of above-mentioned acquisition terminal system current time can there are many, for example fallen into a trap by transferring system
When device time data determine the current time, can also under the terminal networking state by network obtain current time zone when
Between information optionally can be according to the time generating function turn-off request, which carries function level information.
Further, after the sensor in terminal system calls function setup function rank, can according to when
Between generating function turn-off request, specifically, in terminal system sensor call function setup function rank after, according to
Before time generating function turn-off request, this method can also include:
The setting request of reception relationship, relationship setting request instruction need to establish the preset time and function of mapping relations
Turn-off request;
The mapping relations between preset time and function turn-off request are established according to relationship setting request, are closed with obtaining mapping
Assembly is closed;
The step of above-mentioned generating function turn-off request according to the time, specifically includes:
According to time and mapping relations set generating function turn-off request.Further, according to current time in the mapping
Default sample identical with current time is searched in set of relationship, and determines that this is preset the corresponding preset function closing of sample and asks
It asks, as above-mentioned function turn-off request.
It should be noted that above-mentioned preset time can may be time range for time point, if the preset time is
Time point can then search identical preset time point, so that it is determined that right according to the current time in mapping relations set
The function turn-off request answered;If the preset time is time range, can be worked as according to the current time in mapping relations set
In judge whether in preset time range, so that it is determined that corresponding function turn-off request.
Preferably, it is contemplated that before generating function turn-off request, the possible standby mode of terminal may also be in working condition,
And some sensors may be used during user is using mobile phone, thus according to time generating function turn-off request
The step of before, the above method can also include:
Obtain the current operating status of terminal;
Judge whether current operating conditions are preset state;
If so, the step of executing according to the time generating function turn-off request.
The preset condition can be according to user instructions by user's sets itself, for example the preset condition can be in for terminal
Standby mode, namely judge terminal it is current whether be standby mode, if so, according to the time generating function turn-off request.
Step S103 obtains corresponding objective function rank according to current time.
Wherein, above-mentioned the step of obtaining corresponding objective function rank according to current time, specifically includes:
Judge the current time whether in preset time range;
If so, obtaining the corresponding objective function rank of preset time range.
Optionally, can also judge whether current time and preset time point are identical, if so, obtaining the preset time point
Corresponding function rank, for example, the mapping relations between time point and function rank are pre-established, current according to terminal system
Time point obtains corresponding objective function rank.
Step S104 calls function according to objective function rank closure sensor.
Close sensor in the objective function rank and call function, it is preferred that closure sensor call function it
Afterwards, sensor name corresponding to function can be called to show to the display screen of terminal the sensor, has prompted user.
Specifically, above-mentioned the step of calling function according to objective function rank closure sensor, can specifically include:
Judge whether objective function rank is minimum function rank;
If so, closing sensor corresponding with objective function rank calls function;
Function and function rank is called to be lower than target letter if it is not, then closing sensor corresponding with objective function rank
The other sensor of several levels calls function.
For example, can call function setup to the sensor in terminal system is three ranks: frequency of use is greater than or waits
It is first function rank that the sensor corresponding to the sensor of the first preset threshold, which calls function, and frequency of use is greater than or equal to
Second preset threshold and less than sensor corresponding to the sensor of the first preset threshold call function be second function rank, make
It is third function rank that the sensor corresponding to sensor of the frequency less than the second preset threshold, which calls function,.If the target letter
Several levels are not third function rank, then the corresponding function of objective function rank namely closes third function rank in closing system
Function in the middle;If the objective function rank is second function rank, the function and letter in second function rank are closed
The sensor that several levels are not lower than second function rank calls the function in function, that is, third function rank.
Preferably, the flexibility that this programme is considered in practical application, can be preset default sensing by user
Device set need not be closed for the sensor in the set with the method that this programme provides, for example, available mesh
Sensor in scalar functions rank calls the identification information of function, then according to the identification information and default sensor identification collection
Conjunction judges that the sensor calls whether sensor corresponding to function is default sensor, namely closes according to objective function rank
It closes before the step of sensor calls function, the method can also include:
Obtain the identification information that the sensor in objective function rank calls function;
Judge in default logo collection with the presence or absence of sample identification identical with above-mentioned identification information;
If it is not, then executing the step of calling function according to objective function rank closure sensor.
Preferably, it is contemplated that the sensor in system calls function to need to occupy certain cpu resource, and works as terminal system
When entire CPU usage is higher, a series of problems, such as terminal just will appear Caton, fever, therefore this programme can be in terminal
CPU usage it is higher when execute, i.e., before the step of obtaining terminal system current time, the method also includes:
Obtain the current CPU usage of terminal;
Judge whether CPU usage reaches preset threshold;
If so, execution obtains the step of terminal system current time.
Wherein above-mentioned preset threshold can be according to the actual demand sets itself of user, for example can be set to 70%, 80%
Etc., this programme does not further limit this.
From the foregoing, it will be observed that the embodiment of the present invention, which is used, calls function setup function rank to the sensor in terminal system, obtain
The time that terminal system is current is taken, and corresponding objective function rank is obtained according to current time, is closed according to objective function rank
It closes the sensor and calls function.The program can call function based on the sensor closed in terminal system, and to these letters
Number is set as multiple ranks, can reduce the electric quantity consumption of terminal, and since there is no directly close whole sensings for the program
Device, compared with the prior art for, can reduce terminal power consumption while, improve sensor service efficiency and flexibly
Property.
Embodiment two,
The present embodiment will provide a kind of method for closing of sensor in practical application, will be in the present embodiment
For calling function setup to be three ranks the sensor in cell phone system, it is described in detail.Referring to Fig. 2, Fig. 2 is this
The flow diagram of the method for closing of sensor in practical application that inventive embodiments two provide, the sensor of the present embodiment
Method for closing include:
Step 201, three ranks of function setup are called to the sensor in intelligent mobile phone system.
Specifically, calling the frequency of use of the corresponding sensor of function to be drawn according to the sensor in cell phone system
Point, it is first function rank that the corresponding sensor of sensor to frequency of use more than or equal to a, which calls function setup, to using
It is second function rank that frequency, which is less than a and sensor corresponding greater than the sensor of b calling function setup, is less than to frequency of use
Or it is third function rank that sensor corresponding equal to the sensor of b, which calls function setup,.
Step S202 obtains the current CPU usage of cell phone system.
Step S203, judges whether above-mentioned CPU usage reaches 80%, if so then execute step S204, if it is not, then terminating
Process.
In the embodiment of the present invention, 80% is the critical value of mobile phone CPU usage set by user, if in cell phone system
CPU usage be reach 80%, then need not closure sensor call function.
Step S204 obtains the cell phone system current time, and according to current time generating function turn-off request.
It, can also be with specifically, mobile phone can determine the current time by transferring the time data of system Timer
The temporal information for obtaining current time zone by network under terminal networking state, according to current time in default mapping relations set
Default sample identical with current time is searched in the middle, and determines the default corresponding preset function turn-off request of sample, as
Above-mentioned function turn-off request.
It should be noted that above-mentioned preset time can may be time range for time point, if the preset time is
Time point, for example, cell phone system obtain the current time be 10:00, then in default mapping relations set lookup and 10:00
Corresponding function turn-off request;If the preset time be time range, can default mapping relations set search with work as
Preceding time corresponding time range, such as within the scope of 9:00-11:00, it is determined that letter corresponding with 9:00-11:00 range
Number turn-off request.
Step S205, mobile phone obtain corresponding objective function rank according to function turn-off request.
Wherein, which can carry function level information, for example extract to the function turn-off request,
Obtain the identification information of second function rank, it is determined that second function rank is objective function rank.
Step S206, mobile phone call function according to objective function rank closure sensor.
For example objective function rank is second function rank, then closes the function and function grade in second function rank
Not Di Yu second function rank sensor call function, that is, third function rank in function.
From the foregoing, it will be observed that the embodiment of the present invention, which is used, calls function setup function rank to the sensor in terminal system, obtain
The time that terminal system is current is taken, and corresponding objective function rank is obtained according to current time, is closed according to objective function rank
It closes the sensor and calls function.The program can call function based on the sensor closed in terminal system, and to these letters
Number is set as multiple ranks, can reduce the electric quantity consumption of terminal, and since there is no directly close whole sensings for the program
Device, compared with the prior art for, can reduce terminal power consumption while, improve sensor service efficiency and flexibly
Property.
Embodiment three,
In order to better implement above method, the embodiment of the present invention also provides a kind of closing device of sensor, the sensing
The closing device of device can integrate in the terminal, the terminal can for mobile internet device (such as smart phone, tablet computer),
Intelligent wearable device (such as smartwatch) each class of electronic devices.As shown in figure 3, the closing device of the sensor may include:
Setup module 301, time-obtaining module 302, rank obtain module 303, rank obtains module 303 and closedown module 304;
The setup module 301, for calling function setup function rank to the sensor in terminal system;
The time-obtaining module 302, for obtaining the terminal system current time;
The rank obtains module 303, for obtaining corresponding objective function rank according to the current time;
The closedown module 304, for calling function according to objective function rank closure sensor.
Preferably, as shown in figure 4, the device that this programme provides further include: state acquisition module 305, first judgment module
306, utilization rate obtains module 307 and the second judgment module 308;
The state acquisition module 305, for calling function setup letter to the sensor in terminal system in setup module 301
After several levels are other, before rank obtains module 303 according to time generating function turn-off request, the current operation shape of terminal is obtained
State;
The first judgment module 306, for judging whether current operating conditions are preset state;
The rank obtains module 303, specifically for generating letter according to the time when first judgment module 306 is judged as YES
Number turn-off request.
The utilization rate obtains module 307, for before time-obtaining module 302 obtains terminal system current time,
Obtain the current CPU usage of terminal;
Second judgment module 308, for judging whether CPU usage reaches preset threshold;
The time-obtaining module 302 is worked as specifically for when the second judgment module 308 is judged as YES, obtaining terminal system
The preceding time.
Further, in the present embodiment, rank obtains module 303 and can specifically include: judging submodule and acquisition
Module;
The judging submodule, for whether in preset time range to judge the current time;
The acquisition submodule, it is corresponding for when above-mentioned judging submodule is judged as YES, obtaining the preset time range
Objective function rank
Setup module 301 can specifically include: acquisition submodule determines submodule and setting submodule;
The acquisition submodule calls sensor corresponding to function for obtaining sensor;
The determination submodule, for determining the frequency of use of sensor in the terminal;
The setting submodule, for calling function setup function rank to sensor according to frequency of use.
Optionally, which can also include: receiving module and establish module;
The receiving module, for calling function setup function rank to the sensor in terminal system in setup module 301
Later, before rank obtains module 303 according to time generating function turn-off request, relationship setting request is received, relationship setting is asked
Instruction is asked to need to establish the preset time and function turn-off request of mapping relations;
This establishes module, closes for establishing the mapping between preset time and function turn-off request according to relationship setting request
System, to obtain mapping relations set;
The rank obtains module 303, is specifically used for according to time and mapping relations set generating function turn-off request.
From the foregoing, it will be observed that the embodiment of the present invention calls function setup to the sensor in terminal system using setup module 301
Function rank, time-obtaining module 302 obtain the terminal system current time, and rank obtains module 303 and obtained according to current time
Corresponding objective function rank is taken, the sensor is finally closed according to objective function rank by closedown module 304 and calls function.
The program can call function based on the sensor closed in terminal system, and be multiple ranks to these function setups, can be with
Reduce terminal electric quantity consumption, and due to the program there is no directly close whole sensor, compared with the prior art for, can
To improve the service efficiency and flexibility of sensor while reducing terminal power consumption.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not
It repeats again.
It should be noted that those of ordinary skill in the art will appreciate that whole in the various methods of above-described embodiment or
Part steps are relevant hardware can be instructed to complete by program, which can store in computer-readable storage medium
It in matter, is such as stored in the memory of terminal, and is executed by least one processor in the terminal, can be wrapped in the process of implementation
Include the process of the embodiment such as information issuing method.Wherein, storage medium may include: read-only memory (ROM, Read Only
Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
The method for closing and device of a kind of sensor provided in an embodiment of the present invention are described in detail above, it is each
Functional module can integrate in a processing chip, is also possible to modules and physically exists alone, can also be two or two
It is a to be integrated in a module with upper module.Above-mentioned integrated module both can take the form of hardware realization, can also use
The form of software function module is realized.Specific case used herein explains the principle of the present invention and embodiment
It states, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for this field
Technical staff, according to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion
The contents of this specification are not to be construed as limiting the invention.
Claims (9)
1. a kind of method for closing of sensor, which comprises the following steps:
Function setup function rank is called to the sensor in terminal system;
The terminal system current time is obtained, and whether in preset time range to judge the current time;
If so, obtaining the corresponding objective function rank of the preset time range;
Judge whether objective function rank is minimum function rank;
If minimum function rank, then closes sensor corresponding with objective function rank and call function;
If not minimum function rank, then closes sensor corresponding with objective function rank and call function and function rank
Sensor lower than objective function rank calls function.
2. method for closing as described in claim 1, which is characterized in that call function in the sensor in terminal system
It is arranged after function rank, before according to the time generating function turn-off request, the method also includes:
Obtain the current operating status of the terminal;
Judge whether the current operating conditions are preset state;
If so, the step of executing according to the time generating function turn-off request.
3. method for closing as described in claim 1, which is characterized in that in the step of obtaining the terminal system current time
Before, the method also includes:
Obtain the current CPU usage of the terminal;
Judge whether the CPU usage reaches preset threshold;
If so, execution obtains the step of terminal system current time.
4. method for closing as described in claim 1, which is characterized in that the sensor in application program calls function
The step of function rank is arranged specifically includes:
It obtains the sensor and calls sensor corresponding to function;
Determine frequency of use of the sensor in the terminal;
Function setup function rank is called to the sensor according to the frequency of use.
5. a kind of sensor closes device characterized by comprising setup module, time-obtaining module, rank obtain module with
And closedown module;
The setup module, for calling function setup function rank to the sensor in terminal system;
The time-obtaining module, for obtaining the terminal system current time;
The rank obtains module, for obtaining corresponding objective function rank according to the current time, wherein the grade
Not Huo Qu module specifically include judging submodule and acquisition submodule;
The judging submodule, for whether in preset time range to judge the current time;
The acquisition submodule, for it is corresponding to obtain the preset time range when the judging submodule is judged as YES
Objective function rank;
The closedown module, for judging whether objective function rank is minimum function rank;
If minimum function rank, then closes sensor corresponding with objective function rank and call function;
If not minimum function rank, then closes sensor corresponding with objective function rank and call function and function rank
Sensor lower than objective function rank calls function.
6. device as claimed in claim 5, which is characterized in that described device further include: state acquisition module and the first judgement
Module;
The state acquisition module, for calling function setup function grade to the sensor in terminal system in the setup module
After not, before the rank obtains module according to the time generating function turn-off request, the current fortune of the terminal is obtained
Row state;
The first judgment module, for judging whether the current operating conditions are preset state;
The rank obtains module, specifically for generating letter according to the time when the first judgment module is judged as YES
Number turn-off request.
7. device as claimed in claim 5, which is characterized in that described device further include: utilization rate obtains module and second and sentences
Disconnected module;
The utilization rate obtains module, for before the time-obtaining module obtains the terminal system current time,
Obtain the current CPU usage of the terminal;
Second judgment module, for judging whether the CPU usage reaches preset threshold;
The time-obtaining module, specifically for obtaining the terminal system and working as when second judgment module is judged as YES
The preceding time.
8. device as claimed in claim 5, which is characterized in that the setup module specifically includes: acquisition submodule determines son
Module and setting submodule;
The acquisition submodule calls sensor corresponding to function for obtaining the sensor;
The determining submodule, for determining frequency of use of the sensor in the terminal;
The setting submodule, for calling function setup function rank to the sensor according to the frequency of use.
9. a kind of storage medium, it is characterised in that the storage medium is stored with instruction, and described instruction is executed by processor realization
Such as the step of any one of claim 1-4 the method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379811.6A CN106055075B (en) | 2016-05-31 | 2016-05-31 | A kind of method for closing and device of sensor |
PCT/CN2017/086464 WO2017206867A1 (en) | 2016-05-31 | 2017-05-29 | Sensor shutdown method and apparatus, storage medium, and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379811.6A CN106055075B (en) | 2016-05-31 | 2016-05-31 | A kind of method for closing and device of sensor |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106055075A CN106055075A (en) | 2016-10-26 |
CN106055075B true CN106055075B (en) | 2019-02-12 |
Family
ID=57172450
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379811.6A Expired - Fee Related CN106055075B (en) | 2016-05-31 | 2016-05-31 | A kind of method for closing and device of sensor |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106055075B (en) |
WO (1) | WO2017206867A1 (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106055075B (en) * | 2016-05-31 | 2019-02-12 | Oppo广东移动通信有限公司 | A kind of method for closing and device of sensor |
CN108701030B (en) * | 2017-09-05 | 2022-05-27 | 深圳欣锐科技股份有限公司 | Data processing method and device based on processor |
CN109874165B (en) * | 2019-03-29 | 2021-09-14 | 努比亚技术有限公司 | Method for timely closing sensor of wearable device, wearable device and storage medium |
CN111381953B (en) * | 2020-03-19 | 2024-01-16 | Oppo广东移动通信有限公司 | Process management method and device, storage medium and electronic equipment |
CN112783563A (en) * | 2021-01-28 | 2021-05-11 | 惠州Tcl移动通信有限公司 | Mobile terminal sensor working method, system, terminal and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103037094A (en) * | 2012-12-14 | 2013-04-10 | 上海华勤通讯技术有限公司 | Mobile terminal and screen turning method |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
CN104714741A (en) * | 2013-12-11 | 2015-06-17 | 北京三星通信技术研究有限公司 | Method and device for touch operation |
CN105425934A (en) * | 2014-07-16 | 2016-03-23 | 联发科技股份有限公司 | Power-saving method and associated electronic device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101924836B1 (en) * | 2011-03-23 | 2018-12-04 | 삼성전자주식회사 | System and method for a hsic communication |
CN103002551B (en) * | 2012-12-10 | 2016-04-27 | 广东欧珀移动通信有限公司 | A kind of electricity saving method of communication terminal |
CN103491262A (en) * | 2013-09-24 | 2014-01-01 | 广州市久邦数码科技有限公司 | Intelligent power saving mode switching system of mobile terminal |
JP6514437B2 (en) * | 2014-03-24 | 2019-05-15 | キヤノン株式会社 | Portable terminal and control method and program therefor |
CN105072675A (en) * | 2015-07-24 | 2015-11-18 | 广东欧珀移动通信有限公司 | Automatic WIFI connection switching off method and system and mobile terminal |
CN106055075B (en) * | 2016-05-31 | 2019-02-12 | Oppo广东移动通信有限公司 | A kind of method for closing and device of sensor |
-
2016
- 2016-05-31 CN CN201610379811.6A patent/CN106055075B/en not_active Expired - Fee Related
-
2017
- 2017-05-29 WO PCT/CN2017/086464 patent/WO2017206867A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103037094A (en) * | 2012-12-14 | 2013-04-10 | 上海华勤通讯技术有限公司 | Mobile terminal and screen turning method |
CN103176842A (en) * | 2013-03-15 | 2013-06-26 | 广东欧珀移动通信有限公司 | Background process management method and mobile terminal thereof |
CN104714741A (en) * | 2013-12-11 | 2015-06-17 | 北京三星通信技术研究有限公司 | Method and device for touch operation |
CN105425934A (en) * | 2014-07-16 | 2016-03-23 | 联发科技股份有限公司 | Power-saving method and associated electronic device |
Also Published As
Publication number | Publication date |
---|---|
WO2017206867A1 (en) | 2017-12-07 |
CN106055075A (en) | 2016-10-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106055075B (en) | A kind of method for closing and device of sensor | |
CN108040352B (en) | Method for processing business, device and mobile terminal under a kind of hybrid network standard | |
CN106055076B (en) | A kind of sensor method for closing and device | |
CN105045519B (en) | The screen control method and user terminal of a kind of user terminal | |
CN106210208A (en) | A kind of terminal and Double-battery powered method thereof | |
CN106095492A (en) | The method for closing of a kind of application program and device | |
CN109612123A (en) | Intelligent heating method, apparatus and electronic equipment | |
CN106095487B (en) | A kind of method for closing and device of application program | |
Kravchenko et al. | Technology analysis for smart home implementation | |
CN106445850A (en) | Connection method and device for intelligent hardware | |
CN106130124A (en) | A kind of method, system and terminal realizing multiple fast charge protocol compatibility | |
CN108196482A (en) | Power consumption control method, device, storage medium and electronic equipment | |
CN103905652A (en) | Power supply management method and electronic device | |
CN109377406A (en) | Electronic device promotes the building Methods of electric load forecasting and storage medium returned based on gradient | |
CN106095055B (en) | A kind of method for closing and device of application program | |
CN109840141A (en) | Thread control method, device, electronic equipment and storage medium based on cloud monitoring | |
CN106372502B (en) | A kind of method, apparatus and terminal limiting closing application program | |
CN105576649B (en) | Micro-capacitance sensor electricity consumption dispatching method and system | |
CN112291086A (en) | Memory capacity expansion method, system and device of switch | |
CN106845553A (en) | Load characteristic identification mechanism, method and auto-power-off device | |
CN102662759A (en) | Energy saving method based on CPU (central processing unit) load in cloud OS (operating system) | |
CN105430727B (en) | A kind of the carrier aggregation mode setting method and communication terminal of communication terminal | |
CN105764128B (en) | The method for controlling power supply and device of mobile terminal | |
CN105828421A (en) | Terminal and terminal power saving method | |
CN106055365B (en) | A kind of closing application program method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190212 |