Daisy chain breakpoint recovery method, apparatus and device, and storage medium

By detecting breakpoints in the daisy chain and limiting driving power, the problem that the daisy chain cannot form a serial loop under strong interference is solved, and the accurate confirmation of breakpoints and rapid recovery of the daisy chain is achieved, ensuring driving safety and convenience of battery pack maintenance.

WO2025067088A1PCT designated stage expired Publication Date: 2025-04-03ZHAOQING XIAOPENG NEW ENERGY INVESTMENT CO LTD GUANGZHOU BRANCH +1

Patent Information

Application Number
PCT/CN2024/120248
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-25
Filing Date
2024-09-23
Publication Date
2025-04-03

AI Technical Summary

Technical Problem

Under strong interference, the daisy chain cannot form a serial loop, and the battery cell data cannot be obtained to confirm the breakpoint, which increases the safety risk and increases the difficulty of battery pack maintenance.

Method used

By obtaining the number of connections to the front-end sampling chips in the daisy chain, determine whether there is a breakpoint and limit the driving power at the breakpoint. Then, the front-end sampling chip is reconnected to restore the normal state of the daisy chain and obtain the overall sampling data after recovery to restore the driving power.

Benefits of technology

It realizes accurate confirmation of the breakpoint position during vehicle driving, reduces maintenance difficulty, and ensures driving safety through power limiting and reduces safety risks. At the same time, the daisy chain is restored through the fast reconnect mechanism, and after recovery, all data can be obtained, and the vehicle can automatically resume normal driving.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024120248_03042025_PF_FP_ABST
    Figure CN2024120248_03042025_PF_FP_ABST
Patent Text Reader

Abstract

A daisy chain breakpoint recovery method, apparatus and device, and a storage medium. The method comprises: acquiring a connection number of front-end sampling chips in a daisy chain, and on the basis of the connection number, determining whether there is a breakpoint in the daisy chain; when there is a breakpoint in the daisy chain, limiting a travelling power on the basis of sampled data before the breakpoint; reconnecting the front-end sampling chips in the daisy chain, such that the daisy chain is restored to normal; and after the daisy chain is restored to normal, acquiring overall sampled data, and restoring the travelling power on the basis of the overall sampled data.
Need to check novelty before this filing date? Find Prior Art

Description

Daisy chain breakpoint recovery method, device, equipment and storage medium

[0001] Priority information

[0002] This application claims priority and benefits of patent application No. 202311249213.3 filed with the State Intellectual Property Office of China on September 25, 2023, and the entire text of which is incorporated herein by reference. Technical Field

[0003] The present application relates to the field of daisy chain communication technology, and in particular to a daisy chain breakpoint recovery method, apparatus, device, and storage medium. Background Art

[0004] In the field of new energy electric vehicles, the battery management system (BMS) on the battery pack uses daisy chain communication technology to monitor battery cell temperature, voltage, current, and other information. It then uses corresponding algorithms to ensure battery health and control high-voltage safe output. However, the complex on-board environment can cause interference to the BMS's daisy chain communication (such as strong EMC interference), resulting in daisy chain failure. In this case, the daisy chain cannot form a serial loop, daisy chain communication fails, and cell data cannot be obtained to confirm breakpoints. This poses safety risks to the entire vehicle and increases the difficulty of battery pack maintenance.

[0005] The above content is only used to assist in understanding the technical solution of this application and does not constitute an admission that the above content is prior art.

[0006] Summary of the Invention

[0007] The main purpose of this application is to provide a daisy chain breakpoint recovery method, device, equipment and storage medium, aiming to solve the technical problem in the prior art that under strong interference, the daisy chain cannot form a serial loop, cannot obtain battery cell data to confirm the breakpoint, and increases the safety risk.

[0008] To achieve the above objectives, the present application provides a daisy chain breakpoint recovery method, the method comprising the following steps:

[0009] Obtaining the number of connections of the front-end sampling chips in the daisy chain, and determining whether there is a breakpoint in the daisy chain based on the number of connections;

[0010] When a breakpoint exists in the daisy chain, the driving power is limited based on the sampled data before the breakpoint;

[0011] Reconnecting the front-end sampling chips in the daisy chain to restore the daisy chain to normal;

[0012] After the daisy chain returns to normal, overall sampling data is acquired, and the driving power is restored based on the overall sampling data.

[0013] Optionally, reconnecting the front-end sampling chips in the daisy chain to restore the daisy chain to normal includes:

[0014] Obtaining the communication connection time of the front-end sampling chip, and when the communication connection time is greater than or equal to a preset maintenance time, initializing the number of reconnections, and updating the number of chip reconnections to the number of chips of the front-end sampling chip;

[0015] Reconnecting the front-end sampling chip based on the number of chip reconnections and updating the number of reconnections;

[0016] When the front-end sampling chip fails to be reconnected, determining that the daisy chain enters a failure state;

[0017] When the number of reconnections is less than or equal to the reconnection number threshold, returning to the step of reconnecting the front-end sampling chip based on the number of chip reconnections;

[0018] When the number of reconnections is greater than the reconnection number threshold, based on the preset decrement strategy, the chip reconnection number is updated, the reconnection number is initialized, and the step of reconnecting the front-end sampling chip based on the chip reconnection number is returned to.

[0019] Optionally, reconnecting the front-end sampling chip based on the chip reconnection quantity includes:

[0020] determining a target front-end sampling chip among the front-end sampling chips based on the number of chip reconnections;

[0021] Reconnecting the target front-end sampling chip;

[0022] Acquire a communication verification status of the target front-end sampling chip, and update a verification error count based on the communication verification status;

[0023] When the number of verification errors is less than or equal to a preset verification threshold, determining that the front-end sampling chip is successfully reconnected;

[0024] When the number of verification errors is greater than the preset verification threshold, it is determined that the front-end sampling chip fails to reconnect.

[0025] Optionally, after reconnecting the front-end sampling chip based on the chip reconnection quantity, the method further includes:

[0026] When the front-end sampling chip is successfully reconnected, determining the number of successful reconnections based on the number of chip reconnections;

[0027] When the number of successful reconnections is equal to the number of chips, determining that the daisy chain has returned to normal;

[0028] When the number of successful reconnections is less than the number of chips, the process returns to the step of obtaining the number of connected front-end sampling chips in the daisy chain.

[0029] Optionally, after obtaining the communication connection time of the front-end sampling chip, the method further includes:

[0030] When the communication connection time is less than a preset maintenance time, determining that the daisy chain enters an error state;

[0031] Determining the chip reconnection quantity based on the connection quantity;

[0032] Return to the step of reconnecting the front-end sampling chip based on the chip reconnection quantity.

[0033] Optionally, determining whether there is a breakpoint in the daisy chain based on the number of connections includes:

[0034] When the number of connections is not equal to the number of chips of the front-end sampling chip, determining whether there is a breakpoint in the daisy chain;

[0035] When the number of connections is equal to the number of chips, the communication connection time is obtained. When the communication connection time is greater than the preset stable time, it is determined that there is no breakpoint in the daisy chain, the number of reconnections is initialized, and the number of chip reconnections is updated to the number of chips, and the step of obtaining the number of connections of the front-end sampling chips in the daisy chain is returned to.

[0036] Optionally, the daisy chain breakpoint recovery method further includes:

[0037] When a breakpoint exists in the daisy chain, a position of the breakpoint in the daisy chain is determined based on the number of connections.

[0038] In addition, to achieve the above-mentioned purpose, the present application also proposes a daisy chain breakpoint recovery device, which includes:

[0039] a breakpoint confirmation module, configured to obtain the number of connections of the front-end sampling chips in the daisy chain, and determine whether a breakpoint exists in the daisy chain based on the number of connections;

[0040] a power limiting module, configured to limit driving power based on sampling data before the breakpoint when a breakpoint occurs in the daisy chain;

[0041] A breakpoint recovery module, configured to reconnect the front-end sampling chips in the daisy chain to restore the daisy chain to normal;

[0042] The power recovery module is used to obtain overall sampling data after the daisy chain returns to normal, and restore the driving power based on the overall sampling data.

[0043] In addition, to achieve the above-mentioned purpose, the present application also proposes a daisy chain breakpoint recovery device, which includes: a memory, a processor, and a daisy chain breakpoint recovery program stored on the memory and runnable on the processor, and the daisy chain breakpoint recovery program is configured to implement the steps of the daisy chain breakpoint recovery method described above.

[0044] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, on which a daisy chain breakpoint recovery program is stored. When the daisy chain breakpoint recovery program is executed by a processor, the steps of the daisy chain breakpoint recovery method described above are implemented.

[0045] In this application, the number of connections of the front-end sampling chip in the daisy chain is obtained, and based on the number of connections, whether there is a breakpoint in the daisy chain is determined. When there is a breakpoint in the daisy chain, the driving power is limited based on the sampling data before the breakpoint, and the front-end sampling chip in the daisy chain is reconnected to restore the daisy chain to normal. After the daisy chain returns to normal, the overall sampling data is obtained, and the driving power is restored based on the overall sampling data. Because the daisy chain cannot form a serial loop under strong interference, it is impossible to obtain battery cell data to confirm the breakpoint, which increases the safety risk. When daisy chain interference or disconnection occurs during vehicle driving, this application can accurately confirm the breakpoint location, reduce the difficulty of maintenance, and obtain data before the breakpoint to limit the vehicle's driving power, so that the vehicle does not need to stop driving under high voltage, ensuring driving safety and reducing safety risks. At the same time, the daisy chain is restored through a fast reconnection mechanism. After recovery, all data is obtained, and the vehicle can automatically resume normal driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] FIG1 is a schematic diagram of the structure of a daisy chain breakpoint recovery device in a hardware operating environment according to an embodiment of the present application;

[0047] FIG2 is a flow chart of a first embodiment of a daisy chain breakpoint recovery method of the present application;

[0048] FIG3 is a schematic diagram of normal daisy chain communication according to the first embodiment of the daisy chain breakpoint recovery method of the present application;

[0049] FIG4 is a schematic diagram of daisy chain state switching according to the first embodiment of the daisy chain breakpoint recovery method of the present application;

[0050] FIG5 is a schematic diagram of a daisy chain breakpoint according to a first embodiment of the daisy chain breakpoint recovery method of the present application;

[0051] FIG6 is a schematic diagram of a chip internal circuit according to a first embodiment of the daisy chain breakpoint recovery method of the present application;

[0052] FIG7 is a flow chart of a second embodiment of a daisy chain breakpoint recovery method of the present application;

[0053] FIG8 is a communication verification diagram of the first embodiment of the daisy chain breakpoint recovery method of the present application;

[0054] FIG9 is a flow chart of a third embodiment of a daisy chain breakpoint recovery method of the present application;

[0055] FIG10 is a schematic diagram of the overall flow of the first embodiment of the daisy chain breakpoint recovery method of the present application;

[0056] FIG11 is a structural block diagram of the first embodiment of the daisy chain breakpoint recovery device of the present application.

[0057] The realization of the objectives, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0058] It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application.

[0059] Refer to Figure 1, which is a schematic diagram of the structure of a daisy chain breakpoint recovery device in a hardware operating environment involved in an embodiment of the present application.

[0060] As shown in Figure 1, the daisy chain breakpoint recovery device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. The communication bus 1002 is used to implement connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (RAM) memory or a stable non-volatile memory (NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0061] Those skilled in the art will appreciate that the structure shown in FIG1 does not limit the daisy chain breakpoint recovery device, and may include more or fewer components than shown, or a combination of certain components, or a different arrangement of components.

[0062] As shown in FIG. 1 , the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a daisy chain breakpoint recovery program.

[0063] In the daisy chain breakpoint recovery device shown in Figure 1, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the daisy chain breakpoint recovery device of the present application can be set in the daisy chain breakpoint recovery device, and the daisy chain breakpoint recovery device calls the daisy chain breakpoint recovery program stored in the memory 1005 through the processor 1001, and executes the daisy chain breakpoint recovery method provided in the embodiment of the present application.

[0064] An embodiment of the present application provides a daisy chain breakpoint recovery method. Referring to FIG. 2 , FIG. 2 is a flow chart of a first embodiment of a daisy chain breakpoint recovery method of the present application.

[0065] In this embodiment, the daisy chain breakpoint recovery method includes the following steps:

[0066] Step S10: obtaining the number of connections of the front-end sampling chips in the daisy chain, and determining whether there is a breakpoint in the daisy chain based on the number of connections.

[0067] It should be noted that the executor of this embodiment is the microcontroller unit (MCU) in the vehicle. As shown in Figure 3, N front-end sampling chips (Analog Front End, AFE) serially transmit to form a loop, and the loop is connected to the MCU to form a daisy chain. The MCU is provided with a daisy chain breakpoint recovery program. By running the daisy chain breakpoint recovery program, the breakpoint in the daisy chain can be determined and quickly recovered.

[0068] It can be understood that the daisy chain's operating states are divided into five states: initialization (Init), reinitialization (Reinit), deinitialization (Deinit), normal (Normal), and error (Error). The switching relationship between each state is shown in Figure 4 below. Generally speaking, the daisy chain is usually in the normal state. If a communication error occurs, it enters the error state. After the daisy chain enters the error state, if reinitialization is requested, it enters the reinitialization state. After entering the reinitialization state, the daisy chain unconditionally jumps to the initialization state. After entering the initialization state, if the daisy chain communication connection is successful, it enters the normal state. If the daisy chain communication connection fails, it enters the error state. When the daisy chain is in the normal state, at least one front-end sampling chip must be able to communicate with the MCU. Therefore, as long as one front-end sampling chip in the daisy chain can communicate with the MCU, the daisy chain is in the normal state.

[0069] Furthermore, obtaining the number of connections of the front-end sampling chips in the daisy chain includes: receiving sampling data of the front-end sampling chips in the daisy chain; determining the communication front-end sampling chips in the front-end sampling chips based on the sampling data; and determining the number of connections based on the number of the communication front-end sampling chips.

[0070] It should be understood that, referring to Figure 3, when the daisy chain is communicating normally (when there is no breakpoint), the front-end sampling chip can normally return the sampled data to the MCU. At this time, the sampled data received by the MCU from the front-end sampling chip is the data under normal communication conditions of the daisy chain. As shown in Figure 5, if the daisy chain is disconnected or under strong interference, a breakpoint will appear in the daisy chain, the daisy chain cannot form a serial loop, the daisy chain communication fails, and the battery cell data cannot be directly obtained to confirm the breakpoint. As shown in Figure 6, this embodiment uses the MAX17823 chip as the front-end sampling chip. The MAX17823 chip itself supports the daisy chain loopback function. By enabling the internal circuit of the chip, the sampled data of each chip before the disconnection can be returned to the MCU. At this time, the sampled data received by the MCU from the front-end sampling chip is the data under the condition of a breakpoint in the daisy chain, which can be used to determine the breakpoint location and provide reference information for battery pack maintenance to facilitate subsequent battery pack maintenance and reduce the difficulty of battery pack maintenance.

[0071] It should be noted that the MCU can determine the chip that can communicate with it, that is, the communication front-end sampling chip, and the number of communication front-end sampling chips, that is, the number of front-end sampling chips currently communicating with the MCU (number of connections) through the received sampling data.

[0072] Furthermore, determining whether there is a breakpoint in the daisy chain based on the number of connections includes: when the number of connections is not equal to the number of chips of the front-end sampling chip, determining whether there is a breakpoint in the daisy chain; when the number of connections is equal to the number of chips, obtaining the communication connection time, and when the communication connection time is greater than a preset stable time, determining that there is no breakpoint in the daisy chain, initializing the number of reconnections, and updating the number of chip reconnections to the number of chips, and returning to execute the step of obtaining the number of connections of the front-end sampling chips in the daisy chain.

[0073] It is understood that the number of chips refers to the number of front-end sampling chips that can communicate normally with the MCU when the daisy chain has no breakpoints, for example, 10. This number is determined based on actual conditions. If the number of connections is less than the number of front-end sampling chips, it means that the MCU is not connected to all front-end sampling chips in the daisy chain. In this case, the daisy chain usually has a breakpoint. If the number of connections is equal to the number of front-end sampling chips and the communication connection is stable, it means that the MCU is connected to all front-end sampling chips in the daisy chain. In this case, the daisy chain usually has no breakpoints and the MCU can communicate normally with all front-end sampling chips.

[0074] It should be understood that the communication connection time is the time during which the front-end sampling chip can maintain communication with the MCU. The communication connection time starts counting when the daisy chain enters a normal working state. When the daisy chain is in an erroneous working state, the communication connection time is usually 0. The preset stable time is a preset stable time threshold, for example, 30s, which can be set according to actual needs. This embodiment does not impose any restrictions on this. If the communication connection time between the front-end sampling chip and the MCU exceeds the stable time threshold, it is considered that the daisy chain is in a steady state and there is no breakpoint in the daisy chain. The number of reconnections is the number of times the chip is reconnected, and the number of chip reconnections is the number of chips attempted to connect during reconnection. The number of reconnections and the number of reconnections are both relevant parameters involved in the daisy chain reconnection process. When the daisy chain is in a steady state, the number of reconnections and the number of chip reconnections are adjusted to the initial values. The initial value of the number of reconnections is 0, and the initial value of the number of chip reconnections is the number of chips. The number of connections of the front-end sampling chip is re-detected.

[0075] In the specific implementation, if the number of chips connected to the MCU in the daisy chain is equal to the number of chips, and the normal communication state is maintained for more than the stable time threshold, it can be considered that the daisy chain is in a steady state and there is no breakpoint. At this time, the number of reconnections is reset to zero, and the number of chip reconnections is set to the number of chips; if the number of front-end sampling chips connected to the MCU in the daisy chain is less than the number of chips, there is a breakpoint in the daisy chain.

[0076] Furthermore, the daisy chain breakpoint recovery method further includes: when a breakpoint exists in the daisy chain, determining a breakpoint position in the daisy chain based on the number of connections.

[0077] It should be noted that when the number of connections is less than the number of front-end sampling chips, the position of the breakpoint can be determined according to the current number of connections, that is, the breakpoint position. The breakpoint position is usually behind the last front-end sampling chip that can communicate with the MCU. If the current number of connections is m, the last front-end sampling chip that can communicate with the MCU is the m-th front-end sampling chip. At this time, the breakpoint position is behind the m-th front-end sampling chip. Since the (m + 1)-th front-end sampling chip cannot communicate with the MCU, it can be considered that there is at least one breakpoint position between the m-th front-end sampling chip and the (m + 1)-th front-end sampling chip, where 0 < m ≤ N - 1 and N is the number of chips. If m = 0, the breakpoint position is in front of the first front-end sampling chip, that is, between the first front-end sampling chip and the MCU.

[0078] In a specific implementation, the position of the breakpoint is determined according to the number of connections of the front-end sampling chips. When maintenance is required, the breakpoint can be quickly judged, which speeds up the maintenance progress and reduces the maintenance difficulty at the same time.

[0079] Step S20: When there is a breakpoint in the daisy chain, limit the driving power based on the sampling data before the breakpoint.

[0080] It can be understood that the sampling data before the breakpoint refers to the data that the front-end sampling chips in front of the breakpoint in the daisy chain can return to the MCU. The driving power is the relevant power used for vehicle driving.

[0081] In a specific implementation, when a breakpoint appears in the daisy chain, this embodiment can use the sampling data before the breakpoint to limit the driving power of the vehicle, enabling the vehicle to drive with power limitation, without having to stop driving under high voltage, ensuring driving safety and reducing safety risks.

[0082] Step S30: Reconnect the front-end sampling chips in the daisy chain to make the daisy chain resume normal.

[0083] It should be understood that the daisy chain resuming normal usually means that all front-end sampling chips can communicate with the MCU normally, so that all sampling data can be obtained subsequently. Therefore, if the daisy chain resumes normal, the daisy chain is in a normal working state at this time. Since the normal working state of the daisy chain only needs to ensure that at least one chip communicates with the MCU, when the daisy chain is in a normal working state, it cannot be considered that the daisy chain must have resumed normal.

[0084] It should be noted that when reconnecting the front-end sampling chips in the daisy chain, the first number of connections attempted in this embodiment is usually the number of chips. If the connection fails, the number of connections is reduced and reconnection attempts are continued. For example, assuming the number of chips is 10, first try to connect all 10 front-end sampling chips. If the connection fails, retry to connect 9 front-end sampling chips. If the connection still fails, continue to reduce the number of chips to reconnect. If the first connection is successful, it is generally considered that the daisy chain has returned to normal. If the connection fails and the new number of chips is used to reconnect, the reconnection parameters are initialized and a new round of reconnection is restarted until all front-end sampling chips in the daisy chain can communicate normally with the MCU and the daisy chain returns to normal.

[0085] It is understandable that the reconnection of the front-end sampling data in the daisy chain is initiated by the MCU.

[0086] Step S40: After the daisy chain returns to normal, overall sampling data is acquired, and the driving power is restored based on the overall sampling data.

[0087] It should be understood that the overall sampling data refers to the sampling data of all front-end sampling chips. After the daisy chain returns to normal, all sampling data can be obtained, allowing the vehicle to resume normal driving.

[0088] It should be noted that after the daisy chain is completely disconnected, this embodiment can obtain the data before the disconnection, ensure that the entire vehicle can travel with limited power, and can confirm the location of the disconnection to facilitate battery pack maintenance. When the daisy chain is disconnected or the daisy chain is sometimes good and sometimes bad, it can quickly reconnect to restore the daisy chain to normal status to obtain all data, which can increase the robustness of the daisy chain.

[0089] In this embodiment, the number of connected front-end sampling chips in a daisy chain is obtained. Based on the number of connections, whether there is a break in the daisy chain is determined. If a break exists, driving power is limited based on the sampling data before the break. The front-end sampling chips in the daisy chain are reconnected to restore the daisy chain to normal operation. After the daisy chain is restored, the overall sampling data is obtained, and driving power is restored based on the overall sampling data. Because the daisy chain cannot form a serial loop under strong interference, it is impossible to obtain cell data to confirm the break, which increases safety risks. In this embodiment, when daisy chain interference or a break occurs during vehicle operation, the break can be accurately identified, reducing repair difficulties. Data before the break is obtained to limit vehicle power, eliminating the need to stop the vehicle under high voltage, ensuring driving safety and reducing safety risks. Simultaneously, a rapid reconnection mechanism is used to restore the daisy chain. After recovery, full data is obtained, and the vehicle can automatically resume normal operation.

[0090] 7 , which is a flow chart of a second embodiment of a daisy chain breakpoint recovery method according to the present application.

[0091] Based on the above embodiment, step S30 includes:

[0092] Step S301: obtaining the communication connection time of the front-end sampling chip, initializing the number of reconnections when the communication connection time is greater than or equal to the preset maintenance time, and updating the chip reconnection number to the chip number of the front-end sampling chip.

[0093] It should be noted that the communication connection time is the time during which the front-end sampling chip can maintain communication with the MCU, and the preset maintenance time is a preset connection maintenance time threshold, for example: 15s, which can be set according to actual needs, and this embodiment does not impose any restrictions on this. The number of reconnections is the number of times the chip is reconnected, and the number of chip reconnections is the number of chips that attempt to connect when reconnecting. The number of reconnections and the number of chip reconnections are both relevant parameters involved in the daisy chain reconnection process. When the communication connection time is greater than or equal to the preset maintenance time, the number of reconnections and the number of chip reconnections need to be adjusted to the initial values. The initial value of the number of reconnections is 0, and the initial value of the number of chip reconnections is the number of chips. Therefore, the number of reconnections is cleared to zero, and the number of chips is used as the initial number of chip reconnections to reconnect in step S302.

[0094] Step S302: reconnecting the front-end sampling chip based on the chip reconnection quantity.

[0095] Furthermore, step S302 includes: determining a target front-end sampling chip among the front-end sampling chips based on the number of chip reconnections; reconnecting the target front-end sampling chip; obtaining a communication verification status of the target front-end sampling chip, and updating a number of verification errors based on the communication verification status; determining that the front-end sampling chip has been successfully reconnected when the number of verification errors is less than or equal to a preset verification threshold; and determining that the front-end sampling chip has failed to be reconnected when the number of verification errors is greater than the preset verification threshold.

[0096] It can be understood that the target front-end sampling chip is the chip among the front-end sampling chips that currently needs to be reconnected. If there are N front-end sampling chips and the current number of chip reconnections is k (1≤k≤N), then the target front-end sampling chip is the first k front-end sampling chips among the N front-end sampling chips.

[0097] It should be understood that whether the MCU and the front-end sampling chip are communicating normally is typically determined through verification. This embodiment employs a CRC (Cyclic Redundancy Check) method. The communication verification status is the result of the CRC verification during the communication process, and there are two states: verification success and verification error. The number of verification errors is the number of verification errors that occurred. The number of verification errors is typically cumulative. As shown in FIG8 , if the communication verification status is verification success, the number of verification errors is reduced by 1; if the communication verification status is verification error, the number of verification errors is increased by 2. Other calculation methods can also be configured, and this embodiment does not impose any restrictions on this. The preset verification threshold is a pre-set error count threshold, for example, 50 times. This can be flexibly adjusted according to actual conditions, and this embodiment does not impose any restrictions on this. The number of verification errors is counted within a preset time range. When the number of verification errors exceeds the preset verification threshold, it is considered that there is a communication problem, reconnection fails, and the daisy chain enters a failure state. When the number of verification errors does not exceed the preset verification threshold, it is considered that communication is normal, reconnection succeeds, and the daisy chain remains in normal operation. The preset time range can be flexibly adjusted according to actual needs, and this embodiment does not impose any restrictions on this. This CRC check method is applicable to the communication process between the MCU and any front-end sampling chip in this embodiment.

[0098] In a specific implementation, the verification status of the communication process between the MCU and the target front-end sampling chip is determined by CRC verification. If the number of verification errors exceeds a preset verification threshold, it is considered that the reconnection has failed.

[0099] Step S303: When the front-end sampling chip fails to reconnect, it is determined that the daisy chain enters a failure state.

[0100] It should be noted that when reconnection fails, the daisy chain will enter a failed working state.

[0101] Step S304: When the number of reconnections is greater than the reconnection number threshold, based on the preset decrement strategy, the chip reconnection number is updated, the reconnection number is initialized, and the step of reconnecting the front-end sampling chip based on the chip reconnection number is returned to.

[0102] Furthermore, when the number of reconnections is less than or equal to the reconnection number threshold, the process returns to executing the step of reconnecting the front-end sampling chip based on the number of chip reconnections.

[0103] It is understandable that the reconnection threshold is the number of times each chip reconnection number is pre-set and can be attempted to reconnect. The reconnection number is usually set to a value greater than 2, for example: 5 times, and can be set according to actual needs. This embodiment does not limit this. When reconnecting, multiple attempts can be made to connect according to the number of reconnections. When the reconnection number is greater than the reconnection threshold, it is considered that the chip corresponding to the chip reconnection number cannot be successfully connected after multiple attempts. It is necessary to adjust the chip reconnection number and reconnect again. When the reconnection number is less than or equal to the reconnection threshold, it is considered that there is still a chance to try to connect at this time, and the communication connection is still attempted according to the current chip reconnection number.

[0104] It should be understood that the preset decrement strategy refers to a pre-set method for adjusting the chip reconnection number. After the current chip reconnection number has used up the set number of reconnections, the chip reconnection number is usually reduced. For example, the chip reconnection number is reduced by 1, and the new chip reconnection number is used to reconnect the front-end sampling chip. Before using the new chip reconnection number to reconnect the front-end sampling chip, the reconnection number needs to be reset to zero so that multiple connection attempts can be made using the new chip reconnection number.

[0105] Furthermore, after obtaining the communication connection time of the front-end sampling chip, it also includes: when the communication connection time is less than a preset maintenance time, determining that the daisy chain enters an error state; based on the number of connections, determining the number of chip reconnections; and returning to execute the step of reconnecting the front-end sampling chip based on the number of chip reconnections.

[0106] It should be noted that if the communication connection time is less than the preset maintenance time, it means that the daisy chain cannot maintain normal communication connection (the daisy chain may be in a state of intermittent communication) and will enter an error state. In this case, the number of connected chips is directly used as the number of chip reconnections, and step S302 is executed to reconnect the front-end sampling chip.

[0107] It is understandable that if the breakpoint changes, when reconnection is successful, the front-end sampling chip that can be successfully connected in the daisy chain can be determined based on the current number of chip reconnections, thereby determining the current breakpoint.

[0108] In this embodiment, the communication connection time of the front-end sampling chip is obtained. When the communication connection time is greater than or equal to the preset maintenance time, the number of reconnections is initialized and the chip reconnection number is updated to the number of chips. Based on the chip reconnection number, the front-end sampling chip is reconnected and the reconnection number is updated. When the front-end sampling chip fails to reconnect, it is determined that the daisy chain has entered a failure state. When the number of reconnections is less than or equal to the reconnection number threshold, the process returns to the step of reconnecting the front-end sampling chip based on the chip reconnection number. When the number of reconnections is greater than the reconnection number threshold, the chip reconnection number is updated based on a preset decrement strategy, and the process returns to the step of reconnecting the front-end sampling chip based on the chip reconnection number. When a breakpoint occurs in the daisy chain, this embodiment quickly reconnects the front-end sampling chip to quickly restore the daisy chain. After restoration, all data is obtained, and the vehicle can automatically resume normal driving. At the same time, multiple attempts at a single point are added during the reconnection process to improve reconnection efficiency and ensure rapid recovery of the daisy chain.

[0109] 9 , which is a flow chart of a third embodiment of a daisy chain breakpoint recovery method according to the present application.

[0110] Based on the above embodiment, after step S302, the following steps are further included:

[0111] Step S303 ′: when the front-end sampling chip is successfully reconnected, the number of successful reconnections is determined based on the number of chip reconnections.

[0112] It should be noted that the number of successful reconnections refers to the number of front-end sampling chips that the MCU successfully connected to during the reconnection process. When the front-end sampling chip reconnects successfully, the number of successful reconnections is the number of chip reconnections.

[0113] Step S304 ′: when the number of successful reconnections is equal to the number of chips, it is determined that the daisy chain has returned to normal.

[0114] It is understandable that the number of successful reconnections is equal to the number of chips, indicating that all front-end sampling chips in the daisy chain have successfully communicated with the MCU. At this time, it can be considered that the daisy chain has returned to normal and there are no breakpoints in the daisy chain.

[0115] Furthermore, when the number of successful reconnections is less than the number of chips, the process returns to the step of obtaining the number of connected front-end sampling chips in the daisy chain.

[0116] It should be understood that the number of successful reconnections is less than the number of chips, indicating that some front-end sampling chips in the daisy chain have not yet successfully communicated with the MCU. At this time, there are still breakpoints in the daisy chain, and it cannot be considered that the daisy chain has returned to normal. Return to step S10 to re-judge the breakpoint and reconnect.

[0117] As shown in the overall process diagram of Figure 10, it is assumed that there are 10 front-end sampling chips in the daisy chain. If the daisy chain operates in a normal state, the number of chips connected to the daisy chain is 10, and the normal state lasts for more than 30 seconds, the daisy chain can be put into a steady state. At this time, the reconnection counter is cleared and the reconnection number is set to 10. If the daisy chain operates in a normal state, the number of chips connected to the daisy chain is less than 10. Here, the breakpoint can be determined based on the number of connected chips. If this state lasts for more than 15 seconds, the daisy chain restarts reconnection, and the number of reconnections starts from 10. If it enters an error state within 15 seconds, the reconnection number is reduced in a decreasing manner. If the daisy chain enters an error state, the number of daisy chain chips last connected was 10. At this time, the daisy chain will try to reconnect in the order of 10-9-8-7-6-5-4-3-2-1, and each reconnection number used will try to reconnect 5 times.

[0118] In this embodiment, the communication connection time of the front-end sampling chip is obtained. When the communication connection time is greater than or equal to the preset maintenance time, the reconnection count is initialized and the chip reconnection count is updated to the number of chips. Based on the chip reconnection count, the front-end sampling chip is reconnected. When the front-end sampling chip is successfully reconnected, the number of successful reconnections is determined based on the chip reconnection count. When the number of successful reconnections equals the number of chips, it is determined that the daisy chain has returned to normal. When a breakpoint occurs in the daisy chain, this embodiment quickly reconnects the front-end sampling chip to quickly restore the daisy chain. After recovery, all data is obtained, and the vehicle can automatically resume normal driving.

[0119] In addition, an embodiment of the present application further proposes a storage medium, on which a daisy chain breakpoint recovery program is stored. When the daisy chain breakpoint recovery program is executed by a processor, the steps of the daisy chain breakpoint recovery method described above are implemented.

[0120] Refer to FIG. 11 , which is a structural block diagram of a first embodiment of a daisy chain breakpoint recovery device of the present application.

[0121] As shown in FIG11 , the daisy chain breakpoint recovery device proposed in the embodiment of the present application includes:

[0122] The breakpoint confirmation module 10 is configured to obtain the number of connections of the front-end sampling chips in the daisy chain, and determine whether there is a breakpoint in the daisy chain based on the number of connections.

[0123] The power limiting module 20 is configured to limit the driving power based on the sampling data before the breakpoint when there is a breakpoint in the daisy chain.

[0124] The breakpoint recovery module 30 is used to reconnect the front-end sampling chips in the daisy chain to restore the daisy chain to normal.

[0125] The power recovery module 40 is configured to obtain overall sampling data after the daisy chain returns to normal, and recover the driving power based on the overall sampling data.

[0126] In this embodiment, the communication connection time of the front-end sampling chip is obtained. When the communication connection time is greater than or equal to the preset maintenance time, the number of reconnections is initialized, and the number of chip reconnections is updated to the number of chips in the front-end sampling chip. Because the daisy chain cannot form a serial loop under strong interference, it is impossible to obtain battery cell data to confirm the breakpoint, which increases safety risks. In this embodiment, when daisy chain interference or disconnection occurs during vehicle driving, the breakpoint location can be accurately confirmed, reducing the difficulty of battery pack maintenance. The data before the breakpoint is obtained to limit the power of the vehicle, so that the vehicle does not need to stop driving under high voltage, ensuring driving safety and reducing safety risks. At the same time, the daisy chain is restored through a fast reconnection mechanism. After recovery, all data is obtained, and the vehicle can automatically resume normal driving.

[0127] In one embodiment, the breakpoint recovery module 30 is further configured to obtain the communication connection time of the front-end sampling chip, and when the communication connection time is greater than or equal to the preset maintenance time, initialize the number of reconnections and update the number of chip reconnections to the number of chips of the front-end sampling chip;

[0128] Reconnecting the front-end sampling chip based on the number of chip reconnections and updating the number of reconnections;

[0129] When the front-end sampling chip fails to be reconnected, determining that the daisy chain enters a failure state;

[0130] When the number of reconnections is less than or equal to the reconnection number threshold, returning to the step of reconnecting the front-end sampling chip based on the number of chip reconnections;

[0131] When the number of reconnections is greater than the reconnection number threshold, based on the preset decrement strategy, the chip reconnection number is updated, the reconnection number is initialized, and the step of reconnecting the front-end sampling chip based on the chip reconnection number is returned to.

[0132] In one embodiment, the breakpoint recovery module 30 is further configured to determine a target front-end sampling chip among the front-end sampling chips based on the number of chip reconnections;

[0133] Reconnecting the target front-end sampling chip;

[0134] Acquire a communication verification status of the target front-end sampling chip, and update a verification error count based on the communication verification status;

[0135] When the number of verification errors is less than or equal to a preset verification threshold, determining that the front-end sampling chip is successfully reconnected;

[0136] When the number of verification errors is greater than the preset verification threshold, it is determined that the front-end sampling chip fails to reconnect.

[0137] In one embodiment, the breakpoint recovery module 30 is further configured to determine the number of successful reconnections based on the number of chip reconnections when the front-end sampling chip is successfully reconnected;

[0138] When the number of successful reconnections is equal to the number of chips, determining that the daisy chain has returned to normal;

[0139] When the number of successful reconnections is less than the number of chips, the process returns to the step of obtaining the number of connected front-end sampling chips in the daisy chain.

[0140] In one embodiment, the breakpoint recovery module 30 is further configured to determine that the daisy chain enters an error state when the communication connection time is less than a preset maintenance time;

[0141] Determining the chip reconnection quantity based on the connection quantity;

[0142] Return to the step of reconnecting the front-end sampling chip based on the chip reconnection quantity.

[0143] In one embodiment, the breakpoint recovery module 30 is further configured to determine whether there is a breakpoint in the daisy chain when the number of connections is not equal to the number of chips of the front-end sampling chip;

[0144] When the number of connections is equal to the number of chips, the communication connection time is obtained. When the communication connection time is greater than the preset stable time, it is determined that there is no breakpoint in the daisy chain, the number of reconnections is initialized, and the number of chip reconnections is updated to the number of chips, and the step of obtaining the number of connections of the front-end sampling chips in the daisy chain is returned to.

[0145] In one embodiment, the breakpoint confirmation module 10 is further configured to determine the position of the breakpoint in the daisy chain based on the number of connections when a breakpoint exists in the daisy chain.

[0146] It should be understood that the above is only an example and does not constitute any limitation to the technical solution of the present application. In specific applications, technicians in this field can make settings as needed, and the present application does not impose any restrictions on this.

[0147] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of this application. In actual applications, technicians in this field can select part or all of it according to actual needs to achieve the purpose of this embodiment scheme, and no restrictions are imposed here.

[0148] In addition, for technical details not fully described in this embodiment, please refer to the daisy chain breakpoint recovery method provided in any embodiment of the present application, which will not be repeated here.

[0149] In addition, it should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or system comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, commodity, or system. In the absence of further limitations, an element defined by the phrase "comprising a..." does not exclude the presence of other identical elements in the process, method, commodity, or system comprising the element.

[0150] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0151] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus the necessary general hardware platform, or of course by hardware, but in many cases the former is a better embodiment. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0152] The above are only preferred embodiments of the present application and do not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A daisy chain breakpoint recovery method, characterized in that: The daisy chain breakpoint recovery method comprises: Obtaining the number of connections of the front-end sampling chips in the daisy chain, and determining whether there is a breakpoint in the daisy chain based on the number of connections; When there is a breakpoint in the daisy chain, the driving power is limited based on the sampled data before the breakpoint; Reconnecting the front-end sampling chip in the daisy chain to restore the daisy chain to normal; After the daisy chain returns to normal, the overall sampling data is acquired, and the driving power is restored based on the overall sampling data.

2. The method according to claim 1, characterized in that The reconnecting of the front-end sampling chips in the daisy chain to restore the daisy chain to normal includes: Acquire the communication connection time of the front-end sampling chip, and when the communication connection time is greater than or equal to the preset maintenance time, initialize the number of reconnections, and update the number of chip reconnections to the number of chips of the front-end sampling chip; Based on the chip reconnection number, reconnect the front-end sampling chip and update the reconnection number; When the front-end sampling chip fails to be reconnected, determining that the daisy chain enters a failure state; When the number of reconnections is less than or equal to the reconnection number threshold, returning to execute the step of reconnecting the front-end sampling chip based on the number of chip reconnections; When the number of reconnections is greater than the reconnection number threshold, based on the preset decrement strategy, the chip reconnection number is updated, the reconnection number is initialized, and the step of reconnecting the front-end sampling chip based on the chip reconnection number is returned to be executed.

3. The method according to claim 2, characterized in that The reconnecting the front-end sampling chip based on the chip reconnection quantity includes: Based on the chip reconnection quantity, determining a target front-end sampling chip among the front-end sampling chips; Reconnecting the target front-end sampling chip; Acquire the communication verification status of the target front-end sampling chip, and update the number of verification errors based on the communication verification status; When the number of verification errors is less than or equal to a preset verification threshold, determining that the front-end sampling chip is successfully reconnected; When the number of verification errors is greater than the preset verification threshold, it is determined that the front-end sampling chip fails to reconnect.

4. The method according to claim 2 or 3, characterized in that After reconnecting the front-end sampling chip based on the chip reconnection quantity, the method further includes: When the front-end sampling chip is successfully reconnected, determining the number of successful reconnections based on the number of chip reconnections; When the number of successful reconnections is equal to the number of chips, determining that the daisy chain is restored to normal; When the number of successful reconnections is less than the number of chips, the process returns to the step of obtaining the number of connected front-end sampling chips in the daisy chain.

5. The method according to any one of claims 2 to 4, characterized in that: After obtaining the communication connection time of the front-end sampling chip, the method further includes: When the communication connection time is less than a preset maintenance time, determining that the daisy chain enters an error state; Based on the number of connections, determining the number of chip reconnections; Return to execute the step of reconnecting the front-end sampling chip based on the chip reconnection quantity.

6. The method according to any one of claims 1 to 5, characterized in that: The determining, based on the number of connections, whether there is a breakpoint in the daisy chain includes: When the number of connections is not equal to the number of chips of the front-end sampling chip, determining whether there is a breakpoint in the daisy chain; When the number of connections is equal to the number of chips, the communication connection time is obtained. When the communication connection time is greater than the preset stable time, it is determined that there is no breakpoint in the daisy chain, the number of reconnections is initialized, and the number of chip reconnections is updated to the number of chips, and the step of obtaining the number of connections of the front-end sampling chips in the daisy chain is returned.

7. The method according to any one of claims 1 to 6, characterized in that: The daisy chain breakpoint recovery method further includes: When a breakpoint exists in the daisy chain, a position of the breakpoint in the daisy chain is determined based on the number of connections.

8. A daisy chain breakpoint recovery device, characterized in that: The daisy chain breakpoint recovery device further includes: A breakpoint confirmation module, used to obtain the number of connections of the front-end sampling chips in the daisy chain, and determine whether there is a breakpoint in the daisy chain based on the number of connections; A power limiting module, used for limiting the driving power based on the sampling data before the breakpoint when there is a breakpoint in the daisy chain; A breakpoint recovery module, used for reconnecting the front-end sampling chip in the daisy chain to restore the daisy chain to normal; A power recovery module is used to obtain overall sampling data after the daisy chain returns to normal, based on the overall sampling Data is used to restore the driving power.

9. A daisy chain breakpoint recovery device, characterized in that: The device comprises: a memory, a processor, and a daisy chain breakpoint recovery program stored in the memory and executable on the processor, wherein the daisy chain breakpoint recovery program is configured to implement the steps of the daisy chain breakpoint recovery method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a daisy chain breakpoint recovery program, and when the daisy chain breakpoint recovery program is executed by the processor, the steps of the daisy chain breakpoint recovery method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Daisy chain communication fault diagnosis method and device and battery management system

    CN111698105A

  • Fault judgment method and device, computer equipment and readable storage medium

    CN112787856A

  • Annular daisy chain communication fault processing method of BMS

    CN112953773A

  • Communication recovery method, device, battery management unit and system

    CN114884802A

  • Communication diagnosis method of daisy chain, battery management system and equipment

    CN116684320A

Cited By

  • Battery management system of dual-channel daisy chain and collaborative diagnosis and scheduling method

    CN121536166A