Interrupt test method, system and equipment of battery management system and medium

By simulating test data from different driving scenarios, building a simulation test environment, testing the on-board operating system's ability to handle battery management system interrupts, solving the problem of insufficient processing capabilities of the on-board operating system and improving system stability and troubleshooting efficiency.

CN120066003AInactive Publication Date: 2025-05-30CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510536857.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-27
Publication Date
2025-05-30
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The in-vehicle operating system's insufficient ability to handle battery management system interrupts, resulting in limited vehicle operating system stability and troubleshooting time.

Method used

By simulating test data of different driving speeds, road conditions and external environment interference, a simulation test environment is built, the on-board operating system's handling ability of battery management system interrupts is tested, and the actual processing results are verified through preset processing results.

Benefits of technology

It improves the comprehensiveness of the on-board operating system's handling of battery management system interrupts and tests, shortens the troubleshooting time, and enhances the stability of the vehicle operating system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120066003A_ABST
    Figure CN120066003A_ABST
Patent Text Reader

Abstract

The invention provides an interruption test method, system and device for a battery management system and a medium, and relates to the technical field of testing. The method comprises the following steps: acquiring an interrupt signal of test data of the battery management system, wherein the test data comprises vehicle data acquired by a sensor in a simulated vehicle driving process; processing an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; according to the first processing result and a preset second processing result corresponding to the interrupt signal, an interrupt test result of the vehicle-mounted operating system is determined, and the interrupt test result is used for reflecting the interrupt processing capacity of the vehicle-mounted operating system on the battery management system. Therefore, the processing capability of the vehicle-mounted operating system on the interruption of the battery management system can be comprehensively tested to test whether the interruption of the vehicle-mounted operating system on the battery management system under any condition can be processed according to expectations, so that the processing capability of the vehicle-mounted operating system on the interruption of the battery management system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of testing technologies, and in particular, to an interrupt testing method, system, device, and medium. Background Art

[0002] The Battery Management System (BMS) is an important part of new energy vehicles and a key component for ensuring the safe and efficient operation of the batteries in new energy vehicles. Among them, BMS interruption refers to the phenomenon that the BMS suddenly stops working or fails to perform tasks normally during operation due to the occurrence of external or internal events. Common interruptions in BMS systems include power supply anomalies, wiring harness problems, battery current data errors, excessive battery temperature differences, insulation monitoring alarms, and other phenomena. Since BMS interruption will affect the use of in-vehicle operating systems, how to improve the processing ability of in-vehicle operating systems for BMS interruption has become a topic of concern. Summary of the Invention

[0003] In view of the above problems, this application provides an interrupt testing method, device, equipment, medium, and program product for a battery management system, which can solve the technical problem of poor processing ability of in-vehicle operating systems for BMS interruption.

[0004] In a first aspect, an embodiment of this application provides an interrupt testing method for a battery management system. The method includes: Obtaining an interrupt signal of test data of the battery management system, where the test data includes vehicle data simulated to be collected by sensors during vehicle driving; Processing an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; Determining an interrupt test result of the in-vehicle operating system according to the first processing result and a preset second processing result corresponding to the interrupt signal, where the interrupt test result is used to reflect the processing ability of the in-vehicle operating system for the battery management system interruption.

[0005] In the above solution, the test data of various interrupt scenarios related to the battery management system can be used to cover the actual situations of various interrupt scenarios related to the battery management system, realizing repeated tests and analyzing the processing ability of the in-vehicle operating system for battery management system interruption. While improving the test flexibility, by comparing the first processing result and the second processing result, it can be determined whether the in-vehicle operating system has the processing ability for battery management system interruption, which can improve the processing ability of the battery management system for battery management system interruption and the comprehensiveness of the test.

[0006] In some embodiments, the test data includes at least one of the following: vehicle speed test data, road condition test data, and external environment interference test data; The vehicle speed test data includes at least one driving speed interval, and the driving speed interval includes at least one driving speed value; The road condition test data includes at least one driving road condition data; The external environment interference test data includes at least one of the following: electromagnetic data of the driving environment where the vehicle is located, electrical noise of the vehicle, and meteorological factor data.

[0007] In the above solution, by simulating the test data corresponding to different driving speeds, road conditions, and external environment interferences, a comprehensive test of the processing ability of the in-vehicle operating system for the interruption of the battery management system can be realized, so as to test whether the in-vehicle operating system processes the interruption of the battery management system in any situation according to the processing expectation, ensure the normal operation of the battery management system, and further ensure the stability of the in-vehicle operating system.

[0008] In some embodiments, the interruption scenarios include at least one of the following: battery failure interruption event, data anomaly interruption event; Among them, the battery failure interruption event includes the scenario where the battery management system is interrupted due to a battery failure; the data anomaly interruption event includes the scenario where the battery management system is interrupted due to abnormal working condition data collected by sensors.

[0009] In the above solution, through multiple types of interruption events, the actual situations of various interruption events that may occur in the battery management system are covered, so as to test whether the in-vehicle operating system processes the interruption of the battery management system in any situation according to the processing expectation, ensure the normal operation of the battery management system, and further ensure the stability of the in-vehicle operating system.

[0010] In some embodiments, the method may further include: In the case where the first processing result matches the second processing result, it is determined that the in-vehicle operating system has the processing ability for the interruption of the battery management system.

[0011] In the above solution, the first processing result of the in-vehicle operating system for processing the interruption event can be verified through the preset second processing result of the in-vehicle operating system for processing the interruption event, so as to realize the analysis of the processing result, which is beneficial to accurately analyzing the processing situation of the in-vehicle operating system for the interruption of the battery management system and improving the accuracy of determining the processing ability of the in-vehicle operating system for the interruption of the battery management system.

[0012] In some embodiments, the first processing result includes the processing action of the interrupt event and the execution result of the interrupt event, and the second processing result includes the preset processing action of the interrupt event and the preset execution result of the interrupt event. Based on this, the method described above may further include: Matching the execution result of the interrupt event with the preset execution result to obtain a first matching result; When the first matching result indicates that the execution result matches the preset execution result, matching the processing action of the interrupt event with the preset processing action to obtain a second matching result; When the second matching result indicates that the execution result matches the preset processing action, determining that the first processing result matches the second processing result.

[0013] In the above solution, the ability of the in-vehicle operating system to process interrupt events can be verified respectively through the execution result and the processing action of the interrupt event, that is, first verify the execution result of the interrupt event. When the execution result of the interrupt event meets the test expectation, it is inferred whether the processing action conforms to the verification expectation, the test expectation. When the processing action also meets the test expectation, it is determined that the first processing result and the second processing result match, thereby completing the test, which is beneficial to accurately analyze the processing situation of the in-vehicle operating system for the interrupt of the battery management system and improve the accuracy of determining the processing ability of the in-vehicle operating system for the interrupt of the battery management system.

[0014] In some embodiments, the step of "matching the processing action of the interrupt event with the preset processing action to obtain a second matching result" may specifically include: Matching the action type of the processing action of the interrupt event with the action type of the preset processing action to obtain action type similarity information; Matching the number of actions of the processing action of the interrupt event with the number of actions of the preset processing action to obtain action number similarity information; Matching the action sequence of the processing action of the interrupt event with the action sequence of the preset processing action to obtain action sequence similarity information; Performing a weighted sum on the action type similarity information, the action number similarity information, and the action sequence similarity information to obtain the second matching result.

[0015] In the above solution, the attributes of the processing actions for refined matching, namely the action type, action quantity, and action sequence, can be considered for different dimensions to determine the second matching result. According to the situation of the vehicle-mounted operating system handling interruption events under the attributes of different processing actions, it is possible to comprehensively and thoroughly verify whether the vehicle-mounted operating system can pass the interruption test, which is conducive to accurately analyzing the handling situation of the battery management system for the interruption of the battery management system and improving the accuracy of determining the handling ability of the battery management system for the interruption of the battery management system.

[0016] In some embodiments, the method may further include: Obtain the process detection data of the processing actions of the interruption event; wherein, the process detection data includes at least one of the following: the response duration for responding to the interruption signal, the logical analysis speed of the vehicle-mounted operating system for the interruption event, the analysis depth and analysis logic of the vehicle-mounted operating system for the interruption event nesting; When the process detection data meets the preset test requirements, determine that the vehicle-mounted operating system has the ability to handle the battery management system interruption.

[0017] In the above solution, through the detection of the vehicle-mounted operating system handling interruption events, the process detection data of the vehicle-mounted operating system handling interruption events is obtained, and its process detection data is analyzed to obtain the situation of the vehicle-mounted operating system handling interruption events at different processing stages, which is conducive to accurately analyzing the handling situation of the vehicle-mounted operating system for the interruption of the battery management system and improving the accuracy of determining the handling ability of the vehicle-mounted operating system for the interruption of the battery management system.

[0018] In some embodiments, the method may further include: According to each item of process detection data, obtain the preset test requirements corresponding to each item of process detection data; When each item of process detection data meets the preset test requirements corresponding to each item of process detection data, determine that the process detection data meets the preset test requirement information.

[0019] In the above solution, different test requirements can be set for different dimensions, and according to the situation of the vehicle-mounted operating system handling interruption events under different dimensions, it is possible to comprehensively and thoroughly verify whether the vehicle-mounted operating system can pass the interruption test, which is conducive to accurately analyzing the handling situation of the battery management system for the interruption of the battery management system and improving the accuracy of determining the handling ability of the battery management system for the interruption of the battery management system.

[0020] In some embodiments, before the step of "obtaining the interruption signal of the test data of the battery management system" involved above, the interruption test method may further include: When the running duration of the in-vehicle operating system is greater than or equal to a preset duration, obtain an interrupt signal of the test data of the battery management system.

[0021] In the above solution, it is possible to test the processing ability of the in-vehicle operating system for interrupt events when the in-vehicle operating system runs for a long time, so as to ensure the stability of the in-vehicle operating system and ensure that there are no problems such as interrupt loss and processing errors when the in-vehicle operating system processes interrupt events of the battery management system.

[0022] In a second aspect, an embodiment of the present application provides an interrupt test device for an in-vehicle operation battery management system, including: An acquisition module, configured to acquire an interrupt signal of test data of the battery management system, where the test data includes vehicle data simulated by sensors during vehicle driving; A processing module, configured to process an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; A determination module, configured to determine an interrupt test result of the in-vehicle operating system according to the first processing result and a preset second processing result corresponding to the interrupt signal, where the interrupt test result is used to reflect the processing ability of the in-vehicle operating system for the battery management system interrupt.

[0023] In the above solution, the actual situations of various interrupt scenarios related to the battery management system can be covered by test data of multiple interrupt scenarios related to the battery management system, realizing repeated tests and analysis of the processing ability of the in-vehicle operating system for battery management system interrupts. While improving the test flexibility, by comparing the first processing result and the second processing result, it can be determined whether the in-vehicle operating system has the processing ability for battery management system interrupts, which can improve the processing ability of the battery management system for battery management system interrupts and the comprehensiveness of the test.

[0024] In a third aspect, the present application provides a computer device, which includes a processor and a memory storing computer program instructions. When the processor executes the computer program instructions, it implements the interrupt test method for the battery management system as in the first aspect.

[0025] In a fourth aspect, the present application provides a readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, they implement the interrupt test method for the battery management system as in the first aspect.

[0026] In a fifth aspect, the present application provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is caused to execute the interrupt test method for the battery management system as in the first aspect.

[0027] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application, it can be implemented according to the content of the specification. And in order to make the above and other purposes, features and advantages of this application more obvious and understandable, the specific embodiments of this application are specifically exemplified below. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of this application, the following will briefly introduce the drawings required to be used in the embodiments of this application. Obviously, the drawings described below are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0029] Figure 1 It is a schematic structural diagram of an interrupt test system according to an embodiment of this application; Figure 2 It is a flowchart of an interrupt test method for a battery management system according to an embodiment of this application; Figure 3 It is a schematic diagram related to testing the processing ability of an in-vehicle operating system for interrupts of a battery management system in an interrupt test method for a battery management system according to an embodiment of this application; Figure 4 It is a schematic structural diagram of an interrupt test device for a battery management system provided by some embodiments of this application; Figure 5 It is a schematic hardware structure diagram of a computer device provided by some embodiments of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0030] The following will describe in detail the embodiments of the technical solutions of this application with reference to the drawings. The following embodiments are only used to more clearly illustrate the technical solutions of this application, so they are only examples and cannot be used to limit the protection scope of this application.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification and claims of this application and the above description of the drawings are intended to cover non-exclusive inclusion.

[0032] In the description of the embodiments of this application, technical terms such as "first" and "second" are only used to distinguish different objects and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity, specific order or primary-secondary relationship of the indicated technical features. In the description of the embodiments of this application, "a plurality" means more than two unless otherwise specifically defined.

[0033] Reference to "embodiment" in this document means that the specific features, structures or characteristics described in connection with the embodiment may be included in at least one embodiment of the present application. The phrase appears at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0034] Without special instructions, all embodiments and optional embodiments of the present application may be combined with each other to form new technical solutions.

[0035] Without special instructions, all technical features and optional technical features of the present application may be combined with each other to form new technical solutions.

[0036] Without special instructions, all steps of the present application may be carried out in sequence or randomly, preferably in sequence. For example, the method includes steps (a) and (b), which means that the method may include steps (a) and (b) carried out in sequence, or may also include steps (b) and (a) carried out in sequence. For example, it is mentioned that the method may further include step (c), which means that step (c) may be added to the method in any order. For example, the method may include steps (a), (b) and (c), or may also include steps (a), (c) and (b), or may also include steps (c), (a) and (b), etc.

[0037] In the description of the embodiments of the present application, the term "and / or" is merely a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally represents an "or" relationship between the associated objects before and after.

[0038] In the description of the embodiments of the present application, the term "plurality" refers to two or more (including two). Similarly, "multiple groups" refers to two or more groups (including two groups), and "multiple pieces" refers to two or more pieces (including two pieces).

[0039] In the description of the embodiments of the present application, the orientation or positional relationship indicated by technical terms such as "center", "longitudinal", "transverse", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the embodiments of the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the embodiments of the present application.

[0040] In the description of the embodiments of the present application, unless otherwise clearly defined and limited, technical terms such as "installation", "connection", "connection", "fixation", etc. should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or integrated; it can also be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific circumstances.

[0041] In the related art, the BMS interruption will cause various problems in the vehicle operating system, such as the vehicle operating system being unable to process tasks normally, communication interruption, etc. Usually, when the above problems occur in the vehicle operating system, warning icons related to all faults of the vehicle operating system will be displayed on the vehicle's display screen, and the user will be prompted to check each phenomenon corresponding to the warning icon one by one. However, the above method not only cannot narrow down the fault range, but also requires manual participation, which will not only increase the fault troubleshooting time but also waste human resources. Therefore, how to improve the processing ability of the vehicle operating system for BMS interruption, shorten the fault troubleshooting time, and eliminate the need for manual participation has become a topic of concern.

[0042] Based on this, for the problem of how to improve the processing ability of the vehicle operating system for BMS interruption, the embodiments of the present application can build a simulation test environment in the virtual machine to simulate the vehicle's operating system, sensors, and battery management system, enabling testing in a virtual environment, avoiding potential safety risks and actual losses, and the simulation test environment can be established at any time in the virtual machine, and test data related to interruption events of the battery management system that can be adjusted at any time can be obtained, so as to cover the actual situations of various interruption events related to the battery management system through the test data, realize repeated testing multiple times, and analyze the processing ability of the vehicle operating system for battery management system interruption, improving the test flexibility while also improving the processing ability of the battery management system for interruptions of the battery management system and the comprehensiveness of the test.

[0043] Based on this, in order to better describe the interruption test method, device, computer device, storage medium, and computer program product of the battery management system provided by the embodiments of the present application, the following will be combined with the attached Figures 1 to 5 to be described in detail. It should be noted that these embodiments are not used to limit the scope of the present disclosure.

[0044] First, in combination with Figure 1 the interruption test system provided by the embodiments of the present application will be described in detail.

[0045] As Figure 1As shown, the interrupt test system 10 can be configured in a computer device, and can be an interrupt test system configured in a virtual machine of a vehicle operating system. The interrupt test system 10 may include an analog simulation system 101, a test system 102, and a result analysis system 103.

[0046] Specifically, the analog simulation system 101 is used to construct a virtual machine and establish a simulation test environment in the virtual machine. The simulation test environment includes a vehicle operating system, simulation sensors corresponding to the vehicle's sensors, a simulation battery management system corresponding to the vehicle's battery management system, and test data of interrupt events related to the simulation battery management system.

[0047] Among them, the virtual machine can be constructed based on the virtual machine emulator in the embodiments of the present application. Among them, the virtual machine emulator can be a Quick Emulator (QEMU), which is an open-source virtual machine emulator. QEMU allows multiple virtual machines to run simultaneously on a physical host and provides management and control capabilities for these virtual machines. QEMU can be used to establish a simulation test scenario in the virtual machine.

[0048] Specifically, QEMU can establish the following in the virtual machine: multiple processor architectures, such as a processor architecture based on Reduced Instruction Set Computer (RISC) (Advanced RISC Machine, ARM), a computer language instruction set executed by a microprocessor (x86), a Reduced Instruction Set Computer (MIPS), etc.; multiple types of hardware devices, such as serial ports, Liquid Crystal Displays (LCDs), network cards, Universal Serial Buses (USBs), Secure Digital Cards (SD cards), Electronic Control Units (ECUs), sensors, etc.; and various operating systems running on its hardware devices, such as: Linux, Windows, macOS, a vehicle operating system (CATL Electronics OS, CEOS), etc.

[0049] The vehicle operating system in the embodiments of the present application is an operating system that conforms to the Automotive Open System Architecture (AUTOSAR) standard and is an operating system corresponding to the BMS. The vehicle operating system can be a system running on an electronic control unit installed in a vehicle.

[0050] The simulation electronic control unit in the embodiments of this application refers to a software and hardware integrated system used to test and verify the performance of the electronic control unit and the on-vehicle operating system in a vehicle. The ECU is a key electronic control component in measurement, used to detect and manage various systems of the vehicle, such as the on-vehicle operating system and the BMS.

[0051] The battery management system in the embodiments of this application is used to implement at least one of the functions of state monitoring, state analysis, charge and discharge control, safety protection, information management, thermal management, and high-voltage power distribution for battery cells. In addition, the battery management system in this application can also implement the functions of the controller in the electrical device, such as implementing the functions of the vehicle control unit (VCU), motor control unit (MCU), etc. The embodiments of this application do not limit this.

[0052] It should be noted that the battery management system in this application can be integrated as a controller in the battery device, such as integrated in the battery pack, energy storage electrical box; the battery management system in this application can also be integrated as a controller in the electrical device, such as integrated in the vehicle, vehicle chassis; the battery management system in this application can also be integrated as a controller in the charging device, such as integrated in the charging device, battery swapping device; the battery management system in this application can also be deployed as control software in the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN), and big data and artificial intelligence platforms, such as vehicle networking cloud, application (APP) background, etc.

[0053] The simulation sensor in the embodiments of this application is an input device of the automotive computer system, composed of a sensitive element, a conversion element, and a measurement circuit. Its function is to convert various operating condition information during vehicle operation into electrical signals and input them to the computer so that the vehicle is in a good working state. Among them, the sensor can include at least one of the following: air flow sensor, temperature sensor, position and speed sensor, exhaust purification sensor, automatic air conditioning system sensor, liquid level sensor, oil pressure sensor, electronic control suspension and steering system sensor, airbag and anti-collision system sensor, cruise and navigation system sensor.

[0054] The test system 102 is used to obtain an interrupt signal of test data of the battery management system through the simulation sensor constructed by the above simulation system 101. The test data includes vehicle data simulated to be collected by the sensor during vehicle driving, and transmits the interrupt signal corresponding to the test data to the vehicle operating system; and through the vehicle operating system, processes the interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event, so as to comprehensively test the interrupt processing ability of the vehicle operating system for the battery management system.

[0055] The result analysis system 103 is used to determine the interrupt test result of the vehicle operating system according to the first processing result and a preset second processing result corresponding to the interrupt signal. The interrupt test result is used to reflect the processing ability of the vehicle operating system for the battery management system interrupt; and, detect the process of the vehicle operating system processing the interrupt event through a debugging tool or a log recording tool to obtain process detection data; wherein, the process detection data includes at least one of the following: the response duration of responding to the interrupt signal, the logical analysis speed of the vehicle operating system for the interrupt event, the analysis depth and analysis logic of the vehicle operating system for the interrupt event nesting, the event result of the vehicle operating system after processing the interrupt event, and determine the first processing result according to the process detection data.

[0056] In this way, by constructing a simulation test environment in the virtual machine to simulate the vehicle operating system, sensors and battery management system of the vehicle, it is possible to perform tests in the virtual environment, avoiding potential safety risks and actual losses, and a simulation test environment can be established at any time in the virtual machine, and test data related to the interrupt event of the battery management system that can be adjusted at any time can be obtained, so as to cover the actual situations of various interrupt events related to the battery management system through the test data, realize repeated tests and analyze the processing ability of the vehicle operating system for the battery management system interrupt, improve the test flexibility, and at the same time improve the processing ability of the battery management system for the interrupt of the battery management system and the comprehensiveness of the test.

[0057] Secondly, in combination with Figure 2 The interrupt test method for the battery management system provided by the embodiments of the present application will be described in detail.

[0058] Figure 2 It is a schematic flowchart of an interrupt test method for a battery management system provided by an embodiment of the present application.

[0059] As Figure 2 shown, the interrupt test method for the battery management system can be applied to the interrupt test system for the battery management system as Figure 1 shown. The interrupt test method specifically may include the following steps: Step 210, obtain an interrupt signal of the test data of the battery management system, where the test data includes vehicle data simulated from the sensors during vehicle driving; Step 220, transmit the interrupt signal corresponding to the test data to the in-vehicle operating system; Step 230, determine the interrupt test result of the in-vehicle operating system according to the first processing result and a preset second processing result corresponding to the interrupt signal, and the interrupt test result is used to reflect the processing ability of the in-vehicle operating system for the interrupt of the battery management system.

[0060] Exemplarily, establish an in-vehicle operating system, a simulation sensor, a simulation battery management system, and test data of an interrupt event related to the simulation battery management system in a virtual machine. Among them, the interrupt event is a scenario where an intake pressure sensor detects a pressure change in the intake pipe, and the test data includes abnormal pressure values of the intake pipe collected by the pressure sensor. At this time, the simulation sensor can be used to transmit an interrupt signal corresponding to the abnormal pressure value to the in-vehicle operating system to start testing whether the in-vehicle operating system will suspend the task currently executed by the ECU carried by the in-vehicle operating system after receiving the interrupt signal, process the interrupt event corresponding to the interrupt signal, that is, read the aforementioned abnormal pressure value, and adjust the fuel injection volume and ignition timing according to these data to ensure the efficient operation of the engine, and whether the working state and fuel consumption of the engine will indirectly affect the management of the vehicle battery by the BMS, so that the first processing result of the in-vehicle operating system for processing the interrupt event can be detected, and the first processing result is matched with the expected second processing result to determine whether the in-vehicle operating system has the processing ability for the interrupt of the battery management system.

[0061] Alternatively, if the interrupt event is a scenario where the brake sensor detects that the brake pedal is depressed, and the test data includes the time when the brake pedal is depressed, the test notifies the in-vehicle operating system to perform a brake operation through the interrupt mechanism to ensure that the brake response is rapid and stable, and to detect whether the brake pedal is damaged. If there is damage, it may cause the brake light to stay on constantly, which may lead to battery discharge and affect the management of the vehicle battery by the BMS, then an adjustment instruction can be sent to the BMS to solve the interrupt event. In this way, according to the first processing result of the in-vehicle operating system for solving the interrupt event, such as when the response time to the interrupt event is less than the expected response time to the interrupt event, that is, when it matches the expected second processing result, it can be characterized that the in-vehicle operating system has the processing ability for the interrupt of the battery management system; conversely, if the response time to the interrupt event is greater than or equal to the expected response time to the interrupt event, that is, when it does not match the expected second processing result, it can be determined that the in-vehicle operating system does not have the processing ability for the interrupt of the battery management system.

[0062] Thus, by building a simulation test environment in a virtual machine to simulate the vehicle's in-vehicle operating system, sensors, and battery management system, testing can be carried out in a virtual environment, avoiding potential safety risks and actual losses. Moreover, a simulation test environment can be established at any time in the virtual machine, and test data related to the interrupt events of the battery management system that can be adjusted at any time can be obtained. By covering the actual situations of various interrupt events related to the battery management system through the test data, the processing ability of the in-vehicle operating system for the interrupts of the battery management system can be repeatedly tested and analyzed, improving the test flexibility while also enhancing the processing ability of the battery management system for the interrupts of the battery management system and the comprehensiveness of the test.

[0063] The above steps will be described in detail as follows.

[0064] Regarding step 210, in some embodiments of the present application, the virtual machine is created by a virtual machine emulator. Based on this, a simulation test scenario can be built through the following steps. Step 210 may specifically include steps 2101 to 2103.

[0065] Step 2101, simulate the vehicle's electronic control unit, sensors, and battery management system through the virtual machine to obtain a simulated electronic control unit corresponding to the electronic control unit, a simulated sensor corresponding to the sensor, and a simulated battery management system corresponding to the battery management system.

[0066] Exemplarily, a virtual machine is built through QEMU, and a virtual machine is configured through QEMU to simulate real ECU hardware, sensor hardware, and battery management system.

[0067] Step 2102, configure the in-vehicle operating system in the virtual machine. The in-vehicle operating system is an operating system running on the simulated electronic control unit.

[0068] Exemplarily, configure the operating environment of the in-vehicle operating system on the virtual machine through QEMU. Specifically, since the in-vehicle operating system is an operating system running on the ECU, the operating environment of the in-vehicle operating system can also be configured on the simulated electronic control unit through QEMU.

[0069] Step 2103, call the test tool and configure the test data related to the interrupt events of the simulated battery management system in the virtual machine according to the interrupt events of the vehicle's battery management system.

[0070] It should also be noted that the test tool can configure the test data of the interrupt events related to the simulation battery management system in the virtual machine by receiving the configuration input of the user, that is, the test data is configured by the user. Or, the test tool can also write the test data through artificial intelligence technology according to the test purpose. For example, the test tool automatically writes the test data according to the test purpose of testing the processing ability of the vehicle operating system for the interrupt of the simulation battery management system. And, no matter which way the test data is determined, it should be ensured that it can run in the virtual machine.

[0071] Thus, the test data of the electronic control unit, sensors, battery management system of the vehicle and the interrupt events related to the simulation battery management system can be simulated through the virtual machine, realizing a highly realistic test environment. Moreover, a simulation test environment can be established at any time in the virtual machine, and the test data of the interrupt events related to the battery management system that can be adjusted at any time can be obtained, which is beneficial to improving the test interactivity and flexibility. And, compared with traditional vehicles, simulation through the virtual machine can save time and cost.

[0072] It should be noted that the interrupt events in the embodiments of the present application include at least one of the following: battery failure interrupt event, data exception interrupt event.

[0073] Among them, the battery failure interrupt event includes the scenario where the battery management system is interrupted due to a battery failure. Specifically, the battery failure interrupt event may include at least one of the following: BMS collision, inability to charge with a charger, fault interruption of battery cells such as too high or too low voltage, abnormal interruption during charging such as abnormal charging current, battery current data error, too large battery temperature difference.

[0074] The data exception interrupt event includes the scenario where the battery management system is interrupted due to abnormal working condition data collected by the sensor. The data exception interrupt event may include at least one of the following: power supply abnormality, wire harness short circuit or open circuit, BMS-ECU communication failure.

[0075] Thus, through multiple types of interrupt events, the actual situations of various interrupt events that may occur in the battery management system are covered, so as to test whether the vehicle operating system processes the interrupts of any situation of the battery management system as expected, ensure the normal operation of the battery management system, and further ensure the stability of the vehicle operating system.

[0076] It should be noted that the interrupt events in the embodiments of the present application can be the actual scenarios of simulating the BMS interrupt in the vehicle, or can include extreme scenarios without historical interrupt records in the BMS of the vehicle.

[0077] The test data in the embodiments of this application includes at least one of the following: vehicle speed test data, road condition test data, and external environment interference test data. It should be noted that the test data may include the test data for each test scenario.

[0078] Among them, the vehicle speed test data includes at least one driving speed interval of the vehicle, and the driving speed interval includes at least one driving speed value. Among them, at least one driving speed interval may include at least one of the following: low-speed driving speed interval, medium-speed driving speed interval, and high-speed driving interval. Specifically, the low-speed driving speed interval may include 0 - 40 kilometers per hour, the medium-speed driving speed interval may include 41 - 90 kilometers per hour, and the high-speed driving interval may include 91 - 120 kilometers per hour.

[0079] The road condition test data may include the interruption signals of sensors simulating different road conditions, and specifically, it can simulate the sensor outputs under different road conditions such as flat roads, bumpy roads, uphill and downhill.

[0080] Specifically, when driving on a flat road, the measured battery can work more efficiently because there are fewer bumps and vibrations, the battery has a higher discharge efficiency, can provide a more stable power output. In addition, the driving resistance on a flat road is small, and the power consumption is relatively low, which helps to extend the service life of the battery.

[0081] When driving on a bumpy road, the measured battery will be affected as follows: problems with line connections, for example, bumps may cause the loosening or poor contact of the internal lines of the vehicle, interfering with the power transmission and preventing the smooth transmission of electrical energy; problems with the controller, bumps may affect the normal operation of the controller, especially the controller with a single-chip microcomputer, and a single pulse may cause problems with the program; the problem of increased energy consumption, the rough road will increase the energy consumption of the tram.

[0082] The external environment interference test data includes at least one of the following: electromagnetic data of the driving environment where the vehicle is located, electrical noise of the vehicle, and meteorological factor data.

[0083] Among them, the electrical noise refers to the sound generated by the vehicle's electrical system, which may include high-frequency whistling sounds and noises caused by electrical signal interference. This kind of noise usually comes from electronic devices such as motors, generators, and air-conditioning compressors. The meteorological factor data may include data related to meteorological elements such as air pressure and temperature. Among them, the meteorological elements may include air temperature, air pressure, wind, humidity, clouds, precipitation, and various weather phenomena.

[0084] Thus, by simulating different vehicle speed test data, road condition test data, and external environment interference test data, a comprehensive test of the processing ability of the vehicle operating system for interruptions in the battery management system can be achieved, so as to test whether the vehicle operating system processes any interruptions in the battery management system as expected, ensure the normal operation of the battery management system, and further ensure the stability of the vehicle operating system.

[0085] Regarding step 220, in some embodiments of the present application, the interruption signal can be simulated and sent by a simulation sensor through the following steps. Based on this, step 220 can specifically include steps 2201 to 2203, which are specifically as follows.

[0086] Step 2201, transmit test data to the simulation sensor through a test tool.

[0087] Step 2202, trigger the interruption mechanism through the simulation sensor.

[0088] Step 2203, transmit an interruption signal corresponding to the test data to the vehicle operating system through the interruption mechanism.

[0089] Exemplarily, different vehicle speed test data, road condition test data, and external environment interference test data can be sent to the simulation sensor through a test tool to trigger the interruption mechanism, so as to transmit an interruption signal corresponding to the test data to the vehicle operating system through the interruption mechanism.

[0090] Thus, by transmitting test data to the simulation sensor to trigger the interruption mechanism through the simulation sensor, it can be ensured that the simulation sensor can correctly execute the control logic of sending an interruption signal to the vehicle operating system, so as to improve the success rate of the battery management system receiving the interruption signal.

[0091] In addition, in order to test the processing ability of the vehicle operating system for interruption events when the vehicle operating system runs for a long time, so as to ensure that there are no problems such as interruption loss and processing errors, before step 210, this interruption test method can further include steps 2401 and 2402.

[0092] Step 2401, control the running duration of the vehicle operating system to be greater than or equal to a preset duration.

[0093] Exemplarily, control the running duration to be greater than or equal to 3 hours.

[0094] Step 2402, when the running duration of the vehicle operating system is greater than or equal to the preset duration, obtain the interruption signal of the test data of the battery management system.

[0095] Exemplarily, when the running duration of the vehicle operating system is greater than or equal to 3 hours, then execute step 220.

[0096] Thus, it is possible to test the processing ability of the in-vehicle operating system for interrupt events under long-term operation, so as to ensure the stability of the in-vehicle operating system and ensure that no problems such as interrupt loss and processing errors occur when the in-vehicle operating system processes the interrupt events of the battery management system.

[0097] In some embodiments of the present application, an interrupt handler is deployed in the in-vehicle operating system. The interrupt handler is a program in the in-vehicle operating system for receiving and processing interrupt signals. Based on this, step 220 may specifically include: Transmit an interrupt signal corresponding to the test data to the interrupt handler through a simulated sensor.

[0098] Thus, by deploying a dedicated interrupt handler in the in-vehicle operating system to receive interrupt signals and process interrupt events corresponding to the interrupt signals, it is ensured that the in-vehicle operating system can receive and process interrupt signals, and the resource configuration of the in-vehicle operating system is optimized, improving the efficiency of processing interrupt signals while not affecting the in-vehicle operating system's processing of other operations.

[0099] Regarding step 230, in some embodiments of the present application, after step 230, the method may further include: Step 250, when the first processing result matches the second processing result, determine that the in-vehicle operating system has the ability to process the battery management system interrupt.

[0100] Exemplarily, if the first processing result is that when the in-vehicle operating system receives the interrupt signal, it pauses the task currently executed by the ECU carried by the in-vehicle operating system, processes the interrupt event corresponding to the interrupt signal, that is, reads the aforementioned abnormal pressure value, and adjusts the fuel injection volume and ignition timing according to these data, and the second processing result is to read the aforementioned abnormal pressure value and adjust the fuel injection volume and ignition timing according to these data, then it is determined that the in-vehicle operating system has the ability to process the battery management system interrupt.

[0101] Or, if the interrupt event is a scenario where the brake sensor detects that the brake pedal is depressed, the first processing result is to notify the in-vehicle operating system to perform a braking operation to ensure that the braking response is rapid and stable, and to detect whether the brake pedal is damaged. If there is damage, it may cause the brake light to stay on constantly, thereby causing the battery to discharge and affecting the BMS's management of the vehicle battery. Then, an adjustment instruction may be sent to the BMS to solve the interrupt event. The second processing result is that if there is damage, it may cause the brake light to stay on constantly, and an adjustment instruction may be sent to the BMS to solve the interrupt event. Then, it is determined that the in-vehicle operating system has the ability to process the battery management system interrupt.

[0102] Thus, the second processing result of the interrupt event can be processed by the preset vehicle operating system to verify the first processing result of the vehicle operating system for processing the interrupt event, so as to analyze the processing result, which is beneficial to accurately analyzing the processing of the interrupt of the battery management system by the vehicle operating system and improving the accuracy of determining the processing ability of the vehicle operating system for the interrupt of the battery management system.

[0103] Regarding step 230, in some embodiments of the present application, the first processing result includes the processing action of the interrupt event and the execution result of the interrupt event, and the second processing result includes the preset processing action of the interrupt event and the preset execution result. Based on this, the following steps can be used to determine whether the first processing result matches the second processing result. Based on this, after step 230, the method may further include steps 2601 to 2603.

[0104] Step 2601: Match the execution result of the interrupt event with the preset execution result to obtain a first matching result.

[0105] Step 2602: When the first matching result indicates that the execution result matches the preset execution result, match the processing action of the interrupt event with the preset processing action to obtain a second matching result.

[0106] Step 2603: When the second matching result indicates that the execution result matches the preset processing action, determine that the first processing result matches the second processing result.

[0107] Exemplarily, if the execution result of the first processing result is to adjust the fuel injection volume and ignition timing and matches the execution result of the second processing result, then continue to verify the processing action of the first processing result. The processing action is that after receiving the interrupt signal, the vehicle operating system suspends the task currently executed by the ECU carried by the vehicle operating system, processes the interrupt event corresponding to the interrupt signal, that is, reads the aforementioned abnormal pressure value, and adjusts the fuel injection volume and ignition timing according to these data. If it matches the preset processing action of the second processing result, it is determined that the first processing result matches the second processing result.

[0108] Or, if the execution result of the first processing result is to adjust the fuel injection volume and the execution result of the second processing result is to adjust the fuel injection volume and ignition timing, and the two do not match, then there is no need to match the processing action, and it can be determined that the first processing result does not match the second processing result, reducing the resource amount for matching the processing action.

[0109] Alternatively, if the execution result of the first processing result is to adjust the fuel injection quantity and ignition timing and matches the execution result of the second processing result, then continue to verify the processing actions of the first processing result. If the execution result of the interruption event of the first processing result is to read the aforementioned abnormal pressure value and adjust the fuel injection quantity based on this data, and does not match the preset execution result in the second processing result, that is, after the in-vehicle operating system receives the interruption signal, it temporarily suspends the tasks currently executed by the ECU carried by the in-vehicle operating system, processes the interruption event corresponding to the interruption signal, that is, reads the aforementioned abnormal pressure value and adjusts the fuel injection quantity and ignition timing, it can be determined that the first processing result does not match the second processing result.

[0110] Thus, the ability of the in-vehicle operating system to process interruption events can be verified respectively through the execution results and processing actions of the interruption event, that is, first verify the execution result of the interruption event. When the execution result of the interruption event meets the test expectation, inversely infer whether the processing action meets the verification expectation, the test expectation. When the processing action also meets the test expectation, it is determined that the first processing result and the second processing result match, thereby completing the test, which is beneficial to accurately analyze the processing situation of the in-vehicle operating system for the interruption of the battery management system and improve the accuracy of determining the processing ability of the in-vehicle operating system for the interruption of the battery management system.

[0111] In some embodiments of the present application, in order to refine the matching content and improve the accuracy of matching processing actions, step 2602 may specifically include steps 26021 to 26024.

[0112] Step 26021: Match the action type of the processing action of the interruption event with the action type of the preset processing action to obtain action type similarity information.

[0113] Among them, the action type of the processing action may include type I interruption or type II interruption. Among them, type I interruption is to prohibit the use of the in-vehicle operating system for processing. After the in-vehicle operating system finishes processing, continue to process the interruption and issue an instruction, which will not affect the task management, and its characteristic is the smallest system overhead. Type II interruption is to use the in-vehicle operating system for processing. If the task is running and there are no other interruptions, then reschedule the interruption event that occurs in the type II scheduling termination.

[0114] Step 26022: Match the number of actions of the processing action of the interruption event with the number of actions of the preset processing action to obtain action number similarity information.

[0115] Exemplarily, if the processing action is to adjust the fuel injection quantity and ignition timing, the number of actions is 2. At this time, if the number of actions of the preset processing action is also 2, then the completely matching result is determined to obtain action number similarity information.

[0116] Step 26023: Match the action sequence of the processing action of the interruption event with the action sequence of the preset processing action to obtain action sequence similarity information.

[0117] Exemplarily, if the processing action is to adjust the fuel injection quantity and ignition timing, and the sequence is to adjust the fuel injection quantity first and then the ignition timing. At this time, if the action sequence of the preset processing action is also to adjust the fuel injection quantity first and then the ignition timing for trial, then the completely matching result is determined as the action sequence similarity information.

[0118] If the preset processing action is to adjust the ignition timing first and then the fuel injection quantity, which is opposite to the actually tested processing action, then the non-matching result is determined as the action sequence similarity information.

[0119] Step 26024: Perform weighted summation on the action type similarity information, the action quantity similarity information, and the action sequence similarity information to obtain the second matching result.

[0120] Exemplarily, weights can be set for the action type, action quantity, and action sequence respectively. Considering that the weight ratios of the action type and action sequence are too important, the weights of the action type and action sequence can be allocated, that is, the weights of the action type, action quantity, and action sequence are 4:2:4. In this way, through the weights of the action type, the weight of the action data quantity, and the weight of the action sequence, the action type similarity information, the action quantity similarity information, and the action sequence similarity information are weighted and summed to obtain the second matching result.

[0121] Thus, the attributes of the processed actions to be matched can be refined, that is, the action type, action quantity, and action sequence. The second matching result can be determined by comprehensively considering different dimensions. According to the situation of the in-vehicle operating system processing interruption events under the attributes of different processed actions, it can comprehensively and comprehensively verify whether the in-vehicle operating system can pass the interruption test, which is beneficial to accurately analyze the handling situation of the battery management system for the interruption of the battery management system and improve the accuracy of determining the handling ability of the battery management system for the interruption of the battery management system.

[0122] In some embodiments of the present application, in addition to the above-mentioned comparison of the processing actions and execution results, it is also possible to determine whether the in-vehicle operating system has the ability to handle the interruption of the battery management system based on the processing actions, processing results, and process detection data. Based on this, the method further includes steps 2301 to 2303.

[0123] Step 2301: Obtain the process detection data of the processing actions of the interruption event through a debugging tool or a logging tool; wherein, the process detection data includes at least one of the following: the response duration for responding to the interruption signal, the logical analysis speed of the vehicle-mounted operating system for the interruption event, the analysis depth of the vehicle-mounted operating system for the interruption event nesting, and the analysis logic.

[0124] Step 2302: When the process detection data meets the preset test requirements, determine that the vehicle-mounted operating system has the processing ability for the battery management system interruption.

[0125] Exemplarily, the response duration for responding to the interruption signal can be the response duration for adjusting the fuel injection volume and the ignition timing, and the preset test requirement corresponding to the response duration can be 3 seconds, which means that the duration from when the vehicle-mounted operating system obtains the interruption signal to when it completes the adjustment of the fuel injection volume and the ignition should be less than or equal to 3 seconds. If the duration of this process is greater than 3 seconds, it means that the process detection data does not meet the preset test requirements. If the duration of this process is 3 seconds, it means that the process detection data meets the preset test requirements.

[0126] Thus, through the detection of the vehicle-mounted operating system's handling of interruption events, the process detection data of the vehicle-mounted operating system's handling of interruption events is obtained, and its process detection data is analyzed to obtain the situation of the vehicle-mounted operating system's handling of interruption events at different processing stages, which is conducive to accurately analyzing the handling situation of the vehicle-mounted operating system for the interruption of the battery management system and improving the accuracy of determining the handling ability of the vehicle-mounted operating system for the interruption of the battery management system.

[0127] In some embodiments of the present application, the process detection data can be determined whether it meets the preset test requirement information through the following Step 2401 and Step 2402.

[0128] Step 2401: According to each item of process detection data, obtain the preset test requirement corresponding to each item of process detection data.

[0129] Exemplarily, if the interruption event is that the charger cannot be used for charging, the test requirement information can be that the response duration for responding to the interruption signal is 3 seconds, and the event result can be whether to check the matching resistor.

[0130] If the interruption event is that the battery current data is incorrect, the test requirement information can be that the response duration for responding to the interruption signal is 3 seconds, and the event result can be whether to re-plug the signal line of the current Hall sensor and check whether its power supply and signal output are normal.

[0131] If the interruption event is that the battery temperature difference is too large, the test requirement information can be that the response duration for responding to the interruption signal is 3 seconds, and the event result can be whether to check whether there is a fault in the plug of the cooling fan and the fan itself.

[0132] If the interruption event is abnormal power supply, the test requirement information can be the response duration of 2 seconds for the interruption signal, and the event result can be whether to check the stability of the external power supply to ensure that the voltage it provides meets the minimum operating requirements of the BMS, and to verify whether there is a current limiting setting that affects the power supply power.

[0133] If the interruption event is a short circuit or open circuit of the wire harness, the test requirement information can be the response duration of the interruption signal, and the event result can be to check whether the wire harness is damaged or poorly connected.

[0134] If the interruption event is a communication failure between the BMS and the ECU, the test requirement information can be the response duration of the interruption signal, and the event result can be whether to check the power supply status of the Battery Management Unit (BMU), a key component of the battery, and at the same time confirm whether the Controller Area Network (CAN) signal transmission line is intact without pin withdrawal or non - plugging.

[0135] Step 2402, when each item of process detection data meets the corresponding preset test requirements, determine that the process detection data meets the preset test requirement information.

[0136] Exemplarily, the response time of the in - vehicle operating system to the interruption signal can be analyzed to ensure that it can meet the predetermined response time requirements under different vehicle speeds, road conditions, and external interference conditions. The processing accuracy of the in - vehicle operating system for the interruption signal can be verified to ensure that it can correctly execute the corresponding control logic according to the sensor data. Also, analyze the response time of the in - vehicle operating system to the interruption signal to ensure that it can meet the requirements of the predetermined response time under different vehicle speeds, road conditions, and external environmental interference conditions. Also, verify the processing accuracy of the interruption signal to ensure that it can correctly execute the corresponding control logic according to the sensor signal.

[0137] Thus, different test requirements can be set for different dimensions, and based on the situation of the in - vehicle operating system handling interruption events in different dimensions, it is possible to comprehensively and fully verify whether the in - vehicle operating system can pass the interruption test, which is beneficial to accurately analyze the handling situation of the battery management system for the interruption of the battery management system and improve the accuracy of determining the handling ability of the battery management system for the interruption of the battery management system.

[0138] To better illustrate the interruption test method of the battery management system in the embodiments of the present application, the following is combined with Figure 3 for detailed description.

[0139] As Figure 3As shown, the test tool will send the test data of different test scenarios in the embodiments of the present application, such as the fault interruption of a single battery cell in a battery pack or the abnormal interruption during the charging process, to the simulation sensor. Among them, the test data includes vehicle speed test data, road condition test data, and external environment interference test data.

[0140] The simulation sensor triggers the interruption mechanism and sends an interruption signal to the simulation electronic control unit through the interruption mechanism. When the simulation electronic control unit receives the interruption signal, the vehicle operating system can control the simulation electronic control unit to pause the execution of the current program and trigger the interruption handler to obtain the working condition information related to the interruption signal according to the interruption signal and process the interruption event corresponding to the working condition information. At this time, the detection tool will detect the process of the vehicle operating system handling the interruption event through the debugging tool or the log recording tool, obtain the process detection data, and transmit the process detection data to the analysis tool. Among them, the process detection data includes the response duration of responding to the interruption signal and the event result of the vehicle operating system after processing the interruption event.

[0141] When the vehicle operating system finishes processing the interruption event corresponding to the working condition information in the interruption handler, it controls the virtual electronic control unit to continue executing the current program. At this time, the analysis tool will obtain the test requirement information corresponding to each item of process detection data according to each item of process detection data; when each item of process detection data meets the test requirement information corresponding to each item of process detection data, the result used to represent that the vehicle operating system passes the interruption test is determined as the test result.

[0142] Thus, it can meet the preset test requirement information for each interruption event under the changes of vehicle speed, road conditions, and external environment, and can test the stability and comprehensiveness of the processing ability of the vehicle communication system for battery management system interruptions during long-term operation.

[0143] The present application also provides an interruption test device for a battery management system, which will be specifically described in combination with Figure 4 for detailed description.

[0144] Figure 4 is a schematic structural diagram of an interruption test device for a battery management system provided by an embodiment of the present application.

[0145] In some embodiments of the present application, Figure 4 the interruption test device of the battery management system shown can be set in the computer device provided by the embodiment of the present application.

[0146] Based on this, as Figure 4 shown, the interruption test device 40 of the battery management system may specifically include: An acquisition module 401 is configured to acquire an interrupt signal of test data of a battery management system, where the test data includes vehicle data simulated to be collected by sensors during vehicle driving; A processing module 402 is configured to process an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; A determination module 403 is configured to determine an interrupt test result of an in-vehicle operating system according to the first processing result and a preset second processing result corresponding to the interrupt signal, where the interrupt test result is used to reflect the processing capability of the in-vehicle operating system for the battery management system interrupt.

[0147] In this way, the test data of various interrupt scenarios related to the battery management system can be used to cover the actual situations of various interrupt scenarios related to the battery management system, realizing repeated tests and analyzing the processing capability of the in-vehicle operating system for the battery management system interrupt. While improving the test flexibility, by comparing the first processing result and the second processing result, it can be determined whether the in-vehicle operating system has the processing capability for the battery management system interrupt, which can improve the processing capability of the battery management system for the battery management system interrupt and the comprehensiveness of the test.

[0148] Next, the interrupt test device 40 of the battery management system in the embodiments of the present application will be described in detail respectively.

[0149] In some embodiments of the present application, the test data in the embodiments of the present application includes at least one of the following: vehicle speed test data, road condition test data, and external environment interference test data; The vehicle speed test data includes at least one driving speed interval of the vehicle, and the driving speed interval includes at least one driving speed value; The road condition test data includes sensor data corresponding to at least one driving road condition of the vehicle; The external environment interference test data includes at least one of the following: electromagnetic data of the driving environment where the vehicle is located, electrical noise of the vehicle, and meteorological factor data.

[0150] In some embodiments of the present application, the interrupt event includes at least one of the following: battery failure interrupt event, data anomaly interrupt event; Among them, the battery failure interrupt event includes a scenario where the battery management system is interrupted due to a battery failure; the data anomaly interrupt event includes a scenario where the battery management system is interrupted due to abnormal working condition data collected by sensors.

[0151] In some embodiments of the present application, the determination module 403 may further be configured to determine that the in-vehicle operating system has the processing capability for the battery management system interrupt when the first processing result matches the second processing result.

[0152] In some embodiments of the present application, the interruption test device 40 of the battery management system may further include a matching module, configured to, when the first processing result includes the processing action of the interruption event and the execution result of the interruption event, and the second processing result includes the preset processing action of the interruption event and the preset execution result of the interruption event, match the execution result of the interruption event with the preset execution result to obtain a first matching result; When the first matching result indicates that the execution result matches the preset execution result, match the processing action of the interruption event with the preset processing action to obtain a second matching result; When the second matching result indicates that the execution result matches the preset processing action, determine that the first processing result matches the second processing result.

[0153] In some embodiments of the present application, the interruption test device 40 of the battery management system may further include a matching module, configured to match the action type of the processing action of the interruption event with the action type of the preset processing action to obtain action type similarity information; Match the number of actions of the processing action of the interruption event with the number of actions of the preset processing action to obtain action number similarity information; Match the action sequence of the processing action of the interruption event with the action sequence of the preset processing action to obtain action sequence similarity information; Perform a weighted sum of the action type similarity information, the action number similarity information, and the action sequence similarity information to obtain the second matching result.

[0154] In some embodiments of the present application, the acquisition module 401 may further be configured to acquire process detection data of the processing action of the interruption event; wherein, the process detection data includes at least one of the following: the response duration for responding to the interruption signal, the logical analysis speed of the in-vehicle operating system for the interruption event, and the analysis logic of the in-vehicle operating system for the interruption nesting of the interruption event; The determination module 403 may further be configured to determine that the in-vehicle operating system has the processing ability for the battery management system interruption when the process detection data meets the preset test requirements.

[0155] In some embodiments of the present application, the acquisition module 401 may further be configured to acquire a preset test requirement corresponding to each item of process detection data according to each item of process detection data; A determination module 403, configured to determine that the process detection data meets the preset test requirement information when each item of the process detection data meets the corresponding preset test requirement.

[0156] In some embodiments of the present application, the interruption test device 40 of the battery management system may further include a control module, configured to control the running duration of the vehicle-mounted operating system to be greater than or equal to a preset duration; The acquisition module 401 may further be configured to, when the running duration of the vehicle-mounted operating system is greater than or equal to the preset duration, obtain an interruption signal of the test data of the battery management system through a simulation sensor.

[0157] The present application also provides a computer device. Specifically, it is described in detail in combination with Figure 5 for elaboration.

[0158] Figure 5 is a schematic structural diagram of a computer device provided by an embodiment of the present application.

[0159] As Figure 5 shown, the computer device may include the device for executing the interruption test method of the battery management system involved in the embodiments of the present application. Among them, the computer device may include a processor 501 and a memory 502 storing computer program instructions.

[0160] Specifically, the above-mentioned processor 501 may include a central processing unit (CPU), or an application specific integrated circuit (ASTC), or may be configured as one or more integrated circuits for implementing the embodiments of the present application.

[0161] The memory 502 may include a mass memory for data or instructions. By way of example and not limitation, the memory 502 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. In a suitable case, the memory 502 may include removable or non-removable (or fixed) media. In a suitable case, the memory 502 may be inside or outside the integrated gateway disaster recovery device. In a particular embodiment, the memory 502 is a non-volatile solid-state memory. In a particular embodiment, the memory 502 includes solid-state storage (ROM). In a suitable case, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0162] The processor 501 reads and executes the computer program instructions stored in the memory 502 to implement the interruption test method of any one of the battery management systems in the above embodiments.

[0163] In one example, the computer device may further include a communication interface 503 and a bus 510. Among them, as Figure 5 shown, the processor 501, the memory 502, and the communication interface 503 are connected through the bus 510 and complete communication with each other.

[0164] The communication interface 503 is mainly used to implement communication between each module, device, unit, and / or device in the embodiments of the present application.

[0165] The bus 510 includes hardware, software, or both, and couples the components of the traffic control device to each other. By way of example and not limitation, the bus may include an accelerated graphics port (AGP) or other graphics bus, an enhanced industry standard system (ETSA) bus, a front-side bus (FSB), a hyperTransport (HT) interconnect, an industry standard system (ISA) bus, an infinite bandwidth interconnect, a low-pin count (LPC) bus, a memory bus, a microChannel architecture (MCA) bus, a peripheral component interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a serial advanced technology attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable buses, or a combination of two or more of these. In a suitable case, the bus 510 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application contemplates any suitable bus or interconnect.

[0166] The data processing device can execute the interrupt test method of the battery management system in the embodiments of the present application, so as to implement the interrupt test method and device of the battery management system combined with Figures 1 to 5 as described. In addition, in combination with the interrupt test method of the battery management system in the above embodiments, the embodiments of the present application can provide a computer-readable storage medium to implement. Computer program instructions are stored on the computer-readable storage medium; when the computer program instructions are executed by a processor, any one of the interrupt test methods of the battery management system in the above embodiments is implemented.

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

[0168] The functional blocks shown in the above structural block diagrams can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (ASTC), appropriate firmware, a plug-in, a functional card, etc. When implemented in software, the elements of the present application are programs or code segments for performing the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted through a data signal carried in a carrier wave on a transmission medium or a communication link. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical discs, hard disks, fiber optic media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc. It should also be noted that the exemplary embodiments mentioned in the present application describe some methods or systems based on a series of steps or devices. However, the present application is not limited to the order of the above steps, that is, the steps can be executed in the order mentioned in the embodiments, or different from the order in the embodiments, or several steps can be executed simultaneously.

[0169] The above are only the specific embodiments of the present application. Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems, modules, and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be elaborated herein. It should be understood that the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed by the present application can easily think of various equivalent modifications or substitutions, and these modifications or substitutions should all be covered within the protection scope of the present application.

[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent substitutions for some or all of the technical features; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be covered within the scope of the claims and the description of the present application. In particular, as long as there is no structural conflict, the technical features mentioned in each embodiment can be combined in any way. The present application is not limited to the specific embodiments disclosed in the text, but includes all technical solutions falling within the scope of the claims.

Claims

1. A battery management system interruption test method, characterized in that: include: An interrupt signal for acquiring test data of a battery management system, wherein the test data includes vehicle data collected by a sensor during simulated vehicle driving; Processing an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; An interruption test result of the vehicle operating system is determined according to the first processing result and a preset second processing result corresponding to the interruption signal, wherein the interruption test result is used to reflect the processing capability of the vehicle operating system for the battery management system interruption.

2. The method according to claim 1, characterized in that The test data includes at least one of the following: vehicle speed test data, road condition test data, and external environment interference test data; wherein, The vehicle speed test data includes at least one driving speed interval, and the driving speed interval includes at least one driving speed value; The road condition test data includes at least one driving road condition data; The external environment interference test data includes at least one of the following: electromagnetic data of the driving environment of the vehicle, electrical noise of the vehicle, and meteorological factor data.

3. The method according to claim 1 or 2, characterized in that: The interruption event includes at least one of the following: a battery failure interruption event, a data abnormality interruption event; Among them, the battery failure interruption event includes an event in which a battery failure causes the battery management system to be interrupted; the data abnormality interruption event includes an event in which abnormal operating condition data collected by a sensor causes the battery management system to be interrupted.

4. The method according to claim 1, characterized in that: The method further comprises: When the first processing result matches the second processing result, it is determined that the vehicle operating system has the processing capability for the battery management system interrupt.

5. The method according to claim 4, characterized in that The first processing result includes a processing action of the interrupt event and an execution result of the interrupt event, and the second processing result includes a preset processing action of the interrupt event and a preset execution result of the interrupt event; The method further comprises: Matching the execution result of the interrupt event with the preset execution result to obtain a first matching result; When the first matching result indicates that the execution result matches the preset execution result, matching the processing action of the interrupt event with the preset processing action to obtain a second matching result; In a case where the second matching result indicates that the execution result matches the preset processing action, it is determined that the first processing result matches the second processing result.

6. The method according to claim 5, characterized in that The matching the processing action of the interrupt event with the preset processing action to obtain a second matching result includes: Matching the action type of the processing action of the interrupt event with the action type of the preset processing action to obtain action type similarity information; Matching the action quantity of the processing action of the interrupt event with the action quantity of the preset processing action to obtain action quantity similarity information; Matching the action sequence of the processing action of the interrupt event with the action sequence of the preset processing action to obtain action sequence similarity information; The second matching result is obtained by performing weighted summation on the action type similarity information, the action quantity similarity information and the action sequence similarity information.

7. The method according to claim 6, characterized in that The method further comprises: Acquire process detection data of the processing action of the interrupt event; wherein the process detection data includes at least one of the following: the response time of responding to the interrupt signal, the logic analysis speed of the vehicle operating system on the interrupt event, and the analysis logic of the vehicle operating system on the nesting of the interrupt event; When the process detection data meets the preset test requirements, it is determined that the vehicle operating system has the processing capability to process the battery management system interrupt.

8. The method according to claim 7, characterized in that The method further comprises: According to each process detection data, obtaining a preset test requirement corresponding to each process detection data; In a case where each item of process detection data meets a preset test requirement corresponding to each item of process detection data, it is determined that the process detection data meets the preset test requirement information.

9. The method according to claim 1, characterized in that: Before the interrupt signal for obtaining the test data of the battery management system, the method further includes: When the running time of the vehicle-mounted operating system is greater than or equal to the preset time, an interrupt signal of the test data of the battery management system is obtained.

10. A vehicle-mounted operating system, characterized in that: include: An acquisition module, used for acquiring an interrupt signal of test data of a battery management system, wherein the test data includes vehicle data collected by a sensor during simulated vehicle driving; A processing module, used for processing an interrupt event corresponding to the interrupt signal to obtain a first processing result of the interrupt event; A determination module is used to determine an interruption test result of the vehicle operating system based on the first processing result and a preset second processing result corresponding to the interruption signal, wherein the interruption test result is used to reflect the processing capability of the vehicle operating system for the battery management system interruption.

11. A computer device, characterized in that: include: A processor and a memory storing computer program instructions, wherein the processor implements the steps of the interruption test method according to any one of claims 1 to 9 when executing the computer program instructions.

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

Citation Information

Patent Citations

  • Hardware-in-loop test device and method for vehicle-mounted charger control device of new energy automobile

    CN103760895A

  • In-loop rapid simulation test system and method of unmanned vehicle

    CN109100155A

  • Vehicle test method, device and equipment and storage medium

    CN113820141A

  • Test method and device of battery management system, vehicle and storage medium

    CN117930018A

  • Electric vehicle insulation fault detection method and device

    WO2022007822A1