CN110266886A - Battery management method and Related product - Google Patents

Battery management method and Related product Download PDF

Info

Publication number
CN110266886A
CN110266886A CN201910544441.0A CN201910544441A CN110266886A CN 110266886 A CN110266886 A CN 110266886A CN 201910544441 A CN201910544441 A CN 201910544441A CN 110266886 A CN110266886 A CN 110266886A
Authority
CN
China
Prior art keywords
electricity consumption
game
battery
target
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910544441.0A
Other languages
Chinese (zh)
Other versions
CN110266886B (en
Inventor
张海平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201910544441.0A priority Critical patent/CN110266886B/en
Publication of CN110266886A publication Critical patent/CN110266886A/en
Application granted granted Critical
Publication of CN110266886B publication Critical patent/CN110266886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72427User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality for supporting games or graphical animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/04TPC
    • H04W52/18TPC being performed according to specific parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2250/00Details of telephonic subscriber devices
    • H04M2250/12Details of telephonic subscriber devices including a sensor for measuring a physical value, e.g. temperature or motion

Abstract

The embodiment of the present application provides a kind of battery management method and Related product, applied to electronic equipment, the electronic equipment includes the first battery and the second battery, which comprises when the application program of the electronic equipment operation is game, obtains the game state parameter of the game;The target electricity consumption of the game is determined according to the game state parameter;According to the target electricity consumption, the running parameter of first battery and second battery is determined.Enable to the power demand that can satisfy mobile phone when battery management.

Description

Battery management method and Related product
Technical field
This application involves technical field of data processing, and in particular to a kind of battery management method and Related product.
Background technique
With the continuous improvement of people's living standards, electronic equipment such as mobile phone gradually becomes the required of daily life Product.People are when using mobile phone, it is desirable to which mobile phone can have longer cruising ability, can be able to use after primary charging Duration it is longer, it is frequent worried so as to reduce charging, also can be inadequate without having to worry about electricity, not can be carried out at crucial moment Communication etc..In existing scheme when being powered management to electronic equipment, power supply management scheme cannot reach mobile phone well Electricity consumption.
Summary of the invention
The embodiment of the present application provides a kind of battery management method and Related product, enables to can expire when battery management The power demand of sufficient mobile phone.
The first aspect of the embodiment of the present application provides a kind of battery management method, is applied to electronic equipment, the electronics Equipment includes the first battery and the second battery, which comprises
When the application program of the electronic equipment operation is game, the game state parameter of the game is obtained;
The target electricity consumption of the game is determined according to the game state parameter;
According to the target electricity consumption, the running parameter of first battery and second battery is determined.
The second aspect of the embodiment of the present application provides a kind of cell managing device, is applied to electronic equipment, the electronics Equipment includes the first battery and the second battery, and described device includes acquiring unit, the first determination unit and the second determination unit, In,
The acquiring unit obtains the trip of the game when application program for electronic equipment operation is game Play state parameter;
First determination unit, for determining the target electricity consumption of the game according to the game state parameter;
Second determination unit, for determining first battery and described second according to the target electricity consumption The running parameter of battery.
The third aspect of the embodiment of the present application provides a kind of electronic equipment, including processor, input equipment, output equipment and Memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is based on storing Calculation machine program, the computer program include program instruction, and the processor is configured for calling described program instruction, are executed Such as the step instruction in the embodiment of the present application first aspect.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, wherein above-mentioned computer can Read the computer program that storage medium storage is used for electronic data interchange, wherein above-mentioned computer program executes computer The step some or all of as described in the embodiment of the present application first aspect.
5th aspect of the embodiment of the present application provides a kind of computer program product, wherein above-mentioned computer program produces Product include the non-transient computer readable storage medium for storing computer program, and above-mentioned computer program is operable to make to count Calculation machine executes the step some or all of as described in the embodiment of the present application first aspect.The computer program product can be One software installation packet.
Implement the embodiment of the present application, at least has the following beneficial effects:
When by the application program that runs in the electronic equipment being game, the game state parameter of the game is obtained, The target electricity consumption that the game is determined according to the game state parameter is determined described according to the target electricity consumption The running parameter of first battery and second battery therefore can be in electronic equipment running game, according to the state of game Parameter determines the running parameter of the first battery and the second battery, so that the first battery and the second battery can satisfy currently The power demand of scene of game, and then the intelligence of electronic equipment can be promoted to a certain extent.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 provides the structural schematic diagram of a kind of electronic equipment for the embodiment of the present application;
Fig. 2 provides a kind of flow diagram of battery management method for the embodiment of the present application;
Fig. 3 provides the flow diagram of another battery management method for the embodiment of the present application;
Fig. 4 provides the flow diagram of another battery management method for the embodiment of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application;
Fig. 6 provides a kind of structural schematic diagram of cell managing device for the embodiment of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
The description and claims of this application and term " first " in above-mentioned attached drawing, " second " etc. are for distinguishing Different objects, are not use to describe a particular order.In addition, term " includes " and " having " and their any deformations, it is intended that It is to cover and non-exclusive includes.Such as the process, method, system, product or equipment for containing a series of steps or units do not have It is defined in listed step or unit, but optionally further comprising the step of not listing or unit, or optionally also wrap Include other step or units intrinsic for these process, methods, product or equipment.
" embodiment " mentioned in this application is it is meant that a particular feature, structure, or characteristic described can be in conjunction with the embodiments Included at least one embodiment of the application.The phrase, which occurs, in each position in the description might not each mean phase Same embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art are explicitly Implicitly understand, embodiments described herein can be combined with other embodiments.
Electronic device involved by the embodiment of the present application may include the various handheld devices with wireless communication function, Mobile unit, wearable device calculate equipment or are connected to other processing equipments and various forms of radio modem User equipment (user equipment, UE), mobile station (mobile station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as electronic device.
In order to better understand a kind of battery management method provided by the embodiments of the present application, corresponding cell tube first below The electronic equipment of reason method is briefly introduced.Referring to Fig. 1, Fig. 1 provides a kind of electronic equipment for the embodiment of the present application Structural schematic diagram.As shown in Figure 1, electronic equipment 100 includes the first battery 101 and the second battery 102, wherein in electronic equipment When the application program of 100 operations is game, the game state parameter of the game is obtained, electronic equipment 100 is joined according to game state Number determines the target electricity consumptions of the game, and electronic equipment 100 determines the first battery 101 and the according to the target electricity consumption The running parameter of two batteries 102, running parameter include discharge power etc..Game can be the game of battle class, the break-through in hand trip Class game, the anti-class game of tower etc..Therefore, can be determined according to the state parameter of game in electronic equipment running game The running parameter of one battery and the second battery, so that the first battery and the second battery can satisfy the use of current game scene Electricity demanding, and then the intelligence of electronic equipment can be promoted to a certain extent.
Referring to Fig. 2, Fig. 2 provides a kind of flow diagram of battery management method for the embodiment of the present application.Such as Fig. 2 institute Show, battery management method is applied to electronic equipment, and electronic equipment includes the first battery and the second battery, battery management method include Step 201-203, specific as follows:
201, when the application program of electronic equipment operation is game, the game state parameter of game is obtained.
Wherein, game state parameter can be the parameter in game current scene, for example, in game role number, game Environment locating for game role, the state of game role, frame per second of scene of game etc., the state of game role include standing, going It walks, combat situation etc..
Optionally, it when obtaining the game state parameter of game, can be got according to the picture frame of game, for example, according to The motion profile of the characteristic point of game role is determined in multiple picture frames, and characteristic point may include hand-characteristic point, head Characteristic point, leg characteristic point etc., hand-characteristic point for example can be the artis of finger, wrist etc..Herein by way of example only, It is not specifically limited.Different state characteristic points has different motion profiles, for example, characteristic point all when standing is quiet Only state, when walking, leg characteristic point has the motion profile of walking.
202, the target electricity consumption of game is determined according to game state parameter.
Wherein, target electricity consumption can be indicated with the power demand of game with electric power.
It optionally, can be according to game role number, game role when determining target electricity consumption according to game state parameter Action message determine target electricity consumption.Wherein it is possible to have following relationship: game role number is more, game role Movement is abundanter, then target electricity consumption is bigger;Game role number is fewer, and game role movement is fewer, then target electricity consumption is got over It is small.
203, according to target electricity consumption, the running parameter of the first battery and the second battery is determined.
Optionally, the running parameter of the first battery and the second battery includes discharge power, discharge power ratio etc..In determination When the running parameter of the first battery and the second battery, it can also be determined with reference to the temperature of the first battery and the temperature of the second battery Running parameter, if temperature is higher, the numerical value of running parameter is smaller, such as discharge power reduction etc..
In this example, can in electronic equipment running game, according to the state parameter of game determine the first battery and The running parameter of second battery, so that the first battery and the second battery can satisfy the power demand of current game scene, And then the intelligence of electronic equipment can be promoted to a certain extent.
In a possible embodiment, a kind of possible target electricity consumption that game is determined according to game state parameter Method include step A1-A6, it is specific as follows:
A1, according to game state parameter, obtain the first quantity of the game role in game and the frame per second of game;
A2, according to the first quantity and frame per second, determine first with reference to electricity consumption;
A3, the action message for obtaining game role;
If A4, the second quantity are greater than preset quantity, determine that second refers to electricity consumption, the second quantity according to the second quantity Less than or equal to the first quantity, the second quantity is the quantity that action message is deliberate action information;
A5, third is determined according to third quantity with reference to electricity consumption, third quantity is the difference of the first quantity and the second quantity Value;
A6, electricity consumption is referred to reference to electricity consumption and third with reference to electricity consumption, second according to first, determines target electricity consumption Amount.
Wherein it is possible to directly extract the first quantity of game role and the frame per second of game from game state parameter. The frame per second of game it is to be understood that when showing game picture, get over by the quantity of the picture frame shown in the unit time, the frame per second of game Height, then game running is more smooth, and frame rate of game is lower, and game running then will appear Caton phenomenon.If there is frame in game, It will appear Caton phenomenon, the frame rate of game the low, more is easy to appear frame phenomenon.
Optionally, according to the first quantity and frame per second, determine that first can be with reference to the method for electricity consumption are as follows: the first quantity is got over Height, frame per second are higher, then first is higher with reference to electricity consumption;First quantity is few, frame per second is lower, then first is lower with reference to electricity consumption.When It can also so determine that first is not especially limited herein by way of example only with reference to electricity consumption by another way.
Optionally, the method for obtaining the action message of game role can be with are as follows: passes through the movement of the characteristic point of game role Action message is determined in track, and the method for being specifically referred to obtain game state parameter in preceding method is obtained.
Optionally, deliberate action information can be set by empirical value or historical data, such as be can be movement of fighting, run Dynamic or release technical ability etc..If preset movement is release technical ability, the technical ability discharged is complicated technical ability, such as role is needed to pass through Technical ability or multiple movements its linking degree when coordinating to complete for crossing multiple coordinations completions are higher, and release time is shorter, i.e., The complicated technical ability that can be understood as discharging more movement in a relatively short period of time and form.Second quantity is more, the second reference Electricity consumption is bigger;Second quantity is fewer, and second is smaller with reference to electricity consumption.It, can also basis when determining the second reference electricity consumption The complexity of deliberate action information is determined, complexity higher action message, and corresponding second is bigger with reference to electricity consumption, The quantity of the higher action message of complexity is higher, and second is bigger with reference to electricity consumption.
Optionally, the corresponding movement of third quantity can be the lower movement of complexity, for example, the movement with NPC dialogue, Standing activities etc..Third can be with reference to the action message of third quantity and third quantity, according to two seed ginsengs with reference to electricity consumption It counts to determine third with reference to electricity consumption.The lower movement of different complexities has different electricity consumptions, and complexity is lower, Electricity consumption is smaller.
Optionally, electricity consumption is referred to reference to electricity consumption and third with reference to electricity consumption, second according to first, determines that target is used When electricity, the temperature in region can be held using weight operation and electronic equipment to determine.
In this example, determine that first refers to electricity consumption according to the frame per second of the first quantity of game role and game, according to The action message of game role determines that second refers to electricity consumption with reference to electricity consumption and third, finally refers to electricity consumption according to first Amount, second determine target electricity consumption with reference to electricity consumption with reference to electricity consumption and third, therefore, can be according to the specific ginseng of game Number, to determine target electricity consumption, so as to promote accuracy when target electricity consumption determines to a certain extent.
In a possible embodiment, it is a kind of it is possible according to first with reference to electricity consumption, second with reference to electricity consumption and the Three refer to electricity consumption, and the method for determining target electricity consumption includes step B1-B5, specific as follows:
B1, the first weight for obtaining the second reference electricity consumption and third refer to the second weight of electricity consumption;
B2, weight fortune is carried out with reference to electricity consumption with reference to electricity consumption and third to second using the first weight and the second weight It calculates, obtains weighting electricity consumption;
B3, the temperature value that electronic equipment is held region is obtained;
B4, determined according to temperature value electronic device radiating module heat radiation power;
B5, electricity consumption is referred to according to heat radiation power, weighting electricity consumption and first, determines target electricity consumption.
Wherein, obtaining the first weight and the method for the second weight may include: first method: different second refers to electricity consumption Amount can have the first different weights, and different thirds can have the second different weights with reference to electricity consumption;Second method: Different second also can have identical first weight with reference to electricity consumption, and different thirds also can have phase with reference to electricity consumption The second same weight.It can specifically be determined according to the type of game, different type of play, select with different weights Take method.A kind of possible weight choosing method are as follows: when type of play is battle class game, the can be obtained using first method One weight and the second weight can obtain the first weight and second using second method when type of play is break-through class, tower anti-class Weight.When determining the first weight and the second weight in first method, second is bigger with reference to electricity consumption, then the first weight is bigger, Third is smaller with reference to electricity consumption, and the second weight is bigger;Second is smaller with reference to electricity consumption, and the first weight is bigger, and third refers to electricity consumption Amount is bigger, and the second weight is smaller, and the first weight and the second weights sum are 1.
Optionally, when determining the heat radiation power of radiating module according to temperature value, temperature value is higher, and heat radiation power is higher, temperature Angle value is smaller, and heat radiation power is smaller, and when temperature value is less than preset temperature value, heat radiation power 0, preset temperature value passes through experience Value or historical data setting.
Optionally, one kind is possible determines that target is used with reference to electricity consumption according to heat radiation power, weighting electricity consumption and first The method of electricity are as follows: the electricity consumption that the mean value for weighting electricity consumption and the first reference electricity consumption is added to radiating module obtains target Electricity consumption.The electricity consumption of radiating module can be determined by the conversion ratio between heat radiation power and electricity consumption, and conversion ratio is The build-in attribute value of radiating module.
In this example, weight operation is carried out with reference to electricity consumption with reference to electricity consumption and third to second, obtains weighting electricity consumption, Target electricity consumption is determined with reference to electricity consumption with weighting electricity consumption, first in the heat radiation power of the radiating module according to electronic device Amount, therefore, can determine target electricity consumption according to the power of weight operation and radiating module, so as to a certain extent Promote accuracy when determining target electricity consumption.
In a possible embodiment, the alternatively possible target electricity consumption that game is determined according to game state parameter The method of amount includes step C1-C5, specific as follows:
The first movement of C1, the target roles in game currently manipulated according to game state parameter, acquisition target user Information, and the second action message of association role associated with target roles, target user are to be carried out using electronic equipment The user of game;
C2, according to the first action message and the second action message, determine showing within a preset time interval for scene of game The quantity of the picture frame shown;
C3, the utilization rate that graphics processor is determined according to the quantity of picture frame;
C4, the temperature changing trend that graphics processor is determined according to utilization rate;
C5, target electricity consumption is determined according to temperature changing trend.
It wherein, can be with the associated association role of target roles are as follows: there is the role contacted with target roles, for example, with Role that target roles are traded, the role to fight, the role for attacking together with target roles same monster etc..
Optionally, the corresponding movement of the first action message movement corresponding with the second action message is more complicated, then picture frame Quantity it is more, the corresponding movement of the first action message is corresponding with the second action message to act simpler, the then number of picture frame Amount can be preset fixed quantity.Preset fixed quantity is to be set by empirical value or historical data, prefixed time interval It can be set by empirical value or historical data.
Optionally, determine that the method for the temperature changing trend of graphics processor can be with according to utilization rate are as follows: dynamic according to first The utilization rate for making information and the second action message prediction subsequent time graphics processor, according to the utilization rate of subsequent time and currently The utilization rate at moment determines the variation tendency of the utilization rate of graphics processor, determines temperature change according to the variation tendency Trend.Wherein, according to the method for the first action message and the utilization rate of the second action message prediction subsequent time graphics processor It can be with are as follows: predict the complexity of the action message of subsequent time target user role according to the first action message, and according to the Two action messages predict the complexity of the action message of subsequent time association role, if complexity mean value increases, subsequent time The utilization rate of graphics processor increases, if complicated mean value degree is reduced, the utilization rate of subsequent time graphics processor is reduced.It is complicated Spend the complexity and the action message of subsequent time association user of the action message that mean value is subsequent time target user role Mean value between complexity.Then, the utilization rate of graphics processor increases, then variation tendency for the complexity mean value increase of subsequent time For the increased trend of utilization rate;The complexity mean value of subsequent time is reduced, then the utilization rate of graphics processor is reduced, then variation becomes Gesture is the trend of utilization rate reduction.The increased increased variation tendency of trend corresponding temperature of the utilization rate of graphics processor, figure The variation tendency of the trend corresponding temperature reduction of the utilization rate reduction of processor.
Optionally, temperature changing trend is the increased trend of temperature, then target electricity consumption is the first default electricity consumption, temperature Variation tendency is the trend of temperature reduction, then target electricity consumption is the second default electricity consumption, and the first default electricity consumption is less than second Default electricity consumption.Certainly target can also be determined by mapping relations of other temperature changes really between target electricity consumption Electricity consumption is not especially limited herein by way of example only.
In this example, by the action message of target roles and association role, the quantity of picture frame is determined, and according to figure As the quantity of frame determines the utilization rate of graphics processor, temperature changing trend is determined according to the utilization rate, is become according to temperature Change trend determines target electricity consumption, therefore, can finally be determined according to specific target roles and association role action message Target electricity consumption out, so as to promote accuracy when target electricity consumption determines to a certain extent.
In a possible embodiment, the first battery includes lithium battery, and the second battery includes graphene battery, Yi Zhongke Can according to target electricity consumption, the method for determining the output power of the first battery and the second battery includes step D1-D2, specifically It is as follows:
D1, the second temperature for obtaining the first battery the first temperature and the second battery;
If D2, the first temperature and/or second temperature are higher than preset temperature threshold, according to target electricity consumption and temperature threshold Value determines the output power of the first battery and the second battery;
Wherein, determine that the method for the power supply volume of the first battery and the second battery can be with according to target electricity consumption are as follows: obtain The second target difference between first object difference, second temperature and temperature threshold between first temperature and temperature threshold;Root The output power of the first battery and the second battery is determined according to first object difference, the second target difference and target electricity consumption.Its In, electricity consumption protection value is determined according to first object difference and the second target difference, the electricity consumption protection value is for carrying out temperature Value protection is spent, avoids causing battery temperature excessively high to damage due to being powered using set target electricity consumption The case where, target electricity consumption is subtracted into electricity consumption protection value, obtains the sum of the first battery and the output power of the second battery.
Optionally, method can be determined using preset output power, determines the output of the first battery and the second battery Power.It is specifically as follows: is determined according to the ratio of the first battery and the remaining capacity of the second battery, which can be made For the ratio of the output power of the output power and the second battery of the first battery.It can be with are as follows: the first battery capacity is lower than default When charge value, then the output power of the second battery is that target electricity consumption subtracts the value that electricity protection value obtains.It can be with are as follows: first adopt It is powered with the first battery, it is same using the first battery and the second battery when the first battery capacity is lower than default power threshold When power, the output power of the first battery and the second battery is identical.
Fig. 3 provides the flow diagram of another battery management method for the embodiment of the present application.As shown in figure 3, battery Management method is applied to electronic equipment, and electronic equipment includes the first battery and the second battery, and battery management method includes step 301-308, specific as follows:
301, when the application program of electronic equipment operation is game, the game state parameter of game is obtained;
302, according to game state parameter, the first quantity of the game role in game and the frame per second of game are obtained;
303, according to the first quantity and frame per second, determine that first refers to electricity consumption;
304, the action message of game role is obtained;
If 305, the second quantity is greater than preset quantity, determine that second counts with reference to electricity consumption, second according to the second quantity Amount is less than or equal to the first quantity, and the second quantity is the quantity that action message is deliberate action information;
306, third is determined with reference to electricity consumption according to third quantity, third quantity is the difference of the first quantity and the second quantity Value;
307, electricity consumption is referred to reference to electricity consumption and third with reference to electricity consumption, second according to first, determines target electricity consumption Amount;
308, according to target electricity consumption, the running parameter of the first battery and the second battery is determined.
In this example, determine that first refers to electricity consumption according to the frame per second of the first quantity of game role and game, according to The action message of game role determines that second refers to electricity consumption with reference to electricity consumption and third, finally refers to electricity consumption according to first Amount, second determine target electricity consumption with reference to electricity consumption with reference to electricity consumption and third, therefore, can be according to the specific ginseng of game Number, to determine target electricity consumption, so as to promote accuracy when target electricity consumption determines to a certain extent.
Fig. 4 provides the flow diagram of another battery management method for the embodiment of the present application.As shown in figure 4, battery Management method is applied to electronic equipment, and electronic equipment includes the first battery and the second battery, and battery management method includes step 401-407, specific as follows:
401, when the application program of electronic equipment operation is game, the game state parameter of game is obtained;
402, according to game state parameter, the first movement of the target roles in game that target user currently manipulates is obtained Information, and the second action message of association role associated with target roles, target user are to be carried out using electronic equipment The user of game;
403, according to the first action message and the second action message, showing within a preset time interval for scene of game is determined The quantity of the picture frame shown;
404, the utilization rate of graphics processor is determined according to the quantity of picture frame;
405, the temperature changing trend of graphics processor is determined according to utilization rate;
406, target electricity consumption is determined according to temperature changing trend;
407, according to target electricity consumption, the running parameter of the first battery and the second battery is determined.
In this example, by the action message of target roles and association role, the quantity of picture frame is determined, and according to figure As the quantity of frame determines the utilization rate of graphics processor, temperature changing trend is determined according to the utilization rate, is become according to temperature Change trend determines target electricity consumption, therefore, can finally be determined according to specific target roles and association role action message Target electricity consumption out, so as to promote accuracy when target electricity consumption determines to a certain extent.
It is consistent with above-described embodiment, referring to Fig. 5, Fig. 5 is the knot of a kind of electronic equipment provided by the embodiments of the present application Structure schematic diagram, as shown, including processor, input equipment, output equipment and memory, processor, input equipment, output are set Standby and memory is connected with each other, wherein for memory for storing computer program, computer program includes program instruction, processing Device is configured for caller instruction, and above procedure includes the instruction for executing following steps;
When the application program of electronic equipment operation is game, the game state parameter of game is obtained;
The target electricity consumption of game is determined according to game state parameter;
According to target electricity consumption, the running parameter of the first battery and the second battery is determined.
In this example, when by the application program that runs in electronic equipment being game, the game state parameter of game is obtained, The target electricity consumption that game is determined according to game state parameter determines the first battery and the second electricity according to target electricity consumption The running parameter in pond, therefore, can in electronic equipment running game, according to the state parameter of game determine the first battery and The running parameter of second battery, so that the first battery and the second battery can satisfy the power demand of current game scene, And then the intelligence of electronic equipment can be promoted to a certain extent.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that , in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for electronic equipment Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution Part.Professional technician can specifically realize described function to each using distinct methods, but this reality Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
Consistent with the above, referring to Fig. 6, Fig. 6 provides a kind of structure of cell managing device for the embodiment of the present application Schematic diagram.Cell managing device is applied to electronic equipment, and electronic equipment includes the first battery and the second battery, which includes obtaining Take unit 601, the first determination unit 602 and the second determination unit 603, wherein
Acquiring unit 601 when the application program for electronic equipment operation is game, obtains the game state ginseng of game Number;
First determination unit 602, for determining the target electricity consumption of game according to game state parameter;
Second determination unit 603, for determining the work ginseng of the first battery and the second battery according to target electricity consumption Number.
Optionally, in terms of the target electricity consumption for determining game according to game state parameter, the first determination unit 602 is used In:
According to game state parameter, the first quantity of the game role in game and the frame per second of game are obtained;
According to the first quantity and frame per second, determine that first refers to electricity consumption;
Obtain the action message of game role;
If the second quantity is greater than preset quantity, second is determined with reference to electricity consumption according to the second quantity, the second quantity is small In or equal to the first quantity, the second quantity is the quantity that action message is deliberate action information;
Third is determined with reference to electricity consumption according to third quantity, and third quantity is the difference of the first quantity and the second quantity;
Electricity consumption is referred to reference to electricity consumption and third with reference to electricity consumption, second according to first, determines target electricity consumption.
Optionally, electricity consumption is being referred to reference to electricity consumption and third with reference to electricity consumption, second according to first, is determining target In terms of electricity consumption, the first determination unit 602 is used for:
The first weight and third for obtaining the second reference electricity consumption refer to the second weight of electricity consumption;
Weight operation is carried out with reference to electricity consumption with reference to electricity consumption and third to second using the first weight and the second weight, is obtained To weighting electricity consumption;
Obtain the temperature value that electronic equipment is held region;
The heat radiation power of the radiating module of electronic device is determined according to temperature value;
Electricity consumption is referred to according to heat radiation power, weighting electricity consumption and first, determines target electricity consumption.
Optionally, in terms of the target electricity consumption for determining game according to game state parameter, the first determination unit 602 is used In:
According to game state parameter, the first movement letter of the target roles in game that target user currently manipulates is obtained Breath, and the second action message of association role associated with target roles, target user are to be swum using electronic equipment The user of play;
According to the first action message and the second action message, showing within a preset time interval for scene of game is determined The quantity of picture frame;
The utilization rate of graphics processor is determined according to the quantity of picture frame;
The temperature changing trend of graphics processor is determined according to the utilization rate;
Target electricity consumption is determined according to temperature changing trend.
Optionally, according to target electricity consumption, in terms of the output power for determining the first battery and the second battery, second really Order member 603 includes:
Obtain the second temperature of the first battery the first temperature and the second battery;
If the first temperature and/or second temperature are higher than preset temperature threshold, according to target electricity consumption and temperature threshold Determine the output power of the first battery and the second battery.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer A kind of some or all of battery management method step.
The embodiment of the present application also provides a kind of computer program product, and the computer program product includes storing calculating The non-transient computer readable storage medium of machine program, the computer program make computer execute such as above method embodiment Some or all of any battery management method of middle record step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, applying for that each functional unit in bright each embodiment can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the application Step.And memory above-mentioned includes: USB flash disk, read-only memory (read-only memory, ROM), random access memory The various media that can store program code such as (random access memory, RAM), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory It may include: flash disk, read-only memory, random access device, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of battery management method, which is characterized in that be applied to electronic equipment, the electronic equipment includes the first battery and the Two batteries, which comprises
When the application program of the electronic equipment operation is game, the game state parameter of the game is obtained;
The target electricity consumption of the game is determined according to the game state parameter;
According to the target electricity consumption, the running parameter of first battery and second battery is determined.
2. the method according to claim 1, wherein described determine the trip according to the game state parameter The target electricity consumption of play, comprising:
According to the game state parameter, the first quantity of the game role in the game and the frame of the game are obtained Rate;
According to first quantity and the frame per second, determine that first refers to electricity consumption;
Obtain the action message of the game role;
If the second quantity is greater than preset quantity, determine that second counts with reference to electricity consumption, described second according to second quantity Amount is less than or equal to first quantity, and second quantity is the quantity that the action message is deliberate action information;
Third is determined with reference to electricity consumption according to third quantity, and the third quantity is first quantity and second quantity Difference;
Electricity consumption is referred to reference to electricity consumption and the third with reference to electricity consumption, described second according to described first, is determined described Target electricity consumption.
3. according to the method described in claim 2, it is characterized in that, described refer to electricity consumption, described second according to described first Electricity consumption is referred to reference to electricity consumption and the third, determines the target electricity consumption, comprising:
Described second is obtained with reference to the first weight of electricity consumption and the third with reference to the second weight of electricity consumption;
Using first weight and second weight to described second with reference to electricity consumption and the third with reference to electricity consumption into Row weight operation obtains weighting electricity consumption;
Obtain the temperature value that the electronic equipment is held region;
The heat radiation power of the radiating module of the electronic device is determined according to the temperature value;
Electricity consumption is referred to according to the heat radiation power, the weighting electricity consumption and described first, determines the target electricity consumption.
4. the method according to claim 1, wherein described determine the trip according to the game state parameter The target electricity consumption of play, comprising:
According to the game state parameter, the first movement of the target roles in the game that target user currently manipulates is obtained Information, and the second action message of association role associated with the target roles, the target user are described in use The user of electronic equipment progress game;
According to first action message and second action message, determine the scene of game in prefixed time interval The quantity of the picture frame of interior display;
The utilization rate of graphics processor is determined according to the quantity of described image frame;
The temperature changing trend of the graphics processor is determined according to the utilization rate;
Target electricity consumption is determined according to the temperature changing trend.
5. according to the method described in claim 4, determining described it is characterized in that, described according to the target electricity consumption The output power of one battery and second battery, comprising:
Obtain the second temperature of first temperature of the first battery and second battery;
If first temperature and/or the second temperature are higher than preset temperature threshold, according to the target electricity consumption and The temperature threshold determines the output power of first battery and second battery.
6. a kind of cell managing device, which is characterized in that be applied to electronic equipment, the electronic equipment includes the first battery and the Two batteries, described device include acquiring unit, the first determination unit and the second determination unit, wherein
The acquiring unit obtains the game shape of the game when application program for electronic equipment operation is game State parameter;
First determination unit, for determining the target electricity consumption of the game according to the game state parameter;
Second determination unit, for determining first battery and second battery according to the target electricity consumption Running parameter.
7. device according to claim 6, which is characterized in that it is described determined according to the game state parameter it is described In terms of the target electricity consumption of game, first determination unit is used for:
According to the game state parameter, the first quantity of the game role in the game and the frame of the game are obtained Rate;
According to first quantity and the frame per second, determine that first refers to electricity consumption;
Obtain the action message of the game role;
If the second quantity is greater than preset quantity, determine that second counts with reference to electricity consumption, described second according to second quantity Amount is less than or equal to first quantity, and second quantity is the quantity that the action message is deliberate action information;
Third is determined with reference to electricity consumption according to third quantity, and the third quantity is first quantity and second quantity Difference;
Electricity consumption is referred to reference to electricity consumption and the third with reference to electricity consumption, described second according to described first, is determined described Target electricity consumption.
8. device according to claim 7, which is characterized in that it is described according to described first with reference to electricity consumption, described the Two refer to electricity consumption with reference to electricity consumption and the third, and in terms of determining the target electricity consumption, first determination unit is used In:
Described second is obtained with reference to the first weight of electricity consumption and the third with reference to the second weight of electricity consumption;
Using first weight and second weight to described second with reference to electricity consumption and the third with reference to electricity consumption into Row weight operation obtains weighting electricity consumption;
Obtain the temperature value that the electronic equipment is held region;
The heat radiation power of the radiating module of the electronic device is determined according to the temperature value;
Electricity consumption is referred to according to the heat radiation power, the weighting electricity consumption and described first, determines the target electricity consumption.
9. a kind of electronic equipment, which is characterized in that including processor, input equipment, output equipment and memory, the processing Device, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the meter Calculation machine program includes program instruction, and the processor is configured for calling described program instruction, executes claim 1-5 such as and appoints Method described in one.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-5.
CN201910544441.0A 2019-06-21 2019-06-21 Battery management method and related product Active CN110266886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910544441.0A CN110266886B (en) 2019-06-21 2019-06-21 Battery management method and related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910544441.0A CN110266886B (en) 2019-06-21 2019-06-21 Battery management method and related product

Publications (2)

Publication Number Publication Date
CN110266886A true CN110266886A (en) 2019-09-20
CN110266886B CN110266886B (en) 2021-04-16

Family

ID=67920449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910544441.0A Active CN110266886B (en) 2019-06-21 2019-06-21 Battery management method and related product

Country Status (1)

Country Link
CN (1) CN110266886B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727559A (en) * 2019-10-09 2020-01-24 Oppo广东移动通信有限公司 Electronic device, electronic device control method, and storage medium
CN110737323A (en) * 2019-10-21 2020-01-31 Oppo(重庆)智能科技有限公司 Screen display method, device, storage medium and terminal
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
WO2022206153A1 (en) * 2021-04-01 2022-10-06 Oppo广东移动通信有限公司 Electronic device control method and apparatus, and storage medium and electronic device

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369124A (en) * 2012-04-10 2013-10-23 腾讯科技(深圳)有限公司 Battery management method and device
US20150380976A1 (en) * 2014-06-25 2015-12-31 Rohm Co., Ltd. Mobile device
CN105515173A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Wearable device and method thereof for managing application program according to electric quantity
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device
CN107370877A (en) * 2017-06-30 2017-11-21 广东欧珀移动通信有限公司 Method for pushing, device, storage medium and the electronic equipment of application program
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107995357A (en) * 2017-11-15 2018-05-04 广东欧珀移动通信有限公司 Resource allocation method and device
CN108155678A (en) * 2016-12-02 2018-06-12 富泰华工业(深圳)有限公司 Electronic device and the method for controlling the electronic device charge and discharge
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration
CN108989548A (en) * 2018-06-21 2018-12-11 上海二三四五网络科技有限公司 A kind of control method and control device detecting mobile terminal application power consumption
CN109453523A (en) * 2018-09-26 2019-03-12 努比亚技术有限公司 A kind of game picture display processing method, terminal and computer readable storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369124A (en) * 2012-04-10 2013-10-23 腾讯科技(深圳)有限公司 Battery management method and device
US20150380976A1 (en) * 2014-06-25 2015-12-31 Rohm Co., Ltd. Mobile device
CN105515173A (en) * 2015-12-07 2016-04-20 北京奇虎科技有限公司 Wearable device and method thereof for managing application program according to electric quantity
CN106375604A (en) * 2016-11-11 2017-02-01 北京小米移动软件有限公司 Terminal electric quantity controlling method and device
CN108155678A (en) * 2016-12-02 2018-06-12 富泰华工业(深圳)有限公司 Electronic device and the method for controlling the electronic device charge and discharge
CN107370877A (en) * 2017-06-30 2017-11-21 广东欧珀移动通信有限公司 Method for pushing, device, storage medium and the electronic equipment of application program
CN107517494A (en) * 2017-08-31 2017-12-26 努比亚技术有限公司 A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN107995357A (en) * 2017-11-15 2018-05-04 广东欧珀移动通信有限公司 Resource allocation method and device
CN108932048A (en) * 2018-06-11 2018-12-04 Oppo(重庆)智能科技有限公司 Determine the method and Related product of battery available duration
CN108989548A (en) * 2018-06-21 2018-12-11 上海二三四五网络科技有限公司 A kind of control method and control device detecting mobile terminal application power consumption
CN109453523A (en) * 2018-09-26 2019-03-12 努比亚技术有限公司 A kind of game picture display processing method, terminal and computer readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110727559A (en) * 2019-10-09 2020-01-24 Oppo广东移动通信有限公司 Electronic device, electronic device control method, and storage medium
CN110737323A (en) * 2019-10-21 2020-01-31 Oppo(重庆)智能科技有限公司 Screen display method, device, storage medium and terminal
CN112587920A (en) * 2020-12-01 2021-04-02 Oppo(重庆)智能科技有限公司 Device control method, device, electronic device and storage medium
WO2022206153A1 (en) * 2021-04-01 2022-10-06 Oppo广东移动通信有限公司 Electronic device control method and apparatus, and storage medium and electronic device

Also Published As

Publication number Publication date
CN110266886B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
CN110266886A (en) Battery management method and Related product
CN103795931B (en) A kind of information processing method and electronic equipment
CN109814933B (en) Service data processing method and device
CN103959200B (en) Adaptive graphics subsystem power and performance management
CN108234276A (en) Interactive method, terminal and system between a kind of virtual image
TW200913960A (en) Exercise assisting devices
CN107408158A (en) The healthy wearable thing harvested using Intelligent Energy
CN107368410A (en) The performance test methods and device of game engine, storage medium and electronic installation
CN109949412A (en) A kind of three dimensional object method for reconstructing and device
CN110152304B (en) Method and device for determining winning value, storage medium and electronic device
CN109100566A (en) A kind of electric quantity reminding method and device, smartwatch and storage medium
CN108289246A (en) Data processing method, device, storage medium and electronic device
CN107959965A (en) Frame dropping method, device, mobile terminal and the readable storage medium storing program for executing of application program
CN109308437A (en) Action recognition error correction method, electronic equipment, storage medium
CN108619717A (en) Determination method, apparatus, storage medium and the electronic device of operation object
CN110278601A (en) A kind of terminal power saving method and device
CN109782906A (en) A kind of gesture identification method of advertisement machine, exchange method, device and electronic equipment
CN202395819U (en) Motion analysis system based on cloud computation
JP7129346B2 (en) Privilege providing system, privilege providing program, and server device therefor
CN107688389B (en) VR grabbing action optimization method and device
CN208077115U (en) Wearable sports equipment and motion monitoring system
CN106210859A (en) Panoramic video rendering intent and device
CN110149427A (en) Camera control method and Related product
CN110336355A (en) A kind of charging method, charging unit and terminal device
CN214388650U (en) Prevent intelligent rope skipping of practising fraud

Legal Events

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