CN110266886B - Battery management method and related product - Google Patents

Battery management method and related product Download PDF

Info

Publication number
CN110266886B
CN110266886B CN201910544441.0A CN201910544441A CN110266886B CN 110266886 B CN110266886 B CN 110266886B CN 201910544441 A CN201910544441 A CN 201910544441A CN 110266886 B CN110266886 B CN 110266886B
Authority
CN
China
Prior art keywords
battery
determining
power consumption
target
game
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
CN201910544441.0A
Other languages
Chinese (zh)
Other versions
CN110266886A (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

Images

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 application provides a battery management method and a related product, which are applied to electronic equipment, wherein the electronic equipment comprises a first battery and a second battery, and the method comprises the following steps: when the application program operated by the electronic equipment is a game, acquiring game state parameters of the game; determining the target power consumption of the game according to the game state parameters; and determining working parameters of the first battery and the second battery according to the target power consumption. The power consumption requirement of the mobile phone can be met during battery management.

Description

Battery management method and related product
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a battery management method and a related product.
Background
With the increasing living standard of people, electronic devices such as mobile phones become necessities of daily life. When people use the mobile phone, the mobile phone is expected to have longer cruising ability and longer time duration after being charged once, so that the trouble of frequent charging can be reduced, the situation that the electric quantity is insufficient, the communication cannot be carried out at the key moment and the like can be avoided. When power supply management is carried out on electronic equipment in the existing scheme, the power supply management scheme cannot well reach the power consumption of the mobile phone.
Disclosure of Invention
The embodiment of the application provides a battery management method and a related product, which can meet the power consumption requirement of a mobile phone during battery management.
A first aspect of an embodiment of the present application provides a battery management method, which is applied to an electronic device, where the electronic device includes a first battery and a second battery, and the method includes:
when the application program operated by the electronic equipment is a game, acquiring game state parameters of the game;
determining the target power consumption of the game according to the game state parameters;
and determining working parameters of the first battery and the second battery according to the target power consumption.
A second aspect of embodiments of the present application provides a battery management apparatus applied to an electronic device including a first battery and a second battery, the apparatus including an acquisition unit, a first determination unit, and a second determination unit, wherein,
the obtaining unit is used for obtaining game state parameters of a game when an application program operated by the electronic equipment is the game;
the first determining unit is used for determining the target power consumption of the game according to the game state parameters;
and the second determining unit is used for determining the working parameters of the first battery and the second battery according to the target power consumption.
A third aspect of the embodiments of the present application provides an electronic device, including a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, and the computer program includes program instructions, and the processor is configured to call the program instructions to execute the step instructions in the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program makes a computer perform part or all of the steps as described in the first aspect of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps as described in the first aspect of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has at least the following beneficial effects:
the method comprises the steps of obtaining game state parameters of a game when an application program operated by the electronic equipment is the game, determining target power consumption of the game according to the game state parameters, and determining working parameters of a first battery and a second battery according to the target power consumption.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a battery management method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating another method for battery management according to an embodiment of the present disclosure;
FIG. 4 is a schematic flow chart diagram illustrating another method for battery management according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a battery management device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The electronic device according to the embodiments of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned apparatuses are collectively referred to as electronic devices.
In order to better understand the battery management method provided in the embodiments of the present application, a brief description of an electronic device to which the battery management method is applied is first provided below. Referring to fig. 1, fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 1, the electronic device 100 includes a first battery 101 and a second battery 102, where when an application program run by the electronic device 100 is a game, a game state parameter of the game is obtained, the electronic device 100 determines a target power consumption of the game according to the game state parameter, and the electronic device 100 determines operating parameters of the first battery 101 and the second battery 102 according to the target power consumption, where the operating parameters include discharge power and the like. The game can be a battle game, a gate-rushing game, a tower defense game and the like in a hand game. Therefore, when the electronic equipment runs a game, working parameters of the first battery and the second battery can be determined according to the state parameters of the game, so that the first battery and the second battery can meet the power consumption requirement of the current game scene, and the intelligence of the electronic equipment can be improved to a certain extent.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a battery management method according to an embodiment of the present disclosure. As shown in fig. 2, the battery management method is applied to an electronic device, the electronic device includes a first battery and a second battery, and the battery management method includes steps 201 and 203, which are as follows:
201. when the application program operated by the electronic equipment is a game, the game state parameters of the game are acquired.
The game state parameters may be parameters in a current scene of the game, for example, the number of game characters, the environment in which the game characters are located in the game, the states of the game characters, the frame rate of the game scene, and the like, where the states of the game characters include standing, walking, fighting states, and the like.
Optionally, when the game state parameters of the game are acquired, the game state parameters may be acquired according to image frames of the game, for example, the game state parameters may be determined according to motion trajectories of feature points of game characters in a plurality of image frames, where the feature points may include hand feature points, head feature points, leg feature points, and the like, and the hand feature points may be joint points of fingers, wrists, and the like, for example. The examples are given for illustrative purposes only and are not intended to be limiting. The different state feature points have different motion tracks, for example, all the feature points are in a static state when standing, and the leg feature points have motion tracks of walking when walking.
202. And determining the target electricity consumption of the game according to the game state parameters.
The target electricity consumption amount can be the electricity demand of the game and can be represented by electricity power.
Optionally, when the target power consumption is determined according to the game state parameters, the target power consumption may be determined according to the number of the game characters and the action information of the game characters. Among them, the following relationship may be had: the more the number of the game roles is, the richer the actions of the game roles are, and the larger the target power consumption is; the smaller the number of game characters, the less the game character acts, and the smaller the target power consumption amount.
203. And determining working parameters of the first battery and the second battery according to the target power consumption.
Optionally, the operating parameters of the first battery and the second battery include discharge power, a discharge power ratio, and the like. When determining the operating parameters of the first battery and the second battery, the operating parameters may also be determined with reference to the temperature of the first battery and the temperature of the second battery, and if the temperature is higher, the value of the operating parameter is smaller, for example, the discharge power is reduced.
In this example, when the electronic device runs a game, working parameters of the first battery and the second battery can be determined according to state parameters of the game, so that the first battery and the second battery can meet power consumption requirements of a current game scene, and the intelligence of the electronic device can be improved to a certain extent.
In one possible embodiment, a possible method for determining a target power consumption of a game according to game state parameters includes steps a1-a6 as follows:
a1, acquiring a first number of game characters in the game and a frame rate of the game according to the game state parameters;
a2, determining a first reference electricity consumption according to the first quantity and the frame rate;
a3, acquiring action information of a game role;
a4, if the second quantity is larger than the preset quantity, determining a second reference electricity consumption according to the second quantity, wherein the second quantity is smaller than or equal to the first quantity, and the second quantity is the quantity of action information which is preset action information;
a5, determining a third reference electricity consumption according to a third quantity, wherein the third quantity is the difference value between the first quantity and the second quantity;
and A6, determining the target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption.
Wherein, the first number of the game characters and the frame rate of the game can be directly extracted from the game state parameters. The frame rate of the game can be understood as the number of image frames displayed in a unit time when a game screen is displayed, and the higher the frame rate of the game is, the smoother the game operation is, and the lower the frame rate of the game is, the pause phenomenon occurs in the game operation. If the frame dropping occurs in the game, the pause phenomenon occurs, and the frame dropping phenomenon is more likely to occur as the game frame rate is lower.
Optionally, the method for determining the first reference power consumption according to the first quantity and the frame rate may be: the higher the first quantity is, the higher the frame rate is, the higher the first reference electricity consumption is; the lower the first number and the lower the frame rate, the lower the first reference power consumption. The first reference power consumption may be determined in other manners, which are merely illustrative and not limited in any way.
Optionally, the method for acquiring the action information of the game character may be: the action information is determined through the motion trail of the characteristic points of the game role, and the action information can be obtained by referring to the method for obtaining the game state parameters in the method.
Alternatively, the preset action information may be set by an empirical value or historical data, and may be, for example, a fighting action, a running or releasing skill, or the like. If the preset action is a releasing skill, the releasing skill is a complex skill, for example, a skill that the character needs to coordinate and complete through a plurality of actions is required, or when the plurality of actions are coordinated and completed, the linking degree is higher, and the releasing time is shorter, so that the releasing skill can be understood as a complex skill formed by releasing more actions in a shorter time. The greater the second amount, the greater the second reference electricity usage; the smaller the second amount, the smaller the second reference used amount. When the second reference electricity consumption is determined, the determination can be performed according to the complexity of the preset action information, wherein the action information with higher complexity is larger, the quantity of the action information with higher complexity is higher, and the second reference electricity consumption is larger.
Alternatively, the third number of corresponding actions may be less complex actions, such as actions that talk to the NPC, standing actions, etc. The third reference power consumption may be determined according to the two parameters by referring to the third amount and the action information of the third amount at the same time. And different actions with lower complexity have different power consumption, and the lower the complexity is, the smaller the power consumption is.
Optionally, when the target power consumption is determined according to the first reference power consumption, the second reference power consumption and the third reference power consumption, the target power consumption may be determined by adopting weight calculation and the temperature of the area where the electronic device is held.
In this example, a first reference power consumption is determined according to the first number of the game characters and the frame rate of the game, a second reference power consumption and a third reference power consumption are determined according to the action information of the game characters, and finally, a target power consumption is determined according to the first reference power consumption, the second reference power consumption and the third reference power consumption.
In one possible embodiment, a possible method for determining a target power consumption according to a first reference power consumption, a second reference power consumption and a third reference power consumption includes steps B1-B5, as follows:
b1, acquiring a first weight of a second reference power consumption and a second weight of a third reference power consumption;
b2, performing weight calculation on the second reference electricity consumption and the third reference electricity consumption by adopting the first weight and the second weight to obtain weighted electricity consumption;
b3, acquiring a temperature value of the held area of the electronic equipment;
b4, determining the heat dissipation power of the heat dissipation module of the electronic device according to the temperature value;
and B5, determining the target electricity consumption according to the heat dissipation power, the weighted electricity consumption and the first reference electricity consumption.
The method for obtaining the first weight and the second weight may include: the first method comprises the following steps: the different second reference power consumption may have different first weights, and the different third reference power consumption may have different second weights; the second method comprises the following steps: the different second reference power consumption may also have the same first weight, and the different third reference power consumption may also have the same second weight. The method can be specifically determined according to the types of games, and different game types have different weight selection methods. One possible weight selection method is: when the game type is a fighting game, the first weight and the second weight can be obtained by adopting a first method, and when the game type is a breakthrough type or a tower defense type, the first weight and the second weight can be obtained by adopting a second method. In the first method, when the first weight and the second weight are determined, the larger the second reference power consumption is, the larger the first weight is, the smaller the third reference power consumption is, and the larger the second weight is; the smaller the second reference power consumption is, the larger the first weight is, the larger the third reference power consumption is, the smaller the second weight is, and the sum of the first weight and the second weight is 1.
Optionally, when the heat dissipation power of the heat dissipation module is determined according to the temperature value, the higher the temperature value is, the higher the heat dissipation power is, the smaller the temperature value is, the smaller the heat dissipation power is, and when the temperature value is smaller than the preset temperature value, the heat dissipation power is 0, and the preset temperature value is set according to an empirical value or historical data.
Optionally, one possible method for determining the target power consumption according to the heat dissipation power, the weighted power consumption and the first reference power consumption is as follows: and adding the average value of the weighted power consumption and the first reference power consumption to the power consumption of the heat dissipation module to obtain the target power consumption. The power consumption of the heat dissipation module can be determined by the conversion rate between the heat dissipation power and the power consumption, wherein the conversion rate is the inherent attribute value of the heat dissipation module.
In this example, the weight calculation is performed on the second reference power consumption and the third reference power consumption to obtain the weighted power consumption, and the target power consumption is determined according to the heat dissipation power and the weighted power consumption of the heat dissipation module of the electronic device and the first reference power consumption.
In one possible embodiment, another possible method for determining the target power consumption of the game according to the game state parameters includes the following steps C1-C5:
c1, according to the game state parameters, acquiring first action information of a target role currently controlled by a target user in the game and second action information of an associated role associated with the target role, wherein the target user is a user using the electronic equipment to play the game;
c2, determining the number of image frames displayed in a preset time interval of the game scene according to the first action information and the second action information;
c3, determining the utilization rate of the graphics processor according to the number of the image frames;
c4, determining the temperature change trend of the graphics processor according to the utilization rate;
and C5, determining the target electricity consumption according to the temperature change trend.
The associated role associated with the target role may be: the characters having contact with the target character, for example, a character transacting with the target character, a character fighting, a character attacking the same monster together with the target character, and the like.
Optionally, the more complex the motion corresponding to the first motion information and the motion corresponding to the second motion information, the greater the number of image frames, and the simpler the motion corresponding to the first motion information and the motion corresponding to the second motion information, the number of image frames may be a preset fixed number. The preset fixed quantity is set by an empirical value or historical data, and the preset time interval is set by an empirical value or historical data.
Optionally, the method for determining the temperature variation trend of the graphics processor according to the usage rate may be: and predicting the utilization rate of the graphics processor at the next moment according to the first action information and the second action information, determining the change trend of the utilization rate of the graphics processor according to the utilization rate at the next moment and the utilization rate at the current moment, and determining the temperature change trend according to the change trend. The method for predicting the utilization rate of the graphics processor at the next time according to the first action information and the second action information may be: and predicting the complexity of the action information of the target user role at the next moment according to the first action information and predicting the complexity of the action information of the associated role at the next moment according to the second action information, wherein if the average complexity value is increased, the utilization rate of the next-moment graphic processor is increased, and if the average complexity value is reduced, the utilization rate of the next-moment graphic processor is reduced. The complexity mean is the mean between the complexity of the action information of the target user role at the next moment and the complexity of the action information of the associated user at the next moment. If the complexity mean value at the next moment is increased, the utilization rate of the graphics processor is increased, and the change trend is the trend of increasing the utilization rate; if the average complexity value at the next time decreases, the usage rate of the graphics processor decreases, and the trend of the change is the trend of the decrease in the usage rate. The trend of increasing the utilization rate of the graphics processor corresponds to the trend of increasing the temperature, and the trend of decreasing the utilization rate of the graphics processor corresponds to the trend of decreasing the temperature.
Optionally, the temperature variation trend is a trend of temperature increase, the target power consumption is a first preset power consumption, the temperature variation trend is a trend of temperature decrease, the target power consumption is a second preset power consumption, and the first preset power consumption is greater than the second preset power consumption. Of course, the target power consumption may also be determined by other mapping relationships between the temperature change and the target power consumption, which are only for illustration and are not limited specifically.
In this example, the number of the image frames is determined according to the action information of the target role and the associated role, the utilization rate of the graphics processor is determined according to the number of the image frames, the temperature change trend is determined according to the utilization rate, and the target power consumption is determined according to the temperature change trend.
In a possible embodiment, the first battery includes a lithium battery, the second battery includes a graphene battery, and a possible method for determining output powers of the first battery and the second battery according to a target power consumption includes steps D1-D2, which are as follows:
d1, acquiring a first temperature of the first battery and a second temperature of the second battery;
d2, if the first temperature and/or the second temperature are/is higher than a preset temperature threshold, determining the output power of the first battery and the second battery according to the target electricity consumption and the temperature threshold;
the method for determining the power supply amounts of the first battery and the second battery according to the target power consumption amount may be: acquiring a first target difference value between a first temperature and a temperature threshold value and a second target difference value between a second temperature and the temperature threshold value; and determining the output power of the first battery and the second battery according to the first target difference, the second target difference and the target power consumption. The power consumption protection value is determined according to the first target difference value and the second target difference value, the power consumption protection value is used for temperature over-value protection, the situation that damage is caused due to the fact that the battery temperature is too high due to the fact that power is supplied through the set target power consumption is avoided, the power consumption protection value is subtracted from the target power consumption, and the sum of the output power of the first battery and the output power of the second battery is obtained.
Optionally, a preset output power determination method may be adopted to determine the output power of the first battery and the output power of the second battery. The method specifically comprises the following steps: the determination is made based on a ratio of remaining capacities of the first battery and the second battery, which may be taken as a ratio of output power of the first battery to output power of the second battery. The method can also comprise the following steps: and when the electric quantity of the first battery is lower than the preset electric quantity value, the output power of the second battery is a value obtained by subtracting the power consumption protection value from the target power consumption. The method can also comprise the following steps: the method comprises the steps that a first battery is used for supplying power, when the electric quantity of the first battery is lower than a preset electric quantity threshold value, the first battery and a second battery are used for supplying power simultaneously, and the output power of the first battery is the same as that of the second battery.
Fig. 3 is a schematic flow chart of another battery management method according to an embodiment of the present disclosure. As shown in fig. 3, the battery management method is applied to an electronic device, the electronic device includes a first battery and a second battery, and the battery management method includes steps 301 and 308, which are as follows:
301. when an application program operated by the electronic equipment is a game, acquiring game state parameters of the game;
302. according to the game state parameters, acquiring a first number of game roles in the game and a frame rate of the game;
303. determining a first reference power consumption according to the first quantity and the frame rate;
304. acquiring action information of a game role;
305. if the second quantity is larger than the preset quantity, determining a second reference electricity consumption according to the second quantity, wherein the second quantity is smaller than or equal to the first quantity, and the second quantity is the quantity of the preset action information of the action information;
306. determining a third reference power consumption according to a third quantity, wherein the third quantity is a difference value between the first quantity and the second quantity;
307. determining a target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption;
308. and determining working parameters of the first battery and the second battery according to the target power consumption.
In this example, a first reference power consumption is determined according to the first number of the game characters and the frame rate of the game, a second reference power consumption and a third reference power consumption are determined according to the action information of the game characters, and finally, a target power consumption is determined according to the first reference power consumption, the second reference power consumption and the third reference power consumption.
Fig. 4 is a schematic flow chart of another battery management method according to an embodiment of the present disclosure. As shown in fig. 4, the battery management method is applied to an electronic device, the electronic device includes a first battery and a second battery, and the battery management method includes steps 401 and 407, and specifically includes the following steps:
401. when an application program operated by the electronic equipment is a game, acquiring game state parameters of the game;
402. according to the game state parameters, acquiring first action information of a target role of a game currently controlled by a target user and second action information of an associated role associated with the target role, wherein the target user is a user using electronic equipment to play the game;
403. determining the number of image frames displayed in a preset time interval of a game scene according to the first action information and the second action information;
404. determining the utilization rate of the graphics processor according to the number of the image frames;
405. determining the temperature change trend of the graphic processor according to the utilization rate;
406. determining target power consumption according to the temperature change trend;
407. and determining working parameters of the first battery and the second battery according to the target power consumption.
In this example, the number of the image frames is determined according to the action information of the target role and the associated role, the utilization rate of the graphics processor is determined according to the number of the image frames, the temperature change trend is determined according to the utilization rate, and the target power consumption is determined according to the temperature change trend.
In accordance with the foregoing embodiments, please refer to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application, and as shown in the figure, the electronic device includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions, and the program includes instructions for performing the following steps;
when an application program operated by the electronic equipment is a game, acquiring game state parameters of the game;
determining the target power consumption of the game according to the game state parameters;
and determining working parameters of the first battery and the second battery according to the target power consumption.
In this example, when the application program operated by the electronic device is a game, the game state parameters of the game are acquired, the target power consumption of the game is determined according to the game state parameters, and the working parameters of the first battery and the second battery are determined according to the target power consumption.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
In accordance with the above, please refer to fig. 6, fig. 6 is a schematic structural diagram of a battery management device according to an embodiment of the present application. The battery management apparatus is applied to an electronic device including a first battery and a second battery, the apparatus includes an acquisition unit 601, a first determination unit 602, and a second determination unit 603, wherein,
the obtaining unit 601 is used for obtaining game state parameters of a game when an application program operated by the electronic equipment is the game;
a first determining unit 602, configured to determine a target power consumption amount of a game according to the game state parameter;
the second determining unit 603 is configured to determine the operating parameters of the first battery and the second battery according to the target power consumption.
Optionally, in terms of determining the target power consumption of the game according to the game state parameters, the first determining unit 602 is configured to:
according to the game state parameters, acquiring a first number of game roles in the game and a frame rate of the game;
determining a first reference power consumption according to the first quantity and the frame rate;
acquiring action information of a game role;
if the second quantity is larger than the preset quantity, determining a second reference electricity consumption according to the second quantity, wherein the second quantity is smaller than or equal to the first quantity, and the second quantity is the quantity of the preset action information of the action information;
determining a third reference power consumption according to a third quantity, wherein the third quantity is a difference value between the first quantity and the second quantity;
and determining the target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption.
Optionally, in terms of determining the target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption, the first determining unit 602 is configured to:
acquiring a first weight of a second reference power consumption and a second weight of a third reference power consumption;
performing weight calculation on the second reference power consumption and the third reference power consumption by adopting the first weight and the second weight to obtain weighted power consumption;
acquiring a temperature value of a held area of the electronic equipment;
determining the heat dissipation power of a heat dissipation module of the electronic device according to the temperature value;
and determining the target electricity consumption according to the heat dissipation power, the weighted electricity consumption and the first reference electricity consumption.
Optionally, in terms of determining the target power consumption of the game according to the game state parameters, the first determining unit 602 is configured to:
according to the game state parameters, acquiring first action information of a target role of a game currently controlled by a target user and second action information of an associated role associated with the target role, wherein the target user is a user using electronic equipment to play the game;
determining the number of image frames displayed in a preset time interval of a game scene according to the first action information and the second action information;
determining the utilization rate of the graphics processor according to the number of the image frames;
determining the temperature change trend of the graphic processor according to the utilization rate;
and determining the target electricity consumption according to the temperature change trend.
Optionally, in terms of determining the output powers of the first battery and the second battery according to the target power consumption, the second determining unit 603 includes:
acquiring a first temperature of a first battery and a second temperature of a second battery;
and if the first temperature and/or the second temperature are/is higher than a preset temperature threshold, determining the output power of the first battery and the second battery according to the target power consumption and the temperature threshold.
Embodiments of the present application also provide a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the battery management methods as described in the above method embodiments.
Embodiments of the present application also provide a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program causes a computer to execute part or all of the steps of any one of the battery management methods as described in the above method embodiments.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may be implemented in the form of a software program module.
The integrated units, if implemented in the form of software program modules and sold or used as stand-alone products, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash memory disks, read-only memory, random access memory, magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A battery management method is applied to an electronic device, wherein the electronic device comprises a first battery and a second battery, and the method comprises the following steps:
when the application program operated by the electronic equipment is a game, acquiring game state parameters of the game;
determining the target power consumption of the game according to the game state parameters; determining working parameters of the first battery and the second battery according to the target power consumption, wherein the working parameters comprise output power;
wherein determining the output power of the first battery and the second battery according to the target power consumption comprises: acquiring a first temperature of the first battery and a second temperature of the second battery; if the first temperature and/or the second temperature are/is higher than a preset temperature threshold, determining the output power of the first battery and the second battery according to the target power consumption and the temperature threshold;
wherein determining the output power of the first battery and the second battery according to the target power consumption and the temperature threshold comprises: acquiring a first target difference value between a first temperature and a temperature threshold value and a second target difference value between a second temperature and the temperature threshold value; determining the output power of the first battery and the second battery according to the first target difference, the second target difference and the target power consumption; the sum of the output powers of the first battery and the second battery is equal to a target power consumption minus a power consumption protection value, and the power consumption protection value is determined according to a first target difference and a second target difference;
or, according to the target power consumption, determining the output powers of the first battery and the second battery includes: determining the output power of the first battery and the second battery according to the ratio of the residual capacities of the first battery and the second battery, wherein the ratio is used as the ratio of the output power of the first battery to the output power of the second battery; or when the electric quantity of the first battery is lower than the preset electric quantity value, the output power of the second battery is a value obtained by subtracting the power consumption protection value from the target power consumption, or the first battery is adopted to supply power firstly, when the electric quantity of the first battery is lower than the preset electric quantity threshold value, the first battery and the second battery are adopted to supply power simultaneously, and the output powers of the first battery and the second battery are the same.
2. The method of claim 1, wherein determining the target power usage for the game based on the game state parameters comprises:
acquiring a first number of game roles in the game and a frame rate of the game according to the game state parameters, wherein the first number is the number of the roles;
determining a first reference power consumption according to the first quantity and the frame rate;
acquiring action information of the game role;
if the second quantity is larger than the preset quantity, determining a second reference electricity consumption according to the second quantity, wherein the second quantity is smaller than or equal to the first quantity, and the second quantity is the quantity of the preset action information of the action information;
determining a third reference power consumption according to a third quantity, wherein the third quantity is a difference value between the first quantity and the second quantity;
and determining the target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption.
3. The method of claim 2, wherein determining the target power usage from the first reference power usage, the second reference power usage, and the third reference power usage comprises:
acquiring a first weight of the second reference electricity consumption and a second weight of the third reference electricity consumption;
performing weight calculation on the second reference power consumption and the third reference power consumption by adopting the first weight and the second weight to obtain weighted power consumption;
acquiring a temperature value of a held area of the electronic equipment;
determining the heat dissipation power of a heat dissipation module of the electronic equipment according to the temperature value;
and determining the target electricity consumption according to the heat dissipation power, the weighted electricity consumption and the first reference electricity consumption.
4. The method of claim 1, wherein determining the target power usage for the game based on the game state parameters comprises:
according to the game state parameters, acquiring first action information of a target role of the game currently controlled by a target user and second action information of an associated role associated with the target role, wherein the target user is a user using the electronic equipment to play the game;
determining the number of image frames displayed in a preset time interval of a game scene according to the first action information and the second action information;
determining the utilization rate of a graphic processor according to the number of the image frames;
determining the temperature change trend of the graphics processor according to the utilization rate;
and determining the target power consumption according to the temperature change trend.
5. A battery management apparatus applied to an electronic device including a first battery and a second battery, the apparatus including an acquisition unit, a first determination unit, and a second determination unit, wherein,
the obtaining unit is used for obtaining game state parameters of a game when an application program operated by the electronic equipment is the game;
the first determining unit is used for determining the target power consumption of the game according to the game state parameters;
the second determining unit is configured to determine working parameters of the first battery and the second battery according to the target power consumption, where the working parameters include output power;
wherein determining the output power of the first battery and the second battery according to the target power consumption comprises: acquiring a first temperature of the first battery and a second temperature of the second battery; if the first temperature and/or the second temperature are/is higher than a preset temperature threshold, determining the output power of the first battery and the second battery according to the target power consumption and the temperature threshold;
wherein determining the output power of the first battery and the second battery according to the target power consumption and the temperature threshold comprises: acquiring a first target difference value between a first temperature and a temperature threshold value and a second target difference value between a second temperature and the temperature threshold value; determining the output power of the first battery and the second battery according to the first target difference, the second target difference and the target power consumption; the sum of the output powers of the first battery and the second battery is equal to a target power consumption minus a power consumption protection value, and the power consumption protection value is determined according to a first target difference and a second target difference;
or, according to the target power consumption, determining the output powers of the first battery and the second battery includes: determining the output power of the first battery and the second battery according to the ratio of the residual capacities of the first battery and the second battery, wherein the ratio is used as the ratio of the output power of the first battery to the output power of the second battery; or when the electric quantity of the first battery is lower than the preset electric quantity value, the output power of the second battery is a value obtained by subtracting the power consumption protection value from the target power consumption, or the first battery is adopted to supply power firstly, when the electric quantity of the first battery is lower than the preset electric quantity threshold value, the first battery and the second battery are adopted to supply power simultaneously, and the output powers of the first battery and the second battery are the same.
6. The apparatus of claim 5, wherein in said determining a target amount of power used for the game based on the game state parameters, the first determining unit is configured to:
acquiring a first number of game roles in the game and a frame rate of the game according to the game state parameters, wherein the first number is the number of the roles;
determining a first reference power consumption according to the first quantity and the frame rate;
acquiring action information of the game role;
if the second quantity is larger than the preset quantity, determining a second reference electricity consumption according to the second quantity, wherein the second quantity is smaller than or equal to the first quantity, and the second quantity is the quantity of the preset action information of the action information;
determining a third reference power consumption according to a third quantity, wherein the third quantity is a difference value between the first quantity and the second quantity;
and determining the target electricity consumption according to the first reference electricity consumption, the second reference electricity consumption and the third reference electricity consumption.
7. The apparatus according to claim 6, wherein in said determining the target power consumption amount based on the first reference power consumption amount, the second reference power consumption amount, and the third reference power consumption amount, the first determination unit is configured to:
acquiring a first weight of the second reference electricity consumption and a second weight of the third reference electricity consumption;
performing weight calculation on the second reference power consumption and the third reference power consumption by adopting the first weight and the second weight to obtain weighted power consumption;
acquiring a temperature value of a held area of the electronic equipment;
determining the heat dissipation power of a heat dissipation module of the electronic equipment according to the temperature value;
and determining the target electricity consumption according to the heat dissipation power, the weighted electricity consumption and the first reference electricity consumption.
8. An electronic device comprising a processor, an input device, an output device, and a memory, the processor, the input device, the output device, and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, the processor being configured to invoke the program instructions to perform the method of any of claims 1-4.
9. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to perform the method according to any of claims 1-4.
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 CN110266886A (en) 2019-09-20
CN110266886B true 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)

Families Citing this family (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
CN115185362A (en) * 2021-04-01 2022-10-14 Oppo广东移动通信有限公司 Electronic device control method, electronic device control device, storage medium and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (6)

* 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
JP6498391B2 (en) * 2014-06-25 2019-04-10 ローム株式会社 Mobile device and control method thereof
CN107370877B (en) * 2017-06-30 2020-06-02 Oppo广东移动通信有限公司 Application program pushing method and device, storage medium and electronic equipment
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
CN109453523A (en) * 2018-09-26 2019-03-12 努比亚技术有限公司 A kind of game picture display processing method, terminal and computer readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Also Published As

Publication number Publication date
CN110266886A (en) 2019-09-20

Similar Documents

Publication Publication Date Title
CN110266886B (en) Battery management method and related product
Deng et al. Fine-granularity based application offloading policy in cloud-enhanced small cell networks
JP6140651B2 (en) Game program
WO2020042746A1 (en) Method and apparatus for picking up virtual object in virtual environment, terminal, and computer readable storage medium
EP2839441B1 (en) Network game system without dynamic obstructions and processing method thereof
CN104679336B (en) Adjust the method and device of touch-screen parameter
CN102819313B (en) Operating method of terminal equipment and terminal equipment
CN101539968B (en) Go human-computer chess-playing system
CN106390456A (en) Generating method and generating device for role behaviors in game
CN106776038B (en) Hot application resource allocation method and mobile terminal
CN106572099A (en) Cross-server method and system for network game
CN109525720A (en) Battery of mobile terminal control method, mobile terminal and readable storage medium storing program for executing
CN107077181A (en) A kind of charging current limiter method, device and electronic equipment
CN110559663B (en) Display control method and device for virtual rounds in game
US20230043121A1 (en) Skill casting method and apparatus of virtual object, device, and storage medium
CN108319329A (en) A kind of display control method, flexible screen terminal and computer readable storage medium
CN107803029A (en) Display processing method and related product
CN109316743A (en) A kind of game control method, terminal and computer readable storage medium
CN109908580A (en) Optimization method, computer equipment and the storage medium of interface
CN105407992A (en) Image processing program, server device, image processing system, and image processing method
CN107516917A (en) Charge control method, terminal, intelligent charge equipment and computer-readable storage medium
CN112929915A (en) Dynamic data unloading method and system for mobile edge calculation
CN109107159B (en) Method, device, equipment and medium for configuring application object attributes
CN115040873A (en) Game grouping processing method and device, computer equipment and storage medium
CN107729062A (en) Using freezing method and related product

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