WO2023207671A1 - 一种电池电量状态的确定方法 - Google Patents

一种电池电量状态的确定方法 Download PDF

Info

Publication number
WO2023207671A1
WO2023207671A1 PCT/CN2023/088942 CN2023088942W WO2023207671A1 WO 2023207671 A1 WO2023207671 A1 WO 2023207671A1 CN 2023088942 W CN2023088942 W CN 2023088942W WO 2023207671 A1 WO2023207671 A1 WO 2023207671A1
Authority
WO
WIPO (PCT)
Prior art keywords
battery
voltage
target
parameters
terminal device
Prior art date
Application number
PCT/CN2023/088942
Other languages
English (en)
French (fr)
Inventor
李园
崔瑞
阮嘉濠
刘玉桃
王晗
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023207671A1 publication Critical patent/WO2023207671A1/zh

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/367Software therefor, e.g. for battery testing using modelling or look-up tables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/385Arrangements for measuring battery or accumulator variables
    • G01R31/387Determining ampere-hour charge capacity or SoC
    • G01R31/388Determining ampere-hour charge capacity or SoC involving voltage measurements
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/389Measuring internal impedance, internal conductance or related variables
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/36Arrangements for testing, measuring or monitoring the electrical condition of accumulators or electric batteries, e.g. capacity or state of charge [SoC]
    • G01R31/396Acquisition or processing of data for testing or for monitoring individual cells or groups of cells within a battery
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Definitions

  • Embodiments of the present application relate to the field of terminal equipment, and in particular, to a method for determining battery power status.
  • Embodiments of the present application provide a method for determining battery power status to implement mapping based on battery usage data and obtain the mapped target battery power, so that the target battery power can reflect not only the remaining power of the battery, but also the remaining power of the battery. Battery usage status, thus enhancing battery stability and thereby protecting the battery.
  • embodiments of the present application provide a method for determining battery power status.
  • the method includes: determining battery protection voltage parameters according to battery usage data; the battery usage data is used to reflect the usage status of the battery within a preset time period; and the battery protection voltage parameters are used to calculate the original voltage corresponding to the battery power.
  • the voltage parameter is changed; according to the battery protection voltage parameter, a second mapping relationship between the actual battery power and the target battery power is determined; based on the second mapping relationship and the actual battery power of the battery, the target battery power is determined.
  • mapping the mapping of battery voltage to battery power is achieved by calculating the mapping between the target battery power and the actual battery power. Therefore, mapping the target battery power can not only reflect the actual battery power of the battery, but also the voltage of the battery, so that when the battery voltage is low, a lower target battery power can be mapped, which can promptly remind the user to charge. And prevent the battery from being in a low voltage state for a longer period of time. Therefore, through dynamic mapping based on battery voltage and battery power, the battery can be better prevented from operating in a dangerous voltage range for a long time.
  • silicon anode batteries have relatively unstable performance in the low voltage range, so when using silicon anode batteries The battery shutdown voltage can be raised; or if there are batteries made of other materials in the future that have poor performance in other voltage ranges (such as high-voltage ranges), the battery can be protected by reducing the battery's full charge voltage and delaying battery life.
  • determining the battery protection voltage parameters according to the battery usage data includes: determining the battery protection voltage parameters corresponding to the battery usage data based on a preconfigured first mapping relationship.
  • the mapping relationship between battery usage data and battery protection voltage parameters can be realized through experiments or deep learning.
  • the pre-configured battery protection voltage parameters can be determined by applying the pre-configured first mapping relationship to adjust the battery voltage so that the battery can operate within a safe voltage range in a wider range.
  • the preconfigured first mapping relationship can be used to reflect the corresponding relationship between the values of different battery usage data and the values of different battery protection voltage parameters; or, the preconfigured first mapping relationship can be used to reflect the corresponding relationship between the values of different battery usage data and the values of different battery protection voltage parameters.
  • a mapping relationship can also be used to reflect the corresponding relationship between different ranges of battery usage data and different values or ranges of battery protection voltage parameters.
  • the preconfigured first mapping relationship can be a correspondence between a numerical value and a numerical value, or a correspondence between a numerical value and a range, or a correspondence between a range and a range.
  • different mapping methods can be used to adapt to different application scenarios. various requirements, such as accuracy requirements, etc.
  • determining a second mapping relationship between the actual battery power and the target battery power based on the battery protection voltage parameter includes: based on the first modeling parameter, determining the battery protection voltage parameter corresponding to The second mapping relationship; the first modeling parameter is used to indicate the corresponding relationship between battery voltage and battery power.
  • the mapping between battery voltage and battery power can be modeled in advance, and then the first modeling parameter can be used to determine the correspondence between the original battery voltage and the original battery power, and the relationship between the target battery voltage and the target battery power. Therefore, the mapping relationship between the actual battery power and the target battery power can be further determined through the two correspondences, so that the target battery power after mapping can be determined.
  • the battery usage data includes one or more of the following information: full charge capacity, first power level when charging is started, second power level when charging is stopped, battery usage time, battery cycle frequency.
  • battery usage data can obtain battery charging-related data, battery usage-related data, etc., so that battery usage habits can be analyzed. For example, determine the user's charging habits. If the user is used to using the battery to charge at a lower level, there may be unstable performance when the battery is at a lower voltage. Therefore, the shutdown voltage can be raised to achieve the mapping. Target battery power to prevent users from using a low-voltage battery for a long time.
  • the method before determining the battery protection voltage parameter according to the battery usage data, the method further includes: receiving and responding to a preset collection instruction, collecting and counting the battery usage data; wherein the preset It is assumed that the collection instructions include but are not limited to: detecting the startup of the terminal device; or detecting the charging of the terminal device; or receiving user operation instructions for enabling battery optimization. In this design, multiple implementation methods for obtaining battery usage data can be set based on actual scene requirements.
  • the battery protection voltage parameter includes but is not limited to at least one of the following parameters: a target shutdown voltage obtained by changing the original shutdown voltage included in the original voltage parameter; The target full charge voltage obtained by changing the original full charge voltage contained in the voltage parameter.
  • a target shutdown voltage obtained by changing the original shutdown voltage included in the original voltage parameter
  • the target full charge voltage obtained by changing the original full charge voltage contained in the voltage parameter.
  • the battery protection voltage parameter is indicated by, but is not limited to, one of the following forms: an absolute value used to indicate the change value; a relative value used to indicate the change ratio; used to indicate the obtained value after the change target value.
  • obtaining the actual battery power of the battery includes: continuously collecting battery parameters used to determine the actual battery power, or periodically collecting the battery parameters, or receiving and responding to a request instruction to collect the battery parameters.
  • the battery parameters determine the actual battery power according to the battery parameters.
  • embodiments of the present application also provide a method for determining battery power status.
  • the battery protection voltage parameter is determined according to the battery usage data; the battery usage data is used to reflect the usage status of the battery within a preset time period, and the battery protection voltage parameter is used to determine a value corresponding to the battery power. or multiple battery original voltages for Change; determine the corresponding relationship between the actual battery voltage and the target battery power according to the battery protection voltage parameter; determine the target battery power based on the corresponding relationship and the actual battery voltage of the battery.
  • mapping the target battery power can not only reflect the actual battery power of the battery, but also the voltage of the battery, so that when the battery voltage is low, a lower target battery power can be mapped, which can promptly remind the user to charge. And prevent the battery from being in a low voltage state for a longer period of time. Therefore, through dynamic mapping based on battery voltage and battery power, the battery can be better prevented from operating in a dangerous voltage range for a long time.
  • silicon anode batteries have relatively unstable performance in the low voltage range, so when using silicon anode batteries The battery shutdown voltage can be raised; or if there are batteries made of other materials in the future that have poor performance in other voltage ranges (such as high-voltage ranges), the battery can be protected by reducing the battery's full charge voltage and delaying battery life.
  • determining the battery protection voltage parameters according to the battery usage data includes: determining the battery protection voltage parameters corresponding to the battery usage data based on a preconfigured first mapping relationship.
  • the preconfigured first mapping relationship is used to reflect the corresponding relationship between the values of different battery usage data and the values of different battery protection voltage parameters; or, the preconfigured first mapping relationship A mapping relationship is used to reflect the corresponding relationship between different ranges of battery usage data and different values or ranges of battery protection voltage parameters.
  • determining the corresponding relationship between the actual battery voltage and the target battery power according to the battery protection voltage parameter includes: switching the first modeling parameter to the third mapping relationship based on a preconfigured third mapping relationship. Two modeling parameters; the first modeling parameter is used to indicate the original correspondence between battery voltage and battery power, and the second modeling parameter is used to indicate the target correspondence between battery voltage and battery power.
  • the mapping relationship between battery protection voltage parameters and modeling parameters can be pre-configured through experiments or deep learning.
  • different modeling parameters corresponding to different battery protection voltage parameters can be stored in advance, so that When different battery protection voltage parameters are used, different modeling parameters can be switched to obtain the appropriate corresponding relationship between battery voltage and battery power, so as to adjust the battery voltage so that the battery can operate within a wider range of safe voltages.
  • the battery usage data includes but is not limited to one or more of the following information: full charge capacity, first power level when charging starts, second power level when charging stops, battery usage time , battery cycle times.
  • the method before determining the battery protection voltage parameter according to the battery usage data, the method further includes: receiving and responding to a preset collection instruction, collecting and counting the battery usage data; wherein the preset It is assumed that the collection instructions include but are not limited to: detecting the startup of the terminal device; or detecting the charging of the terminal device; or receiving user operation instructions for enabling battery optimization.
  • the battery protection voltage parameter includes at least one of the following parameters: a target shutdown voltage obtained by changing the original shutdown voltage included in the original voltage parameter; The target full charge voltage obtained by changing the original full charge voltage included.
  • the battery protection voltage parameter is indicated by, but is not limited to, one of the following forms: an absolute value used to indicate the change value; a relative value used to indicate the change ratio; used to indicate the obtained value after the change target value.
  • obtaining the actual battery power of the battery includes: continuously collecting battery parameters used to determine the actual battery power, or periodically collecting the battery parameters, or receiving and responding to a request instruction to collect the battery parameters.
  • the battery parameters determine the actual battery power according to the battery parameters.
  • the present application provides a terminal device, which includes a plurality of functional modules; the plurality of functional modules
  • the modules can interact to implement any of the above aspects and the methods executed by the terminal device in each embodiment thereof.
  • the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
  • the plurality of functional modules may include a collection module, a processing module, a transceiver module, etc.
  • the collection module may be used to collect battery usage data
  • the processing module may be used to perform the battery tasks involved in the present application.
  • the transceiver module can be used to receive the actual battery power obtained by the hardware unit, etc.
  • the present application provides a terminal device, including at least one processor and at least one memory.
  • Computer program instructions are stored in the at least one memory.
  • the at least one processor executes any of the above. Aspects and methods executed by terminal devices in each embodiment thereof.
  • the present application also provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program When executed by a computer, it causes the computer to execute any of the above aspects and the above. Possible ways to design end device implementation.
  • this application provides a computer program product.
  • the computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute any of the above aspects and its possibilities. method of designing terminal equipment.
  • embodiments of the present application also provide a graphical user interface on a terminal device.
  • the terminal device has a display screen, one or more memories, and one or more processors.
  • the one or more processors are configured to One or more computer programs stored in the one or more memories are executed, and the graphical user interface includes a graphical user interface displayed when the terminal device executes any of the above aspects and possible designs thereof. For example, after determining the mapped target battery power, the terminal device may display the target battery power on the graphical user interface, such as in the upper right corner.
  • the present application also provides a chip, which is used to read a computer program stored in a memory and execute any of the above aspects and possible methods for executing it on a terminal device.
  • the present application also provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement any of the above aspects and possible methods for designing a terminal device to execute the same.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system can be composed of chips or include chips and other discrete devices.
  • Figure 1 is a schematic diagram of the hardware structure of a possible terminal device provided by an embodiment of the present application.
  • Figure 2 is a software architecture block diagram of a terminal device provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of the hardware structure applicable to a method for determining battery power status provided by an embodiment of the present application
  • Figure 4 is a schematic flowchart of a method for determining battery power status provided by an embodiment of the present application
  • Figure 5 is a schematic diagram of a display interface of a terminal device provided by an embodiment of the present application.
  • Figure 6 is another schematic flowchart of a method for determining battery power status provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of a device for determining battery power status provided by an embodiment of the present application.
  • Terminal devices usually require batteries to support normal use of the device, so how to increase the battery storage capacity of the terminal device is of great research significance.
  • the increase in battery storage capacity is limited.
  • the battery preparation method can also be considered. By improving the battery preparation method, a battery of the same volume can have a larger battery storage capacity.
  • Lithium-ion batteries are mainly composed of positive electrode materials, negative electrode materials, electrolytes, casings and other parts.
  • the main part that affects the battery storage capacity and energy is the positive and negative parts of the battery.
  • Extreme material Because graphite is relatively stable and insensitive to low pressure, the negative electrode material generally used in mainstream terminal equipment on the current market is graphite.
  • the silicon negative electrode battery can have a larger battery storage capacity than the graphite negative electrode battery under the same conditions; for example, if the battery storage capacity is 2300 mAh )'s graphite negative electrode battery is an example. If the negative electrode material of the battery is replaced with silicon, the battery storage capacity can be increased by about 140mAh.
  • silicon anode batteries due to the characteristics of silicon anode batteries such as low discharge platform, increased capacity attenuation at low voltage, and easy expansion during charge and discharge cycles, silicon anode batteries cannot be optimally applied.
  • new preparation methods or mixing ratios of preparation materials are mainly considered to improve the performance of silicon anode batteries or reduce the probability of battery expansion.
  • embodiments of the present application provide a method for determining battery power status to control batteries such as silicon anode batteries.
  • batteries such as silicon anode batteries.
  • dynamic mapping of battery voltage data and battery power status is realized, and then a new display reflecting the battery power status is provided through the battery power status (for example, it can be displayed as power).
  • the mapped battery power state can not only reflect the state of the remaining battery capacity, but also the battery voltage state.
  • a lower battery voltage can be mapped to a lower power level to trigger the power saving mode of the terminal device or remind the user to charge in time; and when the battery voltage is lower than the voltage threshold, the battery voltage can be Map to the battery state of no power to trigger operations such as shutting down the terminal device.
  • batteries such as silicon-like anode batteries can be prevented from being in a low-voltage state for a long time, which will lead to rapid attenuation of power and battery expansion, thereby improving battery stability and extending battery life.
  • the methods provided by the embodiments of the present application can be applied to silicon anode batteries, or can also be applied to batteries with other preparation means that may exist in the future and have similar characteristics to silicon anode batteries, and this application does not limit this.
  • the terminal device in the embodiment of the present application may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a smart home device (for example, a smart TV, a smart screen). , smart speakers, etc.), wearable devices (such as watches, helmets, headphones, etc.), augmented reality (augmented reality, AR)/virtual reality (VR) devices, personal digital assistant (personal digital assistant, PDA), etc. equipment. It can be understood that the embodiments of the present application do not place any restrictions on the specific type of terminal equipment.
  • Terminal devices to which the embodiments of this application can be applied include but are not limited to carrying Or portable terminal devices with other operating systems.
  • the above-mentioned portable terminal device may also be other portable terminal devices, such as a laptop computer (Laptop) with a touch-sensitive surface (such as a touch panel).
  • Figure 1 shows a schematic diagram of the hardware structure of a possible terminal device.
  • the terminal device 200 includes: a radio frequency (radio frequency, RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, an audio circuit 270, a communication interface 280, and a wireless fidelity ( wireless-fidelity, Wi-Fi) module 290 and other components.
  • RF radio frequency
  • RF radio frequency
  • the RF circuit 210 can be used to receive and send data during communication or phone calls. In particular, after receiving the downlink data from the base station, the RF circuit 210 sends it to the processor 230 for processing; in addition, it sends the uplink data to be sent to the base station.
  • the RF circuit 210 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier (LNA), a duplexer, etc.
  • LNA low noise amplifier
  • the RF circuit 210 can also communicate with other devices through a wireless communication network.
  • the wireless communication can use any communication standard or protocol, including but not limited to global system of mobile communication (GSM), general packet radio service (GPRS), code division multiple access (code division multiple access (CDMA), wideband code division multiple access (WCDMA), long term evolution (LTE), email, short messaging service (SMS), etc.
  • GSM global system of mobile communication
  • GPRS general packet radio service
  • CDMA code division multiple access
  • WCDMA wideband code division multiple access
  • LTE long term evolution
  • email short messaging service
  • Wi-Fi technology is a short-distance wireless transmission technology.
  • the terminal device 200 can connect to an access point (AP) through the Wi-Fi module 290, thereby achieving access to the data network.
  • the Wi-Fi module 290 can be used to receive and send data during communication.
  • the terminal device 200 can achieve physical connection with other devices through the communication interface 280 .
  • the communication interface 280 is connected to the communication interface of the other device through a cable to realize data transmission between the terminal device 200 and other devices.
  • the terminal device 200 can also implement communication services and interact with service-side devices or other terminal devices. Therefore, the terminal device 200 needs to have a data transmission function, that is, the terminal device 200 needs to contain a communication module inside.
  • FIG. 1 shows communication modules such as the RF circuit 210, the Wi-Fi module 290, and the communication interface 280, it can be understood that at least one of the above components is present in the terminal device 200 or Other communication modules (such as Bluetooth modules) used to implement communication for data transmission.
  • the terminal device 200 when the terminal device 200 is a mobile phone, the terminal device 200 may include the RF circuit 210, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); When the terminal device 200 is a computer, the terminal device 200 may include the communication interface 280, the Wi-Fi module 290, or a Bluetooth module (not shown in Figure 1); when the When the terminal device 200 is a tablet computer, the terminal device 200 may include the Wi-Fi module, or may include a Bluetooth module (not shown in FIG. 1 ).
  • the memory 240 may be used to store software programs and modules.
  • the processor 230 executes various functional applications and data processing of the terminal device 200 by running software programs and modules stored in the memory 240 .
  • the memory 240 may mainly include a program storage area and a data storage area.
  • the stored program area can store the operating system (mainly including the corresponding software programs or modules of the kernel layer, system layer, application framework layer, application layer, etc.).
  • the memory 240 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
  • the relevant computer program or pre-stored mapping relationship (such as a pre-configured first mapping relationship, or a pre-stored second mapping relationship, or a pre-configured mapping relationship) used to implement the method provided by the embodiment of the application Information such as the third mapping relationship) may be stored in the memory 240 .
  • the input unit 250 may be used to receive editing operations of multiple different types of data objects such as numeric or character information input by the user, and to generate key signal input related to user settings and function control of the terminal device 200 .
  • the input unit 250 may include a touch panel 251 and other input devices 252.
  • the touch panel 251 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable object or accessory such as a finger, stylus, etc. on the touch panel 251 or in the vicinity. operations near the touch panel 251), and drive the corresponding connection device according to the preset program.
  • the other input devices 252 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), trackball, mouse, joystick, etc.
  • function keys such as volume control keys, switch keys, etc.
  • trackball such as mouse, joystick, etc.
  • the display unit 260 may be used to display information input by a user or information provided to a user and various menus of the terminal device 200 .
  • the display unit 260 is the display mode of the terminal device 200 and is used to present an interface and realize human-computer interaction.
  • the display unit 260 may include a display panel 261.
  • the display panel 261 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • the display unit 260 may be used to display the mapped battery power status obtained through the method provided by this application, for example, displaying the battery power, so that the user can obtain the battery usage status of the terminal device in a timely manner. In this way, by displaying the battery power status, the user can be reminded in time to charge the battery or the terminal device is about to shut down, etc.
  • the processor 230 is the control center of the terminal device 200, using various interfaces and lines to connect various components, by running or executing software programs and/or modules stored in the memory 240, and calling the software programs stored in the memory 240.
  • the data in the memory 240 executes various functions of the terminal device 200 and processes data, thereby realizing various services based on the terminal device 200 .
  • the processor 230 can communicate with the fuel gauge hardware circuit to implement the method provided by the embodiment of the present application.
  • the processor 230 may receive relevant parameters of the power source 220 (such as a battery) collected by the fuel gauge hardware circuit.
  • the terminal device 200 also includes a power source 220 (such as a battery) for powering various components.
  • a power source 220 such as a battery
  • the power supply 220 can be logically connected to the processor 230 through a power management system, so that functions such as charging, discharging, and power consumption can be managed through the power management system.
  • the terminal device 200 also includes an audio circuit 270 , a microphone 271 and a speaker 272 , which can provide an audio interface between the user and the terminal device 200 .
  • the audio circuit 270 can be used to convert the audio data into a signal that can be recognized by the speaker 272, and transmit the signal to the speaker 272, and the speaker 272 converts the signal into a sound signal and outputs it.
  • the microphone 271 is used to collect external sound signals (such as human speech or other sounds, etc.), convert the collected external sound signals into signals that the audio circuit 270 can recognize, and send them to the audio circuit 270 .
  • the audio circuit 270 can also be used to convert the signal sent by the microphone 271 into audio data, and then output the audio data to the RF circuit 210 to send to, for example, another terminal device, or output the audio data to the memory 240 for subsequent further processing.
  • the terminal device 200 may also include at least one sensor, camera, etc., which will not be described again here.
  • At least one sensor may include, but is not limited to, a pressure sensor, an air pressure sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a touch sensor, a temperature sensor, etc.
  • the operating system (OS) involved in the embodiment of this application is the most basic system software running on the terminal device 200.
  • the operating system can be HarmonyOS, Android system or IOS system.
  • the software system of the terminal device 200 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • This embodiment of the present application takes an operating system that adopts a layered architecture as an example to illustrate the software architecture of the terminal device 200 .
  • Figure 2 is a software architecture block diagram of a terminal device provided by an embodiment of the present application.
  • the software architecture of the terminal device can be a layered architecture.
  • the software can be divided into several layers, and each layer has clear roles and division of labor.
  • the layers communicate through software interfaces.
  • the operating system is divided into five layers, from top to bottom: application layer, application framework layer (framework, FWK), runtime and system libraries, kernel layer, and hardware layer.
  • the application layer can include a series of application packages. As shown in Figure 2, the application layer can include cameras, settings, skin modules, user interface (UI), third-party applications, etc. Among them, third-party applications can include WLAN, music, calls, Bluetooth, video, etc.
  • UI user interface
  • third-party applications can include WLAN, music, calls, Bluetooth, video, etc.
  • the application can be developed using the Java language and is completed by calling the application programming interface (API) provided by the application framework layer. Developers can operate through the application framework layer. Interact with the bottom layer of the system (such as hardware layer, kernel layer, etc.) to develop your own applications.
  • API application programming interface
  • the application framework layer is mainly a series of services and management systems of the operating system.
  • the application framework layer provides application programming interfaces and programming frameworks for applications in the application layer.
  • the application framework layer includes some predefined functions. As shown in Figure 2, the application framework layer can include a shortcut icon management module, a window manager, a content provider, a phone manager, a view system, a notification manager, a resource manager, etc.
  • the shortcut icon management module is used to manage shortcut icons displayed on terminal devices, such as creating shortcut icons, removing shortcut icons, monitoring whether shortcut icons meet display conditions, etc.
  • a window manager is used to manage window programs.
  • the window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc.
  • Content providers are used to store and retrieve data and make this data accessible to applications. Said data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
  • the phone manager is used to provide communication functions of the terminal device. For example, call status management (including connected, hung up, etc.).
  • the view system includes visual controls, such as controls that display text, controls that display pictures, controls that display power, etc.
  • a view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface including a text message notification icon may include a view for displaying text and a view for displaying pictures.
  • the notification manager allows applications to display notification information in the status bar, which can be used to convey notification-type messages and can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, etc.
  • the notification manager can also be notifications that appear in the status bar at the top of the system in the form of charts or scroll bar text, such as notifications for applications running in the background, or notifications that appear on the screen in the form of conversation windows. For example, text information is prompted in the status bar, a prompt sound is emitted, the terminal device vibrates, and the indicator light flashes, etc.
  • the resource manager provides various resources to applications, such as localized strings, icons, pictures, layout files, video files, etc.
  • the runtime includes core libraries and virtual machines.
  • the runtime is responsible for the scheduling and management of the operating system.
  • the core library contains two parts: one part is the functional functions that need to be called by the Java language, and the other part is the operating system core library.
  • the application layer and application framework layer run in virtual machines.
  • the virtual machine executes the java files of the application layer and application framework layer into binary files.
  • the virtual machine is used to perform object life cycle management, stack management, thread management, security and exception management, and garbage collection and other functions.
  • System libraries can include multiple functional modules. For example: surface manager (surface manager), three-dimensional (3D) graphics processing library (for example: OpenGL ES), two-dimensional (2D) graphics engine (for example: SGL), media libraries (media libraries), etc.
  • surface manager surface manager
  • 3D three-dimensional
  • 2D two-dimensional
  • media libraries media libraries
  • the surface manager is used to manage the display subsystem and provides the fusion of 2D and 3D layers for multiple applications.
  • the 3D graphics processing library is used to implement 3D graphics drawing, image rendering, composition, and layer processing.
  • 2D Graphics Engine is a drawing engine for 2D drawing.
  • a three-dimensional graphics processing library can be used to draw three-dimensional motion trajectory images
  • a 2D graphics engine can be used to draw two-dimensional motion trajectory images.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the kernel layer is the layer between hardware and software.
  • the kernel layer includes at least display driver, camera driver, audio driver, sensor driver, etc.
  • the hardware layer can include various types of sensors, such as acceleration sensors, gravity sensors, touch sensors, etc.
  • the terminal device 200 can run multiple applications at the same time.
  • one application can correspond to one process; for more complex ones, one application can correspond to multiple processes.
  • Each process has a process number (process ID).
  • the hardware structure of the terminal device can be as shown in Figure 1, and the software architecture can be as shown in Figure 2, wherein the software programs and/or modules corresponding to the software architecture in the terminal device can be stored in the memory 240, and the processor 230 Software programs and applications stored in the memory 240 can be run to execute the process of a method for determining a battery charge state provided by an embodiment of the present application.
  • At least one refers to one or more, and “multiple” refers to two or more.
  • “And/or” describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone, where A, B can be singular or plural. The character “/” generally indicates that the related objects are in an “or” relationship. "At least one (item) of the following” or similar expressions thereof refers to any combination of these items, including any combination of single item (items) or plural items (items).
  • At least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c Can be single or multiple.
  • the plurality involved in the embodiments of this application refers to more than or equal to two.
  • terminal equipment In addition, in the embodiments of the present application, “terminal equipment”, “device”, etc. may be used interchangeably, that is, they refer to various devices that can be used to implement the embodiments of the present application.
  • FIG. 3 is a schematic diagram of a hardware structure applicable to a method for determining battery power status provided by an embodiment of the present application.
  • the hardware structure may include a battery 301 (for example, it may be the power supply 220 shown in FIG. 1), a fuel gauge (or also called a "coulomb meter", etc., the fuel gauge is used as an introduction in the following embodiments) circuit 302, and a resistance unit.
  • a battery 301 for example, it may be the power supply 220 shown in FIG. 1
  • a fuel gauge or also called a "coulomb meter", etc., the fuel gauge is used as an introduction in the following embodiments
  • a resistance unit for example, processor 230 and charging port 304 (for example, it can be the communication interface 280 shown in Figure 1).
  • processor 230 and charging port 304 for example, it can be the communication interface 280 shown in Figure 1).
  • the battery 301 can be used to provide energy for the terminal device 200 to ensure normal use of the terminal device 200 .
  • the fuel gauge circuit 302 can be used to sample the voltage across the battery 301, and can also be used to sample the current output by the battery 301 (or the current input to the resistance unit 303); or, according to the actual situation If the scene requires it, it can also be used to sample other types of battery-related data, such as battery usage data.
  • the resistance unit 303 can be used by the fuel gauge circuit 302 to sample current, etc.
  • the processor 230 may be configured to receive sampling data (such as battery voltage, battery current, etc.) from the fuel gauge circuit 302, and based on the sampling data, mapping of voltage and battery power status may be implemented to determine the battery power. status etc.
  • sampling data such as battery voltage, battery current, etc.
  • the charging port 304 can be used to charge the battery 301 to ensure the power storage of the battery 301.
  • the processor 230 included in the terminal device 200 can obtain the battery 301 from the fuel gauge circuit 302, sample the battery 301 and obtain the battery usage data statistically, and then determine the mapping based on the battery usage data. the subsequent battery power status.
  • FIG. 4 is a schematic flowchart of a method for determining battery power status provided by an embodiment of the present application. This method can be applied to terminal equipment and includes at least the following processes:
  • Step 401 Determine battery protection voltage parameters based on battery usage data; the battery usage data is used to reflect the usage status of the battery within a preset time period, and the battery protection voltage parameters are used to calculate the original voltage corresponding to the battery power. Parameters are changed.
  • the battery usage data may include, but is not limited to, one or a combination of the following information: full charge capacity (FCC), first power level when charging starts (also referred to as “FCC” in the embodiment of this application). “Start charging capacity”), the second capacity when charging is stopped (which may also be referred to as “stop charging capacity” in the embodiment of this application), the battery usage time and the number of battery (charge and discharge) cycles.
  • FCC full charge capacity
  • FCC first power level when charging starts
  • Stop charging capacity the second capacity when charging is stopped
  • the battery usage time which may also be referred to as “charge and discharge) cycles.
  • the information contained in the battery usage data may be multiple sets of data obtained statistically within the preset time period.
  • the FCC, starting charging capacity and stopping charging capacity may be multiple sets of data collected within the preset time period. Data obtained from the first charge.
  • the terminal device can collect and count the included batteries to obtain battery usage data.
  • the preset time period can be the time period corresponding to the time from the beginning of collection to the implementation of the method provided in this application, and in the terminal device, the battery usage data can be continuously collected and counted, and the battery usage data obtained based on historical statistics can be continuously collected. The data realizes the provision method of this application.
  • the terminal device can trigger the collection and statistics of battery usage data based on different preset collection instructions; among which, the preset collection instructions can be configured according to actual scenarios.
  • each hardware unit included in the terminal device starts working after detecting and responding to the startup of the terminal device.
  • the collection of battery usage data can be started. For example, when it is detected that the battery 301 is fully charged, FCC data is collected; when it is detected that the battery 301 starts to charge, the starting charging amount is collected; when it is detected that the battery 301 stops charging, the stop charging amount is collected; and, During each charge, the changes in the charge and discharge process are accumulated. If the battery completes a complete charge and discharge cycle, the number of battery cycles is updated; and the battery usage time is collected, which can be the usage time of the battery since it was turned on. Or the usage time after full charging, etc. This application does not limit the statistical method of battery usage time. It can be understood that the processor 230 collects When counting different information of battery usage data, different processes can be used to implement it, or part of the information can be implemented using the same process.
  • the processor 230 may also detect or respond to charging of the terminal device and start collecting and counting battery usage data.
  • the terminal device may also receive and respond to a user operation instruction to enable battery optimization, and start collecting and counting battery usage data.
  • the display interface corresponding to the battery on the display panel 261 of the terminal device may include a battery optimization control for updating the battery power status; for example, the display interface of the terminal device shown in FIG. 5 includes a battery optimization control. Control 510.
  • the terminal device can start executing the method for determining the battery power status provided by the embodiment of the present application to optimize the battery by updating the battery power status. If the user does not turn on the battery optimization control 510 (not shown in FIG. 5 ), the terminal device can use the collected battery power to determine the battery power of the terminal device.
  • the processor 230 can also restart collecting and counting battery usage data. On the one hand, it can reduce the pressure of data storage, and on the other hand, it can also be based on the latest usage data of the battery. , to obtain a more accurate mapped target battery level. It can be understood that if the terminal device replaces the battery, the processor 230 can also restart sampling and counting the battery usage data, and discard the battery usage data collected and stored for the original battery.
  • the terminal device can also receive battery usage data sent from other devices (such as a server).
  • the battery usage data may be obtained by the other device through other means, for example. It can be understood that in the embodiment of the present application, the method of obtaining the battery usage data is not limited.
  • the terminal device may determine the battery protection voltage parameter corresponding to the battery usage data based on a preconfigured first mapping relationship.
  • the preconfigured first mapping relationship may be stored in the memory 240 .
  • the preconfigured first mapping relationship can be used to reflect the corresponding relationship between the values of different battery usage data and the values of different battery protection voltage parameters; or can also be used to reflect the range of different battery usage data. Correspondence with the values/ranges of different battery protection voltage parameters. In this way, after collecting the battery usage data, the terminal device can refer to the first mapping relationship to determine the corresponding battery protection voltage parameter.
  • the preconfigured first mapping relationship may be configured based on multiple sets of experimental data. Thus, a better first mapping relationship can be obtained.
  • the terminal device can also obtain the preconfigured first mapping relationship based on deep learning. For example, the corresponding relationship between multiple sets of battery usage data and battery protection voltage parameters can be obtained in advance through experiments or other methods, and then the multiple sets of battery usage data can be obtained. The set of correspondences are used as training samples for deep learning to obtain the first mapping relationship. It can be understood that the battery protection voltage parameters obtained based on the pre-configured first mapping relationship during use of the terminal device can also be used as training samples for optimizing the deep learning model to improve the accuracy of the first mapping relationship. It should be noted that the implementation of this application does not limit the method of obtaining the preconfigured first mapping relationship. For example, the first mapping relationship may also be automatically generated based on actual business scenarios.
  • the terminal device can also determine the battery protection voltage parameters based on the battery usage data in combination with other parameters.
  • other parameters may be application running information of the terminal device, etc.
  • the battery protection voltage parameters are used to change the original voltage parameters corresponding to the battery power, which can be implemented as changing the original shutdown voltage or the original full charge voltage or other voltages corresponding to the power.
  • the battery protection voltage parameter may include Includes target shutdown voltage parameters that change the original shutdown voltage.
  • the battery protection voltage parameter may include adjusting the target full charge voltage parameter to the original full charge voltage.
  • the battery protection voltage parameter may include a target shutdown voltage parameter and a target full charge voltage parameter.
  • the target protection voltage parameters such as the target shutdown voltage parameter and the target full charge voltage parameter may have different expression forms.
  • the following expressions may be included:
  • the target shutdown voltage parameter can be expressed as an increase of 50 millivolts (mV), or as +50mV; the target full charge voltage parameter can be expressed as a decrease of 100mV, or as -100mV.
  • the target shutdown voltage parameter can be expressed as a 1% increase; the target full charge voltage parameter can be expressed as a 2% increase.
  • the target shutdown voltage parameter may be expressed as 3.3V; it can be understood that the target shutdown voltage parameter may be different from the original shutdown voltage parameter, which may be, for example, 3.2V.
  • the target full charge voltage parameter can be expressed as 4.4V. It can be understood that the target full charge voltage parameter can be different from the original full charge voltage parameter.
  • the original full charge voltage parameter can be, for example, 4.5V.
  • one or more voltage parameters included in the battery protection voltage parameter may be a numerical value, or may also be a numerical range.
  • the target shutdown voltage parameter included in the battery protection voltage parameter may be 3.3V, or may also be 3.25V ⁇ 3.35V.
  • the terminal device collects battery voltage periodically or in response to a collection instruction, if it is determined that the battery voltage belongs to the value range corresponding to the target shutdown voltage parameter, the shutdown of the terminal device can be triggered.
  • Step 402 Determine a second mapping relationship between the actual battery power and the target battery power according to the battery protection voltage parameter.
  • a second mapping relationship corresponding to the battery protection voltage parameter is determined based on a first modeling parameter; the first modeling parameter is used to indicate the corresponding relationship between battery voltage and battery power.
  • SOC target full charge capacity f (V original full charge voltage - ⁇ V reduced voltage )
  • Formula 1-5 can include four forms.
  • SOC target battery power kSOC actual battery power - b is used as an example for introduction. It can be understood that no matter what form is used in Formulas 1-5, the calculated result of the second mapping relationship is consistent.
  • the SOC target full charge capacity can be obtained by formula 1-3, and the SOC target shutdown power can be obtained by formula 1-4; the SOC original full charge capacity is 100%, and the SOC original shutdown capacity is 0%. Therefore, according to the above formula 1-6 and formula 1-7, the k value and the b value can be calculated, and thus the second mapping relationship in formula 1-5 can be obtained.
  • the T 1 represents the relative value of the original full charge voltage adjustment, which can be expressed as a percentage, such as 5%.
  • Formula 2-3 indicates that the target full charge voltage is reduced by 5% compared to the original full charge voltage.
  • the T 2 represents the relative value of the original shutdown voltage adjustment. Assuming it is 7%, Formula 2-4 indicates that the target shutdown voltage has increased by 7% compared with the original shutdown voltage.
  • the first modeling parameter can also be combined with other data information of the battery to reflect the corresponding relationship between battery voltage and battery power; for example, other data information can include but is not limited to: current information and temperature information.
  • the first modeling parameters may also be stored in the memory 240 in advance.
  • the first modeling parameters can be obtained based on multiple sets of experimental data values, and then pre-configured in the terminal device.
  • the terminal device may also determine a second mapping relationship between the actual battery power and the target battery power based on the battery protection voltage parameter in combination with other parameters.
  • other parameters can be battery temperature, battery current and other information.
  • Step 403 Determine the target battery power based on the second mapping relationship and the actual battery power of the battery.
  • the processor 230 can collect the current actual battery power in real time, and calculate the current actual battery power based on the actual battery power and the The second mapping relationship shown in the above formula 1-5 is used to obtain the mapped target battery power.
  • the processor 230 can collect that the actual battery power is 30%, and after mapping, the target battery power is 16%; optionally, if the terminal device is turned on and the battery power is lower than 20%, the power saving mode is automatically turned on.
  • the processor 230 can collect that the actual battery power is 10%, and after mapping, the target battery power is 0%; at this time, the power management system of the terminal device detects that the target battery power is displayed as 0, and can trigger an automatic shutdown. process.
  • obtaining the actual battery power of the battery may be implemented by continuously collecting battery parameters used to determine the actual battery power, and then determining the actual battery power of the battery based on the battery parameters.
  • the battery parameters may be, for example, battery current, battery voltage and other parameters.
  • it can also be implemented to periodically collect the battery parameters, and determine the actual battery power of the battery in the current cycle based on the battery parameters.
  • it can also be implemented to receive and respond to the request instruction to collect the battery parameters, and determine the actual battery power of the battery according to the battery parameters; for example, if there is an application or process requesting to call the battery power, the processor 230
  • the actual battery level of the battery may be obtained in response to the application or process.
  • the mapped target battery power may be transmitted to the display unit 260 for display, so that the user can obtain the mapped target battery power.
  • the processor 230 receives a call request instruction from another application or process to obtain battery power, the mapped target battery power can be fed back to the other application or process to implement the on-device Call handling from other applications or processes.
  • FIG. 6 is another schematic flowchart of a method for determining battery power status provided by an embodiment of the present application. This method can be applied to terminal equipment and includes at least the following processes:
  • Step 401 Determine battery protection voltage parameters based on battery usage data; the battery usage data is used to reflect the usage status of the battery within a preset time period, and the battery protection voltage parameters are used to calculate the original voltage corresponding to the battery power. Parameters are changed.
  • step 401 please refer to the content introduced in the foregoing embodiments, and the description will not be repeated here.
  • Step 402' Determine the corresponding relationship between the actual battery voltage and the target battery power according to the battery protection voltage parameter.
  • the first modeling parameter is switched to a second modeling parameter; the first modeling parameter is used to indicate the original corresponding relationship between battery voltage and battery power, and the third modeling parameter is used to indicate the original corresponding relationship between battery voltage and battery power.
  • the second modeling parameter is used to indicate the target correspondence between battery voltage and battery power.
  • the terminal device determines the battery protection voltage parameter based on the collected battery usage data, it can be understood that the corresponding relationship between the original battery voltage and the original battery power indicated by the first modeling parameter is no longer applicable.
  • the second modeling parameter used by the terminal device may be determined according to the battery protection voltage parameter.
  • the battery protection voltage parameters include but are not limited to one or a combination of shutdown voltage target parameters and full charge voltage target parameters.
  • the processor 230 can find an appropriate second modeling from a pre-stored third mapping relationship based on the shutdown voltage target parameter. parameter.
  • the preconfigured third mapping relationship can be used to reflect the corresponding relationship between the values of different battery protection voltage parameters and different modeling parameters; or can also be used to reflect the range of different battery protection voltage parameters and different Correspondence between modeling parameters.
  • a variety of different modeling parameters can be pre-configured in the terminal device, for example, a total of five modeling parameters from the first to the fifth modeling parameters are pre-stored.
  • One or more parameters included in the battery protection voltage parameter may be a parameter value or a parameter range.
  • the preconfigured third mapping relationship may be stored in the memory 240 .
  • Step 403' Determine the target battery power based on the corresponding relationship and the actual battery voltage of the battery.
  • one or a combination of battery data such as battery voltage data, current data, current integration data, etc. can be collected through the fuel gauge circuit 302 shown in Figure 3, and the battery can be calculated based on the second modeling parameters. target battery level. It can be understood that the corresponding relationships between the battery voltage and the battery power respectively indicated based on the first modeling parameter and the second modeling parameter are different. Therefore, when the fuel gauge circuit 302 collects the same battery data of the battery, different battery power can be obtained.
  • the corresponding battery protection voltage parameters can be set according to the battery usage, and then the mapping relationship between battery voltage and battery power can be changed to determine the mapping the subsequent battery power status.
  • the mapping relationship between battery voltage and battery power can be realized by calculating the mapping between the target battery power and the actual battery power; the mapping relationship between the battery voltage and the battery power can also be changed, so that the mapping relationship between the battery voltage and the battery power can be realized. Map to get the battery level.
  • mapping the target battery power can not only reflect the actual battery power of the battery, but also the voltage of the battery, so that when the battery voltage is low, a lower target battery power can be mapped, which can promptly remind the user to charge. And prevent the battery from being in a low voltage state for a longer period of time. Therefore, through dynamic mapping based on battery voltage and battery power, the battery can be better prevented from operating in a dangerous voltage range for a long time.
  • silicon anode batteries have relatively unstable performance in the low voltage range, so when using silicon anode batteries The battery shutdown voltage can be raised; or if there are batteries made of other materials in the future that have poor performance in other voltage ranges (such as high-voltage ranges), the battery can be protected by reducing the battery's full charge voltage and delaying battery life.
  • the present application also provides a terminal device, which includes multiple functional modules; the multiple functional modules interact to realize the functions performed by the terminal device in the methods described in the embodiments of the present application.
  • the multiple functional modules can be implemented based on software, hardware, or a combination of software and hardware, and the multiple functional modules can be arbitrarily combined or divided based on specific implementation.
  • FIG. 7 is a schematic structural diagram of a device for determining battery charge status provided by an embodiment of the present application.
  • the device may include: a collection module 701, a processing module 702, and a transceiver module 703.
  • the collection module 701 can be used to collect battery usage data, etc.
  • the processing module 702 can be used to perform processing of the battery protection voltage parameters introduced in the previous embodiments, or the second mapping relationship, or the target battery power, etc.
  • the transceiver module 703 can be used to receive data such as real-time battery power collected by other hardware units.
  • the specific functions that can be implemented by each module can be combined with the content of the embodiments introduced in the aforementioned Figures 4 to 6.
  • this application also provides a terminal device.
  • the terminal device includes at least one processor and at least one memory. Computer program instructions are stored in the at least one memory.
  • the terminal device is running, the at least one processing
  • the server performs the functions performed by the terminal device in each method described in the embodiments of this application. For example, steps 401 to 403 performed by the terminal device in the embodiment shown in FIG. 4 are performed, or steps 401 to 403' performed by the terminal device in the embodiment shown in FIG. 6 are performed.
  • the computer program product includes: a computer program (which can also be called a code, or an instruction).
  • a computer program which can also be called a code, or an instruction.
  • the computer program When the computer program is run, it causes the computer to execute the steps described in the embodiments of this application. Each method.
  • the present application also provides a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a computer, the computer is caused to execute the embodiments of the present application. Each method is described.
  • this application also provides a chip, which is used to read the computer program stored in the memory and implement the methods described in the embodiments of this application.
  • this application provides a chip system.
  • the chip system includes a processor and is used to support a computer device to implement the methods described in the embodiments of this application.
  • the chip system further includes a memory, and the memory is used to store necessary programs and data of the computer device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects.
  • the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes of the flowchart and/or a block or blocks of the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)
  • Secondary Cells (AREA)

Abstract

本申请涉及终端设备领域,公开了一种电池电量状态的确定方法,以实现基于电池使用数据进行映射,得到映射后的目标电池电量,从而可以增强电池的稳定性,进而保护电池。该方法中,根据电池使用数据确定电池保护电压参数;所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更;根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系;基于所述第二映射关系和所述电池的实际电池电量,确定所述目标电池电量。或者,根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系;基于所述对应关系和所述电池的实际电池电压,确定所述目标电池电量。

Description

一种电池电量状态的确定方法
相关申请的交叉引用
本申请要求在2022年04月27日提交中华人民共和国知识产权局、申请号为202210457988.9、申请名称为“一种电池电量状态的确定方法”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及终端设备领域,尤其涉及一种电池电量状态的确定方法。
背景技术
随着终端设备在用户日常生活中的应用场景日益广泛和重要,对于提升终端设备的电池存储容量的需求愈发迫切。除了在机身结构上考虑增大电池的空间,还可以通过不同的电池制备手段,以提升电池存储容量。
现在大多类型的终端设备采用的电池制备手段为将石墨作为电池负极材料,具有性能稳定的特性。另一种电池制备手段为将硅作为电池负极材料,硅负极电池相比石墨负极电池,在同等条件下可具有更大的电池存储容量。然而,目前缺少对硅负极电池的控制方式。
发明内容
本申请实施例提供一种电池电量状态的确定方法,用以实现基于电池使用数据进行映射,得到映射后的目标电池电量,从而可以实现通过目标电池电量不仅可以反映电池的剩余电量,还可以反映电池使用状态,因此可以增强电池的稳定性,进而保护电池。
第一方面,本申请实施例提供了一种电池电量状态的确定方法。该方法包括:根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更;根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系;基于所述第二映射关系和所述电池的实际电池电量,确定所述目标电池电量。
该方法中,通过计算目标电池电量和实际电池电量的映射方式来实现电池电压到电池电量的映射。因此,映射得到目标电池电量不仅可以反映电池的实际电池电量,还可反映电池的电压情况,从而可实现在电池电压较低时,映射得到较低的目标电池电量,可以及时地提醒用户进行充电以及避免电池更长时间的处于低压状态。因此,通过基于电池电压和电池电量的动态映射,可以较好地避免电池长时间工作在危险电压范围,例如硅负极电池在低压范围内,具有较不稳定的性能,因此在采用硅负极电池时可抬升电池关机电压;或例如若未来存在其他材料电池在其他电压范围(如高压范围),具有较差的性能,可以通过降低电池满充电压来保护电池,延迟电池寿命。
在一种可能的设计中,所述根据电池使用数据确定电池保护电压参数,包括:基于预先配置的第一映射关系,确定所述电池使用数据对应的电池保护电压参数。该设计中,可以通过实验或深度学习等方式,实现对电池使用数据与电池保护电压参数之间的映射关系 的预先配置,进而可以应用预先配置的第一映射关系确定电池保护电压参数,以实现对电池电压的调整,使得电池更大范围地工作在安全电压范围内。
在一种可能的设计中,所述预先配置的第一映射关系可用于反映不同的电池使用数据的数值与不同的电池保护电压参数的数值之间的对应关系;或者,所述预先配置的第一映射关系还可用于反映不同的电池使用数据的范围与不同的电池保护电压参数的数值或范围的对应关系。该设计中,所述预先配置的第一映射关系可以为数值与数值的对应、或数值与范围的对应、或范围与范围的对应,实施时通过不同的映射方式,可以适配不同应用场景下的各种需求,例如精度需求等。
在一种可能的设计中,所述根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系,包括:基于第一建模参数,确定所述电池保护电压参数对应的第二映射关系;所述第一建模参数用于指示电池电压和电池电量的对应关系。该设计中,可以预先对电池电压与电池电量的映射进行建模,进而可以应用第一建模参数确定原始电池电压与原始电池电量之间的对应关系,以及目标电池电压与目标电池电量之间的对应关系,因此可以通过两种对应关系,进一步确定实际电池电量和目标电池电量之间的映射关系,从而可以实现确定映射之后的目标电池电量。
在一种可能的设计中,所述电池使用数据包括以下信息中的一种或多种:充满电容量、开始充电时的第一电量、停止充电时的第二电量、电池使用时长、电池循环次数。该设计中,电池使用数据可以获取电池充电相关的数据,也可以获取电池使用的相关数据等,从而可以分析得到电池的使用习惯等。例如确定用户的充电习惯,若用户习惯于使用电池到较低电量才开始充电,由于电池处于较低电压时,可能存在性能不稳定的问题,因此可以通过抬升关机电压,来实现通过映射后的目标电池电量,避免用户长时间使用处于低压的电池。
在一种可能的设计中,所述根据电池使用数据确定电池保护电压参数之前,所述方法还包括:接收并响应于预设采集指令,采集并统计所述电池使用数据;其中,所述预设采集指令包括但不限于:检测到终端设备的开机;或者,检测到终端设备的充电;或者,接收用户开启用于电池优化的用户操作指令。该设计中,根据实际场景需求,可以设置多种获取电池使用数据的实现方式。
在一种可能的设计中,所述电池保护电压参数包括但不限于以下参数中的至少一种:用于对原始电压参数中包含的原始关机电压进行变更得到的目标关机电压;用于对原始电压参数中包含的原始满充电压进行变更得到的目标满充电压。该设计中,通过调整关机电压、满充电压中的一种或组合,可以实现对电池工作电压范围的调整,避免电池长时间处于工作不稳定的电压范围内。
在一种可能的设计中,所述电池保护电压参数通过但不限于以下形式中的一种指示:用于指示变更值的绝对值;用于指示变更比例的相对值;用于指示变更之后得到的目标值。
在一种可能的设计中,获取所述电池的实际电池电量,包括:持续采集用于确定所述实际电池电量的电池参数,或者周期性采集所述电池参数,或者接收并响应于请求指令采集所述电池参数;根据所述电池参数确定所述实际电池电量。
第二方面,本申请实施例还提供一种电池电量状态的确定方法。该方法中,根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的一个或多个电池原始电压进行 变更;根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系;基于所述对应关系和所述电池的实际电池电压,确定所述目标电池电量。
该方法中,通过变更电池电压和电池电量之间的映射关系,从而可以实现对基于电池电压映射得到电池电量。因此,映射得到目标电池电量不仅可以反映电池的实际电池电量,还可反映电池的电压情况,从而可实现在电池电压较低时,映射得到较低的目标电池电量,可以及时地提醒用户进行充电以及避免电池更长时间的处于低压状态。因此,通过基于电池电压和电池电量的动态映射,可以较好地避免电池长时间工作在危险电压范围,例如硅负极电池在低压范围内,具有较不稳定的性能,因此在采用硅负极电池时可抬升电池关机电压;或例如若未来存在其他材料电池在其他电压范围(如高压范围),具有较差的性能,可以通过降低电池满充电压来保护电池,延迟电池寿命。
在一种可能的设计中,所述根据电池使用数据确定电池保护电压参数,包括:基于预先配置的第一映射关系,确定所述电池使用数据对应的电池保护电压参数。
在一种可能的设计中,所述预先配置的第一映射关系用于反映不同的电池使用数据的数值与不同的电池保护电压参数的数值之间的对应关系;或者,所述预先配置的第一映射关系用于反映不同的电池使用数据的范围与不同的电池保护电压参数的数值或范围的对应关系。
在一种可能的设计中,所述根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系,包括:基于预先配置的第三映射关系,将第一建模参数切换为第二建模参数;所述第一建模参数用于指示电池电压和电池电量的原始对应关系,所述第二建模参数用于指示电池电压和电池电量的目标对应关系。该设计中,可以通过实验或深度学习等方式,实现对电池保护电压参数与建模参数之间的映射关系的预先配置,例如可以预先存储不同电池保护电压参数对应的不同建模参数,从而可以实现在不同电池保护电压参数时,切换使用不同建模参数,进而可以得到合适的电池电压和电池电量的对应关系,以实现对电池电压的调整,使得电池更大范围地工作在安全电压内。
在一种可能的设计中,所述电池使用数据包括但不限于以下信息中的一种或多种:充满电容量、开始充电时的第一电量、停止充电时的第二电量、电池使用时长、电池循环次数。
在一种可能的设计中,所述根据电池使用数据确定电池保护电压参数之前,所述方法还包括:接收并响应于预设采集指令,采集并统计所述电池使用数据;其中,所述预设采集指令包括但不限于:检测到终端设备的开机;或者,检测到终端设备的充电;或者,接收用户开启用于电池优化的用户操作指令。
在一种可能的设计中,所述电池保护电压参数包括以下参数中的至少一种:用于对原始电压参数中包含的原始关机电压进行变更得到的目标关机电压;用于对原始电压参数中包含的原始满充电压进行变更得到的目标满充电压。
在一种可能的设计中,所述电池保护电压参数通过但不限于以下形式中的一种指示:用于指示变更值的绝对值;用于指示变更比例的相对值;用于指示变更之后得到的目标值。
在一种可能的设计中,获取所述电池的实际电池电量,包括:持续采集用于确定所述实际电池电量的电池参数,或者周期性采集所述电池参数,或者接收并响应于请求指令采集所述电池参数;根据所述电池参数确定所述实际电池电量。
第三方面,本申请提供一种终端设备,所述终端设备包括多个功能模块;所述多个功 能模块相互作用,实现上述任一方面及其各实施方式中终端设备所执行的方法。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。例如,本申请实施例中,所述多个功能模块可以包括采集模块、处理模块和收发模块等,所述采集模块可用于采集电池使用数据,所述处理模块可用于执行本申请所涉及的电池电量状态的确定,所述收发模块可用于接收硬件单元获取的实际电池电量等。
第四方面,本申请提供一种终端设备,包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述终端设备运行时,所述至少一个处理器执行上述任一方面及其各实施方式中终端设备执行的方法。
第五方面,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行上述任一方面及其各可能的设计终端设备执行的方法。
第六方面,本申请提供了一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行上述任一方面及其各可能的设计终端设备的方法。
第七方面,本申请实施例还提供一种终端设备上的图形用户界面,该终端设备具有显示屏、一个或多个存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述一个或多个存储器中的一个或多个计算机程序,所述图形用户界面包括所述终端设备执行上述任一方面及其各可能的设计时显示的图形用户界面。例如,终端设备在确定映射后的目标电池电量之后,可以将所述目标电池电量显示在所述图形用户界面上,比如右上角位置处。
第八方面,本申请还提供一种芯片,所述芯片用于读取存储器中存储的计算机程序,执行上述任一方面及其各可能的设计终端设备执行的方法。
第九方面,本申请还提供一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现上述任一方面及其各可能的设计终端设备执行的方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统可以由芯片构成,也可以包含芯片和其他分立器件。
上述第二方面至第九方面中任一方面及其可能的设计的有益效果请具体参阅上述第一方面中各种可能的设计的有益效果,在此不再赘述。
附图说明
图1为本申请实施例提供的一种可能的终端设备的硬件结构示意图;
图2为本申请实施例提供的一种终端设备的软件架构框图;
图3为本申请实施例提供的一种电池电量状态的确定方法适用的硬件结构示意图;
图4为本申请实施例提供的一种电池电量状态的确定方法的流程示意图;
图5为本申请实施例提供的一种终端设备的显示界面示意图;
图6为本申请实施例提供的一种电池电量状态的确定方法的另一流程示意图;
图7为本申请实施例提供的一种电池电量状态的确定装置的结构示意图。
具体实施方式
下面将结合附图,对本申请实施例进行详细描述。
本申请实施例提供的技术方案可以应用于终端设备领域。终端设备通常需要电池来支持设备的正常使用,因此如何增加终端设备的电池存储容量具有十分重要的研究意义。一方面,可以考虑在终端设备中为电池配置更大的放置空间,以达到通过增大电池的体积来增加电池存储容量,然而鉴于终端设备的硬件结构限制,对电池存储容量的增加是有限的。另一方面,还可以从电池的制备手段方面来进行考虑,通过改进电池的制备方式,以实现相同体积的电池可以具备更大的电池存储容量。
目前终端设备中使用的电池通常为锂离子电池,其中,锂离子电池主要由正极材料、负极材料、电解液、外壳等部分所组成,而主要影响电池存储容量和能量的部分在于电池的正负极材料。凭借石墨具有相对较为稳定且对低压不敏感等特性,当前市场上主流的终端设备一般采用的负极材料为石墨。
在一些示例中,若采用硅作为电池的负极材料,硅负极电池相比于石墨负极电池,在同等条件下可以具有更大的电池存储容量;例如,以电池存储容量为2300毫安时(mAh)的石墨负极电池为例,若将电池的负极材料更换为硅,电池存储容量可增加约140mAh。然而,由于硅负极电池存在放电平台低、低电压时容量衰减增加以及充放电循环时易膨胀等特点,导致硅负极电池无法得到较优的应用。目前的一些研究中,主要考虑采用新的制备方法或者制备材料的混合比例来提升硅负极电池的性能或降低电池膨胀的概率,然而尚未存在较优的制备手段,以使得硅负极电池得到广泛的应用。
有鉴于此,本申请实施例提供一种电池电量状态的确定方法,用以实现对如硅负极电池等电池的控制。本申请实施时,基于采集的一些电池相关使用数据,实现对电池电压数据与电池电量状态的动态映射,进而通过电池电量状态(例如可显示为电量)提供一种新的反映电池电量状态的显示方式。通过该方法,映射后的电池电量状态除了可以反映电池剩余容量的状态,还可以反映电池电压状态。例如,可实现将较低的电池电压,映射为较低的电量,以可触发终端设备的省电模式或提醒用户及时充电等操作;以及,在电池电压低于电压阈值时,可将电池电压映射为无电量的电池状态,以触发终端设备的关机等操作。这样,可防止类硅负极电池等类型的电池较长时间处于低压状态,从而导致电量的快速衰减,避免导致电池膨胀等,以提升电池的稳定性和延长电池的使用寿命等。可以理解,本申请实施例提供的方法可以适用于硅负极电池中,或者还可以适用于未来可能存在的与硅负极电池具有类似特性的其他制备手段的电池,本申请对此不作限定。
可以理解的是,本申请实施例的终端设备可以是诸如手机、平板电脑、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、智能家居设备(例如,智能电视,智慧屏,智能音箱等)、可穿戴设备(例如,手表、头盔、耳机等)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、个人数字助理(personal digital assistant,PDA)等设备。可以理解的是,本申请实施例对终端设备的具体类型不作任何限制。
本申请实施例可以应用到的终端设备,示例性实施例包括但不限于搭载 或者其它操作系统的便携式终端设备。上述便携式终端设备也可以是其它便携式终端设备,诸如具有触敏表面(例如触控面板)的膝上型计算机(Laptop)等。
图1示出了一种可能的终端设备的硬件结构示意图。其中,所述终端设备200包括:射频(radio frequency,RF)电路210、电源220、处理器230、存储器240、输入单元250、显示单元260、音频电路270、通信接口280、以及无线保真(wireless-fidelity,Wi-Fi)模块290等部件。本领域技术人员可以理解,图1中示出的终端设备200的硬件结构并不构成对终端设备200的限定,本申请实施例提供的终端设备200可以包括比图示更多或更少的部件,可以组合两个或更多的部件,或者可以具有不同的部件配置。图1中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。
下面结合图1对所述终端设备200的各个构成部件进行具体的介绍:
所述RF电路210可用于通信或通话过程中,数据的接收和发送。特别地,所述RF电路210在接收到基站的下行数据后,发送给所述处理器230处理;另外,将待发送的上行数据发送给基站。通常,所述RF电路210包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(low noise amplifier,LNA)、双工器等。
此外,RF电路210还可以通过无线通信网络和其他设备进行通信。所述无线通信可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(global system of mobile communication,GSM)、通用分组无线服务(general packet radio service,GPRS)、码分多址(code division multiple access,CDMA)、宽带码分多址(wideband code division multiple access,WCDMA)、长期演进(long term evolution,LTE)、电子邮件、短消息服务(short messaging service,SMS)等。
Wi-Fi技术属于短距离无线传输技术,所述终端设备200通过Wi-Fi模块290可以连接访问接入点(access point,AP),从而实现数据网络的访问。所述Wi-Fi模块290可用于通信过程中,数据的接收和发送。
所述终端设备200可以通过所述通信接口280与其他设备实现物理连接。可选的,所述通信接口280与所述其他设备的通信接口通过电缆连接,实现所述终端设备200和其他设备之间的数据传输。
所述终端设备200还能够实现通信业务,与服务侧设备或者其他终端设备实现交互,因此所述终端设备200需要具有数据传输功能,即所述终端设备200内部需要包含通信模块。虽然图1示出了所述RF电路210、所述Wi-Fi模块290、和所述通信接口280等通信模块,但是可以理解的是,所述终端设备200中存在上述部件中的至少一个或者其他用于实现通信的通信模块(如蓝牙模块),以进行数据传输。
例如,当所述终端设备200为手机时,所述终端设备200可以包含所述RF电路210,还可以包含所述Wi-Fi模块290,或可以包含蓝牙模块(图1中未示出);当所述终端设备200为计算机时,所述终端设备200可以包含所述通信接口280,还可以包含所述Wi-Fi模块290,或可以包含蓝牙模块(图1中未示出);当所述终端设备200为平板电脑时,所述终端设备200可以包含所述Wi-Fi模块,或可以包含蓝牙模块(图1中未示出)。
所述存储器240可用于存储软件程序以及模块。所述处理器230通过运行存储在所述存储器240的软件程序以及模块,从而执行所述终端设备200的各种功能应用以及数据处理。可选的,所述存储器240可以主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统(主要包括内核层、系统层、应用程序框架层和应用程序层等各自对应的软件程序或模块)。
此外,所述存储器240可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。本申请实施例中,用于实现本申请实施例所提供的方法的相关计算机程序或预先存储的映射关系(例如预先配置的第一映射关系、或预先存储的第二映射关系、或预先配置的第三映射关系)等信息,可以存储于所述存储器240中。
所述输入单元250可用于接收用户输入的数字或字符信息等多种不同类型的数据对象的编辑操作,以及产生与所述终端设备200的用户设置以及功能控制有关的键信号输入。可选的,输入单元250可包括触控面板251以及其他输入设备252。
其中,所述触控面板251,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在所述触控面板251上或在所述触控面板251附近的操作),并根据预先设定的程序驱动相应的连接装置。
可选的,所述其他输入设备252可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。
所述显示单元260可用于显示由用户输入的信息或提供给用户的信息以及所述终端设备200的各种菜单。所述显示单元260即为所述终端设备200的显示方式,用于呈现界面,实现人机交互。所述显示单元260可以包括显示面板261。可选的,所述显示面板261可以采用液晶显示屏(liquid crystal display,LCD)、有机发光二极管(organic light-emitting diode,OLED)等形式来配置。本申请实施例中,所述显示单元260可用于显示通过本申请提供的方法所得到的映射后的电池电量状态,例如显示电池电量,以便于用户及时地获取终端设备的电池使用状态等。这样,通过对电池电量状态的显示,可以及时提醒用户为电池充电或终端设备即将关机等。
所述处理器230是所述终端设备200的控制中心,利用各种接口和线路连接各个部件,通过运行或执行存储在所述存储器240内的软件程序和/或模块,以及调用存储在所述存储器240内的数据,执行所述终端设备200的各种功能和处理数据,从而实现基于所述终端设备200的多种业务。本申请实施例中,处理器230可与电量计硬件电路进行通信,用来实现本申请实施例提供的方法。例如,处理器230可以接收电量计硬件电路采集到的电源220(比如电池)的相关参数。
所述终端设备200还包括用于给各个部件供电的电源220(比如电池)。可选的,所述电源220可以通过电源管理系统与所述处理器230逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗等功能。
如图1所示,终端设备200还包括音频电路270、麦克风271和扬声器272,可提供用户与终端设备200之间的音频接口。音频电路270可用于将音频数据转换为扬声器272能够识别的信号,并将信号传输到扬声器272,由扬声器272转换为声音信号输出。麦克风271用于收集外部的声音信号(如人说话的声音、或者其它声音等),并将收集的外部的声音信号转换为音频电路270能够识别的信号,发送给音频电路270。音频电路270还可用于将麦克风271发送的信号转换为音频数据,再将音频数据输出至RF电路210以发送给比如另一终端设备,或者将音频数据输出至存储器240以便后续进一步处理。
尽管未示出,所述终端设备200还可以包括至少一种传感器、摄像头等,在此不再赘述。至少一种传感器可以包含但不限于压力传感器、气压传感器、加速度传感器、距离传感器、指纹传感器、触摸传感器、温度传感器等。
本申请实施例涉及的操作系统(operating system,OS),是运行在终端设备200上的最基本的系统软件。以手机为例,操作系统可以是鸿蒙系统(HarmonyOS)或安卓(android)系统或IOS系统。终端设备200的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以采用分层架构的操作系统为例,示例性说明终端设备200的软件架构。
图2为本申请实施例提供的一种终端设备的软件架构框图。如图2所示,终端设备的软件架构可以是分层架构,例如可以将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将操作系统分为五层,从上至下分别为应用程序层,应用程序框架层(framework,FWK),运行时和系统库,内核层,以及硬件层。
应用程序层可以包括一系列应用程序包。如图2所示,应用程序层可以包括相机、设置、皮肤模块、用户界面(user interface,UI)、三方应用程序等。其中,三方应用程序可以包括WLAN、音乐、通话、蓝牙、视频等。
一种可能的实现方式中,应用程序可以使用java语言开发,通过调用应用程序框架层所提供的应用程序编程接口(application programming interface,API)来完成,开发者可以通过应用程序框架层来与操作系统的底层(例如硬件层、内核层等)进行交互,开发自己的应用程序。该应用程序框架层主要是操作系统的一系列的服务和管理系统。
应用程序框架层为应用程序层的应用程序提供应用编程接口和编程框架。应用程序框架层包括一些预定义函数。如图2所示,应用程序框架层可以包括快捷图标管理模块,窗口管理器,内容提供器,电话管理器,视图系统,通知管理器,资源管理器等。
快捷图标管理模块用于对终端设备上显示的快捷图标进行管理,例如创建快捷图标、移除快捷图标、监控快捷图标是否满足显示条件等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
电话管理器用于提供终端设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件,显示电量的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
运行时包括核心库和虚拟机。运行时负责操作系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是操作系统的 核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),三维(3D)图形处理库(例如:OpenGL ES),二维(2D)图形引擎(例如:SGL),媒体库(media libraries)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
在一些实施例中,三维图形处理库可以用于绘制三维的运动轨迹图像,2D图形引擎可以用于绘制二维的运动轨迹图像。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动等。
硬件层可以包括各类传感器,例如加速度传感器、重力传感器、触摸传感器等。
通常终端设备200可以同时运行多个应用程序。较为简单的,一个应用程序可以对应一个进程,较为复杂的,一个应用程序可以对应多个进程。每个进程具备一个进程号(进程ID)。
应理解,终端设备的硬件结构可以如图1所示,软件架构可以如图2所示,其中,终端设备中的软件架构对应的软件程序和/或模块可以存储在存储器240中,处理器230可以运行存储器240中存储的软件程序和应用以执行本申请实施例提供的一种电池电量状态的确定方法的流程。
应理解,本申请实施例中“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A、B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一(项)个”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b或c中的至少一项(个),可以表示:a,b,c,a和b,a和c,b和c,或a、b和c,其中a、b、c可以是单个,也可以是多个。
本申请实施例涉及的多个,是指大于或等于两个。
另外,需要理解的是,在本申请的描述中,“第一”、“第二”等词汇,仅用于区分描述的目的,而不能理解为指示或暗示相对重要性,也不能理解为指示或暗示顺序。
此外,本申请实施例中,“终端设备”、“设备”等可以混用,即指可以用于实现本申请实施例的各种设备。
结合上述图1中对终端设备的硬件结构的介绍,以及图2中对终端设备的软件框架的介绍,下面结合多个实施例和附图,示例性说明终端设备执行本申请实施例中提出的一种电池电量状态的确定方法的软件以及硬件的工作原理。
参阅图3,为本申请实施例提供的一种电池电量状态的确定方法适用的硬件结构示意图。该硬件结构可以包括电池301(例如可以为图1中示出的电源220)、电量计(或还可称为“库仑计”等,以下实施例中采用电量计作为介绍)电路302、电阻单元303、处理器230以及充电口304(例如可以为图1中示出的通信接口280)。其中,
所述电池301,可用于为终端设备200提供能量,以保障终端设备200的正常使用。
所述电量计电路302,可用于对所述电池301两端的电压进行采样,还可用于对所述电池301输出的电流(或输入到所述电阻单元303的电流)进行采样;或者,根据实际场景需要,还可用于对电池相关其他类型的数据进行采样等,例如电池使用数据等。
所述电阻单元303,可用于所述电量计电路302对电流进行采样等。
所述处理器230,可用于接收来自所述电量计电路302的采样数据(例如电池电压、电池电流等数据),基于所述采样数据可以实现电压和电池电量状态的映射,以确定得到电池电量状态等处理。
所述充电口304,可用于为所述电池301进行充电,以保障电池301的电量存储。
基于图3示出的硬件结构示意图,终端设备200包含的处理器230可从所述电量计电路302中获取对电池301进行采样并统计得到电池使用数据,进而可基于所述电池使用数据确定映射后的电池电量状态。
参阅图4,为本申请实施例提供的一种电池电量状态的确定方法的流程示意图。该方法可应用于终端设备,至少包括以下流程:
步骤401、根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更。
其中,所述电池使用数据可以包括但不限于包括以下信息中的一种或组合:充满电容量(full charge capacity,FCC)、开始充电时的第一电量(本申请实施例中也可简称“起充电量”)、停止充电时的第二电量(本申请实施例中也可简称“停充电量”)、电池使用时长和电池(充放电)循环次数。可以理解,所述电池使用数据包含的信息可以为在所述预设时间段内统计得到的多组数据,例如,所述FCC、起充电量和停充电量可以为在预设时间端内多次充电所得到的数据。
可选的,终端设备可以对包含的电池进行采集并统计,得到电池使用数据。此外,预设时间段可以为从采集开始到实现本申请提供方法所对应的时间段,并且在终端设备中,可以持续采集并统计所述电池使用数据,则可以持续根据历史统计得到的电池使用数据实现本申请的提供方法。以及,终端设备可以基于不同的预设采集指令,触发对电池使用数据的采集并统计;其中,预设采集指令可以根据实际场景进行配置等。
一种可选的实施例中,检测并响应于终端设备的开机,终端设备包含的各硬件单元开始工作。本申请实施时,处理器230开始工作之后,可以启动对电池使用数据的采集。例如,检测到电池301充满电时,采集FCC数据;检测到所述电池301开始充电时,采集所述起充电量;检测到所述电池301停止充电时,采集所述停充电量;并且,在每次充电时,累计充放电过程电量的变化情况,若采集到电池完成一次完整的充放电周期,则更新电池循环次数;以及,采集电池的使用时长,可以为电池从开机之后的使用时长或充满电开始之后的使用时长等,本申请不限定电池使用时长的统计方式。可以理解,处理器230采集 并统计电池使用数据的不同信息时,可采用不同进程实现,或者部分信息采用相同的进程。
另一种可选的实施例中,也可以检测或响应于终端设备的充电,处理器230开始启动采集并统计电池使用数据。
又一种可选的实施例中,终端设备还可接收并响应于用户开启电池优化的用户操作指令,启动采集并统计电池使用数据。示例性的,在终端设备的显示面板261上的电池对应的显示界面上,可包含用于更新电池电量状态的电池优化控件;例如,图5示出的终端设备的显示界面中,包含电池优化控件510。如图5所示,若用户开启所述电池优化控件510,则终端设备可启动执行本申请实施例提供的电池电量状态的确定方法,以通过更新电池电量状态进行电池优化。若用户未开启所述电池优化控件510(图5未示出),则终端设备可将采集到的电池电量确定终端设备的电池电量。
此外,在上述各实施例中,在终端设备重新启动之后,处理器230还可以重新开始采集并统计电池使用数据,一方面可以减轻数据存储的压力,另一方面还可以基于电池最新的使用数据,以得到更为准确的映射后的目标电池电量。可以理解,若终端设备更换电池,处理器230也可以重新开始采样并统计电池使用数据,并且丢弃对原电池采集并存储的电池使用数据。
另一可选的,所述终端设备还可以接收来自其他设备(例如服务器)发送的电池使用数据。其中,所述电池使用数据例如可以为所述其他设备通过其他方式获取的。可以理解,本申请实施例中,对获取所述电池使用数据的方式不进行限定。
一种可选的实施方式中,终端设备可以基于预先配置的第一映射关系,确定所述电池使用数据对应的电池保护电压参数。其中,所述预先配置的第一映射关系可以存储在存储器240中。
可选的,所述预先配置的第一映射关系可用于反映不同的电池使用数据的数值与不同的电池保护电压参数的数值之间的对应关系;或还可用于反映不同的电池使用数据的范围与不同的电池保护电压参数的数值/范围的对应关系。这样,终端设备在采集到电池使用数据之后,可参照所述第一映射关系确定对应的电池保护电压参数。
示例性的,所述预先配置的第一映射关系可以为基于多组实验数据进行配置得到的。从而可以得到较优的第一映射关系。另一示例性的,终端设备还可以基于深度学习得到所述预先配置的第一映射关系,例如可以预先通过实验等方式得到多组电池使用数据与电池保护电压参数的对应关系,然后可以将多组对应关系作为训练样本进行深度学习,以得到所述第一映射关系。可以理解,在终端设备使用过程中基于所述预先配置的第一映射关系得到的电池保护电压参数,也可作为优化深度学习模型的训练样本,以提升第一映射关系的准确性。需要说明的是,本申请实施时不限定预先配置的第一映射关系的获取方式,例如所述第一映射关系也可以为根据实际业务场景自动生成的。
另一可选的实施方式中,终端设备还可以根据电池使用数据结合其他参数确定电池保护电压参数。例如,其他参数可以为终端设备的应用程序运行信息等。
本申请实施时,所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更,可实施为对原始关机电压或原始满充电压或其他电量对应的电压进行变更。可选的,若所述电池保护电压参数用于变更所述电池的目标关机电压,所述电池保护电压参数可包 括对原始关机电压进行变更的目标关机电压参数。另一可选的,若所述电池保护电压参数用于变更所述电池的目标满充电压,所述电池保护电压参数可包括对原始满充电压进行目标满充电压参数。又一可选的,若所述电池保护电压参数用于变更所述电池的目标关机电压和目标满充电压,所述电池保护电压参数可包括目标关机电压参数和目标满充电压参数。
其中,所述目标关机电压参数和所述目标满充电压参数等目标保护电压参数可具有不同的表现形式。例如,可包括以下表现形式:
(1)用于指示变更值的绝对值。例如,目标关机电压参数可表示为抬升50毫伏(mV),或者表示为+50mV;目标满充电压参数可表示为降低100mV,或表示为-100mV。
(2)用于指示变更比例的相对值。例如,目标关机电压参数可表示为抬升1%;目标满充电压参数可表示为2%。
(3)用于指示变更之后得到的目标值。例如,目标关机电压参数可表示为3.3V;可以理解目标关机电压参数可与原始关机电压参数不同,原始关机电压参数例如可以为3.2V。目标满充电压参数可表示为4.4V,可以理解目标满充电压参数可与原始满充电压参数不同,原始满充电压参数例如可以为4.5V。
此外,所述电池保护电压参数包含的一个或多个电压参数可以为数值,或者还可以为数值范围。例如所述电池保护电压参数包含的目标关机电压参数可以为3.3V,或者也可以为3.25V~3.35V。示例性的,在终端设备周期性采集或者响应于采集指令采集电池电压时,若确定电池电压属于目标关机电压参数对应的数值范围,则可以触发终端设备的关机。
步骤402、根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系。
一种可选的实施方式中,基于第一建模参数,确定所述电池保护电压参数对应的第二映射关系;所述第一建模参数用于指示电池电压和电池电量的对应关系。示例性的,第一建模参数可表示为SOC=f(V),其中,SOC可表示电池电量,f(V)可表示电池电量对应的电池电压函数。
可选的,以电池保护电压参数的表现形式为前述绝对值形式作为示例,以下通过公式1-1至公式7可确定实际电池电量和目标电池电量之间的第二映射关系,如下:
100%=SOC原始满充电量=f(V原始满充电压)    公式1-1
0%=SOC原始关机电量=f(V原始关机电压)    公式1-2
SOC目标满充电量=f(V原始满充电压-△V降低电压)    公式1-3
SOC目标关机电量=f(V原始关机电压-△V抬升电压)    公式1-4
假设实际电池电量和目标电池电量之间的第二映射关系通过以下公式1-5来表示:
SOC目标电池电量=±kSOC实际电池电量±b   公式1-5
其中,鉴于公式1-5中的k和b为常数,本申请不限定k和b的符号,因此第二映射关系的设定可以具有多种形式,例如公式1-5中可以包括四种形式。本申请实施例中以SOC目标电池电量=kSOC实际电池电量-b作为示例进行介绍。可以理解,无论公式1-5中为何种形式,计算得到的第二映射关系的结果是一致的。
若将公式1-3和公式1-4分别与公式1-5组合,可得到以下公式1-6和公式1-7:
SOC目标满充电量=kSOC原始满充电量-b   公式1-6
SOC目标关机电量=kSOC原始关机电量-b   公式1-7
其中,SOC目标满充电量可以通过公式1-3获得,SOC目标关机电量可以通过公式1-4获得;SOC原始满充电量为100%,SOC原始关机电量为0%。因此,根据以上公式1-6和公式1-7,可以计算得到k值和b值,从而可以得到公式1-5中的第二映射关系。
另一可选的,若所述电池保护电压参数的表现形式为前述内容中介绍到的相对值形式,在公式1-1和公式1-2的基础上,则以上公式1-3和公式1-4可表示为以下公式2-3和公式2-4:
SOC目标满充电量=f(V原始满充电压*(1-T1))   公式2-3
SOC目标关机电量=f(V原始关机电压*(1+T2))   公式2-4
其中,所述T1表示对原始满充电压调整的相对值,例如可以通过百分数来表示,如5%,则公式2-3表示目标满充电压相比于原始满充电压被降低了5%。同理,所述T2表示对原始关机电压调整的相对值,假设为7%,则公式2-4表示目标关机电压相比于原始关机电压抬升了7%。
此外,该实施例中确定实际电池电量和目标电池电量之间的第二映射关系的实现方式可参阅上一实施例,在此不再赘述。
又一可选的,若所述电池保护电压参数的表现形式为前述内容中介绍到的目标值形式,在公式1-1和公式1-2的基础上,则以上公式1-3和公式1-4还可表示为以下公式3-3和公式3-4:
SOC目标满充电量=f(V目标满充电压)   公式3-3
SOC目标关机电量=f(V目标关机电压)   公式3-4
可以理解,该实施例中确定实际电池电量和目标电池电量之间的第二映射关系的实现方式也可参阅前述实施例,在此也不再赘述。
此外,第一建模参数还可以结合电池的其他数据信息来反映电池电压和电池电量的对应关系;例如其他数据信息可以包括但不限于:电流信息、温度信息。
其中,所述第一建模参数也可以预先存储在存储器240中。示例性的,第一建模参数可以为基于多组实验数据值得到的,然后预先配置在终端设备中。
另一可选的实施方式中,终端设备还可以根据所述电池保护电压参数结合其他参数,确定实际电池电量和目标电池电量的第二映射关系。例如,其他参数可以为电池温度、电池电流等信息。
步骤403、基于所述第二映射关系和所述电池的实际电池电量,确定所述目标电池电量。
可选的,处理器230可实时采集得到当前的实际电池电量,并根据实际电池电量和上 述公式1-5示出的第二映射关系得到映射后的目标电池电量。例如,处理器230可采集到实际电池电量为30%,经过映射之后得到目标电池电量为16%;可选的,若终端设备开启了电池电量低于20%自动开启省电模式。又例如,处理器230可采集到实际电池电量为10%,经过映射之后得到目标电池电量为0%;此时,终端设备的电源管理系统检测到目标电池电量显示为0,则可触发自动关机流程。
需要说明的是,本申请实施时,获取所述电池的实际电池电量可实施为持续采集用于确定所述实际电池电量的电池参数,然后根据所述电池参数确定所述电池的实际电池电量。其中,所述电池参数例如可以为电池电流、电池电压等参数。或者,还可实施为周期性采集所述电池参数,根据所述电池参数确定所述电池在当前周期的实际电池电量。又或者,还可实施为接收并响应于请求指令采集所述电池参数,根据所述电池参数确定所述电池的实际电池电量;例如,若存在应用程序或进程请求调用电池电量,则处理器230可以响应于所述应用程序或进程获取所述电池的实际电池电量。
此外,可选的,处理器230确定映射后的所述目标电池电量之后,可将映射后的所述目标电池电量传输给显示单元260进行显示,以使用户获取到映射后的目标电池电量。另一可选的,若处理器230接收到其他应用程序或进程获取电池电量的调用请求指令,可以将映射后的所述目标电池电量反馈给所述其他应用程序或进程,以实现终端设备上其他应用程序或进程的调用处理。
参阅图6,为本申请实施例提供的一种电池电量状态的确定方法的另一流程示意图。该方法可应用于终端设备,至少包括以下流程:
步骤401、根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更。
其中,步骤401的实现过程可参阅前述实施方式中介绍的内容,在此不再重复说明。
步骤402’、根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系。
可选的,基于预先配置的第三映射关系,将第一建模参数切换为第二建模参数;所述第一建模参数用于指示电池电压和电池电量的原始对应关系,所述第二建模参数用于指示电池电压和电池电量的目标对应关系。
其中,假设第一建模参数可表示为SOC=f1(V),其中,SOC可表示电池电量,f1(V)表示电池电量对应的第一电池电压函数。
示例性的,终端设备若基于采集到的电池使用数据,确定电池保护电压参数,可以理解,所述第一建模参数指示的原始电池电压和原始电池电量的对应关系已经不再适用,本申请实施时可根据所述电池保护电压参数,确定终端设备使用的第二建模参数。例如,第二建模参数可表示为SOC=f2(V),其中,SOC可表示电池电量,f2(V)表示电池电量对应的第二电池电压函数。
可选的,所述电池保护电压参数包括但不限于关机电压目标参数、满充电压目标参数中的一种或组合。以所述电池保护电压参数中包括所述关机电压目标参数作为示例,处理器230可以基于所述关机电压目标参数从预先存储的第三映射关系中查到合适的第二建模 参数。其中,所述预先配置的第三映射关系可用于反映不同的电池保护电压参数的数值与不同的建模参数之间的对应关系;或还可用于反映不同的电池保护电压参数的范围与不同的建模参数之间的对应关系。需要说明的是,终端设备中可预先配置多种不同的建模参数,例如预先存储第一建模参数~第五建模参数共五种。其中,所述电池保护电压参数包括的一个或多个参数可以为参数值,也可以为参数范围。
其中,所述预先配置的第三映射关系可以存储在存储器240中。
步骤403’、基于所述对应关系和所述电池的实际电池电压,确定所述目标电池电量。
示例性的,通过图3中示出的电量计电路302可以采集电池的电压数据、电流数据、电流积分数据等电池数据中的一种或组合,基于所述第二建模参数可以计算得到电池的目标电池电量。可以理解,基于第一建模参数和第二建模参数分别指示的电池电压和电池电量的对应关系不同,因此在电量计电路302采集到电池相同的电池数据时,可以得到不同的电池电量。
通过本申请提供的方法,基于采集到的电池使用数据,为了保护电池,可根据电池的使用情况,设置对应的电池保护电压参数,进而变更电池电压和电池电量之间的映射关系,以确定映射后的电池电量状态。该方法中,不仅可以通过计算目标电池电量和实际电池电量的映射方式来实现电池电压到电池电量的映射;还可以通过变更电池电压和电池电量之间的映射关系,从而可以实现对基于电池电压映射得到电池电量。
因此,映射得到目标电池电量不仅可以反映电池的实际电池电量,还可反映电池的电压情况,从而可实现在电池电压较低时,映射得到较低的目标电池电量,可以及时地提醒用户进行充电以及避免电池更长时间的处于低压状态。因此,通过基于电池电压和电池电量的动态映射,可以较好地避免电池长时间工作在危险电压范围,例如硅负极电池在低压范围内,具有较不稳定的性能,因此在采用硅负极电池时可抬升电池关机电压;或例如若未来存在其他材料电池在其他电压范围(如高压范围),具有较差的性能,可以通过降低电池满充电压来保护电池,延迟电池寿命。
基于以上实施例,本申请还提供一种终端设备,所述终端设备包括多个功能模块;所述多个功能模块相互作用,实现本申请实施例所描述的各方法中终端设备所执行的功能。所述多个功能模块可以基于软件、硬件或软件和硬件的结合实现,且所述多个功能模块可以基于具体实现进行任意组合或分割。示例性的,参阅图7,为本申请实施例提供的一种电池电量状态的确定装置的结构示意图。该装置可以包括:采集模块701,处理模块702,收发模块703。例如,所述采集模块701可以用于采集电池使用数据等;所述处理模块702可用于执行对前述各实施例中介绍的电池保护电压参数、或第二映射关系、或目标电池电量等的处理;所述收发模块703可用于接收如其他硬件单元采集到的实时电池电量等数据。各模块具体可实现的功能可以结合前述图4至图6介绍的实施例内容。
基于以上实施例,本申请还提供一种终端设备,该终端设备包括至少一个处理器和至少一个存储器,所述至少一个存储器中存储计算机程序指令,所述终端设备运行时,所述至少一个处理器执行本申请实施例所描述的各方法中终端设备所执行的功能。如执行图4所示实施例中终端设备执行的步骤401至403,或执行图6所示实施例中终端设备执行的步骤401至403’。
基于以上实施例,本申请还提供一种计算机程序产品,计算机程序产品包括:计算机程序(也可以称为代码,或指令),当计算机程序被运行时,使得计算机执行本申请实施例所描述的各方法。
基于以上实施例,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机程序,当所述计算机程序被计算机执行时,使得所述计算机执行本申请实施例所描述的各方法。
基于以上实施例,本申请还提供了一种芯片,所述芯片用于读取存储器中存储的计算机程序,实现本申请实施例所描述的各方法。
基于以上实施例,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持计算机装置实现本申请实施例所描述的各方法。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器用于保存该计算机装置必要的程序和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的保护范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。

Claims (15)

  1. 一种电池电量状态的确定方法,其特征在于,包括:
    根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的原始电压参数进行变更;
    根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系;
    基于所述第二映射关系和所述电池的实际电池电量,确定所述目标电池电量。
  2. 一种电池电量状态的确定方法,其特征在于,包括:
    根据电池使用数据确定电池保护电压参数;所述电池使用数据用于反映所述电池在预设时间段内的使用状态,所述电池保护电压参数用于对与电池电量对应的一个或多个电池原始电压进行变更;
    根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系;
    基于所述对应关系和所述电池的实际电池电压,确定所述目标电池电量。
  3. 根据权利要求1或2所述的方法,其特征在于,所述根据电池使用数据确定电池保护电压参数,包括:
    基于预先配置的第一映射关系,确定所述电池使用数据对应的电池保护电压参数。
  4. 根据权利要求3所述的方法,其特征在于,所述预先配置的第一映射关系用于反映不同的电池使用数据的数值与不同的电池保护电压参数的数值之间的对应关系;或者,
    所述预先配置的第一映射关系用于反映不同的电池使用数据的范围与不同的电池保护电压参数的数值或范围的对应关系。
  5. 根据权利要求1所述的方法,其特征在于,所述根据所述电池保护电压参数,确定实际电池电量和目标电池电量的第二映射关系,包括:
    基于第一建模参数,确定所述电池保护电压参数对应的第二映射关系;所述第一建模参数用于指示电池电压和电池电量的对应关系。
  6. 根据权利要求2所述的方法,其特征在于,所述根据所述电池保护电压参数,确定实际电池电压和目标电池电量的对应关系,包括:
    基于预先配置的第三映射关系,将第一建模参数切换为第二建模参数;所述第一建模参数用于指示电池电压和电池电量的原始对应关系,所述第二建模参数用于指示电池电压和电池电量的目标对应关系。
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,所述电池使用数据包括以下信息中的一种或多种:
    充满电容量FCC、开始充电时的第一电量、停止充电时的第二电量、电池使用时长、电池循环次数。
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述根据电池使用数据确定电池保护电压参数之前,所述方法还包括:
    接收并响应于预设采集指令,采集并统计所述电池使用数据;
    其中,所述预设采集指令包括:检测到终端设备的开机;或者,检测到终端设备的充电;或者,接收用户开启用于电池优化的用户操作指令。
  9. 根据权利要求1至8中任一项所述的方法,其特征在于,所述电池保护电压参数包括以下参数中的至少一种:
    用于对原始电压参数中包含的原始关机电压进行变更得到的目标关机电压;
    用于对原始电压参数中包含的原始满充电压进行变更得到的目标满充电压。
  10. 根据权利要求1至9中任一项所述的方法,其特征在于,所述电池保护电压参数通过以下形式中的一种指示:
    用于指示变更值的绝对值;
    用于指示变更比例的相对值;
    用于指示变更之后得到的目标值。
  11. 根据权利要求1所述的方法,其特征在于,获取所述电池的实际电池电量,包括:
    持续采集用于确定所述实际电池电量的电池参数,或者周期性采集所述电池参数,或者接收并响应于请求指令采集所述电池参数;
    根据所述电池参数确定所述实际电池电量。
  12. 一种终端设备,其特征在于,包括至少一个处理器,所述至少一个处理器与至少一个存储器耦合,所述至少一个处理器用于读取所述至少一个存储器所存储的计算机程序,以执行如权利要求1至11中任一项所述的方法。
  13. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行如权利要求1至11中任一项所述的方法。
  14. 一种包含指令的计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1至11中任一项所述的方法。
  15. 一种终端设备上的图形用户界面,其特征在于,所述终端设备具有显示屏、一个或多个存储器、以及一个或多个处理器,所述一个或多个处理器用于执行存储在所述一个或多个存储器中的一个或多个计算机程序,所述图形用户界面包括所述终端设备执行如权利要求1至11中任一项所述的方法时显示的图形用户界面。
PCT/CN2023/088942 2022-04-27 2023-04-18 一种电池电量状态的确定方法 WO2023207671A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210457988.9A CN117007991A (zh) 2022-04-27 2022-04-27 一种电池电量状态的确定方法
CN202210457988.9 2022-04-27

Publications (1)

Publication Number Publication Date
WO2023207671A1 true WO2023207671A1 (zh) 2023-11-02

Family

ID=88517603

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/088942 WO2023207671A1 (zh) 2022-04-27 2023-04-18 一种电池电量状态的确定方法

Country Status (2)

Country Link
CN (1) CN117007991A (zh)
WO (1) WO2023207671A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120112754A1 (en) * 2010-11-10 2012-05-10 Denso Corporation Apparatus quantifying state-of-charge of vehicle-mounted rechargeable battery
CN105277909A (zh) * 2015-11-10 2016-01-27 湖南南车时代电动汽车股份有限公司 混合动力功率电池soc校准方法
CN109342959A (zh) * 2018-12-11 2019-02-15 桑顿新能源科技有限公司 一种解决电池不同使用容量需求的soc估算方法
CN111602308A (zh) * 2018-06-25 2020-08-28 谷歌有限责任公司 电池状态估计
CN112622693A (zh) * 2020-12-25 2021-04-09 广州橙行智动汽车科技有限公司 一种电池管理方法、装置及车辆

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120112754A1 (en) * 2010-11-10 2012-05-10 Denso Corporation Apparatus quantifying state-of-charge of vehicle-mounted rechargeable battery
CN105277909A (zh) * 2015-11-10 2016-01-27 湖南南车时代电动汽车股份有限公司 混合动力功率电池soc校准方法
CN111602308A (zh) * 2018-06-25 2020-08-28 谷歌有限责任公司 电池状态估计
CN109342959A (zh) * 2018-12-11 2019-02-15 桑顿新能源科技有限公司 一种解决电池不同使用容量需求的soc估算方法
CN112622693A (zh) * 2020-12-25 2021-04-09 广州橙行智动汽车科技有限公司 一种电池管理方法、装置及车辆

Also Published As

Publication number Publication date
CN117007991A (zh) 2023-11-07

Similar Documents

Publication Publication Date Title
RU2677595C2 (ru) Способ и аппаратура для отображения интерфейса приложения и электронное устройство
US8842133B2 (en) Buffers for display acceleration
EP3678009A1 (en) Copy and pasting method, data processing apparatus, and user device
US11431951B2 (en) Method for displaying dynamic image and terminal
US11088567B2 (en) Brownout avoidance
RU2666634C2 (ru) Области автопрокрутки
CN105283844B (zh) 电子设备和通过电子设备提供电池信息的方法
WO2018032581A1 (zh) 一种应用程序控制方法及装置
EP4196870A1 (en) Animated visual cues indicating the availability of associated content
EP3721327B1 (en) Dynamic interaction adaptation of a digital inking device
KR20150107448A (ko) 태스크 마이그레이션 방법 및 장치
CN106951057A (zh) 应用的控制方法及移动终端
WO2022156600A1 (zh) 缓冲区容量的调整方法、装置、电子设备及可读存储介质
WO2018017373A1 (en) Cascading specialized recognition engines based on a recognition policy
EP4373062A1 (en) Display method, electronic device, and storage medium
CN106650409B (zh) 一种终端控制方法及终端
KR20140090112A (ko) 전자 장치의 페어링 방법 및 장치
US11556158B2 (en) On-the-go (OTG) control and configuration method, mobile terminal, and storage medium
WO2023207671A1 (zh) 一种电池电量状态的确定方法
WO2020206690A1 (zh) 应用清理方法、装置、存储介质及电子设备
CN114816031B (zh) 终端设备的省电方法、终端设备及介质
CN110413912A (zh) 一种内存管理方法、装置及终端
CN107229384A (zh) 消息的显示方法及装置
WO2018129708A1 (en) Determining processor utilization of multiprocessing system
EP4246294A1 (en) Dynamic effect processing method and related apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23795104

Country of ref document: EP

Kind code of ref document: A1