Charging control method and apparatus, and electronic device and storage medium
By adjusting the rated cutoff voltage of the calibration parameters and gradually reducing the charging current, the problem of the charging management module identifying that the actual cutoff voltage is lower than the rated value when the battery is fully charged is solved, which improves the battery capacity and battery life, and ensures the safety of the battery.
Patent Information
- Application Number
- PCT/CN2024/108652
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-08-14
- Filing Date
- 2024-07-30
- Publication Date
- 2025-02-20
AI Technical Summary
The existing charging control technology has accuracy errors when acquiring the battery voltage in the charging management module in the device, resulting in the actual cutoff voltage when identifying the battery full charge, which reduces the actual battery capacity and battery life under the full charge state. Duration.
The rated cutoff voltage is adjusted to the first cutoff voltage by calibration parameters and gradually lower the charging current as the target battery enters the constant voltage charging stage until the charging current is below the current threshold to identify the battery full state.
The battery capacity of the target battery is improved when the battery is fully identified, the battery life time of the target battery is extended, and the battery safety is ensured.
Smart Images

Figure CN2024108652_20022025_PF_FP_ABST
Abstract
Description
Charging control method, device, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on August 14, 2023, with application number 202311028417.4 and application name “A method, device, electronic device and storage medium for charging control”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application belongs to the field of device control technology, and in particular relates to a charging control method, device, electronic device and storage medium. Background Art
[0003] With the continuous advancement of electronic technology, the screens built into electronic devices are getting larger and larger, and the energy consumption of applications installed in mobile terminals, such as games and audio and video applications, is also increasing. To meet the usage requirements of the hardware and software in electronic devices, the batteries built into these devices must have advantages such as large capacity and long battery life. Therefore, how to effectively improve the efficiency of the batteries built into electronic devices has become a key concern for users.
[0004] In existing charging control technology, due to the accuracy error of the charging management module (such as the battery IC chip) in the device when obtaining the battery voltage, the cut-off voltage when identifying that the battery is fully charged is generally lower than the rated cut-off voltage of the battery. For example, when the rated cut-off voltage of the battery is set to 4.4 volts (Volt, V), when the battery voltage reaches 4.377V, the above-mentioned charging management module will recognize that it has reached 4.4V, reached the rated cut-off voltage and entered the constant voltage charging stage, that is, the difference between the actual cut-off voltage measured by the voltage measurement module and the rated cut-off voltage is about 23mV. As a result, when the battery is identified as fully charged, its actual battery capacity still has a certain deviation from the rated maximum capacity, which reduces the actual battery capacity and battery life when the battery is fully charged.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a charging control method, device, electronic device and computer-readable storage medium, which can solve the problem of existing charging control technology. The actual cut-off voltage when the charging management module identifies that the battery is fully charged is generally lower than the rated cut-off voltage of the battery, resulting in the actual battery capacity still having a certain deviation from the rated maximum capacity, thereby reducing the actual battery capacity and battery life when the battery is fully charged.
[0007] In a first aspect, an embodiment of the present application provides a charging control method, including:
[0008] In response to the first charging instruction, charging the target battery;
[0009] The first cut-off voltage is used as the cut-off voltage in the constant-voltage charging stage of the target battery, and the charging current of the target battery is gradually reduced when the target battery enters the constant-voltage charging stage until the charging current is lower than the current threshold; the first cut-off voltage is determined based on the sum of the rated cut-off voltage and the calibration parameter.
[0010] The implementation of the embodiments of the present application has the following beneficial effects: by calibrating the parameters, the rated cut-off voltage is increased to the first cut-off voltage, and then during the process of charging the target battery in the electronic device, the target battery is identified as entering the constant voltage charging stage only when the real-time voltage of the target battery reaches the first cut-off voltage, so that the actual cut-off voltage can be close to the rated cut-off voltage of the target battery, thereby increasing the battery capacity of the target battery when the battery is fully charged, thereby increasing the battery life of the target battery, and taking into account the battery life while ensuring the safety of the battery, thereby improving the user experience.
[0011] In a possible implementation of the first aspect, before charging the target battery in response to the first charging instruction, the method further includes:
[0012] charging the target battery in response to a second charging instruction;
[0013] If it is detected that the target battery is in the constant voltage charging stage, determining the actual cut-off voltage of the target battery in the constant voltage charging stage;
[0014] Calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0015] The rated cut-off voltage is adjusted according to the calibration parameter to obtain the first cut-off voltage.
[0016] In a possible implementation of the first aspect, if it is detected that the target battery is in the constant-voltage charging stage, determining the actual cutoff voltage of the target battery in the constant-voltage charging stage includes:
[0017] If the difference between the first voltage of the target battery and the rated cut-off voltage is less than a preset first deviation threshold, acquiring multiple charging data of the target battery at a preset acquisition cycle through a battery information acquisition module; the charging data includes a real-time current, a second voltage, and a number of cycles corresponding to the charging data;
[0018] Selecting charging data whose real-time current is within a preset current range from the plurality of charging data as target charging data;
[0019] If the first voltage difference between any two second voltages in N consecutive target charging data of the cycle number is less than the second deviation threshold, the actual cut-off voltage is determined according to the N second voltages; wherein N is a positive integer greater than 2.
[0020] In a possible implementation of the first aspect, calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage includes:
[0021] calculating a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0022] Calculating the step frequency according to the second voltage difference and a preset adjustment stride;
[0023] The calibration parameter is obtained according to the adjusted stride and the stride frequency.
[0024] In a possible implementation of the first aspect, before charging the target battery in response to the second charging instruction, the method further includes:
[0025] If a charging operation on a target battery is detected, obtaining a calibration identifier of the target battery;
[0026] If the calibration flag is the first value, an operation of charging the target battery in response to a second charging instruction is executed.
[0027] In a possible implementation of the first aspect, after acquiring a calibration identifier of the target battery if a charging operation on the target battery is detected, the method further includes:
[0028] If the calibration flag is a second bit value, an operation of charging the target battery in response to the first charging instruction is executed.
[0029] In a possible implementation of the first aspect, using the first cutoff voltage as the cutoff voltage in the constant-voltage charging stage of the target battery, and gradually reducing the charging current of the target battery when the target battery enters the constant-voltage charging stage until the charging current is lower than the current threshold, includes:
[0030] If the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any moment during the constant voltage charging stage, the cutoff voltage of the constant voltage charging stage is set to the rated cutoff voltage, and the calibration parameters are re-determined.
[0031] In a second aspect, an embodiment of the present application provides a charging control device, including:
[0032] a first charging response unit, configured to charge the target battery in response to a first charging instruction;
[0033] a cutoff voltage increasing unit, configured to use a first cutoff voltage as a cutoff voltage in a constant-voltage charging phase of a target battery, and gradually reduce a charging current of the target battery when the target battery enters the constant-voltage charging phase until the charging current is lower than a current threshold; the first cutoff voltage is determined based on the sum of a rated cutoff voltage and a calibration parameter.
[0034] In a possible implementation of the second aspect, the apparatus further includes:
[0035] a second charging response unit, configured to charge the target battery in response to a second charging instruction;
[0036] an actual cutoff voltage determining unit, configured to determine an actual cutoff voltage of the target battery in the constant-voltage charging stage if it is detected that the target battery is in the constant-voltage charging stage;
[0037] a calibration parameter calculation unit, configured to calculate the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0038] The first cut-off voltage determining unit is configured to adjust the rated cut-off voltage according to the calibration parameter to obtain the first cut-off voltage.
[0039] In a possible implementation manner of the second aspect, the actual cut-off voltage determining unit includes:
[0040] a charging data acquisition unit, configured to acquire, through a battery information acquisition module, a plurality of charging data of the target battery at a preset acquisition cycle if the difference between the first voltage of the target battery and the rated cut-off voltage is less than a preset first deviation threshold; the charging data including a real-time current, a second voltage, and a number of cycles corresponding to the charging data;
[0041] a target charging data determining unit, configured to select, from the plurality of charging data, charging data in which the real-time current is within a preset current range as target charging data;
[0042] A voltage calculation unit is configured to determine the actual cut-off voltage based on N second voltages if the first voltage difference between any two of the second voltages in N consecutive target charging data of the cycle number is less than a second deviation threshold; wherein N is a positive integer greater than 2.
[0043] In a possible implementation manner of the second aspect, the calibration parameter calculation unit includes:
[0044] a voltage difference calculation unit, configured to calculate a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0045] a step frequency calculation unit, configured to calculate the step frequency according to the second voltage difference and a preset adjustment stride;
[0046] A calibration parameter determination unit is used to obtain the calibration parameter according to the adjustment stride and the step frequency.
[0047] In a possible implementation of the second aspect, the apparatus further includes:
[0048] a calibration identifier determining unit, configured to obtain a calibration identifier of a target battery if a charging operation on the target battery is detected;
[0049] The calibration trigger unit is configured to, if the calibration identifier is a first value, execute an operation of charging the target battery in response to a second charging instruction.
[0050] In a possible implementation of the second aspect, the apparatus further includes:
[0051] The calibration completion charging unit is configured to, if the calibration flag is a second bit value, execute an operation of charging the target battery in response to the first charging instruction.
[0052] In a possible implementation of the second aspect, the cutoff voltage increasing unit includes:
[0053] The abnormal response unit is used to set the cutoff voltage of the constant voltage charging stage to the rated cutoff voltage and redetermine the calibration parameters if the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any time during the constant voltage charging stage.
[0054] In a third aspect, an embodiment of the present application provides an electronic device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the charging control method described in any one of the first aspects above when executing the computer program.
[0055] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and is characterized in that when the computer program is executed by a processor, it implements the charging control method described in any one of the above-mentioned first aspects.
[0056] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product is run on an electronic device, the electronic device executes the charging control method described in any one of the first aspects above.
[0057] In a sixth aspect, an embodiment of the present application provides a chip system, comprising a processor coupled to a memory, wherein the processor executes a computer program stored in the memory to implement the charging control method as described in any one of the first aspects.
[0058] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] FIG1 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0060] FIG2 is a schematic structural diagram of a charging control device provided in one embodiment of the present application;
[0061] FIG3 is a software structure block diagram of an electronic device according to an embodiment of the present application;
[0062] FIG4 is a schematic diagram of various stages of a conventional charging process;
[0063] FIG5 is a flowchart illustrating an implementation of a parameter calibration phase in a charging control method according to an embodiment of the present application;
[0064] FIG6 is a flowchart of a specific implementation of a charging control method provided by the present application before S501;
[0065] FIG7 is a flowchart of a specific implementation of S502 in a charging control method provided by the present application;
[0066] FIG8 is a schematic diagram showing a comparison of the cutoff voltages of target batteries according to an embodiment of the present application;
[0067] FIG9 is a flowchart of a specific implementation of S503 in a charging control method provided by the present application;
[0068] FIG10 is a flowchart illustrating an implementation of a charging control phase in a charging control method according to an embodiment of the present application;
[0069] FIG11 is a structural block diagram of a charging control device provided in an embodiment of the present application;
[0070] FIG12 is a structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] In the following description, specific details such as specific system structures and techniques are provided for purposes of illustration rather than limitation to facilitate a thorough understanding of the embodiments of the present application. However, it will be apparent to those skilled in the art that the present application may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obscuring the description of the present application with unnecessary detail.
[0072] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or collections thereof.
[0073] It will also be understood that the term "and / or" used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
[0074] As used in this specification and the appended claims, the term "if" can be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.
[0075] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.
[0076] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0077] The executable file update method provided in the embodiments of the present application can be applied to electronic devices such as mobile phones, tablet computers, augmented reality (AR) / virtual reality (VR) display devices, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). In particular, the executable file update method can be applied to electronic devices that can implement VR display, or electronic devices with external VR display devices. The embodiments of the present application do not impose any restrictions on the specific type of electronic device.
[0078] FIG1 shows a schematic structural diagram of an electronic device 100 .
[0079] The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, a battery information acquisition module 143, a sensor module 150, a display screen 160, etc. The sensor module 150 may include a pressure sensor 150A, a gyroscope sensor 150B, an air pressure sensor 150C, a magnetic sensor 150D, an acceleration sensor 150E, a distance sensor 150F, a proximity light sensor 150G, a fingerprint sensor 150H, a temperature sensor 150J, a touch sensor 150K, an ambient light sensor 150L, a bone conduction sensor 150M, etc.
[0080] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0081] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a central processing unit (CPU) distributed processing unit (DPU), and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0082] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0083] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0084] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0085] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0086] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0087] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0088] In this embodiment, the charging management module 140 is also used to receive battery information input from the battery information acquisition module 143, and determine the first cut-off voltage of the battery 142 based on the battery information, and store the first cut-off voltage in the internal memory 121, so that in subsequent charging control, the first cut-off voltage can be determined from the internal memory 121, and the battery 142 can be controlled to charge.
[0089] The power management module 141 is used to connect the battery 142, the charging management module 140, the battery information acquisition module 143 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the display 160, the camera, and the wireless communication module. The power management module 141 is also configured with a battery information acquisition module 143, which monitors parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0090] For example, FIG2 illustrates a schematic diagram of the structure of a charging control device provided in one embodiment of the present application. As shown in FIG2 , the charging control device includes a charging management module 140, a battery 142, and a battery information acquisition module 143. The charging management module 140 can be connected to a USB interface via a power supply pin Vbus to receive charging input. The battery information acquisition module 143 can be connected to an analog-to-digital conversion module 144 to collect battery information from the battery 142. Based on the battery information, the first cutoff voltage is determined. The charging management module 140 can then control the battery 142 to execute a charging process based on the first cutoff voltage.
[0091] The electronic device 100 implements the display function through a GPU, a display screen 160, and an application processor. The GPU is a prompt microprocessor that connects the display screen 160 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. It should be noted that the GPU can identify abnormalities in the storage unit associated with the controlled display screen 160 through the update method of the executable file provided in this embodiment. The GPU can transfer the image data to be displayed to the storage unit in the display screen 160 for storage for subsequent display. If the electronic device is a smart phone, the electronic device can be connected to external wearable glasses through a serial interface or a wireless communication interface, and the display function is implemented through the wearable glasses when in VR display mode.
[0092] The display screen 160 is used to display images, videos, etc. The display screen 160 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 160, where N is a positive integer greater than 1. The display screen 160 may include a touch panel and other input devices. The display screen 160 may be associated with one or more storage units, which are used to cache image data displayed on the display screen 160.
[0093] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored on the external memory card. Similarly, the executable file update method in the embodiments of the present application can manage the storage space within the external memory card.
[0094] The internal memory 121 can be used to store computer executable program codes, which include instructions. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121 and / or instructions stored in a memory provided in the processor.
[0095] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0096] FIG3 is a software structure block diagram of the electronic device according to an embodiment of the present application.
[0097] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime system layer, and the kernel layer.
[0098] The application layer can include a series of application packages.
[0099] As shown in FIG3 , the application package may include applications such as camera, calendar, map, WLAN, Bluetooth, music, video, short message, mailbox, WeChat, and WPS.
[0100] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0101] As shown in FIG3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0102] The 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, take screenshots, etc.
[0103] The content provider is used to store and retrieve data and make it accessible to applications. This data can include video, images, audio, incoming and outgoing calls, browsing history and bookmarks, and phone books. In this embodiment, this data can be multimedia data captured by the camera module, such as video and image data.
[0104] The view system includes visual controls, such as controls for displaying text and images. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface containing a text notification icon can include views for displaying text and views for displaying images. In this embodiment, these views can be used to display collected multimedia data.
[0105] The phone manager is used to provide communication functions for electronic devices, such as call status management (including answering, hanging up, etc.).
[0106] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0107] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0108] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0109] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0110] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0111] The system layer can include multiple functional modules, such as the surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), and 2D graphics engine (such as SGL).
[0112] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0113] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0114] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing and layer processing.
[0115] A 2D graphics engine is a drawing engine for 2D drawings.
[0116] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0117] The following describes the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0118] When touch sensor 180K receives a touch operation, the corresponding hardware interrupt is sent to the kernel layer. The kernel layer processes the touch operation into a raw input event (including touch coordinates, touch operation timestamp, and other information). The raw input event is stored in the kernel layer. The application framework layer obtains the raw input event from the kernel layer and identifies the control corresponding to the input event. For example, if the touch operation is a touch single-click operation and the control corresponding to the single-click operation is the control of the camera application icon, the camera application calls the interface of the application framework layer to start the camera application, and then starts the camera driver by calling the kernel layer to capture still images or video through the camera.
[0119] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0120] With the continuous development of electronic technology, the built-in display screens of electronic devices are getting larger and larger, and the software resource consumption of applications installed in electronic devices is also increasing, resulting in higher energy consumption required by hardware and software. Therefore, how to effectively improve the utilization rate of batteries in electronic devices has become the focus of existing battery management technology. The available power of a battery is not only related to its actual battery capacity, but also to the actual charging power during the charging process. If the charging power is close to the battery capacity, the utilization rate of the battery is also higher. The existing battery charging process can be specifically divided into at least three stages, namely the pre-charging stage, the constant current charging node and the constant voltage charging stage. For example, Figure 4 shows a schematic diagram of each stage of the existing charging process. As shown in Figure 4, in the pre-charging stage, the charging input current is constant and the value is small. In this stage, the voltage will rise steadily and the battery capacity will gradually increase. In the constant current charging stage, compared with the pre-charging node, the charging input current is also constant, but the value will increase. The battery voltage will gradually increase with the increase of the battery capacity until the battery voltage reaches the rated cut-off voltage of the battery. At this time, the charging management module of the electronic device will recognize that the current battery capacity is close to the maximum capacity of the battery, and will enter the constant voltage charging node. While keeping the battery voltage unchanged, the charging input current will be gradually reduced until the charging input current reaches the rated cut-off voltage until the battery is fully charged.
[0121] However, when a charging management module within an electronic device, such as a battery IC chip, monitors the battery's real-time voltage, there's a certain degree of precision error between the measured value and the actual voltage value. Consequently, the actual cutoff voltage used to determine that the battery enters the constant-voltage charging phase may be lower than the rated cutoff voltage. For example, when the battery's actual voltage reaches 4.377V, the voltage measurement module will measure 4.4V, reaching the rated cutoff voltage. However, there's a 23mV difference between the actual voltage and the measured voltage reading. Because the actual cutoff voltage is lower than the rated cutoff voltage, the charge management module's recognition of a fully charged battery can differ by 1% to 2% from the battery's actual capacity, reducing the battery's battery life.
[0122] Example 1:
[0123] Therefore, in order to solve the problem that the actual cut-off voltage for determining that the battery enters the constant voltage charging stage may be lower than the rated cut-off voltage of the battery due to accuracy errors in the above-mentioned battery management technology, thereby reducing the battery life, the present application provides a charging control method. The charging control method is specifically applied to electronic devices equipped with batteries. The electronic devices can increase the battery power in the fully charged state by running the charging control method of the embodiment of the present application, thereby achieving the purpose of improving battery life. Among them, the electronic device can be a device with a built-in battery, such as a smart phone, a smart watch, a tablet computer, a laptop computer, and a wireless headset equipped with a charging compartment.
[0124] Specifically, the charging control method provided in one embodiment of the present application includes two phases: a parameter calibration phase and a charging control phase. The parameter calibration phase is used to determine calibration parameters for adjusting the rated cutoff voltage; the charging control phase is used to charge the target battery in the electronic device according to the adjusted rated cutoff voltage (i.e., the first cutoff voltage).
[0125] Phase 1: Parameter calibration phase:
[0126] For example, FIG5 shows a flowchart of the parameter calibration phase in the charging control method provided by an embodiment of the present application. The specific implementation process is described as follows:
[0127] In S501 , in response to a second charging instruction, the target battery is charged.
[0128] In this embodiment, the electronic device can manage the charging of a target battery, either internal or external, via a built-in charging management module. During a parameter calibration phase, the charging management module can generate a second charging instruction. When the electronic device responds to the second charging instruction, in addition to charging the target battery, it also calculates corresponding calibration parameters based on the target battery's real-time voltage during a constant-voltage charging phase. This allows the rated cutoff voltage to be adjusted during subsequent charging using the calibration parameters to increase the target battery's capacity when the battery is fully charged.
[0129] In one possible implementation, the rated cutoff voltage of the target battery can be recorded in a non-volatile storage area within the internal memory of the electronic device, and a first cutoff voltage determined based on the rated cutoff voltage and calibration parameters can also be stored in an erasable storage area. When the electronic device needs to charge the target battery, it detects the storage address corresponding to the first cutoff voltage. If the storage address is empty, it indicates that the target battery is not configured with the corresponding first cutoff voltage. In this case, the second charging instruction is generated. Conversely, if the storage address is not empty, it indicates that the target battery is already configured with the corresponding first cutoff voltage. In this case, the charging control phase is performed and the first charging instruction is generated.
[0130] In one possible implementation, if an electronic device is configured with multiple batteries, such as an internal battery and an external battery, the electronic device can record the first cutoff voltage corresponding to each battery and associate and store the relationship between the battery identifier and the first cutoff voltage. When a battery needs to be charged, the electronic device can determine whether the battery is configured with the corresponding first cutoff voltage based on the association. If not, a second charging instruction is generated; if so, a first charging instruction is generated.
[0131] Furthermore, as another embodiment of the present application, FIG6 shows a specific implementation flow chart before S501 in a charging control method provided by the present application. Referring to FIG6 , the charging control method provided by the present application embodiment further includes S601 to S603 before S501, which are described in detail as follows:
[0132] In S601, if a charging operation on a target battery is detected, a calibration identifier of the target battery is obtained.
[0133] In this embodiment, when a user needs to charge a target battery, they can connect a charging cable to the charging port of an electronic device or place the electronic device on a wireless charging dock. At this time, the electronic device will detect that the user has initiated a charging operation for the target battery. The electronic device can read the value corresponding to the storage address associated with the calibration identifier to determine whether the cutoff voltage of the target battery has been calibrated. If the calibration identifier is in the first position, such as the first position is 0, it indicates that the cutoff voltage of the target battery has not been calibrated, and the operation S602 is executed. Conversely, if the calibration identifier is in the second position, such as the second position is 1, it indicates that the cutoff voltage of the target battery has been calibrated, and the operation S603 is executed.
[0134] In a possible implementation, the default value of the calibration flag is the first value, so that the cutoff voltage of the target battery can be calibrated when the target battery is charged for the first time.
[0135] In one possible implementation, the electronic device can count the number of times the target battery has been charged. If the number of charges exceeds a certain threshold, the calibration flag can be set to the first value. Since the battery capacity may change during use, to balance the safety of the target battery with its battery life, the electronic device can set a charge threshold. If the charge threshold is reached, the first cutoff voltage of the target battery needs to be re-determined.
[0136] In S602, if the calibration flag is the first value, charging the target battery in response to a second charging instruction is executed.
[0137] In this embodiment, if the electronic device detects that the calibration identifier is the first value, it indicates that the cutoff voltage of the target battery needs to be calibrated. Therefore, the process of the parameter calibration phase will be executed, that is, a second charging instruction will be generated so that the electronic device can perform operations S501 to S503 based on the second charging instruction.
[0138] In S603, if the calibration flag is a second bit value, an operation of charging the target battery in response to the first charging instruction is executed.
[0139] In this embodiment, if the electronic device detects that the calibration flag is the second bit value, it means that there is no need to calibrate the cut-off voltage of the target battery, so the process of the charging control stage will be executed, that is, the first charging instruction will be generated, so that the electronic device enters the process of the charging control stage based on the first charging instruction.
[0140] In an embodiment of the present application, a calibration mark is set, and when a charging operation is detected on a target battery, the calibration mark is read to determine whether the first cut-off voltage of the target battery has been calibrated, so as to determine whether the target battery is charged through a parameter calibration process or a charging control process, thereby improving the accuracy of charging management of the target battery and thereby improving the battery life of the target battery.
[0141] In S502 , if it is detected that the target battery is in the constant-voltage charging stage, an actual cut-off voltage of the target battery in the constant-voltage charging stage is determined.
[0142] In this embodiment, when the electronic device charges the target battery in response to the second charging instruction, it can go through the pre-charging stage and the constant current charging stage as shown in Figure 4. The electronic device can obtain the battery information of the target battery during the charging process through the battery information acquisition module with a preset acquisition cycle, and determine the stage of the target battery during the charging process through the battery information.
[0143] In one possible implementation, the electronic device can extract the real-time voltage from the battery information. If the real-time voltage corresponding to multiple consecutive acquisition cycles is the same, or the extreme value is within a preset floating range, it identifies that the target battery is in the constant voltage charging stage and determines the actual cutoff voltage of the target battery during the constant voltage charging stage.
[0144] In this embodiment, the electronic device can obtain battery information of the target battery during the constant-voltage charging phase through the battery information acquisition module. This battery information includes the real-time voltage of the target battery. The electronic device can use the average of the real-time voltages obtained during the constant-voltage charging phase as the actual cutoff voltage of the target battery at the constant-voltage charging node.
[0145] Furthermore, as another embodiment of the present application, FIG7 shows a flowchart of a specific implementation of S502 in a charging control method provided by the present application. Referring to FIG7 , S502 in the charging control method provided by the embodiment of the present application includes S5021 to S5023, which are specifically described as follows:
[0146] In S5021, if the difference between the first voltage of the target battery and the rated cut-off voltage is less than a preset first deviation threshold, a plurality of charging data of the target battery is acquired through the battery information acquisition module at a preset acquisition cycle; the charging data includes real-time current, second voltage and the number of cycles corresponding to the charging data.
[0147] In this embodiment, the electronic device can monitor the real-time voltage of the target battery, that is, the above-mentioned first voltage, through the battery information acquisition module. The electronic device will calculate the difference between the first voltage and the preset rated cut-off voltage of the target battery stored in the memory. If the difference is greater than or equal to the preset first deviation threshold, it indicates that the target battery is in the pre-charging stage or the constant current charging stage at this time; conversely, if the difference is less than the first deviation threshold, it indicates that the target battery is in the constant voltage charging stage at this time, and it is necessary to obtain multiple charging data of the target battery in a preset acquisition cycle to determine the actual cut-off voltage.
[0148] In one possible implementation, the electronic device may identify that the target battery is in the constant voltage charging stage when it detects that the difference between the first voltage obtained in M consecutive monitoring cycles and the rated cut-off voltage is less than a first deviation threshold, thereby improving the accuracy of the constant voltage charging stage identification. The value of M is any positive integer greater than 2, for example, 3. The first deviation threshold may be 50 mV.
[0149] In this embodiment, when the electronic device detects that a target battery has entered the constant-voltage charging phase, it acquires multiple charging data of the target battery at a preset collection period. The charging data includes the target battery's real-time current and second voltage during the constant-voltage charging phase, as well as the number of cycles during which the charging data was collected. For example, the charging data may be represented as: {2A, 4.378V, number of cycles: 3}.
[0150] In one possible implementation, the duration of the above-mentioned acquisition period is shorter than the monitoring period for monitoring the first voltage, so that charging data can be collected more frequently during the constant voltage charging stage to improve the accuracy of determining the actual cut-off voltage. Exemplarily, the above-mentioned acquisition period can be 30 seconds, that is, the charging data of the target battery is obtained every 30 seconds.
[0151] In S5022 , the charging data in which the real-time current is within a preset current range is selected from the plurality of charging data as the target charging data.
[0152] In this embodiment, in order to improve the accuracy of real-time cut-off voltage identification, the electronic device can screen the charging data after obtaining the charging data. At the early stage and the end of the constant voltage charging stage, the voltage of the target battery will fluctuate to a certain extent, and the battery voltage of the target battery cannot be well determined. In this case, the electronic device can determine whether the real-time current in the charging data is within a preset current range to determine whether the charging data is the charging data collected in the middle of the constant voltage charging stage. If so, the charging data is identified as the target charging data; conversely, if the real-time current in a certain charging data is outside the above-mentioned current range, it is identified that the charging data was collected at the end or early stage of the constant voltage charging stage, and is identified as invalid data.
[0153] In one possible implementation, since the charging input current will continue to decrease during the constant voltage charging stage, it has been drafted that the above current range can be within the range of 0.5A to 1.5A. Of course, the current range can be set according to the actual charging input current and is not limited here.
[0154] In S5023, if the first voltage difference between any two second voltages in the N consecutive target charging data of the cycle number is less than the second deviation threshold, the actual cut-off voltage is determined according to the N second voltages; the N is a positive integer greater than 2.
[0155] In this embodiment, after the electronic device filters out the target charging data from the charging data, it can determine the actual cut-off voltage based on the target charging data. Since the actual cut-off voltage to be determined requires the use of a second voltage whose data is stable during the constant voltage charging phase, the electronic device generates a corresponding voltage sequence based on the number of cycles to which each target charging data belongs. The sequence number of each second voltage in the voltage sequence is consistent with the number of cycles to which it belongs, and generates a corresponding selection box based on the required number of stable cycles N. The selection box is used to slide data in the voltage sequence and calculate the first voltage difference between the second voltages selected within the sliding box. If the first voltage difference between each second voltage within the sliding box is less than a preset second deviation threshold, it indicates that the voltage of the target battery has been stable and has fluctuated slightly over N consecutive acquisition cycles. In this case, the actual cut-off voltage can be calculated based on the second voltages of N consecutive acquisition cycles.
[0156] In a possible implementation, the actual cutoff voltage may be the average of the second voltages of N consecutive acquisition cycles; of course, it may also be the median or mode of the second voltages of N consecutive acquisition cycles, which may be set specifically according to actual conditions.
[0157] In an embodiment of the present application, the charging data is screened by real-time current and the second voltage, and then the second voltage with stable data can be selected, which can more accurately determine the voltage value of the constant voltage charging process, thereby improving the accuracy of the real-time cut-off voltage calculation.
[0158] In S503 , the calibration parameter is calculated according to the rated cut-off voltage and the actual cut-off voltage.
[0159] In this embodiment, after calculating the actual cut-off voltage in the constant voltage charging stage, the electronic device can calculate the voltage deviation between the actual cut-off voltage and the rated cut-off voltage pre-set for the target battery. The difference between the two voltages is the downward adjustment range set by the charging management module for safety considerations when charging the target battery, which is the reason for the difference between the battery power of the target battery in a fully charged state and the rated battery capacity of the battery. Based on this, the electronic device can use the difference between the above two as the above-mentioned calibration parameter, thereby increasing the rated cut-off voltage recorded by the charging management module, so that in the subsequent charging process, the actual cut-off voltage of the target battery is consistent with the rated cut-off voltage.
[0160] For example, Figure 8 shows a schematic diagram comparing the cutoff voltages of a target battery provided in an embodiment of the present application. Referring to Figure 8 , Curve 1 is the voltage curve of the charging process before adjustment. During the constant-voltage charging stage, the actual cutoff voltage of Curve 1 will be lower than the rated cutoff voltage, and the difference between the two is the calibration parameter ΔV described above. Curve 2 is the voltage curve of the charging process after adjustment. After the rated cutoff voltage is increased to the first cutoff voltage through the calibration parameter, at the constant-voltage charging node, the actual cutoff voltage of Curve 1 will still be lower than the first cutoff voltage, but will approach the originally set rated cutoff voltage, thereby ensuring that the battery capacity at full charge is consistent with the actual battery capacity of the target battery.
[0161] Furthermore, as another embodiment of the present application, FIG9 shows a flowchart of a specific implementation of S503 in a charging control method provided by the present application. Referring to FIG9 , S503 in the charging control method provided by the embodiment of the present application includes S5031 to S5033, which are specifically described as follows:
[0162] In S5031 , a second voltage difference between the rated cut-off voltage and the actual cut-off voltage is calculated.
[0163] In this embodiment, after calculating and obtaining the rated cut-off voltage and the actual cut-off voltage, the electronic device may calculate the voltage difference between the two voltages to obtain the second voltage difference.
[0164] In one possible implementation, to further improve the accuracy of subsequent calibration parameters, the electronic device may determine the accuracy deviation of the voltmeter in the battery information acquisition module and incorporate this accuracy deviation into the calculation of the second voltage difference. The second voltage difference is obtained by subtracting the actual cutoff voltage from the rated cutoff voltage, and then subtracting the accuracy error. Different fuel gauges may have different corresponding accuracy deviations.
[0165] In S5032, the step frequency is calculated according to the second voltage difference and the preset adjustment stride.
[0166] In this embodiment, the electronic device needs to adjust the cutoff voltage based on a preset adjustment step, that is, the cutoff voltage is not continuous but discrete. In this case, after the electronic device calculates the second voltage difference between the above two voltages, it needs to calculate the ratio between the second voltage difference and the adjustment step to determine the number of adjustment steps.
[0167] For example, the step frequency number Num can be expressed as:
[0168] Num=int((Vmax-Vcv-Verr) / Vstep)
[0169] Wherein, Num is the aforementioned step frequency; Vmax is the rated cutoff voltage; Vcv is the actual cutoff voltage; Verr is the accuracy deviation of the voltmeter in the battery information acquisition module; Vstep is the aforementioned adjustment step, and int is the rounding function.
[0170] In S5033, the calibration parameter is obtained according to the adjusted stride and the stride frequency.
[0171] In this embodiment, after calculating the stride frequency, the electronic device can calculate the product of the adjusted stride length and the stride frequency to obtain the calibration parameter. The electronic device can adjust the rated cutoff voltage multiple times based on the stride frequency to obtain the first cutoff voltage.
[0172] Exemplarily, the first cut-off voltage Vtrg can be expressed as:
[0173] Vtrg=Vmax+Vstep*Num
[0174] In an embodiment of the present application, when the rated cutoff voltage needs to be adjusted based on the adjustment step, the rated cutoff voltage can be adjusted multiple times by calculating the corresponding number of step frequencies, thereby improving the accuracy of the adjusted first cutoff voltage and subsequently increasing the battery capacity of the target battery when it is fully charged.
[0175] In S504, the rated cut-off voltage is adjusted according to the calibration parameter to obtain the first cut-off voltage.
[0176] In this embodiment, the electronic device increases the rated cut-off voltage based on the calibration parameter to obtain the first cut-off voltage, so that the actual cut-off voltage in the subsequent charging process is consistent with the rated cut-off voltage.
[0177] It should be noted that, since the parameter calibration stage still requires a complete charging process to be performed on the target battery, that is, during the charging process of the parameter calibration stage, the target battery is still charged with the rated cutoff voltage, and in the subsequent charging process, the target battery is charged with the adjusted first cutoff voltage.
[0178] In an embodiment of the present application, the target battery is charged, the actual cut-off voltage of the target battery during the constant voltage charging process is monitored, and the actual cut-off voltage is compared with the rated cut-off voltage to determine the reduction amplitude. A calibration parameter is obtained based on the reduction amplitude, and the rated cut-off voltage is increased. Then, the actual cut-off voltage in the subsequent charging process can be consistent with the rated cut-off voltage, so as to increase the battery capacity of the target battery when it is fully charged.
[0179] Phase 2: Charging control phase:
[0180] For example, FIG10 shows a flowchart of the implementation of the charging control stage in the charging control method provided in one embodiment of the present application. The specific implementation process is described as follows:
[0181] In S1001 , in response to a first charging instruction, a target battery is charged.
[0182] In this embodiment, after the electronic device completes the calibration of the rated cut-off voltage, if it detects a charging operation initiated by the user, such as detecting that the charging interface is connected to a charging cable, or the electronic device is placed on a wireless charging device, a first charging instruction will be generated. After receiving the first charging instruction, the electronic device will charge the target battery based on the adjusted first cut-off voltage.
[0183] In S1002, a first cutoff voltage is used as a cutoff voltage in a constant-voltage charging stage of a target battery, and a charging current of the target battery is gradually reduced when the target battery enters the constant-voltage charging stage until the charging current is lower than a current threshold; the first cutoff voltage is determined based on the sum of a rated cutoff voltage and a calibration parameter.
[0184] In this embodiment, after the electronic device increases the rated cutoff voltage based on the calibration parameters to obtain a first cutoff voltage, it uses the first cutoff voltage as the cutoff voltage for the target battery during the constant-voltage charging phase. Because the charging management module controls the actual cutoff voltage of the target battery to be lower than the preset cutoff voltage when controlling the charging of the target battery, after the rated cutoff voltage is increased to the first cutoff voltage, the actual cutoff voltage of the target battery will also be the first cutoff voltage. Because the calibration parameters are set based on the downward adjustment range of the charging management module, the actual cutoff voltage after adjustment will be the first cutoff voltage, but close to the rated cutoff voltage, thereby increasing the battery capacity when the battery is fully charged.
[0185] Furthermore, as another embodiment of the present application, in order to ensure the safety of the charging process, the process of S503 also includes: if the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any time during the constant voltage charging stage, the cutoff voltage of the constant voltage charging stage is set to the rated cutoff voltage, and the calibration parameters are re-determined.
[0186] In this embodiment, after the electronic device increases the rated cut-off voltage, in order to further take into account both charging safety and the battery capacity of a fully charged battery, it will detect the real-time voltage in the constant voltage charging stage. If the real-time voltage is greater than the safety upper limit voltage of the target battery, it means that the calibration parameter is increased by too much, and there may be a charging safety hazard, affecting the normal service life of the battery. In this case, the cut-off voltage in the constant voltage charging stage will be adjusted to the rated cut-off voltage, thereby reducing the real-time voltage of the target battery, and during the next charging, a second charging instruction will be generated to redetermine the calibration parameters.
[0187] From the above, it can be seen that a charging control method provided in an embodiment of the present application can increase the rated cut-off voltage to the first cut-off voltage through calibration parameters, and then in the process of charging the target battery in the electronic device, the target battery is identified to enter the constant voltage charging stage only when the real-time voltage of the target battery reaches the first cut-off voltage, so that the first cut-off voltage can be close to the rated cut-off voltage of the target battery, thereby increasing the battery capacity of the target battery when the battery is fully charged, and then increasing the battery life of the target battery. While ensuring battery safety, the battery life is taken into account, thereby improving the user experience.
[0188] Example 2:
[0189] Corresponding to the charging control method described in the second embodiment above, FIG11 shows a structural block diagram of the charging control device provided in the embodiment of the present application. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0190] 11 , the charging control device includes:
[0191] A first charging response unit 111 is configured to charge a target battery in response to a first charging instruction;
[0192] The cut-off voltage increasing unit 112 is configured to use a first cut-off voltage as the cut-off voltage of the target battery in the constant-voltage charging stage, and gradually reduce the charging current of the target battery when the target battery enters the constant-voltage charging stage until the charging current is lower than a current threshold; the first cut-off voltage is determined based on the sum of the rated cut-off voltage and the calibration parameter.
[0193] Optionally, the device further comprises:
[0194] a second charging response unit, configured to charge the target battery in response to a second charging instruction;
[0195] an actual cutoff voltage determining unit, configured to determine an actual cutoff voltage of the target battery in the constant-voltage charging stage if it is detected that the target battery is in the constant-voltage charging stage;
[0196] a calibration parameter calculation unit, configured to calculate the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0197] The first cut-off voltage determining unit is configured to adjust the rated cut-off voltage according to the calibration parameter to obtain the first cut-off voltage.
[0198] Optionally, the actual cut-off voltage determining unit includes:
[0199] a charging data acquisition unit, configured to acquire, through a battery information acquisition module, a plurality of charging data of the target battery at a preset acquisition cycle if the difference between the first voltage of the target battery and the rated cut-off voltage is less than a preset first deviation threshold; the charging data including a real-time current, a second voltage, and a number of cycles corresponding to the charging data;
[0200] a target charging data determining unit, configured to select, from the plurality of charging data, charging data in which the real-time current is within a preset current range as target charging data;
[0201] A voltage calculation unit is configured to determine the actual cut-off voltage based on N second voltages if the first voltage difference between any two of the second voltages in N consecutive target charging data of the cycle number is less than a second deviation threshold; wherein N is a positive integer greater than 2.
[0202] Optionally, the calibration parameter calculation unit includes:
[0203] a voltage difference calculation unit, configured to calculate a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0204] a step frequency calculation unit, configured to calculate the step frequency according to the second voltage difference and a preset adjustment stride;
[0205] A calibration parameter determination unit is used to obtain the calibration parameter according to the adjustment stride and the step frequency.
[0206] Optionally, the device further comprises:
[0207] a calibration identifier determining unit, configured to obtain a calibration identifier of a target battery if a charging operation on the target battery is detected;
[0208] The calibration trigger unit is configured to, if the calibration identifier is a first value, execute an operation of charging the target battery in response to a second charging instruction.
[0209] Optionally, the device further comprises:
[0210] The calibration completion charging unit is configured to, if the calibration flag is a second bit value, execute an operation of charging the target battery in response to the first charging instruction.
[0211] Optionally, the cut-off voltage increasing unit 112 includes:
[0212] The abnormal response unit is used to set the cutoff voltage of the constant voltage charging stage to the rated cutoff voltage and redetermine the calibration parameters if the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any time during the constant voltage charging stage.
[0213] Figure 12 is a schematic diagram of the structure of an electronic device provided in one embodiment of the present application. As shown in Figure 12, the electronic device 12 of this embodiment includes: at least one processor 120 (only one processor is shown in Figure 12), a memory 121, and a computer program 122 stored in the memory 121 and executable on the at least one processor 120. When the processor 120 executes the computer program 122, it implements the steps of any of the above-mentioned charging control method embodiments.
[0214] The electronic device 12 may be a computing device such as a desktop computer, a laptop, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor 120 and a memory 121. Those skilled in the art will appreciate that FIG12 is merely an example of the electronic device 12 and does not limit the electronic device 12. The electronic device 12 may include more or fewer components than shown, or may combine certain components or different components. For example, it may also include input / output devices, network access devices, etc.
[0215] The processor 120 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.
[0216] In some embodiments, the memory 121 may be an internal storage unit of the electronic device 12, such as a hard disk or memory of the electronic device 12. In other embodiments, the memory 121 may also be an external storage device of the electronic device 12, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 12. Furthermore, the memory 121 may also include both an internal storage unit of the electronic device 12 and an external storage device. The memory 121 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 121 may also be used to temporarily store data that has been output or is to be output.
[0217] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0218] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0219] An embodiment of the present application also provides an electronic device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps of any of the above-mentioned method embodiments when executing the computer program.
[0220] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.
[0221] An embodiment of the present application provides a computer program product. When the computer program product is run on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned various method embodiments when executing the computer program product.
[0222] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the process in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, it can implement the steps of each of the above-mentioned method embodiments. The computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / electronic device, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.
[0223] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0224] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0225] In the embodiments provided in this application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0226] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0227] The above-described embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A charging control method, characterized in that: include: In response to a first charging instruction, charging the target battery; Using the first cut-off voltage as the cut-off voltage in the constant voltage charging stage of the target battery, and gradually reducing the charging current of the target battery when the target battery enters the constant voltage charging stage until the charging current is lower than the current threshold; The first cut-off voltage is determined based on the sum of a rated cut-off voltage and a calibration parameter.
2. The method according to claim 1, characterized in that Before charging the target battery in response to the first charging instruction, the method further includes: In response to a second charging instruction, charging the target battery; If it is detected that the target battery is in the constant voltage charging stage, determining the actual cut-off voltage of the target battery in the constant voltage charging stage; Calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage; The rated cut-off voltage is adjusted according to the calibration parameter to obtain the first cut-off voltage.
3. The method according to claim 2, characterized in that If it is detected that the target battery is in the constant voltage charging stage, determining the actual cut-off voltage of the target battery in the constant voltage charging stage includes: If the difference between the first voltage of the target battery and the rated cut-off voltage is less than a preset first deviation threshold, a battery information acquisition module is used to acquire multiple charging data of the target battery at a preset acquisition cycle; the charging data includes a real-time current, a second voltage, and a number of cycles corresponding to the charging data; Selecting charging data whose real-time current is within a preset current range from the plurality of charging data as target charging data; If, in the N target charging data with consecutive cycles, the first voltage difference between any two of the second voltages is less than the second deviation threshold, the actual cut-off voltage is determined according to the N second voltages; wherein N is a positive integer greater than 2.
4. The method according to claim 2, characterized in that: The calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage includes: Calculating a second voltage difference between the rated cut-off voltage and the actual cut-off voltage; Calculating the step frequency according to the second voltage difference and a preset adjustment stride; The calibration parameter is obtained according to the adjusted stride length and the step frequency.
5. The method according to claim 2, characterized in that: Before charging the target battery in response to the second charging instruction, the method further includes: If a charging operation for a target battery is detected, obtaining a calibration mark of the target battery; If the calibration mark is the first value, an operation of charging the target battery in response to a second charging instruction is executed.
6. The method according to claim 5, characterized in that After the step of acquiring the calibration mark of the target battery if the charging operation for the target battery is detected, the method further includes: If the calibration flag is a second bit value, an operation of charging the target battery in response to the first charging instruction is executed.
7. The method according to any one of claims 1 to 6, characterized in that: The method of using the first cut-off voltage as the cut-off voltage in the constant voltage charging stage of the target battery, and gradually reducing the charging current of the target battery when the target battery enters the constant voltage charging stage until the charging current is lower than the current threshold, includes: If the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any time during the constant voltage charging stage, the cut-off voltage of the constant voltage charging stage is set to the rated cut-off voltage, and the calibration parameters are re-determined.
8. A charging control device, characterized in that: include: A first charging response unit, configured to charge a target battery in response to a first charging instruction; a cut-off voltage increasing unit, configured to use the first cut-off voltage as the cut-off voltage in the constant voltage charging stage of the target battery, and gradually reduce the charging current of the target battery when the target battery enters the constant voltage charging stage until the charging current is lower than a current threshold; The first cut-off voltage is determined based on the sum of a rated cut-off voltage and a calibration parameter.
9. An electronic device, characterized in that: The electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the processor executes the steps of the method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Method and device for battery charging, storage medium and electronic equipment
CN110758127A
Lithium ion battery charging method and device
CN112838623A
Display electric quantity determination method and device, electronic equipment and storage medium
CN113725934A
Charging method, device and circuit, electronic equipment and storage medium
CN113725955A
Charging method, device and equipment for preventing battery from being overcharged and storage medium
CN115001094A