Charging management module, charging management method, electronic device and storage medium
By adjusting the output current of the power supply in real time during the charging process, the overcurrent problem caused by current jitter is solved, the safety of the battery pack and charging circuit is ensured, and a stable charging process is achieved.
Patent Information
- Application Number
- CN202211158057.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-22
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-09-22
AI Technical Summary
When an external power supply is charging an electronic device, jitter in the current output causes an overcurrent in the input of the electronic device, which may damage the battery pack or the charging circuit.
By obtaining the output current of the power supply in each detection cycle, comparing it with the required current of the battery module, calculating the difference and generating a request instruction, the output current of the power supply is adjusted to reduce jitter and avoid large current jitter when directly increasing the current from zero to the required current.
It effectively avoids the risk of overcurrent in the battery pack and charging circuit, improves the circuit safety of the charging process, and ensures current stability.
Smart Images

Figure CN115566753B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of charging technology, and in particular to a charging management module, a charging management method, an electronic device, and a storage medium. Background Art
[0002] In related technologies, when an external power supply charges an electronic device, the current output of the external power supply is continuously increased while being accompanied by current amplitude jitter. When the output current of the external power supply is increased to the required value of the electronic device, if there is still strong current jitter, it may cause the input current of the electronic device to overcurrent and cause damage to the battery pack or the charging circuit of the battery pack.
[0003] Therefore, how to avoid damage to the battery pack or the charging circuit of the battery pack when charging the electronic device is a technical problem that needs to be solved urgently. Summary of the Invention
[0004] The purpose of the present application is to provide a charging management module, a charging management method, an electronic device and a storage medium to optimize the problem in the related art that the input current of the electronic device is overcurrent and causes damage to the battery pack or the charging circuit of the battery pack.
[0005] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by practice of the present application.
[0006] According to one aspect of an embodiment of the present application, a charging management method is provided, which is applied to an electronic device, the electronic device including a battery module, and the electronic device is configured to receive an output current of a power supply to charge the battery module. The charging management method includes:
[0007] In each detection cycle, the output current of the power supply is obtained;
[0008] If the output current is less than the required current of the battery module, the difference between the required current and the output current is calculated; the requested current is updated according to the difference, and a request instruction is generated according to the updated requested current; the request instruction is sent to the power supply, and the request instruction is used to instruct the power supply to adjust the output current according to the requested current;
[0009] If the output current is greater than or equal to the demand current, the demand current is changed from the first value to the second value, and after a preset time, the step of obtaining the output current of the power supply in each detection cycle is returned to; the first value is less than the second value.
[0010] According to one aspect of an embodiment of the present application, a charging management module is provided, including:
[0011] A current acquisition unit, used to acquire the output current of the power supply in each detection cycle;
[0012] a first execution unit, configured to calculate a difference between the demand current and the output current when the output current is less than the demand current of the battery module; update the requested current according to the difference, and generate a request instruction according to the updated requested current; and send the request instruction to the power supply, the request instruction being used to instruct the power supply to adjust the output current according to the requested current;
[0013] The second execution unit is used to change the demand current from the first value to the second value when the output current is greater than or equal to the demand current, and after a preset time period, instruct the current acquisition unit to execute the step of acquiring the output current of the power supply in each detection cycle; the first value is less than the second value.
[0014] In one embodiment of the present application, the charging management module further includes:
[0015] The coefficient adjustment unit is used to update the value of the preset adjustment coefficient from the first coefficient to the second coefficient when the second execution unit changes the demand current from the first value to the second value, and the first coefficient is greater than the second coefficient.
[0016] In one embodiment of the present application, the first execution unit is specifically configured to: determine an adjustment value according to the difference, where the adjustment value is positively correlated with the difference; and add the adjustment value to the request current to obtain an updated request current.
[0017] In one embodiment of the present application, the first execution unit is specifically configured to calculate a product of the difference value and a preset adjustment coefficient to obtain an adjustment value.
[0018] In one embodiment of the present application, the second execution unit is specifically configured to update the value of the preset adjustment coefficient from a first coefficient to a second coefficient, where the first coefficient is greater than the second coefficient.
[0019] In one embodiment of the present application, the current acquisition unit is configured to: acquire a rated charging current of the battery module in response to a charging operation; and determine an initial value of the requested current according to the rated charging current of the battery module.
[0020] In one embodiment of the present application, the initial value of the requested current in the first execution unit is 0.
[0021] According to one aspect of an embodiment of the present application, an electronic device is provided, which includes a battery module and a battery management module. The battery management module is connected to the battery module, and the battery management module is used to control the power supply to charge the battery module. The battery management module is used to execute the charging management method provided in the present application.
[0022] According to one aspect of an embodiment of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the charging management method provided in the present application is implemented.
[0023] The present application obtains the output current of the power supply, and if the output current is less than the demand current, calculates the difference between the demand current and the output current; updates the request current according to the difference, and generates a request instruction according to the updated request current; sends the request instruction to the power supply; if the output current is greater than or equal to the demand current, changes the demand current from a first value to a second value, and after a preset time, returns to the step of obtaining the output current of the power supply in each detection cycle. Thus, in the embodiment of the present application, the power supply outputs current according to the request instruction, and the charging management method provided in the embodiment of the present application generates a request instruction according to the difference between the demand current and the output current of the battery module. After the current jitter that occurs when the output current of the power supply reaches the first value of the demand current ends, the demand current can be adjusted to the second value, thereby solving the problem of large current amplitude jitter generated when the output current of the power supply is directly increased from zero to the second value of the demand current, avoiding the risk of overcurrent to the battery pack and the charging circuit of the battery pack, thereby avoiding damage to the battery pack or the charging circuit of the battery pack, and improving the circuit safety of the charging process of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0025] Figure 1 The flowchart of the charging management method provided by one embodiment of the present application is schematically shown.
[0026] Figure 2 The graph schematically shows the curves of the requested current and the output current changing with time in the prior art.
[0027] Figure 3 The curves showing the change of the requested current and the output current over time in the charging management method provided by the present application are schematically shown.
[0028] Figure 4 The structural block diagram of the charging management module provided in one embodiment of the present application is schematically shown.
[0029] Figure 5 The schematic diagram shows the structure of an electronic device applying the technical solution of the present application.
[0030] Figure 6 The following schematically shows a block diagram of a storage medium structure suitable for implementing the charging management method of an embodiment of the present application. DETAILED DESCRIPTION
[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art.
[0032] Figure 1 The flowchart of the charging management method provided by one embodiment of the present application is schematically shown.
[0033] like Figure 1 As shown, this application provides a charging management method, which is as follows:
[0034] S110 : In each detection cycle, obtain the output current of the power supply.
[0035] Specifically, the power supply is used to charge the battery module. The power supply can be a photovoltaic input power source or an alternating current (AC) input power source that charges the battery through an inverter (INV). The output current of the power supply is input into the battery module. The detection period is the time interval for detecting the output current of the power supply. For example, if the detection period of the output current of the power supply is 3 seconds, the output current of the power supply is detected every 3 seconds.
[0036] In one embodiment of the present application, before obtaining the output current of the power supply in each detection cycle, it also includes: obtaining the rated charging current of the battery module in response to the charging operation; and determining the initial value of the requested current according to the rated charging current of the battery module.
[0037] Specifically, the steps for determining the charging operation include: (1) the battery module is connected to the power supply before it is turned on, and the charging operation is not considered to be triggered when the battery module is not turned on, and the charging operation is considered to be triggered when the battery module is turned on; (2) the battery module is connected to the power supply, and the charging operation needs to be started by a computer program, that is, the charging operation is not considered to be triggered when the computer program is not triggered, and the charging operation is considered to be triggered when the computer program is triggered; (3) the charging operation is considered to be triggered when the power supply is connected to the battery module.
[0038] The rated charging current refers to the allowable current when the battery module is continuously charged under rated environmental conditions (ambient temperature, sunshine, altitude, installation conditions, etc.).
[0039] The requested current is a charging current requested from the power supply according to the rated charging current of the battery module.
[0040] If the requested current is too large, the output current of the power supply will be greater than the rated charging current of the battery module, which will easily trigger the overcurrent protection of the battery module and make the charging process unstable. Therefore, after responding to the charging operation, the rated charging current of the battery module is obtained, and then the initial value of the requested current is determined according to the rated charging current of the battery module. The output current of the power supply changes with the change of the requested current.
[0041] S120. If the output current is less than the required current of the battery module, calculate the difference between the required current and the output current; update the requested current according to the difference, and generate a request instruction according to the updated requested current; and send the request instruction to the power supply.
[0042] Specifically, the demand current is the current required for charging the battery module. The request instruction is a command sent to the power supply requesting an output current. The output current of the power supply is compared with the demand current of the battery module. If the output current is less than the preset demand current, the request current is updated based on the difference between the two. The request instruction is generated based on the updated request current. This allows the request current to be dynamically adjusted, and thus the output current of the power supply, to gradually adjust the output current to the demand current.
[0043] In one embodiment of the present application, updating the requested current according to the difference includes: determining an adjustment value according to the difference, where the adjustment value is positively correlated with the difference; and adding the adjustment value to the requested current to obtain an updated requested current.
[0044] In one embodiment of the present application, determining the adjustment value according to the difference includes: calculating the product of the difference and a preset adjustment coefficient to obtain the adjustment value.
[0045] Specifically, the adjustment value is determined based on the difference, and the adjustment value is positively correlated with the difference, that is, the larger the difference, the larger the adjustment value; the smaller the difference, the smaller the adjustment value. The preset adjustment coefficient is the relationship coefficient between the predetermined difference and the adjustment value. Let the difference be ΔI a , the preset adjustment coefficient is k, then the adjustment value ΔI:
[0046] ΔI=k·ΔI a
[0047] Then the updated requested current I′ r :
[0048] I′ r =I r +ΔI
[0049] When the demand current I is 12A, the requested current I r is 18A, output current I o When the current is 11A, the difference ΔIa For 1A, if the preset adjustment coefficient k is 3, then ΔI=3·ΔI a , at this time the adjustment value ΔI is 3A, and the updated requested current I′ r It is 21A.
[0050] In one embodiment of the present application, the initial value of the requested current is 0.
[0051] Specifically, when there is no charging operation, the request current is at an initial value, and the initial value is 0. In response to the charging operation, the request current changes from 0, and the output current also changes from 0.
[0052] S130. If the output current is greater than or equal to the demand current, the demand current is changed from the first value to the second value, and after a preset time, the step of obtaining the output current of the power supply in each detection cycle is returned to; the first value is less than the second value.
[0053] Specifically, the preset duration is the duration of time from when the output current reaches the first value to when it stabilizes at the first value, as determined after a large number of tests. If the output current of the power supply is greater than or equal to the first value of the required current of the battery module, the output current of the power supply will continuously fluctuate around the first value of the required current. After the preset duration, when the output current stabilizes at the first value, the required current is changed from the first value to the second value, and then the process returns to S110. For example, the required current I1 at the first value is 12A, and the requested current I r The output current of the power supply is 18A. o When the output current is 12A, the output current I o Equal to the demand current I1 at the first value, after the preset time, the output current I o If the current tends to be stable, the demand current is changed from the first value to the second value, and the demand current I2 at the second value is obtained to be 14 A, and the process returns to S110 again.
[0054] The present application obtains the output current of the power supply and compares it with the demand current of the battery module. If the output current is less than the demand current, the difference between the demand current and the output current is calculated; the requested current is updated based on the difference, and a request instruction is generated based on the updated request current; and the request instruction is sent to the power supply. If the output current is greater than or equal to the demand current, the demand current is changed from a first value to a second value, and after a preset time, the process returns to the step of obtaining the output current of the power supply in each detection cycle. Thus, the power supply outputs current according to the request instruction. The charging management method provided in the embodiment of the present application generates a request instruction based on the difference between the demand current and the output current. By changing the value of the demand current, the output current can be controlled to have only a small adjustment when reaching the second value of the demand current. This can solve the problem of large current amplitude jitter caused by directly increasing the output current of the power supply from zero to the second value of the demand current, avoid the risk of overcurrent to the battery pack and the charging circuit of the battery pack, and thus avoid damage to the battery pack or the charging circuit of the battery pack, thereby improving the circuit safety of the charging process of the electronic device.
[0055] Figure 2 The graph schematically shows the curves of the requested current and the output current changing with time in the prior art.
[0056] In the field of charging technology, when the battery management system (BMS) requests a power supply to charge the battery module, the slopes of the BMS's requested current and the AC's output current (when AC needs to be converted, this is the BMS's requested current and the INV's output current) are inconsistent, and the AC's output response is slower than the BMS's request. When the actual required current is not reached, the BMS can only continue to increase the requested current, so that the requested current is always greater than the output current, thereby increasing the AC's output current. In actual use, after the AC's output current or the INV's output current reaches the requested current, there will be current jitter. This current jitter is because the INV's output angle φ is unstable. According to the INV's output angle value φ, which is determined by the inverse tangent function of the ratio of the input sine, sin, and cosine voltages, when the INV itself is normal, the jitter of its output angle is not only related to the stability of the input sine and cosine voltage values, but also to the settings of the peripheral parameters of the chip used in the INV. That is, the present application aims to solve the problem that when charging with AC output current or INV output current, the battery module is damaged due to current jitter in the output current.
[0057] For example, Figure 2 As shown, the actual demand current I need The requested current is 12A. ris 18A, but the AC output current I o When it is about to stabilize at the actual demand current I need Before, that is Figure 2 After a period of time t1, the output current I o Strong current jitter will occur, such as the output current I o Jump in the range of 10A to 14A. Once the output current I o If the overcurrent point is exceeded, the overcurrent protection of the BMS will be easily triggered, resulting in an unstable charging process of the battery module and even damage to the battery pack or the charging circuit of the battery pack.
[0058] Figure 3 The curves showing the change of the requested current and the output current over time in the charging management method provided by the present application are schematically shown.
[0059] For example, Figure 3 As shown, the actual required current of the battery module I need is 14A. According to the charging management method provided in this application, before t1, the demand current I is 12A and the request current I is r The output current of the power supply I increases gradually from 0 to 18A. o Also gradually increases from 0 to 12A. At t1, the output current I o =Equal to the demand current I, change the demand current I to 14A. Due to the characteristics of the output current of AC or the output current of INV, within ΔT after t1, the output current I o In a state of continuous jump, because the request current I r and the power supply output current I o There is a corresponding relationship between them, so the requested current I r It will also continue to jitter. Output current I o The continuous jump occurs before the actual required current is reached, and the output current will not jump to trigger the overcurrent protection. After ΔT, starting from t2, the output current I o is less than the required current, so the requested current I is updated according to S120 r ′, request current I r The curve rises slowly after t2, and the output current I o The curve also rises slowly and stabilizes after t3 to be equal to the actual demand current I need , after which the requested current I r The curve also tends to be stable and stabilizes at 20A.
[0060] In one embodiment of the present application, after determining that the output current is greater than or equal to the demand current, the method further includes: updating the value of the preset adjustment coefficient from the first coefficient to the second coefficient, where the first coefficient is greater than the second coefficient.
[0061] Specifically, after determining that the output current is greater than or equal to the demand current, the demand current is changed from the first value to the second value, and the first value is less than the second value. In addition, the preset adjustment coefficient is updated from the first coefficient to the second coefficient, and the first coefficient is greater than the second coefficient. For example, Figure 3 As shown, the actual demand current I need is 14A, the demand current I1 at the first value is 12A, the demand current I2 at the second value is 14A, and the request current I before the update is r The output current before the update is 18A. o is 12A, the first coefficient is equal to 3, the second coefficient is equal to 1, then ΔI=ΔI a Therefore, after updating the demand current I2 to 14A, the difference ΔI a is 2A, the adjustment value ΔI is 2A, and the updated requested current I r ' is 20A. In the case of the same difference, according to ΔI=k·ΔI a When the preset adjustment coefficient is the first coefficient, the adjustment value ΔI is 6A, and the updated requested current I r ' is 24A, the output current I o Therefore, after determining that the output current is greater than or equal to the demand current, the preset adjustment coefficient is updated from the first coefficient to the second coefficient, and the requested current I r The curve rises slowly after t2, and the output current I o The curve of the updated request current I′ also rises slowly with it. r Slowly rise, so that the output current I o It changes slowly when approaching the required current, reducing the large jitter of the output current and improving the stability of the power supply output current.
[0062] Figure 4 The structural block diagram of the charging management module provided in one embodiment of the present application is schematically shown.
[0063] like Figure 4 As shown, the present application provides a charging management module, including:
[0064] The current acquisition unit 410 is used to obtain the output current of the power supply in each detection cycle;
[0065] The first execution unit 420 is configured to calculate a difference between the preset demand current and the output current when the output current is less than the preset demand current; update the request current according to the difference, generate a request instruction according to the updated request current; and send the request instruction to the power supply;
[0066] The second execution unit 430 is used to change the demand current from the first value to the second value when the output current is greater than or equal to the demand current, and after a preset time period, instruct the current acquisition unit to execute the step of acquiring the output current of the power supply in each detection cycle; the first value is less than the second value.
[0067] In one embodiment of the present application, the charging management module also includes: a coefficient adjustment unit 440, which is used to update the value of the preset adjustment coefficient from the first coefficient to the second coefficient when the second execution unit 430 changes the demand current from the first value to the second value, and the first coefficient is greater than the second coefficient.
[0068] In one embodiment of the present application, the first execution unit 420 is specifically configured to: determine an adjustment value according to the difference, where the adjustment value is positively correlated with the difference; and add the adjustment value to the request current to obtain an updated request current.
[0069] In one embodiment of the present application, the first execution unit 420 is specifically configured to calculate the product of the difference value and a preset adjustment coefficient to obtain an adjustment value.
[0070] In one embodiment of the present application, the second execution unit 430 is specifically configured to update the value of the preset adjustment coefficient from a first coefficient to a second coefficient, where the first coefficient is greater than the second coefficient.
[0071] In one embodiment of the present application, the current acquisition unit 410 is configured to: acquire the rated charging current of the battery module in response to a charging operation; and determine an initial value of the requested current according to the rated charging current of the battery module.
[0072] In one embodiment of the present application, the initial value of the requested current in the first execution unit 420 is 0.
[0073] Figure 5 The structural block diagram of an electronic device provided by an embodiment of the present application is schematically shown.
[0074] According to one aspect of the embodiment of the present application, Figure 5 As shown, an electronic device is provided, which includes a battery module 510 and a battery management module 520. The battery management module 520 is connected to the battery module 510 and is used to control the power supply 530 to charge the battery module 510. The battery management module 520 is used to execute any one of the charging management methods provided in this application. The battery management module 520 corrects and adjusts the requested current I according to the charging management method provided in this application. r .
[0075] Specifically, the actual current demanded by the battery management module 520 is I need , the current demand current I, the corresponding request current I r, according to the requested current I r , the battery management module 520 sends a request instruction to the power supply 530, and the power supply 530 actually outputs a current I o , the charging current detected by the battery management module 520 is I i , I o ≈I i . When I=I need , and I i Stability equals I need After that, the battery management module 520 increases the charging current I i Input battery module 510. The specific details of the electronic device provided in each embodiment of the present application have been described in detail in the embodiment of the corresponding charging management method, and will not be repeated here.
[0076] Figure 6 The following schematically shows a block diagram of a computer system structure for implementing the charging management module of an embodiment of the present application. Figure 6 The computer system 600 of the charging management module shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0077] like Figure 6 As shown, the computer system 600 includes a central processing unit 601 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 602 (ROM) or the program loaded from the storage part 608 into the random access memory 603 (RAM). Various programs and data required for system operation are also stored in the random access memory 603. The central processing unit 601, the read-only memory 602 and the random access memory 603 are connected to each other via a bus 604. An input / output interface 605 (i.e., an I / O interface) is also connected to the bus 604.
[0078] The following components are connected to the input / output interface 605: an input section 606 including a keyboard, a mouse, and the like; an output section 607 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage section 608 including a hard disk; and a communication section 609 including a network interface card such as a local area network card or a modem. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the input / output interface 605 as needed. Removable media 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, and the like, are installed in the drive 610 as needed, so that computer programs read therefrom can be installed into the storage section 608 as needed.
[0079] In particular, according to an embodiment of the present application, the processes described in the various method flow charts can be implemented as computer software programs. For example, an embodiment of the present application includes a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for executing the methods shown in the flow charts. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 609 and / or installed from a removable medium 611. When the computer program is executed by the central processing unit 601, the various functions defined in the system of the present application are performed.
[0080] It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0081] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of the boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0082] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiment of the application, the features and functions of two or more modules or units described above can be concretized in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be concretized.
[0083] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the embodiments of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
[0084] Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0085] It should be understood that the present application is not limited to the exact structures described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A charging management method, characterized in that: Applied to an electronic device, the electronic device includes a battery module, the electronic device is used to receive the output current of a power supply to charge the battery module, and the charging management method includes: In each detection cycle, the output current of the power supply is obtained; If the output current is less than the required current of the battery module, calculating the difference between the required current and the output current; Calculating the product of the difference and a preset adjustment coefficient to obtain an adjustment value, wherein the adjustment value is positively correlated with the difference; Adding the adjustment value to the request current to obtain an updated request current, and generating a request instruction according to the updated request current; sending the request instruction to the power supply, wherein the request instruction is used to instruct the power supply to adjust the output current according to the request current; If the output current is greater than or equal to the demand current, the demand current is changed from the first value to the second value, and after a preset time, the step of obtaining the output current of the power supply in each detection cycle is returned to; the first value is less than the second value; the value of the preset adjustment coefficient is updated from the first coefficient to the second coefficient, and the first coefficient is greater than the second coefficient.
2. The charging management method according to claim 1, wherein: In each detection cycle, before obtaining the output current of the power supply, the following steps are also included: In response to a charging operation, obtaining a rated charging current of the battery module; An initial value of the requested current is determined according to a rated charging current of the battery module.
3. The charging management method according to claim 1, wherein: The initial value of the requested current is 0.
4. A charging management module, characterized in that: The charging management module includes: A current acquisition unit, used to acquire the output current of the power supply in each detection cycle; a first execution unit, configured to, when the output current is less than the demand current of the battery module, calculate a difference between the demand current and the output current; calculate a product of the difference and a preset adjustment coefficient to obtain an adjustment value, wherein the adjustment value is positively correlated with the difference; add the adjustment value to the request current to obtain an updated request current, and generate a request instruction based on the updated request current; and send the request instruction to the power supply, wherein the request instruction is used to instruct the power supply to adjust the output current based on the request current; A second execution unit is configured to change the demand current from a first value to a second value when the output current is greater than or equal to the demand current, and after a preset time period, instruct the current acquisition unit to execute the step of acquiring the output current of the power supply in each detection cycle; the first value is less than the second value; and the value of the preset adjustment coefficient is updated from the first coefficient to the second coefficient, and the first coefficient is greater than the second coefficient.
5. An electronic device, characterized in that: The electronic device includes a battery module and a battery management module, the battery management module is connected to the battery module, the battery management module is used to control the power supply to charge the battery module, and the battery management module is used to execute the charging management method described in any one of claims 1 to 3.
6. A storage medium, characterized in that The storage medium stores a computer program, which, when executed by a processor, implements the charging management method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Gain control method and gain control device for demodulation signals and microcontroller
CN103595445A
Vehicle charging current adjusting method and device
CN112918314A