Method for testing high-voltage power-on and power-off time sequence of whole vehicle
The Simulink-based method for vehicle high-voltage power sequence simulation addresses the lack of controller-actuator interaction in existing tools, improving reliability and completeness of testing while reducing costs.
Patent Information
- Application Number
- CN202510558340.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-29
- Publication Date
- 2025-07-15
AI Technical Summary
Existing vehicle design tools lack the ability to simulate actual interactions between controllers and actuators during high-voltage power-on and power-off sequences, leading to potential system failures that are difficult to detect.
A method involving Simulink modeling to create a vehicle high-voltage power-on and power-off sequence simulation, connected to a CAN network, allowing for interaction between vehicle controllers and actuators through CAN bus connections or simulation input/output ports, and using key signals, remote wake-up signals, or fault signals for verification.
Enhances the reliability and completeness of high-voltage power sequence testing, reducing development costs by enabling detection of potential system issues early in the design phase.
Smart Images

Figure CN120315422A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of vehicle power-on and power-off testing, and more specifically, to a testing method for the high-voltage power-on and power-off sequence of a vehicle. Background Technique
[0002] The high-voltage power-on and power-off system of new energy vehicles mainly includes a vehicle control unit (VCU), a battery management system (BMS), an on-board charger (OBC), a DC-DC converter, a motor control unit (MCU), etc., and main positive, main negative, pre-charge and other relays. Generally, the high-voltage power-on and power-off process is as follows: (1) During the high-voltage power-on process, after receiving a power-on request, the VCU controls the BMS to close the relay, the BMS performs pre-charging to connect the high-voltage circuit, the MCU obtains high voltage, and the vehicle enters the HvReady state. (2) During the high-voltage power-off process, after receiving a power-off request, the VCU controls the MCU and high-voltage accessories (PTC, compressor, etc.) to unload, then controls the BMS to disconnect the relay to disconnect the high-voltage circuit, and then controls the MCU to complete active discharge, and the vehicle enters the Shutdown state. In the initial stage of the current vehicle power-on and power-off design, the high-voltage power-on and power-off sequence logic is mainly designed by the simulink modeling tool, and the simulation is realized through commands and debugging. However, in the initial and middle stages of the design, through the simulink tool, it can only run from the perspective of software logic and software operation, lacking the interaction between the actual controller and the actuator, and it is difficult to find the problems that may cause abnormal system operation during the interaction process, and there is a lack of systematic design and verification methods to ensure development. Therefore, how to perform semi-physical simulation testing on the power-on and power-off sequence from the initial stage of the vehicle project design to the step-by-step testing of the complete physical object is of great significance. Summary of the Invention
[0003] The present invention provides a testing method for the high-voltage power-on and power-off sequence of a vehicle, which solves the problem that in the initial stage of the existing vehicle design, the simulation tool is used for power-on and power-off sequence control, lacking the interaction between the actual controller and the actuator, and it is easy to generate abnormal system operation and difficult to detect. It can improve the reliability and integrity of the high-voltage power-on and power-off sequence testing of the vehicle and reduce the development cost.
[0004] To achieve the above object, the present invention provides the following technical solutions:
[0005] A testing method for the high-voltage power-on and power-off sequence of a vehicle, comprising:
[0006] Building an operation model of the corresponding controller for the high-voltage power-on and power-off of the vehicle through simulink;
[0007] Setting up a CAN network to connect the input and output signals of each simulation module in the operation model to the CAN network;
[0008] The BMS, ECU, VCU, DCDC, OBC, MCU, and high-voltage accessories corresponding to the whole vehicle can be selectively connected to the CAN network through the CAN bus or to the signal of the simulation input / output port corresponding to the operation model;
[0009] Receive the key hard wire signal, remote wake-up signal, or fault signal through the VCU or the VCU simulation module corresponding to the operation model, and then verify the control logic of high-voltage power-on and high-voltage power-off of the whole vehicle through the operation model.
[0010] Preferably, it further includes:
[0011] When performing high-voltage power-on, first judge whether the power-on conditions are met. If so, the VCU sends a high-voltage command, and the BMS closes the main negative relay and the pre-charge relay to perform pre-charging;
[0012] Judge whether the pre-charging is completed. If so, the BMS closes the main positive relay and disconnects the pre-charge relay;
[0013] If not, judge whether the number of pre-charging times exceeds the threshold. If so, perform a pre-charge alarm. If not, disconnect the pre-charge relay.
[0014] Preferably, it further includes:
[0015] Before judging whether the power-on conditions are met, first perform a fault judgment. If there is a fault, prohibit high-voltage power-on.
[0016] Preferably, it further includes:
[0017] When performing high-voltage power-off, the VCU turns off the MCU and DCDC, and then judges whether the high-voltage power-off conditions are met. If so, the VCU sends a high-voltage power-off command;
[0018] After receiving the high-voltage power-off command, the BMS disconnects the main negative relay and the main positive relay, and makes the MCU perform active discharge until it is completed.
[0019] Preferably, it further includes:
[0020] When verifying the high-voltage power-on of the key hard wire signal, replace the ECU, DCDC, OBC, MCU, and high-voltage accessories with the corresponding simulation modules in the operation model. The VCU and BMS are connected as physical hardware. The BMS uses the received key hard wire signal as a wake-up and judges the power-on conditions to verify the high-voltage power-on logic.
[0021] Preferably, it further includes:
[0022] When verifying the high-voltage power-on of the remote wake-up signal, replace the VCU, ECU, DCDC, and OBC with the corresponding simulation modules in the operation model, and connect the BMS, MCU, and high-voltage accessories as physical hardware to verify the process of remote high-voltage power-on and execute the electrical appliances for air-conditioning and parking functions.
[0023] Preferably, it further includes:
[0024] When verifying the high-voltage power-on during charging, replace the VCU, ECU, MCU, and high-voltage accessories with the corresponding simulation modules in the operation model, and connect the OBC, DCDC, and BMS as physical hardware to verify the process of high-voltage power-on during charging. After the OBC and DCDC receive the charging signal, wake up the VCU and enable the BMS to apply high voltage;
[0025] During the process of verifying the working logic of high-voltage power-off during charging, replace the ECU and VCU with the corresponding simulation modules in the operation model, and connect the DCDC, OBC, MCU, and BMS as physical hardware to verify the control logic of the DCDC, OBC, and BMS controller during the high-voltage power-off process after charging is completed.
[0026] Preferably, it further includes:
[0027] When verifying the high-voltage power-off of the key hard-wired signal, replace the ECU, DCDC, and OBC with the corresponding simulation modules in the operation model, and connect the VCU, BMS, MCU, and high-voltage accessories as physical hardware to verify the control logic that the VCU receives the hard-wired signal, sends an instruction to let the BMS disconnect the relay and let the MCU discharge during the process of key high-voltage power-off.
[0028] Preferably, it further includes:
[0029] During the process of verifying the remote high-voltage power-off logic, replace the ECU, VCU, DCDC, and OBC with the corresponding simulation modules in the operation model, and connect the BMS, MCU, and high-voltage accessories as physical hardware to verify the control logic of the DCDC, OBC, and BMS during the process of remote instruction high-voltage power-off.
[0030] Preferably, it further includes:
[0031] During the process of verifying the high-voltage power-off in case of vehicle failure, replace the ECU, VCU, DCDC, and OBC with the corresponding simulation modules in the operation model, and connect the BMS, MCU, and high-voltage accessories as physical hardware to verify the control logic of the DCDC, OBC, and BMS during the process of high-voltage power-off in case of vehicle failure.
[0032] The present invention provides a method for testing the sequence of vehicle high-voltage power-on and power-off. By building an operating model of the corresponding controllers for vehicle high-voltage power-on and power-off and connecting it to the CAN network signal, each controller can be selectively connected to the CAN network through the CAN bus or to the signal of the simulation input / output port corresponding to the operating model, and then verify the control logic of high-voltage power-on and high-voltage power-off according to the key hard-wire signal, remote wake-up signal or fault signal, solving the problem that in the initial stage of existing vehicle design, when using simulation tools for power-on and power-off sequence control, there is a lack of interaction between the actual controller and the actuator, and it is easy to generate system operation anomalies that are difficult to detect. It can improve the reliability and integrity of vehicle high-voltage power-on and power-off sequence testing and reduce the development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the specific embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below.
[0034] Figure 1 It is a schematic diagram of a method for testing the sequence of vehicle high-voltage power-on and power-off provided by the present invention.
[0035] Figure 2 It is a schematic diagram of the connection of each module of the operating model provided by an embodiment of the present invention.
[0036] Figure 3 It is a logic flow chart of high-voltage power-on provided by an embodiment of the present invention.
[0037] Figure 4 It is a logic flow chart of high-voltage power-off provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0038] In order to enable those skilled in the art of the present technology to better understand the solutions of the embodiments of the present invention, the embodiments of the present invention will be further described in detail below in conjunction with the drawings and the embodiments.
[0039] Aiming at the problem that in the initial stage of current vehicle design, when using simulation tools for power-on and power-off sequence control, there is a lack of interaction between the actual controller and the actuator, and it is easy to generate system operation anomalies that are difficult to detect. The present invention provides a method for testing the sequence of vehicle high-voltage power-on and power-off, solving the problem that in the initial stage of existing vehicle design, when using simulation tools for power-on and power-off sequence control, there is a lack of interaction between the actual controller and the actuator, and it is easy to generate system operation anomalies that are difficult to detect. It can improve the reliability and integrity of vehicle high-voltage power-on and power-off sequence testing and reduce the development cost.
[0040] As Figure 1 shown, a method for testing the sequence of vehicle high-voltage power-on and power-off includes:
[0041] S1: Build an operating model of the corresponding controllers for vehicle high-voltage power-on and power-off through simulink.
[0042] S2: Set up the CAN network to link the input and output signals of each simulation module in the operation model to the CAN network.
[0043] S3: The BMS, ECU, VCU, DCDC, OBC, MCU, and high-voltage accessories corresponding to the whole vehicle can be selectively connected to the CAN network through the CAN bus or connected to the simulation input and output port signals corresponding to the operation model.
[0044] S4: Receive the key hard wire signal, remote wake-up signal, or fault signal through the VCU or the VCU simulation module in the operation model, and then verify the control logic of high-voltage power-on and high-voltage power-off of the whole vehicle through the operation model.
[0045] Specifically, the BMS is the battery management system, implemented by the battery management controller, the ECU is the engine controller, the VCU is the vehicle controller, the OBC is the on-board charger, the MCU is the motor controller, the DCDC is the DC converter, and the high-voltage accessories include: motor, supercharger, compressor, and heater, etc. For the high-voltage power-on test logic and high-voltage power-off logic, all controller operation models are built in Simulink, and at the same time, the input and output signals are linked to the CAN bus signals to enable interaction between the controllers, and the complete function logic is implemented in CANoe. As Figure 2 shown, using CANoe bus technology and Simulink modeling, different test cases are designed to perform semi-physical simulation tests on the power-on and power-off timings and gradually test to the complete physical object. According to the test requirements, the BMS, ECU, VCU, DCDC, OBC, MCU, and high-voltage accessories can be selectively connected to the CAN network through the CAN bus or connected to the simulation input and output port signals corresponding to the built operation model, and then verify the control logic of high-voltage power-on and high-voltage power-off of the whole vehicle through the operation model. This method uses the combination of CANoe and Simulink. During the high-voltage power-on and power-off processes, different component functions are replaced and individually verified with emphasis to achieve a complete and reliable test method, covering functions implemented under different working conditions and modes from the initial design stage to the test stage.
[0046] The high-voltage power-on is divided into key high-voltage power-on, charging high-voltage power-on, and remote high-voltage power-on. Among them, key power-on is the normal power-on mode, charging power-on is the high-voltage power-on when a charging request is entered, and remote high-voltage power-on is the high-voltage power-on when functions such as remote demand for air conditioning and automatic parking are required.
[0047] As Figure 3As shown, the method further includes: when performing high-voltage power-on, first determine whether the power-on conditions are met. If so, the VCU sends a high-voltage power-on command, and the BMS closes the main negative relay and the pre-charge relay to perform pre-charging; determine whether the pre-charging is completed. If so, the BMS closes the main positive relay and disconnects the pre-charge relay; if not, determine whether the number of pre-charging attempts exceeds the threshold. If so, perform a pre-charging alarm. If not, disconnect the pre-charge relay.
[0048] The method further includes: before determining whether the power-on conditions are met, first perform a fault determination. If a fault exists, prohibit high-voltage power-on.
[0049] As Figure 4 As shown, the method further includes: when performing high-voltage power-off, the VCU shuts down the MCU and the DCDC, and then determines whether the high-voltage power-off conditions are met. If so, the VCU sends a high-voltage power-off command; after receiving the high-voltage power-off command, the BMS disconnects the main negative relay and the main positive relay, and makes the MCU perform active discharge until completion.
[0050] The method further includes: when verifying the high-voltage power-on of the key hardwire signal, replace the ECU, DCDC, OBC, MCU, and high-voltage accessories with the corresponding simulation modules in the operation model, and the VCU and BMS are connected as physical hardware. The BMS uses the received key hardwire signal as a wake-up signal and determines the power-on conditions to perform high-voltage power-on logic verification.
[0051] The method further includes: when verifying the high-voltage power-on of the remote wake-up signal, replace the VCU, ECU, DCDC, and OBC with the corresponding simulation modules in the operation model, and the BMS, MCU, and high-voltage accessories are connected as physical hardware to verify the high-voltage power-on process via remote control, and execute the air conditioner and parking functions of the electrical appliances.
[0052] The method further includes: when verifying the high-voltage power-on during charging, replace the VCU, ECU, MCU, and high-voltage accessories with the corresponding simulation modules in the operation model, and the OBC, DCDC, and BMS are connected as physical hardware to verify the high-voltage power-on process during charging. After the OBC and DCDC receive the charging signal, they wake up the VCU and enable the BMS to perform the high-voltage power-on function;
[0053] During the process of verifying the high-voltage power-off working logic during charging, replace the ECU and VCU with the corresponding simulation modules in the operation model, and the DCDC, OBC, MCU, and BMS are connected as physical hardware to verify the control logic of the DCDC, OBC, and BMS controllers during the high-voltage power-off process after charging is completed.
[0054] The high-voltage power-off modes under high voltage are divided into key high-voltage power-off, charging high-voltage power-off, remote high-voltage power-off, and fault high-voltage power-off. The key high-voltage power-off is the normal power-off mode. The charging high-voltage power-off is the high-voltage power-off after charging ends. The remote high-voltage power-off is the high-voltage power-off after a remote request is completed. The fault high-voltage power-off is the power-off after an emergency fault mode occurs.
[0055] The method further includes: when verifying the high-voltage power-off with the key hard-wired signal, replacing the ECU, DCDC, and OBC with the corresponding simulation modules in the operation model, and accessing the VCU, BMS, MCU, and high-voltage accessories with physical hardware, so as to verify the control logic that the VCU receives the hard-wired signal during the key high-voltage power-off process, sends an instruction to let the BMS disconnect the relay and let the MCU discharge.
[0056] The method further includes: during the process of verifying the remote high-voltage power-off logic, replacing the ECU, VCU, DCDC, and OBC with the corresponding simulation modules in the operation model, and accessing the BMS, MCU, and high-voltage accessories with physical hardware, so as to verify the control logic of the DCDC, OBC, and BMS during the high-voltage power-off process under the remote instruction.
[0057] The method further includes: during the process of verifying the high-voltage power-off under the vehicle fault, replacing the ECU, VCU, DCDC, and OBC with the corresponding simulation modules in the operation model, and accessing the BMS, MCU, and high-voltage accessories with physical hardware, so as to verify the control logic of the DCDC, OBC, and BMS during the high-voltage power-off process when encountering a vehicle fault.
[0058] It can be seen that the present invention provides a method for testing the high-voltage power-on and power-off timing of a whole vehicle. By building an operation model of the corresponding controllers for the high-voltage power-on and power-off of the whole vehicle and connecting it to the CAN network signal, each controller can selectively connect to the CAN network through the CAN bus, or connect to the signal of the simulation input and output ports corresponding to the operation model, and then verify the control logic of the high-voltage power-on and high-voltage power-off according to the key hard-wired signal, remote wake-up signal, or fault signal, solving the problem that in the initial stage of the existing vehicle design, when using a simulation tool for the power-on and power-off timing control, there is a lack of interaction between the actual controller and the actuator, and it is easy to generate abnormal system operations that are difficult to detect. It can improve the reliability and integrity of the high-voltage power-on and power-off timing test of the whole vehicle and reduce the development cost.
[0059] The above has described in detail the structure, features, and effects of the present invention based on the illustrated embodiments. The above is only the preferred embodiment of the present invention, but the present invention is not limited to the scope defined by the drawings. Any changes made according to the concept of the present invention, or equivalent embodiments modified into equivalent changes, still within the spirit covered by the specification and the drawings, should be within the protection scope of the present invention.
Claims
1. A test method for the high-voltage power-on and power-off sequence of a whole vehicle, characterized in that, Including: Build a running model of the vehicle's high-voltage power-on and power-off corresponding controller through Simulink; Set up a CAN network to link the input and output signals of each simulation module in the running model to the CAN network; The BMS, ECU, VCU, DCDC, OBC, MCU and high-voltage accessories corresponding to the vehicle can be selectively connected to the CAN network through the CAN bus, or connected to the simulation input and output port signals corresponding to the running model; Receive the key hard wire signal, remote wake-up signal or fault signal through the VCU or the VCU simulation module corresponding in the running model, and then verify the control logic of the vehicle's high-voltage power-on and high-voltage power-off through the running model.
2. The test method for the high-voltage power-on and power-off timing of the whole vehicle according to claim 1, wherein It also includes: When performing high-voltage power-on, first judge whether the power-on conditions are met. If so, the VCU sends a high-voltage command, and the BMS closes the main negative relay and the pre-charge relay to perform pre-charging; Judge whether the pre-charging is completed. If so, the BMS closes the main positive relay and disconnects the pre-charge relay; If not, judge whether the number of pre-charging times exceeds the threshold. If so, perform a pre-charge alarm. If not, disconnect the pre-charge relay.
3. The test method for the vehicle high-voltage power-on and power-off sequence according to claim 2, wherein It also includes: Before judging whether the power-on conditions are met, first perform a fault judgment. If there is a fault, prohibit high-voltage power-on.
4. The test method for the vehicle high-voltage power-on and power-off timing according to claim 3, wherein It also includes: When performing high-voltage power-off, the VCU shuts down the MCU and DCDC, and then judges whether the high-voltage power-off conditions are met. If so, the VCU sends a high-voltage power-off command; After receiving the high-voltage power-off command, the BMS disconnects the main negative relay and the main positive relay, and makes the MCU perform active discharge until it is completed.
5. The test method for the vehicle high-voltage power-on and power-off timing according to claim 4, wherein It also includes: When verifying the high-voltage power-on of the key hard wire signal, replace the ECU, DCDC, OBC, MCU and high-voltage accessories with the corresponding simulation modules in the running model, and the VCU and BMS are connected as physical hardware. The BMS uses the received key hard wire signal as a wake-up and judges the power-on conditions to perform the high-voltage power-on logic verification.
6. The test method for the high-voltage power-on and power-off sequence of the whole vehicle according to claim 5, wherein It also includes: When verifying the high-voltage power-on of the remote wake-up signal, replace the VCU, ECU, DCDC and OBC with the corresponding simulation modules in the running model, and the BMS, MCU and high-voltage accessories are connected as physical hardware to verify the remote high-voltage power-on process and execute the air conditioner and parking functions of the electrical appliances.
7. The test method for the vehicle high-voltage power-on and power-off timing according to claim 6, wherein It also includes: When verifying the high-voltage power-on during charging, replace the VCU, ECU, MCU and high-voltage accessories with the corresponding simulation modules in the running model, and the OBC, DCDC and BMS are connected as physical hardware to verify the high-voltage power-on process during charging. After the OBC and DCDC receive the charging signal, they wake up the VCU and enable the BMS to perform the high-voltage function; During the process of verifying the high-voltage power-off working logic during charging, replace the ECU and VCU with the corresponding simulation modules in the running model, and the DCDC, OBC, MCU and BMS are connected as physical hardware to verify the control logic of the DCDC, OBC and BMS controllers during the high-voltage power-off process after charging is completed.
8. The test method for the vehicle high-voltage power-on and power-off timing according to claim 7, wherein It also includes: When verifying the high-voltage power under the key hard-wire signal, the ECU, DCDC, and OBC are replaced with the corresponding simulation modules in the operation model, and the VCU, BMS, MCU, and high-voltage accessories are connected with physical hardware to verify the control logic that the VCU receives the hard-wire signal and sends instructions to let the BMS disconnect the relay and let the MCU discharge during the high-voltage process under the key.
9. The test method for the vehicle high-voltage power-on and power-off sequence according to claim 8, characterized in that It further includes: When verifying the high-voltage logic under remote control, the ECU, VCU, DCDC, and OBC are replaced with the corresponding simulation modules in the operation model, and the BMS, MCU, and high-voltage accessories are connected with physical hardware to verify the control logic of the DCDC, OBC, and BMS during the high-voltage process under the remote instruction.
10. The test method for the high-voltage power-on and power-off sequence of the whole vehicle according to claim 9, wherein, It further includes: When verifying the high-voltage process under the vehicle fault, the ECU, VCU, DCDC, and OBC are replaced with the corresponding simulation modules in the operation model, and the BMS, MCU, and high-voltage accessories are connected with physical hardware to verify the control logic of the DCDC, OBC, and BMS during the high-voltage process when encountering the vehicle fault.