BMS (Battery Management System) timed awakening method and device and vehicle

By using message information and vehicle management system in BMS to realize the timing wake-up function, the problems of high hardware costs and high risk of real-life vehicle testing in the prior art are solved, and a lower cost and safer BMS wake-up method is realized.

CN119781841AActive Publication Date: 2025-04-08CHERY AUTOMOBILE CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411831338.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-08
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

The existing BMS wake-up function is often implemented through complex wake-up circuits, which increases hardware costs and there are risks in actual vehicle testing.

Method used

The upper computer sends message information to the vehicle management system. The vehicle management system analyzes and extracts time data and synchronizes it to the timing wake-up unit. The timing wake-up function is executed under the HIL test situation, reducing the circuit complexity and moving the function to software implementation.

Benefits of technology

It reduces hardware costs, reduces the risk of real-life vehicle testing, and initially verifies the correctness of functions through HIL tests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119781841A_ABST
    Figure CN119781841A_ABST
Patent Text Reader

Abstract

The invention provides a BMS timing awakening method and device and a vehicle. The method comprises the steps that message information is sent to a vehicle management system through an upper computer; the vehicle management system receives the message information, analyzes the message information and extracts time data; wherein the message information is used for indicating whether the vehicle management system carries out an HIL test or not, and the vehicle management system comprises an HIL test code; the vehicle management system synchronizes the extracted time data to a timing wake-up unit; the timed wake-up unit comprises a timed wake-up code; and under the condition that the message information indicates the vehicle management system to carry out the HIL test, the timing awakening unit responds to the synchronized time data to execute a timing awakening function. According to the invention, the circuit complexity of the wake-up function is reduced, part of functions are realized by software, and the hardware cost is reduced; the HI test method not only reduces the possible risk of real vehicle test, but also can preliminarily verify the function correctness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of vehicle-related technologies, and in particular, relates to a BMS timed wake-up method, device and vehicle. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] Since the implementation of the sustainable development strategy, new energy technology has developed rapidly, and the market share of electric vehicles has continued to increase. As the core component of new energy vehicles, power batteries determine key performance of electric vehicles such as cruising range and vehicle energy consumption. The battery management system (BMS) is the key to ensuring the normal and efficient operation of power battery packs. Implementing BMS to wake up and detect its own status regularly can avoid potential risks. However, the existing wake-up function is often implemented through complex wake-up circuits, which increases hardware costs. Summary of the invention

[0004] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a BMS timed wake-up method, device and vehicle, which reduce the circuit complexity of the wake-up function, move some functions to software implementation, and reduce hardware costs; the HIL testing method not only reduces the possible risks of actual vehicle testing, but also can preliminarily verify the correctness of the function.

[0005] In order to achieve the above object, the present invention adopts the following technical solution:

[0006] In a first aspect, the present invention provides a BMS timed wake-up method, comprising:

[0007] Send message information to the vehicle management system through the host computer;

[0008] The vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the BMS performs a HIL test, and the BMS contains a HIL test code;

[0009] The vehicle management system synchronizes the extracted time data to a timed wake-up unit; the timed wake-up unit includes a timed wake-up code;

[0010] In the case where the message information instructs the vehicle management system to perform a HIL test, the timer wake-up unit performs a timer wake-up function in response to the synchronized time data.

[0011] In a second aspect, the present invention provides a BMS timed wake-up device, comprising:

[0012] The host computer is used to send message information to the vehicle management system;

[0013] The vehicle management system is used to receive and parse the message information sent by the host computer to extract the time data; wherein the message information is used to indicate whether the vehicle management system performs the HIL test, and the vehicle management system contains the HIL test code;

[0014] A timed wake-up unit is used to receive the time data extracted by the vehicle management system for synchronization; when the message information indicates that the vehicle management system performs HIL testing, the timed wake-up function is executed in response to the synchronized time data; wherein the timed wake-up unit contains a timed wake-up code.

[0015] In a third aspect, the present invention provides a vehicle that executes the above-mentioned BMS timed wake-up method.

[0016] One or more of the above technical solutions have the following beneficial effects:

[0017] The present invention sends message information to the vehicle management system through the host computer; the vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the vehicle management system performs HIL testing, and the vehicle management system contains HIL testing code; the vehicle management system synchronizes the extracted time data to a timed wake-up unit; the timed wake-up unit contains a timed wake-up code; when the message information indicates that the vehicle management system performs HIL testing, the timed wake-up unit executes the timed wake-up function in response to the synchronized time data. The present invention reduces the circuit complexity of the wake-up function, moves some functions to software implementation, and reduces hardware costs; the HIL testing method not only reduces the risks that may exist in actual vehicle testing, but also can preliminarily verify the correctness of the function.

[0018] Advantages of additional aspects of the present invention will be given in part in the following description, and in part will become obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0020] Figure 1 The present invention is a flowchart of a BMS timed wake-up method in the first embodiment of the present invention. DETAILED DESCRIPTION

[0021] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0022] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.

[0023] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0024] The conventional vehicle charging method is that the charging equipment, such as the charging pile, sends a BMS wake-up signal to the electric vehicle through its dedicated signal cable to wake up the BMS. In addition, a low-voltage power supply (such as a 12V low-voltage power supply) is also provided in the charging equipment. After the BMS is awakened, the low-voltage power supply is controlled to supply power to the BMS through the above-mentioned signal cable, so that the BMS can normally monitor the charging status of the power battery during the vehicle charging process. However, the existing wake-up function is often implemented through a complex wake-up circuit, which increases the hardware cost.

[0025] This application sends message information to the vehicle management system through the host computer; the vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the vehicle management system performs HIL testing, and the vehicle management system contains HIL test code; the vehicle management system synchronizes the extracted time data to the timed wake-up unit; the timed wake-up unit contains a timed wake-up code; when the message information indicates that the vehicle management system performs HIL testing, the timed wake-up unit executes the timed wake-up function in response to the synchronized time data. This application reduces the circuit complexity of the wake-up function, moves some functions to software implementation, and reduces hardware costs; the HIL test method not only reduces the risks that may exist in actual vehicle testing, but also can preliminarily verify the correctness of the function.

[0026] This embodiment discloses a BMS timed wake-up method, including:

[0027] Send message information to the vehicle management system through the host computer;

[0028] The vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the BMS performs a HIL test, and the BMS contains a HIL test code;

[0029] The vehicle management system synchronizes the extracted time data to a timed wake-up unit; the timed wake-up unit includes a timed wake-up code;

[0030] In the case where the message information instructs the BMS to perform a HIL test, the timer wake-up unit performs a timer wake-up function in response to the synchronized time data.

[0031] In some embodiments, when the CAN interface of the vehicle management system receives new CAN message information, the vehicle CAN message reception interrupt function is triggered, and a message is read from the CAN bus. When new data is read, the message ID is checked.

[0032] In some embodiments, the vehicle management system calls the vehicle CAN message receiving interrupt function and the semaphore mapping function to process the message information, and maps the message information to the global variable through the semaphore mapping function.

[0033] In some embodiments, in the vehicle management system, the polling calibration time function is periodically called in the main loop to check whether the message information is received. If the message information is received, the time data is packaged into an array, and the rtc_can_communicate_x function is called to send the time data to the timing wake-up unit to complete time synchronization.

[0034] In some embodiments, in the vehicle management system, the polling calibration time function is used to check whether the message information received this time is the same as the last time. If they are the same, the message information received this time is reset to 0, indicating that the time data does not need to be sent again.

[0035] In some embodiments, the timed wake-up function of the timed wake-up unit is set through a timed wake-up interface function to perform corresponding operations at a corresponding time.

[0036] In some embodiments, the timer wake-up interface function sets the time increment to increase by 1 hour every hour, and calls the rtc_can_communicate_x function to set the timer wake-up function of the timer wake-up unit.

[0037] In some embodiments, the message information includes a message ID and a data field; wherein the data field contains time data.

[0038] like Figure 1 As shown, Figure 1 A flow chart of a BMS timed wake-up method provided in this embodiment specifically includes:

[0039] Send message information to the vehicle management system through the host computer;

[0040] The vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the BMS performs a HIL test, and the BMS contains a HIL test code;

[0041] The vehicle management system synchronizes the extracted time data to a timed wake-up unit; the timed wake-up unit includes a timed wake-up code;

[0042] In the case where the message information instructs the BMS to perform a HIL test, the timer wake-up unit performs a timer wake-up function in response to the synchronized time data.

[0043] In this embodiment, the timing wake-up unit is specifically an RTC chip, and the MCP7940N chip is selected to meet the automotive grade safety standards and has the advantages of low power consumption. The backup power supply is only: 925nA, 3.0V;

[0044] Configure the MFP pin of the MCP7940N chip as an alarm output, in low-level mode, connect the inversion circuit to the TLF35584Wak pin of the power chip recommended by Infineon, and the power chip wakes up the main control chip.

[0045] Design the initialization time calibration message, with id 0x585, using Intel encoding format, and define the RTC calibration enable bit, time data year, time data month, time data day, time data hour, time data minute, time data second, and time data week semaphores.

[0046] This embodiment adopts four functions, namely, receiving messages, parsing messages, time synchronization, periodic checking and timed wake-up.

[0047] The following is a detailed description of the four functions used:

[0048] Semaphore mapping function Rev_PCRTC(void): refers to mapping the time data received from the CAN bus to global variables, which represent different time units, such as year, month, day, hour, minute, second and week. The semaphore mapping function extracts the time data from the gs_CAN_RvData.data_CAN1Rx array and stores it in the corresponding field of the gs_CAN_Apply structure.

[0049] The vehicle CAN message receiving interrupt function CAN_Rev_Isr1_Handler (void): This function is the interrupt service routine (ISR) for CAN message reception. It first tries to read a message from the CAN bus. If new data is received, it checks whether the message ID is 0x585, which is the ID of the RTC (real-time clock) message; if it is an RTC message, it stores the data in the data_interupt_Msg1 array, and calls the CAN_RX_interrupt function and the Rev_PCRTC function to process the data, and adds 1 to the gs_CAN_Apply.ub_RTC_Data counter; finally, it clears the status flag of the CAN message object, indicating that the message has been processed.

[0050] Polling calibration time function PollingCal(void): This function is called periodically in the main function core0_main to check whether the RTC message has been received. If the RTC message has been received (gs_CAN_Apply.ub_RTC_Flg is 1), it will pack the time data into the add_time.recvbuf1 array and call the rtc_can_communicate_x function to send the time data to the RTC chip. It also checks whether gs_CAN_Apply.ub_RTC_Data is the same as the previous value. If it is the same, it resets gs_CAN_Apply.ub_RTC_Flg to 0, indicating that the time data does not need to be sent again.

[0051] Scheduled wakeup interface function WakeupAPI(void): This function is used to set the scheduled wakeup. It sets the time increment to 1 hour per hour and calls the rtc_can_communicate_x function to set the scheduled wakeup function of the RTC chip.

[0052] When performing HIL testing in the vehicle management system, the semaphore mapping function Rev_PCRTC(void), the vehicle CAN message receiving interrupt function CAN_Rev_Isr1_Handler(void), the polling calibration time function PollingCal(void) and the timed wake-up interface function WakeupAPI(void) are respectively receiving messages, parsing messages, time synchronization, periodic checking and timed wake-up.

[0053] The entire message reception and processing can be divided into five parts: CAN message reception interrupt processing, message ID check, time data extraction and mapping, polling check and time synchronization, and timed wake-up setting.

[0054] Specifically, receiving a message: the vehicle management system receives a time data message sent by the host computer through the CAN bus.

[0055] Parsing messages: The vehicle management system parses these messages through the CAN_Rev_Isr1_Handler function and extracts the time data.

[0056] Time synchronization: The vehicle management system maps the parsed time data to global variables through the Rev_PCRTC function.

[0057] Periodic check: The vehicle management system periodically checks whether new time data has been received through the PollingCal function and synchronizes it to the RTC chip.

[0058] Scheduled wake-up: Set the scheduled wake-up function of the RTC chip through the WakeupAPI function to perform certain operations at a specific time.

[0059] In this embodiment, the message content includes:

[0060] 0x585: Message ID, indicating that this is an RTC message.

[0061] Data field: contains time data, such as year (01), month (17), day (0A), hour (1E), minute (0F), second (00), and day of the week (01).

[0062] The time data is as follows:

[0063] Year: The first byte of the message, for example, 0x01 represents 2023;

[0064] Month: The second byte of the message, for example, 0x17 represents October;

[0065] Day: The third byte of the message, for example, 0x0A means the 10th;

[0066] Hour: The fourth byte of the message, for example, 0x1E represents 30 (hexadecimal) hours;

[0067] Minute: The fifth byte of the message, for example, 0x0F means 15 minutes;

[0068] Second: The sixth byte of the message. For example, 0x00 represents 0 seconds.

[0069] For example, when starting the HIL test, the host computer sends a message. For example, if the initial time is calibrated to 15:0:00 on October 30, 2023, Monday, the corresponding CAN data is 01 170A 1E 0F 00 00 01. After receiving the data, the main control chip writes it into the RTC chip register to complete the time initialization.

[0070] The following is a detailed description of the entire message reception and processing process:

[0071] 1. CAN message reception interrupt processing:

[0072] (1) When the CAN interface of the BMS receives a new CAN message, the CAN_Rev_Isr1_Handler function is triggered.

[0073] The CAN_Rev_Isr1_Handler function first tries to read a message from the CAN bus, using the IfxMultican_Can_MsgObj_readMessage function.

[0074] (2) If new data is read (IfxMultican_Status_newData flag is set), the message ID (rxMsgRx1.id) is checked.

[0075] 2. Message ID check:

[0076] If the message ID is 0x585, it means this is an RTC time synchronization message. This ID corresponds to case 0x585 in the code.

[0077] 3. Time data extraction and mapping:

[0078] (1) For RTC messages, the data_interupt_Msg1 array stores the data field of the message, and then calls the CAN_RX_interrupt function and the Rev_PCRTC function to further process the data.

[0079] (2) The Rev_PCRTC function maps these data to the global variables gs_CAN_Apply, which represent different time units, such as year, month, day, hour, minute, second and week.

[0080] 4. Polling check and time synchronization

[0081] (1) The PollingCal function is called periodically in the main loop to check whether the RTC message has been received (via the gs_CAN_Apply.ub_RTC_Flg flag).

[0082] (2) If an RTC message is received, it will pack the time data into the add_time.recvbuf1 array and call the rtc_can_communicate_x function to send the time data to the RTC chip to complete the time synchronization.

[0083] 5. Scheduled wake-up settings

[0084] The WakeupAPI function is used to set the timer wake-up function of the RTC chip so that some operations can be performed at a specific time. This function sets the time increment so that the RTC chip wakes up once every hour.

[0085] The test process in this embodiment is specifically as follows:

[0086] Initialization: BMS initializes the CAN interface and prepares to receive messages.

[0087] Receiving messages: BMS receives RTC messages sent by the host computer through the CAN interface.

[0088] Parsing message: CAN_Rev_Isr1_Handler function parses the message and extracts the time data.

[0089] Time synchronization: The Rev_PCRTC function maps time data to global variables, and the PollingCal function synchronizes this data to the RTC chip.

[0090] Timed wake-up: The WakeupAPI function sets the timed wake-up function of the RTC chip to perform testing or monitoring operations at a specific time.

[0091] Through the above steps, the BMS can receive and process the time data sent by the host computer, and synchronize these data to the RTC chip to ensure that the BMS time is accurate.

[0092] This embodiment provides a BMS timed wake-up device, including:

[0093] The host computer is used to send message information to the vehicle management system;

[0094] The vehicle management system is used to receive and parse the message information sent by the host computer to extract time data; wherein the message information is used to indicate whether the BMS performs a HIL test, and the BMS contains a HIL test code;

[0095] A timed wake-up unit is used to receive the time data extracted by the vehicle management system for synchronization; when the message information indicates that the BMS performs HIL testing, the timed wake-up function is executed in response to the synchronized time data; wherein the timed wake-up unit contains a timed wake-up code.

[0096] This embodiment also provides a vehicle that executes the above-mentioned BMS timed wake-up method.

[0097] The computer program code for implementing the method of the present invention can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by the computer or other programmable data processing device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.

[0098] In the context of the present invention, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, etc. Examples of signals may include electrical, optical, radio, acoustic or other forms of propagation signals, such as carrier waves, infrared signals, etc.

[0099] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with this embodiment can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0100] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A BMS timed wake-up method, characterized in that: include: Send message information to the vehicle management system through the host computer; The vehicle management system receives the message information and parses it to extract time data; wherein the message information is used to indicate whether the vehicle management system performs a HIL test, and the vehicle management system includes a HIL test code; The vehicle management system synchronizes the extracted time data to a timed wake-up unit; the timed wake-up unit includes a timed wake-up code; In the case where the message information instructs the vehicle management system to perform a HIL test, the timer wake-up unit performs a timer wake-up function in response to the synchronized time data.

2. A BMS timed wake-up method as claimed in claim 1, characterized in that: When the CAN interface of the vehicle management system receives new CAN message information, the vehicle CAN message receiving interrupt function is triggered, and a message is read from the CAN bus. When new data is read, the message ID is checked.

3. A BMS timed wake-up method as claimed in claim 1, characterized in that: The vehicle management system calls the vehicle CAN message receiving interrupt function and the semaphore mapping function to process the message information, and maps the message information to the global variable through the semaphore mapping function.

4. A BMS timed wake-up method as claimed in claim 1, characterized in that: In the vehicle management system, the polling calibration time function is periodically called in the main loop to check whether the message information is received. If the message information is received, the time data is packaged into an array, and the rtc_can_communicate_x function is called to send the time data to the timing wake-up unit to complete time synchronization.

5. A BMS timed wake-up method as claimed in claim 4, characterized in that: In the vehicle management system, the polling calibration time function is used to check whether the message information received this time is the same as the last time. If they are the same, the message information received this time is reset to 0, indicating that the time data does not need to be sent again.

6. A BMS timed wake-up method as claimed in claim 1, characterized in that: The timed wake-up function of the timed wake-up unit is set through the timed wake-up interface function to perform corresponding operations at the corresponding time.

7. A BMS timed wake-up method as claimed in claim 6, characterized in that: The timed wake-up interface function sets the time increment to increase by 1 hour every hour, and calls the rtc_can_communicate_x function to set the timed wake-up function of the timed wake-up unit.

8. A BMS timed wake-up method as claimed in claim 1, characterized in that: The message information includes a message ID and a data field; wherein the data field contains time data.

9. A BMS timer wake-up device, characterized in that: include: The host computer is used to send message information to the vehicle management system; The vehicle management system is used to receive and parse the message information sent by the host computer to extract the time data; wherein the message information is used to indicate whether the vehicle management system performs the HIL test, and the vehicle management system contains the HIL test code; A timed wake-up unit is used to receive the time data extracted by the vehicle management system for synchronization; when the message information indicates that the vehicle management system performs HIL testing, the timed wake-up function is executed in response to the synchronized time data; wherein the timed wake-up unit contains a timed wake-up code.

10. A vehicle, characterized in that: Execute a BMS timed wake-up method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Automatic diagnosis method and device for battery management system

    CN117110733A

  • Communication state control method, battery management system, vehicle, and storage medium

    CN117841677A

  • Vehicle electronic component dormancy wake-up detection system and test platform

    CN117850400A

  • Vehicle BMS awakening control method and device

    CN118560343A

  • Far-end operation test method, device and equipment and storage medium

    CN118585442A