Search code examples
embeddeddiagnosticsautosar

AUTOSAR configuaration - DCM module


I am stuck at a point where I am configuring the DCM module and the current parameter I am trying to configure DcmTimStrP2AdjustServer,

The requirement is P2CAN_SERVER_MAX = 25ms; P2STARCAN_SERVER_MAX = 5000ms;

Is DcmDspSessionP2ServerMax the same as P2CAN_SERVER_MAX? and if it is the same What is the need for DcmTimStrP2AdjustServer and how do I find the best value for DcmTimStrP2AdjustServer.(The values all should be a multiple of DcmTaskTime which I find to be logical).

DcmTaskTime = 5ms;

I am following Autosar 4.0.3, using ETAS tool for configuring the parameters.


Solution

  • The adjust value is an internal value, in order to adjust the delay between the Dcm Transmit Request and the message being actually on the Bus.

    The definition of P2ServerMax and P2*ServerMax and their corresponding Adjust values is the same:

    This parameter is used to guarantee that the diagnostic response is available on the bus before reaching P2 by adjusting the current DcmDspSessionP2ServerMax. This parameter mainly represents the software architecture dependent communication delay between the time the transmission is initiated by DCM and the time when the message is actually transmitted to the bus