SUMMERY OF THE UTILITY MODEL
In view of this, the present invention is directed to a vehicle ecu testing system for testing a vehicle ecu simply, conveniently and accurately.
In order to achieve the above purpose, the technical scheme of the utility model is realized like this:
a vehicle ecu testing system, the system comprising: the CANoe module is connected with a vehicle control unit of the vehicle and an electric control unit to be tested; the first upper computer is used for receiving a first instruction signal of the vehicle control unit through the CANoe module, sending a second instruction signal to the electric control unit to be tested through the CANoe module, receiving a feedback signal of the electric control unit to be tested aiming at the second instruction signal through the CANoe module, and sending a feedback signal of the first instruction signal to the vehicle control unit through the CANoe module.
Further, the CANoe module comprises a first CAN channel and a second CAN channel, wherein the first CAN channel is connected with the vehicle control unit, and the second CAN channel is connected with the to-be-tested electronic control unit.
Further, the system further comprises: the CANape module is connected with the CANoe module; the second host computer is used for receiving the first instruction signal, the second instruction signal, the feedback signal aiming at the second instruction signal and the feedback signal aiming at the first instruction signal through the CANape module, and monitoring and saving the first instruction signal, the second instruction signal, the feedback signal aiming at the second instruction signal and the feedback signal aiming at the first instruction signal.
Further, the CANape module includes third CAN passageway and fourth CAN passageway, wherein, the third CAN passageway with first CAN access connection, the fourth CAN passageway with second CAN access connection.
Further, the first upper computer comprises: the first gateway interacts with the first CAN channel data, and the second gateway interacts with the second CAN channel data.
Further, the first upper computer further comprises: and the data replacement unit is connected with the first gateway and used for converting the first instruction signal into a second instruction signal and converting a feedback signal of the second instruction signal into a feedback signal of the first instruction signal.
Compared with the prior art, vehicle electrical control unit test system have following advantage:
a CANoe module and a first upper computer are adopted, wherein the CANoe module is connected with a vehicle control unit of the vehicle and an electric control unit to be tested; the first upper computer is used for receiving a first instruction signal of the vehicle control unit through the CANoe module, sending a second instruction signal to the electric control unit to be tested through the CANoe module, receiving a feedback signal of the electric control unit to be tested aiming at the second instruction signal through the CANoe module, and sending a feedback signal of the first instruction signal to the vehicle control unit through the CANoe module. By using the structure, the vehicle electric control unit can be simply, conveniently and accurately tested.
Other features and advantages of the present invention will be described in detail in the detailed description which follows.
Drawings
The accompanying drawings, which form a part hereof, are included to provide a further understanding of the invention, and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the invention without undue limitation. In the drawings:
fig. 1 is a schematic structural diagram of a vehicle electronic control unit testing system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention.
Description of reference numerals:
1 CANoe module 2 first upper computer
11 first CAN channel 12 second CAN channel
3 CANape module 4 second host computer
31 third CAN channel 32 fourth CAN channel
21 first gateway 22 second gateway
23 data replacement unit
Detailed Description
In the present invention, the embodiments and the features of the embodiments may be combined with each other without conflict.
The present invention will be described in detail with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic structural diagram of a vehicle electronic control unit testing system according to an embodiment of the present invention. As shown in fig. 1, the system includes:
the system comprises a CANoe module 1 and a first upper computer 2, wherein the CANoe module 1 is connected with a vehicle control unit of the vehicle and an electric control unit to be tested; the first upper computer 2 is configured to receive a first instruction signal of the vehicle control unit through the CANoe module 1, send a second instruction signal to the to-be-tested electronic control unit through the CANoe module 1, receive a feedback signal of the to-be-tested electronic control unit for the second instruction signal through the CANoe module 1, and send a feedback signal of the first instruction signal to the vehicle control unit through the CANoe module 1.
In particular, CANoe is a tool developed by Vector corporation for simulation and testing. A first instruction signal in the vehicle control unit is acquired through the CANoe module 1 and data storage is realized in the first upper computer 2. The signal data from the vehicle control unit is stored in the upper computer, and the electric isolation between the electric control unit to be tested and the vehicle control unit can be realized.
When the first upper computer 2 receives the first instruction signal from the vehicle control unit, a frame of second instruction signal with the same format (message ID, message period, signal name, period, encoding mode, offset, precision, position in the Layout table in the corresponding message, etc.) is created. The second command signal includes data different from the first command signal. A signal list page can be established in the first upper computer 2 by writing a CAPL script, and the signal list comprises collected command signal data of the whole vehicle controller and command signal data generated by the electric control unit. The conversion from the first instruction signal to the second instruction signal can be realized by changing the signal data of the vehicle control unit in the signal list of the first upper computer 2. The data of the second instruction signal can be stored in the first upper computer 2 in advance, and the operation only involves replacing the data in the instruction signal and does not involve method improvement.
The electric control unit to be tested controls the executing mechanism to act according to the second instruction signal, a feedback signal generated by the action and aiming at the second instruction signal is acquired by the CANoe module 1, and a CAPL script is compiled through the first upper computer 2 to realize the routing of the signal. When the first upper computer 2 receives a second instruction signal from the electric control unit to be tested, namely a frame of signal and message with the same format (message ID, message period, signal name, period, coding mode, offset, precision, position in a Layout table in the corresponding message, and the like) is created in the first upper computer 2, data in the message is replaced, and then a feedback signal aiming at the first instruction signal is sent to the vehicle controller, so that closed-loop interaction of the data is realized, and the vehicle does not have faults. The action generated by the control execution mechanism after the electric control unit to be tested receives the data signal changed by the tester is consistent with the action result generated by the control execution mechanism after the electric control unit to be tested receives the same data signal sent by the whole vehicle controller in the complete whole vehicle network.
Fig. 2 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention. As shown in fig. 2, the CANoe module 1 includes a first CAN channel 11 and a second CAN channel 12, where the first CAN channel 11 is connected to the vehicle control unit, and the second CAN channel 12 is connected to the electronic control unit to be tested.
Specifically, the CANoe module 1 may include a first CAN channel 11 and a second CAN channel 12, so that the first upper computer 2 may acquire a first instruction signal of the vehicle control unit through the first CAN channel 11, and send a second instruction signal to the to-be-tested electronic control unit through the second CAN channel 12. Or a feedback signal of the to-be-tested electronic control unit for the second instruction signal CAN be received through the second CAN channel 12, and a feedback signal of the first instruction signal is sent to the vehicle control unit through the first CAN channel 11.
Fig. 3 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention. As shown in fig. 3, the system further includes:
the CANape module 3 and the second upper computer 4 are connected, and the CANape module 3 is connected with the CANoe module 1; the second upper computer 4 is used for receiving the first instruction signal, the second instruction signal, the feedback signal aiming at the second instruction signal and the feedback signal aiming at the first instruction signal through the CANape module 3, and monitoring and storing the first instruction signal, the second instruction signal, the feedback signal aiming at the second instruction signal and the feedback signal aiming at the first instruction signal. Specifically, the CANape module 3 includes a third CAN channel 31 and a fourth CAN channel 32, wherein the third CAN channel 31 is connected with the first CAN channel 11, and the fourth CAN channel 32 is connected with the second CAN channel 12.
CANape is a tool developed by Vector for measurement and calibration. Utilize CANape module 3 and second host computer 4, can monitor and save all instruction signal and the feedback signal that produce at the test electric control unit in-process that awaits measuring to in the process of mastering the process of test or be convenient for the later stage and call test data.
Fig. 4 is a schematic structural diagram of a vehicle ecu testing system according to another embodiment of the present invention. As shown in fig. 4, the first upper computer 2 includes a first gateway 21 and a second gateway 22, where the first gateway 21 interacts with the first CAN channel 11 in data, and the second gateway 22 interacts with the second CAN channel 12 in data.
Specifically, the first gateway 21 and the second gateway 22 in the first upper computer 2 may be implemented by writing a CAPL script. Based on the first gateway 21 and the second gateway 22, communication between the first CAN channel 11 and the first upper computer 2, and communication between the second CAN channel 12 and the first upper computer 2 CAN be realized.
The first upper computer 2 further comprises a data replacement unit 23, which can be connected to the first gateway 21, and is configured to convert the first instruction signal into a second instruction signal, and convert a feedback signal of the second instruction signal into a feedback signal of the first instruction signal. That is, the data alteration and replacement in the signal described above may be performed at the data replacement unit 23.
In the embodiment of the present invention, a CANoe module and a first upper computer are adopted, wherein the CANoe module is connected with a vehicle control unit of the vehicle and an electric control unit to be tested; the first upper computer is used for receiving a first instruction signal of the vehicle control unit through the CANoe module, sending a second instruction signal to the electric control unit to be tested through the CANoe module, receiving a feedback signal of the electric control unit to be tested aiming at the second instruction signal through the CANoe module, and sending a feedback signal of the first instruction signal to the vehicle control unit through the CANoe module. By using the structure, the vehicle electric control unit can be simply, conveniently and accurately tested.
The above description is only a preferred embodiment of the present invention, and should not be taken as limiting the invention, and any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.