Charging control method, device, battery management system and electronic equipment

By adjusting the register data of the analog front-end chip in the battery management system, data sampling can be performed normally when the battery state switches, solving the reliability problem caused by the error of the analog front-end chip register data and achieving stable operation of the battery management system.

CN115472935BActive Publication Date: 2025-09-19ECOFLOW INC
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211062335.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-09-19
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In the battery management system, the data in the registers of the analog front-end chip is prone to errors, resulting in reduced reliability.

Method used

A charging control method is provided. Under the condition of battery state switching, the to-be-adjusted registered data is read from a register, the value of the data bit is adjusted to generate the target registered data, and the data is written into the register, thereby ensuring that the analog front-end chip can perform data sampling normally when switching states.

Benefits of technology

The reliability of the analog front-end chip is improved, data errors caused by repeated assignments are avoided, and the stable operation of the battery management system is ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115472935B_ABST
    Figure CN115472935B_ABST
Patent Text Reader

Abstract

The present application discloses a charging control method, device, battery management system and electronic equipment, and relates to the technical field of battery management. The charging control method includes reading the register data to be adjusted from the register when the battery state switching condition of the battery module is met; the register data stored in the register includes a digital signal for instructing the battery module to switch the battery state and for instructing the execution of battery data acquisition; adjusting the value of the first data bit in the register data to be adjusted to the first value, and adjusting the value of the second data bit in the register data to be adjusted to the second value to obtain the target register data; writing the target register data into the register for the analog front-end chip to perform data sampling operations according to the target register data. The present application avoids configuration errors in the register data of the analog front-end chip by adjusting the register data, thereby improving the reliability of the analog front-end chip.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of battery management, and in particular to a charging control method, device, battery management system, and electronic equipment. Background Art

[0002] Energy storage devices are equipped with a battery management system (BMS), which includes at least a controller and an analog front-end (AFE). The AFE is primarily responsible for sampling electrical signals from the battery modules in the energy storage device.

[0003] However, when the battery management system is performing related tasks, the controller in the battery management system may repeatedly assign values ​​to the data in the registers of the analog front-end chip, thereby increasing the risk of errors in the data in the registers of the analog front-end chip and reducing the reliability of the analog front-end chip. Summary of the Invention

[0004] In order to solve the above technical problems, the present application provides a charging control method, device, battery management system and electronic equipment, which to a certain extent solve the problem of reduced reliability of the analog front-end chip due to incorrect data configuration in the register of the analog front-end chip.

[0005] An embodiment of the present application provides a charging control method for controlling the charging of a battery module. The method is applied to a controller in a battery management system. The controller is connected to an analog front-end chip, and the analog front-end chip is provided with a register. The analog front-end chip is used to sample data of parameters of the battery module and store the data in the register. The method includes:

[0006] When a battery state switching condition of the battery module is met, reading the registered data to be adjusted from the register; the registered data stored in the register includes a digital signal for instructing the battery module to switch the battery state and a digital signal for instructing to perform battery data acquisition;

[0007] Adjusting the value of a first data bit in the register data to be adjusted to a first value, and adjusting the value of a second data bit in the register data to be adjusted to a second value, to obtain target register data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery module;

[0008] The target registered data is written into the register, so that the analog front-end chip performs a data sampling operation according to the target registered data.

[0009] In one embodiment, after the step of writing the target registered data into the register so that the analog front-end chip performs a data sampling operation according to the target registered data, the method further includes:

[0010] Acquire the latest written register data from the register of the analog front-end chip;

[0011] Comparing the latest written registered data with the target registered data;

[0012] When the latest registered data written is different from the target registered data, the process returns to the step of writing the target registered data into the register.

[0013] In one embodiment, when the most recently written registered data is different from the new registered data, returning to the step of writing the target registered data into the register includes:

[0014] When it is determined that the latest written registered data is different from the new registered data, obtaining the number of times the target registered data is written into the register;

[0015] When the number of times the target registered data is written into the register is less than a preset threshold, the step of writing the target registered data into the register is performed again.

[0016] In one embodiment, when determining that the most recently written registered data is different from the new registered data, obtaining the number of times the target registered data is written into the register includes:

[0017] When it is determined that the latest written registered data is different from the new registered data, the number of times the step of writing the target registered data into the register is performed is counted to obtain the number of times the target registered data is written into the register.

[0018] In one embodiment, after obtaining the number of times the target registered data is written into the register, the method further includes:

[0019] When the number of times the target registered data is written into the register is greater than the preset threshold, the step of writing the target registered data into the register is stopped.

[0020] In one embodiment, after stopping the step of writing the target registered data into the register when the number of times the target registered data is written into the register is greater than the preset threshold, the method further includes:

[0021] Outputting a communication abnormality signal to indicate that the analog front-end chip has a communication abnormality.

[0022] In one embodiment, the method further comprises:

[0023] Acquiring target battery data obtained by performing a data sampling operation on the battery module by the analog front-end chip;

[0024] The sampling data stored in the register is updated according to the target battery data.

[0025] An embodiment of the present application provides a charging control device for controlling the charging of a battery module. The device is connected to an analog front-end chip, wherein the analog front-end chip is provided with a register. The analog front-end chip is used to sample parameters of the battery module and store the data in the register. The device includes:

[0026] a data reading unit, configured to read the registered data to be adjusted from the register when a battery state switching condition of the battery module is met; the registered data stored in the register includes a digital signal for instructing the battery module to switch the battery state and a digital signal for instructing execution of battery data acquisition;

[0027] a data adjustment unit, configured to adjust the value of a first data bit in the register data to be adjusted to a first value, and to adjust the value of a second data bit in the register data to be adjusted to a second value, to obtain target register data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery module;

[0028] The data writing unit is used to write the target registered data into the register so that the analog front-end chip can perform a data sampling operation according to the target registered data.

[0029] An embodiment of the present application provides a battery management system, comprising: a controller, an analog front-end chip and a switching circuit, wherein the switching circuit is connected in series to the power supply circuit of the battery module; the controller is used to control the on and off of the switching circuit to achieve switching of the battery status of the battery module; the controller is connected to the analog front-end chip, the analog front-end chip is provided with a register, and the controller is used to execute the charging control method described above.

[0030] An embodiment of the present application provides an electronic device, including: a battery module and the battery management system described above.

[0031] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0032] The charging control method provided in an embodiment of the present application is used to control the charging of a battery module. The charging control method is applied to a controller in a battery management system, the controller being connected to an analog front-end chip, which is provided with a register. The analog front-end chip is used to sample parameters of the battery module and store them in the register. When a battery state switching condition of the battery module is met, the method reads the to-be-adjusted registered data from the register, then adjusts the value of the first data bit in the to-be-adjusted registered data to the first value, and adjusts the value of the second data bit in the to-be-adjusted registered data to the second value, thereby obtaining target registered data. Since the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery, the target registered data is written to the register. This ensures that the analog front-end chip can continue to perform data sampling operations on the battery when the battery state is switched to the first state, avoids the phenomenon of repeated assignment errors of data in the register of the analog front-end chip, and thus improves the reliability of the analog front-end chip.

[0033] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification, are used to explain the principles of the present disclosure. Obviously, the drawings described below are only some embodiments of the present disclosure, and those skilled in the art can derive other drawings based on these drawings without inventive effort.

[0035] Figure 1 This is a schematic diagram of the connection relationship between the battery management system and the battery module provided in an embodiment of the present application.

[0036] Figure 2 It is a flow chart of the charging control method provided in an embodiment of the present application.

[0037] Figure 3 It is a flowchart of a charging control method provided in another embodiment of the present application.

[0038] Figure 4 This is a specific flowchart of step S106 in the charging control method provided in another embodiment of the present application.

[0039] Figure 5 This is a flow chart of a charging control method provided in yet another embodiment of the present application.

[0040] Figure 6 It is a structural diagram of the charging control device provided in an embodiment of the present application.

[0041] Figure 7 It is a structural diagram of an electronic device provided in an embodiment of the present application.

[0042] Reference numerals

[0043] Battery management system-100; battery module-200; controller-110;

[0044] Analog front-end chip-120; driver chip-130; switching circuit-140;

[0045] Charging control device-101; data reading unit-10; data adjustment unit-20;

[0046] Data writing unit-30; charging switch-S1; discharging switch-S2;

[0047] Electronic equipment-1000; register-121. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0049] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0050] Those skilled in the art will understand that, unless expressly stated otherwise, the singular forms "a", "an", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of this application refers to the presence of features, integers, steps, operations, elements, units, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, units, modules, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, "connected" or "coupled" as used herein may include wireless connections or wireless couplings. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.

[0051] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with their meanings in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless specifically defined as herein.

[0052] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted.

[0053] Figure 1 This is a schematic diagram of the connection relationship between the battery management system and the battery module provided in the embodiment of the present application. The charging control method provided in the embodiment of the present application is applied to Figure 1 In the battery management system 100 shown, the controller 110 is specifically applied to control the charging and discharging of the battery module 200 .

[0054] like Figure 1 As shown, the battery management system 100 includes a controller 110, an analog front-end chip 120, a driver chip 130, and a switching circuit 140. The switching circuit 140 is provided in the power supply circuit of the battery module 200 and is used to control the charging and discharging of the battery module 200. The controller 110 is connected to the analog front-end chip 120 and the driver chip 130 respectively to control the operation of the analog front-end chip 120 and the driver chip 130. The analog front-end chip 120 is used to collect data on various parameters in the battery module 200, such as the total battery voltage, cell voltage, current, and temperature, and provide the sampled data to the controller 110 for corresponding protection or control. The driver chip 130 is used to drive and control the switching circuit 140. The switching circuit 140 generally includes a charging switch S1 and a discharging switch S2, which are connected in series in the power supply circuit of the battery module 200. It is understood that the analog front-end chip 120 is provided with a register, and the data obtained by the analog front-end chip 120 sampling the parameters of the battery module 200 can also be stored in the register. In one embodiment, the driver chip 130 can also be directly integrated into the controller 110.

[0055] Figure 2 FIG. 1 shows a flow chart of a charging control method provided in an embodiment of the present application. Figure 2 The charging control method includes the following steps:

[0056] S101, when a battery status switching condition of a battery module is met, reading the registered data to be adjusted from a register; the registered data stored in the register includes a digital signal for instructing the battery module to switch the battery status and a digital signal for instructing to execute battery data acquisition.

[0057] In S101, the battery status may include the charging status, discharging status, and standby status (i.e., a state of neither charging nor discharging) of the battery module. In some possible scenarios, the battery status may also include more types of statuses and / or replace certain statuses.

[0058] Correspondingly, the battery state switching condition refers to the condition for switching the battery module to charge or discharge. When implementing the battery state switching, it can specifically be switching the battery charging switch on and off, switching the battery discharging switch on and off, or switching the battery charging switch and discharging switch on and off simultaneously.

[0059] It should be noted that the battery state switching condition generally refers to all conditions that instruct the battery management system to perform a battery state switching operation. For example, the battery state switching condition may be whether another module or host computer other than the battery management system instructs the battery management system to perform a battery state switching operation. In other words, when another module or host computer instructs the battery management system to perform a battery state switching operation, it is determined that the battery state switching condition is met. For another example, the battery state switching condition may also be related to the operating strategy configured by the battery management system itself. In other words, the battery state switching condition may be a battery charge threshold.

[0060] Exemplarily, the battery management system detects the battery power level, and when the current battery power level meets the charging threshold or the discharging threshold, determines that the battery state switching condition is met, and reads the registered data to be adjusted from the register.

[0061] In this embodiment, since the registered data stored in the register includes a digital signal for indicating battery state switching and a digital signal for indicating a battery data acquisition function, when the battery state switching condition is met, the controller can read the registered data from the register and use the registered data as the registered data to be adjusted.

[0062] S102, adjust the value of the first data bit in the register data to be adjusted to the first value, and adjust the value of the second data bit in the register data to be adjusted to the second value to obtain the target register data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform data sampling operations on the battery module.

[0063] In this embodiment, the target registered data represents a digital signal that switches the battery to a first state and causes the analog front-end chip to start sampling data from the battery. The first state generally refers to a battery operating state different from the battery's current operating state, and is not specifically a charging or discharging state.

[0064] It is understandable that, in actual applications, controlling the battery state switching refers to controlling the battery to switch from one state to another, and is not limited to switching between a charging state and a discharging state. That is, when the battery state is switched to a non-charging state, the battery state can be in a discharging state or in a standby state after charging is turned off, and when the battery state is switched to a non-discharging state, the battery state can be in a charging state or in a standby state after discharging is turned off. In an embodiment of the present application, in order to prevent the data sampling operation from failing, while adjusting the value of the first data bit in the register data to be adjusted to the first value, the second data bit in the register data to be adjusted is also adjusted to the second value, because the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery module, so while instructing the analog front-end chip to switch the battery state to the first state according to the first value, it can also instruct the analog front-end chip to start the battery data sampling operation according to the second value.

[0065] Specifically, after the controller reads the register data to be adjusted, the controller can adjust the value of the first data bit in the register data to be adjusted to the first value, and adjust the value of the second data bit in the register data to be adjusted to the second value according to the current state of the battery and the target state to be switched to, to obtain the target register data.

[0066] For example, when the controller detects that the current battery state is charging and the target state to be switched to is standby or discharging, the controller reads the register data to be adjusted from the register in the analog front-end chip. The controller adjusts the value of the first data bit in the register data to be adjusted to a first value, causing the analog front-end chip to switch the battery state from charging to standby or discharging based on the digital signal corresponding to the first value of the first data bit. Simultaneously, the controller adjusts the value of the second data bit in the register data to a second value, causing the analog front-end chip to perform data sampling on the battery based on the digital signal corresponding to the second value of the second data bit.

[0067] In step S102, since the target registered data can be used to represent a digital signal that switches the battery state to the first state and enables the analog front-end chip to perform data sampling operations on the battery, the value of the first data bit is adjusted to the first value, and the value of the second data bit in the registered data to be adjusted is adjusted to the second value, so that the analog front-end chip can perform corresponding battery state switching and battery data collection according to the level state indicated by the digital signal.

[0068] In a specific implementation, the digital signal represented by the value of the second data bit indicates a level state corresponding to whether the analog front-end chip enables or disables the battery data sampling function. For example, when the value of the second data bit is "1," the level state indicated is a high level state, corresponding to the analog front-end chip enabling the battery data sampling function. For another example, when the value of the second data bit is "0," the level state indicated is a low level state, corresponding to the analog front-end chip disabling the battery data sampling function.

[0069] S103 , writing the target registered data into a register, so that the analog front-end chip can perform a data sampling operation according to the target registered data.

[0070] In an embodiment, since the second data bit in the target registered data is a second value, and the second value is used to instruct the analog front-end chip to perform data sampling operations on the battery, that is, after obtaining the target registered data, the controller writes the target registered data into the register to keep the function of the analog front-end chip to perform data sampling operations on the battery turned on.

[0071] Therefore, through the above method, after the controller writes the target registered data into the register, the analog front-end chip can still perform data sampling operations on the battery while switching the state of the battery to the first state according to the target registered data.

[0072] It should be noted that when the battery state switching is controlled by the analog front-end chip, target register data representing a digital signal is written into the register of the analog front-end chip, and then the target register data is used to control the battery's charging switch to be turned on or off, or to control the battery's discharging switch to be turned on or off. Here, the charging switch and the discharging switch can be switching circuits or electronic switching devices, such as switching transistors, respectively connected to the battery. Take the register shown in Table 1 for storing the register data to be adjusted and the register shown in Table 2 for storing the target register data as an example.

[0073] Table 1 shows the storage of the data to be adjusted in the register.

[0074] Data bits No. 7 No. 6 No. 5 No. 4 No. 3 No. 2 No. 1 No. 0 Numerical 0 0 0 0 1 0 0 0

[0075] Table 1 and Table 2 show the storage of target data in registers.

[0076] Data bits No. 7 No. 6 No. 5 No. 4 No. 3 No. 2 No. 1 No. 0 Numerical 0 0 1 0 1 0 0 0

[0077] Table 2

[0078] In this example, the value "0" can correspond to a low-level signal, which can be used to indicate turning off the switch tube, or to indicate turning off the data sampling function of the analog front-end chip for the battery. The value "1" can correspond to a high-level signal, which can be used to indicate turning on the switch tube, or to indicate turning on the data sampling function of the analog front-end chip for the battery. When the controller controls the switch tube to be turned on and off through the analog front-end chip, the controller can first read 8 bits (bits 0 to 7) of register data to be adjusted from the register of the analog front-end chip. As shown in Table 1, the value of the register data to be adjusted is 00001000, and then the controller adjusts the 8 bits of register data to be adjusted. Assume that the 4th and 5th bits in Table 1 are the first data bits, where the value of the 4th bit is used to indicate the on and off of the charging switch tube, the value of the 5th bit is used to indicate the on and off of the discharging switch tube, and the 3rd bit is the second data bit.

[0079] For example, when switching the battery state from standby to discharge, bit 4 in Table 1 can be kept at "0," bit 5 can be adjusted to "1," and bit 3 in Table 1 can be adjusted to "1." The adjusted data is written into the register as the target register data, resulting in the target register data stored in the register as shown in Table 2.

[0080] For another example, when switching the battery state from standby to charging, the fourth bit in Table 1 may be adjusted to "1", the fifth bit to "0", and the third bit to "1". The adjusted data is used as the target register data and written into the register.

[0081] The analog front-end chip outputs corresponding numerical signals to the charging switch and / or discharging switch based on the target register data written into the register, thereby achieving battery state switching control. At this time, because the second data bit of the analog front-end chip is the second value, the analog front-end chip continues to sample battery data while controlling battery state switching. This reduces the possibility of incorrectly assigning a value to the second data bit when repeatedly assigning data to the analog front-end chip's register. This can prevent the battery management system's measurement results from malfunctioning due to the inability to obtain or update battery data.

[0082] Figure 3 FIG. 1 is a flow chart of a charging control method provided by another embodiment of the present application. Figure 3As shown, in another embodiment of the present application, step S103 further includes steps S104 to S106, specifically:

[0083] S104, obtaining the latest written register data from the register of the analog front-end chip.

[0084] In this embodiment, in order to avoid the target registered data being unable to be written or being written incorrectly due to abnormal communication with the analog front-end chip after the target registered data is written to the register, after writing the target registered data to the register, the controller can also obtain the latest written registered data from the register of the analog front-end chip and compare it with the target registered data.

[0085] S105: Compare the latest written registered data with the target registered data.

[0086] In this embodiment, the latest registered data written is compared with the target registered data. Specifically, each bit value in the latest registered data written is compared with each bit value in the target registered data in a one-to-one correspondence.

[0087] In some embodiments, the value of the first data bit and the value of the second data bit can also be determined from the most recently written registered data, the value of the first data bit of the most recently written registered data can be compared with the first data bit in the target registered data, and the value of the second data bit of the most recently written registered data can be compared with the second data bit in the target registered data.

[0088] In specific implementation, the corresponding comparison strategy may be adapted based on the number of bits or specific features of the data stored in the register in order to determine whether the latest written stored data is the same as the target stored data, which is not limited here.

[0089] S106: When the latest registered data written is different from the target registered data, the process returns to the step of writing the target registered data into the register.

[0090] In this embodiment, the latest written register data is compared with the target register data, and when the latest written register data is different from the target register data, the step of writing the target register data into the register is returned to ensure that the analog front-end chip can respond to the digital signal described by the target register data stored in the register.

[0091] Specifically, when the most recently written register data is identical to the target register data, it indicates that there is no data write error or data write omission in the data in the register. When the most recently written register data is different from the target register data, it indicates that there is a data write error or data write omission in the data in the register. The controller rewrites the target register data into the register and repeats the steps of obtaining the most recently written register data from the register of the analog front-end chip and comparing the most recently written register data with the target register data until the most recently written register data output by the controller is identical to the target register data.

[0092] In the charging control method provided by the embodiment of the present application, the controller will reacquire the register data after writing the target register data. At this time, the register data is the latest register data written. The controller then compares the latest register data with the target register data to determine whether the data in the register of the analog front-end chip is consistent with the target register data after the controller writes the target register data. When the latest register data is different from the target register data, it indicates that the data in the register of the analog front-end chip is inconsistent with the target register data. This situation may be caused by a communication anomaly in the front-end analog chip or the data in the register being tampered with. At this time, the controller can reduce the risk of data configuration errors in the register by rewriting the target register data, thereby further improving the reliability of the energy storage device.

[0093] like Figure 4 As shown, Figure 4 This is a schematic diagram of a specific flow chart of step S106 in the charging control method provided in another embodiment of the present application. Figure 4 As shown, step S106 specifically includes:

[0094] S1061: When it is determined that the latest registered data written is different from the new registered data, the number of times the target registered data is written into the register is obtained.

[0095] In this embodiment, the number of times target registered data is written into a register refers to the number of times a certain target registered data is repeatedly written into the register. For example, when the target registered data is first written into the register, the number is counted as 1. After the target registered data is first written into the register, if the step of writing the target registered data into the register is executed again, the number is counted as 2. Similarly, before the next target registered data is written into the register, each execution of the step of writing the target registered data into the register is counted to determine the number of times the target registered data is written into the register.

[0096] As an embodiment, step S1061 specifically includes: when it is determined that the latest written register data is different from the new register data, counting the number of times the step of writing the target register data into the register is executed to obtain the number of times the target register data is written into the register.

[0097] In a specific implementation, a counter can be configured to count the number of times the target register data is written to the register. The counted value is stored in the controller's memory as the number of times the target register data is written to the register. When the controller determines that the most recently written register data is different from the new register data, it can directly obtain the data content corresponding to the number of times from the memory.

[0098] S1062: When the number of times the target registered data is written into the register is less than a preset threshold, the step of writing the target registered data into the register is executed again.

[0099] In this embodiment, when the most recently written register data differs from the new register data, the register data can be corrected by re-performing the step of writing the target register data into the register. Furthermore, by configuring a preset threshold to limit the number of times the step of writing the target register data into the register is repeated, a sufficient number of correction operations can be reserved while preventing excessive correction operations from being invalidated when communication anomalies occur in the analog front-end chip, thereby preventing the front-end analog chip's register data from entering an infinite loop.

[0100] As an embodiment, after step S1061, step S1063 is further included, and step S1063 and step S1062 are parallel steps and are executed in no particular order. In addition, if step S1062 is executed, step S1063 is no longer executed. If step S1063 is executed, step S1062 is no longer executed until step S1061 is executed again.

[0101] S1063 , when the number of times the target registered data is written into the register is greater than a preset threshold, stopping the step of writing the target registered data into the register.

[0102] In this embodiment, the controller obtains the number of times the target registered data is written to the register, and compares the number of times the target registered data is written to the register with a preset threshold. When the number of times the target registered data is written to the register is less than the preset threshold, the controller will allow the step of writing the target registered data into the register to be executed again. When the number of times the target registered data is written to the register is greater than the preset threshold, the controller prohibits the execution of the step of writing the target registered data into the register.

[0103] In a specific implementation, to prevent the controller from being overloaded with data processing due to invalid assignment operations, the user can set the number of repetitions for writing the target register data to the register. For example, if the number of repetitions for writing the target register data to the register is 5, and if all 5 attempts are unsuccessful, the controller can output a device communication anomaly message.

[0104] In one embodiment, after executing step S1063, the charging control method may further include the following steps:

[0105] Outputs a communication abnormality signal, indicating that the analog front-end chip has a communication abnormality.

[0106] In this step, the controller outputs a communication abnormality signal, which can be output to the user's display device via wireless or wired transmission, or can be used as a communication abnormality reminder through an audio and visual alarm (such as LED, buzzer) connected to the controller.

[0107] Figure 5 FIG. 1 is a flow chart of a charging control method provided in another embodiment of the present application. Figure 5 As shown, in Figure 3 Based on the embodiment, the charging control method provided in this embodiment further includes steps S107 to S108. Specifically:

[0108] S107, acquiring target battery data obtained by performing a data sampling operation on the battery module by the analog front-end chip.

[0109] In step S107 , the analog front-end chip performs a data sampling operation on the battery module, specifically, samples the battery module parameters and stores the data in a register of the analog front-end chip.

[0110] In all embodiments of the present application, the battery module parameters may include: total battery voltage, cell voltage, current, and temperature, etc., which are not limited here.

[0111] It is easy to understand that in specific implementations, battery module parameter sampling can also be achieved by combining an analog front-end chip with other detection circuits, sampling circuits, sensors, etc. For example, the total battery voltage, cell voltage, current, etc. can be sampled using a voltage sampling circuit or a current sampling circuit.

[0112] S108 , updating the sampled data stored in the register according to the target battery data.

[0113] In the charging control method provided in the embodiment of the present application, the controller obtains the target battery data obtained by the analog front-end chip performing data sampling operations on the battery, and updates the sampling data stored in the register according to the target battery data, thereby avoiding the phenomenon of calculation errors in the battery management system due to the inability to update the sampling data, and further improving the reliability of the analog front-end chip.

[0114] Figure 6 Schematic diagram of the structure of the charging control device provided in the embodiment of the present application. The charging control device 101 provided in the embodiment of the present application is connected to the analog front-end chip, which is provided with a register. The analog front-end chip is used to sample the parameters of the battery module and store them in the register. Figure 6 As shown, the charging control device 101 includes: a data reading unit 10, a data adjustment unit 20 and a data writing unit 30. Specifically:

[0115] The data reading unit 10 is used to read the registered data to be adjusted from the register when the battery status switching condition of the battery module is met; the registered data stored in the register includes a digital signal for instructing the battery module to switch the battery status and a digital signal for instructing the execution of battery data acquisition.

[0116] The data adjustment unit 20 is used to adjust the value of the first data bit in the to-be-adjusted registered data to a first value, and to adjust the value of the second data bit in the to-be-adjusted registered data to a second value, to obtain target registered data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform data sampling operations on the battery module.

[0117] The data writing unit 30 is used to write the target registered data into the register, so that the analog front-end chip can perform a data sampling operation according to the target registered data.

[0118] It can be understood that each unit in the charging control device 101 provided in this embodiment corresponds one-to-one to the steps of the charging control method provided in this embodiment. Since the charging control method has been described in detail in the above method embodiment, please refer to the above method embodiment for details and will not be repeated here.

[0119] like Figure 7 As shown, Figure 7 1 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device 1000 provided in an embodiment of the present application includes: a battery module 200 and a battery management system 100. The battery management system 100 includes:

[0120] The controller 110, the analog front-end chip 120 and the switching circuit 140 are connected in series to the power supply circuit of the battery module 200; the controller 110 is used to control the on and off of the switching circuit 140 to achieve the switching of the battery status of the battery module 140; the controller 110 is connected to the analog front-end chip 120, and the analog front-end chip 120 is provided with a register. The controller 110 is used to execute the charging control method provided in the above embodiment.

[0121] In a specific implementation, a driver chip 130 adapted to the switch circuit 140 can be configured in the battery management system 100. The driver chip 130 is connected between the controller 110 and the switch circuit 140. When the controller 110 controls the on and off of the switch circuit 140, it can send a control signal to the driver chip 140, causing the driver chip 130 to generate a corresponding drive signal, thereby controlling the charging switch S1 and / or the discharging switch S2 in the switch circuit 140.

[0122] In the battery management system 100 provided in the embodiment of the present application, the controller 110 writes the target registered data into the register so that the registered data in the register is always the target registered data, so that the battery data sampling function of the analog front-end chip 120 for the battery module 200 is turned on, which facilitates the battery management system 100 to obtain the battery data of the battery module 200 through the analog front-end chip 120.

[0123] In this embodiment, the battery module 200 in the electronic device 1000 is connected to the charging switch S1 and the discharging switch S2, the analog front-end chip 120 is connected to the driving chip 130, the driving chip 130 is connected to the charging switch S1 and the discharging switch S2, and the analog front-end chip 120 is provided with a register 121.

[0124] It is understandable that both the charging switch S1 and the discharging switch S2 can be implemented by switching tube devices with switching functions, such as MOS tubes and triodes.

[0125] The electronic device provided in the embodiment of the present application writes the target registered data into the register 121 of the analog front-end chip 120 through the battery management system 100, so that the registered data in the register 121 is always in the target registered data, so that the battery data sampling function of the analog front-end chip 120 for the battery module 200 is turned on, and the battery management system 100 can obtain the battery data of the battery module 200 by instructing the analog front-end chip 120, thereby improving the reliability of the electronic device 1000.

[0126] An embodiment of the present application further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed, the charging control method in any of the above embodiments is implemented.

[0127] In the above embodiments provided in this application, those skilled in the art should understand that the disclosed methods, devices, battery management systems, electronic devices, and computer-readable storage media can be implemented in other ways. For example, the device embodiments described above are merely illustrative.

[0128] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing device, or each component may exist physically separately, or two or more units may be integrated into a single device. The aforementioned integrated device may be implemented in the form of hardware or software functional units.

[0129] If the integrated device 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 technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0130] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0131] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A charging control method for controlling the charging of a battery module, characterized in that: The method is applied to a controller in a battery management system, wherein the controller is connected to an analog front-end chip, wherein the analog front-end chip is provided with a register, and the analog front-end chip is used to sample data of parameters of the battery module and store the data in the register; the method comprises: When a battery state switching condition of the battery module is met, reading the to-be-adjusted registered data from the register; the to-be-adjusted registered data includes a digital signal for instructing the battery module to switch the battery state and a digital signal for instructing to execute battery data acquisition; Adjusting the value of a first data bit in the register data to be adjusted to a first value, and adjusting the value of a second data bit in the register data to be adjusted to a second value, to obtain target register data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery module; The target registered data is written into the register, so that the analog front-end chip performs a data sampling operation according to the target registered data.

2. The charging control method according to claim 1, wherein: After the step of writing the target registered data into the register so that the analog front-end chip performs a data sampling operation according to the target registered data, the method further includes: Acquire the latest written register data from the register of the analog front-end chip; Comparing the latest written registered data with the target registered data; When the latest registered data written is different from the target registered data, the process returns to the step of writing the target registered data into the register.

3. The charging control method according to claim 2, wherein: When the latest registered data written is different from the target registered data, returning to execute the step of writing the target registered data into the register comprises: When it is determined that the latest written registered data is different from the target registered data, obtaining the number of times the target registered data is written into the register; When the number of times the target registered data is written into the register is less than a preset threshold, the step of writing the target registered data into the register is performed again.

4. The charging control method according to claim 3, wherein: When it is determined that the latest written registered data is different from the target registered data, obtaining the number of times the target registered data is written into the register includes: When it is determined that the latest written registered data is different from the target registered data, the number of times the step of writing the target registered data into the register is performed is counted to obtain the number of times the target registered data is written into the register.

5. The charging control method according to claim 3, wherein: After obtaining the number of times the target registered data is written into the register, the method further includes: When the number of times the target registered data is written into the register is greater than the preset threshold, the step of writing the target registered data into the register is stopped.

6. The charging control method according to claim 4, wherein: After stopping the step of writing the target registered data into the register when the number of times the target registered data is written into the register is greater than the preset threshold, the method further includes: Outputting a communication abnormality signal to indicate that the analog front-end chip has a communication abnormality.

7. The charging control method according to claim 1, wherein: The method further comprises: Acquiring target battery data obtained by performing a data sampling operation on the battery module by the analog front-end chip; The sampling data stored in the register is updated according to the target battery data.

8. A charging control device for controlling the charging of a battery module, characterized in that: The device is connected to an analog front-end chip, which is provided with a register. The analog front-end chip is used to sample the parameters of the battery module and store them in the register. The device includes: a data reading unit, configured to read the registered data to be adjusted from the register when a battery state switching condition of the battery module is met; the registered data to be adjusted includes a digital signal for instructing the battery module to switch the battery state and a digital signal for instructing execution of battery data acquisition; a data adjustment unit, configured to adjust the value of a first data bit in the register data to be adjusted to a first value, and to adjust the value of a second data bit in the register data to be adjusted to a second value, to obtain target register data; the first value of the first data bit is used to instruct the analog front-end chip to switch the battery state to the first state, and the second value of the second data bit is used to instruct the analog front-end chip to perform a data sampling operation on the battery module; The data writing unit is used to write the target registered data into the register so that the analog front-end chip can perform a data sampling operation according to the target registered data.

9. A battery management system, characterized in that: include: A controller, an analog front-end chip and a switching circuit, wherein the switching circuit is connected in series to the power supply circuit of the battery module; the controller is used to control the on and off of the switching circuit to achieve switching of the battery status of the battery module; the controller is connected to the analog front-end chip, and the analog front-end chip is provided with a register, and the controller is used to execute the charging control method according to any one of claims 1 to 7.

10. An electronic device, characterized in that: include: A battery module and a battery management system as claimed in claim 9.

Citation Information

Patent Citations

  • AFE data acquisition automatic scheduling method based on BMS, storage device and mobile terminal

    CN112882415A

  • Group battery intelligent management system suitable for new forms of energy car

    CN205407331U