Charging control method and device, electronic equipment and storage medium
By adjusting the rated cutoff voltage and gradually reducing the charging current, the problem of accuracy error in the charging management module when identifying the battery full state is solved, the battery capacity and battery life are improved, and the battery life is guaranteed.
Patent Information
- Application Number
- CN202311028417.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-14
- Publication Date
- 2025-02-21
AI Technical Summary
现有的充电控制技术由于设备内充电管理模块在获取电池电压时存在精度误差,导致识别电池充满电量时的实际截止电压低于额定截止电压,降低了电池满充状态下的实际电池容量和续航 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 CN119496230A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of battery technology, and in particular relates to a charging control method, device, electronic device and storage medium. Background Art
[0002] With the continuous development of electronic technology, the screens built into electronic devices are getting bigger and bigger, and the energy consumption of applications installed in mobile terminals, such as game applications and audio and video applications, is also getting higher and higher. In order to meet the use requirements of hardware and software in electronic devices, the batteries built into electronic devices are required to have advantages such as large capacity and long battery life. Therefore, how to effectively improve the use efficiency of batteries built into electronic devices has become the focus of users.
[0003] In the 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 actual cut-off voltage measured by the voltage measurement module is about 23mV different from the rated cut-off voltage, resulting in that when the battery is identified as fully charged, its actual battery capacity still has a certain deviation from the rated maximum capacity, reducing the actual battery capacity and battery life when the battery is fully charged. Summary of the invention
[0004] 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 charging management module recognizes that the actual cut-off voltage when the battery is fully charged is generally lower than the rated cut-off voltage of the battery, resulting in a certain deviation between the actual battery capacity and the rated maximum capacity, thereby reducing the actual battery capacity and battery life when the battery is fully charged.
[0005] In a first aspect, an embodiment of the present application provides a charging control method, including:
[0006] In response to a first charging instruction, charging the target battery;
[0007] 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.
[0008] 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 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 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.
[0009] In a possible implementation manner of the first aspect, before charging the target battery in response to the first charging instruction, the method further includes:
[0010] In response to a second charging instruction, charging the target battery;
[0011] 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;
[0012] Calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0013] The rated cut-off voltage is adjusted according to the calibration parameter to obtain the first cut-off voltage.
[0014] In a possible implementation manner of the first aspect, if it is detected that the target battery is in the constant voltage charging stage, determining an actual cut-off voltage of the target battery in the constant voltage charging stage includes:
[0015] 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;
[0016] Selecting charging data whose real-time current is within a preset current range from the plurality of charging data as target charging data;
[0017] 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.
[0018] In a possible implementation manner of the first aspect, calculating the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage includes:
[0019] Calculating a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0020] Calculating the step frequency according to the second voltage difference and a preset adjustment stride;
[0021] The calibration parameter is obtained according to the adjusted stride length and the step frequency.
[0022] In a possible implementation manner of the first aspect, before charging the target battery in response to the second charging instruction, the method further includes:
[0023] If a charging operation for a target battery is detected, obtaining a calibration mark of the target battery;
[0024] If the calibration mark is the first value, an operation of charging the target battery in response to a second charging instruction is executed.
[0025] In a possible implementation manner of the first aspect, after acquiring a calibration identifier of the target battery if a charging operation for the target battery is detected, the method further includes:
[0026] 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.
[0027] In a possible implementation manner of the first aspect, 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:
[0028] 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.
[0029] In a second aspect, an embodiment of the present application provides a charging control device, including:
[0030] A first charging response unit, configured to charge a target battery in response to a first charging instruction;
[0031] A cut-off voltage increasing unit is used to use a first cut-off voltage as a cut-off voltage in a constant voltage charging stage of a target battery, and gradually reduce a 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.
[0032] In a possible implementation manner of the second aspect, the apparatus further includes:
[0033] a second charging response unit, configured to charge the target battery in response to a second charging instruction;
[0034] an actual cut-off voltage determining unit, configured to determine an actual cut-off 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;
[0035] a calibration parameter calculation unit, configured to calculate the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0036] 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.
[0037] In a possible implementation manner of the second aspect, the actual cut-off voltage determining unit includes:
[0038] a charging data acquisition unit, configured to acquire a plurality of charging data of the target battery at a preset acquisition cycle through a battery information acquisition module 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 includes a real-time current, a second voltage, and a number of cycles corresponding to the charging data;
[0039] a target charging data determining unit, configured to select charging data in which the real-time current is within a preset current range from the plurality of charging data as target charging data;
[0040] A voltage calculation unit is used to determine the actual cut-off voltage according to N second voltages if the first voltage difference between any two of the N target charging data with consecutive cycles is less than a second deviation threshold; N is a positive integer greater than 2.
[0041] In a possible implementation manner of the second aspect, the calibration parameter calculation unit includes:
[0042] a voltage difference calculation unit, configured to calculate a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0043] A step frequency calculation unit, used for calculating the step frequency according to the second voltage difference and a preset adjustment stride;
[0044] A calibration parameter determination unit is used to obtain the calibration parameter according to the adjustment stride and the step frequency.
[0045] In a possible implementation manner of the second aspect, the apparatus further includes:
[0046] a calibration mark determining unit, configured to obtain a calibration mark of a target battery if a charging operation on the target battery is detected;
[0047] The calibration trigger unit is configured to execute, if the calibration identifier is a first value, an operation of charging the target battery in response to a second charging instruction.
[0048] In a possible implementation manner of the second aspect, the apparatus further includes:
[0049] The calibration completion charging unit is used to execute an operation of charging the target battery in response to the first charging instruction if the calibration flag is a second bit value.
[0050] In a possible implementation manner of the second aspect, the cut-off voltage increasing unit includes:
[0051] 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.
[0052] 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.
[0053] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and wherein the computer program, when executed by a processor, implements the charging control method described in any one of the first aspects above.
[0054] 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.
[0055] In a sixth aspect, an embodiment of the present application provides a chip system, including a processor, the processor being coupled to a memory, the processor executing a computer program stored in the memory to implement a charging control method as described in any one of the first aspects.
[0056] 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
[0057] Figure 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0058] Figure 2 is a structural schematic diagram of a charging control device provided in an embodiment of the present application;
[0059] Figure 3 is a software structure block diagram of the electronic device of the embodiment of the present application;
[0060] Figure 4 It is a schematic diagram of various stages of the existing charging process;
[0061] Figure 5 is a flow chart for implementing the parameter calibration phase in the charging control method provided in one embodiment of the present application;
[0062] Figure 6 It is a specific implementation flow chart before S501 in a charging control method provided by the present application;
[0063] Figure 7 This is a specific implementation flow chart of S502 in a charging control method provided by the present application;
[0064] Figure 8 is a comparative schematic diagram of the cut-off voltage of a target battery provided in an embodiment of the present application;
[0065] Fig. 9 This is a specific implementation flow chart of S503 in a charging control method provided by the present application;
[0066] Fig.10 is a flow chart for implementing the charging control stage in the charging control method provided in one embodiment of the present application;
[0067] Fig.11 is a structural block diagram of a charging control device provided in an embodiment of the present application;
[0068] Fig.12 It is a structural block diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION
[0069] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also 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 prevent unnecessary details from obstructing the description of the present application.
[0070] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0071] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0072] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" 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 "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.
[0073] 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.
[0074] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0075] The method for updating an executable file 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 method for updating an executable file can be applied to electronic devices that can realize VR display, or electronic devices that are externally connected to a VR display device. The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.
[0076] Figure 1 A schematic structural diagram of an electronic device 100 is shown.
[0077] 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.
[0078] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0079] 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 processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, a central processing unit (DPU), and / or a neural-network processing unit (NPU). Different processing units may be independent devices or integrated into one or more processors.
[0080] 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.
[0081] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0082] In some embodiments, the processor 110 may include one or more interfaces. The interface 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, etc.
[0083] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and a peripheral device. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices, etc.
[0084] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic 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 in the above embodiments, or a combination of multiple interface connection methods.
[0085] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0086] In this embodiment, the charging management module 140 is also used to receive the battery information input of 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.
[0087] 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 supplies power to the processor 110, the internal memory 121, the display screen 160, the camera, and the wireless communication module. The power management module 141 is also configured with a battery information acquisition module 143, through which the battery capacity, the number of battery cycles, the battery health status (leakage, impedance) and other parameters are monitored. 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.
[0088] For example, Figure 2FIG. 1 is a schematic diagram showing the structure of a charging control device provided by an embodiment of the present application. Figure 2 As shown, 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 the USB interface through the power supply pin Vbus and receive the charging input, and the battery information acquisition module 143 can be connected to the analog-to-digital conversion module 144, so as to collect the battery information of the battery 142, determine the first cut-off voltage based on the battery information, and the charging management module 140 can control the battery 142 to perform the charging process based on the first cut-off voltage.
[0089] 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 it is in VR display mode.
[0090] 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), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include 1 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.
[0091] 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 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos are stored in the external memory card. Similarly, the update method of the executable file in the embodiment of the present application can manage the storage space in the external memory card.
[0092] 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.
[0093] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system of the layered architecture is taken as an example to exemplify the software structure of the electronic device 100.
[0094] Figure 3 It is a software structure block diagram of the electronic device of the embodiment of the present application.
[0095] The layered architecture divides the software into several layers, each with clear roles and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the system layer of the Android runtime (Android runtime), and the kernel layer.
[0096] The application layer can include a series of application packages.
[0097] like Figure 3 As shown, the application package may include camera, calendar, map, WLAN, Bluetooth, music, video, short message, mailbox, WeChat, WPS and other applications.
[0098] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0099] like Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0100] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0101] The content provider is used to store and obtain data and make the data accessible to the application. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone book, etc. In this embodiment, the data may be multimedia data collected by the camera module, such as video data and image data.
[0102] The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying pictures. In this embodiment, it can be used to display the collected multimedia data.
[0103] The phone manager is used to provide communication functions for electronic devices, such as the management of call status (including answering, hanging up, etc.).
[0104] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0105] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications of applications running in the background, or a notification that appears on the screen in the form of a dialog window. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0106] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.
[0107] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.
[0108] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0109] The system layer may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0110] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0111] 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.
[0112] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing, etc.
[0113] A 2D graphics engine is a drawing engine for 2D drawings.
[0114] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver.
[0115] The following is an illustrative description of the workflow of the software and hardware of the electronic device 100 in conjunction with capturing a photo scene.
[0116] When the 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 raw input events (including touch coordinates, timestamp of the touch operation, and other information). The raw input events are stored in the kernel layer. The application framework layer obtains the raw input events 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 static images or videos through the camera.
[0117] It is to be understood that the structure illustrated in the embodiment 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 in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0118] With the continuous development of electronic technology, the built-in display screens of electronic devices are getting bigger and bigger, 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, a pre-charging stage, a constant current charging node, and a constant voltage charging stage. For example, Figure 4 A schematic diagram showing various stages of the existing charging process is shown. Figure 4 As shown, in the pre-charging stage, the charging input current is constant and has a small value. 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 maximum capacity of the battery.
[0119] However, due to the fact that when the charging management module in the electronic device, such as the battery IC chip, monitors the real-time voltage of the battery, there is a certain precision error between the measured value and the actual voltage value, and the actual cut-off voltage for judging that the battery enters the constant voltage charging stage will be lower than the rated cut-off voltage of the battery. For example, when the actual voltage of the battery reaches 4.377V, the value measured by the voltage measurement module is 4.4V, which has reached the rated cut-off voltage of the battery, but the actual voltage and the measured voltage reading differ by 23mV. Since the actual cut-off voltage is lower than the rated cut-off voltage of the battery, there will be a difference of 1% to 2% between the full battery state recognized by the charging management module and the actual battery capacity of the battery, thereby reducing the battery life.
[0120] Embodiment 1:
[0121] Therefore, in order to solve the problem that the actual cut-off voltage of the battery entering the constant voltage charging stage due to the accuracy error of the above-mentioned battery management technology will be lower than the rated cut-off voltage of the battery, which reduces the battery life, the present application provides a charging control method, which is specifically applied to electronic devices equipped with batteries. The electronic device can increase the battery power in the fully charged state of the battery by running the charging control method of the embodiment of the present application, thereby improving the 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.
[0122] Specifically, the charging control method provided in one embodiment of the present application includes two stages, namely, a parameter calibration stage and a charging control stage. The parameter calibration stage is used to determine the calibration parameters for adjusting the rated cut-off voltage; the charging control stage is specifically used to charge the target battery in the electronic device according to the adjusted rated cut-off voltage (i.e., the first cut-off voltage).
[0123] Phase 1: Parameter calibration phase:
[0124] For example, Figure 5 The following is 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:
[0125] In S501, in response to a second charging instruction, the target battery is charged.
[0126] In this embodiment, the electronic device can manage the charging of a target battery built into or outside the electronic device through a built-in charging management module. In the parameter calibration stage, 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 will also calculate the corresponding calibration parameters according to the real-time voltage of the target battery in the constant voltage charging stage, so that in the subsequent charging process, the rated cut-off voltage can be adjusted through the calibration parameters to improve the battery capacity of the target battery under the state of charging power.
[0127] In a possible implementation, the rated cutoff voltage of the target battery can be recorded in a non-volatile storage area in 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 will detect the storage address corresponding to the first cutoff voltage. If the storage address is empty, it means that the target battery is not configured with the corresponding first cutoff voltage. In this case, the second charging instruction will be generated. On the contrary, if it is detected that the storage address is not empty, it means that the target battery has been configured with the corresponding first cutoff voltage, and the charging control stage will be performed to generate the first charging instruction.
[0128] In a possible implementation, if the electronic device is equipped with multiple batteries, such as a built-in battery and an external battery, the electronic device can record the first cut-off voltages corresponding to different batteries respectively, and store the association relationship between the battery identifier and the first cut-off voltage. When it is detected that any battery needs to be charged, it can be determined whether the battery is equipped with the corresponding first cut-off voltage according to the above association relationship. If not, a second charging instruction is generated; if it is configured, a first charging instruction is generated.
[0129] Further, as another embodiment of the present application, Figure 6 FIG. 1 shows a specific implementation flow chart before S501 in a charging control method provided by the present application. Figure 6 As shown, the embodiment of the present application provides a charging control method, which includes S601 to S603 before S501, and is specifically described as follows:
[0130] In S601, if a charging operation for a target battery is detected, a calibration mark of the target battery is obtained.
[0131] In this embodiment, when the user needs to charge the target battery, the user can connect the charging cable to the charging port of the electronic device, or place the electronic device on the wireless charging stand. 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 cut-off voltage of the target battery has been calibrated. If the calibration identifier is the first value, such as the first value is 0, it means that the cut-off voltage of the target battery has not been calibrated, and the operation of S602 is executed; on the contrary, if the calibration is indicated as the second position, such as the second position is 1, it means that the cut-off voltage of the target battery has been calibrated, and the operation of S603 is executed.
[0132] In a possible implementation, the default value of the calibration flag is the first value, so that the cut-off voltage of the target battery can be calibrated when the target battery is charged for the first time.
[0133] In a possible implementation, the electronic device can calculate the number of times the target battery has been charged, and if it is detected that the number of times the target battery has been charged is greater than a certain number threshold, the calibration mark can be set to the first value. Since the battery capacity may change during use, in order to take into account the safety of the target battery and the endurance of the target battery, the electronic device can be set with a charging number threshold. If the charging number reaches a certain number threshold, the first cut-off voltage of the target battery needs to be re-determined.
[0134] In S602, if the calibration flag is the first value, an operation of charging the target battery in response to a second charging instruction is executed.
[0135] In this embodiment, if the electronic device detects that the calibration mark is the first value, it means that the cut-off voltage of the target battery needs to be calibrated, so 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.
[0136] 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.
[0137] In this embodiment, if the electronic device detects that the calibration mark 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, a 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.
[0138] In an embodiment of the present application, a calibration mark is set, and when a charging operation is detected on a target battery, it is determined whether the first cut-off voltage of the target battery has been calibrated by reading the above-mentioned calibration mark, 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 then improving the battery life of the target battery.
[0139] In S502, if it is detected that the target battery is in the constant voltage charging stage, then the actual cut-off voltage of the target battery in the constant voltage charging stage is determined.
[0140] In this embodiment, when the electronic device charges the target battery in response to the second charging instruction, the electronic device may perform the following steps: Figure 4 In the pre-charging stage and the constant current charging stage shown, the electronic device can obtain the battery information of the target battery during the charging process through the battery information acquisition module in a preset acquisition cycle, and determine the stage of the target battery during the charging process through the battery information.
[0141] In one possible implementation, the electronic device can extract the real-time voltage from the battery information. If the real-time voltages corresponding to multiple consecutive acquisition cycles are the same, or the extreme values are within a preset floating range, it identifies that the target battery is in the constant voltage charging stage, and determines the actual cut-off voltage of the target battery during the constant voltage charging stage.
[0142] In this embodiment, the electronic device can obtain the battery information of the target battery in the constant voltage charging stage through the battery information acquisition module, and the battery information includes the real-time voltage of the target battery. The electronic device can use the average value of the real-time voltage obtained in the constant voltage charging stage as the actual cut-off voltage of the target battery at the constant voltage charging node.
[0143] Further, as another embodiment of the present application, Figure 7 FIG. 5 shows a specific implementation flow chart of S502 in a charging control method provided by the present application. Figure 7 As shown, in the charging control method provided in the embodiment of the present application, S502 includes S5021 to S5023, which are specifically described as follows:
[0144] 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 a battery information acquisition module with a preset acquisition cycle; the charging data includes real-time current, a second voltage and the number of cycles corresponding to the charging data.
[0145] In this embodiment, the electronic device can monitor the real-time voltage of the target battery, that is, the first voltage mentioned above, through the battery information acquisition module. The electronic device will calculate the difference between the first voltage and the pre-set 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 means 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 means 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.
[0146] In a possible implementation, the electronic device can identify that the target battery is in the constant voltage charging stage when it is detected that the difference between the first voltage and the rated cut-off voltage obtained in M consecutive monitoring cycles is less than the first deviation threshold, so as to improve the accuracy of the constant voltage charging stage identification, and the value of M is any positive integer greater than 2, for example, it can be 3. The first deviation threshold can be 50mV.
[0147] In this embodiment, when the electronic device detects that the target battery enters the constant voltage charging stage, it will acquire multiple charging data of the target battery in a preset collection cycle, and the charging data includes the real-time current and the second voltage of the target battery in the constant voltage charging stage and the number of cycles of the collection cycle corresponding to the charging data. Exemplarily, the charging data can be expressed as: {2A, 4.378V, number of cycles: 3}.
[0148] In one possible implementation, the period duration of the above-mentioned collection cycle 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 collection period can be 30 seconds, that is, the charging data of the target battery is obtained every 30 seconds.
[0149] 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.
[0150] 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 acquiring the charging data. In the early and late stages 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.
[0151] In one possible implementation, since the charging input current will continue to decrease during the constant voltage charging stage, it has been proposed 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.
[0152] In S5023, if the first voltage difference between any two of the second voltages in the N target charging data with consecutive cycles is less than a 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.
[0153] In this embodiment, after the electronic device selects the target charging data from the charging data, the actual cut-off voltage can be determined based on the target charging data. Among them, since the actual cut-off voltage to be determined needs to use the second voltage with stable data in the constant voltage charging stage, the electronic device will generate a corresponding voltage sequence according to the number of cycles to which each target charging data belongs, and the sequence number of each second voltage in the voltage sequence is consistent with the number of cycles to which it belongs, and generate a corresponding selection box according to the required number of stable cycles N, through which the selection box is used to slide the box in the above voltage sequence to take data, and calculate the first voltage difference between the second voltages taken in the sliding box. If the first voltage difference between each second voltage in the sliding box is less than the preset second deviation threshold, it means that the voltage of the target battery is stable in N consecutive acquisition cycles, and the fluctuation is small. At this time, the above actual cut-off voltage can be calculated based on the second voltage of N consecutive acquisition cycles.
[0154] 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 specifically set according to actual conditions.
[0155] 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, so that the voltage value of the constant voltage charging process can be determined more accurately, thereby improving the accuracy of the real-time cut-off voltage calculation.
[0156] In S503, the calibration parameter is calculated according to the rated cut-off voltage and the actual cut-off voltage.
[0157] 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.
[0158] For example, Figure 8 FIG. 1 is a schematic diagram showing a comparison of the cut-off voltage of a target battery provided by an embodiment of the present application. Figure 8As shown, curve 1 is the voltage curve of the charging process before adjustment. In the constant voltage charging stage, the actual cut-off voltage of curve 1 will be lower than the rated cut-off voltage, and the amplitude of the two is the calibration parameter △V mentioned above; curve 2 is the voltage curve of the charging process after adjustment. After the rated cut-off voltage is increased to the first cut-off voltage through the calibration parameter, at the constant voltage charging node, the actual cut-off voltage of curve 1 will still be lower than the first cut-off voltage, but will approach the originally set rated cut-off voltage, so that the battery power in the fully charged state can be consistent with the actual battery capacity of the target battery.
[0159] Further, as another embodiment of the present application, Fig. 9 FIG. 5 shows a specific implementation flow chart of S503 in a charging control method provided by the present application. Fig. 9 As shown, in the charging control method provided in the embodiment of the present application, S503 includes S5031 to S5033, which are specifically described as follows:
[0160] In S5031, a second voltage difference between the rated cut-off voltage and the actual cut-off voltage is calculated.
[0161] In this embodiment, after calculating 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.
[0162] In a possible implementation, in order to further improve the accuracy of subsequent calibration parameters, the electronic device can determine the accuracy deviation of the voltage meter in the battery information acquisition module, and add the above-mentioned accuracy deviation when calculating the second voltage difference, and subtract the actual cut-off voltage from the rated cut-off voltage, and then subtract the above-mentioned accuracy error to obtain the above-mentioned second voltage difference. Different electricity meters have different corresponding accuracy deviations.
[0163] In S5032, the step frequency is calculated according to the second voltage difference and the preset adjustment stride.
[0164] 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.
[0165] Exemplarily, the step frequency number Num can be expressed as:
[0166] Num=int((Vmax-Vcv-Verr) / Vstep)
[0167] Among them, Num is the above-mentioned step frequency number; Vmax is the rated cut-off voltage; Vcv is the actual cut-off voltage; Verr is the accuracy deviation of the voltmeter in the battery information acquisition module; Vstep is the above-mentioned adjustment step, and int is the rounding function.
[0168] In S5033, the calibration parameter is obtained according to the adjusted stride and the step frequency.
[0169] In this embodiment, after calculating the step frequency, the electronic device can calculate the product between the adjusted stride and the step frequency to obtain the calibration parameter. The electronic device can adjust the rated cutoff voltage multiple times based on the step frequency to obtain the first cutoff voltage.
[0170] Exemplarily, the first cut-off voltage Vtrg can be expressed as:
[0171] Vtrg=Vmax+Vstep*Num
[0172] In an embodiment of the present application, when it is necessary to adjust the rated cut-off voltage based on the adjustment step, the rated cut-off voltage can be adjusted multiple times by calculating the corresponding step frequency, thereby improving the accuracy of the adjusted first cut-off voltage and subsequently increasing the battery capacity of the target battery when it is fully charged.
[0173] In S504, the rated cut-off voltage is adjusted according to the calibration parameter to obtain the first cut-off voltage.
[0174] 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.
[0175] 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 in 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.
[0176] 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 downward adjustment range, and a calibration parameter is obtained based on the downward adjustment range to increase the rated cut-off voltage. Then, the actual cut-off voltage in the subsequent charging process can be consistent with the rated cut-off voltage to increase the battery power of the target battery when it is fully charged.
[0177] Phase 2: Charging control phase:
[0178] For example, Fig.10The following is 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:
[0179] In S1001 , in response to a first charging instruction, a target battery is charged.
[0180] 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.
[0181] In S1002, 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.
[0182] In this embodiment, after the electronic device increases the rated cut-off voltage based on the calibration parameters to obtain the first cut-off voltage, the first cut-off voltage is used as the cut-off voltage of the target battery in the constant voltage charging stage. Since the charging management module controls the actual cut-off voltage of the target battery to be lower than the preset cut-off voltage when controlling the charging of the target battery, after the rated cut-off voltage is increased to the first cut-off voltage, the actual cut-off voltage of the target battery will also be the first cut-off voltage. Since the calibration parameters are set based on the downward adjustment range of the charging management module, the actual cut-off voltage after adjustment will be the first cut-off voltage, but close to the rated cut-off voltage, thereby increasing the battery power when the battery is fully charged.
[0183] 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 during the constant voltage charging stage, the real-time voltage of the target battery is greater than the preset safety upper limit voltage at any time, the cutoff voltage of the constant voltage charging stage is set to the rated cutoff voltage, and the calibration parameters are re-determined.
[0184] 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 power when the battery is fully charged, 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 charging safety hazards, 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 redefine the calibration parameters.
[0185] From the above, it can be seen that a charging control method provided in an embodiment of the present application can adjust 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, when the real-time voltage of the target battery reaches the first cut-off voltage, the target battery is identified to enter the constant voltage charging stage, 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, thereby increasing the battery life of the target battery, taking into account the battery life while ensuring the safety of the battery, thereby improving the user experience.
[0186] Embodiment 2:
[0187] Corresponding to the charging control method described in the second embodiment above, Fig.11 A structural block diagram of a charging control device provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.
[0188] Reference Fig.11 , the charging control device comprises:
[0189] A first charging response unit 111, configured to charge a target battery in response to a first charging instruction;
[0190] The cut-off voltage increasing unit 112 is used 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 the current threshold; the first cut-off voltage is determined based on the sum of the rated cut-off voltage and the calibration parameter.
[0191] Optionally, the device further comprises:
[0192] a second charging response unit, configured to charge the target battery in response to a second charging instruction;
[0193] an actual cut-off voltage determining unit, configured to determine an actual cut-off 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;
[0194] a calibration parameter calculation unit, configured to calculate the calibration parameter according to the rated cut-off voltage and the actual cut-off voltage;
[0195] 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.
[0196] Optionally, the actual cut-off voltage determining unit includes:
[0197] a charging data acquisition unit, configured to acquire a plurality of charging data of the target battery at a preset acquisition cycle through a battery information acquisition module 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 includes a real-time current, a second voltage, and a number of cycles corresponding to the charging data;
[0198] a target charging data determining unit, configured to select charging data in which the real-time current is within a preset current range from the plurality of charging data as target charging data;
[0199] A voltage calculation unit is used to determine the actual cut-off voltage according to N second voltages if the first voltage difference between any two of the N target charging data with consecutive cycles is less than a second deviation threshold; N is a positive integer greater than 2.
[0200] Optionally, the calibration parameter calculation unit includes:
[0201] a voltage difference calculation unit, configured to calculate a second voltage difference between the rated cut-off voltage and the actual cut-off voltage;
[0202] A step frequency calculation unit, used for calculating the step frequency according to the second voltage difference and a preset adjustment stride;
[0203] A calibration parameter determination unit is used to obtain the calibration parameter according to the adjustment stride and the step frequency.
[0204] Optionally, the device further comprises:
[0205] a calibration mark determining unit, configured to obtain a calibration mark of a target battery if a charging operation on the target battery is detected;
[0206] The calibration trigger unit is configured to execute, if the calibration identifier is a first value, an operation of charging the target battery in response to a second charging instruction.
[0207] Optionally, the device further comprises:
[0208] The calibration completion charging unit is used to execute an operation of charging the target battery in response to the first charging instruction if the calibration flag is a second bit value.
[0209] Optionally, the cut-off voltage increasing unit 112 includes:
[0210] 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.
[0211] Fig.12 This is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Fig.12 As shown, the electronic device 12 of this embodiment includes: at least one processor 120 ( Fig.12 Only one processor is shown in the figure), a memory 121, and a computer program 122 stored in the memory 121 and executable on the at least one processor 120, wherein the processor 120 implements the steps in any of the above-mentioned charging control method embodiments when executing the computer program 122.
[0212] The electronic device 12 may be a computing device such as a desktop computer, a notebook, 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 Fig.12 It is only an example of the electronic device 12 and does not constitute a limitation on the electronic device 12. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.
[0213] 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, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0214] 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. Further, 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.
[0215] 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 the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.
[0216] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be 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 in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in 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, which will not be repeated here.
[0217] 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.
[0218] 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 method embodiments can be implemented.
[0219] An embodiment of the present application provides a computer program product. When the computer program product runs on a mobile terminal, the mobile terminal can implement the steps in the above-mentioned method embodiments when executing the computer program product.
[0220] 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 processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may 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, Read-Only Memory), random access memory (RAM, RandomAccess Memory), 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.
[0221] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0222] Those of ordinary skill 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 to be beyond the scope of this application.
[0223] In the embodiments provided in the present 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 schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that 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.
[0224] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0225] The embodiments described above 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, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope 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.