CN104954528B - The detection method and device of the power consumption information of terminal device - Google Patents

The detection method and device of the power consumption information of terminal device Download PDF

Info

Publication number
CN104954528B
CN104954528B CN201410614821.4A CN201410614821A CN104954528B CN 104954528 B CN104954528 B CN 104954528B CN 201410614821 A CN201410614821 A CN 201410614821A CN 104954528 B CN104954528 B CN 104954528B
Authority
CN
China
Prior art keywords
power consumption
terminal device
total time
saving mode
detection
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.)
Active
Application number
CN201410614821.4A
Other languages
Chinese (zh)
Other versions
CN104954528A (en
Inventor
齐雪生
李岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tencent Computer Systems Co Ltd
Original Assignee
Shenzhen Tencent Computer Systems 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 Shenzhen Tencent Computer Systems Co Ltd filed Critical Shenzhen Tencent Computer Systems Co Ltd
Priority to CN201410614821.4A priority Critical patent/CN104954528B/en
Publication of CN104954528A publication Critical patent/CN104954528A/en
Application granted granted Critical
Publication of CN104954528B publication Critical patent/CN104954528B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses the detection method and device of a kind of power consumption information of terminal device.Wherein, this method includes:Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are interval time of the terminal device between continuous charging twice;Step B, power consumption testing result of the terminal device within a power consumption cycle is determined according to the power consumption data of terminal device;Step C, step A and step B is performed to circulate according to predetermined detection frequency n, obtains power consumption testing result of the terminal device within n power consumption cycle;Step D, after terminal device is arranged into any one or more battery saving mode, step A to step C is performed, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so that it is determined that the optimal battery saving mode of terminal device.The present invention solves the whether effective technical problem of battery saving mode that prior art can not quantify present terminal equipment.

Description

The detection method and device of the power consumption information of terminal device
Technical field
The present invention relates to computer internet field, in particular to a kind of detection of the power consumption information of terminal device Method and apparatus.
Background technology
The terminal device of prior art needs to consume substantial amounts of electric energy in the course of the work, for itself energy storage less end End equipment, the power consumption time of itself can be extended by opening battery saving mode.
By taking smart mobile phone as an example, the application program installed at present on smart mobile phone is more and more, causes smart mobile phone more next More power consumption, for the different use habits using smart mobile phone of different user, some users use the intelligent hand full of electric energy Machine just for one day, some possibility were with two days, even for phone is more or smart mobile phone accustomed to using sees the user of video, intelligent hand The electric energy of machine is only capable of supporting user to use half a day.At present, prior art, which provides some intelligence softwares, can help user using Battery saving mode is automatically turned on during smart mobile phone, so as to help user's power saving using smart mobile phone.
Herein it should be noted that prior art can provide the battery saving mode of various modes for terminal device, still with Exemplified by smart mobile phone, any one or more following battery saving mode can be used:The machine battery saving mode is opened, closes network connection Device, to processor CPU frequency reducings, turn down the technological means such as screen intensity, time opening offline mode.
Analysis is understood, although prior art can provide various battery saving modes for terminal device, so as to help terminal device User's power saving, but because the use habit of the different users of terminal device varies, therefore, it is impossible to determine current Whether battery saving mode is effective to present terminal equipment, or positive effect.Still by taking smart mobile phone as an example, current smart mobile phone User is if often access the user of website, if the battery saving mode that now smart mobile phone uses is to turn down screen intensity, This battery saving mode is not maximally effective battery saving mode.
It follows that the power save scheme that prior art provides substantially judges based on experience value, the measurement of no standard measure For present terminal equipment battery saving mode can actually power saving, i.e., can not quantify to employ the terminal device of current battery saving mode Terminal device under the electricity saved, and current battery saving mode can.
For above-mentioned prior art can not quantify present terminal equipment battery saving mode it is whether effective the problem of, at present not yet It is proposed effective solution.
The content of the invention
It is existing at least to solve the embodiments of the invention provide the detection method and device of a kind of power consumption information of terminal device There is the whether effective technical problem of battery saving mode that technology can not quantify present terminal equipment.
One side according to embodiments of the present invention, there is provided a kind of detection method of the power consumption information of terminal device, bag Include:Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are that terminal device is continuous twice Charging between interval time;Step B, determine terminal device within a power consumption cycle according to the power consumption data of terminal device Power consumption testing result;Step C, step A and step B is performed to circulate according to predetermined detection frequency n, obtains terminal device in n Power consumption testing result in the individual power consumption cycle;Step D, by terminal device be arranged to any one or more battery saving mode it Afterwards, step A to step C is performed, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so as to really Determine the optimal battery saving mode of terminal device.
Another aspect according to embodiments of the present invention, a kind of detection means of the power consumption information of terminal device is additionally provided, Including:Acquisition module, for power consumption data of the acquisition terminal equipment within a power consumption cycle, the power consumption cycle is that terminal device exists Interval time between continuous charging twice;Determining module, terminal device is determined for the power consumption data according to terminal device Power consumption testing result within a power consumption cycle;Execution module, for performing collection mould according to predetermined detection frequency n to circulate The function of block and determining module, obtain power consumption testing result of the terminal device within n power consumption cycle;Detection module, for After terminal device is arranged into any one or more battery saving mode, acquisition module is performed to the function of execution module, detection Power consumption testing result of the terminal device under any one battery saving mode is obtained, so that it is determined that the optimal power saving mould of terminal device Formula.
In embodiments of the present invention, using step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, consumption The electric cycle is interval time of the terminal device between continuous charging twice;Step B, it is true according to the power consumption data of terminal device Determine power consumption testing result of the terminal device within a power consumption cycle;Step C, step is performed to circulate according to predetermined detection frequency n Rapid A and step B, obtains power consumption testing result of the terminal device within n power consumption cycle;Step D, is arranged to by terminal device After any one or more battery saving mode, step A to step C is performed, detection obtains terminal device in any one power saving mould Power consumption testing result under formula, so that it is determined that the mode of the optimal battery saving mode of terminal device, by acquisition module, for gathering Power consumption data of the terminal device within a power consumption cycle, power consumption cycle are terminal device between continuously charging twice Every the time;Determining module, for determining power consumption of the terminal device within a power consumption cycle according to the power consumption data of terminal device Testing result;Execution module, for circulating the function of execution acquisition module and determining module according to predetermined detection frequency n, obtain To power consumption testing result of the terminal device within n power consumption cycle;Detection module, for terminal device to be arranged into any one After kind or a variety of battery saving modes, perform acquisition module to the function of execution module, detection and obtain terminal device at any one Power consumption testing result under battery saving mode, so that it is determined that the optimal battery saving mode of terminal device.Such scheme is realized by eventually End equipment is arranged to after any one or more battery saving mode, passes through the power consumption number in the n power consumption cycle of acquisition terminal equipment According to analyze to obtain power consumption testing result of the terminal device under every kind of battery saving mode, because such scheme is using to n The power consumption data collected in the individual power consumption cycle carries out analysis calculating, the detection scheme of this principle using big data, application In the scene of power consumption detection is carried out under different battery saving modes for terminal device, which kind of battery saving mode can be accurately weighed It is the optimal battery saving mode of the terminal device, and then can realizes and optimal battery saving mode is pushed to terminal device so that terminal Equipment works under maximally effective battery saving mode.The power save scheme for comparing prior art offer substantially judges based on experience value Scheme, it is possible to achieve quantitative that battery saving mode of measurement present terminal equipment is most effective, so solve prior art without Method quantifies the whether effective technical problem of battery saving mode of present terminal equipment
Brief description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, forms the part of the application, this hair Bright schematic description and description is used to explain the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of terminal of the detection method of the power consumption information of operation terminal device of the embodiment of the present invention Hardware block diagram;
Fig. 2 is the flow chart of the detection method of the power consumption information of according to embodiments of the present invention one terminal device;
Fig. 3 is the interaction figure of the detection method of the power consumption information of according to embodiments of the present invention one preferable terminal device;
Fig. 4 is the structural representation according to the detection means of the power consumption information of the terminal device of this law embodiment two;
Fig. 5 is shown according to a kind of structure of the detection means of the power consumption information of optional terminal device of this law embodiment two It is intended to;
Fig. 6 is shown according to a kind of structure of the detection means of the power consumption information of optional terminal device of this law embodiment two It is intended to;
Fig. 7 is shown according to a kind of structure of the detection means of the power consumption information of optional terminal device of this law embodiment two It is intended to;
Fig. 8 is shown according to a kind of structure of the detection means of the power consumption information of optional terminal device of this law embodiment two It is intended to;And
Fig. 9 is a kind of structured flowchart of according to embodiments of the present invention three background server.
Embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects Enclose.
It should be noted that term " first " in description and claims of this specification and above-mentioned accompanying drawing, " Two " etc. be for distinguishing similar object, without for describing specific order or precedence.It should be appreciated that so use Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating herein or Order beyond those of description is implemented.In addition, term " comprising " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, be not necessarily limited to for example, containing the process of series of steps or unit, method, system, product or equipment Those steps or unit clearly listed, but may include not list clearly or for these processes, method, product Or the intrinsic other steps of equipment or unit.
The part noun being related to below with regard to the application is explained as follows:
Battery saving mode:By setting the electricity-saving characteristic of terminal device (for example, screen intensity, CPU handle frequency, flight mould Opening time or cycle of formula etc.) come realize reduce terminal device consumption electric energy speed, extend present terminal equipment power consumption Time.
Embodiment 1
According to embodiments of the present invention, there is provided a kind of embodiment of the method for the detection method of the power consumption information of terminal device, It should be noted that can be in the department of computer science of such as one group computer executable instructions the flow of accompanying drawing illustrates the step of Performed in system, although also, show logical order in flow charts, in some cases, can be with different from herein Order perform shown or described step.
The embodiment of the method that the embodiment of the present application one is provided can be in mobile terminal, terminal or similar fortune Calculate and performed in device.Exemplified by running on computer terminals, Fig. 1 is a kind of consumption of operation terminal device of the embodiment of the present invention The hardware block diagram of the terminal of the detection method of power information.As shown in figure 1, terminal 10 can include one Or (processor 102 can include but is not limited to Micro-processor MCV or programmable to multiple (one is only shown in figure) processors 102 Logical device FPGA etc. processing unit), the memory 104 for data storage and the transmitting device for communication function 106.It will appreciated by the skilled person that the structure shown in Fig. 1 is only to illustrate, it is not to the knot of above-mentioned electronic installation It is configured to limit.For example, terminal 10 may also include than shown in Fig. 1 more either less components or with Different configuration shown in Fig. 1.
Memory 104 can be used for the software program and module of storage application software, such as the terminal in the embodiment of the present invention Programmed instruction/module corresponding to the detection method of the power consumption information of equipment, processor 102 are stored in memory by operation Software program and module in 104, so as to perform various function application and data processing, that is, realize above-mentioned terminal device Power consumption information detection method.Memory 104 may include high speed random access memory, may also include nonvolatile memory, such as One or more magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory 104 can further comprise that relative to the remotely located memory of processor 102, these remote memories network connection can be passed through To terminal 10.The example of above-mentioned network includes but is not limited to internet, intranet, LAN, mobile radio communication And combinations thereof.
Transmitting device 106 is used to data are received or sent via a network.Above-mentioned network instantiation may include The wireless network that the communication providerses of terminal 10 provide.In an example, transmitting device 106 is fitted including a network Orchestration (Network Interface Controller, NIC), its can be connected by base station with other network equipments so as to Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, its For wirelessly being communicated with internet.
Under above-mentioned running environment, this application provides the detection method of the power consumption information of terminal device as shown in Figure 2. Fig. 2 is the flow chart of the detection method of the power consumption information of according to embodiments of the present invention one terminal device.
As shown in Fig. 2 the detection method of the power consumption information of the terminal device can include step is implemented as follows:
Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are terminal device twice Interval time between continuous charging.
Understood with reference to Fig. 1, the power consumption data that can be locally recorded by terminal 10 come acquisition terminal equipment, this Shen Terminal device that please be in above-mentioned steps A can be smart mobile phone, can pass through the record that power consumption data is installed on smart mobile phone Client, i.e., a built-in service on smart mobile phone, to record power consumption of the terminal device between continuous charging twice Data, the interval time that smart mobile phone betides trickle charge twice refer to that this charging complete of smart mobile phone is carried out again to next time The time interval of charging.
After the local power consumption data of terminal device records, it can be gathered by the terminal 10 in Fig. 1 The power consumption data of terminal device records is stated, i.e., in the case where there is network, terminal device reports to above-mentioned power consumption data with being somebody's turn to do Terminal device has the terminal 10 of correspondence, and the terminal 10 can be the service with processing power consumption data Device.
Step B, determine that power consumption of the terminal device within a power consumption cycle detects knot according to the power consumption data of terminal device Fruit.
The application above-mentioned steps B, which can realize, to be analyzed power consumption data, obtains terminal device a power consumption cycle Interior power consumption testing result, i.e. terminal 10 are received on the smart mobile phone of user as the server of processing power consumption data After reporting the power consumption data to come up, these power consumption datas can be carried out with analysis calculating, generation smart mobile phone is within a power consumption cycle Power consumption testing result.
Step C, step A and step B is performed to circulate according to predetermined detection frequency n, obtain terminal device n power consumption week Power consumption testing result in phase.
Because the power consumption testing result in a power consumption cycle can not accurately know the power consumption rule of present terminal equipment, this Individual power consumption rule is related to many factors such as the use habit of the user using the terminal device, usage scenario, specifically, together One user substantially has certain rule using the custom or frequency of smart mobile phone, although the duration that uses daily or using Custom is not necessarily definitely identical, but the frequency used within a period of time or in a cycle is substantially the same, and therefore, computer is whole The power consumption data that end 10 can carry out timing acquiring terminal device according to detection frequency n set in advance (can be according to a power consumption Cycle performs one-time detection as time interval), and the power consumption data to collecting every time performs step B analysis calculating, i.e., Power consumption testing result of the acquisition terminal equipment within n power consumption cycle, due to the detection mode using this big data, it can make It is accurate to obtain power consumption testing result.
Step D, after terminal device is arranged into any one or more battery saving mode, step A is repeated to step Rapid C, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so that it is determined that terminal device is optimal Battery saving mode.
The power consumption detection scheme provided based on above-mentioned steps A to step C, D is further directed to terminal for the application above-mentioned steps Equipment carries out power consumption detection under different battery saving modes, so that it is determined which kind of battery saving mode is the optimal power saving mould of the terminal device Formula, and then can realize that terminal 10 pushes optimal battery saving mode to the terminal device communicated so that terminal is set It is standby to be worked under maximally effective battery saving mode.
Herein it should be noted that before step D execution, the terminal device may be at the shape of no battery saving mode State, or the state in any one battery saving mode.
The scheme that the above embodiments of the present application one are provided, terminal device is being arranged to any one or more power saving mould After formula, by the power consumption data in the n power consumption cycle of acquisition terminal equipment, to analyze to obtain the terminal device in every kind of power saving Power consumption testing result under pattern, because such scheme is using the power consumption data progress to being collected in n power consumption cycle Analysis calculates, and the detection scheme of this principle using big data, applies and enters for terminal device under different battery saving modes In the scene of row power consumption detection, the optimal battery saving mode which kind of battery saving mode is the terminal device can be accurately weighed, and then It can realize and optimal battery saving mode is pushed to terminal device so that terminal device works under maximally effective battery saving mode.Than The power save scheme substantially scheme to judge based on experience value provided compared with prior art, it is possible to achieve quantitative measurement is currently eventually That battery saving mode of end equipment is most effective, so solve prior art can not quantify present terminal equipment battery saving mode whether Effective technical problem.
Exemplified by such scheme is applied in smart mobile phone, in a kind of alternative embodiment of such scheme, above-mentioned steps A is extremely The scheme that step D is realized can be applied on any one smart mobile phone of access terminal 10, i.e., noted in smart mobile phone Volume is arrived after terminal 10, and terminal 10 can push acquisition instructions to corresponding smart mobile phone, gather intelligent hand The power consumption data that machine is recorded under any one battery saving mode, and the power consumption data of the smart mobile phone is analyzed, it is determined that Power consumption testing result of the smart mobile phone under different battery saving modes, divides the power consumption data of single smart mobile phone so as to realize Analysis and detection, the maximally effective battery saving mode of the measurement of the quantization smart mobile phone.
, can be by above-mentioned steps A to step herein it should be noted that in another alternative embodiment that the application provides The scheme that D is realized is applied on m terminal device of access terminal 10.Computer end is registered in m terminal device After end 10, terminal 10 can push acquisition instructions can detect m to all terminal devices, i.e. terminal 10 The power consumption condition of individual terminal device.
It follows that above-mentioned another alternative embodiment can be realized, in the case where detecting m terminal device, obtaining After the device parameter for getting each terminal device, m terminal device can be drawn according to the device parameter of each terminal device It is divided at least two types, obtains at least two terminal device set, and the detection side used according to above-mentioned steps A to step D Case is examined the power consumption data of all terminal devices in any one terminal device set as a power consumption data set Survey, obtain the power consumption testing result corresponding to each terminal device set, so that it is determined that the optimal province of each terminal device set Power mode.
Exemplified by such scheme is applied in smart mobile phone, the device parameter of above-mentioned terminal device can be smart mobile phone Type model, terminal 10 are classified m terminal device of registration according to different type models, and to phase The detection scheme that the terminal device of same type machine model takes above-mentioned steps A to be provided to step D is analyzed power consumption data, that is, is pressed Analysis calculating is carried out to the power consumption data of a kind of smart mobile phone according to type model, determines the smart mobile phone of some type model most Effective battery saving mode, so as to which the terminal device of the type model further is taken into the maximally effective battery saving mode.
Based on above-mentioned each optional embodiment, the application above-mentioned steps B, determined eventually according to the power consumption data of terminal device The scheme of power consumption testing result of the end equipment within a power consumption cycle can include process is implemented as follows:
Step B1, obtains power consumption detection model, and power consumption detection model includes:The calculating mould of unit quantity of electricity mean consumption duration The computation model of type and power consumption ratio.
Step B3, power consumption detection process is carried out to power consumption data using power consumption detection model, generates the power consumption of terminal device Testing result.
The above-mentioned power consumption detection model of the application provides a kind of rule for power consumption detection, is calculated by this rule Analysis obtains the power consumption testing result of terminal device, and the application can provide at the calculating mould of unit quantity of electricity mean consumption duration The computation model of type and power consumption ratio, wherein, unit quantity of electricity mean consumption duration be used for characterize some terminal device or certain The terminal device of one type consumes the duration required for unit quantity of electricity under a certain battery saving mode, required for consuming unit quantity of electricity Duration value it is bigger, then illustrate that the power consumption of terminal device under the battery saving mode is more, it is more power-consuming, otherwise, it means that the power saving Terminal device power saving under pattern;Power consumption ratio can be used for characterizing some terminal device or the terminal device of a certain type exists Invalid power consumption time and the ratio value without power consumption time, the ratio value represent the power saving mould closer to 1 under a certain battery saving mode Terminal device gets over power saving under formula.
Herein it should be noted that in each embodiment that the application provides, power consumption data can comprise at least following ginseng Number:Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount.
In a kind of preferred embodiment that the application provides, averagely make for the unit quantity of electricity of terminal device in power consumption testing result In the case of duration, the step B3 of above-described embodiment, power consumption detection process is carried out to power consumption data using power consumption detection model, The step of power consumption testing result for generating terminal device, can be achieved by the following scheme:
Unit quantity of electricity of the terminal device within a power consumption cycle is calculated by any one following calculation formula to put down Use duration T:
Formula one:Wherein, t1iFor bright screen total time, t2iFor standby total time, t3iTo go out Screen not standby total time, S is power consumption total amount.
Formula two:Wherein, t1iFor bright screen total time, t2iFor standby total time, S is power consumption total amount.
Formula three:Wherein, t1iFor bright screen total time, S is power consumption total amount.
Herein it should be noted that the i in such scheme can represent to access the terminal device of above computer terminal 10 Label, m represent terminal device number, still by taking smart mobile phone access server as an example, in the case of i=1, represent pair Some terminal device calculates being saved at some for some terminal device to its detection and analysis under some battery saving mode Unit quantity of electricity under power mode averagely uses duration T, is optimal battery saving mode so as to further compare that battery saving mode; In the case of i > 1, represent to the terminal device of a certain style number to their detection and analysis under some battery saving mode, meter The unit quantity of electricity under some battery saving mode for calculating the terminal device of a certain style number averagely uses duration T, so as to further It is optimal battery saving mode to compare that battery saving mode.
For example, exemplified by detecting 100 smart mobile phones with identical mobile phone model, can be calculated using formula one Analyze this unit quantity of electricity of 100 smart mobile phones within a power consumption cycle and averagely use duration, need to add up during this Bright screen total time of this 100 intelligent mobile phone terminals, standby total time and go out screen not standby total time, and by accumulation result with it is tired The power consumption total amount added seeks ratio, so as to which the duration that the unit quantity of electricity of current a certain mobile phone model can use be calculated.
In a kind of preferred embodiment that the application provides, the situation in power consumption testing result for the power consumption ratio of terminal device Under, the step B3 of above-described embodiment, power consumption detection process is carried out to power consumption data using power consumption detection model, generates terminal device Power consumption testing result the step of can also be achieved by the following scheme:
Power consumption ratio μ of the terminal device within a power consumption cycle is calculated by any one following calculation formula:
Formula four:Wherein, t2iFor standby total time, t4iFor screen total time of going out.
Formula five:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
Herein it should be noted that the i in such scheme can represent to access the terminal device of above computer terminal 10 Label, m represent terminal device number, still by taking smart mobile phone access server as an example, in the case of i=1, represent pair Some terminal device calculates being saved at some for some terminal device to its detection and analysis under some battery saving mode Power consumption ratio μ under power mode, it is optimal battery saving mode so as to further compare that battery saving mode;In i > 1 situation Under, represent to calculate a certain type to their detection and analysis under some battery saving mode to the terminal device of a certain style number Number terminal device the power consumption ratio μ under some battery saving mode, so as to further compare that battery saving mode to be optimal Battery saving mode.
For example, exemplified by detecting 100 smart mobile phones with identical mobile phone model, can be calculated using formula four Power consumption ratio μ of this 100 smart mobile phones within a power consumption cycle is analyzed, this 100 intelligence that add up are needed during this The standby total time of mobile phone terminal, and accumulation result and the cumulative screen that goes out are sought into ratio total time, it is current a certain so as to be calculated The duration that the unit quantity of electricity of mobile phone model can use.
Based on above-mentioned each optional and preferred embodiment, the step D that the application such scheme is realized realizes to obtain terminal Power consumption testing result of the equipment under any one battery saving mode, so that it is determined that the step of optimal battery saving mode of terminal device, It can be achieved by the following scheme:
Step D1, it is individual in n terminal device under any one battery saving mode can be obtained by the background server in Fig. 1 Power consumption testing result in the power consumption cycle.
The power consumption testing result in n power consumption cycle in the application above-mentioned steps D1 can be fitted, and obtain one Matched curve, power consumption change curve of certain terminal equipment 1 under a certain battery saving mode can be obtained, curve is more steady, says Bright power consumption is also more stable.,
Step D3, average calculating or mean square deviation meter are carried out to power consumption testing result of the terminal device within n cycle Calculate, to determine power consumption data of the terminal device under any one battery saving mode.
The application above-mentioned steps D3 can realize according to the average value of curve and the method for mean square deviation a kind of eventually to calculate certain The power consumption data of end equipment, by taking the duration that unit quantity of electricity uses as an example, unit quantity of electricity uses the bigger explanation of the average value of duration more The smaller explanation of mean square deviation of each point and average value in power saving, or curve is more stable.
Step D5, power consumption data of the comparison terminal equipment under any two battery saving mode, determines the optimal of terminal device Battery saving mode.
Still by taking smart mobile phone as an example, scheme that above-mentioned steps D1 provides to step D5, it is possible to achieve to certain a kind of mobile phone Power consumption change curve of the terminal device of model under any one battery saving mode, can quantify institute's unit under every kind of battery saving mode Electricity uses duration, and determines optimal battery saving mode by comparing the power consumption change curve under different battery saving modes.
Fig. 3 can be combined below, to detect power consumption data of a certain type smart mobile phone under different battery saving modes, it is determined that Exemplified by optimal battery saving mode, the scheme of the embodiment of the present application one is described in detail:
Step 1, a built-in service on each smart mobile phone, this is carried out in the smart mobile phone for recording user and is filled Electricity is accomplished to the power consumption data within a time interval length between recharging next time, and power consumption data comprises at least:Bright screen Total time, standby total time, go out screen not standby total time, and the total electricity consumed in the power consumption cycle.
Step 2, in the case where there is network using the power consumption data of smart mobile phone record as shown in information reporting to Fig. 1 Terminal 10, the terminal 10 are the background server for analyzing power consumption data, and each smart mobile phone is pre- First it is registered to the background server.
Step 3, can be according to different intelligent hands after server receives the power consumption data that user's smart mobile phone reports up The type of machine is classified, and these power consumption datas are carried out to the analysis calculating of following step 4 and 5.
Step 4, can be made according to the unit quantity of electricity for formula is calculated as below calculating a certain type or some terminal device Duration:Unit quantity of electricity is averagely using duration=(going out bright screen total time+standby total time+screen not standby total time)/(power consumption Total amount).
Herein it should be noted that in step 4, can also use bright screen total time/power consumption total amount and it is standby total when Between/substitute screen total time of going out, when screen total time standby total time/go out is closer to 1, the value of bright screen total time/power consumption total amount is bigger, Also explanation gets over power saving.
Step 5, according to the calculation formula of step 4, the unit quantity of electricity that can calculate each cycle averagely uses duration, and Obtaining simultaneously observation unit's electricity within the regular hour, averagely using the change curve of duration, curve is more steady, illustrates power consumption Also it is more stable.
Herein it should be noted that for that in step 5, can be counted according to the average value of curve and the method for mean square deviation Calculate, the bigger explanation more power saving of the duration average value that unit quantity of electricity uses, curve each puts the smaller explanation of mean square deviation with average value It is more stable.
Step 6, after increasing to smart mobile phone or changing some electricity-saving characteristic, the battery saving mode of smart mobile phone is changed, The scheme that step 1 arrives step 5 is now performed to the smart mobile phone under every kind of battery saving mode again, i.e., the side of step 5 is arrived according to step 1 Method equally calculates the change curve that unit quantity of electricity averagely uses duration, if the bigger explanation more power saving of value, if smaller explanation It is more power-consuming.It is possible thereby to any battery saving mode is determined by power consumption data of the intelligent mobile phone under different electricity-saving characteristic For optimal battery saving mode.
It follows that the application realize using a kind of principle of big data come weigh mobile phone whether power saving, can save how much Electricity.Due to same person using smart mobile phone custom or frequency substantially have certain rule, although use daily when It is long not necessarily definitely identical, but the frequency used within a period of time or in a cycle is substantially the same.Such scheme can make With consolidator counting user some use electricity essential information, each user from this charge after to next time charging make Electricity is to calculate, and usage time can also be calculated, and user the bright screen time how long, goes out and how long shields the time, Stand-by time be how long, can detect and be calculated.After these simple power consumption datas are reported to server, service Device can just be calculated according to these power consumption datas this smart mobile phone or this type smart mobile phone can use how long. If the user data of magnanimity is come out and calculates the duration that same charge can use on some type.So exist It is poor to verify the duration that unit quantity of electricity uses for can before increase power saving strategy and after power saving strategy, according to this difference can For judging the quality of power saving strategy, the time that unit quantity of electricity uses is longer, illustrates that power saving effect is better.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention is not limited by described sequence of movement because According to the present invention, some steps can use other orders or carry out simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation The method of example can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme is substantially in other words to existing The part that technology contributes can be embodied in the form of software product, and the computer software product is stored in a storage In medium (such as ROM/RAM, magnetic disc, CD), including some instructions to cause a station terminal equipment (can be mobile phone, calculate Machine, server, or network equipment etc.) perform method described in each embodiment of the present invention.
Embodiment 2
According to embodiments of the present invention, another device embodiment for being used to implement above method embodiment is additionally provided, this The device that application above-described embodiment is provided can be run on the terminal 10 shown in Fig. 1.
Fig. 4 is the structural representation according to the detection means of the power consumption information of the terminal device of this law embodiment two.
As shown in figure 4, the detection means of the power consumption information of the terminal device can include:Acquisition module 40, determining module 42nd, execution module 44 and detection module 46.
Wherein, acquisition module 40, for power consumption data of the acquisition terminal equipment within a power consumption cycle, the power consumption cycle is Interval time of the terminal device between continuous charging twice;Determining module 42, for the power consumption data according to terminal device Determine power consumption testing result of the terminal device within a power consumption cycle;Execution module 44, for coming according to predetermined detection frequency n Circulation performs the function of acquisition module 40 and determining module 42, obtains power consumption detection knot of the terminal device within n power consumption cycle Fruit;Detection module 46, for after terminal device is arranged into any one or more battery saving mode, performing acquisition module 40 To the function of execution module 44, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so as to really Determine the optimal battery saving mode of terminal device.
The scheme that the above embodiments of the present application two are provided, terminal device is being arranged to any one or more power saving mould After formula, by the power consumption data in the n power consumption cycle of acquisition terminal equipment, to analyze to obtain the terminal device in every kind of power saving Power consumption testing result under pattern, because such scheme is using the power consumption data progress to being collected in n power consumption cycle Analysis calculates, and the detection scheme of this principle using big data, applies and enters for terminal device under different battery saving modes In the scene of row power consumption detection, the optimal battery saving mode which kind of battery saving mode is the terminal device can be accurately weighed, and then It can realize and optimal battery saving mode is pushed to terminal device so that terminal device works under maximally effective battery saving mode.Than The power save scheme substantially scheme to judge based on experience value provided compared with prior art, it is possible to achieve quantitative measurement is currently eventually That battery saving mode of end equipment is most effective, so solve prior art can not quantify present terminal equipment battery saving mode whether Effective technical problem.
Exemplified by such scheme is applied in smart mobile phone, in a kind of alternative embodiment of such scheme, above-mentioned collection mould The scheme that block 40 is realized to execution module 44 can be applied on any one smart mobile phone of access terminal 10, that is, is existed Smart mobile phone is registered to after terminal 10, and terminal 10 can push acquisition instructions smart mobile phone to corresponding to, The power consumption data that collection smart mobile phone is recorded under any one battery saving mode, and the power consumption data of the smart mobile phone is carried out Analysis, determines power consumption testing result of the smart mobile phone under different battery saving modes, so as to realize the power consumption to single smart mobile phone Data are analyzed and detected, the maximally effective battery saving mode of the measurement of the quantization smart mobile phone.
Herein it should be noted that above-mentioned acquisition module 40, determining module 42, execution module 44 and the correspondence of detection module 46 Step A to step D in embodiment one, four modules are identical with example and application scenarios that corresponding step is realized, but It is not limited to the disclosure of that of above-described embodiment one.It should be noted that above-mentioned module can be run as a part of of device In the terminal 10 that embodiment one provides, it can be realized, can also be realized by hardware by software.
Preferably, the application said apparatus is additionally operable to, in the case where detecting m terminal device, obtain each terminal device Device parameter, and m terminal device is divided into by least two types according to the device parameter of each terminal device, obtained extremely Few two terminal device set, and set any one terminal according to the detection scheme that above-mentioned acquisition module to execution module uses The power consumption data of all terminal devices in standby set is detected as a power consumption data set, obtains each terminal device The corresponding power consumption testing result of set, so that it is determined that the optimal battery saving mode of each terminal device set.
Herein it should be noted that the function that can also realize of said apparatus correspond in embodiment one be used for detect m The method and step of the left and right battery saving mode of individual terminal device, the example and application scenarios phase that the module is realized with corresponding step Together, but it is not limited to the disclosure of that of above-described embodiment one.It should be noted that above-mentioned module can be with as a part for device Operate in the terminal 10 of the offer of embodiment one, can be realized, can also be realized by hardware by software.
Preferably, as shown in figure 5, above-mentioned determining module 42 can include:First acquisition module 421 and generation module 423.
Wherein, the first acquisition module 421, for obtaining power consumption detection model, power consumption detection model includes:Unit quantity of electricity is put down Consume the computation model of duration and the computation model of power consumption ratio;Generation module 423, for using power consumption detection model to consumption Electric data carry out power consumption detection process, generate the power consumption testing result of terminal device.
Herein it should be noted that the step that above-mentioned first acquisition module 421 and generation module 423 correspond in embodiment one Rapid B1 to step B3, two modules are identical with example and application scenarios that corresponding step is realized, but are not limited to above-mentioned implementation The disclosure of that of example one.There is provided it should be noted that above-mentioned module may operate in embodiment one as a part for device Terminal 10 in, can be realized, can also be realized by hardware by software.
Preferably, in the above embodiments of the present application, power consumption data can comprise at least:Bright screen total time, standby total time, Go out and shield not standby total time, go out and shield total time and power consumption total amount, wherein, in the unit quantity of electricity that power consumption testing result is terminal device In the case of averagely using duration, as shown in fig. 6, above-mentioned generation module 423 can be performed by any one following calculating mould The calculation formula that block provides averagely uses duration T unit quantity of electricity of the terminal device within a power consumption cycle is calculated:
First computing module, for list of the terminal device within a power consumption cycle to be calculated by equation below one Position electricity averagely uses duration T:Wherein, t1iFor bright screen total time, t2iFor standby total time, t3iFor Go out screen not standby total time, S is power consumption total amount.
Second computing module, for list of the terminal device within a power consumption cycle to be calculated by equation below two Position electricity averagely uses duration T:Wherein, t1iFor bright screen total time, t2iFor standby total time, S is that power consumption is total Amount.
3rd computing module, for list of the terminal device within a power consumption cycle to be calculated by equation below three Position electricity averagely uses duration T:Wherein, t1iFor bright screen total time, S is power consumption total amount.
Herein it should be noted that above-mentioned first computing module, the second computing module and the 3rd computing module correspond in fact Apply the step of formula one in example one, formula two and formula three these three calculation formula are realized, three modules and corresponding public affairs The example that the step of formula is realized is realized is identical with application scenarios, but is not limited to the disclosure of that of above-described embodiment one.Need It is noted that above-mentioned module is may operate in as a part for device in the terminal 10 of the offer of embodiment one, can To be realized by software, can also be realized by hardware.
Preferably, in the above embodiments of the present application, power consumption data can at least include:Bright screen total time, standby total time, Go out and shield not standby total time, go out and shield total time and power consumption total amount, wherein, in the power consumption ratio that power consumption testing result is terminal device In the case of, as shown in fig. 7, above-mentioned generation module 423 can perform is calculated end by any one following calculation formula Power consumption ratio μ of the end equipment within a power consumption cycle:
4th computing module, for consumption of the terminal device within a power consumption cycle to be calculated by equation below four Electric ratio μ:Wherein, t2iFor standby total time, t4iFor screen total time of going out.
5th computing module, for consumption of the terminal device within a power consumption cycle to be calculated by equation below five Electric ratio μ:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
Herein it should be noted that the formula that above-mentioned 4th computing module, the 5th computing module correspond in embodiment one 4th, the step of the two calculation formula of formula five are realized, two modules realize that the step of is realized with corresponding formula Example is identical with application scenarios, but is not limited to the disclosure of that of above-described embodiment one.It should be noted that above-mentioned module conduct A part for device may operate in the terminal 10 of the offer of embodiment one, can be realized, can also led to by software Cross hardware realization.
Preferably, as shown in figure 8, above-mentioned detection module 46 can include:Second acquisition module 461, the 6th computing module 463 and comparison module 465.
Wherein, the second acquisition module 461, for obtaining under any one battery saving mode terminal device n power consumption cycle Interior power consumption testing result;6th computing module 463, for being carried out to power consumption testing result of the terminal device within n cycle Average calculating or mean square deviation calculate, to determine power consumption data of the terminal device under any one battery saving mode;Compare mould Block 465, for power consumption data of the comparison terminal equipment under any two battery saving mode, determine the optimal power saving mould of terminal device Formula.
Herein it should be noted that above-mentioned second acquisition module 461, the 6th computing module 463 and the correspondence of comparison module 465 Step D1 to step D5 in embodiment one, three modules are identical with example and application scenarios that corresponding step is realized, But it is not limited to the disclosure of that of above-described embodiment one.It should be noted that above-mentioned module can transport as a part of of device Row can be realized by software, can also realized by hardware in the terminal 10 that embodiment one provides.
It follows that the application said apparatus embodiment is realized using a kind of principle of big data whether to weigh mobile phone Power saving, how many electricity can be saved.Due to same person using smart mobile phone custom or frequency substantially have certain rule, although The duration used daily is not necessarily definitely identical, but the frequency used within a period of time or in a cycle is substantially the same.On The scheme of stating can use consolidator counting user some use electricity essential information, each user from this charge after to The electricity used that charges next time is to calculate, and usage time can also be calculated, and user the bright screen time how long, goes out Shield the time how long, stand-by time be how long, can detect and be calculated.These simple power consumption datas are reported to service After device, server can just calculate this smart mobile phone or the smart mobile phone of this type according to these power consumption datas to be made With how long.If the user data of magnanimity is come out and calculates what the same charge on some type can use Duration.It is poor so the duration that unit quantity of electricity uses to be verified in can before increasing power saving strategy and after power saving strategy, according to this Individual difference can is used for judging the quality of power saving strategy, and the time that unit quantity of electricity uses is longer, illustrates that power saving effect is better.
Embodiment 3
Embodiments of the invention can provide a kind of background server, and the background server can be in background server group Any one background server.Alternatively, in the present embodiment, above-mentioned background server, which can also replace with other, has place Manage the terminal device of function.
Alternatively, in the present embodiment, above-mentioned background server can be located in multiple network equipments of computer network At least one network equipment.
In the present embodiment, above-mentioned background server can perform following steps in the leak detection method of application program Program code:Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are terminal device two Interval time between secondary continuous charging;Step B, determine terminal device in a power consumption according to the power consumption data of terminal device Power consumption testing result in cycle;Step C, step A and step B is performed to circulate according to predetermined detection frequency n, terminal is obtained and sets The standby power consumption testing result within n power consumption cycle;Step D, terminal device is being arranged to any one or more power saving mould After formula, step A to step C is performed, detection obtains power consumption testing result of the terminal device under any one battery saving mode, from And determine the optimal battery saving mode of terminal device.
Herein it should be noted that any one background server in above-mentioned background server group can be with the end of front end End equipment (such as smart mobile phone) establishes correspondence, and the record client of power consumption data can be installed on smart mobile phone, that is, is existed A built-in service on smart mobile phone, to record power consumption data of the terminal device between continuous charging twice.
Alternatively, Fig. 9 is a kind of structured flowchart of background server according to embodiments of the present invention.As shown in figure 9, after this Platform server A can include:One or more (one is only shown in figure) processor 51, memory 53 and transmitting devices 55.
Wherein, memory 53 can be used for storage software program and module, such as the security breaches inspection in the embodiment of the present invention Survey programmed instruction/module corresponding to method and apparatus, processor 51 by operation be stored in software program in memory 53 with And module, so as to perform various function application and data processing, that is, realize the detection method of above-mentioned system vulnerability attack.Deposit Reservoir 53 may include high speed random access memory, can also include nonvolatile memory, as one or more magnetic storage fills Put, flash memory or other non-volatile solid state memories.In some instances, memory 53 can further comprise relative to place The remotely located memory of device 51 is managed, these remote memories can pass through network connection to background server A.Above-mentioned network Example includes but is not limited to internet, intranet, LAN, mobile radio communication and combinations thereof.
Above-mentioned transmitting device 55 is used to data are received or sent via a network.Above-mentioned network instantiation can Including cable network and wireless network.In an example, transmitting device 55 includes a network adapter (Network Interface Controller, NIC), its can be connected by netting twine with other network equipments with router so as to interconnection Net or LAN are communicated.In an example, transmitting device 55 is radio frequency (Radio Frequency, RF) module, and it is used In wirelessly being communicated with internet.
Wherein, specifically, memory 53 is used for information and the application for storing deliberate action condition and default access user Program.
Processor 51 can call the information and application program that memory 53 stores by transmitting device, to perform following steps Suddenly:Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are that terminal device is continuous twice Charging between interval time;Step B, determine terminal device within a power consumption cycle according to the power consumption data of terminal device Power consumption testing result;Step C, step A and step B is performed to circulate according to predetermined detection frequency n, obtains terminal device in n Power consumption testing result in the individual power consumption cycle;Step D, by terminal device be arranged to any one or more battery saving mode it Afterwards, step A to step C is performed, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so as to really Determine the optimal battery saving mode of terminal device.
Optionally, above-mentioned processor 51 can also carry out the program code of following steps:Detecting the feelings of m terminal device Under condition, the device parameter of each terminal device is obtained, and m terminal device is divided according to the device parameter of each terminal device For at least two types, at least two terminal device set, and the detection scheme used according to above-mentioned steps A to step D are obtained Detected the power consumption data of all terminal devices in any one terminal device set as a power consumption data set, The power consumption testing result corresponding to each terminal device set is obtained, so that it is determined that the optimal power saving mould of each terminal device set Formula.
Optionally, above-mentioned processor 51 can also carry out the program code of following steps:Obtain power consumption detection model, power consumption Detection model includes:The computation model of unit quantity of electricity mean consumption duration and the computation model of power consumption ratio;Detected using power consumption Model carries out power consumption detection process to power consumption data, generates the power consumption testing result of terminal device.
Optionally, above-mentioned processor 51 can also carry out the program code of following steps:Power consumption data comprises at least:Bright screen Total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, it is in power consumption testing result In the case that the unit quantity of electricity of terminal device averagely uses duration, power consumption detection is carried out to power consumption data using power consumption detection model Processing, include the step of the power consumption testing result for generating terminal device:
Unit quantity of electricity of the terminal device within a power consumption cycle, which is calculated, by any one following calculation formula averagely makes With duration T:
Formula one:Wherein, t1iFor bright screen total time, t2iFor standby total time, t3iIt is not standby total for the screen that goes out Time, S are power consumption total amount;
Formula two:Wherein, t1iFor bright screen total time, t2iFor standby total time, S is power consumption total amount;
Formula three:Wherein, t1iFor bright screen total time, S is power consumption total amount.
Optionally, above-mentioned processor 51 can also carry out the program code of following steps:Power consumption data comprises at least:Bright screen Total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, it is in power consumption testing result In the case of the power consumption ratio of terminal device, power consumption detection process is carried out to power consumption data using power consumption detection model, generation is eventually The step of power consumption testing result of end equipment, includes:
Power consumption ratio μ of the terminal device within a power consumption cycle is calculated by any one following calculation formula:
Formula four:Wherein, t2iFor standby total time, t4iFor screen total time of going out:
Formula five:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
Optionally, above-mentioned processor 51 can also carry out the program code of following steps:It is in office that detection obtains terminal device The power consumption testing result anticipated under a kind of battery saving mode, so that it is determined that the step of optimal battery saving mode of terminal device includes:Obtain Power consumption testing result of the terminal device within n power consumption cycle under any one battery saving mode;To terminal device within n cycle Power consumption testing result average calculating or mean square deviation calculates, to determine terminal device under any one battery saving mode Power consumption data;Power consumption data of the comparison terminal equipment under any two battery saving mode, determine the optimal power saving of terminal device Pattern.
It will appreciated by the skilled person that the structure shown in Fig. 9 is only to illustrate, background server can also be intelligence Can mobile phone (such as Android phone, iOS mobile phones), tablet personal computer, applause computer and mobile internet device (Mobile Internet Devices, MID), the terminal device such as PAD.Fig. 9 it does not cause to limit to the structure of above-mentioned electronic installation.Example Such as, background server 10 may also include the component more or less than shown in Fig. 9 (such as network interface, display device), Or there is the configuration different from shown in Fig. 9.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To be completed by program come command terminal device-dependent hardware, the program can be stored in a computer-readable recording medium In, storage medium can include:Flash disk, read-only storage (Read-Only Memory, ROM), random access device (Random Access Memory, RAM), disk or CD etc..
Embodiment 4
Embodiments of the invention additionally provide a kind of storage medium.Alternatively, in the present embodiment, above-mentioned storage medium can For preserving the program code performed by data recommendation method of the above-described embodiment one based on social networking application software.
Alternatively, in the present embodiment, above-mentioned storage medium can be located in computer network Computer terminal group In any one server.
Alternatively, in the present embodiment, storage medium is arranged to the program code that storage is used to perform following steps:Step Rapid A, power consumption data of the acquisition terminal equipment within a power consumption cycle, power consumption cycle are terminal device in continuous charging twice Between interval time;Step B, power consumption of the terminal device within a power consumption cycle is determined according to the power consumption data of terminal device Testing result;Step C, step A and step B is performed to circulate according to predetermined detection frequency n, obtains terminal device in n power consumption Power consumption testing result in cycle;Step D, after terminal device is arranged into any one or more battery saving mode, perform Step A to step C, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so that it is determined that terminal The optimal battery saving mode of equipment.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Detecting m terminal In the case of equipment, the device parameter of each terminal device is obtained, and according to the device parameter of each terminal device by m terminal Equipment is divided at least two types, obtains at least two terminal device set, and used according to above-mentioned steps A to step D Detection scheme is using the power consumption data of all terminal devices in any one terminal device set as a power consumption data set Detected, obtain the power consumption testing result corresponding to each terminal device set, so that it is determined that each terminal device set Optimal battery saving mode.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Obtain power consumption detection Model, power consumption detection model include:The computation model of unit quantity of electricity mean consumption duration and the computation model of power consumption ratio;Use Power consumption detection model carries out power consumption detection process to power consumption data, generates the power consumption testing result of terminal device.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Power consumption data is at least Including:Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in power consumption In the case that testing result averagely uses duration for the unit quantity of electricity of terminal device, power consumption data is entered using power consumption detection model Row power consumption detection process, include the step of the power consumption testing result for generating terminal device:
Unit quantity of electricity of the terminal device within a power consumption cycle, which is calculated, by any one following calculation formula averagely makes With duration T:
Formula one:Wherein, t1iFor bright screen total time, t2iFor standby total time, t3iIt is not standby total for the screen that goes out Time, S are power consumption total amount;
Formula two:Wherein, t1iFor bright screen total time, t2iFor standby total time, S is power consumption total amount;
Formula three:Wherein, t1iFor bright screen total time, S is power consumption total amount.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Power consumption data is at least Including:Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in power consumption In the case of power consumption ratio of the testing result for terminal device, power consumption data is carried out at power consumption detection using power consumption detection model Reason, include the step of the power consumption testing result for generating terminal device:Terminal is calculated by any one following calculation formula Power consumption ratio μ of the equipment within a power consumption cycle:
Formula four:Wherein, t2iFor standby total time, t4iFor screen total time of going out;
Formula five:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
Alternatively, storage medium is also configured to the program code that storage is used to perform following steps:Detection obtains terminal Power consumption testing result of the equipment under any one battery saving mode, so that it is determined that the step of optimal battery saving mode of terminal device wraps Include:Obtain power consumption testing result of the terminal device within n power consumption cycle under any one battery saving mode;To terminal device in n Power consumption testing result in the individual cycle carries out average calculating or mean square deviation calculating, to determine terminal device in any one province Power consumption data under power mode;Power consumption data of the comparison terminal equipment under any two battery saving mode, determines terminal device Optimal battery saving mode.
Alternatively, in the present embodiment, above-mentioned storage medium can include but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, the specific example in the present embodiment may be referred to showing described in above-described embodiment 2 and embodiment 4 Example, the present embodiment will not be repeated here.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
If the integrated unit in above-described embodiment is realized in the form of SFU software functional unit and is used as independent product Sale or in use, the storage medium that above computer can be read can be stored in.Based on such understanding, skill of the invention The part or all or part of the technical scheme that art scheme substantially contributes to prior art in other words can be with soft The form of part product is embodied, and the computer software product is stored in storage medium, including some instructions are causing one Platform or multiple stage computers equipment (can be personal computer, server or network equipment etc.) perform each embodiment institute of the present invention State all or part of step of method.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in some embodiment The part of detailed description, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed client, can be by others side Formula is realized.Wherein, device embodiment described above is only schematical, such as the division of the unit, and only one Kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Another system is desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or discussed it is mutual it Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module Connect, can be electrical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
Described above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should It is considered as protection scope of the present invention.

Claims (12)

  1. A kind of 1. detection method of the power consumption information of terminal device, it is characterised in that including:
    Step A, power consumption data of the acquisition terminal equipment within a power consumption cycle, the power consumption cycle are that the terminal device exists Interval time between continuous charging twice;
    Step B, consumption of the terminal device within one power consumption cycle is determined according to the power consumption data of the terminal device Electro-detection result;
    Step C, the step A and step B is performed to circulate according to predetermined detection frequency n, obtains the terminal device in n Power consumption testing result in the individual power consumption cycle;
    Step D, after the terminal device is arranged into any one or more battery saving mode, the step A is performed to step Rapid C, detection obtains power consumption testing result of the terminal device under any one battery saving mode, so that it is determined that the terminal is set Standby optimal battery saving mode.
  2. 2. according to the method for claim 1, it is characterised in that in the case where detecting m terminal device, obtain each institute The device parameter of terminal device is stated, and is divided into the m terminal device according to the device parameter of each terminal device At least two types, at least two terminal device set are obtained, and the detection scheme used according to above-mentioned steps A to step D will The power consumption data of all terminal devices in any one terminal device set is detected as a power consumption data set, is obtained The power consumption testing result corresponding to each terminal device set is taken, so that it is determined that the optimal power saving of each terminal device set Pattern.
  3. 3. according to the method for claim 1, it is characterised in that the end is determined according to the power consumption data of the terminal device The step of power consumption testing result of the end equipment within one power consumption cycle, includes:
    Power consumption detection model is obtained, the power consumption detection model includes:The computation model and consumption of unit quantity of electricity mean consumption duration The computation model of electric ratio;
    Power consumption detection process is carried out to the power consumption data using the power consumption detection model, generates the described of the terminal device Power consumption testing result.
  4. 4. according to the method for claim 3, it is characterised in that the power consumption data comprises at least:
    Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in the consumption In the case that electro-detection result averagely uses duration for the unit quantity of electricity of the terminal device, the power consumption detection model pair is used The power consumption data carries out power consumption detection process, includes the step of the power consumption testing result for generating the terminal device:
    The list of the terminal device within one power consumption cycle is calculated by any one following calculation formula Position electricity averagely uses duration T:
    Formula one:Wherein, t1iFor bright screen total time, t2iFor standby total time, t3iTo go out screen not Standby total time, S are power consumption total amount, and m is the number of the terminal device;
    Formula two:Wherein, t1iFor bright screen total time, t2iFor standby total time, S is power consumption total amount;
    Formula three:Wherein, t1iFor bright screen total time, S is power consumption total amount.
  5. 5. according to the method for claim 3, it is characterised in that the power consumption data comprises at least:
    Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in the consumption In the case of power consumption ratio of the electro-detection result for the terminal device, using the power consumption detection model to the power consumption data Power consumption detection process is carried out, is included the step of the power consumption testing result for generating the terminal device:
    The consumption of the terminal device within one power consumption cycle is calculated by any one following calculation formula Electric ratio μ:
    Formula four:Wherein, t2iFor standby total time, t4iFor screen total time of going out, m is the terminal device Number;
    Formula five:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
  6. 6. the method according to claim 4 or 5, it is characterised in that detection obtains the terminal device in any one province Power consumption testing result under power mode, so that it is determined that the step of optimal battery saving mode of the terminal device includes:
    Obtain power consumption testing result of the terminal device within n power consumption cycle under any one battery saving mode;
    Average calculating or mean square deviation calculating are carried out to power consumption testing result of the terminal device within the n cycle, To determine power consumption data of the terminal device under any one described battery saving mode;
    Compare power consumption data of the terminal device under any two battery saving mode, determine the optimal power saving of the terminal device Pattern.
  7. A kind of 7. detection means of the power consumption information of terminal device, it is characterised in that including:
    Acquisition module, for power consumption data of the acquisition terminal equipment within a power consumption cycle, the power consumption cycle is the end Interval time of the end equipment between continuous charging twice;
    Determining module, for determining the terminal device in one power consumption cycle according to the power consumption data of the terminal device Interior power consumption testing result;
    Execution module, for circulating the function of the execution acquisition module and the determining module according to predetermined detection frequency n, Obtain power consumption testing result of the terminal device within n power consumption cycle;
    Detection module, for after the terminal device is arranged into any one or more battery saving mode, being adopted described in execution Collect module to the function of the execution module, detection obtains power consumption detection of the terminal device under any one battery saving mode As a result, so that it is determined that the optimal battery saving mode of the terminal device.
  8. 8. device according to claim 7, it is characterised in that described device is additionally operable to detecting the feelings of m terminal device Under condition, the device parameter of each terminal device is obtained, and it is according to the device parameter of each terminal device that the m is individual Terminal device is divided at least two types, obtains at least two terminal device set, and according to above-mentioned acquisition module to described The detection scheme that execution module uses is using the power consumption data of all terminal devices in any one terminal device set as one Individual power consumption data set is detected, and the power consumption testing result corresponding to each terminal device set is obtained, so that it is determined that each The optimal battery saving mode of the terminal device set.
  9. 9. device according to claim 7, it is characterised in that the determining module includes:
    First acquisition module, for obtaining power consumption detection model, the power consumption detection model includes:During unit quantity of electricity mean consumption Long computation model and the computation model of power consumption ratio;
    Generation module, for carrying out power consumption detection process to the power consumption data using the power consumption detection model, described in generation The power consumption testing result of terminal device.
  10. 10. device according to claim 9, it is characterised in that the power consumption data comprises at least:
    Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in the consumption In the case that electro-detection result averagely uses duration for the unit quantity of electricity of the terminal device, the generation module includes:
    The terminal device is calculated in one consumption by the calculation formula of following any one computing module offer The unit quantity of electricity in the electric cycle averagely uses duration T:
    First computing module, for the terminal device to be calculated by equation below one within one power consumption cycle The unit quantity of electricity averagely use duration T:Wherein, t1iFor bright screen total time, t2iTo be standby total Time, t3iFor screen not standby total time of going out, S is power consumption total amount, and m is the number of the terminal device;
    Second computing module, for the terminal device to be calculated by equation below two within one power consumption cycle The unit quantity of electricity averagely use duration T:Wherein, t1iFor bright screen total time, t2iFor it is standby total when Between, S is power consumption total amount;
    3rd computing module, for the terminal device to be calculated by equation below three within one power consumption cycle The unit quantity of electricity averagely use duration T:Wherein, t1iFor bright screen total time, S is power consumption total amount.
  11. 11. device according to claim 9, it is characterised in that the power consumption data comprises at least:
    Bright screen total time, standby total time, screen not standby total time of going out, go out screen total time and power consumption total amount, wherein, in the consumption In the case of power consumption ratio of the electro-detection result for the terminal device, the generation module includes:
    The consumption of the terminal device within one power consumption cycle is calculated by any one following calculation formula Electric ratio μ:
    4th computing module, for the terminal device to be calculated by equation below four within one power consumption cycle The power consumption ratio μ:Wherein, t2iFor standby total time, t4iFor screen total time of going out, m is the terminal The number of equipment;
    5th computing module, for the terminal device to be calculated by equation below five within one power consumption cycle The power consumption ratio μ:Wherein, t3iFor screen not standby total time of going out, t4iFor screen total time of going out.
  12. 12. the device according to claim 10 or 11, it is characterised in that the detection module includes:
    Second acquisition module, for obtaining power consumption of the terminal device within n power consumption cycle under any one battery saving mode Testing result;
    6th computing module, for being averaged to power consumption testing result of the terminal device within the n cycle Calculate or mean square deviation calculates, to determine power consumption data of the terminal device under any one described battery saving mode;
    Comparison module, for power consumption data of the terminal device under any two battery saving mode, determine the terminal The optimal battery saving mode of equipment.
CN201410614821.4A 2014-11-04 2014-11-04 The detection method and device of the power consumption information of terminal device Active CN104954528B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410614821.4A CN104954528B (en) 2014-11-04 2014-11-04 The detection method and device of the power consumption information of terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410614821.4A CN104954528B (en) 2014-11-04 2014-11-04 The detection method and device of the power consumption information of terminal device

Publications (2)

Publication Number Publication Date
CN104954528A CN104954528A (en) 2015-09-30
CN104954528B true CN104954528B (en) 2018-01-02

Family

ID=54168868

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410614821.4A Active CN104954528B (en) 2014-11-04 2014-11-04 The detection method and device of the power consumption information of terminal device

Country Status (1)

Country Link
CN (1) CN104954528B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105702232B (en) * 2016-04-26 2018-05-04 广东欧珀移动通信有限公司 Brightness processed method and system
CN112334875B (en) * 2018-11-30 2022-04-29 华为技术有限公司 Power consumption prediction method and device
JP7314534B2 (en) * 2019-03-08 2023-07-26 株式会社アイシン toilet seat device
CN111796654B (en) * 2019-04-09 2022-05-31 Oppo广东移动通信有限公司 Power saving processing method and device, storage medium and electronic equipment
CN111813212A (en) * 2020-07-01 2020-10-23 深圳传音控股股份有限公司 Terminal power saving method, terminal and readable storage medium
CN113837437B (en) * 2021-08-19 2024-05-24 杭州逗酷软件科技有限公司 Terminal power consumption data processing method and device, storage medium and terminal

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030097A (en) * 2006-06-13 2007-09-05 威盛电子股份有限公司 Method and chip set for reducing computer system power consumption under working condition
CN101335937A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and apparatus for adjusting energy consumption of mobile equipment
CN103677214A (en) * 2013-12-31 2014-03-26 北京金山网络科技有限公司 Electricity consumption control method and device used for mobile terminal and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7770118B2 (en) * 2006-02-13 2010-08-03 Research In Motion Limited Navigation tool with audible feedback on a handheld communication device having a full alphabetic keyboard

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030097A (en) * 2006-06-13 2007-09-05 威盛电子股份有限公司 Method and chip set for reducing computer system power consumption under working condition
CN101335937A (en) * 2007-06-26 2008-12-31 英华达(上海)电子有限公司 Method and apparatus for adjusting energy consumption of mobile equipment
CN103677214A (en) * 2013-12-31 2014-03-26 北京金山网络科技有限公司 Electricity consumption control method and device used for mobile terminal and mobile terminal

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
省电类Android手机应用软件对比评测;中国新通信;《中国新通信》;20120315;第42-44页 *
简简单单设置手机就可以更省电,详细对比测试;lbhfk01;《智友论坛>智友论坛>华为手机论坛>华为手机论坛>U8860论坛》;20121027;第1-2页 *

Also Published As

Publication number Publication date
CN104954528A (en) 2015-09-30

Similar Documents

Publication Publication Date Title
CN104954528B (en) The detection method and device of the power consumption information of terminal device
CN107798027B (en) Information popularity prediction method, information recommendation method and device
CN110198310A (en) A kind of anti-cheat method of network behavior, device and storage medium
CN106897284A (en) The recommendation method and device of e-book
CN109947812A (en) Consecutive miss value fill method, data analysis set-up, terminal and storage medium
CN107743308A (en) A kind of node clustering method of data capture and device for environmental monitoring
CN109947497A (en) Application program preloads method, apparatus, storage medium and mobile terminal
CN104914069B (en) The measurement techniques for quality detection of meat near infrared detection method and device of transportable calculating
CN109857935A (en) A kind of information recommendation method and device
CN108074236A (en) Irrigating plant based reminding method, device, equipment and storage medium
CN113033722B (en) Sensor data fusion method and device, storage medium and computing equipment
CN108875519A (en) Method for checking object, device and system and storage medium
CN106991577A (en) A kind of method and device for determining targeted customer
CN112297934B (en) Charging station processing method and device, storage medium and processor
CN111352733A (en) Capacity expansion and reduction state prediction method and device
CN108875516A (en) Face identification method, device, system, storage medium and electronic equipment
CN112632179A (en) Model construction method and device, storage medium and equipment
CN108268357A (en) real-time data processing method and device
CN105574311B (en) Method and system for evaluating amount of exercise
CN116778411A (en) People flow prediction method and device, electronic equipment and nonvolatile storage medium
CN112067997A (en) Diagnosis method and system for mobile power supply leasing equipment, electronic equipment and storage medium
CN117148169B (en) Battery service time prediction method, system, equipment and medium based on big data
CN107330737A (en) The anti-performance optimization method and device practised fraud
CN104394039B (en) One kind is based on Sigmoid exponential models network performance maturity assessment system and its evaluation method
CN110059083A (en) A kind of data evaluation method, apparatus and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant