[CanTp] Vehicle Diagnostic Communication Part 25 [Simulation 13]

[CanTp] Vehicle Diagnostic Communication Part 25 [Simulation 13] 車両診断通信
[CanTp] Vehicle Diagnostic Communication Part 25 [Simulation 13]

Click here for back issues.
https://www.simulationroom999.com/blog/diagnostic-communication-en-back-issue/

Introduction.

Let’s simulate ISO-TP. series of “Let’s try to simulate ISO-TP.
This time, we will actually run a pseudo-ECU using the Python package can-isotp.

SF-SF communication with can-isotp

At first, let’s try to run it with SF-SF communication.

First, start can.logger.
Next, start the response side.
Finally, start the request side.

The resulting log is shown below.

Begin Triggerblock
 0.000000 Start of measurement
 0.000000 1  18DA10F1x       Rx   d 8 07 01 02 03 04 05 06 07
 0.022979 1  18DAF110x       Rx   d 8 07 01 02 03 04 05 06 07
End TriggerBlock

SF is a simple communication and seems to work well, although it is less challenging.

MF-MF communication with can-isotp

And MF-MF communication which seems to be difficult to understand.
This is the main one this time.

The following is a log of the same operation as that of SF.

Begin Triggerblock
 0.000000 Start of measurement
 0.000000 1  18DA10F1x       Rx   d 8 10 1E 01 02 03 04 05 06
 0.002007 1  18DAF110x       Rx   d 8 30 00 00 CC CC CC CC CC
 0.002884 1  18DA10F1x       Rx   d 8 21 07 08 09 10 01 02 03
 0.002925 1  18DA10F1x       Rx   d 8 22 04 05 06 07 08 09 10
 0.002957 1  18DA10F1x       Rx   d 8 23 01 02 03 04 05 06 07
 0.002998 1  18DA10F1x       Rx   d 8 24 08 09 10 55 55 55 55
 0.018940 1  18DAF110x       Rx   d 8 10 1E 01 02 03 04 05 06
 0.019800 1  18DA10F1x       Rx   d 8 30 00 00 55 55 55 55 55
 0.031908 1  18DAF110x       Rx   d 8 21 07 08 09 10 01 02 03
 0.031974 1  18DAF110x       Rx   d 8 22 04 05 06 07 08 09 10
 0.037773 1  18DAF110x       Rx   d 8 23 01 02 03 04 05 06 07
 0.037831 1  18DAF110x       Rx   d 8 24 08 09 10 CC CC CC CC
End TriggerBlock

I was expecting some problems, but thanks to the high level of perfection of can-isotp, it worked without a problem.

It was a good thing that we were able to see the vehicle diagnostic communication with almost no coding at all.
It is difficult to understand vehicle diagnostic communication only from classroom lectures.
Therefore, it is best to see it in action, even if it is a simulation, to understand it.

Conclusion

  • We experimented with can-isotp request-response.
  • SF-SF communication -> OK!
  • MF-MF communication -> OK!

Click here for back issues.

コメント

タイトルとURLをコピーしました