Address allocation method and system of modular energy storage battery system, terminal and storage medium
By generating initial addresses and random numbers in the internal controller of the modular battery system, and using the CAN bus for automatic address allocation, the address allocation problem that requires additional hardware in the prior art is solved, and low-cost and efficient battery module address management is achieved. .
Patent Information
- Application Number
- CN202411620809.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-14
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing modular battery systems require additional external controllers and hardware when address allocation, resulting in high costs and limited application sites.
By generating initial address and random numbers in the internal controller of the battery module, communication is performed using the CAN bus, and address allocation is automatically performed without the need for external controllers and hardware.
It realizes the automation of address allocation of battery modules, reduces hardware costs, simplifies address allocation logic, and is suitable for modular battery application scenarios of various energy storage systems.
Smart Images

Figure CN119135658A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of battery management, and in particular relates to an address allocation method, system, terminal and storage medium for a modular energy storage battery system. Background Art
[0002] Energy storage systems are generally composed of PCS and battery modules. Due to different battery demand scenarios, modular battery solutions are basically adopted in the fields of industrial and commercial energy storage or household energy storage, that is, 2.5 kWh / 5 kWh battery modules are used for multi-module combination to meet large-capacity and high-power application scenarios. At the same time, if there is a subsequent capacity demand or battery capacity attenuation is involved, the modular battery system should also be able to replace / add battery modules at will. Therefore, in the combined control of modular batteries, it is necessary to be able to determine the number of battery modules and the address or ID of each battery module, so that the main control can control, manage and collect information for each battery module.
[0003] At present, there are two technologies used for modular battery address allocation. One is that when the battery module is changed or allocated for the first time, the main control provides the battery address to each battery; the other is to use a cabinet to add a pulse generator on the back of the cabinet. When the battery module is inserted, the battery can identify the corresponding battery position and obtain its own address. One of these two solutions requires additional main control allocation management. If the main control is not connected or there is a problem with the communication, the battery address cannot be allocated. The other does not require a main control, but requires an additional cabinet and pulse generator hardware, which limits the application cost and application site. Summary of the invention
[0004] In view of the problem in the prior art that an additional main control or hardware is required to allocate battery addresses, the present invention provides an address allocation method, system, terminal and storage medium for a modular energy storage battery system, which does not require an additional external controller and hardware, so as to solve the above technical problems.
[0005] In a first aspect, the present invention provides an address allocation method for a modular energy storage battery system, comprising: S1. Generate an initial address and random number for the battery module; S2, sending the initial address and random number to other battery modules; S3, the battery module receives the initial address and random number sent by other battery modules; S4. Determine whether the random numbers received from other battery modules are the same as the random number of the battery module itself: If the random numbers of other battery modules received are the same as the random number of the battery module itself, return to step S1; If the random numbers of other battery modules received are different from the random number of the battery module itself, execute step S5; S5. Sort the received random numbers of other battery modules and the random number of the battery module itself; S6. Allocate addresses to the N battery modules according to the sorting result, and update the initial addresses to the allocated addresses.
[0006] Furthermore, after the battery module addresses are allocated, the method for adding or replacing the battery module addresses includes: Receive address information of an existing battery module; Determine whether the address of the added or replaced battery module is the same as the address information of the existing battery module: If not, addresses are assigned in sequence to the added or replaced battery modules and the storage is updated; If so, execute steps S1-S6.
[0007] Furthermore, addresses are assigned in sequence to the added or replaced battery modules, including: Determine whether the addresses in the address information of the existing battery modules are continuous; If they are continuous, the address of the added or replaced battery module is assigned as a continuous address immediately following the existing address; If not continuous, the address of the added or replaced battery module will be allocated to an unoccupied address among the existing addresses.
[0008] In a second aspect, the present invention provides an address allocation system for a modular energy storage battery system, comprising: A PCS energy storage converter, a CAN bus and N battery modules; the N battery modules are interconnected via the CAN bus, and the N battery modules are connected to the PCS energy storage converter via the CAN bus, wherein the battery module comprises a battery and an internal controller; the internal controller comprises: a generating unit, a sending unit, a receiving unit, a comparing unit, a sorting unit and an address assigning unit; A generating unit, used for generating an initial address and a random number for a battery module; A sending unit, used to send the generated initial address and random number to other battery modules; A receiving unit, used for receiving an initial address and a random number sent by other battery modules; The comparison unit is used to determine whether the random numbers received from other battery modules are the same as its own random number. If they are the same, the control generation unit regenerates the random number; if they are different, a sorting signal is sent to the sorting unit; A sorting unit, which sorts the random numbers sent by other battery modules and its own random numbers; The address allocation unit is used to allocate addresses to the N battery modules according to the sorting result and send the addresses to the PCS energy storage converter.
[0009] Furthermore, the internal controller further comprises: The judging unit is used to judge whether the address of the newly added or replaced battery module is the same as the address of the existing battery module.
[0010] Furthermore, the initial address is M+1, where M is the maximum number of battery modules that can be connected.
[0011] Furthermore, the random number is 32 bits.
[0012] Furthermore, the .
[0013] In a third aspect, a terminal is provided, including: processor, memory, wherein: The memory is used to store computer programs. The processor is used to call and run the computer program from the memory, so that the terminal executes the above-mentioned terminal method.
[0014] In a fourth aspect, a computer storage medium is provided, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the methods described in the above aspects.
[0015] The beneficial effects of the present invention are that the address allocation method, system, terminal and storage medium of the modular energy storage battery system provided by the present invention can realize the address allocation of the battery module through CAN communication, without the need for an additional external controller or other hardware, which can greatly save hardware costs and increase the use environment; and the address allocation logic of the present application is simple and does not require a lot of calculations, and is suitable for modular battery application scenarios of various energy storage systems. In addition, the design principle of the present invention is reliable, the structure is simple, and it has a very broad application prospect. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention.
[0018] Figure 2 is a schematic block diagram of a system according to an embodiment of the present invention.
[0019] Figure 3 FIG. 4 is a schematic diagram of a connection method of a battery module according to an embodiment of the present invention.
[0020] Figure 4 A schematic diagram of the structure of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0021] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0022] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments and are not intended to limit the present invention.
[0023] The address allocation method for the modular energy storage battery system provided in the embodiment of the present invention is executed by a computer device, and accordingly, the address allocation system for the modular energy storage battery system runs in the computer device.
[0024] Figure 1 is a schematic flow chart of a method according to an embodiment of the present invention. Figure 1 The execution entity may be an address allocation system for a modular energy storage battery system.
[0025] To facilitate understanding of the present invention, the address allocation method for the modular energy storage battery system provided by the present invention is further described below based on the principle of the address allocation method for the modular energy storage battery system of the present invention and in combination with the process of allocating addresses of the modular energy storage battery system in the embodiment.
[0026] S1. Generate an initial address and random number for the battery module.
[0027] Specifically, the initial address is M+1, where M is the maximum number of battery modules that can be connected. The random number is 32 bits.
[0028] S2. Send the initial address and random number to other battery modules.
[0029] S3, the battery module receives the initial address and random number sent by other battery modules; S4. Determine whether the random numbers received from other battery modules are the same as the random number of the battery module itself: If the random numbers received from other battery modules are the same as the random number of the battery module itself, the process returns to step S1.
[0030] If the received random numbers of other battery modules are different from the own random number, step S5 is executed.
[0031] S5. Sort the received random numbers of other battery modules and the random number of the battery module itself.
[0032] S6. Assign addresses to the N battery modules according to the sorting results, and update the initial addresses to the assigned addresses. .
[0033] In a specific embodiment, the method further includes: after the battery module address allocation is completed, adding or replacing the address allocation of the battery module, including Q1-Q4: Q1. Receive the address information of the existing battery module.
[0034] Q2. Determine whether the address of the added or replaced battery module is the same as the address information of the existing battery module: Q3. If not, assign addresses to the added or replaced battery modules in sequence and update the storage. Assigning addresses to the added or replaced battery modules in sequence includes: determining whether the addresses in the address information of the existing battery modules are continuous; if continuous, assigning the addresses of the added or replaced battery modules to the continuous addresses immediately following the existing addresses; if not continuous, assigning the addresses of the added or replaced battery modules to the unoccupied addresses in the existing addresses.
[0035] Q4. If yes, execute steps S1-S6.
[0036] In some embodiments, the address allocation system 200 for modular energy storage battery system may include multiple functional modules composed of computer program segments. The computer programs of each program segment in the address allocation system 200 for modular energy storage battery system may be stored in a memory of a computer device and executed by at least one processor to perform (see Figure 1 Description) Function for address assignment of modular energy storage battery systems.
[0037] In this embodiment, the address allocation system 200 of the modular energy storage battery system can be divided into multiple functional modules according to the functions it performs, such as Figure 2 As shown. The functional modules may include: a generating unit 210, a sending unit 220, a receiving unit 230, a comparing unit 240, a sorting unit 250 and an address allocating unit 260. The module referred to in the present invention refers to a series of computer program segments that can be executed by at least one processor and can complete fixed functions, which are stored in a memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.
[0038] Specifically, the address allocation system of the modular energy storage battery system includes: PCS energy storage converter, CAN bus and N battery modules; N battery modules are interconnected through CAN bus, and N battery modules are connected to PCS energy storage converter through CAN bus, characterized in that the battery module includes a battery and an internal controller; the internal controller includes: a generation unit, a sending unit, a receiving unit, a comparison unit, a sorting unit and an address allocation unit. The initial address is M+1, where M is the maximum number of battery modules that can be connected, and
[0039] Specifically, this system is applied to modular batteries in energy storage systems. Modular batteries are generally interconnected by CAN communication. The connection method is as follows: Figure 3 The modular battery includes the battery itself and its internal controller, which is generally an MCU or DSP, and needs to have CAN communication function. The modular battery is connected to the unified CAN bus through a communication line or directly through a connection socket to form a communication network, and can send information to each other.
[0040] The generating unit is used to generate an initial address and a random number for the battery module. The initial address is M+1. The random number is 32 bits.
[0041] The sending unit is used to send the generated initial address and random number to other battery modules.
[0042] The receiving unit is used to receive the initial address and random number sent by other battery modules.
[0043] The comparison unit is used to determine whether the random numbers received from other battery modules are the same as its own random number. If they are the same, the control generation unit regenerates the random number. If they are different, a sorting signal is sent to the sorting unit.
[0044] The sorting unit sorts the random numbers sent by other battery modules and its own random numbers.
[0045] The address allocation unit is used to allocate addresses to the N battery modules according to the sorting result and send the addresses to the PCS energy storage converter.
[0046] For example, the maximum number of connected module batteries M in the current energy storage system is 8, and the initial number of connected batteries N is 4: (1) After confirming the communication connection and powering on, the initial address of the battery module is 9. At this time, the battery establishes a communication network through CAN communication and generates 32-bit random numbers in the internal MCU through the program, as shown in Table 1: Table 1
[0047] (2) The four battery modules send their own addresses and random numbers to other modules through the CAN communication network. After each module receives the random numbers and confirms that they are different from its own random numbers, it sorts the random numbers.
[0048] (3) After sorting, compare the random number sorting results and compare them with the random number itself. The address itself is the serial number of the corresponding random number, as shown in Table 2.
[0049] Table 2
[0050] (4) At this point, the sorting is completed and the address allocation program is exited. If another module with an assigned address is added, as shown in Table 3: Table 3
[0051] At this time, the address of the newly added module 5 conflicts with that of module 1, so module 1 and module 5 reallocate addresses based on their own random numbers. The allocation results are shown in Table 4: Table 4
[0052] (5) After the allocation is completed, the module stores its own address and exits the allocation mode.
[0053] Figure 4 The present invention is a schematic diagram of the structure of a terminal 300 provided in an embodiment of the present invention. The terminal 300 can be used to execute the address allocation method of the modular energy storage battery system provided in an embodiment of the present invention.
[0054] The terminal 300 may include: a processor 310, a memory 320 and a communication module 330. These components communicate via one or more buses. Those skilled in the art will appreciate that the server structure shown in the figure does not limit the present invention, and it may be a bus structure or a star structure, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0055] The memory 320 can be used to store the execution instructions of the processor 310, and the memory 320 can be implemented by any type of volatile or non-volatile storage terminal or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. When the execution instructions in the memory 320 are executed by the processor 310, the terminal 300 can perform some or all of the steps in the following method embodiments.
[0056] The processor 310 is the control center of the storage terminal, and uses various interfaces and lines to connect various parts of the entire electronic terminal. It runs or executes software programs and / or modules stored in the memory 320, and calls data stored in the memory to perform various functions of the electronic terminal and / or process data. The processor can be composed of an integrated circuit (IC), for example, it can be composed of a single packaged IC, or it can be composed of multiple packaged ICs with the same or different functions. For example, the processor 310 can only include a central processing unit (CPU). In the embodiment of the present invention, the CPU can be a single computing core or multiple computing cores.
[0057] The communication module 330 is used to establish a communication channel so that the storage terminal can communicate with other terminals, receive user data sent by other terminals or send user data to other terminals.
[0058] The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and when the program is executed, the program may include some or all of the steps in each embodiment provided by the present invention. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).
[0059] Therefore, the present invention can realize the address allocation of the battery module through CAN communication, without the need for an additional external controller or other hardware, which can greatly save hardware costs and increase the use environment; and the address allocation logic of the present application is simple and does not require a lot of calculations, and is suitable for modular battery application scenarios of various energy storage systems. The technical effects that can be achieved by this embodiment can be found in the description above and will not be repeated here.
[0060] Those skilled in the art can clearly understand that the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present invention, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, and other media that can store program codes, including several instructions for enabling a computer terminal (which can be a personal computer, a server, or a second terminal, a network terminal, etc.) to execute all or part of the steps of the methods described in each embodiment of the present invention.
[0061] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiment.
[0062] In the several embodiments provided by the present invention, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or modules, which can be electrical, mechanical or other forms.
[0063] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0064] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0065] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.
Claims
1. A method for allocating addresses for a modular energy storage battery system, characterized in that: include: S1. Generate an initial address and random number for the battery module; S2, sending the initial address and random number to other battery modules; S3, the battery module receives the initial address and random number sent by other battery modules; S4. Determine whether the random numbers received from other battery modules are the same as the random number of the battery module itself: If the random numbers of other battery modules received are the same as the random number of the battery module itself, return to step S1; If the random numbers of other battery modules received are different from the random number of the battery module itself, execute step S5; S5. Sort the received random numbers of other battery modules and the random number of the battery module itself; S6. Allocate addresses to the N battery modules according to the sorting result, and update the initial addresses to the allocated addresses.
2. The method according to claim 1, characterized in that After the battery module addresses are allocated, the method for adding or replacing the battery module addresses includes: Receive address information of an existing battery module; Determine whether the address of the added or replaced battery module is the same as the address information of the existing battery module: If not, addresses are assigned in sequence to the added or replaced battery modules and the storage is updated; If yes, execute steps S1-S6.
3. The method according to claim 1, characterized in that Assign addresses to added or replaced battery modules in sequence, including: Determine whether the addresses in the address information of the existing battery modules are continuous; If they are continuous, the address of the added or replaced battery module is assigned as a continuous address immediately following the existing address; If not continuous, the address of the added or replaced battery module will be allocated to an unoccupied address among the existing addresses.
4. An address allocation system for a modular energy storage battery system, the modular energy storage battery system comprising: A PCS energy storage converter, a CAN bus and N battery modules; the N battery modules are interconnected via the CAN bus, and the N battery modules are connected to the PCS energy storage converter via the CAN bus, wherein the battery module comprises a battery and an internal controller; the internal controller comprises: a generating unit, a sending unit, a receiving unit, a comparing unit, a sorting unit and an address assigning unit; A generating unit, used for generating an initial address and a random number for a battery module; A sending unit, used to send the generated initial address and random number to other battery modules; A receiving unit, used for receiving an initial address and a random number sent by other battery modules; The comparison unit is used to determine whether the random numbers received from other battery modules are the same as its own random number. If they are the same, the control generation unit regenerates the random number; if they are different, a sorting signal is sent to the sorting unit; A sorting unit, which sorts the random numbers sent by other battery modules and its own random numbers; The address allocation unit is used to allocate addresses to the N battery modules according to the sorting result and send the addresses to the PCS energy storage converter.
5. The system according to claim 4, characterized in that The internal controller also includes: The judging unit is used to judge whether the address of the newly added or replaced battery module is the same as the address of the existing battery module.
6. The system according to claim 4, characterized in that The initial address is M+1, where M is the maximum number of battery modules that can be connected.
7. The system according to claim 4, characterized in that The random number is 32 bits.
8. The system according to claim 6, characterized in that Said .
9. A terminal, characterized in that: include: A memory, used for storing an address allocation program of a modular energy storage battery system; A processor, configured to implement the steps of the method for allocating an address of a modular energy storage battery system as described in any one of claims 1 to 3 when executing the address allocation program of the modular energy storage battery system.
10. A computer-readable storage medium storing a computer program, characterized in that: The readable storage medium stores an address allocation program for a modular energy storage battery system, and when the address allocation program for the modular energy storage battery system is executed by a processor, the steps of the address allocation method for a modular energy storage battery system as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Energy storage system and host allocation method
CN115473318A
Method for automatically addressing battery pack through CAN communication
CN118101370A
Battery pack block, battery pack system, and address setting method for battery pack system
JP2008099482A
Random number generation from SRAM cells
US20220236953A1
