Battery pack control method, electronic device, and computer-readable storage medium
By sending control instructions to the battery pack and obtaining switch status information, the problem of device damage caused by the battery pack's inability to feedback working information is solved, and the safety and reliability of the battery pack are achieved.
Patent Information
- Application Number
- CN202211014119.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-23
- Publication Date
- 2025-09-19
- Estimated Expiration
- 2042-08-23
AI Technical Summary
When the battery packs are switched in parallel, the battery packs cannot feedback the working information of the switching elements, resulting in damage to the devices.
By sending a control instruction carrying switch control information to the target battery pack, the switch status information is obtained to determine whether the battery pack is in a fault state, and a disable instruction is sent to disable the target battery pack in case of a fault to avoid device damage.
The safety of the battery pack is improved, device damage is prevented, and the normal operation of the battery pack is ensured.
Smart Images

Figure CN115313314B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of battery management, and in particular relates to a battery pack control method, an electronic device, and a computer-readable storage medium. Background Art
[0002] Currently, battery pack BMS (Battery Management System) boards use charging and discharging MOSFETs as switching elements. These switches connect B+ / B- (battery terminal voltage) and P+ / P- (output voltage) to control the battery pack's output or charging signal input. Each parallel battery pack turns its corresponding switching element on or off based on commands sent from the control center.
[0003] Currently, during parallel switching, if a battery pack communication failure or an analog front-end problem occurs, the battery pack cannot provide feedback on the operating status of the switching elements, which can easily damage the components in the battery pack. Preventing component damage during battery pack control has long been a pressing technical challenge for those skilled in the art.
[0004] The preceding description is intended to provide general background information and does not necessarily constitute prior art. Summary of the Invention
[0005] In order to solve the above technical problems, the present invention provides a battery pack control method, an electronic device and a computer-readable storage medium to solve the problem that the battery pack cannot feedback the working information of the switching elements during parallel switching, which causes damage to the devices in the battery pack.
[0006] The present invention solves the technical problem by adopting the following technical solutions:
[0007] The present invention provides a battery pack control method, which includes the following steps:
[0008] Sending a control instruction carrying switch control information to a target battery pack at a preset frequency, wherein the control instruction is used to instruct the target battery pack to perform a state switching operation of the first switch;
[0009] acquiring switch status information of the first switch returned by the target battery pack, and determining whether the target battery pack is in a fault state according to the switch control information and the switch status information;
[0010] When it is determined that the target battery pack is in a fault state, a disable instruction is sent to the target battery pack, where the disable instruction is used to instruct the target battery pack to perform a state switching operation of the second switch, so that the target battery pack is disabled.
[0011] Furthermore, determining whether the battery pack is in a fault state according to the switch control information and the switch state information includes:
[0012] When the switch state in the acquired switch state information is inconsistent with the switch state in the switch control information within a first preset time, it is determined that the target battery pack is in a fault state.
[0013] Furthermore, the battery pack control method further includes:
[0014] When the switch status information is not acquired within the first preset time, it is determined that the target battery pack is in a fault state.
[0015] Furthermore, the battery pack control method further includes:
[0016] Obtain the historical timeout count of the target battery pack;
[0017] When the switch status information is not obtained within the preset time, the historical timeout count is incremented by one to obtain the current timeout count;
[0018] When the current timeout number is greater than the timeout upper limit threshold, the target battery pack is marked as a faulty battery pack.
[0019] Furthermore, after sending the disable instruction to the target battery pack, the method includes:
[0020] Start the timer;
[0021] When the re-enabling instruction is obtained, determining whether the timing information reaches the preset timing information;
[0022] If so, the reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
[0023] Furthermore, after sending the disable instruction to the battery pack, the method includes:
[0024] If a re-enabling instruction is obtained, obtaining temperature information of the first switch in the target battery pack;
[0025] After determining that the temperature information is less than a temperature threshold, the reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
[0026] Furthermore, before sending the control instruction carrying the switch control information to the target battery pack at the preset frequency, the method further includes:
[0027] Upon receiving an execution instruction, obtaining a target battery pack pointed to in the execution instruction;
[0028] generating a driving instruction according to the execution instruction, and sending the driving instruction to the target battery pack, wherein the driving instruction is used to instruct the target battery pack to set the state of the second switch to the on state;
[0029] When the state information indicating that the second switch is turned on is received from the target battery pack within the second preset time, the step of sending the control instruction carrying the switch control information to the target battery pack at the preset frequency is executed.
[0030] Furthermore, the battery pack control method further includes:
[0031] If the target battery pack does not receive status information indicating that the second switch is turned on within the second preset time, or if the target battery pack receives status information indicating that the second switch is not turned on within the second preset time, the target battery pack is marked as a faulty battery pack.
[0032] The present invention also provides a battery pack control device, which includes:
[0033] An instruction sending module, the instruction sending module is used to send control instructions to the battery pack at a preset frequency, the control instructions are used to control the opening or closing of a charging switch or a discharging switch of the battery pack;
[0034] a status acquisition module, the status acquisition module being used to acquire status information sent back by the battery pack, the status information being used to indicate an open or closed state of the charging switch or the discharging switch;
[0035] A battery pack disabling module is used to generate a disabling instruction based on the fault state if it is determined that the battery pack is in a fault state based on the status information, and send the disabling instruction to the battery pack. The disabling instruction is used to control the battery pack in the fault state to be disconnected from use.
[0036] The present invention also provides an electronic device, which includes a battery pack, a processor, and a memory:
[0037] The processor is used to execute the computer program stored in the memory to implement the battery pack control method as described above.
[0038] The present invention also provides a computer-readable storage medium having computer-readable instructions stored thereon. When the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute any of the methods described above.
[0039] The present application provides a method for controlling a battery pack. This method sends a control instruction carrying switch control information to a target battery pack at a preset frequency, then obtains switch status information of a first switch returned by the target battery pack. When the target battery pack is determined to be in a faulty state based on the switch control information and the switch status information, a disable instruction is sent to the target battery pack, causing the target battery pack to switch the state of a second switch, thereby disabling the target battery pack. In an embodiment of the present application, the method detects the operating state of the battery pack's switch elements by sending a control instruction to the target battery pack to obtain the switch status information of the first switch, and determines the target battery pack's operating state based on the switch status information of the first switch and the switch control information. When the operating state of the target battery pack is determined to be a faulty state, the method disables the target battery pack by sending a disable instruction to the target battery pack, thereby preventing damage to components in the battery pack and further improving the safety of the battery pack.
[0040] The above description is only an overview of the technical solution of the present invention. To enable a clearer understanding of the technical means of the present invention, which can be implemented in accordance with the contents of the description, and to make the above and other objects, features, and advantages of the present invention more apparent and easy to understand, the following preferred embodiments are specifically described in detail with reference to the accompanying drawings. It should be understood that the above general description and the following detailed description are merely exemplary and explanatory and do not limit the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0042] Figure 1 A schematic structural diagram of a battery pack shown in an embodiment of the present application;
[0043] Figure 2 A schematic diagram of the structure of a battery pack control system shown in an embodiment of the present application
[0044] Figure 3 A flowchart of a battery pack control method according to an embodiment of the present application is shown;
[0045] Figure 4 This is a flow chart of steps S401 to S403 in a battery pack control method according to an optional embodiment of the present application;
[0046] Figure 5 This is a flow chart of steps S501 to S503 in a battery pack control method according to an optional embodiment of the present application;
[0047] Figure 6 This is a flow chart of steps S604 to S605 in the battery pack control method according to an optional embodiment of the present application;
[0048] Figure 7 This is a flow chart of steps S701 to S703 in a battery pack control method according to an optional embodiment of the present application;
[0049] Figure 8 This is a schematic structural diagram of a battery pack control device according to an embodiment of the present application;
[0050] Figure 9 This is a schematic structural diagram of an electronic device shown in an embodiment of the present application.
[0051] Reference numerals
[0052] 10: Command sending module;
[0053] 20: Status acquisition module;
[0054] 30: Battery pack disabled module;
[0055] 40: processor;
[0056] 50: Memory. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the embodiments described are only some embodiments of the present invention, rather than all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0058] The embodiments of the present invention are further described below in conjunction with the accompanying drawings.
[0059] The battery pack control method provided in the present application can be applied to a control center, wherein the control center can be a single-chip microcomputer or a chip with signal control capabilities, and the control center monitors and controls multiple battery packs controlled in parallel. In some embodiments, the control center can be an energy management system EMS (Energy Management System) in the battery pack, which can perform data analysis, data monitoring, etc. on various data provided by the BMS in the battery pack. In some embodiments, the battery pack control method provided in the present application can be used in the case where multiple battery packs are used in parallel, and the case where multiple battery packs are used in parallel can be that multiple battery packs are connected together through a bus, and uniformly receive instructions from the control center to charge or discharge.
[0060] like Figure 1 As shown, the battery pack of the embodiment of the present application includes: a battery module 101 and a battery management system BMS102, the battery management system BMS102 includes a charging MOS tube S1 and a discharging MOS tube S2, wherein the battery management system BMS can control the battery module 101 to output voltage and current to the load, or control the external power supply to input voltage and current to the battery pack by controlling the discharging MOS tube and the discharging MOS tube. Figure 1 In the embodiment, the battery module 101 includes one or more battery cells BAT, which are assembled in parallel or in series to obtain the battery module 101. The battery module 101 performs charge and discharge operations under the control of the battery management system 102. Figure 1 In FIG, the output terminals of the battery module 101 are represented by B+ and B-, and the connection terminals between the battery pack and the load are represented by P+ and P-.
[0061] Currently, because the control center sends unified instructions to all battery packs, if a battery pack experiences a communication failure while executing the instructions sent by the control center and is unable to return operating information to the control center, the control center will continue to wait for the operating information returned by the battery pack with communication failure, causing the control center's control of the non-faulty battery pack to enter a waiting control or timeout control state. When the battery pack waits for a timeout, the charging MOS transistor and the discharging MOS transistor are in a state where one MOS transistor is disconnected and the other MOS transistor is turned on (that is, when the charging MOS transistor is turned on, the discharging MOS transistor is disconnected, or when the charging MOS transistor is disconnected, the discharging MOS transistor is turned on). Current flows through the body diode of the disconnected MOS transistor. Over time (typically 10 seconds) and as the body diode temperature changes, damage to the device and the battery pack occurs.
[0062] In order to avoid damage to the device and battery pack and further improve the safety of the battery pack, the present application provides the following Figure 2 A battery pack control system as shown. Figure 2As shown, the battery pack control system includes a control center, which is connected to each battery pack via a CAN bus. Specifically, multiple battery packs are connected together via the CAN bus, and a master battery pack is arbitrated through a preset arbitration protocol. The master battery pack implements the control method of the control center mentioned in this application. The master battery pack sends relevant control instructions to each battery pack separately via the CAN bus. Specifically, Figure 2 As shown, the master battery pack sends control instructions to battery pack 1 through port 1, and receives information fed back from battery pack 1 through port 1, and so on for other battery packs. It should be noted that in this application, assuming that battery pack 1 is used as the master battery pack, the energy management system EMS in the battery pack 1 realizes the function of the control center, and the energy management system EMS of the master battery pack sends control instructions to its own battery management system and receives relevant information fed back by the battery management system. Figure 2 and Figure 3 , the embodiment itself provides a battery pack control method, which can be applied to a control center.
[0063] like Figure 3 FIG. 1 is a flow chart of a battery pack control method according to an embodiment of the present application. The battery pack control method includes the following steps:
[0064] S10 , sending a control instruction carrying switch control information to a target battery pack at a preset frequency, where the control instruction is used to instruct the target battery pack to perform a state switching operation of a first switch.
[0065] In this embodiment, the first switch can be a charging MOSFET or a discharging MOSFET. The control center sends control instructions to the target battery pack at a preset frequency. These control instructions can instruct the first switch to turn on or off. For example, in this step, when the control center needs to discharge battery pack 1, it first sends a control instruction to turn on discharging MOSFET S2 to the battery management system of battery pack 1. Upon receiving the control instruction, battery pack 1 turns on discharging MOSFET S2 and sends back information indicating that the discharging MOSFET is turned on to the control center. At this point, the battery module 101 outputs an electrical signal through the body diode of charging MOSFET S1 and discharging MOSFET S2. After determining that discharging MOSFET S2 is turned on, the control center sends a control instruction to turn on charging MOSFET S1 at a preset frequency and detects whether it receives switch status information from battery pack 1 indicating that charging MOSFET S1 is turned on. Charging MOSFET S1 is referred to as the first switch in this step.
[0066] S20 , acquiring switch status information of the first switch returned by the target battery pack, and determining whether the target battery pack is in a fault state according to the switch control information and the switch status information.
[0067] In this embodiment, the control center can obtain or collect information about the on / off status of the first switch of the target battery pack, and then determine the target battery pack status based on the switch control information of the control center and the switch status information of the first switch. For example, if the switch status information of the first switch indicates on, and the switch control information of the control center also indicates turning on the first switch, then the target battery pack is in a non-faulty state. In this step, the control center determines whether the target battery pack is in a faulty state by: determining that the target battery pack is in a faulty state when the switch status in the obtained switch status information is inconsistent with the switch status in the switch control information within a first preset time. Alternatively, determining that the target battery pack is in a faulty state when no switch status information is obtained within the first preset time.
[0068] S30: When it is determined that the target battery pack is in a fault state, a disable instruction is sent to the target battery pack, where the disable instruction is used to instruct the target battery pack to perform a state switching operation of the second switch, so that the target battery pack is disabled.
[0069] In this embodiment, when the control center determines that a target battery pack has failed, it sends a disable instruction to the target battery pack (i.e., the failed battery pack). This disable instruction switches the state of the second switch from being in an on state to being in an off state. This stops the target battery pack from operating, even if the failed battery pack stops operating. This allows for rapid detection of the failed battery pack when a target battery pack fails. Once the failed battery pack is identified, it is deactivated to prevent damage to components within the battery pack and further improve battery pack safety.
[0070] An embodiment of the present application provides a battery pack control method that sends a control instruction carrying switch control information to a target battery pack at a preset frequency, then obtains switch status information of a first switch returned by the target battery pack. When the target battery pack is determined to be in a fault state based on the switch control information and the switch status information, a disable instruction is sent to the target battery pack, causing the target battery pack to perform a state switching operation of a second switch, thereby disabling the target battery pack. This embodiment detects the operating state of the battery pack's switch components by sending a control instruction to the target battery pack to obtain the switch status information of the first switch, and then determines the target battery pack's operating state based on the switch status information of the first switch and the switch control information. When the operating state of the target battery pack is determined to be a fault state, a disable instruction is sent to the target battery pack to disable the target battery pack, thereby preventing damage to components in the battery pack and further improving the safety of the battery pack.
[0071] Figure 4Another embodiment provided by the present application is shown. In this embodiment, the battery pack control method further includes:
[0072] S401: Obtain the historical timeout count of the target battery pack.
[0073] In this step, the control center obtains the historical timeout count of the target battery pack when controlling the target battery pack. For example, when the control center controls battery pack 2, the control center obtains the historical timeout count Num2 of battery pack 2.
[0074] S402: When the switch status information is not obtained within a preset time, the historical timeout count is increased by one to obtain the current timeout count.
[0075] In this step, the control center sends a control instruction carrying switch control information to the target battery pack at a preset frequency, and then checks whether the switch status information returned by the target battery pack is obtained within a preset time. If the control center does not receive the switch status information returned by the target battery pack within the preset time, the historical timeout count of the target battery pack is increased by one. For example, if the control center does not receive the switch status information returned by battery pack 2 within the preset time while controlling battery pack 2, the historical timeout count Num2 of battery pack 2 is updated, that is, Num2 = Num2 + 1.
[0076] S403: When the current timeout count is greater than the timeout upper threshold, the target battery pack is marked as a faulty battery pack.
[0077] In this step, if the control center determines that the historical timeout count for the target battery pack updated in step S402 exceeds the upper timeout threshold, the target battery pack is marked as a faulty battery pack and disabled. For example, in step S402, if the control center determines that the historical timeout count Num2 for battery pack 2 is 5, then it determines that the historical timeout count for battery pack 2 exceeds the upper timeout threshold. Battery pack 2 is marked as a faulty battery pack and is not operated during subsequent use. In this embodiment, after marking the target battery pack as a faulty battery pack, the control center may issue a warning or prompt. For example, the control center may change the green icon for battery pack 2 on the display module to a red icon, or push a relevant reminder message to the operator's handheld device to notify the operator that battery pack 2 is currently in a faulty state. In this embodiment, after marking the target battery pack, the control center will issue a warning or indication of the faulty battery pack, for example, by indicating the faulty battery through an LED light, and then wait for the user to replace or repair the faulty battery pack.
[0078] Figure 5Another embodiment provided by the present application is shown. After sending the disable instruction to the target battery pack, the battery pack control method further includes:
[0079] S501, start timing.
[0080] In this step, after the control center sends a disable command to the target battery pack, it will start timing the target battery pack individually. For example, after the control center disables battery pack 2, it will start timing the battery pack 2 individually. Specifically, after the control center sends the disable command to battery pack 2, it begins timing using its own clock module.
[0081] S502: When the re-enabling instruction is obtained, it is determined whether the timing information reaches the preset timing information.
[0082] In this step, when the control center receives the restart instruction triggered by the user for the target battery pack, it determines whether the timing information in step S501 reaches the preset timing information. Specifically, the control center will pre-set a preset timing information, and the preset timing information is set according to the controllable components of the target battery pack. For example, when it is necessary to control the charging MOS tube and the discharging MOS tube in the target battery pack, the preset timing information indicates the recovery time of the charging MOS tube or the discharging MOS tube after protection. For example, the body diode of the charging MOS tube causes heat after a large current passes through it, so a cooling time needs to be set. The cooling time is the preset timing information referred to in this step.
[0083] S503: If the condition is met, a reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
[0084] In this step, after determining that the timing information of step S502 reaches the preset timing information, the control center sends the re-enabling instruction to the target battery pack pointed to by the re-enabling instruction, so that the target battery pack performs the corresponding charging or discharging operation according to the re-enabling instruction.
[0085] In this embodiment, the reactivation instruction may be a discharge instruction, that is, the target battery pack performs a discharge operation according to the reactivation instruction.
[0086] Figure 6 Another embodiment of the present application is shown, and after sending a disable instruction to a target battery pack, the steps include:
[0087] S604: If a reactivation instruction is obtained, obtain temperature information of the first switch in the target battery pack.
[0088] In this step, when the control center receives the restart instruction for the target battery pack, it obtains the temperature information of the first switch in the target battery pack. Specifically, after the control center disables the target battery pack, when it receives the restart instruction for the target battery pack, it needs to determine the temperature information of the first switch in the target battery pack. The temperature information is used to indicate whether the first switch meets the opening condition. In actual application, see Figure 1 When the battery pack needs to be discharged, the first switch is S1 and the second switch is S2. Switch S1 is a discharge MOS transistor, and switch S2 is a charge MOS transistor. When the battery pack needs to be discharged, the charge MOS transistor S2 is closed first. At this time, the current of the battery BAT flows through the body diode of the discharge MOS transistor S1. When the control center cannot control the closure of the charge MOS transistor S1, the current continues to flow through the body diode of the discharge MOS transistor S1, causing the temperature of the discharge MOS transistor S1 to rise. To prevent the temperature from rising and burning the discharge MOS transistor S1, the control center disconnects the charge MOS transistor S2 to break the circuit. When the control center receives the re-enablement instruction, it will obtain the temperature information of the discharge MOS transistor S1 to determine whether the discharge MOS transistor S1 has met the opening condition.
[0089] S605 : After determining that the temperature information is less than the temperature threshold, a reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
[0090] In this step, when the control center determines that the temperature information of the discharge MOS transistor S1 is lower than the temperature threshold, it determines that the discharge MOS transistor S1 has met the start-up condition, and then sends the re-enabling instruction to the target battery pack. After receiving the re-enabling instruction, the target battery pack controls the discharge MOS transistor S1 and the charge MOS transistor S2 to perform related operations according to the re-enabling instruction.
[0091] Figure 7 Another embodiment provided by the present application is shown, in which, before sending a control instruction carrying switch control information to a target battery pack at a preset frequency, the steps further include:
[0092] S701: When an execution instruction is received, obtain the target battery pack pointed to in the execution instruction.
[0093] In this step, when the control center receives the execution instruction for the battery pack, it obtains the target battery pack pointed to by the execution instruction. Figure 1 and Figure 2When the control center receives the execution instruction, it obtains the number of the target battery pack of the execution instruction. When the number is 2, it indicates that the execution instruction is used to drive the battery pack 2 to perform the relevant operation. In this embodiment, the execution instruction is used to instruct the charging MOS transistor S2 in the battery pack 2 to close and conduct.
[0094] S702 : Generate a driving instruction according to the execution instruction, and send the driving instruction to the target battery pack, where the driving instruction is used to instruct the target battery pack to set the state of the second switch to the on state.
[0095] In this step, when the control center determines that the execution instruction is directed to the battery pack 2, it will generate a driving instruction for driving the second switch in the battery pack 2 to turn on according to the execution instruction. After receiving the driving instruction, the target battery pack will control the second switch to close according to the driving instruction. Figure 1 After receiving the driving instruction, the battery pack 2 controls the charging MOS tube S2 to be closed.
[0096] S703 , when receiving the second switch-on status information from the target battery pack within the second preset time, executing the step of sending a control instruction carrying the switch control information to the target battery pack at a preset frequency.
[0097] In this step, after receiving status information from the target battery pack confirming that the second switch has been fully activated, the control center will return to the aforementioned step of sending control instructions carrying switch control information to the target battery pack at a preset frequency, and its subsequent steps. In some embodiments, if the control center does not receive status information from the target battery pack indicating that the second switch has been activated within a second preset time period, or receives status information from the target battery pack indicating that the second switch has not been activated within a second preset time period, the control center will mark the target battery pack as a faulty battery pack and will not perform any other operations on the faulty battery pack in subsequent steps.
[0098] In the above embodiments provided by this application, a control center is used (the control center is one of the battery packs in parallel, and the energy management system in the battery pack serves as the control center) to communicate with the battery pack and control the relevant MOS tubes in the battery pack to be turned on or off through the control center. Figure 2 The difference between the technical solution provided by the embodiment of the present application and the traditional technology is that each battery pack is connected to the control center through a port for one-to-one information interaction, avoiding the problem of MOS tube heating caused by communication between the battery pack and the control center in the traditional technology, which leads to equipment abnormality.
[0099] In some embodiments, each parallel battery pack is connected to the control center via a communication bus, which may be a CAN bus or other communication bus. The control center sends instructions and receives status feedback from each battery pack via the CAN bus. Figure 2 , the method provided in the embodiment of the present application is further explained through detailed examples:
[0100] 1. The control center continuously sends command A to battery pack 1 through port 1 (command A, for example, control Figure 1 The charging MOS tube in the control center is turned on) and the timing starts at 0s. The control center sends command A through port 1 at a frequency of 10ms;
[0101] 2. The control center receives the status returned by battery pack 1 through port 1. Assuming that the status returned by battery pack 1 is B (the charging MOS tube did not execute according to instruction A and returned status B), the control center continuously detects whether it receives status A returned by battery pack 1 through port 1 within 3 seconds. Assuming that the status returned by battery pack 1 received by the control center through port 1 within 3 seconds is always B, battery pack 1 is controlled to be disabled (disabling battery pack 1 means disconnecting the discharge MOS tube of battery pack 1 because the charging MOS tube is not controlled at this time, so the discharge MOS tube needs to be disconnected);
[0102] 3. If the control center receives the status A from battery pack 1 through port 1 within 3 seconds, it determines that the interaction is correct and the program ends;
[0103] 4. If the control center does not receive status A sent back by battery pack 1 through port 1 within 3 seconds, the control center controls battery pack 1 to be disabled and records the timeout number n.
[0104] 5. Assuming that the control center decides to re-enable battery pack 1 after 10 seconds (the 10 seconds is a preset cooling time to allow the charging and discharging MOS tubes of battery pack 1 to cool down) (starting from the time when the timeout is determined), then return to step 1. Assuming that the control center decides to re-enable battery pack 1 within the 7th second, the control center does not send instruction A to battery pack 1 through port 1 until 10 seconds later and returns to step 1.
[0105] 6. In step 4, each time the timeout occurs, the timeout number n=n+1 is updated. When n=3, the battery pack 1 is not used until the battery pack 1 connected to the port 1 is unplugged and the algorithm is restarted.
[0106] The control logic of other ports and battery packs is consistent with the above steps.
[0107] The battery pack control method provided in the embodiments of the present application may be used in the following scenarios:
[0108] a: Battery pack 1 is inserted into the control center. If the control center cannot control the charging MOS tube and the discharging MOS tube of the battery pack 1, an alarm will be issued after trying the above steps.
[0109] b: Battery pack 1 is properly connected to the control center and has been running for a period of time. If the parallel control center can control one of the MOS tubes but the other cannot, perform the above steps and then disconnect the MOS tube that can be normally controlled.
[0110] The battery pack control device provided in the embodiment of the present application is as follows: Figure 8 FIG. 1 is a schematic diagram of the structure of a battery pack control device according to an embodiment of the present application. The battery pack control device may include:
[0111] An instruction sending module 10, the instruction sending module 10 is used to send control instructions to the battery pack at a preset frequency, the control instructions being used to control the opening or closing of a charging switch or a discharging switch of the battery pack;
[0112] A status acquisition module 20 is configured to acquire status information sent back by the battery pack, wherein the status information indicates whether the charging switch or the discharging switch is open or closed;
[0113] The battery pack disabling module 30 is used to generate a disabling instruction according to the fault state if it is determined that the battery pack is in a fault state according to the status information, and send the disabling instruction to the battery pack. The disabling instruction is used to control the battery pack in the fault state to be disconnected from use.
[0114] In the battery pack control device provided in the embodiment of the present application, the relevant specific implementation steps of the instruction sending module 10, the status acquisition module 20 or the battery pack disabling module 30 can refer to the other steps in the battery pack control method provided in the above embodiment, and will not be repeated here.
[0115] The electronic device provided in the embodiment of the present application is as follows: Figure 9 FIG2 is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The battery pack control device thereof may include a battery pack (not shown), a processor 40, and a memory 50. The processor 40 is configured to execute a computer program stored in the memory 50 to implement the battery pack control method described in any of the above embodiments. Specifically, the processor 40 may be the MCU (Microcontroller Unit) in the BMS on the battery pack, or the MCU of another module in the electronic device.
[0116] When the electronic device is connected to multiple battery packs for parallel operation, the MCU of other modules in the electronic device can be used as the control center mentioned in the above embodiment, or the MCU in the master battery pack determined after arbitration between the battery pack in the electronic device and the connected battery pack can be used as the control center.
[0117] In some embodiments, when the electronic device is connected to multiple battery packs for parallel operation, the battery pack in the electronic device can be used as the master battery pack by default, and the processor in the electronic device can be used as the control center. The processor in the electronic device can be the MCU in the battery management system (BMS) of the battery pack in the electronic device, or the MCU of another module in the electronic device.
[0118] The electronic device provided in this embodiment includes at least one processor 40 and at least one memory 50. The at least one processor 40 can be referred to as a processing unit, and the at least one memory 50 can be referred to as a storage unit. Specifically, the storage unit stores a computer program. When the computer program is executed by the processing unit, the electronic device provided in this embodiment implements the steps of the battery pack control device described in the above embodiment. For example, Figure 3 Steps S10 to S30 shown in FIG.
[0119] In one implementation, the electronic device provided in this embodiment may include a plurality of memories 50 (referred to as storage units for short).
[0120] The storage unit may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a ferromagnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory may be a magnetic disk or a magnetic tape. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM).The memory units described in the embodiments of the present invention are intended to include, but are not limited to, these and any other suitable types of memory.
[0121] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the battery pack control method described in the above embodiment are implemented.
[0122] In one embodiment, the computer-readable storage medium provided by this embodiment is a computer-readable signal medium or a computer-readable storage medium or any combination of the above. The computer-readable storage medium can 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 can 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, which carries 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.
[0123] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0124] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, parts, features, and elements with the same name in different embodiments of the present application may have the same meaning or different meanings, and their specific meanings need to be determined by their explanation in the specific embodiment or further in combination with the context in the specific embodiment. In this article, unless otherwise specified, the meaning of "multiple" and "several" is two or more.
[0125] It should be understood that, although the various steps in the flowchart in the embodiment of the present application are shown in sequence according to the indication of the arrows, these steps are not necessarily performed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly limited in order, and they can be performed in other orders. Moreover, at least a portion of the steps in the figure may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and their execution order is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0126] Those skilled in the art will appreciate that all or part of the steps of the above-described method embodiments can be implemented by hardware associated with program instructions. The aforementioned program can be stored in a computer-readable storage medium, which, when executed, performs the steps of the above-described method embodiments. The aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0127] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any modifications or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection of the claims.
Claims
1. A battery pack control method, characterized in that: The battery pack control method comprises the following steps: When it is determined that the second switch is in the on state, a control instruction carrying switch control information is sent to the target battery pack at a preset frequency, wherein the control instruction is used to instruct the target battery pack to perform a state switching operation of the first switch; acquiring switch status information of the first switch returned by the target battery pack, and determining whether the target battery pack is in a fault state according to the switch control information and the switch status information; When it is determined that the target battery pack is in a fault state, a disable instruction is sent to the target battery pack, wherein the disable instruction is used to instruct the target battery pack to switch the conduction state of the second switch to the disconnection state, so that the target battery pack is disabled.
2. The battery pack control method according to claim 1, wherein: The determining, based on the switch control information and the switch status information, whether the battery pack is in a fault state includes: When the switch state in the acquired switch state information is inconsistent with the switch state in the switch control information within a first preset time, it is determined that the target battery pack is in a fault state.
3. The battery pack control method according to claim 1, wherein: The battery pack control method further includes: When the switch status information is not acquired within a first preset time, it is determined that the target battery pack is in a fault state.
4. The battery pack control method according to claim 3, wherein: The battery pack control method further includes: Obtain the historical timeout count of the target battery pack; When the switch status information is not obtained within the preset time, the historical timeout count is incremented by one to obtain the current timeout count; When the current timeout number is greater than the timeout upper limit threshold, the target battery pack is marked as a faulty battery pack.
5. The battery pack control method according to claim 1, wherein: After sending the disable instruction to the target battery pack, the method includes: Start the timer; When the re-enabling instruction is obtained, determining whether the timing information reaches the preset timing information; If so, the reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
6. The battery pack control method according to claim 1, wherein: After sending the disable instruction to the battery pack, the method includes: If a re-enabling instruction is obtained, obtaining temperature information of the first switch in the target battery pack; After determining that the temperature information is less than a temperature threshold, the reactivation instruction is sent to the target battery pack, where the reactivation instruction is used to instruct the target battery pack to perform a charging or discharging operation.
7. The battery pack control method according to claim 1, wherein: Before the control instruction carrying the switch control information is sent to the target battery pack at a preset frequency, the method further includes: Upon receiving an execution instruction, obtaining a target battery pack pointed to in the execution instruction; generating a driving instruction according to the execution instruction, and sending the driving instruction to the target battery pack, wherein the driving instruction is used to instruct the target battery pack to set the state of the second switch to the on state; When the state information indicating that the second switch is turned on is received from the target battery pack within the second preset time, the step of sending the control instruction carrying the switch control information to the target battery pack at the preset frequency is executed.
8. The battery pack control method according to claim 7, wherein: The battery pack control method further includes: If the target battery pack does not receive status information indicating that the second switch is turned on within the second preset time, or if the target battery pack receives status information indicating that the second switch is not turned on within the second preset time, the target battery pack is marked as a faulty battery pack.
9. An electronic device, characterized in that: Including battery pack, processor and memory: The processor is configured to execute the computer program stored in the memory to implement the battery pack control method according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute the battery pack control method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Battery pack replacement control method and device, equipment and medium
CN114274833A
Battery pack and method of controlling the same
US20160226263A1