[Dcm] Vehicle Diagnostic Communication Part 64 [Simulation 3]

[Dcm] Vehicle Diagnostic Communication Part 64 [Simulation 3]車両診断通信
[Dcm] Vehicle Diagnostic Communication Part 64 [Simulation 3]

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

スポンサーリンク

Introduction.

Explanation of the AUTOSAR-Dcm interface.
This article will explain the configuration in a graphical representation, which will then be further broken down into sub-modules.

スポンサーリンク

Figuring out the AUTOSAR-Dcm interface specification

First of all, the following figure shows the AUTOSAR-Dcm configuration, which is the result of the previous assignment.

Figure of interface specifications,normal route,start of reception,receiving,Receiving Completed,Start of transmission,transmission,transmission complete,Dcm_MainFunction(),cyclic call(1ms),receive buffer,Dcm,Dsp,Dsd,Dsl,Solid line is event flow.,Dashed line is data flow.,Dcm_ProvideRxBuffer,Dcm_RxIndication,PduR_DcmTransmit,Dcm_TxConfirmation,once OR (Per P2expire),PduRouter,The entity of the buffer for transmission and reception is owned by Dcm, and reference passing occurs at the following timing.,- At the start of receiving,- At the start of transmission,once,PduR_CanTpStartOfReception,PduR_CanTpCopyRxData,PduR_CanTpRxIndication,CanTp_Transmit,PduR_CanTpCopyRxData,PduR_CanTpTxConfirmation,CanTp_MainFunction(),Per PDU,CanTp,Channel(1),Received(2)18DAF110,Transmission(1)18DA10F1,“Per PDU” is synonymous with "per CAN frame".,“Per P2expire is synonymous with "per NRC$78 transmission".

One new thing that has appeared is a PduRouter in the middle.
This is originally a function that is automatically generated by the configurator, but this article requires us to do our best to implement the matching.
The PduRouter is used to make the interfaces of Dcm and CanTp match up.

スポンサーリンク

Buffer for AUTOSAR-Dcm communication

There are two more points of concern: receive buffer and transmit buffer.
Both of these buffers are managed by the Dcm.

In a typical protocol stack, each layer would have its own buffer.
If memory resources are enough and the overhead of copy processing is ignorable, such an implementation would be better.

In other words, if memory resources and copy processing are to be minimized, as in the case of ECUs, it is better to use common buffers.
This is called a “memory-saving, copy-saving design and implementation policy.”
The AUTOSAR specification has such a policy.

スポンサーリンク

Internal structure of AUTOSAR-Dcm

If observed closely, the inside of AUTOSAR-Dcm is also divided into sections.

  • dsl:Diagnostic Session Layer
  • dsd:Diagnostic Service Dispatcher
  • dsp:Diagnostic Service Processing

The roles of each are as follows.

ModuleFormal nameDescription
dslDiagnostic Session LayerTiming handling and special response behavior.
dsdDiagnostic Service DispatcherAssignment of processing to each service (including decisions based on session and security).
dspDiagnostic Service ProcessingActual processing of each service and requests to the application layer.

Timing handling includes P2 time, P2* time, and S3 time.

The dsd assigns the timing to each service.
However, in reality, each session may support different services, or may be locked for security reasons.
Therefore, these are also determined here.

And dsp is the actual processing for each service.
This process itself often involves accessing information held by other functions, so it plays the role of coordinating them well.

The configuration that determines these behaviors is the hard part, though.

スポンサーリンク

Conclusion

  • The interface specification of AUTOSAR-Dcm is figured out.
    • The buffers for communication are managed by AUTOSAR-Dcm, which is a memory-saving and copy-saving design implementation.
  • AUTOSAR-Dcm consists of three sub-modules.
    • dsl: Diagnostic Session Layer.
    • dsd: Diagnostic Service Dispatcher.
    • dsp: Diagnostic Service Processing.

Click here for back issues.

コメント

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