[Dcm] Vehicle Diagnostic Communication Part 67 [Simulation 6]

[Dcm] Vehicle Diagnostic Communication Part 67 [Simulation 6] 車両診断通信
[Dcm] Vehicle Diagnostic Communication Part 67 [Simulation 6]

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

Introduction.

Explanation of AUTOSAR-Dcm configuration.
In this article, the role of Dsl, class diagrams, etc. will be explained.

Role of AUTOSAR-Dcm Dsl

Let me explain the configuration structure of Dsl, a sub-module of AUTOSAR-Dcm.

First, let me explain the role of Dsl.
Dsl stands for Diagnostic Session Layer, and as the name suggests, it is a sub-module that manages the session layer.
Session refers to the default session and other sessions.
In addition to that, P2 time and P2* time are also added to be managed.

In summary, the following are managed

  • P2 time
  • P2* time
  • S3 time
  • PudId of CanTp for receiving
  • PduId of transmitting CanTp
  • Current session
  • Current security level
  • Diagnostic service start/stop

Well, there are more details.

AUTOSAR-Dcm Dsl Configuration Structure

I have drawn a class diagram to give you the big picture.
The following is it.

Dsl Class Diagram,Dcm_DslType,Dcm_DslCallbackDCMRequestServiceType,Dcm_DslDiagRespType,Dcm_DslProtocolType,Dcm_DslProtocolTimingType,Dcm_DslServiceRequestIndicationType,Dcm_DslSessionControlType,Dcm_DslProtocolTxType,Dcm_DslProtocolRowType,Dcm_ProtocolAddrTypeType,Dcm_DslProtocolRxType,Dcm_DslMainConnectionType,Dcm_DslRunTimeProtocolParametersType,Dcm_DslProtocolTimingRowType,Dcm_DslBufferType,Dcm_DslConnectionType,Dcm_DslBufferUserType,Dcm_DslLocalBufferType,PduInfoType,Dcm_DslBufferRuntimeType,Dcm_DsdServiceTableType,Dcm_DsdServiceType,Dcm_DspSecurityRowType,Dcm_DspSessionRowType,Callbacks on diagnostic protocol startup/termination,PduId of CanTp and Dcm side used for transmission,Definition of PduId of CanTp to be used when receiving,Association of CanTp for receiving with CanTp for transmitting,Various parameters during protocol operation,Reference to protocol parameters to be used,Actual transmitting and receiving buffer,Enable/disable status of various services,Security status associated with the service,Session state associated with the service

You would have thought, “I don’t understand this!” .
I can understand that impression.

Well, Dsl is the most complex of the three submodules in terms of complexity.
Dsp is the largest in scale.

AUTOSAR-Dcm Dsl Configuration Structure in a nutshell

Let me give you some idea of how it looks like.

First of all, the green class is a variable class, not a fixed value.
It stores parameters that change during communication and buffers for transmitting and receiving.

Next, let’s look at Dcm_DslProtocolTxType and Dcm_DslProtocolRxType, which are located in the middle of CanTp.
These contain the PduId of CanTp.
This is natural since CanTP is needed for receiving and transmitting.

Dcm_DslProtocolRowType manages parameters necessary for communication such as P2 time, P2* time, and S3 time.

Well, I think you can keep this as a general idea for now.
If you get lost, just look at the class diagram again.
There is a map, so all you have to do is to walk around.

Conclusion

  • Dsl (Diagnostic Session Layer) is Session related sub-module.
  • It manages P2 time, P2* time, S3 time, etc.
  • It also contains the PudId of CanTp that is actually used.

Click here for back issues.

コメント

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