CN115562222A - Simulation test method, device, equipment and storage medium of vehicle data - Google Patents

Simulation test method, device, equipment and storage medium of vehicle data Download PDF

Info

Publication number
CN115562222A
CN115562222A CN202211094033.8A CN202211094033A CN115562222A CN 115562222 A CN115562222 A CN 115562222A CN 202211094033 A CN202211094033 A CN 202211094033A CN 115562222 A CN115562222 A CN 115562222A
Authority
CN
China
Prior art keywords
test
message
vehicle
real
ecu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211094033.8A
Other languages
Chinese (zh)
Inventor
王亚云
方进福
张振兴
房永�
张艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Zhejiang Remote Commercial Vehicle R&D Co Ltd
Original Assignee
Zhejiang Geely Holding Group Co Ltd
Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd
Zhejiang Remote Commercial Vehicle R&D Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Geely Holding Group Co Ltd, Zhejiang Geely New Energy Commercial Vehicle Group Co Ltd, Zhejiang Remote Commercial Vehicle R&D Co Ltd filed Critical Zhejiang Geely Holding Group Co Ltd
Priority to CN202211094033.8A priority Critical patent/CN115562222A/en
Publication of CN115562222A publication Critical patent/CN115562222A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a simulation test method, a device, equipment and a storage medium of vehicle data, belonging to the technical field of automobile test.A external test device is connected with an ECU in series through a BOB junction box to generate a second signal transmission channel; when the test is started, a first signal transmission channel generated by the electrical connection of a CAN bus wire harness of the vehicle to be tested and a plug connector of the ECU is disconnected, so that a real message sent by the ECU cannot be directly transmitted to the CAN bus wire harness, but is transmitted to an external test device through a BOB junction box, the real message sent by the ECU is modified into a target test message through the external test device, and is transmitted to the vehicle to be tested so as to carry out real vehicle test; the on-off of first, second signal transmission passageway can be controlled to this application, consequently, can not appear among the prior art simulated real vehicle environment and keep long short problem, improved efficiency of software testing.

Description

Simulation test method, device, equipment and storage medium of vehicle data
Technical Field
The present application relates to the field of automotive testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for simulation testing of vehicle data.
Background
During the real vehicle environment test, when an external test device simulates a message of an ECU, the period of the message is set to 1ms, so that a CAN bus wire harness receiving the message always receives the simulated message before receiving a real message, but the scheme has the disadvantage that the period of the real message is 10ms, for example, only the simulated message is available on the CAN bus wire harness of the first 9ms, but the real message is not available, but the simulated message and the real message appear on the CAN bus wire harness of the 10ms, so that the artificially simulated environment CAN only be maintained for 9ms, and therefore, the simulated real vehicle environment is maintained for a short time during the test, and the test efficiency is further influenced.
Therefore, the technical problem of low real vehicle environment testing efficiency exists in the prior art.
Disclosure of Invention
The application mainly aims to provide a vehicle data simulation test method, device, equipment and storage medium, and aims to solve the technical problem of low real vehicle environment test efficiency.
In order to achieve the above object, the present application provides a method for simulation test of vehicle data, which is applied to a simulation test system of vehicle data, where 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 wiring harness of the vehicle to be tested is electrically connected with the plug connector of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested CAN directly communicate based on the first signal transmission channel; the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are indirectly communicated based on the second signal transmission channel of the external testing device;
the simulation test method of the vehicle data comprises the following steps:
the ECU sends out a real message when detecting a test instruction; 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;
and 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 to be tested through the second signal transmission channel so as to perform real vehicle test.
In a possible embodiment of this application, the public end of BOB terminal box with ECU's plug connector electricity is connected, ECU's plug connector with the CAN bus pencil electricity of the vehicle that awaits measuring is connected, the warp ECU's plug connector is drawn a pair of CAN _ H and CAN _ L signal line in the CAN bus pencil with the first plug electricity of BOB terminal box is connected, a pair of CAN _ H and CAN _ L signal line on the first plug with the one end electricity of external test device is connected, the other end of external test device with the second plug electricity of BOB terminal box is connected, the female end of BOB terminal box with the ECU electricity is connected, generates second signal channel, so that external test device warp the BOB terminal box with the ECU is established ties, generates shown second signal transmission passageway.
In a possible embodiment of the present application, the step of modifying, by the external test device, the real packet into the target test packet after receiving the real packet includes:
when the external testing device receives the real message, a preset script is operated to modify the parameter value of the parameter to be tested in the real message into a first target value;
and modifying the real message into a target test message based on the modified parameters to be tested.
In a possible embodiment of the present application, the step of running a preset script to modify a parameter value of a parameter to be tested in the real message to a first target value includes:
the external testing device operates the preset script to modify the parameter value of the parameter to be tested in the real message into a first target value, wherein the first target value is an extreme testing value which is not in a preset testing range;
and the ECU cannot send the real message with the first target value as the extreme test value through the preset first signal transmission channel.
In a possible embodiment of the present application, the step of modifying the real packet into the target test packet by the external test device after receiving the real packet includes:
when the external testing device receives the real message, receiving modification information input by a user based on a preset interface;
and modifying the real message into a target test message based on the modification information.
In a possible implementation manner of the present application, the step of receiving, by the external test device, modification information input by a user based on a preset interface when receiving the real packet includes:
when the external testing device receives the real message, receiving modification information input by a user based on a preset interface;
the modification information is a second target value corresponding to a parameter to be tested in a target real message input by a user, wherein the target real message is selected by the user based on a message identifier displayed on the preset interface.
In a possible implementation manner of the present application, after the step of transmitting the target test packet to the vehicle to be tested through the second signal transmission channel for performing the real vehicle test, the method includes:
and when the external test device detects a test completion instruction, closing the preset second signal transmission channel so that the ECU can send a real message to the vehicle to be tested based on the preset first signal transmission channel.
The present application further provides a simulation test device for vehicle data, the device comprising:
the sending module is used for sending a real message when a test instruction is detected; wherein the test instruction is triggered when the first signal transmission channel is disconnected;
the transmission module is used for transmitting the real message to the external test device after receiving the real message;
and the modification module is used for modifying the real message into a target test message after receiving the real message, and transmitting the target test message to the vehicle to be tested through the second signal transmission channel so as to carry out real vehicle test.
The present application further provides a simulation test device for vehicle data, the device comprising: a memory, a processor and a simulated test program of vehicle data stored on the memory and executable on the processor, the simulated test program of vehicle data being configured to implement the steps of the method of simulated testing of vehicle data as defined in any one of the above.
The present application further provides a storage medium having a vehicle data simulation test program stored thereon, wherein the vehicle data simulation test program, when executed by a processor, implements the steps of the vehicle data simulation test method according to any one of the above aspects.
Compared with the prior art, the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are in indirect communication based on the second signal transmission channel through the external testing device; when the test is started, a first signal transmission channel generated by the electrical connection between the CAN bus wire harness of the vehicle to be tested and the plug connector of the ECU is disconnected, so that a real message sent by the ECU cannot be directly transmitted to the CAN bus wire harness but is transmitted to the external test device through the BOB junction box, the real message sent by the ECU is modified into a target test message through the external test device, and the target test message is transmitted to the vehicle to be tested so as to carry out real vehicle test; the on-off of first and second signal transmission passageway can be controlled to this application, consequently, can not appear among the prior art simulated real vehicle environment and keep long short problem, improved efficiency of software testing. Therefore, the real vehicle environment testing efficiency can be improved.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating a first embodiment of a method for simulation testing vehicle data according to the present application;
FIG. 2 is a first schematic view of a simulation test method for vehicle data according to a first embodiment of the present application;
FIG. 3 is a second scenario diagram illustrating a simulation test method for vehicle data according to a first embodiment of the present application;
FIG. 4 is a third scenario diagram illustrating a simulation test method for vehicle data according to the first embodiment of the present application;
FIG. 5 is a schematic structural diagram of a device for vehicle data simulation testing of a hardware operating environment according to an embodiment of the present application;
FIG. 6 is a schematic view of a vehicle data simulation test device according to a first embodiment of the present application;
the implementation, functional features and advantages of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
An embodiment of the present invention provides a method for simulation test of vehicle data, and referring to fig. 1, fig. 1 is a schematic flow diagram of a first embodiment of a method for simulation test of vehicle data according to the present application.
In this embodiment, the system is applied to a vehicle data simulation test system, which includes a BOB junction box, an ECU, an external test device, and a vehicle to be tested; the CAN bus wiring harness of the vehicle to be tested is electrically connected with the plug connector of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested CAN directly communicate based on the first signal transmission channel; the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are in indirect communication based on the second signal transmission channel of the external testing device;
the vehicle data simulation test method comprises the following steps:
step S10: the ECU sends out a real message when detecting a test instruction; wherein the test instruction is triggered when the first signal transmission channel is disconnected;
step S20: after receiving the real message, the BOB junction box transmits the real message to the external test device;
step S30: and 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 to be tested through the second signal transmission channel so as to carry out real vehicle test.
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.
As an example, the ECU communicates with the vehicle under test through a signal line via a connector, and is electrically connected with each node device in the vehicle under test through a power line via the connector.
As an example, the CAN bus is a serial communication network that effectively supports distributed control or real-time control, a communication network for switching on the respective modules, and the CAN bus harness includes a pair of signal lines (CAN _ H and CAN _ L signal lines).
As an example, the real vehicle test is to simulate a message sent by an ECU in the actual running process of a vehicle, and determine whether the ECU of the vehicle is normal or not according to the feedback of the vehicle to the simulated message.
As an example, a BOB (Break out Box) junction Box may groom the connection lines between the devices.
In the embodiment, the research and development backgrounds are as follows: during the real vehicle environment test, the CANoe is often required to simulate the message of a certain ECU, and only a certain signal value of the message is changed, so as to achieve the precondition required during the real vehicle test. However, when the analog message is sent to the CAN bus harness, the ECU itself also sends the message, so that 2 frames of messages with the same ID (one frame is the analog message, and the other frame is the real message) exist on the CAN bus harness, and the test phenomena have conflicts. The current technical scheme is that when a real-vehicle test is carried out, an external test device sets the period of a message to 1ms when simulating the message of an ECU, so that a CAN bus wire harness receiving the message always receives the simulated message before receiving a real message, but the scheme has the defect that the period of the real message is 10ms, so that only the simulated message exists on the CAN bus wire harness of the previous 9ms, but the real message does not exist, but the simulated message and the real message appear on the CAN bus wire harness at 10ms, and the environment simulated by people CAN only be maintained for 9ms, therefore, the real-vehicle environment simulated by the scheme during the test has a short duration, and further the test efficiency is influenced.
In this embodiment, the scenario for which the method is applied is: when a vehicle is tested in a real vehicle test, the vehicle CAN make an action instruction, for example, when a vehicle speed controller is tested, a test case includes whether the test vehicle speed CAN reach 160 kilometers per hour, in the test process, an accelerator is pressed down to enable the vehicle speed to reach 20 kilometers per hour, the test vehicle speed controller CAN send a message, the message includes instruction data for controlling the vehicle speed to 20 kilometers, and the test case needs to test whether the vehicle CAN reach 160 kilometers per hour, so that the data of 20 kilometers per hour in the message needs to be modified to 160 kilometers per hour, and when other test cases are tested, the test is performed in a limited time.
In the embodiment, the method aims to improve the efficiency of the real vehicle environment test in the aspect of solving the interference of the real message on the test process.
In this embodiment, referring to fig. 2, when a test start instruction is received, it is determined whether signal transmission between the ECU and the CAN bus harness is cut off, and if the signal transmission is cut off, the real message sent by the ECU is modified into a target test message. If not, the test is terminated to avoid the influence on the test process after the real message is received by the CAN bus wire harness.
The method comprises the following specific steps:
step S10: the ECU sends out a real message when detecting a test instruction; wherein the test instruction is triggered when the first signal transmission channel is disconnected;
as an example, the simulation test method of vehicle data may be applied to a simulation test device of vehicle data subordinate to a simulation test system of vehicle data.
As an example, as shown in fig. 2 and 3, 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 wire harness of the vehicle to be tested is electrically connected with the plug connector of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested CAN directly communicate based on the first signal transmission channel; the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are indirectly communicated based on the second signal transmission channel of the external testing device.
As an example, the external testing device is a device for testing the performance of the vehicle ECU, and the external testing device may be bus development testing environment software such as CANoe and TSMaster, which is not limited in detail.
For convenience of description, the external testing device is specifically exemplified as CANoe, the CANoe is a bus development environment developed by Vector company in germany for the development of an automobile bus, and the CANoe is a professional tool for development, testing and analysis of a network and an ECU, and supports the development process of the whole system from requirement analysis to system implementation; the TSMaster is a virtual instrument software platform intelligently pushed by the same satellite, and can be used for connecting, configuring and controlling all hardware tools and equipment of the same satellite; the functional requirements of various occasions such as automobile bus monitoring, simulation, diagnosis, calibration, test and the like are realized.
As an example, the connection line in the BOB junction box is used to connect an external test device in series between the ECU and the vehicle to be tested, i.e. to cut off the first signal channel, i.e. to cut off the direct transmission between the ECU and the vehicle to be tested; specifically, an operator pulls out a plug connector of the ECU, and the external testing device is connected in series between the plug connector and the ECU through a BOB junction box to generate a second signal channel, and the first signal channel is closed.
As an example, after the first signal path is disconnected, the signal transmission between the ECU and the vehicle under test is cut off, but the power line between the ECU and the vehicle under test is not pulled out, that is, the power supply is not cut off, and only the first signal transmission path is cut off.
Specifically, the cutting of the first signal transmission channel and the connection of the second signal transmission channel may be as follows: as shown in fig. 3, the male end of the BOB junction box is electrically connected to the plug connector of the ECU, the plug connector of the ECU is electrically connected to the CAN bus harness of the vehicle to be tested, a pair of CAN _ H and CAN _ L signal lines in the CAN bus harness led out by the plug connector of the ECU is 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 is 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 to the ECU in series via the BOB junction box to generate the second signal transmission channel.
Specifically, if a pair of CAN _ H and CAN _ L signal lines for communication between the ECU and the vehicle to be tested is disconnected, the signal channel is disconnected, so that the pair of CAN _ H and CAN _ L signal lines of the first signal channel is led out and connected to an external testing device through a BOB box, and a new second signal channel CAN be reestablished.
As an example, the external testing device is configured to change the real message sent by the ECU into the target test message, and send the target test message to the vehicle to be tested.
As an example, the CAN _ H and the CAN _ L are part of signal lines in a vehicle body network transmission mode, the CAN _ H is a high-order data line, the CAN _ L is a low-order data line, and the CAN _ H and the CAN _ L are twisted together, so that the CAN bus harness is insensitive to electromagnetic interference.
As an example, if the first signal transmission between the ECU and the vehicle to be tested is cut off, the real message sent by the ECU cannot be directly transmitted to the vehicle to be tested, and the vehicle cannot make a feedback on the real message; therefore, the preparation condition of the formal test is met, the real message sent by the ECU is transmitted to the CANoe through the CAN _ H and CAN _ L signal lines connected with the external test device, and the CANoe modifies the real message to obtain the modified target test message.
Step S20: after receiving the real message, the BOB junction box transmits the real message to the external test device;
as an example, the BOB junction box is configured to transmit a real message sent by the ECU to the external test device, and is further configured to transmit a target test message generated by the external test device to the CAN bus harness.
Step S30: and 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 to be tested through the second signal transmission channel so as to carry out real vehicle test.
As an example, modifying the real message into a target test message may be determining whether real data in the real message sent by the ECU is within a data range in a preset test case;
as an example, a test case of the current real vehicle test is stored in the database of the CANoe, a target test object and target test data are recorded in the test case in detail, the target test data is called by the script in the execution process, and is compared with real data in a real message sent by the ECU, so as to determine whether the real data in the real message is within a data range in a preset test case, so as to determine whether the real data in the real message needs to be modified.
Specifically, if the actual data in the actual message is not within the data range in the preset test case, the actual data in the actual message is adjusted to be within the data range in the preset test case.
As an example, if the real data in the real message is not in the data range in the preset test case, that is, the preset test case of the current real vehicle test specifies whether the vehicle speed can reach 160 km/h to 165 km/h, and the vehicle speed required by the current vehicle ECU is 30 km, the real data in the real message needs to be adjusted in the data range in the preset test case, and then the vehicle instrument can reach 160-165 km/h, and no danger exists due to too high vehicle speed by simulating the real vehicle environment in the process, so that some dangerous working conditions can be manufactured by using the script to test the bearing capacity and the processing capacity of the real vehicle, or some faults which are difficult to reproduce by manpower are reproduced to perfect the test case.
As an example, the real message data may be modified manually through a display screen of the external test device, or may be automatically modified by the external test device based on data in the preset test case, which is not limited specifically.
As an example, the modified target test message is transmitted to a vehicle to be tested through an external test device to perform an actual vehicle test, the vehicle to be tested responds to a meter or parts such as a vehicle lamp based on a signal of the target test message, and an operator determines whether the ECU is abnormal by judging whether the response matches data in the target test message.
After the step of transmitting the target test message to the vehicle to be tested through the second signal transmission channel for real vehicle testing, the method comprises the following steps:
step S40: and when the external test device detects a test completion instruction, closing the preset second signal transmission channel so that the ECU can send a real message to the vehicle to be tested based on the preset first signal transmission channel.
As an example, the turning off of the preset second signal transmission channel may be turning off of an external testing device, or pulling out a pair of connected CAN _ H and CAN _ L signal lines by an operator.
As an example, after the preset second signal transmission channel is closed, the ECU is connected to the plug connector thereof, that is, a pair of CAN _ H and CAN _ L signal lines led out from the plug connector are reconnected to the ECU, and the first signal transmission channel is communicated, so that the ECU sends a real message to the vehicle to be tested based on the preset first signal transmission channel.
Therefore, the external test device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are indirectly communicated based on the second signal transmission channel of the external test device; when the test is started, a first signal transmission channel generated by the electrical connection between the CAN bus wiring harness of the vehicle to be tested and the plug connector of the ECU is disconnected, so that a real message sent by the ECU cannot be directly transmitted to the CAN bus wiring harness, but is transmitted to the external test device through the BOB junction box, the real message sent by the ECU is modified into a target test message through the external test device, and is transmitted to the vehicle to be tested so as to carry out real vehicle test; the on-off of first and second signal transmission passageway can be controlled to this application, and the real vehicle environment that can not appear simulating among the prior art maintains for a long time shorter problem, has improved efficiency of software testing. Therefore, the real vehicle environment testing efficiency can be improved.
Further, based on the first embodiment of the present application, another embodiment of the present application is provided, in which the step of modifying the real packet into the target test packet by the external test device after receiving the real packet includes:
step A1: when the external testing device receives the real message, a preset script is operated to modify the parameter value of the parameter to be tested in the real message into a first target value;
as an example, the real message is modified into a target test message, or a set of scripts capable of modifying data content in the message is developed by using a programming language, and the CANoe executes the scripts to modify parameter values of parameters to be tested in the real message sent by the ECU into a first target value.
As an example, the parameters to be tested can be the brightness of a vehicle lamp, the vehicle speed, the opening and closing of a vehicle door and the like, and the parameter values of the parameters to be tested can be the first-gear brightness and the second-gear brightness, 80 codes and 150 codes, opening and closing and the like respectively.
As an example, the parameter value of the parameter to be tested in the real message sent by the ECU is modified to the first target value, which may be to modify the brightness of the vehicle lamp, the vehicle speed and the switch of the vehicle door to three-gear brightness, 155 codes, off, etc.
Step A2: and modifying the real message into a target test message based on the modified parameters to be tested.
As an example, based on the modified parameters to be tested, the external test device modifies the real message into the target test message, i.e. the original parameters to be tested in the target test message are modified into three-level brightness, 155 codes, off, etc.
In this embodiment, the step of operating a preset script to modify a parameter value of a parameter to be tested in the real message to a first target value includes:
step B1: the external testing device operates the preset script to modify the parameter value of the parameter to be tested in the real message into a first target value, wherein the first target value is an extreme testing value which is not in a preset testing range; and the ECU cannot send the real message with the first target value as the extreme test value through the preset first signal transmission channel.
As an example, the first target value is an extreme test value that is not within a preset test range, where the extreme test value may be a parameter value of a corresponding parameter to be tested when an accident occurs, and may be an estimated parameter value of the corresponding parameter to be tested when the accident occurs.
As an example, when receiving a message, the ECU under a normal working condition may determine whether a signal in the message is normal, and if not, the ECU cannot send the message to the vehicle to be tested, so that 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 only can send the real message through the second signal transmission channel.
In this embodiment, the step of modifying, by the external test device, the real packet into the target test packet after receiving the real packet includes:
step C1: when the external testing device receives the real message, receiving modification information input by a user based on a preset interface;
as an example, the external testing device is provided with a display screen for displaying the parameters to be tested, the corresponding parameter values, and the like in the real message sent by the ECU, so that an operator can modify the parameter values of the parameters to be tested in the real message on the display screen.
As an example, the modification information input by the user based on the preset interface may be a modified parameter to be tested, a modified parameter value of the parameter to be tested, and the like.
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 testing device receives modification information input by the user based on a preset interface.
And C2: and modifying the real message into a target test message based on the modification information.
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 a parameter to be tested or a parameter value of the parameter to be tested in the real message into the target test message which is the same as the modification information input by the user based on a preset interface.
In this embodiment, when receiving the real packet, the external test device receives modification information input by a user based on a preset interface, and the step includes:
step D1: when the external testing device receives the real message, receiving modification information input by a user based on a preset interface; the modification information is a second target value corresponding to a parameter to be tested in a target real message input by a user, wherein the target real message is selected by the user based on a message identifier displayed on the preset interface.
As an example, the message identification may be an ID identification, a character identification, or the like of the message.
As an example, the user selects to obtain the second target value based on the message identifier displayed on the preset interface, that is, since the external testing device may receive multiple messages at the same time, each message has a different ID identifier, the user may select the ID identifier of the real message whose data needs to be modified through the preset interface, and the external testing device receives the second target value input by the user based on the ID identifier.
Referring to fig. 5, fig. 5 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present application.
As shown in fig. 5, the simulation test apparatus of vehicle data may include: a processor 1001, a memory 1005, and a communication bus 1002. The communication bus 1002 is used to enable connection communication between the processor 1001 and the memory 1005.
Optionally, the device for analog testing of vehicle data may further include a user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, a WiFi module, and the like. The user interface may comprise a Display screen (Display), an input sub-module such as a Keyboard (Keyboard), and the optional user interface may also comprise a standard wired interface, a wireless interface. The network interface may include a standard wired interface, a wireless interface (e.g., WI-FI interface).
Those skilled in the art will appreciate that the configuration of the vehicle data simulation test apparatus shown in FIG. 5 does not constitute a limitation of the apparatus, and may include more or fewer components than shown, or some components combined, or a different arrangement of components.
As shown in fig. 5, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, and a simulation test program of vehicle data. The operating system is a program that manages and controls the hardware and software resources of the simulation test equipment for vehicle data, 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 various components inside the memory 1005 and communication with other hardware and software in the vehicle data simulation test system.
In the vehicle data simulation test apparatus shown in fig. 5, the processor 1001 is configured to execute a simulation test program of vehicle data stored in the memory 1005 to implement the steps of any one of the vehicle data simulation test methods described above.
The specific implementation of the vehicle data simulation test device of the present application is substantially the same as that of each embodiment of the vehicle data simulation test method, and is not described herein again.
The present application also provides a simulation test device for vehicle data, as shown in fig. 6, the device includes:
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;
a transmission module 20, configured to transmit the real packet to the external test device after receiving the real packet;
and the modification module 30 is 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 to be tested through the second signal transmission channel, so as to perform a real vehicle test.
Optionally, in a possible implementation manner of the present application, the modifying module 20 includes:
the first modification unit is used for operating a preset script to modify the parameter value of the parameter to be tested in the real message into a first target value when the real message is received;
and the second modification unit is used for modifying the real message into a target test message based on the modified parameters to be tested.
Optionally, in a possible embodiment of the present application, the first modifying unit is configured to run the preset script to modify a parameter value of a parameter to be tested in the real message to a first target value, where the first target value is an extreme test value that is not within a preset test range; and the ECU cannot send the real message with the first target value as the extreme test value through the preset first signal transmission channel. The message processing module is also used for receiving modification information input by a user based on a preset interface when the real message is received; the modification information is a second target value corresponding to a parameter to be tested in a target real message input by a user, wherein the target real message is selected by the user based on a message identifier displayed on the preset interface.
Optionally, in a possible implementation manner of the present application, the second modifying unit is configured to receive, when the real packet is received, modifying information input by a user based on a preset interface; and the real message is modified into a target test message based on the modification information.
Optionally, in a possible implementation manner of the present application, after the step of transmitting the target test packet to the vehicle to be tested through the second signal transmission channel for performing the real vehicle test, the apparatus further includes:
and the closing module is used for closing the preset second signal transmission channel when a test completion instruction is detected, so that the ECU can send a real message to the vehicle to be tested based on the preset first signal transmission channel.
The specific implementation of the vehicle data simulation test device of the present application is substantially the same as that of each embodiment of the vehicle data simulation test method described above, and is not described herein again.
The present application further provides a storage medium having a vehicle data simulation test program stored thereon, wherein the vehicle data simulation test program, when executed by a processor, implements the steps of the vehicle data simulation test method according to any one of the above aspects.
The specific implementation of the storage medium of the present application is substantially the same as that of each of the above-described embodiments of the vehicle data simulation test, and is not described herein again.
The present application further provides a simulation test system for vehicle data, the system comprising: the vehicle data simulation test system comprises a BOB junction box, an ECU, an external test device and a vehicle to be tested;
the CAN bus wire harness of the vehicle to be tested is electrically connected with the plug connector of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested CAN directly communicate based on the first signal transmission channel;
the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are in indirect communication based on the second signal transmission channel of the external testing device;
optionally, in a possible embodiment of the present application, the male end of the BOB junction box is electrically connected to the plug connector of the ECU, the plug connector of the ECU is electrically connected to the CAN bus harness of the vehicle to be tested, the pair of CAN _ H and CAN _ L signal lines in the CAN bus harness led out by the plug connector of the ECU is electrically connected to the first plug of the BOB junction box, the pair of CAN _ H and CAN _ L signal lines on the first plug is 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, the female end of the BOB junction box is electrically connected to the ECU, and the second signal channel is generated, so that the external test device is connected to the ECU in series via the BOB junction box to generate the second signal transmission channel.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of other like elements in a process, method, article, or system comprising the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (10)

1. The vehicle data simulation test method is characterized by being applied to a vehicle data simulation test system, wherein the vehicle data simulation test system comprises a BOB junction box, an ECU, an external test device and a vehicle to be tested;
the CAN bus wire harness of the vehicle to be tested is electrically connected with the plug connector of the ECU to generate a first signal channel, so that the ECU and the vehicle to be tested CAN directly communicate based on the first signal transmission channel;
the external testing device is connected with the ECU in series through the BOB junction box to generate a second signal transmission channel, so that the ECU and the vehicle to be tested are in indirect communication based on the second signal transmission channel of the external testing device;
the simulation test method of the vehicle data comprises the following steps:
the ECU sends out a real message when detecting a test instruction; 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;
and 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 to be tested through the second signal transmission channel so as to perform real vehicle test.
2. The method according to claim 1, wherein a male end of the BOB junction box is electrically connected to a connector of the ECU, the connector of the ECU is electrically connected to a CAN bus harness of the vehicle to be tested, a pair of CAN _ H and CAN _ L signal lines of the CAN bus harness led out through the connector of the ECU is electrically connected to a first plug of the BOB junction box, a pair of CAN _ H and CAN _ L signal lines on the first plug is electrically connected to one end of the external test apparatus, the other end of the external test apparatus is electrically connected to a second plug of the BOB junction box, and a female end of the BOB junction box is electrically connected to the ECU to generate the second signal channel, so that the external test apparatus is connected to the ECU through the BOB junction box in series to generate the second signal transmission channel.
3. The method for simulation test of vehicle data according to claim 1, wherein the step of modifying the real message into a target test message by the external test device after receiving the real message comprises:
when the external testing device receives the real message, a preset script is operated to modify the parameter value of the parameter to be tested in the real message into a first target value;
and modifying the real message into a target test message based on the modified parameters to be tested.
4. The method for simulation test of vehicle data according to claim 3, wherein the step of running a preset script to modify the parameter value of the parameter to be tested in the real message to a first target value comprises:
the external testing device operates the preset script to modify the parameter value of the parameter to be tested in the real message into a first target value, wherein the first target value is an extreme testing value which is not in a preset testing range;
and the ECU cannot send the real message with the first target value as the extreme test value through the preset first signal transmission channel.
5. The method for simulation test of vehicle data according to claim 4, wherein the step of modifying the real message into the target test message by the external test device after receiving the real message comprises:
when the external testing device receives the real message, receiving modification information input by a user based on a preset interface;
and modifying the real message into a target test message based on the modification information.
6. The method for simulation test of vehicle data according to claim 5, wherein the step of receiving the modification information inputted by the user based on a preset interface when the external test device receives the real message comprises:
when the external testing device receives the real message, receiving modification information input by a user based on a preset interface;
the modification information is a second target value corresponding to a parameter to be tested in a target real message input by a user, wherein the target real message is selected by the user based on a message identifier displayed on the preset interface.
7. The method for simulation test of vehicle data according to claim 1, wherein the step of transmitting the target test message to the vehicle under test via the second signal transmission channel for real vehicle test comprises:
and when the external test device detects a test completion instruction, closing the preset second signal transmission channel so that the ECU can send a real message to the vehicle to be tested based on the preset first signal transmission channel.
8. An apparatus for simulation testing of vehicle data, the apparatus comprising:
the sending module is used for sending a real message when a test instruction is detected; wherein the test instruction is triggered when the first signal transmission channel is disconnected;
the transmission module is used for transmitting the real message to the external test device after receiving the real message;
and the modification module is used for modifying the real message into a target test message after receiving the real message, and transmitting the target test message to the vehicle to be tested through the second signal transmission channel so as to carry out real vehicle test.
9. An apparatus for simulation testing of vehicle data, the apparatus comprising: a memory, a processor and a simulated test program of vehicle data stored on the memory and executable on the processor, the simulated test program of vehicle data being configured to implement the steps of the method of simulated testing of vehicle data as claimed in any one of claims 1 to 7.
10. A storage medium, characterized in that the storage medium has stored thereon a simulation test program of vehicle data, which when executed by a processor implements the steps of the simulation test method of vehicle data according to any one of claims 1 to 7.
CN202211094033.8A 2022-09-07 2022-09-07 Simulation test method, device, equipment and storage medium of vehicle data Pending CN115562222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211094033.8A CN115562222A (en) 2022-09-07 2022-09-07 Simulation test method, device, equipment and storage medium of vehicle data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211094033.8A CN115562222A (en) 2022-09-07 2022-09-07 Simulation test method, device, equipment and storage medium of vehicle data

Publications (1)

Publication Number Publication Date
CN115562222A true CN115562222A (en) 2023-01-03

Family

ID=84739441

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211094033.8A Pending CN115562222A (en) 2022-09-07 2022-09-07 Simulation test method, device, equipment and storage medium of vehicle data

Country Status (1)

Country Link
CN (1) CN115562222A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116866240A (en) * 2023-07-13 2023-10-10 上海庭臻信息科技有限公司 CAN bus test method, device and system, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116866240A (en) * 2023-07-13 2023-10-10 上海庭臻信息科技有限公司 CAN bus test method, device and system, electronic equipment and storage medium
CN116866240B (en) * 2023-07-13 2024-04-12 上海庭臻信息科技有限公司 CAN bus test method, device and system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107885097B (en) Nuclear power station simulator control system DCS transformation closed loop verification system and method
CN105866575B (en) Vehicle-mounted display comprehensive testing device and testing method
CN111221325B (en) Hardware-in-loop test system and method
CN109740222B (en) Testing device and system for automobile networking scene
CN109240261B (en) HIL (hardware-in-the-loop) testing method for vehicle networking performance testing
CN110855558B (en) Internet of vehicles gateway and CANoverTCP/IP protocol connection realization method, ECU and upgrading method
CN109726061B (en) SoC chip verification method
CN103558849B (en) A kind of method of pure electric automobile control strategy debugging and network test
CN115562222A (en) Simulation test method, device, equipment and storage medium of vehicle data
CN112937914B (en) Ground simulation instruction processing method for aircraft complete machine test
CN104914845A (en) Vehicle body controller fault test method and system based on industrial personal computer
CN114510006A (en) Remote testing method, device, equipment and storage medium for cabin domain controller
CN113110394B (en) Multi-controller combined hardware-in-loop test system and method
CN112860559B (en) Upgrade test system and method
CN114113859A (en) Electrical function testing device and testing method for automobile combination instrument
US20060100841A1 (en) Automatic system and method for testing mobile phone
CN115134280B (en) Fault testing system and method for vehicle-mounted Ethernet
CN116448158A (en) Method and device for testing combination instrument in vehicle and electronic device
CN116224963A (en) Automatic testing device of remote vehicle control system and construction method thereof
CN114594754A (en) HIL automatic test method and system for vehicle networking controller
CN114793346A (en) Whole vehicle networking NV-IOT test system and method in anechoic chamber
CN114328229A (en) Over-the-air technology test system
CN114722545A (en) Method and device for determining and displaying electrified state of power transmission system equipment
CN116261165B (en) Reliability test method and system for Internet of vehicles module
CN117215253B (en) IO module debugging method based on configuration software

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination