A method and system for online real-time clock diagnostics applicable to BMS

By introducing a real-time clock online diagnostic method into the BMS, and using the CAN communication module to send RTC clock fault information to the VCU vehicle controller, the problem of unidentifiable RTC clock timing function faults is solved, enabling timely fault diagnosis and warning, ensuring the normal operation of the battery management system and extending battery life.

CN117601654BActive Publication Date: 2026-11-17WANXIANG 123 CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311351083.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-18
Publication Date
2026-11-17
Estimated Expiration
2043-10-18

AI Technical Summary

Technical Problem

In existing technologies, the RTC clock timing function in the BMS cannot identify and diagnose faults in a timely manner, affecting the consistency and lifespan of battery cells, and also impacting vehicle emissions pollution.

Method used

A real-time clock online diagnostic method suitable for BMS is adopted, which uses the CAN communication module to send RTC clock fault information to the VCU vehicle controller, so as to realize timely fault identification and warning.

Benefits of technology

It enables failure monitoring and fault diagnosis of the RTC clock, ensuring the normal operation of the battery management system, extending battery life and reducing vehicle emissions pollution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117601654B_ABST
    Figure CN117601654B_ABST
Patent Text Reader

Abstract

This invention discloses a real-time clock online diagnostic method and system suitable for Battery Management Systems (BMS). Addressing issues such as rapid iteration cycles, poor versatility and scalability, insufficient test coverage, and difficulty in automation in communication module projects, this invention connects the BMS battery management system to an external Vehicle Control Unit (VCU). The MCU main controller in the BMS transmits fault diagnostic information to the VCU via a CAN communication module. The BMS includes an RTC real-time clock module, an online diagnostic module, and a SW system clock module. Using a real-time clock online diagnostic method suitable for BMS, the relationship between timing time T0 and system clock timing time T1 and RTC clock timing time T2 is determined. Existing fault information is sent to the vehicle controller via the CAN communication module, and the vehicle controller issues corresponding warning actions. This invention offers good versatility and scalability, a high degree of automation, and timely feedback.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of real-time clock technology for battery management systems, and specifically relates to a real-time clock online diagnostic method and system suitable for BMS. Background Technology

[0002] In existing technical solutions, the accuracy and reliability of real-time clock timing in battery management systems are mainly improved through optimized design of system modules and clock circuits. One approach is to transmit two clock signals to the control module, enabling the real-time clock to update effectively and accurately in real time. Another approach is to use two step-down circuits to power the clock module, ensuring its stable and normal operation.

[0003] The existing technical solutions mainly optimize the timing accuracy and stability of the RTC clock in the BMS. The drawback of the existing technical solutions is that they do not monitor and diagnose the failure of the RTC clock timing accuracy. If the RTC clock timing function has a hardware failure or control system failure that causes inaccurate timing, the fault needs to be identified in time and the vehicle's main control system needs to be notified for after-sales repair or replacement.

[0004] In the complex and ever-changing application environment of a vehicle, numerous interference factors are prone to occur. As a crucial power component, the battery's functional fault diagnosis of its components and modules is particularly important. Since the RTC clock plays a vital role in battery balancing and other functions during BMS sleep periods, a malfunction in the RTC clock leading to inaccurate timing will not only affect battery cell consistency over time but also shorten battery lifespan and impact vehicle emissions. Therefore, online fault diagnosis and monitoring of the RTC clock timing function in the BMS is essential.

[0005] Publication (Announcement) No.: CN209375679U, Publication (Announcement) Date: 2019-09-10 This patent relates to a real-time clock update system, including: a power supply module, a real-time clock module, a control module, an Ethernet interface module, and an instrument module. The real-time clock module and the control module are electrically connected to the power supply module. The real-time clock module, the Ethernet interface module, and the instrument module are communicatively connected to the control module. The Ethernet interface module is configured to communicate with an external terminal module. The power supply module outputs power to the real-time clock module and the control module. The Ethernet interface module receives first clock information from the external terminal module and transmits the first clock information to the control module. The instrument module provides second clock information to the control module. The control module transmits the first clock information and the second clock information to the real-time clock module. This patent does not include failure monitoring and fault diagnosis for the accuracy of the RTC clock. Summary of the Invention

[0006] The purpose of this invention is to solve the problems of fast iteration cycle, poor versatility and scalability, insufficient test coverage and difficulty in automation in the existing technology of communication module projects, and to provide a microservice-based automated testing system and method for communication modules with good versatility and scalability, high degree of automation and timely feedback. Another objective of this invention is to provide a real-time clock online diagnostic method suitable for BMS, enabling the transmission of fault information to the VCU vehicle controller via a CAN communication module, and prompting the vehicle controller to issue corresponding warning actions.

[0007] To achieve the above objectives, the present invention provides the following technical solution: a real-time clock online diagnostic method suitable for BMS, comprising the following steps: S1: BMS wake-up; S2: Initialize settings, set the timer T0; S3: Determine whether the RTC clock has reached the timing time T0. If not, return to S2. S4: Obtain the system clock timing time T1 and the RTC clock timing time T2; S5: RTC fault loop diagnosis, detects whether there is a fault in the RTC clock, and issues a fault reminder if a fault is found.

[0008] Preferably, step S2 includes resetting the RTC real-time clock, and the system clock starts timing simultaneously.

[0009] Preferably, the RTC fault diagnosis in step S5 includes: S51: Determine whether the enable condition for fault diagnosis is met. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step. S52: Determine whether the fault detection condition of the RTC clock is met. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step. S53: Determine if the number of consecutive fault detections has been reached. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step.

[0010] Preferably, the enabling conditions in step S51 include the system environment and mode being in normal working condition.

[0011] Preferably, step S52, determining whether the fault detection condition of the RTC clock is met, includes the following steps: A1: Determine if the system voltage, system communication, diagnostics, and mode are normal. If not, return to S5 to cycle through the diagnostics and re-enter the diagnostics. If yes, proceed to the next step. A2: Determine the relationship between the system clock timing time T1 and the RTC clock timing time T2: (|T2-T1| / T1)*100%>X, where X is the maximum reasonable error threshold of the RTC clock. If the judgment condition is met, then there is a fault; if the condition is not met, then there is no fault.

[0012] Preferably, the fault alert in step S5 includes: reporting the fault code and setting up the fault light indicator position and notifying the whole vehicle to turn on the fault light.

[0013] A real-time clock system for BMS includes a BMS battery management system and a vehicle controller. The BMS battery management system includes a CAN communication module and an MCU main controller. The BMS battery management system is connected to the vehicle controller through the CAN communication module.

[0014] Preferably, the BMS battery management system also includes an RTC real-time clock module, which is connected to the MCU main controller. The MCU main controller includes an online diagnostic module and an SW system clock module, and is connected to the vehicle controller via a CAN communication module.

[0015] Preferably, the RTC real-time clock module is an external clock module, including a crystal oscillator. The RTC real-time clock module is connected to the power supply through an auxiliary voltage regulator module. The MCU main control module is connected to the power supply through a step-down module. The vehicle controller includes a control unit.

[0016] Compared with the prior art, the beneficial effects of the present invention are: the present invention provides a new mechanism for failure monitoring and fault diagnosis of the RTC clock in the battery management system, and this design provides a reference solution for the application of fault diagnosis of the RTC clock in the battery management system in the automotive on-board diagnostic system. Attached Figure Description

[0017] Figure 1 This is a flowchart of the method of the present invention.

[0018] Figure 2 This is a system model diagram of the present invention.

[0019] Figure 3 This is a system module connection diagram of the present invention. Detailed Implementation

[0020] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments described herein are only some embodiments of the present invention, and not all embodiments. The accompanying drawings only show the parts related to this patent application and not all contents. The scope of protection of the present invention is not limited to the following embodiments.

[0021] like Figure 1 As shown, a real-time clock online diagnostic method suitable for BMS is described. The BMS battery management system is connected to an external VCU vehicle controller. The MCU main controller in the BMS battery management system transmits fault diagnosis information to the VCU vehicle controller via a CAN communication module. The BMS battery management system includes an RTC real-time clock module, an online diagnostic module, and an SW system clock module. Using this BMS-compatible real-time clock online diagnostic method, the relationship between timing time T0 and system clock timing time T1 and RTC clock timing time T2 is determined. Existing fault information is sent to the VCU vehicle controller via the CAN communication module. The VCU vehicle controller then issues corresponding warning actions, including the following steps:

[0022] S1: BMS wake-up.

[0023] S2: Initialize settings, reset the RTC real-time clock, and simultaneously start the system clock. Set the timer duration T0. Resetting the RTC real-time clock clears the timing data prior to the BMS battery management system wake-up and re-records the clock data to avoid system errors caused by past data in this fault diagnosis. The RTC real-time clock and system clock start timing from zero after the BMS battery management system wakes up.

[0024] S3: Determine if the RTC clock has reached the timing time T0. If not, return to S2.

[0025] S4: Get the system clock timing time T1 and RTC clock timing time T2.

[0026] S5: RTC fault loop diagnosis detects whether there is a fault in the RTC clock. If a fault is found, a fault code is reported, a fault light indicator is set, and the vehicle's fault light is illuminated. By repeatedly judging the enable conditions, fault detection conditions, and the number of fault detections, the various conditions and the comparison dataset capacity of the RTC fault diagnosis are kept in an appropriate diagnostic state, making the RTC fault diagnosis results more reliable and preventing the fault diagnosis from being affected by system problems or insufficient detected data. A large deviation between the RTC clock and the system clock in the vehicle battery management system will prevent the vehicle battery from performing equalization detection and charge calibration tasks on a regular basis during dormancy. In the long run, this will affect the consistency of battery cells, which is detrimental to battery life and normal use in the vehicle. Therefore, after the RTC fault diagnosis detects a fault, it reminds the driver and the vehicle control system to promptly start equalization detection and charge calibration tasks by reporting fault codes, setting a fault light indicator, and illuminating the vehicle's fault light. This can extend battery life and allow the vehicle to operate safely.

[0027] S51: Determine if the enabling conditions for fault diagnosis are met. Enabling conditions include the system environment and mode being in normal working condition. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step. When the system environment or mode is determined to be in an abnormal state, the system control center automatically checks the abnormal part and corrects it to normal working condition, so that the enabling conditions are met.

[0028] S52: Determine if the fault detection conditions of the RTC clock are met: A1: Determine if the system voltage, system communication, diagnostics, and mode are normal. If not, return to S5 to cycle through the diagnostics and re-enter the diagnostics. If yes, proceed to the next step. A2: Determine the relationship between the system clock timing time T1 and the RTC clock timing time T2: (|T2-T1| / T1)*100%>X, where X is the maximum reasonable error threshold of the RTC clock. If the judgment condition is met, a fault exists; if the condition is not met, no fault exists. The calculated comparison value of the system clock timing time T1 and the RTC clock timing time T2 is compared with the value of the maximum reasonable error threshold X. If the maximum reasonable error threshold X is exceeded, the system will report the information that a fault exists and issue a warning.

[0029] S53: Determine if the number of consecutive fault detections has been reached. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step.

[0030] After the BMS battery management system wakes up, the system enters the initialization phase. The system performs initialization settings, first resetting the RTC real-time clock and setting the timer T0. The system clock starts counting down at the same time. It is then determined whether the RTC real-time clock has reached the timer T0. If the timer T0 has not been reached, the RTC clock continues counting down. If the timer T0 has been reached, the system clock timer and the RTC timer at time T0 are obtained. The system clock timer is recorded as T1, and the RTC clock timer is recorded as T2.

[0031] The diagnostic process checks whether an RTC real-time clock fault has occurred and whether the enable conditions are met. If not, it returns to the loop detection, waits to enter the enable window, and the system self-repairs the system environment and mode to enable normal operation. If the conditions are met, it enters the fault detection window to check whether the detection conditions are met. If the detection conditions are not met, it re-enters the diagnostic process after the next BMS wake-up and performs detection, detects and repairs the unmet conditions, and returns to the diagnostic process. If the detection conditions are met, it waits to check whether the number of consecutive fault detections has been reached. If the number of consecutive fault detections has not been reached, it waits for the next fault detection, re-enters the diagnostic process, and performs detection. If the number of consecutive fault detections has been reached, the fault is confirmed and the corresponding fault action is executed.

[0032] The enable window conditions for RTC fault diagnosis mainly determine whether the system environment and mode are in normal working condition, and whether the system voltage, communication, and diagnostic mode are normal. If so, the detection condition judgment is entered, and it is determined whether the absolute value of the time difference between the RTC real-time clock T2 and the system clock T1 divided by the calculated value of the system clock timing time T1 multiplied by 100% exceeds the maximum reasonable error threshold X of the RTC clock. If it exceeds the maximum reasonable error threshold X of the RTC clock, the RTC real-time clock timing error is considered to be too large and there is a fault; if it does not exceed the maximum reasonable error threshold X of the RTC clock, the RTC is considered to be fault-free.

[0033] like Figure 2 As shown, a real-time clock system suitable for BMS includes a BMS battery management system and a VCU vehicle controller. The BMS battery management system includes a CAN communication module and an MCU main controller. The BMS battery management system is connected to the VCU vehicle controller via the CAN communication module. The MCU main controller can control the BMS battery management system to perform fault diagnosis. Through the CAN communication module, the BMS battery management system can transmit fault information to the vehicle controller in a timely manner for response.

[0034] The BMS (Battery Management System) also includes an RTC (Real-Time Clock) module, which connects to the MCU (Microcontroller Unit) main controller. The MCU main controller includes an online diagnostic module and a SW (System Clock) module. It connects to the VCU (Vehicle Control Unit) via a CAN communication module. The VCU includes control units, and the system clock is a software-provided timing indicator. Clock calculation is performed by embedded software. The system clock calculation and fault diagnosis mechanism operate within the MCU main controller, which communicates with the VCU via the CAN communication module. The MCU main controller transmits the judgment results and fault light flags to the VCU. The VCU control unit responds to the communication information, reports fault codes, and illuminates the fault light. The online diagnostic module controls the BMS to perform fault diagnosis. The timing data from the SW system real-time clock module is compared with the timing data from the RTC real-time clock. Through the CAN communication module, the fault information, if determined to be faulty, is transmitted to the vehicle controller for a response.

[0035] like Figure 3 As shown, the RTC real-time clock module (RTC clock module) is an external clock module, including a crystal oscillator. The crystal oscillator is used as the clock source for timing and transmits the wake-up signal to the MCU main controller (MCU main control module). The RTC clock module establishes I2C communication with the MCU main controller. The RTC clock module (RTC real-time clock) is connected to a 12V power supply through a 5V auxiliary voltage regulator module. The 12V power supply provides 5V voltage to the RTC clock module under the action of the 5V auxiliary voltage regulator module. The MCU main controller is connected to a 12V power supply through a 5V step-down module. The 12V power supply provides 12V power to the CAN communication module (CAN communication transceiver). The CAN communication module establishes CAN communication with the MCU main controller. The vehicle controller (vehicle control module) includes control units.

[0036] After system startup, the system settings are initialized. The RTC real-time clock module starts working under the 12V power supply powered by the 5V auxiliary voltage regulator module. A timing period T0 is set as needed, and it checks whether the RTC clock timing period T2 has reached the timing period T0. If not, the RTC clock continues timing, repeating the loop until the condition is met, i.e., T2 = T0. The system clock timing period T1 of the SW system clock module and the RTC clock timing period T2 of the RTC real-time clock module are obtained. The 12V power supply powers the MCU main controller under the action of the 5V step-down module. The MCU main controller starts the online diagnostic module to perform RTC fault loop diagnosis, sequentially checking whether the fault diagnosis enable condition, the RTC clock fault detection condition, and the number of consecutive fault detections all meet the requirements. The condition for determining whether the RTC clock fault detection condition is met includes the judgment formula (| If the condition T2-T1| / T1)*100%>X is met, the online diagnostic module will transmit the fault information to the vehicle controller via the CAN communication module. The control unit of the vehicle controller will then control the computer to report the fault code, and the corresponding fault indicator light at the fault location will illuminate.

[0037] This invention performs online monitoring and fault diagnosis of the RTC real-time clock by calculating the time deviation between the RTC real-time clock and the system clock. This enables the RTC real-time clock to respond promptly to failures or malfunctions, save fault information, and notify the vehicle controller's battery fault indicator, thus providing necessary protection for the normal operation of the BMS battery management system.

[0038] The foregoing has illustrated and described the technical solutions, principles, and advantages of the present invention. It should be noted that the present invention is not limited to the above embodiments, but only to some embodiments. Any improvements and additions made without departing from the spirit and scope of the present invention shall be considered within the scope of protection of the present invention.

Claims

1. A real-time clock online diagnostic method suitable for BMS, characterized in that, Includes the following steps: S1: BMS wake-up; S2: Initialize settings, set the timer T0; S3: Determine whether the RTC clock has reached the timing time T0. If not, return to S2. S4: Obtain the system clock timing time T1 and the RTC clock timing time T2; S5: RTC fault loop diagnosis, detects whether there is a fault in the RTC clock, and issues a fault reminder if a fault is found; Determine whether the absolute value of the time difference between the RTC real-time clock T2 and the system clock T1, divided by the calculated value of the system clock timing time T1 multiplied by 100%, exceeds the maximum reasonable error threshold X of the RTC clock. If it exceeds the maximum reasonable error threshold X of the RTC clock, the RTC real-time clock timing error is considered to be too large and there is a fault; if it does not exceed the maximum reasonable error threshold X of the RTC clock, the RTC is considered to be fault-free.

2. The online diagnosis method for real-time clock suitable for BMS according to claim 1, wherein, Step S2 includes resetting the RTC real-time clock, and the system clock starts timing simultaneously.

3. The online diagnosis method for real-time clock suitable for BMS according to claim 1, wherein, The RTC fault diagnosis in step S5 includes: S51: Determine whether the enable condition for fault diagnosis is met. If not, return to S5 for loop diagnosis and re-enter the diagnosis. If yes, proceed to the next step. When the system environment or mode is determined to be in an abnormal state, the system control center automatically checks the abnormal parts and corrects them to a normal working state, so that the enabling conditions are met. S52: Determine whether the fault detection condition of the RTC clock is met. If not, return to S5 for loop diagnosis. If yes, proceed to the next step. S53: Determine if the number of consecutive fault detections has been reached. If not, return to S5 for cyclic diagnosis. If yes, proceed to the next step.

4. The online diagnosis method for real-time clock suitable for BMS according to claim 3, wherein, The enabling conditions in step S51 include the system environment and mode being in normal working condition.

5. The online diagnosis method for real-time clock suitable for BMS according to claim 3, wherein, The step S52, determining whether the fault detection condition of the RTC clock is met, includes the following steps: A1: Determine if the system voltage, system communication, diagnostics, and mode are normal. If not, return to S5 to cycle through the diagnostics and re-enter the diagnostics. If yes, proceed to the next step. A2: Determine the relationship between the system clock timing time T1 and the RTC clock timing time T2: (|T2-T1| / T1)*100%>X, where X is the maximum reasonable error threshold of the RTC clock. If the judgment condition is met, then there is a fault; if the condition is not met, then there is no fault.

6. A real-time clock online diagnostic method suitable for BMS according to claim 3, 4, or 5, characterized in that, The fault alert in step S5 includes: reporting the fault code and setting up the fault light indicator and notifying the whole vehicle to turn on the fault light.

7. A real-time clock system suitable for a BMS, applicable to the online real-time clock diagnostic method for a BMS as described in any one of claims 1-5, characterized in that, It includes a BMS battery management system and a vehicle controller. The BMS battery management system includes a CAN communication module and an MCU main controller. The BMS battery management system is connected to the vehicle controller through the CAN communication module. The MCU main controller can control the BMS battery management system to perform fault diagnosis. Through the CAN communication module, the BMS battery management system can transmit fault information to the vehicle controller in a timely manner for response.

8. A real-time clock system suitable for BMS according to claim 7, characterized in that, The BMS battery management system also includes an RTC real-time clock module, which is connected to the MCU main controller. The MCU main controller includes an online diagnostic module and an SW system clock module, and is connected to the vehicle controller via a CAN communication module.

9. A real-time clock system suitable for BMS according to claim 8, characterized in that, The RTC real-time clock module is an external clock module, including a crystal oscillator. The RTC real-time clock module is connected to the power supply through an auxiliary voltage regulator module. The MCU main controller is connected to the power supply through a step-down module. The vehicle controller includes a control unit.

Citation Information

Patent Citations

  • Real-time clock updating system

    CN209375679U

  • Real-time clock synchronization circuit of battery management system and method thereof

    CN104410400A

  • RTC calibration method, vehicle-mounted terminal, user terminal and storage medium

    CN112506267A