Simulation test method, device, equipment and storage medium for vehicle data
By generating a second signal transmission channel between the ECU and the vehicle to be tested, and modifying and transmitting target test messages using external testing devices, the problem of low testing efficiency in the real vehicle environment is solved, and a more stable and efficient testing effect is achieved.
Patent Information
- Application Number
- CN202211094033.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-07
- Publication Date
- 2025-08-01
- Estimated Expiration
- 2042-09-07
AI Technical Summary
In the prior art, the actual vehicle environment testing efficiency is low, and the simulated real vehicle environment maintains a short duration, which affects the test effect.
By generating a second signal transmission channel between the ECU and the vehicle to be tested, the real message sent by the ECU is modified into a target test message using an external test device, and transmitted to the vehicle to be tested through this channel, controlling the on-off of the signal transmission channel to avoid direct transmission of the real message.
It improves the efficiency of real vehicle environmental testing, avoids interference from real messages on the test process, and ensures the stability and integrity of the test conditions.
Smart Images

Figure CN115562222B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of vehicle testing, and particularly to a method, device, equipment, and storage medium for simulating and testing vehicle data. Background Art
[0002] During real vehicle environment testing, when an external testing device simulates the message of a certain ECU and sets the period of the message to 1 ms, the CAN bus harness that receives the message will always receive the simulated message before receiving the real message. However, this solution has drawbacks. For example, if the period of the real message is 10 ms, then for the first 9 ms, there is only the simulated message on the CAN bus harness and no real message. But at the 10th ms, both the simulated message and the real message appear on the CAN bus harness, resulting in the artificially simulated environment only lasting for 9 ms. Therefore, the duration of the real vehicle environment simulated by this solution during testing is relatively short, thus affecting the testing efficiency.
[0003] Therefore, there is a technical problem of low efficiency in real vehicle environment testing in the prior art. Summary of the Invention
[0004] The main purpose of this application is to provide a method, device, equipment, and storage medium for simulating and testing vehicle data, aiming to solve the technical problem of low efficiency in real vehicle environment testing.
[0005] To achieve the above objective, this application provides a method for simulating and testing vehicle data, which is applied to a system for simulating and testing vehicle data. The system for simulating and testing vehicle data includes a BOB junction box, an ECU, an external testing device, and a vehicle under test. The CAN bus harness of the vehicle under test is electrically connected to the connector of the ECU to generate a first signal channel, enabling the ECU and the vehicle under test to communicate directly based on the first signal transmission channel; the external testing device is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, enabling the ECU and the vehicle under test to communicate indirectly based on the second signal transmission channel passing through the external testing device.
[0006] The method for simulating and testing vehicle data includes the following steps:
[0007] When the ECU detects a test instruction, it sends out a real message; wherein, the test instruction is triggered when the first signal transmission channel is disconnected.
[0008] After receiving the real message, the BOB junction box transmits the real message to the external testing device.
[0009] After receiving the real message, the external test device modifies the real message into a target test message and transmits the target test message to the vehicle under test through the second signal transmission channel for on-vehicle testing.
[0010] In a possible implementation manner of the present application, the male end of the BOB junction box is electrically connected to the plug of the ECU, the plug of the ECU is electrically connected to the CAN bus harness of the vehicle under test, a pair of CAN_H and CAN_L signal lines in the CAN bus harness led out through the plug of the ECU are electrically connected to the first plug of the BOB junction box, a pair of CAN_H and CAN_L signal lines on the first plug are electrically connected to one end of the external test device, the other end of the external test device is electrically connected to the second plug of the BOB junction box, and the female end of the BOB junction box is electrically connected to the ECU to generate the second signal channel, so that the external test device is connected in series with the ECU through the BOB junction box to generate the second signal transmission channel.
[0011] In a possible implementation manner of the present application, the step of the external test device modifying the real message into a target test message after receiving the real message includes:
[0012] When the external test device receives the real message, it runs a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value;
[0013] Based on the modified parameter to be tested, the real message is modified into a target test message.
[0014] In a possible implementation manner of the present application, the step of the external test device running a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value includes:
[0015] The external test device runs the preset script to modify the parameter value of the parameter to be tested in the real message to a first target value, where the first target value is an extreme test value not within the preset test range;
[0016] Wherein, the ECU cannot send a real message with the first target value being an extreme test value through the preset first signal transmission channel.
[0017] In a possible implementation manner of the present application, the step of the external test device modifying the real message into a target test message after receiving the real message includes:
[0018] When the external test device receives the real message, it receives the modification information input by the user based on a preset interface;
[0019] Modify the real message into a target test message based on the modification information.
[0020] In a possible implementation manner of the present application, when the external test device receives the real message, the step of receiving the modification information input by the user based on the preset interface includes:
[0021] When the external test device receives the real message, it receives the modification information input by the user based on the preset interface;
[0022] Wherein, the modification information is the second target value corresponding to the parameter to be tested in the target real message input by the user, and the target real message is selected by the user based on the message identifier displayed on the preset interface.
[0023] In a possible implementation manner of the present application, after the step of transmitting the target test message to the vehicle under test through the second signal transmission channel for on-vehicle testing, it includes:
[0024] When the external test device detects a test completion instruction, it closes the preset second signal transmission channel so that the ECU sends a real message to the vehicle under test based on the preset first signal transmission channel.
[0025] The present application further provides a simulation test device for vehicle data, and the device includes:
[0026] A sending module, configured to send a real message when detecting a test instruction; wherein, the test instruction is triggered when the first signal transmission channel is disconnected;
[0027] A transmission module, configured to transmit the real message to the external test device after receiving the real message;
[0028] A modification module, configured to modify the real message into a target test message after receiving the real message, and transmit the target test message to the vehicle under test through the second signal transmission channel for on-vehicle testing.
[0029] The present application further provides a simulation test device for vehicle data, and the device includes: a memory, a processor, and a simulation test program for vehicle data stored on the memory and executable on the processor, and the simulation test program for vehicle data is configured to implement the steps of the simulation test method for vehicle data as described in any one of the above.
[0030] The present application further provides a storage medium, on which a simulation test program for vehicle data is stored. When the simulation test program for vehicle data is executed by a processor, the steps of the simulation test method for vehicle data as described in any one of the above are implemented.
[0031] The present application provides a simulation test method for vehicle data. In the prior art, the test can only be carried out within the time limit before the real message arrives at the CAN bus harness during the test, resulting in a short duration of the simulated real vehicle environment, thereby affecting the test efficiency. In contrast, in the present application, the external test device is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle under test communicate indirectly based on the second signal transmission channel of the external test device; when starting the test, the first signal transmission channel generated by the electrical connection between the CAN bus harness of the vehicle under test and the plug of the ECU has been disconnected. Therefore, the real message sent by the ECU cannot be directly transmitted to the CAN bus harness, but is transmitted to the external test device through the BOB junction box. The external test device modifies the real message sent by the ECU into a target test message and transmits it to the vehicle under test for real vehicle testing; the present application can control the on / off of the first and second signal transmission channels. Therefore, the problem of short duration of the simulated real vehicle environment in the prior art will not occur, and the test efficiency is improved. Therefore, the present application can improve the test efficiency of the real vehicle environment. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic flowchart of the first embodiment of a simulation test method for vehicle data of the present application;
[0033] Figure 2 It is a schematic diagram of the first scenario of the simulation test method for vehicle data of the first embodiment of the present application;
[0034] Figure 3 It is a schematic diagram of the second scenario of the simulation test method for vehicle data of the first embodiment of the present application;
[0035] Figure 4 It is a schematic diagram of the third scenario of the simulation test method for vehicle data of the first embodiment of the present application;
[0036] Figure 5 It is a schematic structural diagram of a simulation test device for vehicle data in the hardware operating environment involved in the solution of the embodiment of the present application;
[0037] Figure 6 It is a schematic diagram of a simulation test device for vehicle data of the first embodiment of the present application;
[0038] The implementation, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners
[0039] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0040] An embodiment of the present invention provides a simulation test method for vehicle data. Refer to Figure 1 , Figure 1 which is a schematic flowchart of the first embodiment of a simulation test method for vehicle data of the present application.
[0041] In this embodiment, it is applied to a simulation test system for vehicle data. The simulation test system for vehicle data includes a BOB junction box, an ECU, an external test device, and a vehicle under test; the CAN bus harness of the vehicle under test is electrically connected to the plug of the ECU to generate a first signal channel, so that the ECU and the vehicle under test communicate directly based on the first signal transmission channel; the external test device is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle under test communicate indirectly based on the second signal transmission channel passing through the external test device;
[0042] The simulation test method for vehicle data includes the following steps:
[0043] Step S10: When the ECU detects a test instruction, it sends a real message; wherein, the test instruction is triggered when the first signal transmission channel is disconnected;
[0044] Step S20: After receiving the real message, the BOB junction box transmits the real message to the external test device;
[0045] Step S30: After receiving the real message, the external test device modifies the real message into a target test message and transmits the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing.
[0046] As an example, the ECU is an (Electronic Control Unit) electronic control unit in the vehicle, and each module in the vehicle is controlled by the ECU.
[0047] As an example, the ECU communicates with the vehicle under test through a plug via a signal line and is electrically connected to each node device in the vehicle under test through a plug via a power line.
[0048] As an example, the CAN bus is a serial communication network that effectively supports distributed control or real-time control and is used to connect the communication networks of various modules. The CAN bus harness includes a pair of signal lines (CAN_H and CAN_L signal lines).
[0049] As an example, the on-vehicle test is to simulate the messages sent by the ECU during the actual operation of the vehicle, and determine whether the ECU of the vehicle is normal based on the feedback of the vehicle to the simulated message.
[0050] As an example, a BOB (Break out Box) junction box can organize the connection lines between devices.
[0051] In this embodiment, the research and development background is as follows: During on-vehicle environment testing, it is often necessary to use CANoe to simulate the messages of a certain ECU and only change a certain signal value of the message to meet the prerequisite conditions required during on-vehicle testing. However, when the simulated message is sent to the CAN bus harness, the ECU itself also sends the same message, resulting in two frames of messages with the same ID on the CAN bus harness (one frame is the simulated message and the other frame is the real message), and there is a conflict in the test phenomenon. The current technical solution is that during on-vehicle testing, when the external test device simulates the message of a certain ECU, the period of the message is set to 1 ms. In this way, the CAN bus harness receiving the message will always receive the simulated message first before receiving the real message. However, this solution has drawbacks. For example, the period of the real message is 10 ms. In this case, there is only the simulated message on the CAN bus harness for the first 9 ms and no real message. But at the 10th ms, both the simulated message and the real message appear on the CAN bus harness, resulting in the artificially simulated environment only lasting for 9 ms. Therefore, the duration of the on-vehicle environment simulated by this solution during testing is short, which in turn affects the test efficiency.
[0052] In this embodiment, the scenario is as follows: During on-vehicle testing of a vehicle, an action instruction will be given to the vehicle. For example, when testing the vehicle speed controller, the test case includes testing whether the vehicle speed can reach 160 kilometers per hour. Then, during the test, step on the accelerator to make the vehicle speed reach 20 kilometers per hour. The test vehicle speed controller will send a message, and this message contains the instruction data to control the vehicle speed to 20 kilometers. However, the test case needs to test whether the vehicle can reach 160 kilometers per hour. Therefore, it is necessary to modify the data of 20 kilometers per hour in this message to 160 kilometers per hour, and then modify it again when testing other test cases. The existing technical solution can only perform tests within a limited time. Therefore, soon after the CAN bus harness receives the instruction to control the vehicle speed at 160 kilometers per hour, it will receive the instruction to control the vehicle speed at 20 kilometers per hour, which interferes with the test process. Obviously, the test efficiency is reduced.
[0053] In this embodiment, it aims to improve the test efficiency in the real vehicle environment by solving the interference of real messages to the test process.
[0054] In this embodiment, referring to Figure 2 , when receiving the start test instruction, it is determined whether the signal transmission between the ECU and the CAN bus harness has been cut off. If it has been disconnected, the real message sent by the ECU is modified to the target test message. If it has not been disconnected, the test is terminated to avoid the impact of the real message on the test process after being received by the CAN bus harness.
[0055] The specific steps are as follows:
[0056] Step S10: When the ECU detects the test instruction, it sends a real message; wherein, the test instruction is triggered when the first signal transmission channel is disconnected;
[0057] As an example, the simulation test method of vehicle data can be applied to the simulation test device of vehicle data, and the simulation test device of vehicle data belongs to the simulation test system of vehicle data.
[0058] As an example, as Figure 2 and Figure 3 shown, the simulation test system of vehicle data includes a BOB junction box, an ECU, an external test device, and a vehicle to be tested. The CAN bus harness of the vehicle to be tested is electrically connected to the plug of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested communicate directly based on the first signal transmission channel; the external test device is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested communicate indirectly based on the second signal transmission channel passing through the external test device.
[0059] As an example, the external test device is a device for testing the performance of the vehicle ECU, and the external test device can be bus development test environment software such as CANoe and TSMaster, and is not specifically limited.
[0060] For the convenience of description, the following specifically takes the external test device as CANoe for example. CANoe is a bus development environment developed by Vector Company in Germany for the development of automotive buses. CANoe is a professional tool for network and ECU development, testing, and analysis, and supports the entire system development process from requirements analysis to system implementation; TSMaster is a virtual instrument software platform launched by Tongxing Intelligence, which can connect, configure, and control all Tongxing hardware tools and devices; and realizes the functional requirements in various occasions such as automotive bus monitoring, simulation, diagnosis, calibration, and testing.
[0061] As an example, the connecting wire inside the BOB junction box is used to connect an external test device in series between the ECU and the vehicle under test, thereby cutting off the first signal channel, that is, cutting off the direct transmission between the ECU and the vehicle under test. Specifically, the operator unplug the plug of the ECU, and connect the external test device in series through the BOB junction box between the plug and the ECU to generate a second signal channel, and the first signal channel is closed.
[0062] As an example, after the first signal channel is disconnected, the signal transmission between the ECU and the vehicle under test is cut off, but the power supply wires between the ECU and the vehicle under test are not unplugged, that is, the power supply is not cut off, only the first signal transmission channel is cut off.
[0063] Specifically, the process of cutting off the first signal transmission channel and connecting the second signal transmission channel can be as follows: As Figure 3 shown, the male end of the BOB junction box is electrically connected to the plug of the ECU, the plug of the ECU is electrically connected to the CAN bus harness of the vehicle under test, a pair of CAN_H and CAN_L signal lines in the CAN bus harness led out through the plug of the ECU are electrically connected to the first plug of the BOB junction box, a pair of CAN_H and CAN_L signal lines on the first plug are electrically connected to one end of the external test device, the other end of the external test device is electrically connected to the second plug of the BOB junction box, and the female end of the BOB junction box is electrically connected to the ECU to generate the second signal channel, so that the external test device is connected in series with the ECU through the BOB junction box to generate the second signal transmission channel shown.
[0064] Specifically, if a pair of CAN_H and CAN_L signal lines used for communication between the ECU and the vehicle under test are disconnected, the signal channel is disconnected. Therefore, by leading out a pair of CAN_H and CAN_L signal lines of the first signal channel and connecting them to the external test device through the BOB box, a new second signal channel can be re-established.
[0065] As an example, the external test device is used to change the real message sent by the ECU into the target test message and send it to the vehicle under test.
[0066] As an example, CAN_H and CAN_L are part of the signal lines in the body network transmission mode. CAN_H is the high-bit data line, and CAN_L is the low-bit data line. The two are twisted together, which can make the CAN bus harness insensitive to electromagnetic interference.
[0067] As an example, if the first signal transmission between the ECU and the vehicle under test is cut off, the real message sent by the ECU cannot be directly transmitted to the vehicle under test, and the vehicle cannot give feedback on this real message; therefore, the preparation conditions for the formal test are met, and the real message sent by the ECU will be transmitted to CANoe through the CAN_H and CAN_L signal lines connected to the external test device. CANoe modifies this real message to obtain the modified target test message.
[0068] Step S20: After receiving the real message, the BOB junction box transmits the real message to the external test device;
[0069] As an example, the BOB junction box is used to transmit the real message sent by the ECU to the external test device, and is also used to transmit the target test message generated by the external test device to the CAN bus harness.
[0070] Step S30: After receiving the real message, the external test device modifies the real message into a target test message, and transmits the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing.
[0071] As an example, modifying the real message into a target test message may be to determine whether the real data in the real message sent by the ECU is within the data range of the preset test case;
[0072] As an example, the test cases for this in-vehicle test are stored in the database of CANoe. The test cases record in detail the target test object and the target test data. During the execution of the script, the target test data is called and compared with the real data in the real message sent by the ECU to determine whether the real data in the real message is within the data range of the preset test case, so as to judge whether it is necessary to modify the real data in the real message.
[0073] Specifically, if it is not within the data range of the preset test case, the real data in the real message is adjusted to the data range of the preset test case.
[0074] As an example, if the real data in the real message is not within the data range of the preset test case, that is, the preset test case of this actual vehicle test stipulates that whether the vehicle speed can reach 160 kilometers per hour to 165 kilometers per hour is tested, and the vehicle demand speed issued by the current vehicle ECU is 30 kilometers, then the real data in the real message needs to be adjusted to the data range in the preset test case, and then see whether the vehicle instrument can reach 160-165 kilometers per hour. By simulating the actual vehicle environment in the process, there will be no danger due to excessive speed. Therefore, the script can be used to create some very dangerous working conditions to test the tolerance and processing capabilities of the actual vehicle, or to reproduce some faults that are difficult to reproduce by manpower to improve the test case.
[0075] As an example, the real message data may be manually modified through the display screen of the external test device, or may be automatically modified by the external test device based on the data in the preset test case, without specific limitation.
[0076] As an example, the modified target test message is transmitted to the vehicle to be tested through an external test device for actual vehicle testing. The vehicle to be tested will respond on the instrument or components such as the headlights based on the signal of the target test message. The operator determines whether there is an abnormality in the ECU by judging whether the response is consistent with the data in the target test message.
[0077] After the step of transmitting the target test message to the vehicle to be tested via the second signal transmission channel for actual vehicle testing, the method further includes:
[0078] Step S40: When the external testing device detects the test completion instruction, it closes the preset second signal transmission channel so that the ECU sends a real message to the vehicle to be tested based on the preset first signal transmission channel.
[0079] As an example, closing the preset second signal transmission channel may be achieved by shutting down an external test device, or by an operator unplugging a pair of connected CAN_H and CAN_L signal lines.
[0080] As an example, after closing the preset second signal transmission channel, the ECU is connected to its connector, that is, the pair of CAN_H and CAN_L signal lines leading out of the connector are reconnected to the ECU, and the first signal transmission channel is connected, so that the ECU sends a real message to the vehicle under test based on the preset first signal transmission channel.
[0081] Therefore, the external test device described in the present application is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle under test communicate indirectly based on the second signal transmission channel passing through the external test device; when starting the test, the first signal transmission channel generated by the electrical connection between the CAN bus harness of the vehicle under test and the plug of the ECU has been disconnected. Therefore, the real message sent by the ECU cannot be directly transmitted to the CAN bus harness, but is transmitted to the external test device through the BOB junction box. The external test device modifies the real message sent by the ECU into a target test message and transmits it to the vehicle under test for in-vehicle testing; the present application can control the on / off of the first and second signal transmission channels, and will not have the problem of short maintenance duration of the simulated in-vehicle environment in the prior art, improving the test efficiency. Therefore, the present application can improve the in-vehicle environment test efficiency.
[0082] Further, based on the first embodiment of the present application, another embodiment of the present application is provided. In this embodiment, the step of modifying the real message into a target test message by the external test device includes:
[0083] Step A1: When the external test device receives the real message, it runs a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value;
[0084] As an example, to modify the real message into a target test message, it can also be to develop a script using a programming language that can modify the data content in the message, and CANoe executes the script to modify the parameter value of the parameter to be tested in the real message sent by the ECU to a first target value.
[0085] As an example, the parameters to be tested can be headlight brightness, vehicle speed, door switch, etc., and the parameter values of the parameters to be tested can be first gear brightness and second gear brightness, 80 yards and 150 yards, open and closed, etc.
[0086] As an example, modifying the parameter value of the parameter to be tested in the real message sent by the ECU to a first target value can be to modify the headlight brightness, vehicle speed, and door switch to third gear brightness, 155 yards, closed, etc. respectively.
[0087] Step A2: Based on the modified parameter to be tested, modify the real message into a target test message.
[0088] As an example, based on the modified parameter to be tested, the external test device modifies the real message into a target test message, that is, the original parameter to be tested in the target test message is modified to third gear brightness, 155 yards, closed, etc.
[0089] In this embodiment, the step of running the preset script to modify the parameter value of the parameter to be tested in the real message to the first target value includes:
[0090] Step B1: The external test device runs the preset script to modify the parameter value of the parameter to be tested in the real message to the first target value, where the first target value is an extreme test value not within the preset test range; wherein, the ECU cannot send the real message with the first target value being the extreme test value through the preset first signal transmission channel.
[0091] As an example, the first target value is an extreme test value not within the preset test range, where the extreme test value can be the parameter value of the corresponding parameter to be tested when an accident occurs, or the estimated parameter value of the corresponding parameter to be tested when an accident is expected to occur.
[0092] As an example, when the ECU under normal working conditions receives a message, it will judge whether the signal in the message is normal. If not, the ECU cannot send the message to the vehicle to be tested. Therefore, the ECU cannot send the real message with the first target value being the extreme test value through the preset first signal transmission channel and can only send it through the second signal transmission channel.
[0093] In this embodiment, the step of the external test device modifying the real message to the target test message after receiving the real message includes:
[0094] Step C1: When the external test device receives the real message, it receives the modification information input by the user based on the preset interface;
[0095] As an example, the external test device is provided with a display screen for displaying the parameter to be tested, the corresponding parameter value, etc. in the real message sent by the ECU, so that the operator can modify the parameter value of the parameter to be tested in the real message on the display screen.
[0096] As an example, the modification information input by the user based on the preset interface can be the modified parameter to be tested, the parameter value of the modified parameter to be tested, etc.
[0097] As an example, after the operator modifies the parameter value of the parameter to be tested in the real message on the display screen, the external test device receives the modification information input by the user based on the preset interface.
[0098] Step C2: Based on the modification information, the real message is modified to the target test message.
[0099] As an example, the external test device modifies the real message into a target test message based on the modification information, that is, the external test device modifies the parameter to be tested or the parameter value of the parameter to be tested in the real message into a target test message that is the same as the modification information input by the user based on the preset interface.
[0100] In this embodiment, the step of the external test device receiving the modification information input by the user based on the preset interface when receiving the real message includes:
[0101] Step D1: When the external test device receives the real message, it receives the modification information input by the user based on the preset interface; wherein, the modification information is the second target value corresponding to the parameter to be tested in the target real message input by the user, and the target real message is selected by the user based on the message identifier displayed on the preset interface.
[0102] As an example, the message identifier can be the ID identifier, character identifier, etc. of the message.
[0103] As an example, the user selects the second target value based on the message identifier displayed on the preset interface, that is, since the external test device may receive multiple messages at the same time, and each message has a different ID identifier, the user can select the ID identifier of the real message for which the data needs to be modified through the preset interface, and the external test device receives the second target value input by the user based on this ID identifier.
[0104] Refer to Figure 5 , Figure 5 which is a schematic diagram of the device structure of the hardware operating environment involved in the solution of the embodiment of the present application.
[0105] As Figure 5 shown, the simulation test device for vehicle data may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to realize the connection communication between the processor 1001 and the memory 1005.
[0106] Optionally, the simulation test device for vehicle data may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, sensors, a WiFi module, etc. The user interface may include a display screen and an input sub-module such as a keyboard. Optionally, the user interface may further include a standard wired interface and a wireless interface. The network interface may include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0107] Those skilled in the art can understand, Figure 5The structure of the simulation test device for vehicle data shown does not limit the device, and it may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0108] As Figure 5 shown, the memory 1005, as a storage medium, may include an operating system, a network communication module, and a simulation test program for vehicle data. The operating system is a program that manages and controls the hardware and software resources of the simulation test device for vehicle data, and supports the operation of the simulation test program for vehicle data and other software and / or programs. The network communication module is used to implement communication between the components inside the memory 1005, as well as communication with other hardware and software in the simulation test system for vehicle data.
[0109] In Figure 5 the simulation test device for vehicle data shown, the processor 1001 is used to execute the simulation test program for vehicle data stored in the memory 1005, and implement the steps of the simulation test method for vehicle data described in any one of the above.
[0110] The specific implementation manner of the simulation test device for vehicle data in this application is basically the same as each embodiment of the above simulation test method for vehicle data, and will not be elaborated here.
[0111] This application also provides a simulation test device for vehicle data. As Figure 6 shown, the device includes:
[0112] A sending module 10, configured to send a real message when the ECU detects a test instruction; wherein, the test instruction is triggered when the first signal transmission channel is disconnected;
[0113] A transmission module 20, configured to transmit the real message to the external test device after receiving the real message;
[0114] A modification module 30, configured to modify the real message into a target test message after receiving the real message, and transmit the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing.
[0115] Optionally, in a possible implementation manner of this application, the modification module 20 includes:
[0116] A first modification unit, which runs a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value when receiving the real message;
[0117] A second modification unit, configured to modify the real message into a target test message based on the modified parameter to be tested.
[0118] Optionally, in a possible implementation manner of the present application, the first modification unit is used to run the preset script to modify the parameter value of the parameter to be tested in the real message to a first target value, where the first target value is an extreme test value not within the preset test range; wherein, the ECU cannot send the real message with the first target value being the extreme test value through the preset first signal transmission channel. It is further used to receive the modification information input by the user based on the preset interface when receiving the real message; wherein, the modification information is the second target value corresponding to the parameter to be tested in the target real message input by the user, and the target real message is selected by the user based on the message identifier displayed on the preset interface.
[0119] Optionally, in a possible implementation manner of the present application, the second modification unit is used to receive the modification information input by the user based on the preset interface when receiving the real message; and is further used to modify the real message to a target test message based on the modification information.
[0120] Optionally, in a possible implementation manner of the present application, after the step of transmitting the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing, the device further includes:
[0121] A closing module, configured to close the preset second signal transmission channel when detecting a test completion instruction, so that the ECU sends a real message to the vehicle under test based on the preset first signal transmission channel.
[0122] The specific implementation manner of the vehicle data simulation test device of the present application is basically the same as that of the above-mentioned embodiments of the vehicle data simulation test method, and will not be elaborated here.
[0123] The present application further provides a storage medium, on which a vehicle data simulation test program is stored. When the vehicle data simulation test program is executed by a processor, the steps of the vehicle data simulation test method described in any one of the above are implemented.
[0124] The specific implementation manner of the storage medium of the present application is basically the same as that of the above-mentioned embodiments of the vehicle data simulation test, and will not be elaborated here.
[0125] The present application further provides a vehicle data simulation test system, and the system includes: the vehicle data simulation test system includes a BOB junction box, an ECU, an external test device, and a vehicle under test;
[0126] The CAN bus harness of the vehicle under test is electrically connected to the plug of the ECU to generate a first signal channel, so that the ECU and the vehicle under test perform direct communication based on the first signal transmission channel.
[0127] The external test device is connected in series with the ECU via the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle under test communicate indirectly based on the second signal transmission channel via the external test device;
[0128] Optionally, in a possible implementation manner of the present application, the male end of the BOB junction box is electrically connected to the plug of the ECU, the plug of the ECU is electrically connected to the CAN bus harness of the vehicle under test, and a pair of CAN_H and CAN_L signal lines in the CAN bus harness led out through the plug of the ECU are electrically connected to the first plug of the BOB junction box. A pair of CAN_H and CAN_L signal lines on the first plug are electrically connected to one end of the external test device, the other end of the external test device is electrically connected to the second plug of the BOB junction box, and the female end of the BOB junction box is electrically connected to the ECU to generate the second signal channel, so that the external test device is connected in series with the ECU via the BOB junction box to generate the second signal transmission channel shown.
[0129] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without further limitation, an element defined by the statement "including one..." does not exclude the existence of additional identical elements in the process, method, article or system including that element.
[0130] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0131] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in various embodiments of the present invention.
[0132] The above are only the preferred embodiments of the present invention, and do not thereby limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the content of the specification and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall similarly be included within the patent protection scope of the present invention.
Claims
1. A simulation test method for vehicle data, characterized in that, A simulation test system applied to vehicle data, the simulation test system of the vehicle data includes a BOB junction box, an ECU, an external test device, and a vehicle under test; The CAN bus harness of the vehicle under test is electrically connected to the plug of the ECU to generate a first signal channel, so that the ECU and the vehicle under test communicate directly based on the first signal transmission channel; The external test device is connected in series with the ECU through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle under test communicate indirectly based on the second signal transmission channel passing through the external test device; The simulation test method for vehicle data includes the following steps: When the ECU detects a test instruction, it sends a real message; wherein, the test instruction is triggered when the first signal transmission channel is disconnected; After receiving the real message, the BOB junction box transmits the real message to the external test device; After receiving the real message, the external test device modifies the real message into a target test message and transmits the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing.
2. The simulation test method for vehicle data according to claim 1, wherein The male end of the BOB junction box is electrically connected to the plug of the ECU, the plug of the ECU is electrically connected to the CAN bus harness of the vehicle under test, a pair of CAN_H and CAN_L signal lines in the CAN bus harness led out through the plug of the ECU are electrically connected to the first plug of the BOB junction box, a pair of CAN_H and CAN_L signal lines on the first plug are electrically connected to one end of the external test device, the other end of the external test device is electrically connected to the second plug of the BOB junction box, and the female end of the BOB junction box is electrically connected to the ECU to generate the second signal channel, so that the external test device is connected in series with the ECU through the BOB junction box to generate the second signal transmission channel.
3. The simulation test method for vehicle data according to claim 1, characterized in that, The step of the external test device modifying the real message into a target test message after receiving the real message includes: When the external test device receives the real message, it runs a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value; Based on the modified parameter to be tested, the real message is modified into a target test message.
4. The simulation test method for vehicle data according to claim 3, wherein, The step of running the preset script to modify the parameter value of the parameter to be tested in the real message to a first target value includes: The external test device runs the preset script to modify the parameter value of the parameter to be tested in the real message to a first target value, wherein the first target value is an extreme test value not within the preset test range; Wherein, the ECU cannot send a real message with the first target value being an extreme test value through the first signal transmission channel.
5. The simulation test method for vehicle data according to claim 4, characterized in that, The step of the external test device modifying the real message into a target test message after receiving the real message includes: When the external test device receives the real message, it receives the modification information input by the user based on a preset interface; Modify the real message into a target test message based on the modification information.
6. The simulation test method for vehicle data according to claim 5, characterized in that, When receiving the real message, the steps for the external test device to receive the modification information input by the user based on a preset interface include: When receiving the real message, the external test device receives the modification information input by the user based on a preset interface. Among them, the modification information is the second target value corresponding to the parameter to be tested in the target real message input by the user, where the target real message is selected by the user based on the message identifier displayed on the preset interface.
7. The simulation test method for vehicle data according to claim 1, characterized in that, After the step of transmitting the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing, it includes: When the external test device detects a test completion instruction, it closes the second signal transmission channel so that the ECU sends a real message to the vehicle under test based on the first signal transmission channel.
8. An analog test device for vehicle data, characterized in that, The device includes: A sending module, configured to send a real message when detecting a test instruction; among them, the test instruction is triggered when the first signal transmission channel is disconnected; A transmission module, configured to transmit the real message to an external test device after receiving the real message; A modification module, configured to modify the real message into a target test message after receiving the real message, and transmit the target test message to the vehicle under test through the second signal transmission channel for in-vehicle testing.
9. A simulation test device for vehicle data, characterized in that, The device includes: a memory, a processor, and a simulation test program for vehicle data stored on the memory and executable on the processor. The simulation test program for vehicle data is configured to implement the steps of the simulation test method for vehicle data as described in any one of claims 1 to 7.
10. A storage medium, characterized in that, A simulation test program for vehicle data is stored on the storage medium. When the simulation test program for vehicle data is executed by a processor, it implements the steps of the simulation test method for vehicle data as described in any one of claims 1 to 7.
Citation Information
Patent Citations
System and method for testing ECU
CN103455024A
Vehicle test method and apparatus and machine readable storage medium
CN109507981A