An energy storage battery pack address coding method and device, electronic equipment and medium
By sending broadcast and address encoding information in the energy storage battery pack system through the main control module, and automatically assigning an address code to each energy storage battery pack, the problems of battery pack range and configuration complexity are solved, and hot-swapping operation is supported.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN HELLO TECH ENERGY CO LTD
- Filing Date
- 2023-07-21
- Publication Date
- 2026-04-28
AI Technical Summary
How to assign different address coding information to each energy storage battery pack to solve the problems of excessive size and high voltage and high capacity risks caused by the increased driving range requirements of a single energy storage battery pack, while reducing the complexity of product configuration.
The main control module sends broadcast messages and address encoding information to adjust the address encoding of the energy storage battery packs sequentially until all energy storage battery packs are encoded, thus achieving automatic address encoding allocation.
It enables automatic assignment of address codes to each energy storage battery pack, reducing product configuration complexity and supporting hot-swappable operation.
Smart Images

Figure CN116781667B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a method, apparatus, electronic device, and medium for address encoding of energy storage battery packs. Background Technology
[0002] A battery storage pack (PACK) generally refers to a combination of lithium-ion battery packs, including packaging, encapsulation, and assembly. As a portable power supply device, it can power loads in situations requiring electricity.
[0003] To address the issue of excessively large size or increased risk of high voltage and high capacitance due to excessive cell stacking in the same sealed space caused by the need to increase the driving range of a single energy storage battery pack, multiple energy storage battery packs can be used in parallel to extend the driving range. In order to distinguish different energy storage battery packs, each energy storage battery pack needs to be assigned different address coding information.
[0004] How to assign different address codes to each energy storage battery pack is a problem that urgently needs to be solved. Summary of the Invention
[0005] This invention provides a method, apparatus, electronic device, and medium for address encoding of energy storage battery packs, which can automatically assign address encoding information to each energy storage battery pack, reduce the complexity of product configuration, and facilitate hot-swapping.
[0006] According to one aspect of the present invention, an address encoding method for an energy storage battery pack is provided, the method comprising:
[0007] When the input signal of the main control module is a first level signal, a broadcast message is sent to all energy storage battery packs so that the address code of all energy storage battery packs is set to a preset value;
[0008] The output signal of the main control module is set to a first level signal, and address encoding information is sent to the energy storage battery pack so that the energy storage battery pack performs address encoding according to the address encoding information;
[0009] The system sequentially receives the first response messages sent by the energy storage battery packs, adjusts the address encoding information in sequence, and sends the adjusted address encoding information to the next-level energy storage battery pack, so that the next-level energy storage battery pack performs address encoding according to the address encoding information, until all energy storage battery packs have completed address encoding.
[0010] According to one aspect of the present invention, an address encoding method for an energy storage battery pack is provided, the method comprising:
[0011] Receive the broadcast message sent by the main control module and set the address code to a preset value;
[0012] Receive the address encoding information sent by the main control module, and perform address encoding according to the address encoding information;
[0013] The first response message is sent sequentially to the main control module, so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the next level energy storage battery pack, until all energy storage battery packs have completed address encoding.
[0014] According to another aspect of the present invention, an energy storage battery pack address encoding device is provided, the device comprising:
[0015] The broadcast message sending unit is used to send a broadcast message to all energy storage battery packs when the input signal of the main control module is a first level signal, so that the address code of all energy storage battery packs is set to a preset value;
[0016] The address encoding information sending unit is used to set the output signal of the main control module to a first level signal and send address encoding information to the energy storage battery pack, so that the energy storage battery pack performs address encoding according to the address encoding information;
[0017] The address encoding adjustment unit is used to receive the first response message sent by the energy storage battery pack in sequence, adjust the address encoding information in sequence, and send the adjusted address encoding information to the next level energy storage battery pack, so that the next level energy storage battery pack performs address encoding according to the address encoding information, until all energy storage battery packs have completed address encoding.
[0018] According to another aspect of the present invention, an energy storage battery pack address encoding device is provided, the device comprising:
[0019] The broadcast message receiving unit is used to receive broadcast messages sent by the main control module and set the address code to a preset value.
[0020] The address encoding information receiving unit is used to receive the address encoding information sent by the main control module and perform address encoding according to the address encoding information;
[0021] The first response message sending unit is used to send first response messages to the main control module in sequence, so that the main control module adjusts the address encoding information in order and sends the adjusted address encoding information to the next level energy storage battery pack until all energy storage battery packs have completed address encoding.
[0022] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0023] At least one processor; and
[0024] A memory communicatively connected to the at least one processor; wherein,
[0025] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an energy storage battery pack address encoding method according to any embodiment of claims 1-3 or 4-6.
[0026] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the energy storage battery pack address encoding method according to any embodiment of claims 1-3 or 4-6.
[0027] The technical solution of this invention involves sending a broadcast message to all energy storage battery packs when the input signal of the main control module is a first-level signal, so that the address code of all energy storage battery packs is set to a preset value. Then, the output signal of the main control module is set to the first-level signal, and address code information is sent to the energy storage battery packs, so that the energy storage battery packs perform address encoding according to the address code information. The system sequentially receives first response messages from the energy storage battery packs, adjusts the address code information in sequence, and sends the adjusted address code information to the next-level energy storage battery pack, so that the next-level energy storage battery pack performs address encoding according to the address code information, until all energy storage battery packs have completed address encoding. This technical solution can automatically assign address code information to each energy storage battery pack and can reduce the complexity of product configuration.
[0028] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 This is a flowchart of an energy storage battery pack address encoding method provided in Embodiment 1 of the present invention;
[0031] Figure 2 This is a structural diagram of the energy storage battery pack address encoding system provided in Embodiment 1 of this application;
[0032] Figure 3 This is a flowchart of an address encoding process for an energy storage battery pack provided in Embodiment 2 of the present invention;
[0033] Figure 4 This is a schematic diagram of the structure of an energy storage battery pack address encoding device provided in Embodiment 3 of the present invention;
[0034] Figure 5 This is a schematic diagram of the structure of an energy storage battery pack address encoding device provided in Embodiment 4 of the present invention;
[0035] Figure 6 This is a schematic diagram of the structure of an electronic device that implements an energy storage battery pack address encoding method according to an embodiment of the present invention. Detailed Implementation
[0036] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0037] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0038] Example 1
[0039] Figure 1 This is a flowchart of an address encoding method for an energy storage battery pack according to Embodiment 1 of the present invention. This embodiment is applicable to the allocation of address encoding information for energy storage battery packs. The method can be executed by an energy storage battery pack address encoding device, which can be implemented in hardware and / or software and can be configured in an electronic device. Figure 1 As shown, the method includes:
[0040] S110. When the input signal of the main control module is a first level signal, a broadcast message is sent to all energy storage battery packs so that the address code of all energy storage battery packs is set to a preset value.
[0041] In this plan, Figure 2 This is a structural diagram of the energy storage battery pack address encoding system provided in Embodiment 1 of this application, as shown below. Figure 2 As shown, the energy storage battery pack address encoding system consists of a main control module and multiple energy storage battery packs. The main control module is used to assign address encoding information to the energy storage battery packs. Both the main control module and the energy storage battery packs are connected to a Controller Area Network (CAN) bus. Two electrical signals, DI (digital input) and DO (digital output), are used to assist encoding between the main control module and the energy storage battery packs, and between the energy storage battery packs themselves. Each energy storage battery pack contains input and output signals from the previous energy storage battery pack or the main control module, as well as input and output signals from the next energy storage battery pack. DO1 and DI2 form one set of input / output signals, and DI1 and DO2 form another set of input / output signals.
[0042] The address code of the main control module can be set according to the address code requirements of the energy storage battery pack. For example, the address code of the main control module can be set to 0xF0.
[0043] In this embodiment, the first level signal can refer to a high level signal, where high level means that the voltage is within a first preset voltage range, and the first preset voltage range can be set as needed.
[0044] When an energy storage battery pack is connected to the energy storage battery pack address encoding system, the output signal DO1 of the main control module or the previous energy storage battery pack will be automatically set to the first level signal to remind the main control module or the previous energy storage battery pack that a new energy storage battery pack has been connected.
[0045] In this embodiment, the broadcast message can consist of letters and numbers, used to remind the energy storage battery pack to set the address code to a preset value. The preset value can be 0.
[0046] In this scheme, when the main control module starts up, it first checks whether the input signal DI2 of the next-level energy storage battery pack it contains is a first-level signal. If the input signal DI2 of the next-level energy storage battery pack is a first-level signal, and there is an energy storage battery pack connected in the energy storage battery pack address encoding system, a broadcast message is sent to set the address encoding of all energy storage battery packs to a preset value. The broadcast message is only processed when the address encoding of this energy storage battery pack is a preset value; otherwise, it is ignored.
[0047] S120. Set the output signal of the main control module to a first level signal and send address encoding information to the energy storage battery pack so that the energy storage battery pack performs address encoding according to the address encoding information.
[0048] The address encoding information can consist of letters and numbers; for example, the address encoding information can be 0xF1 or 0xF2. Different energy storage battery packs have different address encoding information.
[0049] Furthermore, after setting the address codes of all energy storage battery packs to preset values, the output signal DO2 of the next-level energy storage battery pack contained in the main control module is set to a first-level signal to notify the energy storage battery pack to enter address coding, and then the address coding information is sent to the energy storage battery pack. Specifically, the address coding information can be sent to the energy storage battery pack in the form of an address message. When the energy storage battery pack receives the address message, it sets its own coding to the address coding information sent by the main control module.
[0050] S130. Receive the first response message sent by the energy storage battery pack in sequence, adjust the address encoding information in order, and send the adjusted address encoding information to the next-level energy storage battery pack so that the next-level energy storage battery pack performs address encoding according to the address encoding information, until all energy storage battery packs have completed address encoding.
[0051] In this scheme, the first response message can consist of letters and numbers, used to remind the main control module that there is still an energy storage battery pack.
[0052] Furthermore, the energy storage battery pack sends a response message to the main control module by detecting the input signal DI2 of the next-level energy storage battery pack it contains. When the input signal DI2 of the next-level energy storage battery pack is a first-level signal, it indicates that an energy storage battery pack has been connected to the energy storage battery pack address encoding system. At this time, the energy storage battery pack sends a first response message to the main control module. The main control module allocates an address encoding information in sequence and sends the address encoding information to the next-level energy storage battery pack through an address encoding frame.
[0053] In this embodiment, after the next-level energy storage battery pack performs address encoding according to the address encoding information, the next-level energy storage battery pack, as the current energy storage battery pack, continues to detect whether the input signal DI2 of the next-level energy storage battery pack it contains is a first-level signal, until all energy storage battery packs have completed address encoding. For example, the energy storage battery pack address encoding system consists of a main control module, energy storage battery pack 1, energy storage battery pack 2, and energy storage battery pack 3, which are connected sequentially. The main control module sends address encoding information to energy storage battery pack 1. After address encoding according to the address encoding information, energy storage battery pack 1 detects the input signal of its contained energy storage battery pack 2. When the input signal of energy storage battery pack 2 is a first level signal, energy storage battery pack 1 sends a first response message to the main control module. The main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to energy storage battery pack 2. After address encoding according to the address encoding information, energy storage battery pack 2 detects the input signal of its contained energy storage battery pack 3. When the input signal of energy storage battery pack 3 is a first level signal, energy storage battery pack 2 sends a first response message to the main control module. The main control module continues to adjust the address encoding information in sequence and sends the adjusted address encoding information to energy storage battery pack 3. Energy storage battery pack 3 then performs address encoding according to the address encoding information, thereby completing the address encoding of all energy storage battery packs.
[0054] Optionally, after sending the address encoding information to the energy storage battery pack, the method further includes:
[0055] If a second response message is received from the energy storage battery pack, the address encoding ends and the system enters normal operating mode.
[0056] In this scheme, the second response message can consist of letters and numbers, and is used to remind the main control module that there is no energy storage battery pack thereafter.
[0057] Furthermore, the energy storage battery pack sends a response message to the main control module by detecting the input signal DI2 of the next-level energy storage battery pack it contains. When the input signal DI2 of the next-level energy storage battery pack is a second-level signal, it indicates that no energy storage battery pack is connected to the energy storage battery pack address encoding system. At this time, the energy storage battery pack sends a second response message to the main control module, and the main control module ends the address encoding and enters the normal operating state. The second-level signal is a low-level signal, which means that the voltage is within a second preset voltage range, which is less than a first preset voltage range.
[0058] By detecting the input signals of the next-level energy storage battery packs it contains, address coding information can be assigned to each energy storage battery pack, thereby avoiding the omission of address coding information assignment for energy storage battery packs.
[0059] Optionally, the method further includes steps A1-A2:
[0060] Step A1: If the first message sent by the energy storage battery pack is received, the address encoding information is adjusted in sequence, and the adjusted address encoding information is sent to the energy storage battery pack corresponding to the first message, so that the energy storage battery pack corresponding to the first message performs address encoding according to the address encoding information.
[0061] The first message can consist of letters and numbers and is used to remind the main control module that a new energy storage battery pack has been connected.
[0062] In this embodiment, the energy storage battery pack may refer to the last energy storage battery pack in the energy storage battery pack address encoding system. When the last energy storage battery pack detects that a new energy storage battery pack has been connected, it sends a first message to the main control module.
[0063] Furthermore, when the main control module is in normal working condition, it receives the first message sent by the last energy storage battery pack, continues to adjust the address encoding information in sequence, and sends the adjusted address encoding information to the newly connected energy storage battery pack.
[0064] Step A2: If a second message is received from the energy storage battery pack, the address code of the energy storage battery pack associated with the second message is set to invalid.
[0065] In this embodiment, the second message can consist of letters and numbers, and is used to remind the main control module that an energy storage battery pack has been removed.
[0066] In this scheme, when the energy storage battery pack detects that all its subsequent energy storage battery packs have been removed, it sends a second message to the main control module. When the main control module receives the second message sent by the energy storage battery pack, it sets the address code of all its subsequent energy storage battery packs of the removed energy storage battery pack to invalid.
[0067] Dynamic management of the energy storage battery pack can be achieved by receiving the first or second message sent by the energy storage battery pack.
[0068] The technical solution of this invention involves sending a broadcast message to all energy storage battery packs when the input signal of the main control module is a first-level signal, so that the address code of all energy storage battery packs is set to a preset value. Then, the output signal of the main control module is set to the first-level signal, and address code information is sent to the energy storage battery packs, so that the energy storage battery packs perform address encoding according to the address code information. The system sequentially receives the first response message sent by the energy storage battery packs, adjusts the address code information in sequence, and sends the adjusted address code information to the next-level energy storage battery pack, so that the next-level energy storage battery pack performs address encoding according to the address code information, until all energy storage battery packs have completed address encoding. By implementing this technical solution, address code information can be automatically assigned to each energy storage battery pack, reducing the complexity of product configuration and facilitating hot-swapping.
[0069] Example 2
[0070] Figure 3 This is a flowchart illustrating an address encoding process for an energy storage battery pack according to Embodiment 2 of the present invention. Figure 3 As shown, the method includes:
[0071] S310. Receive the broadcast message sent by the main control module and set the address code to a preset value.
[0072] In this embodiment, after receiving a broadcast message sent by the main control module, the energy storage battery pack sets its own address code to a preset value.
[0073] S320. Receive the address encoding information sent by the main control module, and perform address encoding according to the address encoding information.
[0074] In this scheme, when the energy storage battery pack receives the address encoding information sent by the main control module, it checks whether the input signal DI1 of the main control module it contains is a first level signal, and whether its own address encoding is a preset value. When the input signal DI1 is a first level signal and its own address encoding is a preset value, it sets its own encoding to the address encoding information sent by the main control module.
[0075] S330. First response messages are sent sequentially to the main control module so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the next level energy storage battery pack until all energy storage battery packs have completed address encoding.
[0076] In this scheme, after the energy storage battery pack performs address encoding, it checks whether the input signal DI2 of the next-level energy storage battery pack it contains is a first-level signal. If the input signal DI2 of the next-level energy storage battery pack is a first-level signal, it means that the next-level energy storage battery pack has been connected to the energy storage battery pack address encoding system. Then, it sends a first response message to the main control module so that the main control module continues to adjust the address encoding information in sequence and sends the adjusted address encoding information to the next-level energy storage battery pack.
[0077] Furthermore, after the next-level energy storage battery pack performs address encoding according to the address encoding information, the next-level energy storage battery pack, as the current energy storage battery pack, continues to detect whether the input signal DI2 of the next-level energy storage battery pack it contains is a first level signal. If the input signal DI2 of the next-level energy storage battery pack is a first level signal, it continues to send the first response message to the main control module until all energy storage battery packs have completed address encoding.
[0078] Optionally, after performing address encoding based on the address encoding information, the method further includes:
[0079] If the input signal of the next-stage energy storage battery pack is detected to be a second-level signal, a second response message is sent to the main control module so that the main control module ends the address encoding and enters the normal working state.
[0080] In this scheme, after the energy storage battery pack performs address encoding, it checks whether the input signal DI2 of the next-level energy storage battery pack it contains is a first-level signal. If the input signal DI2 of the next-level energy storage battery pack is a second-level signal, it means that the next-level energy storage battery pack is not connected to the energy storage battery pack address encoding system. Then, it sends a second response message to the main control module, so that the main control module ends the address encoding and enters the normal working state.
[0081] By detecting the input signals of the next-level energy storage battery packs it contains, address coding information can be assigned to each energy storage battery pack, thereby avoiding the omission of address coding information assignment for energy storage battery packs.
[0082] Optionally, the method further includes steps B1-B2:
[0083] Step B1: If the input signal of the next-level energy storage battery pack is detected to change from a second level signal to a first level signal, a first message is sent to the main control module so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the energy storage battery pack corresponding to the first message.
[0084] In this embodiment, when the energy storage battery pack detects that the input signal of the next-level energy storage battery pack it contains has changed from a second level signal to a first level signal, a new energy storage battery pack has been connected. At this time, a first message is sent to the main control module, that is, the main control module is notified that a new energy storage battery pack has been connected, so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the new energy storage battery pack.
[0085] Step B2: If the input signal of the next-level energy storage battery pack is detected to change from a first level signal to a second level signal, a second message is sent to the main control module so that the main control module sets the address code of the energy storage battery pack associated with the second message to invalid.
[0086] In this scheme, when the energy storage battery pack detects that the input signal of the next-level energy storage battery pack it contains has changed from a first level signal to a second level signal, and at this time an energy storage battery pack has been removed, a second message is sent to the main control module, that is, to notify the main control module that an energy storage battery pack has been removed, so that the main control module sets the address code of all subsequent energy storage battery packs of the removed energy storage battery pack to invalid.
[0087] Dynamic management of the energy storage battery pack can be achieved by receiving the first or second message sent by the energy storage battery pack.
[0088] The technical solution of this invention involves receiving a broadcast message from the main control module, setting the address code to a preset value, then receiving address code information from the main control module, performing address coding according to the address code information, and sequentially sending a first response message to the main control module. This allows the main control module to adjust the address code information sequentially and send the adjusted address code information to the next-level energy storage battery pack until all energy storage battery packs have completed address coding. By implementing this technical solution, address code information can be automatically assigned to each energy storage battery pack, reducing the complexity of product configuration and facilitating hot-swapping.
[0089] Example 3
[0090] Figure 4 This is a schematic diagram of an energy storage battery pack address encoding device provided in Embodiment 3 of the present invention. The device is configured in the main control module, such as... Figure 4 As shown, the device includes:
[0091] The broadcast message sending unit 410 is used to send a broadcast message to all energy storage battery packs when the input signal of the main control module is a first level signal, so that the address code of all energy storage battery packs is set to a preset value.
[0092] Address encoding information sending unit 420 is used to set the output signal of the main control module to a first level signal and send address encoding information to the energy storage battery pack, so that the energy storage battery pack performs address encoding according to the address encoding information;
[0093] Address coding adjustment unit 430 is used to receive the first response message sent by the energy storage battery pack in sequence, adjust the address coding information in sequence, and send the adjusted address coding information to the next level energy storage battery pack, so that the next level energy storage battery pack performs address coding according to the address coding information, until all energy storage battery packs complete address coding.
[0094] Optionally, the apparatus method further includes:
[0095] The second response message receiving unit is used to end address encoding and enter normal operation state if it receives a second response message sent by the energy storage battery pack.
[0096] Optionally, the device further includes:
[0097] The first message receiving unit is configured to, if it receives a first message sent by the energy storage battery pack, adjust the address encoding information in sequence and send the adjusted address encoding information to the energy storage battery pack corresponding to the first message, so that the energy storage battery pack corresponding to the first message performs address encoding according to the address encoding information.
[0098] The second message receiving unit is configured to invalidate the address code of the energy storage battery pack associated with the second message if it receives a second message sent by the energy storage battery pack.
[0099] The energy storage battery pack address encoding device provided in this embodiment of the invention can execute the energy storage battery pack address encoding method provided in Embodiment 1 of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0100] Example 4
[0101] Figure 5 This is a schematic diagram of an address encoding device for an energy storage battery pack according to Embodiment 4 of the present invention. The device is configured in an energy storage battery pack, such as... Figure 5 As shown, the device includes:
[0102] The broadcast message sending unit 510 is used to send a broadcast message to all energy storage battery packs when the input signal of the main control module is a first level signal, so that the address code of all energy storage battery packs is set to a preset value.
[0103] Address encoding information sending unit 520 is used to set the output signal of the main control module to a first level signal and send address encoding information to the energy storage battery pack, so that the energy storage battery pack performs address encoding according to the address encoding information;
[0104] Address coding adjustment unit 530 is used to receive the first response message sent by the energy storage battery pack in sequence, adjust the address coding information in sequence, and send the adjusted address coding information to the next level energy storage battery pack, so that the next level energy storage battery pack performs address coding according to the address coding information, until all energy storage battery packs complete address coding.
[0105] Optionally, the device further includes:
[0106] The second response message sending unit is used to send a second response message to the main control module if the input signal of the next-stage energy storage battery pack is detected to be a second level signal, so that the main control module ends the address encoding and enters the normal working state.
[0107] Optionally, the device further includes:
[0108] The first message sending unit is used to send a first message to the main control module if it detects that the input signal of the next-level energy storage battery pack changes from a second level signal to a first level signal, so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the energy storage battery pack corresponding to the first message.
[0109] The second message sending unit is used to send a second message to the main control module if it detects that the input signal of the next-level energy storage battery pack changes from a first level signal to a second level signal, so that the main control module sets the address code of the energy storage battery pack associated with the second message to invalid.
[0110] The energy storage battery pack address encoding device provided in this embodiment of the invention can execute the energy storage battery pack address encoding method provided in Embodiment 2 of the invention, and has the corresponding functional modules and beneficial effects of the method.
[0111] Example 5
[0112] Figure 6A schematic diagram of an electronic device 10 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0113] like Figure 6 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 may also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0114] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0115] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as an energy storage battery pack address encoding method.
[0116] In some embodiments, a battery pack address encoding method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the battery pack address encoding method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform a battery pack address encoding method by any other suitable means (e.g., by means of firmware).
[0117] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0118] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0119] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0120] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0121] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0122] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0123] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and no limitation is imposed herein.
[0124] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for address encoding of an energy storage battery pack, characterized in that, The energy storage battery pack includes the input and output signals of the previous stage energy storage battery pack or main control module, as well as the input and output signals of the next stage energy storage battery pack. Each energy storage battery pack is connected to the main control module via a controller area network bus; The method is executed by the main control module, and the method includes: When the input signal of the main control module is a first level signal, a broadcast message is sent to all energy storage battery packs so that the address code of all energy storage battery packs is set to a preset value; The output signal of the main control module is set to a first level signal, and address encoding information is sent to the energy storage battery pack so that the energy storage battery pack performs address encoding according to the address encoding information; The system sequentially receives first response messages from the energy storage battery packs, adjusts the address encoding information in sequence, and sends the adjusted address encoding information to the next-level energy storage battery pack, so that the next-level energy storage battery pack performs address encoding according to the address encoding information, until all energy storage battery packs have completed address encoding; wherein, the first response message is used to remind the main control module that there are still energy storage battery packs to follow; when the input signal of the next-level energy storage battery pack is a first level signal, the energy storage battery pack sends the first response message to the main control module; The method further includes, after sending the address encoding information to the energy storage battery pack: If the second response message sent by the energy storage battery pack is received, the address encoding ends and the system enters normal operation. The second response message is used to remind the main control module that there is no energy storage battery pack in the future. When the input signal of the next-level energy storage battery pack is a second-level signal, the energy storage battery pack sends the second response message to the main control module.
2. The method according to claim 1, characterized in that, The method further includes: If the first message sent by the energy storage battery pack is received, the address encoding information is adjusted in sequence, and the adjusted address encoding information is sent to the energy storage battery pack corresponding to the first message, so that the energy storage battery pack corresponding to the first message performs address encoding according to the address encoding information; If a second message is received from the energy storage battery pack, the address code of the energy storage battery pack associated with the second message is set to invalid.
3. A method for address encoding of an energy storage battery pack, characterized in that, The energy storage battery pack includes the input and output signals of the previous stage energy storage battery pack or main control module, as well as the input and output signals of the next stage energy storage battery pack. Each energy storage battery pack is connected to the main control module via a controller area network bus; The method is performed by an energy storage battery pack, and the method includes: Receive the broadcast message sent by the main control module and set the address code to a preset value; Receive the address encoding information sent by the main control module, and perform address encoding according to the address encoding information; If the input signal of the next-level energy storage battery pack is detected to be a first-level signal, a first response message is sent sequentially to the main control module, so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the next-level energy storage battery pack, until all energy storage battery packs have completed address encoding; wherein, the first response message is used to remind the main control module that there are still energy storage battery packs to be added; The method further includes, after address encoding based on the address encoding information: If the input signal of the next-stage energy storage battery pack is detected to be a second-level signal, a second response message is sent to the main control module so that the main control module ends the address encoding and enters the normal working state; wherein, the second response message is used to remind the main control module that there is no energy storage battery pack to follow.
4. The method according to claim 3, characterized in that, The method further includes: If the input signal of the next-level energy storage battery pack is detected to change from a second level signal to a first level signal, a first message is sent to the main control module so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the energy storage battery pack corresponding to the first message. If the input signal of the next-stage energy storage battery pack is detected to change from a first level signal to a second level signal, a second message is sent to the main control module so that the main control module sets the address code of the energy storage battery pack associated with the second message to invalid.
5. An address encoding device for an energy storage battery pack, characterized in that, The energy storage battery pack includes the input and output signals of the previous stage energy storage battery pack or main control module, as well as the input and output signals of the next stage energy storage battery pack. Each energy storage battery pack is connected to the main control module via a controller area network bus; The device is configured in the main control module, and the device includes: The broadcast message sending unit is used to send a broadcast message to all energy storage battery packs when the input signal of the main control module is a first level signal, so that the address code of all energy storage battery packs is set to a preset value; The address encoding information sending unit is used to set the output signal of the main control module to a first level signal and send address encoding information to the energy storage battery pack, so that the energy storage battery pack performs address encoding according to the address encoding information; The address encoding adjustment unit is used to sequentially receive the first response message sent by the energy storage battery pack, adjust the address encoding information in sequence, and send the adjusted address encoding information to the next-level energy storage battery pack, so that the next-level energy storage battery pack performs address encoding according to the address encoding information, until all energy storage battery packs have completed address encoding; wherein, the first response message is used to remind the main control module that there are still energy storage battery packs to follow; when the input signal of the next-level energy storage battery pack is a first level signal, the energy storage battery pack sends the first response message to the main control module; The device method further includes: The second response message receiving unit is used to end address encoding and enter normal operation state if it receives a second response message sent by the energy storage battery pack; wherein, the second response message is used to remind the main control module that there is no energy storage battery pack subsequently; when the input signal of the next-level energy storage battery pack is a second level signal, the energy storage battery pack sends the second response message to the main control module.
6. An address encoding device for an energy storage battery pack, characterized in that, The energy storage battery pack includes the input and output signals of the previous stage energy storage battery pack or main control module, as well as the input and output signals of the next stage energy storage battery pack. Each energy storage battery pack is connected to the main control module via a controller area network bus; The device is configured in an energy storage battery pack, and the device includes: The broadcast message receiving unit is used to receive broadcast messages sent by the main control module and set the address code to a preset value. The address encoding information receiving unit is used to receive the address encoding information sent by the main control module and perform address encoding according to the address encoding information; The first response message sending unit is configured to send a first response message to the main control module sequentially if the input signal of the next-level energy storage battery pack is detected to be a first level signal, so that the main control module adjusts the address encoding information in sequence and sends the adjusted address encoding information to the next-level energy storage battery pack until all energy storage battery packs have completed address encoding; wherein, the first response message is used to remind the main control module that there are still energy storage battery packs to be added. The device further includes: The second response message sending unit is used to send a second response message to the main control module if the input signal of the next-stage energy storage battery pack is detected to be a second level signal, so that the main control module ends the address encoding and enters the normal working state; wherein, the second response message is used to remind the main control module that there is no energy storage battery pack to follow.
7. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform an energy storage battery pack address encoding method according to any one of claims 1-2 or 3-4.
8. A computer-readable medium, characterized in that, The computer-readable medium stores computer instructions that cause a processor to execute and implement the energy storage battery pack address encoding method according to any one of claims 1-2 or 3-4.
Citation Information
Patent Citations
Battery management system and slave control coding method and device
CN112636762A
Dynamic addressing method and system for assembled battery pack
CN115529293A