Method and device for switching communication protocols of battery management system (BMS)

By detecting battery performance status and switching communication protocols in the BMS, the problems of resource waste and environmental pollution from retired batteries are solved, and the cascade utilization and efficient use of batteries are realized.

CN116708606BActive Publication Date: 2026-04-03BEIJING JINGWEI HIRAIN TECH CO INC
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-24
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

In existing technologies, the main method for disposing of retired new energy vehicle batteries is to crush and recycle them, which leads to resource waste and environmental pollution, and cannot effectively utilize batteries with insufficient capacity.

Method used

By detecting the performance status of the power battery, the communication protocol is switched using the BMS's response access mechanism, from the first CAN communication protocol to the second CAN communication protocol, so that the battery can be used in a secondary application scenario without disassembly.

Benefits of technology

This enables the tiered utilization of batteries, reduces costs, extends battery lifespan, improves utilization rate, and promotes energy conservation and environmental protection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708606B_ABST
    Figure CN116708606B_ABST
Patent Text Reader

Abstract

This application discloses a method and apparatus for switching communication protocols in a Battery Management System (BMS). The method is applied to the BMS, which is connected to a diagnostic host computer. The BMS is equipped with a first CAN communication protocol for high-performance new energy vehicles and a second CAN communication protocol for secondary use. The BMS also includes variables indicating the performance state of the power battery, including: detecting the variable value; when the variable value is a first value, determining whether to use the BMS's response access mechanism based on the message interaction process with the diagnostic host computer; if the response access mechanism is successful, switching the BMS from the first CAN communication protocol to the second CAN communication protocol. This application enables the application of batteries from high-performance new energy vehicles to secondary use scenarios without disassembling the power battery, extending the entire lifespan of the power battery and improving battery utilization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of battery cascade utilization technology, and in particular relates to a method and device for switching communication protocol scenarios of a battery management system (BMS). Background Technology

[0002] With the popularization of new energy vehicles, the disposal of retired batteries has become a focal point. Currently, the main method for disposing of retired batteries from new energy vehicles is through crushing and then recovering rare metals. Although some retired batteries cannot be used in high-speed electric vehicles due to insufficient capacity, these batteries can still be used in low-speed electric vehicles or grid energy storage. Therefore, direct crushing and recycling is a waste of energy, and the loss of battery fluid during dismantling also causes environmental damage. Summary of the Invention

[0003] This application provides a method and apparatus for switching communication protocols in a battery management system (BMS), which can improve battery utilization.

[0004] According to the first aspect of this application, embodiments of this application provide a method for switching communication protocol scenarios in a battery management system (BMS). This method is applied to the BMS, which is connected to a diagnostic host computer. The BMS is configured with a first CAN communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for cascaded scenarios. The BMS also includes variables for indicating the performance state of the power battery. The method includes:

[0005] Detect the values ​​of variables used to indicate the performance state of the power battery;

[0006] When the variable value is the first value, the system determines whether to use the BMS response access mechanism based on the message interaction process with the diagnostic host computer. The first value is used to indicate that the performance status of the power battery does not meet the requirements for use in new energy vehicle scenarios.

[0007] If the response access mechanism through the BMS is determined, the BMS will be switched from the first CAN communication protocol to the second CAN communication protocol.

[0008] Optionally, based on the message interaction process with the diagnostic host computer, it is determined whether to access the system through the BMS's response mechanism, including:

[0009] Within the first time period after the BMS is powered on and woken up, if a tiered safety request message is received from the diagnostic host computer, a seed message is generated based on the tiered safety request message.

[0010] Send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message;

[0011] Obtain the first key message sent by the diagnostic host computer;

[0012] Generate a second key message based on the seed message;

[0013] If the first key message and the second key message are consistent, the response access mechanism through the BMS is determined.

[0014] Optionally, if the diagnostic host computer does not receive a seed message returned by the BMS during the first time period, the diagnostic host computer periodically sends tiered safety request messages according to a preset period.

[0015] Optionally, if no tiered security request message is received from the diagnostic host computer within the first time period after the BMS is powered on and woken up, or if the first key message and the second key message are inconsistent, it is determined that the access was not approved by the BMS's response mechanism.

[0016] Optionally, the method further includes: if the variable value is not the first value or if it is determined that the BMS's response access mechanism has not been passed, the BMS still executes the first CAN communication protocol.

[0017] Optionally, before detecting the value of the variable used to indicate the performance state of the power battery, the method further includes:

[0018] Obtain the performance status parameters of the power battery;

[0019] Determine the variable values ​​based on the performance status parameters.

[0020] Optionally, the variable values ​​are determined based on performance status parameters, including:

[0021] When the performance status parameters do not meet the preset conditions, the value of the variable is determined to be the first value.

[0022] When the performance status parameters meet the preset conditions, the value of the variable is determined to be the second value.

[0023] Optionally, the BMS is switched from the first CAN communication protocol to the second CAN communication protocol, including:

[0024] Activate the second CAN communication protocol and disable the first CAN communication protocol.

[0025] According to a second aspect of this application, embodiments of this application provide a communication protocol scenario switching device for a battery management system (BMS). The device is applied to the BMS, which is connected to a diagnostic host computer. The BMS is equipped with a first CAN communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for cascade scenarios. The device includes:

[0026] The detection module is used to detect the values ​​of variables that indicate the performance state of the power battery;

[0027] The first determining module, when the variable value is the first value, is used to determine whether to use the BMS response access mechanism based on the message interaction process with the diagnostic host computer. The first value is used to indicate that the performance state of the power battery does not meet the requirements of the new energy vehicle scenario.

[0028] The switching module is used to switch the BMS from the first CAN communication protocol to the second CAN communication protocol when the response access mechanism of the BMS is determined.

[0029] Optionally, the first determining module further includes:

[0030] The first generation unit is used to generate a seed message based on the tiered safety request message when the tiered safety request message is received from the diagnostic host computer during the first time period after the BMS is powered on and woken up.

[0031] The generation unit is used to send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message.

[0032] The acquisition unit is used to acquire the first key message sent by the diagnostic host computer;

[0033] The second generation unit is used to generate a second key message based on the seed message;

[0034] The first determining unit is used to determine the response access mechanism through the BMS when the first key message and the second key message are consistent.

[0035] According to a third aspect of this application, a communication protocol scene switching device for a battery management system (BMS) is provided, the device comprising: a processor and a memory storing computer program instructions;

[0036] A method for switching communication protocols of a battery management system (BMS) that implements any one of the first aspects when the processor executes computer program instructions.

[0037] According to a fourth aspect of this application, embodiments of this application provide a computer storage medium storing computer program instructions, which, when executed by a processor, implement a communication protocol scenario switching method for a battery management system (BMS) according to any one of the first aspects.

[0038] According to a fifth aspect of this application, embodiments of this application provide a computer program product in which instructions, when executed by a processor of an electronic device, cause the electronic device to perform a communication protocol scene switching method for a battery management system (BMS) according to any one of the first aspects.

[0039] The battery management system (BMS) communication protocol scenario switching method and apparatus of this application embodiment, when the variable value used to indicate the performance state of the power battery indicates that the performance state of the power battery does not meet the requirements for use in new energy vehicle scenarios, determines whether to pass the BMS's response access mechanism based on the message interaction process with the diagnostic host computer. If the BMS's response access mechanism is passed, the BMS is switched from the first CAN communication protocol to the second CAN communication protocol. In this way, without disassembling the power battery, the power battery can be directly applied to secondary use scenarios, allowing the battery to complete the communication protocol switch without replacing the BMS. This not only reduces the cost of secondary use but also promotes the secondary use of batteries, improves battery utilization, and is more conducive to energy conservation and environmental protection. Attached Figure Description

[0040] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings used in the embodiments of this application will be briefly introduced below. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0041] Figure 1 This is a flowchart illustrating a communication protocol scenario switching method for a battery management system (BMS) according to an exemplary embodiment.

[0042] Figure 2 This is another flowchart illustrating a communication protocol scenario switching method for a battery management system (BMS) according to an exemplary embodiment;

[0043] Figure 3 This is another flowchart illustrating a communication protocol scenario switching method for a battery management system (BMS) according to an exemplary embodiment.

[0044] Figure 4 This is a structural block diagram of a communication protocol scene switching device for a battery management system (BMS) according to an exemplary embodiment.

[0045] Figure 5 This is a structural block diagram of a communication protocol scene switching device for a battery management system (BMS) according to an exemplary embodiment. Detailed Implementation

[0046] The features and exemplary embodiments of various aspects of this application will be described in detail below. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain this application and not to limit it. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples.

[0047] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-external inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.

[0048] As mentioned in the background section, with the current widespread adoption of new energy vehicles, the disposal of their batteries has become a focal point. Currently, the primary method for processing retired batteries from new energy vehicles is through shredding and recycling rare metals. While some retired batteries are unusable in high-speed electric vehicles due to insufficient capacity, these batteries can still be used in low-speed electric vehicles or grid energy storage. Therefore, direct shredding and recycling represents a waste of energy, and the loss of battery fluid during dismantling also causes environmental damage.

[0049] To address the problems of existing technologies, this application addresses the issue that when the variable used to indicate the performance state of a power battery does not meet the requirements for use in new energy vehicle scenarios, it determines whether to use the BMS's response access mechanism based on the message interaction process with the diagnostic host computer. If the BMS's response access mechanism is successful, the BMS is switched from the first CAN communication protocol to the second CAN communication protocol. This allows for the direct application of power batteries to secondary use scenarios without disassembling them. The communication protocol switch is completed without replacing the BMS, reducing the cost of secondary use, promoting battery reuse, extending the lifespan of power batteries, improving battery utilization, and contributing to energy conservation and environmental protection.

[0050] Based on this, this application provides a method and apparatus for switching communication protocols in a battery management system (BMS). The following section first describes the method for switching communication protocols in a BMS provided in the embodiments of this application.

[0051] Figure 1 This illustration shows a flowchart of a communication protocol scenario switching method for a Battery Management System (BMS) according to an embodiment of this application. The method is applied to a BMS communicating with a diagnostic host computer. The BMS is equipped with a first Controller Area Network (CAN) communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for tiered scenarios. The BMS also includes variables for indicating the performance state of the power battery.

[0052] Generally, due to the confidentiality of the CAN communication protocol, batteries from different OEMs will have different CAN communication protocols. High-performance new energy vehicle manufacturers will provide battery suppliers with their own first CAN communication protocol. The first CAN communication protocol is applicable to the application scenarios of high-performance new energy vehicles. After the battery of a high-performance new energy vehicle no longer meets the requirements of the high-performance new energy vehicle scenario, the battery still needs to be used in different tiers of scenarios. However, different tiers of scenarios have their own second CAN communication protocol.

[0053] Among them, the tiered scenario refers to the scenario after the battery is used in a tiered manner. As an example, the tiered utilization of the battery can be the application of the battery from high-performance new energy vehicles to low-performance new energy vehicles. The tiered utilization of the battery can also be the application of the battery from high-performance new energy vehicles to the field of grid energy storage. Since the performance status requirements of the battery in low-performance new energy vehicles and grid energy storage are lower than those in high-performance new energy vehicles, this is a declining tiered utilization.

[0054] like Figure 1 As shown, the method may include the following steps:

[0055] S101, Detect the value of a variable used to indicate the performance state of the power battery;

[0056] S102, when the variable value is the first value, determine whether to use the BMS response access mechanism based on the message interaction process with the diagnostic host computer. The first value is used to indicate that the performance state of the power battery does not meet the requirements of the new energy vehicle scenario.

[0057] S103, if the response access mechanism of BMS is determined, switch BMS from the first CAN communication protocol to the second CAN communication protocol.

[0058] S104, if the variable value is not the first value or if it is determined that the BMS's response access mechanism has not been passed, the BMS will still execute the first CAN communication protocol.

[0059] Based on the above embodiments, when the variable used to indicate the performance state of the power battery indicates that the performance state of the power battery does not meet the requirements for use in new energy vehicle scenarios, the system determines whether to use the BMS's response access mechanism based on the message interaction process with the diagnostic host computer. If the BMS's response access mechanism is used, the BMS is switched from the first CAN communication protocol to the second CAN communication protocol. In this way, without disassembling the power battery, it can be directly applied to secondary use scenarios, and the battery does not need to replace the BMS to complete the communication protocol switch. This not only reduces the cost of secondary use but also promotes the secondary use of batteries, extends the entire life cycle of the power battery, improves battery utilization, and is more conducive to energy conservation and environmental protection.

[0060] In S101, the variable values ​​obtained by the BMS based on the battery performance status parameters are directly detected, and different operations are performed according to the different variable values.

[0061] In S102, when the variable value is the first value, it means that the battery performance state parameters are not applicable to the current high-performance new energy vehicle scenario, but need to be applied to the secondary use scenario. At the same time, the message interaction process between BMS and diagnostic host computer will be activated. The diagnostic host computer and BMS complete information interaction by sending or receiving messages to each other.

[0062] As an example, the message exchange process refers to a method of information transmission. The message exchange process does not require the establishment of a dedicated communication path between the BMS and the diagnostic host computer. It only requires organizing the information to be sent into data packets (i.e., messages). The data packets include the address of the target node (BMS or diagnostic host computer). Through these data packets, the transmission between nodes is realized.

[0063] As an example, the diagnostic host computer is software set up on a private computer that interacts with the BMS and has CAN message parsing capabilities.

[0064] In S103, if the BMS and the diagnostic host computer pass the response access mechanism through mutual messaging, it means that the verification request has been passed. The first CAN communication protocol can be switched to the second CAN communication protocol. By activating the second CAN communication protocol suitable for the secondary scenario, the battery can be used in the secondary scenario.

[0065] Specifically, the method of switching the first CAN communication protocol to the second CAN communication protocol may include: activating the second CAN communication protocol and disabling the first CAN communication protocol.

[0066] In S104, conversely, if the acknowledgment access mechanism is not used, the BMS does not complete the switching process from the first CAN communication protocol to the second CAN communication protocol.

[0067] As an example, the BMS still implementing the first CAN communication protocol may include enabling the first CAN communication protocol and disabling the second CAN communication protocol.

[0068] To improve the accuracy of message interaction verification, this application also provides another implementation of the communication protocol scenario switching method for the battery management system (BMS).

[0069] Figure 2 This illustration shows another flowchart of a communication protocol scenario switching method for a battery management system (BMS) provided in one embodiment of this application. Figure 2 As shown, step S102 above may further include the following steps:

[0070] S201, within the first time period after the BMS is powered on and woken up, upon receiving the tiered safety request message sent by the diagnostic host computer, a seed message is generated based on the tiered safety request message;

[0071] S202, send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message;

[0072] S203, Obtain the first key message sent by the diagnostic host computer;

[0073] S204, Generate the second key message based on the seed message;

[0074] S205, if the first key message and the second key message are consistent, determine the response access mechanism through the BMS.

[0075] S206. If, within the first time period after the BMS is powered on and woken up, no tiered security request message is received from the diagnostic host computer, or if the first key message and the second key message are inconsistent, it is determined that the access was not approved by the BMS's response mechanism.

[0076] Based on the above embodiments, through multiple message interaction processes between the BMS and the diagnostic host computer, and by verifying the first key message and the second key message calculated in the BMS and the diagnostic host computer respectively, the accuracy of the final calculation result is determined, reducing the probability of errors in the BMS response access mechanism, and more effectively ensuring the security of the usage scenario after the first CAN communication protocol is switched to the second CAN communication protocol, thereby reducing the possibility of leakage.

[0077] In S201, when the battery is no longer suitable for high-performance new energy vehicle scenarios, it is necessary to remove the battery from the high-performance new energy vehicle and then power it on for testing. When the battery is powered on, the battery's BMS will be woken up and resume operation, and generate a seed message based on the tiered safety request message sent by the diagnostic host computer. The purpose of the tiered safety request message is to verify whether the usage environment is safe and reliable after switching from the first CAN communication protocol to the second CAN communication protocol. After responding to the tiered safety request message, the BMS will send a seed message to the diagnostic host computer. The seed message can be the independent variable x in the calculation formula.

[0078] As an example, with a preset cycle of 10 seconds, during the first 10 seconds of the BMS's initial power-on, the diagnostic host computer will continuously send tiered safety request messages to the BMS until the BMS sends a seed message to the diagnostic host computer in response to the tiered safety request message.

[0079] In another embodiment, the preset period is 10s. Within the first 10s after the BMS is initially powered on, the diagnostic host computer sends a tiered safety request message to the BMS. If the BMS does not respond, the diagnostic host computer will continuously send tiered safety request messages to the BMS within 10s at a message sending frequency of 10ms, until the BMS sends a seed message to the diagnostic host computer to respond to the tiered safety request message.

[0080] In S202, after receiving the seed message, the diagnostic host computer calculates the first key according to the tiered security algorithm and sends the first key to the BMS.

[0081] As an example, if the seed ciphertext is x, and the tiered security algorithm is a square calculation algorithm, then x can be calculated. 2 =Y, and the first key is Y.

[0082] In S203, the BMS receives the first key sent by the diagnostic host computer, which is used for subsequent comparison and verification processes.

[0083] In S204, after the BMS generates the seed message, it also calculates the second key according to the tiered security algorithm.

[0084] Similarly, as an example, the second key Z can also be obtained using the same seed ciphertext and tiered security algorithm.

[0085] In S205, by comparing the first key calculated in the diagnostic host computer and the second key calculated in the BMS, if the results of the first and second keys are consistent, it indicates that the tiered security algorithm in the diagnostic host computer and the tiered security algorithm in the BMS are consistent. Since the tiered security algorithm in the diagnostic host computer is accurate, it means that the tiered security algorithm in the BMS is also accurate. Since the tiered security algorithm in the BMS is accurate, the access can be bypassed through the BMS's response mechanism.

[0086] In S206, conversely, in one embodiment, if the results of the first key and the second key are inconsistent, it indicates that the tiered security algorithm in the BMS is inaccurate. For security and confidentiality reasons, the BMS cannot access the system through the response mechanism.

[0087] In another embodiment, if the BMS still does not send a seed message to the diagnostic host computer to respond to the tiered security request message within the first time period of 10 seconds, it is also determined that the BMS's response access mechanism has not been passed.

[0088] To improve the efficiency of battery communication protocol switching, this application also provides another implementation method for the communication protocol scenario switching method of the battery management system (BMS).

[0089] Figure 3 This illustration shows another flowchart of a communication protocol scenario switching method for a battery management system (BMS) according to an embodiment of this application. Figure 3 As shown, before S101, the following steps may also be included:

[0090] S301, obtain the performance status parameters of the power battery;

[0091] S302, determine the variable values ​​based on the performance status parameters.

[0092] Based on the above embodiments, by obtaining the battery's performance status parameters, batteries that are not suitable for high-performance new energy vehicle scenarios can be screened out in a timely manner. This avoids the need to determine whether batteries that meet the requirements of high-performance new energy vehicle scenarios should pass the response access mechanism, reduces the workload of the response access mechanism, and improves the efficiency of switching communication protocols for batteries.

[0093] In S301, an application that supports diagnostic service functions is preset in the BMS, and the performance status parameters of the battery corresponding to the BMS are determined by the application.

[0094] As an example, the battery's performance status parameters may include: current battery capacity, battery charge / discharge rate, battery impedance, etc. In this embodiment, the battery's performance status parameter may be the current battery capacity.

[0095] In S302, by setting a preset value for the battery's performance status parameters, the application will compare the detected battery performance status parameters with the preset value and output different variable values ​​based on the comparison result.

[0096] As an example, if the preset condition is that the current battery capacity is 80%, and the current battery capacity is detected to be 79%, the application will give a first variable value, which can be a specific first value "0". If the current battery capacity is detected to be 81%, the application will give a second variable value, which can be a specific second value "1".

[0097] As an example, the variable value can still be "yes" or "no". Based on the battery performance status parameters, it is determined whether the battery performance status parameters meet the preset conditions, thus giving a "yes" or "no" judgment.

[0098] It should be noted that the application scenarios described in the above embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0099] Based on the same inventive concept, this application also provides a communication protocol scene switching device 400 for a battery management system (BMS). Specifically, in conjunction with... Figure 4 Please provide a detailed explanation.

[0100] Figure 4 This diagram illustrates the hardware structure of a communication protocol scene switching device 400 for a battery management system (BMS) provided in an embodiment of the present invention.

[0101] like Figure 4 As shown, this device is applied to a BMS (Battery Management System). The BMS communicates with a diagnostic host computer. The BMS is equipped with a first CAN communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for tiered scenarios. The device includes:

[0102] The detection module 410 is used to detect the value of a variable used to indicate the performance state of the power battery;

[0103] The first determining module 420, when the variable value is the first value, is used to determine whether to use the BMS response access mechanism based on the message interaction process with the diagnostic host computer.

[0104] The switching module 430 is used to switch the BMS from the first CAN communication protocol to the second CAN communication protocol when the response access mechanism of the BMS is determined.

[0105] In the battery management system (BMS) communication protocol scenario switching device 400 provided in this embodiment, when the variable value of the variable used to indicate the performance state of the power battery indicates that the performance state of the power battery does not meet the requirements for use in new energy vehicle scenarios, the first determining module 420 determines whether the BMS's response access mechanism is passed based on the message interaction process with the diagnostic host computer. If the BMS's response access mechanism is passed, the switching module 430 switches the BMS from the first CAN communication protocol to the second CAN communication protocol. Thus, without disassembling the power battery, it can be directly applied to secondary use scenarios, and the communication protocol switch can be completed without replacing the BMS. This not only reduces the cost of secondary use but also promotes the secondary use of batteries, extends the entire life cycle of the power battery, improves battery utilization, and is more conducive to energy conservation and environmental protection.

[0106] Optionally, the first determining module 420 may include:

[0107] The first generation unit is used to generate a seed message based on the tiered safety request message when the tiered safety request message is received from the diagnostic host computer during the first time period after the BMS is powered on and woken up.

[0108] The sending unit is used to send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message.

[0109] The acquisition unit is used to acquire the first key message sent by the diagnostic host computer;

[0110] The second generation unit is used to generate a second key message based on the seed message;

[0111] The first determining unit is used to determine the response access mechanism through the BMS when the first key message and the second key message are consistent.

[0112] Optionally, the first determining module 420 may further include:

[0113] The sending unit is used to periodically send tiered safety request messages according to a preset period if the diagnostic host computer does not receive the seed message returned by the BMS within the first time period.

[0114] Optionally, the first determining module 420 may further include:

[0115] The second determining unit is used to determine that the access mechanism has not been approved by the BMS if, within the first time period after the BMS is powered on and woken up, no tiered security request message is received from the diagnostic host computer, or if the first key message and the second key message are inconsistent.

[0116] Optionally, the communication protocol scene switching device 400 of the battery management system (BMS) may further include:

[0117] The acquisition module is used to acquire the performance status parameters of the power battery;

[0118] The second determination module is used to determine the variable values ​​based on the performance status parameters.

[0119] Optionally, the communication protocol scene switching device 400 of the battery management system (BMS) may further include:

[0120] The third determination module is used to determine the value of a variable as the first value when the performance status parameter does not meet the preset conditions.

[0121] The fourth determination module is used to determine the value of a variable as the second value when the performance status parameters meet preset conditions.

[0122] The communication protocol scene switching device 400 of the controller battery management system (BMS) provided in this application embodiment can achieve... Figures 1 to 3 The various processes implemented in the method embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.

[0123] Figure 5 This diagram illustrates the hardware structure of a communication protocol scenario switching device for a battery management system (BMS) provided in an embodiment of the present invention.

[0124] The communication protocol scene switching device of the battery management system (BMS) may include a processor 501 and a memory 502 storing computer program instructions.

[0125] Specifically, the processor 501 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement embodiments of the present invention.

[0126] Memory 502 may include mass storage for data or instructions. For example, and not limitingly, memory 502 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 502 may include removable or non-removable (or fixed) media. Where appropriate, memory 502 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 502 is non-volatile solid-state memory.

[0127] In certain embodiments, memory 502 may include read-only memory (ROM), random access memory (RAM), disk storage media device, optical storage media device, flash memory device, electrical, optical, or other physical / tangible memory storage device. Therefore, generally, memory 502 includes one or more tangible (non-transitory) computer-readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors 501), it is operable to perform the operations described with reference to the method according to one aspect of this application.

[0128] The processor 501 reads and executes computer program instructions stored in the memory 502 to implement any of the communication protocol scenario switching methods of the battery management system (BMS) in the above embodiments.

[0129] In one example, the communication protocol scene switching device of the battery management system (BMS) may further include a communication interface 503 and a bus 504. As shown in the figure, the processor 501, memory 502, and communication interface 503 are connected through the bus 504 and complete communication with each other.

[0130] The communication interface 503 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of the present invention.

[0131] Bus 504 includes hardware, software, or both. For example, and not as a limitation, bus 504 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, a Wireless Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Control Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 504 may include one or more buses 504. Although specific bus 504s are described and illustrated in embodiments of this application, this application contemplates any suitable bus 504 or interconnect.

[0132] The communication protocol scene switching device of this battery management system (BMS) can achieve integration based on the current communication protocol scene switching method of the battery management system (BMS). Figures 1-4 The method and apparatus for switching communication protocols of a battery management system (BMS) are described.

[0133] In addition, this application also provides a computer program product, including computer program instructions, which, when executed by processor 501, can implement the steps and corresponding content of the aforementioned method embodiments.

[0134] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0135] The functional blocks shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on a machine-readable medium or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer networks such as the Internet, intranets, etc.

[0136] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0137] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0138] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A method for switching communication protocol scenarios in a battery management system (BMS), characterized in that, The method is applied to a BMS (Battery Management System), which communicates with a diagnostic host computer. The BMS is equipped with a first CAN communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for tiered scenarios. The method includes: Detect the values ​​of variables used to indicate the performance state of the power battery; When the variable value is the first value, the system determines whether to use the BMS response access mechanism based on the message interaction process with the diagnostic host computer. The first value is used to indicate that the performance status of the power battery does not meet the requirements for use in new energy vehicle scenarios. If the response access mechanism through BMS is determined, switch BMS from the first CAN communication protocol to the second CAN communication protocol. The process of determining whether to use the BMS's response access mechanism based on the message interaction with the diagnostic host computer includes: Within the first time period after the BMS is powered on and woken up, if a tiered safety request message is received from the diagnostic host computer, a seed message is generated based on the tiered safety request message. Send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message; Obtain the first key message sent by the diagnostic host computer; Generate a second key message based on the seed message; If the first key message and the second key message are consistent, the response access mechanism through the BMS is determined.

2. The method as described in claim 1, characterized in that, If the diagnostic host computer does not receive a seed message returned by the BMS during the first time period, the diagnostic host computer will periodically send tiered safety request messages according to a preset cycle.

3. The method as described in claim 1, characterized in that, If, within the first time period after the BMS is powered on and woken up, no tiered security request message is received from the diagnostic host computer, or if the first key message and the second key message are inconsistent, it is determined that the access was not approved by the BMS's response mechanism.

4. The method according to any one of claims 1-3, characterized in that, The method also includes: if the variable value is not the first value or if the BMS response access mechanism is not passed, the BMS will still execute the first CAN communication protocol.

5. The method according to any one of claims 1-3, characterized in that, Before detecting the value of the variable, the method also includes: Obtain the performance status parameters of the power battery; Determine the variable values ​​based on the performance status parameters.

6. The method as described in claim 5, characterized in that, The step of determining the variable values ​​based on performance status parameters includes: When the performance status parameters do not meet the preset conditions, the value of the variable is determined to be the first value. When the performance status parameters meet the preset conditions, the value of the variable is determined to be the second value.

7. The method as described in claim 1, characterized in that, The step of switching the BMS from the first CAN communication protocol to the second CAN communication protocol includes: Activate the second CAN communication protocol and disable the first CAN communication protocol.

8. A communication protocol scene switching device for a battery management system (BMS), characterized in that, The device is used in a BMS (Battery Management System), which communicates with a diagnostic host computer. The BMS incorporates a first CAN communication protocol for high-performance new energy vehicle scenarios and a second CAN communication protocol for tiered scenarios. The device includes: The detection module is used to detect the values ​​of variables that indicate the performance state of the power battery; The first determining module is used to determine whether to use the BMS's response access mechanism based on the message interaction process with the diagnostic host computer when the variable value is the first value. The switching module is used to switch the BMS from the first CAN communication protocol to the second CAN communication protocol when the response access mechanism of the BMS is determined. The first determining module includes: The first generation unit is used to generate a seed message based on the tiered safety request message when the tiered safety request message is received from the diagnostic host computer during the first time period after the BMS is powered on and woken up. The generation unit is used to send a seed message to the diagnostic host computer so that the diagnostic host computer generates a first key message based on the seed message. The acquisition unit is used to acquire the first key message sent by the diagnostic host computer; The second generation unit is used to generate a second key message based on the seed message; The first determining unit is used to determine the response access mechanism through the BMS when the first key message and the second key message are consistent.

Citation Information

Patent Citations

  • Lithium battery full life cycle on-line optimization monitoring system and monitoring method

    CN110310039A