Battery pack management method, device, apparatus, storage medium, and product

By dynamically determining the host in the battery pack management system and using bus addresses and fixed storage rules, the problem of low data processing efficiency during host switching of the battery pack is solved, and a fast and stable data acquisition and upgrade process is achieved.

CN120892368BActive Publication Date: 2026-03-27SHENZHEN PEICHENG ELECTRONIC TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-10-09
Publication Date
2026-03-27

AI Technical Summary

Technical Problem

In existing technologies, the data processing efficiency of battery packs is low when switching hosts. It is necessary to re-verify addresses and perform polling, which is time-consuming and affects data processing efficiency.

Method used

The battery pack that is the only one connected to the external device among multiple battery packs is designated as the master. Data is polled using the bus address and stored according to fixed storage rules, so that no polling needs to be re-executed when switching between any battery packs, thus maintaining the stability and speed of data acquisition.

Benefits of technology

This eliminates the need to re-execute polling when switching battery pack hosts, improving data processing efficiency, preventing data storage relationship corruption, and simplifying the code modification process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120892368B_ABST
    Figure CN120892368B_ABST
Patent Text Reader

Abstract

The application discloses a battery pack management method and device, equipment, storage medium and product, relates to the battery management technical field, and includes determining a battery pack connected with an external device only in a plurality of battery packs as a host; controlling the host to send battery data of the host to a bus, and controlling the host to perform data polling, so that slave machines except the host in the plurality of battery packs respectively send battery data of the slave machines to the bus; any battery pack stores battery data of other battery packs through the bus, battery data of any battery pack is stored in a preset number storage module, and battery data of a battery pack corresponding to the preset number storage module is stored in a storage module corresponding to any battery pack. The application can not only avoid re-performing data polling after the host is switched, but also still obtain corresponding battery data according to the same set of logic, without code change, so that the data storage relationship disorder is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of battery management, in particular to a battery pack management method, device, equipment, storage medium and product. BACKGROUND

[0002] In the related art, when a battery pack is shipped, one of the battery packs is usually set as a master, and the other battery packs are set as slaves. After the master initiates polling, the relevant data of all the battery packs are stored in the master.

[0003] However, once the master is changed, and the number of battery packs is increased or decreased, the new master needs to recheck the addresses and re-perform polling to obtain the data, which is very time-consuming and seriously slows down the data processing efficiency.

[0004] Therefore, how to improve the data processing efficiency of the battery pack when the master is switched is a problem to be solved at present. SUMMARY

[0005] The main purpose of the present application is to provide a battery pack management method, device, equipment, storage medium and product, which aims to solve the technical problem of how to ensure the stability and speed of data processing when the battery packs are connected.

[0006] To achieve the above purpose, the present application provides a battery pack management method, which comprises:

[0007] determining a battery pack connected to an external device as a master among a plurality of battery packs; wherein each battery pack is connected to a bus, each battery pack has a corresponding bus address, and each battery pack includes a plurality of storage modules, each storage module corresponding to a bus address;

[0008] controlling the master to send its battery data to the bus, and controlling the master to perform data polling, so that the slaves except the master among the plurality of battery packs send their battery data to the bus respectively; wherein any battery pack stores the battery data of other battery packs in the corresponding storage module according to the bus address of other battery packs when receiving the battery data of other battery packs through the bus, and the battery data of any battery pack itself is stored in a preset number storage module, and the battery data of the battery pack corresponding to the preset number storage module is stored in the storage module corresponding to any battery pack.

[0009] In some embodiments, the battery pack management method further comprises:

[0010] in the case of detecting a data missing signal sent by any battery pack, determining that the battery pack has a signal interruption, and outputting the bus address of the battery pack; and / or

[0011] In a case where the host detects that other battery packs have a bus address conflict, output the bus address of the battery pack.

[0012] In some embodiments, in a case where the host detects that other battery packs have a bus address conflict, output the bus address of the battery pack, including:

[0013] In a case where the host detects that the battery data sent by other battery packs cannot be parsed and the number of times of being unable to parse reaches a specified number of times, determine that there is a bus address conflict of the battery pack;

[0014] Output the bus address of the battery pack.

[0015] In some embodiments, the battery pack management method further includes:

[0016] Receive the upgrade data sent by the external device to the host;

[0017] In a case where it is determined that the upgrade data reception is completed, control the host to forward the upgrade data to each slave to enable each slave to perform an upgrade operation based on the upgrade data.

[0018] In some embodiments, after the upgrade data is forwarded from the host to each slave in a case where it is determined that the upgrade data reception is completed, the battery pack management method further includes:

[0019] Obtain the real-time current value of each slave;

[0020] In a case where the real-time current value of the slave is less than or equal to a preset current, determine that the slave is not in a working state, and control the slave to perform an upgrade operation according to the received upgrade data.

[0021] In some embodiments, after the slave is controlled to perform an upgrade operation according to the received upgrade data, the battery pack management method further includes:

[0022] During the process in which each slave performs an upgrade operation according to the received upgrade data, obtain the upgrade progress of each slave in real time;

[0023] Send the upgrade progress of each slave to the external device for visual display.

[0024] In addition, to achieve the above-mentioned purpose, the application further provides a battery pack management device, which includes:

[0025] A host determination module is configured to determine a battery pack connected to an external device as a host from a plurality of battery packs; each battery pack is connected to a bus, each battery pack has a corresponding bus address, and each battery pack includes a plurality of storage modules, each storage module corresponds to a bus address;

[0026] The data polling module is configured to control the host to send its battery data to the bus and to control the host to perform data polling so that the slaves except the host in the plurality of battery packs respectively send their battery data to the bus; wherein, in the case that any battery pack receives the battery data of other battery packs through the bus, the corresponding battery data of the other battery packs is stored in the corresponding storage module according to the bus address of the other battery packs, the battery data of any battery pack itself is stored in a preset number storage module, and the battery data of the battery pack corresponding to the preset number storage address is stored in the storage module corresponding to any battery pack.

[0027] In addition, to achieve the above object, the application further provides a battery pack management device, which comprises a memory, a processor and a computer program stored in the memory and executable on the processor, and the computer program is configured to implement the steps of the battery pack management method as described above.

[0028] In addition, to achieve the above object, the application further provides a storage medium, which is a computer readable storage medium, and the storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the battery pack management method as described above.

[0029] In addition, to achieve the above object, the application further provides a computer program product, which comprises a computer program, and the computer program is executed by a processor to implement the steps of the battery pack management method as described above.

[0030] The one or more technical solutions provided by the application have at least the following technical effects:

[0031] By determining the battery pack connected to the external device as the host among the plurality of battery packs, the host can be dynamically selected without being anchored to a certain fixed battery pack; in the process of parallel connection, the host is controlled to send its battery data to the bus, and the host is controlled to perform data polling so that the slaves except the host in the plurality of battery packs respectively send their battery data to the bus, in the case that any battery pack receives the battery data of other battery packs through the bus, the corresponding battery data of the other battery packs is stored in the corresponding storage module according to the bus address of the other battery packs, the battery data of any battery pack itself is stored in a preset number storage module, and the battery data of the battery pack corresponding to the preset number storage module is stored in the storage module corresponding to any battery pack. Thus, the storage of all battery packs is constrained based on the same specified storage rule, which can avoid re-performing data polling after the host is switched, and the corresponding battery data can still be obtained according to the same set of logic without changing the code, thereby avoiding the situation that the data storage relationship is disordered. BRIEF DESCRIPTION OF DRAWINGS

[0032] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0033] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the field, based on these drawings, other drawings can also be obtained without creative effort.

[0034] Figure 1 A flowchart of a battery pack management method provided by an embodiment of the present application is shown;

[0035] Figure 2 A mapping relationship between a storage module and battery data provided by an exemplary embodiment of the present application is shown;

[0036] Figure 3 A structure diagram of a battery pack management device provided by an embodiment of the present application is shown;

[0037] Figure 4 A structure diagram of a battery pack management device provided by an embodiment of the present application is shown.

[0038] The purposes, functional features and advantages of the present application will be further explained with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are merely intended to explain the technical solutions of the present application, and not to limit the present application.

[0040] In order to better understand the technical solutions of the present application, the following will be described in detail with reference to the accompanying drawings and specific embodiments.

[0041] The main solution of the embodiments of the present application is: determining a battery pack connected to an external device as a host among multiple battery packs; wherein each battery pack is connected to a bus, each battery pack has a corresponding bus address, and each battery pack includes multiple storage modules, each storage module corresponding to a bus address; the host sends its battery data to the bus, and the host performs data polling to make the slaves of the multiple battery packs except the host send their battery data to the bus respectively; wherein any battery pack stores the battery data of other battery packs in the corresponding storage module according to the bus address of the other battery packs when receiving the battery data of the other battery packs through the bus, the battery data of any battery pack itself is stored in a storage module with a preset number, and the battery data of the battery pack corresponding to the preset number storage address is stored in the storage module corresponding to any battery pack.

[0042] In the related art, when a battery pack is shipped, one of the battery packs is usually set as a master, and the other battery packs are set as slaves. After the master initiates polling, the relevant data of all the battery packs are stored in the master.

[0043] However, once the user changes the master and adds or removes battery packs, the new master needs to recheck the addresses and re-perform polling to obtain the data, which is very time-consuming and seriously slows down the data processing efficiency.

[0044] In summary, how to improve the data processing efficiency of the battery pack when the master is switched is a problem to be solved at present.

[0045] Based on this, the application provides a solution, so that any battery pack stores battery data of all battery packs according to fixed rules, so that when the master is arbitrarily switched or the battery pack is arbitrarily added or removed, the fast acquisition of the battery data is not affected, and there is no need to re-perform polling, which saves a lot of time and improves the data acquisition efficiency.

[0046] It should be noted that the execution subject of the embodiment can be a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a battery pack management device capable of realizing the above functions. The battery pack management device is taken as an example to describe the embodiment and the following embodiments.

[0047] Referring to Figure 1 , Figure 1 A flowchart of a battery pack management method provided by an embodiment of the application is shown. The battery pack management method can be applied to a battery pack management device and includes the following steps S110 to S120:

[0048] Step S110, determining a battery pack that is uniquely connected to an external device among a plurality of battery packs as a master.

[0049] The battery pack refers to an independent expandable energy storage unit that integrates an electrochemical energy storage unit, a battery management system and a communication interface. The communication interface of the battery pack can include at least one physical interface complying with the RS-485 standard, for realizing data interaction with external devices and other battery packs. The battery management system is responsible for monitoring the operating state parameters of the electrochemical energy storage unit (commonly referred to as the battery cell), including but not limited to voltage, current, temperature, state of charge and health status, etc. These operating state parameters are the battery data in the following.

[0050] In the embodiment, the battery pack can be connected with the 485 bus through a physical interface. It can be understood that the 485 bus refers to a half-duplex, differential signal, multi-point communication serial data bus based on the TIA / EIA-485-A standard. The RS-485 communication interfaces of all the battery packs are connected in parallel on the same pair of communication lines to form a shared communication channel, and data transmission is performed through the communication channel.

[0051] Each device connected to the 485 bus has a corresponding bus address, which is a unique number used to identify each device in the communication bus. In the embodiment, after each battery pack has been connected to the bus, the battery pack management device can be powered on and initialized first.

[0052] After initialization, the 485 main line can be in a silent state before the host is confirmed, that is, the bus addresses of all the battery packs are set to a default value, for example, address 1. Due to the physical arrangement constraints of the battery packs, the coding lines of the battery packs are usually connected in series. Therefore, the first battery pack can send a coding signal to the next battery pack, and the next battery pack determines its bus address after receiving the coding signal. For example, the bus address of the first battery pack is the default value address 1, the first battery pack sends a coding signal to the second battery pack in series, and the second battery pack confirms its bus address as address 2 when receiving the coding signal, and then sends a coding signal to the third battery pack in series... and so on, until all the battery packs have corresponding bus addresses.

[0053] It should be noted that if a user inserts a new battery pack in the already combined multiple battery packs, the battery pack before its insertion position needs to resend the coding signal, and then the new battery pack sends a coding signal to the battery pack after it, so as to realize the re-allocation of the bus address.

[0054] After all the battery packs have corresponding bus addresses, the battery pack management device is in a default hostless mode. At the same time, it is in real time to determine whether there is a battery pack accessing an external device. The external device can include an upper computer and an inverter, etc.

[0055] The inverter is a power conversion device used to convert the direct current stored in the battery cell into alternating current. In the present application, the inverter has a special position as a bridge between the energy storage system and the external power grid or load, so when the battery pack accesses the inverter, the battery pack is regarded as the host.

[0056] The host computer refers to a device used for debugging, configuring and upgrading the battery pack, such as a notebook computer, a desktop computer or other special-purpose device. The host computer can be connected with the battery pack through a communication interface (such as the aforementioned 485 bus) to send instructions, receive data and perform firmware upgrade on the battery pack, and thus the battery pack connected with the host computer is determined as the master.

[0057] It should be noted that the 485 bus adopts a master-slave communication protocol, that is, at any time, only one device (i.e., the master) has the control right of the bus and can actively initiate communication; other devices (i.e., slaves) are in a listening state and are only allowed to send a response frame on the bus after receiving an instruction frame sent by the master and containing their own address. Based on this, the embodiment designs determine the battery pack connected with the external device as the master among the plurality of battery packs.

[0058] It can be understood that in the embodiment, the master is dynamically determined. For example, in the case of firmware upgrade, the user does not necessarily have to connect the host computer to the battery pack at a specified address, but can connect to any battery pack at will, and immediately determine the battery pack connected at that time as the master. In this way, the user can avoid wasting a lot of time in searching for the address corresponding to the fixed master and matching the corresponding line.

[0059] In step S120, the master sends its battery data to the bus and controls the master to perform data polling so that the slaves except the master among the plurality of battery packs send their respective battery data to the bus.

[0060] As described above, in the related art, during the process of battery pack connection, the battery data of all battery packs is usually only saved in the pre-fixed master, which makes the master unable to be switched because once the master is switched, the new master has no data available, and thus a new round of polling must be started to reacquire and save the data.

[0061] It can be understood that due to the limitation of technology, in the case of a large number of battery packs, the polling usually occupies a long time. For the upgrade of the battery pack and the like, the waiting for this period of time has a great influence on the upgrade efficiency. To solve this problem, the embodiment designs make all battery packs save the battery data of all battery packs, so that when any battery pack is appointed as the master, it knows the battery data of all battery packs without the need to re-perform polling to waste time and slow down the upgrade efficiency.

[0062] Among them, the polling refers to that each battery pack corresponds to a response time slot, and the master sends a data acquisition request to each slave in turn according to the bus address, and the slave acquires its own battery data after receiving the data acquisition request and sends the battery data to the 485 bus in the response time slot corresponding to itself.

[0063] Meanwhile, the host itself as a battery pack also has battery data. But as the host, polling cannot make the host "answer itself", so the embodiment designs that the host can actively send its own battery data to the 485 bus.

[0064] As an implementation, the host can package its own battery data into a data acquisition request and send it to each slave. When the slave receives the data acquisition request, it can parse the host's battery data and save it accordingly. As another implementation, the host can actively send its own battery data to the 485 bus before starting polling, so that each slave can first save the host's battery data from the 485 bus. It should be noted that the transmission of host battery data can include but is not limited to the two examples described above, which are not limited in this embodiment.

[0065] It can be understood that each battery pack corresponds to a storage device, and each storage device includes a plurality of storage modules, which are connected in sequence and identified by storage module labels (also known as subscripts).

[0066] In this embodiment, since the battery data corresponding to each battery pack needs to be stored, each storage module corresponds to a bus address, i.e., is used to store the battery data of a corresponding battery pack.

[0067] It can be understood that if the storage layout of each battery pack is different, it may cause the correspondence between all battery data, bus addresses and storage modules (subscripts) to be completely chaotic when the host is changed, and still need to be polled again. For example, the battery pack at address 1 stores its own data in subscript 0, while the battery pack at address 3 stores its own data in subscript 2, which means that when the host is switched from address 1 to address 3, the data processing code must also be adjusted, otherwise it may access subscript 0 and get the data of address 1, but still consider it as its own data, but in fact the host data is stored in subscript 2.

[0068] To reduce code complexity and error risk and improve overall performance, the embodiment sets a fixed rule to anchor the storage method of any battery pack, which specifies that the battery data of any battery pack must be stored in a designated preset number storage module, and the battery data originally stored in the preset number storage module is transposed with the host's battery data.

[0069] Specifically, as an implementation, it can be specified that the battery data of the local machine must be stored in the first storage module (i.e., subscript 0), and the battery data of the battery pack originally corresponding to subscript 0 (i.e., the battery pack with bus address 1) is stored in the position originally corresponding to the local machine, and all the remaining battery data is sequentially stored according to the original corresponding relationship.

[0070] As shown in the example, Figure 2 For example, as shown in the example of five battery packs (addresses 1, 2, 3, 4, and 5) connected in parallel, it is assumed that the host is the battery pack corresponding to address 3. For battery pack 3, the battery data of the local machine is first stored in the storage module corresponding to subscript 0, and then the battery data of address 1 originally corresponding to subscript 0 is stored in the position originally corresponding to the local machine, i.e., subscript 2, and all the remaining battery data is sequentially stored according to the original corresponding relationship.

[0071] At the same time, the battery pack corresponding to address 2 will store the battery data of address 2 corresponding to subscript 0, and the battery data of address 1 corresponding to subscript 1, and the remaining battery data will be sequentially stored according to the corresponding relationship. Even if the host switches from address 3 to address 2, the host machine can still quickly and directly find the corresponding battery data through subscript 0 when obtaining the local data of the host machine.

[0072] Therefore, based on the same specified storage rule, the storage of all battery packs is constrained, so that the host can still obtain the corresponding battery data according to the same logic after switching, without the need to change the code, avoiding the occurrence of data storage relationship disorder.

[0073] In some embodiments, during the parallel connection process, if any battery pack detects a data missing signal, it is determined that the battery pack has a signal interruption, and the bus address of the battery pack is output; and / or if the host detects that another battery pack has a bus address conflict, the bus address of the battery pack is output.

[0074] In some embodiments, any battery pack can receive a data acquisition request from the host and battery data from other battery packs on the bus. If the battery pack does not receive any signal or data from the bus, it can send a data missing signal to indicate that the connection between itself and the bus has failed, such as poor connection of the parallel connection line.

[0075] In this embodiment, the data missing signal can be an indicator light flashing. It can be understood that each battery pack can be provided with a corresponding indicator light for sending a prompt for the user to understand the fault state.

[0076] In some cases, when the host inspects the battery data of the self storage unit and each battery pack, if it is found that the same storage module stores multiple battery data, and the battery data is disordered and cannot be identified, it can be judged that the battery pack has a fault condition.

[0077] Specifically, in the case where the host detects that the battery data sent by other battery packs cannot be parsed and the number of times of being unable to parse reaches a specified number, it is determined that there is a bus address conflict of the battery pack; and the bus address of the battery pack is output.

[0078] It can be understood that if the coding line is not well contacted during the parallel connection process, it may cause address conflict, such as two battery packs corresponding to one bus address, or one bus address being incorrectly assigned, etc. At this time, the host can make a judgment in combination with the battery data returned by the slave, for example, a certain slave responds to the data acquisition request, but the battery data fed back by it is disordered and cannot be parsed and identified for more than three times in succession, it can be judged that the slave has an address conflict, and the indicator light of the host and / or the slave flashes to prompt the user that there is an address conflict.

[0079] Therefore, the user can quickly know the occurrence of the fault and the position of the fault, so as to facilitate the user to make connection without any basis, and even if the connection is wrong, there will be a corresponding prompt alarm, which reduces the learning cost and the use threshold.

[0080] The embodiment provides a battery pack management method, which determines a battery pack connected to an external device as a host in a plurality of battery packs, so that the host can be dynamically selected, and does not have to be anchored to a certain fixed battery pack; in the process of parallel connection, the host is controlled to send its own battery data to a bus, and the host is controlled to perform data polling, so that the slaves except the host in the plurality of battery packs respectively send their own battery data to the bus, and any battery pack stores the corresponding battery data in the corresponding storage module according to the bus address of other battery packs in the case where the battery data of other battery packs is received through the bus, and the battery data of the battery pack corresponding to the preset number storage module is stored in the storage module corresponding to any battery pack. Therefore, the storage conditions of all battery packs are constrained based on the same specified storage rule, which can not only avoid re-performing data polling after the host is switched, but also can still obtain the corresponding battery data according to the same logic, without the need of changing the code, and the disordered data storage relationship is avoided.

[0081] In some embodiments, after the step S120, the battery pack management method can further include steps S130 to S140:

[0082] Step S130, receiving the upgrade data sent by the external device to the host.

[0083] In the embodiment, the external device is the upper computer. The upper computer can store the upgrade data for upgrading. It can be understood that the battery pack connected to the upper computer is the host, and the upper computer can directly send the upgrade data to the host through the line connected thereto.

[0084] Step S140, in the case where it is determined that the upgrade data receiving is completed, the host is controlled to forward the upgrade data to each slave, so that each slave performs an upgrade operation based on the upgrade data.

[0085] The upper computer can have a display screen. During the process of sending the upgrade data to the host, the transmission progress can be monitored in real time and fed back to the upper computer, so that the upper computer displays the transmission progress on the display screen.

[0086] In the case where it is determined that the upgrade data receiving is completed, the host can be controlled to forward the upgrade data to each slave. The forwarding mode can be to send the upgrade data to the 485 bus, and each slave downloads and saves the upgrade data from the 485 bus. It can also be directly forwarded to each slave, which is not limited in the embodiment. During the forwarding process, if the forwarding process of a certain slave fails, the bus address of the slave is recorded and queued for re-forwarding until all slaves correctly receive the upgrade data.

[0087] Since the upgrade data of the slave depends only on the forwarding of the host, after the host receives the upgrade data, the user can remove the connection between the upper computer and the host. It can be understood that the user can instead connect the upper computer to one of the battery packs in another battery pack system to upgrade the other battery pack system, without waiting for the host and the slave in the current system to receive completely, which can save the upgrade time and improve the upgrade efficiency.

[0088] It can be understood that for any battery pack, directly performing upgrade when it is in a working state can cause the load of the battery pack to suddenly drop, which can cause a major safety problem if the battery pack is applied to a vehicle.

[0089] Therefore, in the embodiment, the real-time current value of each slave is obtained, and in the case where the real-time current value of the slave is less than or equal to a preset current, it is determined that the slave is not in a working state, and the slave is controlled to perform an upgrade operation according to the received upgrade data.

[0090] Thus, the upgrade is avoided when the battery pack is normally charged and discharged, and the situation of sudden load drop is avoided. The embodiment is designed to only jump to upgrade when the current is extremely small or no current passes, ensuring that the normal use of the battery pack is not affected.

[0091] In addition, in the process of performing the upgrade operation according to the received upgrade data by each slave, the upgrade progress of each slave is acquired in real time; the upgrade progress of each slave is sent to the external device for visual display. Even if the host is pulled out during the upgrade process and then plugged in after a period of time, the host can still normally display the upgrade progress. Thus, the user can monitor the upgrade progress in real time.

[0092] In some embodiments, the upgrade speed can be improved by modifying the baud rate. It can be understood that the 485 transceiver hardware itself supports multiple baud rates. At the beginning of the upgrade, the host can first use 9600bps baud rate to handshake with the slave. When confirming that the link is normal and stable, the user can increase the baud rate to a higher baud rate and continue to perform the transmission of the upgrade data to improve the transmission rate and shorten the upgrade time.

[0093] The application also provides a battery pack management device, please refer to Figure 3 The battery pack management device 100 comprises:

[0094] The host determining module 110 is configured to determine a battery pack connected to the external device as the host among the plurality of battery packs; each of the battery packs is connected to a bus, each of the battery packs has a corresponding bus address, and each of the battery packs comprises a plurality of storage modules, each of the storage modules corresponding to a bus address;

[0095] The data polling module 120 is configured to control the host to send battery data of the host to the bus and control the host to perform data polling so that the slaves except the host among the plurality of battery packs send their respective battery data to the bus; in the case that any battery pack receives battery data of other battery packs through the bus, the any battery pack stores the corresponding battery data of the other battery pack in the corresponding storage module according to the bus address of the other battery pack, the battery data of the any battery pack itself is stored in a preset number storage module, and the battery data of the battery pack corresponding to the preset number storage address is stored in the storage module corresponding to the any battery pack.

[0096] The battery pack management device 100 provided by the application adopts the battery pack management method in the above embodiments, and can solve the technical problem of how to improve the data processing efficiency of the battery pack when the host is switched. Compared with the prior art, the battery pack management device 100 provided by the application has the same beneficial effects as the battery pack management method provided by the above embodiments, and the other technical features of the battery pack management device 100 are the same as the features disclosed in the above embodiments, which will not be repeated here.

[0097] The application provides a battery pack management device, comprising: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the battery pack management method in the above embodiment one.

[0098] Reference will now be made to the following description Figure 4 which illustrates a structural diagram of a battery pack management device suitable for implementing embodiments of the application. The battery pack management device in the embodiments of the application can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (for example, vehicle-mounted navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. Figure 4 The illustrated battery pack management device is merely an example and should not impose any limitation on the functions and use range of the embodiments of the application.

[0099] As Figure 4 shown, the battery pack management device 200 can include a processing apparatus 210 (for example, a central processor, a graphic processor, or the like) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 220 or loaded from a storage apparatus 230 into a random access memory (RAM) 240. In the RAM 240, various programs and data required for the operation of the battery pack management device are also stored. The processing apparatus 210, the ROM 220, and the RAM 240 are connected to each other through a bus 250. An input / output (I / O) interface 260 is also connected to the bus. In general, the following systems can be connected to the I / O interface 260: input apparatuses 270 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, and the like; output apparatuses 280 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, and the like; the storage apparatus 230 including, for example, a magnetic tape, a hard disk, and the like; and a communication apparatus 290. The communication apparatus 290 can allow the battery pack management device to perform wireless or wired communication with other devices to exchange data. Although the battery pack management device having various systems is shown in the drawing, it should be understood that all the illustrated systems are not required to be implemented or provided. More or less systems can be alternatively implemented or provided.

[0100] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program codes for executing the method shown in the flowchart. In such embodiments, the computer program can be downloaded and installed from a network through a communication device, or installed from the storage device 230, or installed from the ROM 220. When the computer program is executed by the processing device 210, the above-mentioned functions defined in the method of the embodiments disclosed in the present application are executed.

[0101] The battery pack management device provided by the present application adopts the battery pack management method in the above-mentioned embodiments, and can solve the technical problem of how to improve the data processing efficiency of the battery pack when the host switches. Compared with the prior art, the battery pack management device provided by the present application has the same beneficial effects as the battery pack management method provided by the above-mentioned embodiments, and other technical features in the battery pack management device are the same as the features disclosed in the previous embodiment method, which will not be repeated here.

[0102] It should be understood that parts of the present application can be realized by hardware, software, firmware or a combination thereof. In the description of the above-mentioned embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0103] The above is merely specific embodiments of the present application, but the protection scope of the present application is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope disclosed in the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

[0104] The present application provides a computer readable storage medium having stored thereon computer readable program instructions (i.e. computer program) for executing the battery pack management method in the above-mentioned embodiments.

[0105] The computer readable storage medium provided in the present application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system or device, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electric connection with one or more conductive 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 embodiment, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system or device. The program code contained on the computer readable storage medium can be transmitted in any suitable medium, including but not limited to an electric wire, an optical cable, an RF (Radio Frequency), and the like, or any suitable combination of the above.

[0106] The above computer readable storage medium can be contained in the battery pack management device, or can exist separately without being assembled into the battery pack management device.

[0107] The above computer readable storage medium carries one or more programs, which, when executed by the battery pack management device, enable the battery pack management device to write computer program code in one or more programming languages or combinations thereof for performing the operations of the present application, the programming languages including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user computer, partially on the user computer, as a separate software package, partially on the user computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user computer through any kind of network, including a LAN (Local Area Network) or a WAN (Wide Area Network), or can be connected to an external computer (for example, through the Internet using an Internet service provider).

[0108] The flow and block diagrams in the drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flow and block diagrams can represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently or the blocks may be executed in the reverse order, depending on the functionality involved. It will also be noted that each block of the block diagrams and / or flowchart illustrations, and combinations thereof, can be implemented by special purpose hardware-based systems that perform the specified functions or operations, or combinations of special purpose hardware and computer instructions.

[0109] The modules involved in the embodiments of the present application can be implemented in software or in hardware. In some cases, the names of the modules do not limit the modules themselves.

[0110] The readable storage medium provided by the present application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer programs) for executing the battery pack management method described above, and can solve the technical problem of how to improve the data processing efficiency of the battery pack during host switching. Compared with the prior art, the computer readable storage medium provided by the present application has the same beneficial effects as the battery pack management method provided by the above embodiments, which will not be repeated here.

[0111] The present application also provides a computer program product comprising a computer program, which, when executed by a processor, implements the steps of the battery pack management method as described above.

[0112] The computer program product provided by the present application can solve the technical problem of how to improve the data processing efficiency of the battery pack during host switching. Compared with the prior art, the computer program product provided by the present application has the same beneficial effects as the battery pack management method provided by the above embodiments, which will not be repeated here.

[0113] The above only describes some embodiments of the present application, and does not limit the protection scope of the present application, and any equivalent structural transformation made by using the content of the present application specification and drawings, or direct / indirect application in other related technical fields is included in the patent protection scope of the present application.

Claims

1. A battery pack management method, characterized in that, The battery pack management method includes: The battery pack that is uniquely connected to an external device among multiple battery packs is identified as the host; wherein each battery pack is connected to a bus, each battery pack has a corresponding bus address, and each battery pack includes multiple storage modules, each storage module corresponding to a bus address, so that there is a correspondence between the storage module and the battery pack; The host computer is controlled to send its own battery data to the bus, and the host computer is also controlled to perform data polling, so that the slave devices of multiple battery packs other than the host computer send their respective battery data to the bus. When any battery pack receives battery data from other battery packs through the bus, it stores the corresponding battery data in a storage module determined according to the bus address of the other battery pack. The battery data of each battery pack itself is stored in a preset-numbered storage module, and the battery data of the battery packs determined by the preset-numbered storage module according to the correspondence is stored in the storage module determined by the correspondence of each battery pack. This allows the battery data that should be stored in the preset-numbered storage module and the battery data of each battery pack to be swapped in their actual storage modules according to the correspondence.

2. The battery pack management method as described in claim 1, characterized in that, The battery pack management method further includes: If a data loss signal is detected from any of the battery packs, it is determined that a signal interruption has occurred in the battery pack, and the bus address of the battery pack is output; and / or If the host detects a bus address conflict with another battery pack, it outputs the bus address of that battery pack.

3. The battery pack management method as described in claim 2, characterized in that, The step of outputting the bus address of the battery pack when the host detects a bus address conflict with another battery pack includes: If the host detects that battery data sent by other battery packs cannot be parsed and the number of times the data cannot be parsed reaches a specified number, it is determined that there is a bus address conflict in the battery pack. Output the bus address of the battery pack.

4. The battery pack management method as described in claim 1, characterized in that, The battery pack management method further includes: Receive upgrade data sent from the external device to the host; Upon confirming that the upgrade data reception is complete, the host controls the host to forward the upgrade data to each of the slave devices, so that each slave device can perform an upgrade operation based on the upgrade data.

5. The battery pack management method as described in claim 4, characterized in that, After determining that the upgrade data reception is complete, and forwarding the upgrade data from the host to each of the slave devices, the battery pack management method further includes: Obtain the real-time current value of each slave device; If the real-time current value of the slave device is less than or equal to the preset current, it is determined that the slave device is not in a working state, and the slave device is controlled to perform an upgrade operation according to the received upgrade data.

6. The battery pack management method as described in claim 5, characterized in that, After the slave device is controlled to perform an upgrade operation based on the received upgrade data, the battery pack management method further includes: During the process of each slave device performing an upgrade operation based on the received upgrade data, the upgrade progress of each slave device is obtained in real time; The upgrade progress of each slave device is sent to the external device for visual display.

7. A battery pack management device, characterized in that, The battery pack management device includes: A host determination module is used to identify the battery pack that is uniquely connected to an external device among multiple battery packs as the host; wherein each battery pack is connected to a bus, each battery pack has a corresponding bus address, and each battery pack includes multiple storage modules, each storage module corresponding to a bus address, so that there is a correspondence between the storage module and the battery pack; A data polling module is used to control the host to send its own battery data to the bus and to control the host to perform data polling, so that the slave devices of multiple battery packs other than the host send their respective battery data to the bus. When any battery pack receives battery data from other battery packs through the bus, it stores the corresponding battery data in a storage module determined according to the bus address of the other battery pack. The battery data of any battery pack itself is stored in a preset-numbered storage module, and the battery data of the battery packs determined by the preset-numbered storage module according to the correspondence is stored in the storage module determined by the correspondence of any battery pack, so that the battery data that should be stored in the preset-numbered storage module and the battery data of any battery pack are swapped in their actual storage modules according to the correspondence.

8. A battery pack management device, characterized in that, The battery pack management device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the battery pack management method as described in any one of claims 1 to 6.

9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the battery pack management method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the battery pack management method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Power management device, power management system and method for acquiring battery pack information

    CN109904535A

  • Battery management method and system and storage medium

    CN115441071A

  • Upgrading method, device, system and medium

    CN119292625A