Charge state management method, device, electronic device and computer storage medium

Through the charge state management method, the direct replacement of the battery pack in the power battery system is realized, avoiding system replacement, reducing maintenance costs and safety risks, and improving the safety and compatibility of the entire vehicle.

CN118418839BActive Publication Date: 2024-09-17WEICHAI POWER CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410898148.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-05
Publication Date
2024-09-17
Estimated Expiration
2044-07-05

AI Technical Summary

Technical Problem

In special vehicles, the power battery system needs to be towed or replaced when the battery pack is insufficient due to space constraints and insufficient battery pack power. When replacing the battery pack on the market, the entire system needs to be towed or replaced, resulting in increased system replacement costs and hot-swappable safety risks. And life damage caused by repeated plugging and unplugging.

Method used

Through a charge state management method, the battery pack can be directly replaced without replacing the high-voltage box. The serial peripheral interface or controller area network communication is used to obtain the charge state of the battery pack, write it into the storage area of ​​the main board or slave board, and update Charge status, avoid hot swapping, reduce maintenance costs and improve safety factor.

Benefits of technology

This eliminates the need to replace the entire system when replacing the battery pack, reduces maintenance costs, avoids safety risks and lifespan damage caused by hot swapping, and improves the safety and compatibility of the entire vehicle.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118418839B
    Figure CN118418839B
Patent Text Reader

Abstract

The present application provides a charge state management method, device, electronic device and computer storage medium. When a power-on operation is performed, the controller is awakened, and the storage data area mark of the slave board is written as 0 and the small memory area mark of the main board is written as 0; if the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain a first target position and a second target position and obtains a third target position and a fourth target position of each slave board; according to the first target position, the second target position, the third target position and the fourth target position of each slave board, a charge state writing scheme is determined, and the charge state is written to the main board or the slave board, so that the function of carrying initial information when replacing a battery pack is realized. For the replacement of a battery system problem, it is no longer necessary to replace the entire battery system, but only to replace the battery pack, which not only saves the maintenance service cost and improves the supporting benefits, but also avoids hot plugging between the rear-end load and the rear-end load, thereby improving the safety factor of the whole vehicle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a charge state management method, device, electronic device and computer storage medium. Background Art

[0002] At present, the power battery system includes two major components, the battery pack and the high-voltage box. In actual use, on the one hand, due to space limitations, when the on-board battery pack is low on power, a trailer battery pack is used to replace the original vehicle battery pack to ensure that the actual engineering work continues. On the other hand, in the market, there are situations where the battery pack needs to be replaced due to insulation or module damage inside the battery pack. Because the battery pack cannot carry enough power when replaced alone, the battery system (including the high-voltage box and the battery management system BMS - power storage medium) needs to be towed or replaced, which increases the cost of system replacement. In addition, there are safety risks such as high-voltage hot plugging (capacitors are not fully discharged) and plugging and unplugging of multiple communication harnesses between the back-end loads, as well as life damage caused by multiple plugging and unplugging. Summary of the invention

[0003] In view of this, the present application provides a charge state management method, device, electronic device and computer storage medium, which can achieve direct replacement of the battery pack without replacing the high-voltage box, thereby reducing system maintenance costs and increasing corporate benefits, while avoiding hot plugging between the rear-end load and the rear-end load, thereby improving the safety factor of the entire vehicle.

[0004] The first aspect of the present application provides a method for managing a charge state, comprising:

[0005] When the power-on operation is performed, the controller is awakened, the memory data area of ​​the slave board is marked as 0, and the small memory area of ​​the main board is marked as 0;

[0006] If the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain the first target position and the second target position, and obtain the third target position and the fourth target position of each slave board; wherein the first target position is the position where the maximum voltage of the single cell stored on the main board is located; the second target position is the position where the minimum voltage of the single cell stored on the main board is located; the third target position is the position where the maximum voltage of the single cell stored on the slave board is located; and the fourth target position is the position where the minimum voltage of the single cell stored on the slave board is located;

[0007] For each slave board, determining whether the first target position is the same as the third target position, and determining whether the second target position is the same as the fourth target position;

[0008] If the third target positions of all slave boards are the same as the first target position, and the fourth target positions of all slave boards are the same as the second target position, the charge state of the small memory area of ​​the main board is taken as the initial charge state and written into the small memory area flag position 1 of the main board;

[0009] If the third target position of any slave board is different from the first target position, and / or the fourth target position of any slave board is different from the second target position, determining a free area of ​​the small memory area of ​​the main board;

[0010] The factory charge state is used as the initial charge state and written into the small memory area flag position 1 of the mainboard.

[0011] Optionally, the charge state management method further includes:

[0012] If the main board and the slave board communicate via a controller area network, the charge state stored in the slave board is obtained through a message;

[0013] taking the charge state stored from the plate as the initial charge state;

[0014] Write the memory data area flag position of the slave board to 1.

[0015] Optionally, the charge state management method further includes:

[0016] The mainboard collects system current in real time through current sensors;

[0017] The charge state is calculated and updated in real time according to the collected system current, and the charge state change is obtained;

[0018] When the charge state change amount is greater than the change threshold, the storage data area is triggered to store the current charge state in the core area of ​​the mainboard storage area.

[0019] Optionally, the charge state management method further includes:

[0020] When the charge state change amount is greater than the change threshold, the storage data area is triggered to store the current charge state after the core area stored in the mainboard storage area, and further includes:

[0021] If the i-th small memory area flag position written to the mainboard is 1, the current charge state, the maximum and minimum values ​​of the single cell voltage and their corresponding positions are stored in the i-th small memory area of ​​the mainboard, and the controller goes into sleep mode after the power is turned off after a delay;

[0022] If the write slave board storage data area flag is set to 1, the current charge state and the write slave board storage data area flag are transmitted to the slave board through the controller local area network message; among them, if the slave board receives the flag as 1, the received charge state is written into each slave board storage data area, and the controller waits for the delayed power-off and sleeps.

[0023] A second aspect of the present application provides a charge state management device, comprising:

[0024] A wake-up unit, used to wake up the controller when a power-on operation is performed, write the storage data area mark of the slave board to 0 and write the small memory area mark of the main board to 0;

[0025] A first acquisition unit is used for, if the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to acquire a first target position and a second target position, and acquires a third target position and a fourth target position of each slave board; wherein the first target position is a position where the maximum voltage of a single cell is stored on the main board; the second target position is a position where the minimum voltage of a single cell is stored on the main board; the third target position is a position where the maximum voltage of a single cell is stored on the slave board; and the fourth target position is a position where the minimum voltage of a single cell is stored on the slave board;

[0026] A first judging unit, configured to judge, for each slave board, whether the first target position is the same as the third target position;

[0027] A second judging unit, configured to judge, for each slave board, whether the second target position is the same as the fourth target position;

[0028] a first writing unit, configured to take the charge state of the small memory area of ​​the main board as the initial charge state and write the charge state into a small memory area flag position 1 of the main board if the third target positions of all the slave boards are the same as the first target position and the fourth target positions of all the slave boards are the same as the second target position;

[0029] a first determining unit, configured to determine a free area of ​​a small memory area of ​​a main board if a third target position of any slave board is different from the first target position, and / or a fourth target position of any slave board is different from the second target position;

[0030] The second writing unit is used to write the factory charge state as the initial charge state into the small memory area mark position 1 of the mainboard.

[0031] Optionally, the charge state management device further comprises:

[0032] A second acquisition unit is used to acquire the charge state stored in the slave board through a message if the main board and the slave board communicate via a controller area network;

[0033] a second determining unit, configured to use the charge state stored from the plate as an initial charge state;

[0034] The third writing unit is used to write the storage data area mark position 1 of the slave board.

[0035] Optionally, the charge state management device further comprises:

[0036] The acquisition unit is used for the mainboard to collect the system current in real time through the current sensor;

[0037] A calculation unit, used to update and calculate the charge state in real time according to the collected system current, and obtain the charge state change;

[0038] The storage unit is used to trigger the storage in the storage data area when the charge state change amount is greater than the change threshold, and store the current charge state in the core area stored in the mainboard storage area.

[0039] Optionally, the charge state management device further comprises:

[0040] The first waiting unit is used to store the current charge state, the maximum and minimum values ​​of the cell voltage and their corresponding positions in the i-th small memory area of ​​the mainboard if the i-th small memory area flag position of the mainboard is written as 1, and wait for the delayed power-off and the controller to sleep;

[0041] The second waiting unit is used to transmit the current charge state and the write-in slave board storage data area flag to the slave board through the controller local area network message if the write-in slave board storage data area flag is set to 1; wherein, if the slave board receives the flag as 1, the received charge state is written into each slave board storage data area, and the controller is put into sleep mode after the power is delayed.

[0042] A third aspect of the present application provides an electronic device, including:

[0043] one or more processors;

[0044] a storage device having one or more programs stored thereon;

[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement the charge state management method as described in any one of the first aspects.

[0046] A fourth aspect of the present application provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the charge state management method as described in any one of the first aspects is implemented.

[0047] It can be seen from the above scheme that the present application provides a charge state management method, device, electronic device and computer storage medium. When the power-on operation is performed, the method wakes up the controller, writes the storage data area mark of the slave board to 0 and writes the small memory area mark of the main board to 0; if the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain the first target position and the second target position and the third target position and the fourth target position of each slave board; if the third target positions of all slave boards are the same as the first target position, and the fourth target positions of all slave boards are the same as the second target position, the charge state of the small memory area of ​​the main board is used as the initial charge state and written to the small memory area mark position 1 of the main board; if the third target position of any slave board is different from the first target position, and / or the fourth target position of any slave board is different from the second target position, the free area of ​​the small memory area of ​​the main board is determined; the factory charge state is used as the initial charge state and written to the small memory area mark position 1 of the main board. By writing the charge status into the main board or slave board, the function of carrying initial information when replacing the battery pack is realized. For replacement of battery system problems, it is no longer necessary to replace the battery system, but only to update the battery pack. This not only saves maintenance service costs, but also improves supporting benefits. At the same time, it avoids hot plugging between the rear-end load and improves the safety factor of the entire vehicle. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0049] Figure 1 A schematic diagram of a master-slave CAN communication interaction provided in an embodiment of the present application;

[0050] Figure 2 A schematic diagram of a master-slave SPI communication interaction provided in an embodiment of the present application;

[0051] Figure 3 A specific flow chart of a charge state management method provided in an embodiment of the present application;

[0052] Figure 4 A flow chart of a charge state management method provided in another embodiment of the present application;

[0053] Figure 5 A flow chart of a charge state management method provided in another embodiment of the present application;

[0054] Figure 6A schematic diagram of a charge state management device provided by another embodiment of the present application;

[0055] Figure 7 A schematic diagram of an electronic device for implementing a charge state management method provided in another embodiment of the present application. DETAILED DESCRIPTION

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

[0057] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0058] It should be noted that the information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.

[0059] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0060] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0061] First, the technical terms appearing in this application are explained:

[0062] BMS: Battery Manage System, battery management system.

[0063] SOC: State of Charge, charge state.

[0064] EEProm: non-volatile data storage area. The motherboard EEProm storage data area, referred to as the EE area, is divided into several small memory areas EE (i) for storing the power of each battery pack, single cell information, etc.

[0065] CAN is the abbreviation of Controller Area Network (CAN), which is a serial communication network that can realize distributed real-time control.

[0066] SPI communication is a high-speed, full-duplex, synchronous communication bus, mainly used for short-distance communication in embedded systems.

[0067] At present, the power battery system for new energy commercial vehicles includes two major components, the battery pack (PACK) and the high-voltage box. There are two communication methods between the two major components: CAN communication method and SPI communication method. The battery management system adopts a master-slave distributed structure, that is, a main board and multiple slave boards. Figure 1 As shown, the main board 10 in the high-voltage box and the slave boards 11, 12, 13, ..., 1m in the battery pack adopt CAN communication; Figure 2 As shown, SPI communication is adopted between the main board 20 in the high-voltage box and the slave boards 21, 22, 23... 2n in the battery pack, wherein the main board in the high-voltage box implements battery management and status update, and the slave boards in the battery pack implement battery information collection, and the battery system power is stored in the main board in the high-voltage box. When there is a problem with the battery pack, the prior art usually adopts a solution of directly replacing the battery system, which increases the system replacement cost and has the safety risk of hot-plugging the high-voltage load.

[0068] To this end, the present application embodiment provides a charge state management method to solve the above problems, such as Figure 3 As shown, the specific steps include:

[0069] S301, when performing a power-on operation, wake up the controller, write the storage data area mark of the slave board to 0, and write the small memory area mark of the main board to 0.

[0070] In the specific implementation process of the present application, the power-on operation can be triggered by, but is not limited to, physically turning a key, pressing a one-touch start button, etc., and is not limited here.

[0071] S302: If the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain a first target position and a second target position, and obtains a third target position and a fourth target position of each slave board.

[0072] Among them, the first target position is the position where the maximum voltage of the single cell is stored on the main board; the second target position is the position where the minimum voltage of the single cell is stored on the main board; the third target position is the position where the maximum voltage of the single cell is stored on the slave board; the fourth target position is the position where the minimum voltage of the single cell is stored on the slave board.

[0073] S303 , for each slave board, determine whether the first target position is the same as the third target position.

[0074] S304: For each slave board, determine whether the second target position is the same as the fourth target position.

[0075] Specifically, if the third target position of all slave boards is the same as the first target position, and the fourth target position of all slave boards is the same as the second target position, it means that the information stored in the small memory area EE(i) of the main board corresponds to the current battery pack information, then execute step S305; if the third target position of any slave board is different from the first target position, and / or the fourth target position of any slave board is different from the second target position, it means that the battery pack is matched with the main board for the first time, then execute step S306.

[0076] S305, taking the charge state of the small memory area of ​​the mainboard as the initial charge state, and writing it into the small memory area flag position 1 of the mainboard.

[0077] S306, determining a free area of ​​the small memory area of ​​the mainboard.

[0078] Specifically, determine whether the small memory area of ​​the motherboard is free, that is, the positions where the maximum voltage and the minimum voltage of the single cell are both 0.

[0079] S307, taking the factory charge state as the initial charge state, and writing it into the small memory area mark position 1 of the mainboard.

[0080] Specifically, the positions of SOC and the maximum and minimum voltages of the single cells are written into different EE areas of the mainboard. After the battery pack is replaced, the initial information of the currently replaced battery pack is obtained by judging the positions of the maximum and minimum voltages of the single cells in the battery pack and the information stored in different EE areas.

[0081] It should be noted that the present application takes into account both the master-slave CAN communication and the SPI communication scheme, and improves the hardware compatibility. Optionally, in another embodiment of the present application, an implementation method of the charge state management method is as follows: Figure 4 As shown, it also includes:

[0082] S401. If the main board and the slave board communicate via a controller area network, the charge state stored in the slave board is obtained through a message.

[0083] It should be noted that for master-slave CAN communication, the slave board has a flashable microcontroller and can write and read data. For master-slave SPI communication, the slave board has no microcontroller and cannot store data.

[0084] S402, taking the charge state stored in the slave board as the initial charge state.

[0085] S403, write the storage data area mark position 1 of the slave board.

[0086] Specifically, by passing the SOC and the flag bit written into the EE area of ​​the slave board to the slave board, after the slave board receives the flag bit, the SOC information is written into the EE area of ​​each slave board, thereby realizing the self-carrying power of the battery pack.

[0087] In the specific implementation process of the present application, after step S305 or step S307 or step S403, the high-voltage charging or discharging step begins. In the process of high-voltage charging or discharging, an implementation method of the charge state management method provided by the present application is as follows: Figure 5 As shown, it also includes:

[0088] S501, the mainboard collects system current in real time through the current sensor.

[0089] S502 , updating and calculating the charge state in real time according to the collected system current, and obtaining a charge state change amount.

[0090] S503: When the charge state change is greater than the change threshold, the storage data area is triggered to store the current charge state in the core area of ​​the mainboard storage area.

[0091] The change threshold is preset and changed by technical personnel and relevant authorized staff and is not limited here.

[0092] Optionally, in another embodiment of the present application, in an implementation method after step S503, if the mark position of the i-th small memory area of ​​the mainboard is written to 1, the current charge state, the maximum and minimum values ​​of the single cell voltage and their corresponding positions are stored in the i-th small memory area of ​​the mainboard, and the power-off delay is waited, and the controller is in sleep mode; if the mark position of the slave board storage data area is written to 1, the current charge state and the write-to slave board storage data area flag are transmitted to the slave board through the controller local area network message; wherein, if the received flag of the slave board is 1, the received charge state is written to each slave board storage data area, and the power-off delay is waited, and the controller is in sleep mode.

[0093] Through the BMS software strategy, the SOC is written into different EE areas of the mainboard or from the EE area of ​​the mainboard, realizing the function of carrying initial information when replacing the battery pack. For the replacement of battery system problems, it is no longer necessary to replace the battery system, but only to update the battery pack, which not only saves the cost of maintenance services, but also improves the supporting benefits. Since only the battery pack needs to be replaced, the hot plugging of the battery system and the high-voltage load is avoided, and the high-voltage safety hazards caused by hot plugging are avoided. On the other hand, only the positive and negative and communication ports of the high-voltage box are plugged in and out, which avoids the life damage caused by multiple hot plugging of high-voltage connectors.

[0094] It can be seen from the above scheme that the present application provides a charge state management method. When the power-on operation is performed, the controller is awakened, the storage data area mark of the slave board is written as 0, and the small memory area mark of the main board is written as 0; if the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain the first target position and the second target position and the third target position and the fourth target position of each slave board; if the third target positions of all slave boards are the same as the first target position, and the fourth target positions of all slave boards are the same as the second target position, the charge state of the small memory area of ​​the main board is used as the initial charge state and written to the small memory area mark position 1 of the main board; if the third target position of any slave board is different from the first target position, and / or the fourth target position of any slave board is different from the second target position, the free area of ​​the small memory area of ​​the main board is determined; the factory charge state is used as the initial charge state and written to the small memory area mark position 1 of the main board. By writing the charge status into the main board or slave board, the function of carrying initial information when replacing the battery pack is realized. For replacement of battery system problems, it is no longer necessary to replace the battery system, but only to update the battery pack. This not only saves maintenance service costs, but also improves supporting benefits. At the same time, it avoids hot plugging between the rear-end load and improves the safety factor of the entire vehicle.

[0095] The present application embodiment provides a charge state management device, such as Figure 6 As shown, specifically including:

[0096] The wake-up unit 601 is used to wake up the controller when performing a power-on operation, write the storage data area mark of the slave board as 0, and write the small memory area mark of the main board as 0.

[0097] The first acquisition unit 602 is used for acquiring the first target position and the second target position when the main board is powered on, and acquiring the third target position and the fourth target position of each slave board if the main board and the slave board communicate via a serial peripheral interface.

[0098] Among them, the first target position is the position where the maximum voltage of the single cell is stored on the main board; the second target position is the position where the minimum voltage of the single cell is stored on the main board; the third target position is the position where the maximum voltage of the single cell is stored on the slave board; the fourth target position is the position where the minimum voltage of the single cell is stored on the slave board.

[0099] The first judging unit 603 is used to judge, for each slave board, whether the first target position is the same as the third target position.

[0100] The second judging unit 604 is used to judge, for each slave board, whether the second target position is the same as the fourth target position.

[0101] The first writing unit 605 is used to take the charge state of the small memory area of ​​the main board as the initial charge state and write it into the small memory area flag position 1 of the main board if the third target positions of all slave boards are the same as the first target position and the fourth target positions of all slave boards are the same as the second target position.

[0102] The first determining unit 606 is used to determine a free area of ​​the small memory area of ​​the main board if the third target position of any slave board is different from the first target position and / or the fourth target position of any slave board is different from the second target position.

[0103] The second writing unit 607 is used to write the factory charge state as the initial charge state into the small memory area mark position 1 of the mainboard.

[0104] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 3 As shown, no further description is given here.

[0105] Optionally, in another embodiment of the present application, an implementation of the charge state management device further includes:

[0106] The second acquisition unit is used to acquire the charge state stored in the slave board through a message if the main board and the slave board communicate via a controller area network.

[0107] The second determining unit is configured to use the charge state stored in the slave panel as the initial charge state.

[0108] The third writing unit is used to write the storage data area mark position 1 of the slave board.

[0109] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 4 As shown, no further description is given here.

[0110] Optionally, in another embodiment of the present application, an implementation of the charge state management device further includes:

[0111] The acquisition unit is used by the mainboard to collect the system current in real time through the current sensor.

[0112] The calculation unit is used to update and calculate the charge state in real time according to the collected system current, and obtain the charge state change.

[0113] The storage unit is used to trigger the storage of the storage data area when the charge state change is greater than the change threshold, and store the current charge state in the core area of ​​the mainboard storage area.

[0114] For the specific working process of the units disclosed in the above embodiments of the present application, please refer to the corresponding method embodiments, such as Figure 5 As shown, no further description is given here.

[0115] Optionally, in another embodiment of the present application, an implementation of the charge state management device further includes:

[0116] The first waiting unit is used to store the current charge state, the maximum and minimum values ​​of the single cell voltage and their corresponding positions in the i-th small memory area of ​​the mainboard if the i-th small memory area mark position 1 is written to the mainboard, and wait for delayed power-off and the controller to sleep.

[0117] The second waiting unit is used for transmitting the current charge state and the write-in slave board storage data area flag bit to the slave board through the controller area network message if the write-in slave board storage data area flag bit is set to 1.

[0118] If the flag bit received by the slave board is 1, the received charge state is written into the storage data area of ​​each slave board, and the controller is put into sleep mode after waiting for the delayed power-off.

[0119] The specific working process of the units disclosed in the above embodiments of the present application can be found in the corresponding method embodiments, which will not be repeated here.

[0120] As can be seen from the above scheme, the present application provides a charge state management device. When the power-on operation is performed, the wake-up unit 601 wakes up the controller, writes the storage data area mark of the slave board to 0, and writes the small memory area mark of the main board to 0; if the main board and the slave board communicate via a serial peripheral interface, the first acquisition unit 602 powers on the main board to acquire the first target position and the second target position, and acquires the third target position and the fourth target position of each slave board; if the first judgment unit 603 determines that the third target position of all slave boards is the same as the first target position, and the second judgment unit 604 determines that the third target position of all slave boards is the same as the first target position, If the fourth target position is the same as the second target position, the first writing unit 605 takes the charge state of the small memory area of ​​the mainboard as the initial charge state and writes it into the small memory area mark position 1 of the mainboard; if the first judging unit 603 judges that the third target position of any slave board is different from the first target position, and / or the second judging unit 604 judges that the fourth target position of any slave board is different from the second target position, the first determining unit 606 determines the free area of ​​the small memory area of ​​the mainboard; the second writing unit 607 takes the factory charge state as the initial charge state and writes it into the small memory area mark position 1 of the mainboard. By writing the charge state into the mainboard or slave board, the function of carrying the initial information when replacing the battery pack is realized. For the replacement of the battery system problem, it is no longer the replacement of the battery system, but only the battery pack needs to be updated, which not only saves the maintenance service cost, but also improves the matching benefits, and at the same time avoids the hot plug between the rear-end load and the vehicle safety factor.

[0121] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0122] Another embodiment of the present application provides an electronic device, such as Figure 7 As shown, including:

[0123] One or more processors 701.

[0124] The storage device 702 stores one or more programs.

[0125] When the one or more programs are executed by the one or more processors 701 , the one or more processors 701 implement the charge state management method as described in any one of the above embodiments.

[0126] Another embodiment of the present application provides a computer storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the charge state management method as described in any one of the above embodiments is implemented.

[0127] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0128] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0129] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0130] Another embodiment of the present application provides a computer program product. When the computer program product is executed, it is used to execute any of the above-mentioned charge state management methods.

[0131] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device, or installed from a ROM. When the computer program is executed by a processing device, the above-mentioned functions defined in the method of the embodiment of the present application are executed.

[0132] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0133] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present application. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0134] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of application involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above application concept. For example, the above features are replaced with (but not limited to) technical features with similar functions applied in the present application.

Claims

1. A method for managing a charge state, characterized in that: include: When the power-on operation is performed, the controller is awakened, the memory data area of ​​the slave board is marked as 0, and the small memory area of ​​the main board is marked as 0; If the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to obtain the first target position and the second target position, and obtain the third target position and the fourth target position of each slave board; wherein the first target position is the position where the maximum voltage of the single cell stored on the main board is located; the second target position is the position where the minimum voltage of the single cell stored on the main board is located; the third target position is the position where the maximum voltage of the single cell stored on the slave board is located; and the fourth target position is the position where the minimum voltage of the single cell stored on the slave board is located; For each slave board, determining whether the first target position is the same as the third target position, and determining whether the second target position is the same as the fourth target position; If the third target positions of all slave boards are the same as the first target position, and the fourth target positions of all slave boards are the same as the second target position, the charge state of the small memory area of ​​the main board is taken as the initial charge state and written into the small memory area flag position 1 of the main board; If the third target position of any slave board is different from the first target position, and / or the fourth target position of any slave board is different from the second target position, determining a free area of ​​the small memory area of ​​the main board; The factory charge state is used as the initial charge state and written into the small memory area flag position 1 of the mainboard.

2. The charge state management method according to claim 1, characterized in that: Also includes: If the main board and the slave board communicate via a controller area network, the charge state stored in the slave board is obtained through a message; taking the charge state stored from the plate as the initial charge state; Write the memory data area flag position of the slave board to 1.

3. The charge state management method according to claim 1, characterized in that: Also includes: The mainboard collects system current in real time through current sensors; The charge state is calculated and updated in real time according to the collected system current, and the charge state change is obtained; When the charge state change amount is greater than the change threshold, the storage data area is triggered to store the current charge state in the core area of ​​the mainboard storage area.

4. The charge state management method according to claim 3, characterized in that: When the charge state change amount is greater than the change threshold, the storage data area is triggered to store the current charge state after the core area stored in the mainboard storage area, and further includes: If the i-th small memory area flag position written to the mainboard is 1, the current charge state, the maximum and minimum values ​​of the single cell voltage and their corresponding positions are stored in the i-th small memory area of ​​the mainboard, and the controller goes into sleep mode after the power is turned off after a delay; If the write slave board storage data area flag is set to 1, the current charge state and the write slave board storage data area flag are transmitted to the slave board through the controller local area network message; among them, if the slave board receives the flag as 1, the received charge state is written into each slave board storage data area, and the controller waits for the delayed power-off and sleeps.

5. A charge state management device, characterized in that: include: A wake-up unit, used to wake up the controller when a power-on operation is performed, write the storage data area mark of the slave board to 0 and write the small memory area mark of the main board to 0; A first acquisition unit is used for, if the main board and the slave board communicate via a serial peripheral interface, the main board is powered on to acquire a first target position and a second target position, and acquires a third target position and a fourth target position of each slave board; wherein the first target position is a position where the maximum voltage of a single cell is stored on the main board; the second target position is a position where the minimum voltage of a single cell is stored on the main board; the third target position is a position where the maximum voltage of a single cell is stored on the slave board; and the fourth target position is a position where the minimum voltage of a single cell is stored on the slave board; A first judging unit, configured to judge, for each slave board, whether the first target position is the same as the third target position; A second judging unit, configured to judge, for each slave board, whether the second target position is the same as the fourth target position; a first writing unit, configured to take the charge state of the small memory area of ​​the main board as the initial charge state and write the charge state into a small memory area flag position 1 of the main board if the third target positions of all the slave boards are the same as the first target position and the fourth target positions of all the slave boards are the same as the second target position; a first determining unit, configured to determine a free area of ​​a small memory area of ​​a main board if a third target position of any slave board is different from the first target position, and / or a fourth target position of any slave board is different from the second target position; The second writing unit is used to write the factory charge state as the initial charge state into the small memory area mark position 1 of the mainboard.

6. The charge state management device according to claim 5, characterized in that: Also includes: A second acquisition unit is used to acquire the charge state stored in the slave board through a message if the main board and the slave board communicate via a controller area network; a second determining unit, configured to use the charge state stored from the plate as an initial charge state; The third writing unit is used to write the storage data area mark position 1 of the slave board.

7. The charge state management device according to claim 5, characterized in that: Also includes: The acquisition unit is used for the mainboard to collect the system current in real time through the current sensor; A calculation unit, used to update and calculate the charge state in real time according to the collected system current, and obtain the charge state change; The storage unit is used to trigger the storage in the storage data area when the charge state change amount is greater than the change threshold, and store the current charge state in the core area stored in the mainboard storage area.

8. The charge state management device according to claim 7, characterized in that: Also includes: The first waiting unit is used to store the current charge state, the maximum and minimum values ​​of the cell voltage and their corresponding positions in the i-th small memory area of ​​the mainboard if the i-th small memory area flag position of the mainboard is written as 1, and wait for the delayed power-off and the controller to sleep; The second waiting unit is used to transmit the current charge state and the write-in slave board storage data area flag to the slave board through the controller local area network message if the write-in slave board storage data area flag is set to 1; wherein, if the slave board receives the flag as 1, the received charge state is written into each slave board storage data area, and the controller is put into sleep mode after the power is delayed.

9. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the charge state management method as claimed in any one of claims 1 to 4.

10. A computer storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the charge state management method as claimed in any one of claims 1 to 4 is implemented.

Citation Information

Patent Citations

  • Electric automobile power switching system and method based on cloud storage

    CN105667464A

  • Decommissioned power battery centralized monitoring system

    CN109932654A

  • Communication method and communication system among one-master multi-slave single-chip microcomputers, and storage medium

    CN116680228A

  • Battery data updating device, battery data updating method, equipment and storage medium

    CN117499915A

  • Battery replacement device, fraud determination method, and program

    JP2021077448A