A method, device, equipment and computer-readable storage medium for balancing power

By introducing preset verification equipment and blockchain networks into the battery pack, the legality and safety of the charge and discharge strategy are ensured, the problem of attackers controlling battery charge and discharge at will is solved, and the battery pack's power balance and lifespan are improved.

CN118523466BActive Publication Date: 2024-10-22DAITIAN NEW ENERGY TECH (SHANGHAI) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411000992.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-22
Estimated Expiration
2044-07-25

Smart Images

  • Figure CN118523466B_ABST
    Figure CN118523466B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, device, equipment and computer-readable storage medium for balancing the power in a battery pack, which belongs to the field of battery management and is used to balance the power in a battery pack, solving the problem that the battery pack may be imbalanced due to attacks. The controller in the present invention can determine the first target battery in the battery pack and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules, and the controller can control the first target battery to charge and discharge according to the charging and discharging strategy when the preset verification device adopts the same preset rules to verify that the first target battery and its charging and discharging strategy are legal. The battery that is finally charged and discharged is confirmed by at least two parties, and the charging and discharging strategy is determined based on the designated battery information of each battery in the battery pack, which can avoid the attacker's arbitrary control of the charging and discharging action, improve the balance of the power of each battery in the battery pack, and thus improve the performance and service life of the battery pack.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of battery management, and in particular to a power balancing method, device, equipment and computer-readable storage medium. Background Art

[0002] Many fields use battery packs consisting of multiple batteries and controllers. The controller can manage the battery status and charging and discharging. The power balance of each battery in the battery pack has an impact on the performance and life of the battery pack. However, in real applications, some attackers may control the charging and discharging of the batteries in the battery pack through the controller, thereby destroying the power balance of the battery pack, indirectly affecting the performance of the battery pack and shortening the life of the battery pack.

[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention

[0004] The purpose of the present invention is to provide a power balancing method, device, equipment and computer-readable storage medium. Since the battery to be charged and discharged is finally confirmed by at least two parties, and the charging and discharging strategy is determined based on the specified battery information of each battery in the battery pack, it can avoid the attacker's arbitrary control of the charging and discharging actions, improve the balance of the power of each battery in the battery pack, and thus improve the performance and service life of the battery pack.

[0005] In order to solve the above technical problems, the present invention provides a power balancing method, which is applied to a controller and includes:

[0006] Determine a first target battery in the battery pack and its charge and discharge strategy according to designated battery information of each battery in the battery pack and preset rules, wherein the first target battery refers to a battery with charge and discharge requirements, and the designated battery information includes the remaining power;

[0007] Sending the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery to which the power transaction request belongs and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules;

[0008] If the preset verification device verifies that the first target battery and its charge and discharge strategy are legal, the first target battery is controlled to be charged and discharged according to the corresponding charge and discharge strategy.

[0009] On the other hand, the controller is a battery management system of any battery in the battery pack;

[0010] The preset verification device is at least one battery management system in the battery pack other than itself;

[0011] Sending the power transaction request of the first target battery to a preset verification device includes:

[0012] If the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device;

[0013] The power balancing method further includes:

[0014] When an electric quantity transaction request is received, the legality of the first target battery to which the electric quantity transaction request belongs and its charge and discharge strategy is verified according to the designated battery information of each battery in the battery pack and preset rules.

[0015] On the other hand, the power transaction request includes a charge and discharge strategy and a generation time of the charge and discharge strategy;

[0016] When receiving an electric quantity transaction request, verifying the legitimacy of the first target battery to which the electric quantity transaction request belongs and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and the preset rules includes:

[0017] When receiving an electric quantity transaction request, determining the designated battery information of each battery in the battery pack at the generation time in the electric quantity transaction request as the battery information to be verified;

[0018] Determine a second target battery in the battery pack and its charge and discharge strategy according to the battery information to be verified and preset rules, wherein the second target battery refers to a battery with charge and discharge requirements;

[0019] Determine whether the battery sending the request belongs to the second target battery, wherein the battery sending the request refers to the battery managed by the battery management system sending the power transaction request;

[0020] If yes, determine whether the charge and discharge strategy in the power transaction request is consistent with the charge and discharge strategy to be verified, wherein the charge and discharge strategy to be verified refers to: the charge and discharge strategy corresponding to the request sending battery when it serves as the second target battery;

[0021] If they are consistent, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are legal, and a verification pass mark is sent to the battery management system that sent the energy transaction request;

[0022] When the battery sending the request does not belong to the second target battery, or when the charge and discharge strategy in the energy transaction request is inconsistent with the charge and discharge strategy to be verified, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are illegal, and a verification failure flag is sent to the battery management system that sent the energy transaction request.

[0023] On the other hand, if the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device includes:

[0024] If the battery managed by itself is the first target battery, based on the charge and discharge strategy of the battery managed by itself, generate a power transaction request for the battery managed by itself in a preset format, and add its own identity to the power transaction request;

[0025] Sending the electricity transaction request to the preset verification device;

[0026] When receiving the power transaction request, the specified battery information of each battery in the battery pack at the generation time in the power transaction request is determined, and the battery information to be verified includes:

[0027] When receiving an electricity transaction request, determining whether the format of the electricity transaction request is a preset format;

[0028] If it is the preset format, determining whether the identity in the power transaction request belongs to a battery pack identity set, wherein the battery pack identity set includes the identity of each battery in the battery pack;

[0029] If yes, then determining the designated battery information of each battery in the battery pack at the generation time in the power transaction request as the battery information to be verified;

[0030] When the format of the power transaction request is not a preset format, or when the identity identifier in the power transaction request does not belong to the battery group identity set, the power transaction request is determined to be illegal, and a verification failure flag is sent to the battery management system that sends the power transaction request.

[0031] On the other hand, the battery management system of each battery in the battery pack serves as a blockchain node in the blockchain network;

[0032] After sending the power transaction request of the first target battery to a preset verification device, the power balancing method further includes:

[0033] If the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, the preset transaction information of the current power transaction of the battery managed by itself is stored in the blockchain network;

[0034] The preset transaction information includes the battery, the charging and discharging strategy and the time when it is generated.

[0035] On the other hand, according to the designated battery information of each battery in the battery pack and the preset rules, determining the first target battery in the battery pack and its charging and discharging strategy includes:

[0036] Determine the target power according to the remaining power of each battery in the current battery pack;

[0037] For any battery in the battery pack, taking the target power as the target, and determining the power to be adjusted of the battery according to the remaining power and health status of the battery;

[0038] For any battery in the battery pack, if the power to be adjusted of the battery is greater than a preset power threshold, the battery is used as the first target battery, and based on a first preset corresponding relationship, a target current value corresponding to the health state of the battery is determined, wherein the target current value refers to the current value of the battery during charging and discharging.

[0039] On the other hand, for any battery in the battery pack, taking the target power as the target and determining the power to be adjusted of the battery according to the remaining power and health status of the battery includes:

[0040] For any battery in the battery pack, determining a power correction coefficient corresponding to the health state of the battery according to a second preset corresponding relationship;

[0041] For any battery in the battery pack, the product of the battery's power difference and the battery's power correction coefficient is used as the battery's power to be adjusted, wherein the battery's power difference refers to the difference between the battery's remaining power and the target power, and the power to be adjusted refers to the required change in the battery's remaining power.

[0042] In order to solve the above technical problems, the present invention further provides a power balancing device, comprising:

[0043] A first determination module is used to determine a first target battery in the battery pack and its charge and discharge strategy according to designated battery information of each battery in the battery pack and preset rules, wherein the first target battery refers to a battery with charge and discharge requirements, and the designated battery information includes a remaining power;

[0044] A first sending module, used to send the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery and its charging and discharging strategy to which the power transaction request belongs according to the specified battery information of each battery in the battery pack and preset rules;

[0045] The first action module is configured to control the first target battery to charge and discharge according to the corresponding charge and discharge strategy if the preset verification device verifies that the first target battery and its charge and discharge strategy are legal.

[0046] In order to solve the above technical problems, the present invention further provides a power balancing device, comprising:

[0047] Memory for storing computer programs;

[0048] The processor is used to implement the steps of the power balancing method described above when executing the computer program.

[0049] In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power balancing method described above are implemented.

[0050] Beneficial effect: The present invention provides a power balancing method. Considering that the charging and discharging strategy of the batteries in the battery pack is related to the designated battery information of each battery in the battery pack, and the verification of the charging and discharging strategy can ensure the safety of the charging and discharging behavior, the controller in the present invention can determine the first target battery in the battery pack and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules, and the controller can control the first target battery to charge and discharge according to the charging and discharging strategy when the preset verification device adopts the same preset rules to verify that the first target battery and its charging and discharging strategy are legal. The battery that is finally charged and discharged is confirmed by at least two parties, and the charging and discharging strategy is determined based on the designated battery information of each battery in the battery pack. The arbitrary control of the charging and discharging actions by the attacker can be avoided, and the balance of the power of each battery in the battery pack is improved, thereby improving the performance and service life of the battery pack.

[0051] The present invention also provides a power balancing device, equipment and computer-readable storage medium, which have the same beneficial effects as the above power balancing method. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 A schematic diagram of a flow chart of a power balancing method provided by the present invention;

[0054] Figure 2 A schematic diagram of a flow chart of another power balancing method provided by the present invention;

[0055] Figure 3 A schematic diagram of the structure of a power balancing device provided by the present invention;

[0056] Figure 4 A schematic diagram of the structure of a power balancing device provided by the present invention. DETAILED DESCRIPTION

[0057] The core of the present invention is to provide a power balancing method, device, equipment and computer-readable storage medium. Since the battery to be charged and discharged is finally confirmed by at least two parties, and the charging and discharging strategy is determined based on the specified battery information of each battery in the battery pack, it can avoid the attacker's arbitrary control of the charging and discharging actions, improve the balance of the power of each battery in the battery pack, and thus improve the performance and service life of the battery pack.

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0059] Please refer to Figure 1 , Figure 1 A schematic flow chart of a power balancing method provided by the present invention, wherein the power balancing method is applied to a controller, comprising:

[0060] S101: determining a first target battery in the battery pack and its charge and discharge strategy according to designated battery information of each battery in the battery pack and a preset rule, wherein the first target battery refers to a battery with charge and discharge requirements, and the designated battery information includes a remaining power;

[0061] Specifically, taking into account the technical problems in the above background technology, and combining the charging and discharging strategy of the batteries in the battery pack (that is, information such as which battery should be charged and discharged and how much power to charge and discharge), which is related to the designated battery information (including the remaining power) of each battery in the battery pack, in order to more reasonably determine the charging and discharging strategy, preset rules can be pre-set in an embodiment of the present invention, so that based on the preset rules, the first target battery in the battery pack and its charging and discharging strategy can be determined according to the designated battery information of each battery in the battery pack, so as to use it as the data basis for subsequent steps.

[0062] S102: Sending the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery to which the power transaction request belongs and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules;

[0063] Specifically, considering that the confirmation of the first target battery and the charging and discharging strategy by at least two devices can improve the reliability of the charging and discharging control performed by the battery pack, the embodiment of the present invention intends to verify the first target battery and the charging and discharging strategy through a preset verification device. Since the first target battery determined in the aforementioned steps refers to a battery with charging and discharging needs, in order to enable the first target battery to be charged and discharged smoothly, in the embodiment of the present invention, a power transaction request for the first target battery can be sent to a preset verification device, so that the preset verification device can verify the legitimacy of the first target battery and its charging and discharging strategy to which the power transaction request belongs based on the specified battery information of each battery in the battery pack and preset rules.

[0064] Among them, the electricity transaction request refers to a request to conduct an electricity transaction, and the electricity transaction includes charging or discharging.

[0065] Specifically, for the preset verification device, the method for verifying the legitimacy of the first target battery and its charging and discharging strategy to which the power transaction request belongs can be of various types according to the designated battery information of each battery in the battery pack and the preset rules. For example, the same method as the control can be adopted, that is, according to the designated battery information of each battery in the battery pack and the preset rules, the first target battery in the battery pack and its charging and discharging strategy are determined, and then the determined information is compared with the information such as the charging and discharging strategy of the battery corresponding to the power transaction request, etc. The embodiments of the present invention are not limited here.

[0066] The preset rules and the specified battery information can be flexibly modified in the embodiment of the present invention, such as adjusting the preset rules or adjusting the content involved in the specified battery information, etc., which are not limited in the embodiment of the present invention.

[0067] S103: If the preset verification device verifies that the first target battery and its charge and discharge strategy are legal, the first target battery is controlled to be charged and discharged according to the corresponding charge and discharge strategy.

[0068] Specifically, when the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, it means that the battery and its charging and discharging strategy corresponding to the power transaction request have been confirmed by the controller and the preset verification device, that is, according to the specified battery information of each battery in the battery pack, charging and discharging the first target battery according to the charging and discharging strategy can make the power of the battery pack more balanced. Therefore, in an embodiment of the present invention, when the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, the first target battery can be controlled to be charged and discharged according to the corresponding charging and discharging strategy.

[0069] In addition, it is worth mentioning that the first target battery and its charging and discharging strategy can be periodically re-determined based on the designated battery information of each battery, so that new batteries with charging and discharging needs can be discovered in time, and for batteries that are currently charging and discharging, their charging and discharging strategies can be updated in time, or charging and discharging can be stopped when they no longer need to continue charging and discharging.

[0070] The present invention provides a power balancing method. Considering that the charging and discharging strategy of batteries in a battery pack is related to the designated battery information of each battery in the battery pack, and the verification of the charging and discharging strategy can ensure the safety of the charging and discharging behavior, the controller in the present invention can determine the first target battery in the battery pack and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules, and the controller can control the first target battery to charge and discharge according to the charging and discharging strategy when a preset verification device adopts the same preset rules to verify that the first target battery and its charging and discharging strategy are legal. The battery that is finally charged and discharged is confirmed by at least two parties, and the charging and discharging strategy is determined based on the designated battery information of each battery in the battery pack. This can avoid the attacker's arbitrary control of the charging and discharging actions, improve the balance of the power of each battery in the battery pack, and thus improve the performance and service life of the battery pack.

[0071] Based on the above embodiments:

[0072] As an optional embodiment, the controller is a battery management system of any battery in the battery pack;

[0073] The preset verification device is at least one battery management system in the battery pack other than the battery itself;

[0074] Sending the power transaction request of the first target battery to the preset verification device includes:

[0075] If the battery managed by itself is the first target battery, a power transaction request of the battery managed by itself is sent to a preset verification device;

[0076] The power balancing method also includes:

[0077] When an electric quantity trading request is received, the legitimacy of the first target battery to which the electric quantity trading request belongs and its charging and discharging strategy is verified according to the designated battery information of each battery in the battery pack and preset rules.

[0078] Specifically, considering that if a one-to-one battery management system (BMS) is set for each battery in the battery pack, it will be more conducive to the independent management of each battery. Therefore, the battery pack in the embodiment of the present invention may include a battery management system corresponding to the battery one-to-one, and the controller may be the battery management system of any battery in the battery pack, that is, each BMS in the battery pack can execute the steps of the power balancing method in the embodiment of the present invention. In this case, each BMS can serve as a preset verification device for each other, that is, when any BMS receives a power trading request, it can verify the legitimacy of the first target battery and its charging and discharging strategy to which the power trading request belongs based on the specified battery information of each battery in the battery pack and preset rules.

[0079] Of course, in addition to the above specific examples, the controller and the preset verification device may also be of other types. For example, the preset verification device may be: a single processor for providing verification work for the entire battery pack (for example, a single-chip microcomputer or a field programmable gate array), and the controller may also be a single one, and the specific type of the controller may also be of other types, such as a single-chip microcomputer or a field programmable gate array, etc. The embodiments of the present invention are not limited here.

[0080] As an optional embodiment, the electric quantity transaction request includes a charging and discharging strategy and a generation time of the charging and discharging strategy;

[0081] When receiving the power transaction request, verifying the legitimacy of the first target battery to which the power transaction request belongs and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and the preset rules includes:

[0082] When receiving the power transaction request, determining the designated battery information of each battery in the battery pack at the time of generation in the power transaction request as the battery information to be verified;

[0083] Determine a second target battery in the battery pack and its charge and discharge strategy according to the battery information to be verified and preset rules, wherein the second target battery refers to a battery with charge and discharge requirements;

[0084] Determine whether the battery that sends the request belongs to the second target battery, wherein the battery that sends the request refers to the battery managed by the battery management system that sends the power transaction request;

[0085] If yes, determine whether the charge and discharge strategy in the power transaction request is consistent with the charge and discharge strategy to be verified, wherein the charge and discharge strategy to be verified refers to: the charge and discharge strategy corresponding to the request sending battery when it is used as the second target battery;

[0086] If they are consistent, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are legal, and a verification pass mark is sent to the battery management system that sent the energy transaction request;

[0087] When the battery sending the request does not belong to the second target battery, or when the charge and discharge strategy in the energy transaction request is inconsistent with the charge and discharge strategy to be verified, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are illegal, and a verification failure flag is sent to the battery management system that sent the energy transaction request.

[0088] Specifically, in order to ensure the accuracy of the legitimacy verification of the charge and discharge strategy, the designated battery information used by the preset verification device to generate the charge and discharge strategy can be consistent with the designated battery information used by the sender of the power transaction request when generating the charge and discharge strategy. A simple method to ensure the consistency of the designated battery information is to use the designated battery information at the same time. Therefore, the power transaction request in the embodiment of the present invention can include the charge and discharge strategy and the generation time of the charge and discharge strategy. Then, when the BMS receives the power transaction request, it can determine the designated battery information of each battery in the battery pack at the generation time in the power transaction request as the battery information to be verified, and then determine the second target battery in the battery pack and its charge and discharge strategy according to the battery information to be verified and the preset rules, so that the data basis of the "first target battery and its charge and discharge strategy" and the "second target battery and its charge and discharge strategy" are the same and comparable, and then it can be determined whether the request sending battery belongs to the second target battery. If it belongs, it can continue to determine whether the charge and discharge strategy in the power transaction request is consistent with the charge and discharge strategy to be verified. If they are consistent, the verification is completed, and it can be determined that the first target battery and its charge and discharge strategy to which the power transaction request belongs are legal, and a verification pass mark is sent to the battery management system that sends the power transaction request.

[0089] Among them, if "the battery sending the request does not belong to the second target battery" or "the charging and discharging strategy in the power transaction request is inconsistent with the charging and discharging strategy to be verified", it can be determined to be illegal and a verification failure flag can be sent to the battery management system that sends the power transaction request.

[0090] Specifically, it is worth mentioning that if the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device may include:

[0091] If the battery managed by itself is the first target battery, the power transaction request of the battery managed by itself is broadcasted in the battery pack so as to be transmitted to each BMS.

[0092] If the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, controlling the first target battery to charge and discharge according to the corresponding charging and discharging strategy may include:

[0093] If a preset number of BMSs among the other BMSs except itself verify that the first target battery and its charge and discharge strategy are legal, the first target battery is controlled to be charged and discharged according to the corresponding charge and discharge strategy;

[0094] The preset number may be set independently, and may be within the range of 1 to "the total number of BMSs minus one", which is not limited in the embodiment of the present invention.

[0095] Among them, in addition to the "charging and discharging strategy and the time when the charging and discharging strategy is generated", the power transaction request may also include other content, such as the remaining power and health status (SOH, State of Health) of the battery managed by itself. The health status can be expressed in a variety of forms, such as a level expression or a percentage expression, etc., which is not limited in the embodiments of the present invention.

[0096] As an optional embodiment, if the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device includes:

[0097] If the battery managed by itself is the first target battery, based on the charge and discharge strategy of the battery managed by itself, a power transaction request of the battery managed by itself is generated in a preset format, and its own identity is added to the power transaction request;

[0098] Sending the electricity transaction request to a preset verification device;

[0099] When receiving the power transaction request, the designated battery information of each battery in the battery pack at the time of generation in the power transaction request is determined, and the battery information to be verified includes:

[0100] When receiving an electricity transaction request, determining whether the format of the electricity transaction request is a preset format;

[0101] If it is a preset format, determining whether the identity in the power transaction request belongs to a battery pack identity set, wherein the battery pack identity set includes the identity of each battery in the battery pack;

[0102] If yes, then determine the designated battery information of each battery in the battery pack at the time of generation in the power transaction request as the battery information to be verified;

[0103] When the format of the power transaction request is not a preset format, or when the identity identifier in the power transaction request does not belong to the battery group identity set, the power transaction request is determined to be illegal, and a verification failure flag is sent to the battery management system that sends the power transaction request.

[0104] Specifically, in order to further improve the reliability of electricity trading, the embodiments of the present invention also provide for a preset format of electricity trading requests, and the electricity trading requests need to include an identity identifier of the sender. In this case, when the receiver verifies the legitimacy of the electricity trading request, it can determine whether the format of the electricity trading request is the preset format, and determine whether the identity identifier in the electricity trading request belongs to the battery group identity set. If all judgments are passed, subsequent legitimacy judgments can be continued, thereby improving the reliability of electricity trading and being more conducive to electricity balance.

[0105] The preset format may be of various types, which are not limited in the embodiment of the present invention.

[0106] Specifically, each BMS may generate an identity for the battery under its jurisdiction during the initialization phase, and initialize and generate designated battery information of the battery under its jurisdiction, etc., which is not limited in the embodiment of the present invention.

[0107] In addition, in order to improve safety, when at least one BMS determines that it is illegal, the alarm can be controlled to sound so that the staff can deal with it in time.

[0108] As an optional embodiment, the battery management system of each battery in the battery pack serves as a blockchain node in the blockchain network;

[0109] After sending the power transaction request of the first target battery to the preset verification device, the power balancing method further includes:

[0110] If the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, the preset transaction information of the battery managed by itself for this power transaction is stored in the blockchain network;

[0111] The preset transaction information includes the battery, the charging and discharging strategy and the time when it is generated.

[0112] Specifically, considering the need to record relevant transaction information of electricity transactions continuously generated in the battery pack, and the blockchain can provide a safe and reliable storage function, each BMS in the embodiment of the present invention can be used as a blockchain node in the blockchain network. Then, when the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, the BMS can store the preset transaction information of the current electricity transaction of the battery it manages in the blockchain network.

[0113] Specifically, the above-mentioned preset rules can also be stored in the blockchain and obtained from the blockchain when used, which can ensure the security of the preset rules.

[0114] Among them, the preset transaction information can be stored in the last storage block in the blockchain network. If there is no remaining space in the last storage block, a new storage block can be built at the end of the blockchain network and the preset transaction information can be stored in the last storage block in the blockchain network.

[0115] Of course, in addition to the above specific forms, the preset transaction information may also include other contents, which are not limited in the embodiment of the present invention.

[0116] In addition, it is worth mentioning that each BMS can also update the newly added preset transaction information in the blockchain network to its own copy after storing the preset transaction information in the blockchain network each time, so that the copy of each BMS includes the preset transaction information stored in each storage block in the blockchain network.

[0117] To better illustrate the embodiments of the present invention, please refer to Figure 2 , Figure 2 A flow chart of another power balancing method provided by the present invention can be applied to any BMS. After the method starts, the BMS can perform an initialization operation and periodically execute a strategy update action, that is, "determine the first target battery in the battery pack and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and the preset rules", and then perform transaction verification, that is, "if the battery managed by itself is the first target battery, send the power transaction request of the battery managed by itself to the preset verification device, and determine whether the verification is passed according to the feedback of the preset verification device", and after the transaction verification is passed, the transaction information can be stored in the blockchain network, that is, "store the preset transaction information of the power transaction of the battery managed by itself in the blockchain network", and then perform charge and discharge control, that is, "charge and discharge the battery managed by itself according to the corresponding charge and discharge strategy", and finally end the charge and discharge when the charge and discharge end point indicated by the charge and discharge strategy is reached, and the power balancing method can be ended.

[0118] As an optional embodiment, according to the designated battery information of each battery in the battery pack and the preset rule, determining the first target battery in the battery pack and the charging and discharging strategy thereof includes:

[0119] Determine the target power according to the remaining power of each battery in the current battery pack;

[0120] For any battery in the battery pack, the target power is taken as the target, and the power to be adjusted of the battery is determined according to the remaining power and health status of the battery;

[0121] For any battery in the battery pack, if the battery's power to be adjusted is greater than a preset power threshold, the battery is taken as the first target battery, and based on a first preset correspondence, a target current value corresponding to the battery's health status is determined, wherein the target current value refers to the current value of the battery during charging and discharging.

[0122] Specifically, when determining the charge and discharge strategy, since the goal is to balance the power of the battery pack, a target power needs to be determined as a power benchmark. Therefore, in the embodiment of the present invention, the target power is first determined based on the remaining power of each battery in the current battery pack.

[0123] Specifically, considering that the health status of the battery has an impact on the battery power availability, for example, for the same remaining power, the remaining usable time of a battery in a poor health status is not as good as the remaining usable time of a battery in a good health status. Therefore, in order to further improve the reliability of power balancing, in an embodiment of the present invention, for any battery in the battery pack, the target power is used as the target, and the battery's power to be adjusted is determined according to the battery's remaining power and health status; considering that when the value of the power to be adjusted is small, charging and discharging control may not be performed to save resources. Therefore, in an embodiment of the present invention, "for any battery in the battery pack, if the battery's power to be adjusted is greater than a preset power threshold, the battery is used as the first target battery, and according to the first preset corresponding relationship, a target current value corresponding to the battery's health status is determined". Accordingly, when the power to be adjusted is not greater than the preset power threshold, the battery may not be used as the first target battery.

[0124] As an optional embodiment, for any battery in the battery pack, taking the target power as the target, and determining the power to be adjusted of the battery according to the remaining power and health status of the battery includes:

[0125] For any battery in the battery pack, determining a power correction coefficient corresponding to the health status of the battery according to a second preset corresponding relationship;

[0126] For any battery in the battery pack, the product of the battery power difference and the battery power correction coefficient is used as the battery power to be adjusted, wherein the battery power difference refers to the difference between the remaining power of the battery and the target power, and the power to be adjusted refers to the required change in the remaining power of the battery.

[0127] Specifically, considering that by converting the health status into a correction coefficient and correcting the power difference by the correction coefficient to obtain the power to be adjusted, not only can the work efficiency be improved but also the calculation process can be simplified, therefore, in the embodiment of the present invention, for any battery in the battery pack, according to the second preset corresponding relationship, a power correction coefficient corresponding to the health status of the battery can be determined, and then for any battery in the battery pack, the product of the battery power difference and the battery power correction coefficient is used as the battery power to be adjusted.

[0128] Of course, in addition to this specific example, the method of "for any battery in the battery pack, taking the target power as the target, determining the power to be adjusted of the battery according to the remaining power and health status of the battery" can also be of various types, and the embodiments of the present invention are not limited here.

[0129] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of a power balancing device provided by the present invention, the power balancing device comprises:

[0130] A first determination module 31 is used to determine a first target battery in the battery pack and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and a preset rule, wherein the first target battery refers to a battery with a charge and discharge demand, and the designated battery information includes a remaining power;

[0131] The first sending module 32 is used to send the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery and its charging and discharging strategy to which the power transaction request belongs according to the specified battery information of each battery in the battery pack and preset rules;

[0132] The first action module 33 is configured to control the first target battery to charge and discharge according to the corresponding charge and discharge strategy if the preset verification device verifies that the first target battery and its charge and discharge strategy are legal.

[0133] For an introduction to the power balancing device provided by the embodiment of the present invention, please refer to the aforementioned embodiment of the power balancing method, and the embodiment of the present invention will not be described in detail here.

[0134] Please refer to Figure 4 , Figure 4 A schematic diagram of the structure of a power balancing device provided by the present invention, the power balancing device includes:

[0135] A memory 41, used for storing computer programs;

[0136] The processor 42 is used to implement the steps of the power balancing method in the above-mentioned embodiment when executing the computer program.

[0137] For an introduction to the power balancing device provided by the embodiment of the present invention, please refer to the aforementioned embodiment of the power balancing method, and the embodiment of the present invention will not be described in detail here.

[0138] The present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the power balancing method in the above-mentioned embodiment are implemented.

[0139] For an introduction to the computer-readable storage medium provided in the embodiment of the present invention, please refer to the aforementioned embodiment of the power balancing method, and the embodiment of the present invention will not be described in detail here.

[0140] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.

[0141] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A power balancing method, characterized in that: Applicable to controllers, including: Determine a first target battery in the battery pack and its charge and discharge strategy according to designated battery information of each battery in the battery pack and preset rules, wherein the first target battery refers to a battery with charge and discharge requirements, and the designated battery information includes the remaining power; Sending the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery to which the power transaction request belongs and its charging and discharging strategy according to the designated battery information of each battery in the battery pack and preset rules; If the preset verification device verifies that the first target battery and its charge and discharge strategy are legal, controlling the first target battery to charge and discharge according to the corresponding charge and discharge strategy; The controller is a battery management system for any battery in the battery pack; The preset verification device is at least one battery management system in the battery pack other than itself; Sending the power transaction request of the first target battery to a preset verification device includes: If the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device; The power balancing method further includes: When an electric quantity transaction request is received, the legality of the first target battery to which the electric quantity transaction request belongs and its charge and discharge strategy is verified according to the designated battery information of each battery in the battery pack and preset rules.

2. The power balancing method according to claim 1, characterized in that: The electricity transaction request includes a charge and discharge strategy and a generation time of the charge and discharge strategy; When receiving an electric quantity transaction request, verifying the legitimacy of the first target battery to which the electric quantity transaction request belongs and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and the preset rules includes: When receiving an electric quantity transaction request, determining the designated battery information of each battery in the battery pack at the generation time in the electric quantity transaction request as the battery information to be verified; Determine a second target battery in the battery pack and its charge and discharge strategy according to the battery information to be verified and preset rules, wherein the second target battery refers to a battery with charge and discharge requirements; Determine whether the battery sending the request belongs to the second target battery, wherein the battery sending the request refers to the battery managed by the battery management system sending the power transaction request; If yes, determine whether the charge and discharge strategy in the power transaction request is consistent with the charge and discharge strategy to be verified, wherein the charge and discharge strategy to be verified refers to: the charge and discharge strategy corresponding to the request sending battery when it serves as the second target battery; If they are consistent, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are legal, and a verification pass mark is sent to the battery management system that sent the energy transaction request; When the battery sending the request does not belong to the second target battery, or when the charge and discharge strategy in the energy transaction request is inconsistent with the charge and discharge strategy to be verified, it is determined that the first target battery to which the energy transaction request belongs and its charge and discharge strategy are illegal, and a verification failure flag is sent to the battery management system that sent the energy transaction request.

3. The power balancing method according to claim 2, characterized in that: If the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device includes: If the battery managed by itself is the first target battery, based on the charge and discharge strategy of the battery managed by itself, generate a power transaction request for the battery managed by itself in a preset format, and add its own identity to the power transaction request; Sending the electricity transaction request to the preset verification device; When receiving the power transaction request, the specified battery information of each battery in the battery pack at the generation time in the power transaction request is determined, and the battery information to be verified includes: When receiving an electricity transaction request, determining whether the format of the electricity transaction request is a preset format; If it is the preset format, determining whether the identity in the power transaction request belongs to a battery pack identity set, wherein the battery pack identity set includes the identity of each battery in the battery pack; If yes, then determining the designated battery information of each battery in the battery pack at the generation time in the power transaction request as the battery information to be verified; When the format of the power transaction request is not a preset format, or when the identity identifier in the power transaction request does not belong to the battery group identity set, the power transaction request is determined to be illegal, and a verification failure flag is sent to the battery management system that sends the power transaction request.

4. The power balancing method according to claim 2, characterized in that: The battery management system of each battery in the battery pack serves as a blockchain node in the blockchain network; After sending the power transaction request of the first target battery to a preset verification device, the power balancing method further includes: If the preset verification device verifies that the first target battery and its charging and discharging strategy are legal, the preset transaction information of the current power transaction of the battery managed by itself is stored in the blockchain network; The preset transaction information includes the battery, the charging and discharging strategy and the time when it is generated.

5. The power balancing method according to any one of claims 1 to 4, characterized in that: Determining the first target battery in the battery pack and its charge and discharge strategy according to the designated battery information of each battery in the battery pack and the preset rules includes: Determine the target power according to the remaining power of each battery in the current battery pack; For any battery in the battery pack, taking the target power as the target, and determining the power to be adjusted of the battery according to the remaining power and health status of the battery; For any battery in the battery pack, if the power to be adjusted of the battery is greater than a preset power threshold, the battery is used as the first target battery, and based on a first preset corresponding relationship, a target current value corresponding to the health state of the battery is determined, wherein the target current value refers to the current value of the battery during charging and discharging.

6. The power balancing method according to claim 5, characterized in that: For any battery in the battery pack, taking the target power as the target and determining the power to be adjusted of the battery according to the remaining power and health status of the battery includes: For any battery in the battery pack, determining a power correction coefficient corresponding to the health state of the battery according to a second preset corresponding relationship; For any battery in the battery pack, the product of the battery's power difference and the battery's power correction coefficient is used as the battery's power to be adjusted, wherein the battery's power difference refers to the difference between the battery's remaining power and the target power, and the power to be adjusted refers to the required change in the battery's remaining power.

7. A power balancing device, characterized in that: Applicable to controllers, including: A first determination module is used to determine a first target battery in the battery pack and its charge and discharge strategy according to designated battery information of each battery in the battery pack and preset rules, wherein the first target battery refers to a battery with charge and discharge requirements, and the designated battery information includes a remaining power; A first sending module, used to send the power transaction request of the first target battery to a preset verification device, so that the preset verification device verifies the legitimacy of the first target battery and its charging and discharging strategy to which the power transaction request belongs according to the specified battery information of each battery in the battery pack and preset rules; A first action module, configured to control the first target battery to charge and discharge according to the corresponding charge and discharge strategy if the preset verification device verifies that the first target battery and its charge and discharge strategy are legal; The controller is a battery management system for any battery in the battery pack; The preset verification device is at least one battery management system in the battery pack other than itself; Sending the power transaction request of the first target battery to a preset verification device includes: If the battery managed by itself is the first target battery, sending the power transaction request of the battery managed by itself to the preset verification device; The power balancing device is also used for: When an electric quantity transaction request is received, the legality of the first target battery to which the electric quantity transaction request belongs and its charge and discharge strategy is verified according to the designated battery information of each battery in the battery pack and preset rules.

8. A power balancing device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the power balancing method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the power balancing method according to any one of claims 1 to 6 are implemented.