Domain controller testing method and system, electronic equipment and storage medium
By running a virtual simulation environment and virtual braking system in the upper computer, detecting and controlling the status of the virtual vehicle, the problem of low efficiency in the braking function test of the domain controller is solved, and an efficient testing process is realized, simplifying the test bench structure And reduce costs.
Patent Information
- Application Number
- CN202410945385.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-15
- Publication Date
- 2024-11-05
AI Technical Summary
In the prior art, the braking function test efficiency of the domain controller is low, resulting in a short software development iteration time period, multiple functions, and delayed verification. The benches equipped with parts of the development supplier are not universal, and need to be built or rebuilt. .
Run a virtual simulation environment in the upper computer, detect the operating status of the virtual vehicle, trigger a braking command, calculate the wheel end pressure and power through the virtual brake system, and control the wheel end of the virtual vehicle in the virtual simulation environment to display the control results. Form a desktop testing system to improve testing efficiency.
Through the combination of a virtual simulation environment and a virtual braking system, efficient testing of the braking function of the domain controller is achieved, testing efficiency is improved, testing bench structure is simplified, and cost is reduced.
Smart Images

Figure CN118897536A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of domain controller testing, and in particular to a testing method, system, electronic device and storage medium for a domain controller. Background Art
[0002] We are now in the era of "software-defined cars", and the automotive industry is undergoing a comprehensive transformation towards electrification and intelligent networking. Therefore, software has also become a core competitiveness. As competition in the automotive industry intensifies, more and more OEMs are joining the ranks of independently developing controller software. In the current era of software-defined cars, the iteration time of software development is short, and there are many models and functions to be developed. In the early stage, there are many problems such as delayed functional verification due to the failure of testing to cooperate with development in a timely manner. At the same time, the test benches brought by the development supplier parts are not universal, and the problem of needing to build more or renovate is also very annoying.
[0003] That is to say, in the prior art, there is a problem of low efficiency in testing the braking function of the domain controller. Summary of the invention
[0004] In order to solve the above technical problems or at least partially solve the above technical problems, the present application provides a testing method, system, electronic device and storage medium for a domain controller.
[0005] In the first aspect, the present application provides a testing method for a domain controller, comprising: in the process of running a virtual simulation environment in a host computer, detecting the operating status of a virtual vehicle in the above-mentioned virtual simulation scene; when it is detected that the above-mentioned operating status meets the triggering condition of the braking instruction, triggering the braking instruction of the domain controller; the above-mentioned domain controller sends the above-mentioned braking instruction to a virtual braking system; the above-mentioned virtual braking system calculates the wheel-end pressure and wheel-end power of the above-mentioned virtual vehicle according to the above-mentioned braking instruction; the above-mentioned virtual simulation environment controls the wheel end of the above-mentioned virtual vehicle according to the above-mentioned wheel-end pressure and wheel-end power; and displaying the control result of the above-mentioned virtual vehicle on the display interface of the above-mentioned host computer.
[0006] In the second aspect, the present application provides a testing system for a domain controller, comprising: a host computer, used to detect the operating status of a virtual vehicle in the above-mentioned virtual simulation scene during the process of running a virtual simulation environment in the host computer; a domain controller, used to trigger the braking instruction of the domain controller when it is detected that the above-mentioned operating status meets the triggering condition of the braking instruction; the above-mentioned braking instruction is sent to a virtual braking system; a virtual braking system, used to calculate the wheel-end pressure and wheel-end power of the above-mentioned virtual vehicle according to the above-mentioned braking instruction; the above-mentioned host computer is also used to control the wheel end of the above-mentioned virtual vehicle according to the above-mentioned wheel-end pressure and wheel-end power by the above-mentioned virtual simulation environment; and display the control result of the above-mentioned virtual vehicle on the display interface of the above-mentioned host computer.
[0007] In a third aspect, the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0008] Memory, used to store computer programs;
[0009] The processor is used to implement the steps of the domain controller testing method described in any one of the embodiments of the first aspect when executing the program stored in the memory.
[0010] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method for testing a domain controller as described in any one of the embodiments of the first aspect are implemented.
[0011] Beneficial effects of this application:
[0012] The method provided by the embodiment of the present application detects the operating status of the virtual vehicle in the above-mentioned virtual simulation scene during the process of running the virtual simulation environment in the upper computer; when it is detected that the above-mentioned operating status meets the triggering condition of the braking instruction, the braking instruction of the domain controller is triggered; the above-mentioned domain controller sends the above-mentioned braking instruction to the virtual braking system; the above-mentioned virtual braking system calculates the wheel-end pressure and wheel-end power of the above-mentioned virtual vehicle according to the above-mentioned braking instruction; the above-mentioned virtual simulation environment controls the wheel end of the above-mentioned virtual vehicle according to the above-mentioned wheel-end pressure and wheel-end power; the control result of the above-mentioned virtual vehicle is displayed on the display interface of the above-mentioned upper computer, so that when the braking function of the domain controller is tested, the desktop test system composed of the upper computer, the virtual braking system and the domain controller can be used to complete the test of the braking function of the domain controller, thereby improving the test efficiency of testing the braking function of the domain controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0014] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0015] Figure 1 A system architecture diagram of a method for testing a domain controller provided in one embodiment of the present application;
[0016] Figure 2A flowchart of a method for testing a domain controller provided by an embodiment of the present application;
[0017] Figure 3 A schematic diagram of a domain controller testing system provided by one embodiment of the present application;
[0018] Figure 4 A pressure calculation model for a domain controller testing method provided in one embodiment of the present application;
[0019] Figure 5 A calculation model of a status bit of a domain controller testing method provided in one embodiment of the present application;
[0020] Figure 6 A brake pressure and pressure state bit model of a domain controller testing method provided in one embodiment of the present application;
[0021] Figure 7 A schematic diagram of the structure of a domain controller testing system provided by one embodiment of the present application;
[0022] Figure 8 A schematic diagram of the structure of an electronic device provided in accordance with an embodiment of the present application. DETAILED DESCRIPTION
[0023] The following will describe the implementation methods of the present application with reference to the accompanying drawings and preferred embodiments. Those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific implementation methods, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are only for illustrating the present application, not for limiting the scope of protection of the present application.
[0024] In the existing technology, the automotive industry is undergoing a comprehensive transformation towards electrification and intelligent networking. Therefore, software has also become a core competitiveness. As competition in the automotive industry intensifies, more and more OEMs have joined the ranks of independently developing controller software. In the current era of software-defined cars, the iteration time cycle of software development is short, and there are many models and functions under development. In the early stage, there are many problems such as delayed functional verification due to the failure of testing to cooperate with development in a timely manner. At the same time, the test benches brought by the development supplier parts are not universal, and the problem of needing to build or renovate multiple times is also very annoying. In other words, in the existing technology, there is a problem of low efficiency in testing the braking function of the domain controller.
[0025] In order to solve this problem, the first embodiment of the present application provides a method for testing a domain controller. In this method, the domain controller is tested. The tested domain controller can be applied to Figure 1 In the system architecture shown, the system architecture includes at least a vehicle 101 and a server 102, and the vehicle 101 and the server 102 establish a communication connection. The domain controller tested in the method can be a domain controller to be installed on the vehicle 101, which is used to control the vehicle 101. Among them, the type of vehicle 101 is not limited, for example, it can be an electric vehicle (EV), a pure electric vehicle (BEV), a fuel cell electric vehicle (FCEV), a plug-in hybrid electric vehicle (PHEV) and a hybrid electric vehicle (HEV). The server 102 can be a local server, a cloud server, or a server cluster.
[0026] like Figure 2 Schematic diagram of a method for testing a domain controller of this embodiment, the method comprising:
[0027] Step 201, during the process of running the virtual simulation environment in the host computer, detecting the running state of the virtual vehicle in the virtual simulation scene;
[0028] In this embodiment, a real-time machine can be run on the host computer. The real-time machine is used to run a virtual simulation scene. The virtual simulation scene includes a virtual vehicle. The virtual vehicle can be started by the host computer to control the speed and direction of the virtual vehicle. The weather, road conditions, vehicle model, etc. in the virtual simulation scene can also be configured.
[0029] For example, in a virtual simulation scenario, a vehicle can be controlled to travel in a straight line at a constant speed.
[0030] The above-mentioned operating status may be whether there is an abnormality during the operation of the vehicle, and the abnormality may be an emergency turn of the vehicle, a sudden increase or decrease in speed, a sudden turn or locking of the vehicle tires (wheels), and other abnormal conditions.
[0031] In one embodiment, during the process of running the virtual simulation environment in the host computer, detecting the running state of the virtual vehicle in the virtual simulation scene includes: detecting the running speed and running direction of the virtual vehicle; and indicating the running state of the virtual vehicle by the running speed and running direction.
[0032] In this embodiment, the running speed and running direction of the virtual vehicle are detected. The running speed is the vehicle speed, and the running direction is the angle between the head direction of the virtual vehicle and the overall driving direction of the vehicle. The overall driving direction of the vehicle is the driving direction of the vehicle within a certain period of time. For example, if the vehicle has been driving in a straight line, the overall driving direction is one direction, but suddenly the vehicle loses control and the head turns sharply, then there is an angle between the head and the overall driving direction. By detecting the running speed and running direction, it can be detected whether the running state of the virtual vehicle is abnormal.
[0033] In one embodiment, the running state of the virtual vehicle is represented by the running speed and the running direction, including: when it is determined that the change amplitude of the running speed is less than a first threshold value, and the change amplitude of the running direction is less than a second threshold value, the running state of the virtual vehicle is determined to be a stable state; when it is determined that the change amplitude of the running speed is greater than a third threshold value, or the change amplitude of the running direction is greater than a fourth threshold value, the running state of the virtual vehicle is determined to be an emergency state, wherein the third threshold value is greater than the first threshold value, and the fourth threshold value is greater than the second threshold value.
[0034] In this embodiment, the running state of the virtual vehicle in the virtual simulation environment is detected in real time. If it is detected that the change amplitude of the running speed of the virtual vehicle is greater than the third threshold value, or the change amplitude of the running direction is greater than the fourth threshold value, the running state of the virtual vehicle is determined to be an emergency state. If it is determined that the change amplitude of the running speed is less than the first threshold value, and the change amplitude of the running direction is less than the second threshold value, the running state of the virtual vehicle is determined to be a stable state. The above-mentioned first threshold to fourth threshold values are pre-set empirical values, the third threshold value is greater than the first threshold value, and the fourth threshold value is greater than the second threshold value. In other words, if the speed change amplitude of the virtual vehicle is small, and the direction change amplitude is small, the virtual vehicle is in a stable state. If the speed change amplitude of the virtual vehicle is large, or the direction change amplitude is large, it is determined that the virtual vehicle is in an emergency state.
[0035] For example, if a vehicle is driving at a constant speed of 40 kilometers per hour and suddenly the speed drops from 40 kilometers per hour to 10 kilometers per hour, the change is too large in a short period of time. At this time, it can be considered that the virtual vehicle is in an emergency state.
[0036] Step 202, when it is detected that the running state meets the triggering condition of the braking instruction, triggering the braking instruction of the domain controller;
[0037] In this embodiment, whether the virtual vehicle is in an emergency state can be determined not only by the change in the speed or direction of the virtual vehicle, but also by triggering a braking instruction through a control operation.
[0038] In one embodiment, when it is detected that the operating state meets the triggering condition of the braking instruction, triggering the braking instruction of the domain controller includes: when the operating state is a stable state, when a braking operation is detected, determining to trigger the braking instruction; when the operating state is an emergency state, determining to trigger the braking instruction.
[0039] In this embodiment, when the vehicle is detected to be in an emergency state, a braking command is triggered, and if the vehicle is detected to be in a stable state, the braking command can be triggered by a control operation. The control operation can be an operation to control the acceleration or braking of the virtual vehicle. The control operation can be input through the input and output module of the host computer.
[0040] Step 203, the domain controller sends the braking instruction to the virtual braking system;
[0041] In this embodiment, when it is determined that the running state of the virtual vehicle is abnormal and a braking command is triggered, the domain controller can send the braking command to the virtual braking system, and the virtual braking system can calculate parameters for controlling the virtual vehicle through the braking command. For example, the parameters may be wheel end pressure and wheel end power.
[0042] Step 204, the virtual braking system calculates the wheel end pressure and wheel end power of the virtual vehicle according to the braking command;
[0043] In this embodiment, when the virtual braking system calculates the wheel-end pressure and wheel-end power of the virtual vehicle according to the braking instruction, various parameters may be considered. For example, in one embodiment, the virtual braking system calculates the wheel-end pressure and wheel-end power of the virtual vehicle according to the braking instruction, including: obtaining the control type in the braking instruction; obtaining the environmental information of the virtual simulation environment; obtaining the vehicle information of the virtual vehicle in the virtual simulation environment; and calculating the wheel-end pressure and wheel-end power of the virtual vehicle according to the control type, environmental information and vehicle information.
[0044] In this embodiment, after the braking instruction is triggered, the control type in the braking instruction can be obtained, and the environmental information of the virtual simulation environment and the vehicle information of the virtual vehicle can also be obtained, and then the wheel end pressure and wheel end power are calculated based on the control type, environmental information and vehicle information. In one embodiment, the control type includes the deceleration type and the braking type, the environmental information includes the road surface information and the weather information, and the vehicle information includes the vehicle parameters and the vehicle driving state. The wheel end pressure and wheel end power of the virtual vehicle are calculated according to the control type, environmental information and vehicle information, including: inputting the deceleration type or the braking type, the road surface information and the weather information, the vehicle parameters and the vehicle driving state into the algorithm model of the virtual braking system, and the algorithm model outputs the wheel end pressure and the wheel end power.
[0045] In this embodiment, the control type in the braking instruction may include a deceleration type and a braking type. The deceleration type and the braking type are based on the magnitude of the braking force, for example, whether the virtual vehicle is required to stop in a short time, or to decelerate slowly. If it is to decelerate slowly, it is a deceleration type, and if it is an emergency brake, it is a braking type. Whether it is an emergency brake can be determined based on the degree of depression of the brake pedal or the degree of depression of the virtual pedal. The environmental information includes road surface information and weather information. The road surface information can be the material of the road surface, the friction coefficient, the degree of potholes on the road surface, etc. The weather information can include wind direction, wind level, rain and snow weather and degree, etc. The vehicle information includes vehicle parameters and vehicle driving status. The vehicle parameters can be the model, size, wind resistance, engine type, power, etc. of the vehicle, and the vehicle driving status can be the speed, direction, and whether it is abnormal.
[0046] After acquiring the above data, the above data are input into the algorithm model of the virtual braking system, and the virtual braking system calculates the pressure and power to be applied to the tire (rim) of the virtual vehicle, that is, the wheel end pressure and wheel end power.
[0047] In one embodiment, the wheel-end pressure and wheel-end power output by the algorithm model includes: when the algorithm model outputs the wheel-end pressure and wheel-end power of each wheel among all wheels, determining that the wheel-end pressure and wheel-end power of each wheel are obtained; when the algorithm model does not output the wheel-end pressure and wheel-end power of all wheels, determining that the wheel-end pressure and wheel-end power of the wheels not output by the algorithm model remain unchanged.
[0048] In this embodiment, the output of the algorithm model of the virtual braking system may output the wheel-end pressure and wheel-end power of all wheels, or may output the wheel-end pressure and wheel-end power of some wheels. If the wheel-end pressure and wheel-end power of some wheels are output, the wheel-end pressure and wheel-end power of the remaining wheels that have not been output will maintain their original values unchanged.
[0049] Step 205, the virtual simulation environment controls the wheel ends of the virtual vehicle according to the wheel end pressure and the wheel end power;
[0050] In this embodiment, after the virtual braking system calculates the wheel-end pressure and wheel-end power, the wheel-end pressure and wheel-end power can be sent to the virtual simulation environment, and the virtual simulation environment controls the wheel ends of the virtual vehicle according to the two, such as pressurizing or depressurizing, increasing power or reducing power, etc.
[0051] Step 206: Display the control result of the virtual vehicle on the display interface of the host computer.
[0052] In one embodiment, displaying the control result of the virtual vehicle on the display interface of the upper computer includes: when the virtual vehicle brakes according to the control of wheel-end pressure and wheel-end power, determining that the domain controller has passed the test; when the virtual vehicle does not brake according to the control of wheel-end pressure and wheel-end power, determining that the domain controller has not passed the test.
[0053] In this embodiment, after the braking command is triggered due to the detection of an abnormal state of the virtual vehicle, the virtual braking system calculates the wheel-end pressure and wheel-end power to control the virtual vehicle. If the virtual vehicle in the virtual simulation environment does not respond and does not brake according to the wheel-end pressure and wheel-end power that should be followed, it can be concluded that the domain controller did not trigger the braking command. At this time, it can be considered that the domain controller is abnormal and cannot brake when the virtual vehicle is abnormal.
[0054] In one embodiment, the host computer of this embodiment includes a display, a controller and a real-time machine, the virtual simulation environment runs on the real-time machine, the display is used to display the virtual simulation environment and the virtual vehicle in the virtual simulation environment, and the controller is used to configure the domain controller. Through the display, the virtual vehicle in the virtual simulation environment can be viewed, and through the host computer, the virtual vehicle in the virtual simulation environment can be controlled.
[0055] In one embodiment, the above method also includes: triggering the Controller Deceleration Parking (CDP) deceleration function of the domain controller configured by the controller, and triggering the Electronic Stability Control (ESC) safety mode; or, triggering the CDP deceleration function of the domain controller configured by the controller, and not triggering the ESC safety mode; or, not triggering the CDP deceleration function of the domain controller configured by the controller, and triggering the ESC safety mode; or, not triggering the CDP deceleration function of the domain controller configured by the controller, and not triggering the ESC safety mode.
[0056] In this embodiment, the controller can also be used to configure whether the deceleration function and safety mode function of the domain controller are triggered. If configured not to be triggered, the domain controller will not be triggered if the vehicle is in an abnormal state because the CDP function and ESC function are set not to be triggered.
[0057] Figure 3 It is a system schematic diagram of this embodiment. This embodiment provides a method of establishing an operating logic algorithm of a braking system through a simulink model, running in a NI real-time machine, replacing traditional brake pedals and IBCU and other execution structures to test the domain controller (braking function) software, carrying a NI real-time machine through the domain controller, using matlab to establish a model algorithm of the braking execution structure, running in NI, and combining the test scene of the carsim model real-time simulation car to verify the braking function of the domain controller software, so as to solve the problem of low efficiency in testing the domain controller proposed in the above background technology. A desktop test system is constructed based on carsim, and the system includes components such as a host computer, a NI real-time machine, and a virtual braking system model algorithm. In addition, it also includes a scene display panel (display), a simulation panel, a controller, and a host computer operating system.
[0058] The scene display panel is mainly used to project and display the simulation test real car scene in the NI real-time machine, so that testers can view the test road, vehicle driving status and other test environments, and analyze them in combination with test data. The simulation panel is implemented by the NI real-time machine, which is the core of the entire simulation test and is used to run the simulation environment test in real time; the NI real-time machine provides two CAN panels for simulating the real-time CAN signal input and output of the vehicle, dynamically interacting with the controller, and running models such as the braking system in MATLAB to realize the virtual IBCU controller logic.
[0059] The host computer is used to load NI real-time machine software and CAN bus monitoring / calibration tools. The test environment is built through the system operation interface, which mainly includes test pavement, test roads, test ramps and other test environments. The test steps are executed through the operation interface of NI software, such as turning the steering wheel, braking, accelerating, shifting gears and other driving operations; and Canoe is used to monitor the data changes that need to be tested in real time.
[0060] The virtual braking system model algorithm includes: calculation of pedal status signals when the brake pedal is pressed and released, combined with the request for target braking force received from the domain controller, and then the design of logic algorithms to convert them into actual wheel-end braking force and wheel-end pressure signals, which are fed back to the domain controller and combined with the carsim dynamics model to realize real-time braking of the vehicle and other functions.
[0061] By using carsim combined with simulink model to simulate the braking system instead of the traditional braking system controller and braking execution structure in this embodiment, the basic functions of the algorithm can be verified at the beginning of the project. It can also realize automated testing, improve testing efficiency, and the test bench structure is simple, which improves the universality rate and reduces the testing cost.
[0062] like Figure 3 The domain brake controller software simulation test system in the system includes a host computer, a scene display, a brake controller, a NI real-time machine, a Vector device, a virtual brake system, and a stabilized power supply.
[0063] For the host computer No. 1, run NI real-time machine, Canoe, Simulink and other software to realize bus monitoring and recording, data calibration, test operation command issuance and other functions, which is used to build a virtual simulation vehicle test environment; NI real-time machine can realize automated testing.
[0064] Display No. 2 is used to display the test environment of the vehicle and the actual operating scenario of the test, so as to observe whether the performance of the simulated vehicle is consistent with the performance of the real vehicle during the test.
[0065] For the serial number 3Vector devices, including Canape and Canoe devices, they are used for calibration of the controller under test before and after the test, test fault injection, E2E verification, and real-time monitoring of test environment data.
[0066] The NI real-time machine is the core of the simulation test system and is used to run the simulation environment test in real time. It runs the vehicle simulation model and Simulink algorithm model internally, and receives and outputs CAN message data related to the simulated vehicle through two CAN input and output boards.
[0067] For the power supply of No. 5 / 6, connect the NI real-time machine and the display through the wiring harness to power them. In principle, 220V and 12V power supply voltages can be achieved.
[0068] For the No. 7 domain controller (brake), it is connected with the NI real-time machine, Vector device and virtual braking system through the wiring harness to realize CAN communication interaction; it receives the vehicle status signal from the No. 4 NI real-time machine, the braking status signal from the No. 8 virtual braking system and the calibration parameters of the Vector device, runs the internal application layer software, calculates the braking demand force through internal logical operations, realizes the demand instruction of the braking function and sends it to the No. 8 virtual braking system, and completes the braking function test in combination with the carsim vehicle simulation.
[0069] For the virtual braking system No. 8, the test closed-loop control is realized by receiving the braking force request and the actual pedal action request signal sent by the domain controller and combining the designed model algorithm:
[0070] 1) The model includes the calculation model of the brake pedal force, pedal travel, and virtual master cylinder pressure, such as Figure 4 shown.
[0071] 2) The model includes the calculation model of the actual wheel-end braking force of the left front wheel / right front wheel / left rear wheel / right rear wheel during braking and the actual braking force of the whole vehicle and the corresponding state position, such as Figure 5 shown.
[0072] 3) The model includes the actual wheel end brake pressure and pressure status of the left front wheel / right front wheel / left rear wheel / right rear wheel during braking, such as Figure 6 shown.
[0073] For example, here are two test examples:
[0074] First, build a test environment, according to Figure 3The test bench is constructed, step 1) using a wiring harness to connect the host computer No. 1 with the scene display No. 2, the Vector device No. 3 and the NI real-time machine No. 4; step 2) using a wiring harness to connect the NI real-time machine No. 4 with the Vector device No. 3 and the domain controller No. 7; step 3) using a wiring harness to connect the Vector device No. 3 with the brake controller No. 7; step 4) using a wiring harness to connect the power supply No. 5 with the NI real-time machine No. 4; step 5) using a wiring harness to connect the power supply No. 6 with the scene display and the domain controller under test.
[0075] Then test the preconditions: 1) The serial number 7 domain controller (under test) has been correctly flashed with the tested software; 2) After the system is powered on, the system is normal without errors; 3) The host computer opens the Canape software to load the SDF file under test, without errors, and parameter calibration can be achieved; 4) The host computer opens the Canoe software to load the DBC file, and can correctly read the Can message without message failure; 5) The host computer opens the NI real-time machine debugging test software to work normally, and the vehicle parameter settings are complete and correct.
[0076] During the test, the CDP dynamic deceleration function of the domain braking system can be tested: 1) Test steps: a. Drive the vehicle in a straight line at a constant speed of 50km / h on an asphalt road; b. Release the brake pedal and continuously send the EPB caliper clamping request command through the host computer; 2) Expected results: After continuously receiving the EPB clamping command, the domain controller activates the CDP dynamic deceleration function through internal calculations and sends the vehicle braking deceleration command to the virtual braking system. The virtual braking system calculates the actual wheel-end braking force through a logical algorithm and completes the vehicle deceleration in combination with the carsim vehicle dynamics model. When the vehicle stops, the wheel-end braking force of the virtual braking system is reduced to 0, and the CDP function in the domain controller exits the activation state.
[0077] Test domain brake system ESC control function: 1) Test steps: a. Set the test road surface to a horizontal road surface with a low adhesion coefficient of 0.2 and a road length of 20km; b. Drive the vehicle at a constant speed of 100km / h on an asphalt road in a straight line; c. Emergency step on the brake pedal. 2) Expected results: When the tire slips significantly during braking, the ESC function in the domain controller is activated, and a single-wheel braking force request is issued to the virtual braking system. The virtual braking system combines the received wheel-end target request braking force through an internal algorithm to obtain the actual wheel-end braking force, realize ESC function control, and complete vehicle stable parking.
[0078] Based on the same technical concept, the second embodiment of the present application provides a testing system for a domain controller, such as Figure 7 As shown, including:
[0079] The host computer 701 is used to detect the running state of the virtual vehicle in the virtual simulation scene during the running of the virtual simulation environment in the host computer;
[0080] In this embodiment, a real-time machine can be run on the host computer. The real-time machine is used to run a virtual simulation scene. The virtual simulation scene includes a virtual vehicle. The virtual vehicle can be started by the host computer to control the speed and direction of the virtual vehicle. The weather, road conditions, vehicle model, etc. in the virtual simulation scene can also be configured.
[0081] For example, in a virtual simulation scenario, a vehicle can be controlled to travel in a straight line at a constant speed.
[0082] The above-mentioned operating status may be whether there is an abnormality during the operation of the vehicle, and the abnormality may be an emergency turn of the vehicle, a sudden increase or decrease in speed, a sudden turn or locking of the vehicle tires (wheels), and other abnormal conditions.
[0083] The domain controller 702 is used to trigger the braking instruction of the domain controller when detecting that the running state meets the triggering condition of the braking instruction; and send the braking instruction to the virtual braking system;
[0084] In this embodiment, not only can the change in the speed or direction of the virtual vehicle be used to determine whether the virtual vehicle is in an emergency state, but a braking command can also be triggered by a control operation. When it is determined that the running state of the virtual vehicle is abnormal and a braking command is triggered, the domain controller can send the braking command to the virtual braking system, and the virtual braking system can calculate the parameters used to control the virtual vehicle through the braking command. For example, the parameters can be wheel end pressure and wheel end power.
[0085] A virtual braking system 703, used to calculate the wheel end pressure and wheel end power of the virtual vehicle according to the braking command;
[0086] In this embodiment, when the virtual braking system calculates the wheel-end pressure and wheel-end power of the virtual vehicle according to the braking instruction, various parameters may be considered. For example, in one embodiment, the virtual braking system calculates the wheel-end pressure and wheel-end power of the virtual vehicle according to the braking instruction, including: obtaining the control type in the braking instruction; obtaining the environmental information of the virtual simulation environment; obtaining the vehicle information of the virtual vehicle in the virtual simulation environment; and calculating the wheel-end pressure and wheel-end power of the virtual vehicle according to the control type, environmental information and vehicle information.
[0087] In this embodiment, after the braking instruction is triggered, the control type in the braking instruction can be obtained, and the environmental information of the virtual simulation environment and the vehicle information of the virtual vehicle can also be obtained, and then the wheel end pressure and wheel end power are calculated based on the control type, environmental information and vehicle information. In one embodiment, the control type includes the deceleration type and the braking type, the environmental information includes the road surface information and the weather information, and the vehicle information includes the vehicle parameters and the vehicle driving state. The wheel end pressure and wheel end power of the virtual vehicle are calculated according to the control type, environmental information and vehicle information, including: inputting the deceleration type or the braking type, the road surface information and the weather information, the vehicle parameters and the vehicle driving state into the algorithm model of the virtual braking system, and the algorithm model outputs the wheel end pressure and the wheel end power.
[0088] In this embodiment, the control type in the braking instruction may include a deceleration type and a braking type. The deceleration type and the braking type are determined by the magnitude of the braking force, for example, whether the virtual vehicle is required to stop in a short time or to decelerate slowly. If it is to decelerate slowly, it is a deceleration type, and if it is to brake suddenly, it is a braking type. The environmental information includes road surface information and weather information. The road surface information may include the material, friction coefficient, pothole degree of the road surface, etc. The weather information may include wind direction, wind level, rain and snow weather and degree, etc. The vehicle information includes vehicle parameters and vehicle driving status. The vehicle parameters may include the model, size, wind resistance, engine type, power, etc. of the vehicle. The vehicle driving status may include the speed, direction, and whether the vehicle is running abnormally, etc.
[0089] After acquiring the above data, the above data are input into the algorithm model of the virtual braking system, and the virtual braking system calculates the pressure and power to be applied to the tire (rim) of the virtual vehicle, that is, the wheel end pressure and wheel end power.
[0090] The host computer is also used to control the wheel ends of the virtual vehicle according to the wheel end pressure and wheel end power in the virtual simulation environment; and the control result of the virtual vehicle is displayed on the display interface of the host computer.
[0091] In this embodiment, after the virtual braking system calculates the wheel-end pressure and wheel-end power, the wheel-end pressure and wheel-end power can be sent to the virtual simulation environment, and the virtual simulation environment controls the wheel ends of the virtual vehicle according to the two, such as pressurizing or depressurizing, increasing power or reducing power, etc.
[0092] In one embodiment, displaying the control result of the virtual vehicle on the display interface of the upper computer includes: when the virtual vehicle brakes according to the control of wheel-end pressure and wheel-end power, determining that the domain controller has passed the test; when the virtual vehicle does not brake according to the control of wheel-end pressure and wheel-end power, determining that the domain controller has not passed the test.
[0093] In this embodiment, after the braking command is triggered due to the detection of an abnormal state of the virtual vehicle, the virtual braking system calculates the wheel-end pressure and wheel-end power to control the virtual vehicle. If the virtual vehicle in the virtual simulation environment does not respond and does not brake according to the wheel-end pressure and wheel-end power that should be followed, it can be concluded that the domain controller did not trigger the braking command. At this time, it can be considered that the domain controller is abnormal and cannot brake when the virtual vehicle is abnormal.
[0094] like Figure 8 As shown, the third embodiment of the present application provides an electronic device, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0095] Memory 113, used for storing computer programs;
[0096] In one embodiment, the processor 111 is configured to implement the domain controller testing method provided by any one of the aforementioned method embodiments when executing a program stored in the memory 113 .
[0097] The memory and processor in the above electronic device communicate through the communication bus and the communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0098] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0099] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0100] A fourth embodiment of the present application provides a computer-readable medium having a non-volatile program code executable by a processor.
[0101] Optionally, in an embodiment of the present application, a computer-readable medium is configured to store program code for a processor to execute the above method.
[0102] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment will not be described in detail here.
[0103] When the embodiments of the present application are specifically implemented, reference may be made to the above-mentioned embodiments, which have corresponding technical effects.
[0104] It is understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit may be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions of the present application, or a combination thereof.
[0105] For software implementation, the technology of this article can be implemented by a unit that performs the functions of this article. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.
[0106] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0107] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0108] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0109] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0110] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0111] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0112] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0113] The above embodiments are only preferred embodiments for fully illustrating the present application, and the protection scope of the present application is not limited thereto. Any equivalent substitution or change made by a person skilled in the art based on the present application is within the protection scope of the present application.
Claims
1. A method for testing a domain controller, characterized in that: The method comprises: During the process of running the virtual simulation environment in the host computer, detecting the running state of the virtual vehicle in the virtual simulation scene; When it is detected that the running state meets the triggering condition of the braking instruction, triggering the braking instruction of the domain controller; The domain controller sends the braking instruction to the virtual braking system; The virtual braking system calculates the wheel end pressure and wheel end power of the virtual vehicle according to the braking instruction; The virtual simulation environment controls the wheel ends of the virtual vehicle according to the wheel end pressure and the wheel end power; The control result of the virtual vehicle is displayed on the display interface of the host computer.
2. The method according to claim 1, characterized in that In the process of running the virtual simulation environment in the host computer, detecting the running state of the virtual vehicle in the virtual simulation scene includes: Detecting the running speed and running direction of the virtual vehicle; The running state of the virtual vehicle is represented by the running speed and the running direction.
3. The method according to claim 2, characterized in that The indicating the running state of the virtual vehicle by the running speed and the running direction includes: When it is determined that the change amplitude of the running speed is less than the first threshold value, and the change amplitude of the running direction is less than the second threshold value, determining that the running state of the virtual vehicle is a stable state; When it is determined that the change in the running speed is greater than the third threshold, or the change in the running direction is greater than the fourth threshold, the running state of the virtual vehicle is determined to be an emergency state, wherein the third threshold is greater than the first threshold, and the fourth threshold is greater than the second threshold.
4. The method according to claim 1, characterized in that When it is detected that the running state meets the triggering condition of the braking instruction, triggering the braking instruction of the domain controller includes: In the case where the running state is a stable state, when a braking operation is detected, determining to trigger the braking instruction; When the operating state is an emergency state, it is determined that the braking command is triggered.
5. The method according to claim 1, characterized in that The calculating of the wheel end pressure and wheel end power of the virtual vehicle by the virtual braking system according to the braking instruction comprises: Obtaining a control type in the braking instruction; Acquiring environmental information of the virtual simulation environment; Acquiring vehicle information of the virtual vehicle in the virtual simulation environment; The wheel end pressure and the wheel end power of the virtual vehicle are calculated according to the control type, the environmental information and the vehicle information.
6. The method according to claim 5, characterized in that The control type includes a deceleration type and a braking type, the environmental information includes road information and weather information, the vehicle information includes vehicle parameters and vehicle driving status, and the wheel end pressure and the wheel end power of the virtual vehicle are calculated according to the control type, the environmental information and the vehicle information. The deceleration type or the braking type, the road surface information and the weather information, the vehicle parameters and the vehicle driving status are input into the algorithm model of the virtual braking system, and the wheel end pressure and the wheel end power are output by the algorithm model.
7. The method according to claim 6, characterized in that Outputting the wheel end pressure and the wheel end power by the algorithm model includes: When the algorithm model outputs the wheel end pressure and the wheel end power of each wheel among all wheels, determining that the wheel end pressure and the wheel end power of each wheel are obtained; When the algorithm model does not output the wheel end pressure and the wheel end power of all wheels, it is determined that the wheel end pressure and the wheel end power of the wheels that are not output by the algorithm model remain unchanged.
8. The method according to claim 1, characterized in that Displaying the control result of the virtual vehicle on the display interface of the host computer includes: When the virtual vehicle brakes according to the control of the wheel end pressure and the wheel end power, determining that the domain controller passes the test; When the virtual vehicle does not brake according to the control of the wheel end pressure and the wheel end power, it is determined that the domain controller has failed the test.
9. The method according to claim 1, characterized in that: The host computer includes a display, a controller and a real-time machine. The virtual simulation environment runs on the real-time machine. The display is used to display the virtual simulation environment and the virtual vehicle in the virtual simulation environment. The controller is used to configure the domain controller.
10. The method according to claim 9, characterized in that The method further comprises: The CDP deceleration function of the domain controller is configured by the controller to trigger the ESC safety mode; or, The CDP deceleration function of the domain controller is configured by the controller to be triggered, and the ESC safety mode is not triggered; or, The controller is configured to not trigger the CDP deceleration function of the domain controller and trigger the ESC safety mode; or, The CDP deceleration function of the domain controller configured by the controller is not triggered, and the ESC safety mode is not triggered.
11. A domain controller testing system, characterized in that: The system comprises: The host computer is used to detect the running state of the virtual vehicle in the virtual simulation scene during the running of the virtual simulation environment in the host computer; The domain controller is used to trigger the braking instruction of the domain controller when detecting that the running state meets the triggering condition of the braking instruction; and send the braking instruction to the virtual braking system; A virtual braking system, used for calculating the wheel end pressure and wheel end power of the virtual vehicle according to the braking instruction; The host computer is also used to control the wheel ends of the virtual vehicle according to the wheel end pressure and wheel end power through the virtual simulation environment; and display the control result of the virtual vehicle on the display interface of the host computer.
12. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-10 when executing a program stored in a memory.
13. 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 method according to any one of claims 1 to 10 is implemented.
Citation Information
Cited By
Virtual vehicle test system, method and equipment
CN119882681A
