实例介绍
【实例截图】AUTOSAR_SWS_DiagnosticCommunicationManager.pdf
【核心代码】
Table of Contents 1 Introduction and functional overview 21 2 Acronyms and Abbreviations 23 2.1 Typographical Conventions . . . . . . . . . . . . . . . . . . . . . . . . . 25 3 Related documentation 25 3.1 Input documents & related standards and norms . . . . . . . . . . . . 25 3.2 Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 4 Constraints and assumptions 27 4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 4.2 Applicability to car domains . . . . . . . . . . . . . . . . . . . . . . . . 28 4.3 Applicability to emission-related environments (OBD) . . . . . . . . . . 28 5 Dependencies to other modules 29 5.1 File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 6 Requirements Tracing 32 7 Functional specification 45 7.1 Error Classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45 7.1.1 Development Errors . . . . . . . . . . . . . . . . . . . . . . . 45 7.1.2 Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . 46 7.1.3 Transient Faults . . . . . . . . . . . . . . . . . . . . . . . . . 46 7.1.4 Production Errors . . . . . . . . . . . . . . . . . . . . . . . . 46 7.1.5 Extended Production Errors . . . . . . . . . . . . . . . . . . . 46 7.2 General design elements . . . . . . . . . . . . . . . . . . . . . . . . . . 47 7.2.1 Submodules within the Dcm module . . . . . . . . . . . . . . 47 7.2.2 Negative Response Code (NRC) . . . . . . . . . . . . . . . . 48 7.2.3 Non-volatile information . . . . . . . . . . . . . . . . . . . . . 48 7.2.4 Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 7.2.4.1 Atomic types overview . . . . . . . . . . . . . . . . . 49 7.2.4.2 Data array types overview . . . . . . . . . . . . . . . 49 7.2.4.3 Data types constraints . . . . . . . . . . . . . . . . . 49 7.2.4.4 Dcm_OpStatusType . . . . . . . . . . . . . . . . . . 51 7.2.4.5 Dcm_SesCtrlType . . . . . . . . . . . . . . . . . . . 51 7.3 Diagnostic Session Layer (DSL) . . . . . . . . . . . . . . . . . . . . . . 51 7.3.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51 7.3.2 Use cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52 7.3.3 Interaction with other modules . . . . . . . . . . . . . . . . . 52 7.3.4 Functional description . . . . . . . . . . . . . . . . . . . . . . 52 7.3.4.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . 52 7.3.4.2 Forward requests from the PduR module to the DSD submodule . . . . . . . . . . . . . . . . . . . . . . . 53 7.3.4.2.1 Dcm_StartOfReception . . . . . . . . . . . . . 54 6 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 7.3.4.2.2 Dcm_CopyRxData . . . . . . . . . . . . . . . . 55 7.3.4.2.3 Dcm_TpRxIndication . . . . . . . . . . . . . . 56 7.3.4.3 Concurrent ”TesterPresent” (”keep alive logic”) . . . 56 7.3.4.3.1 Dcm_CopyTxData . . . . . . . . . . . . . . . . 57 7.3.4.3.2 Dcm_TpTxConfirmation . . . . . . . . . . . . . 57 7.3.4.4 Forward responses from the DSD submodule to the PduR module . . . . . . . . . . . . . . . . . . . . . . 58 7.3.4.5 Generic Connection Handling . . . . . . . . . . . . . 59 7.3.4.6 Guarantee timing to tester by sending busy responses 60 7.3.4.7 Support of periodic transmission . . . . . . . . . . . 60 7.3.4.8 Support of ROE transmission . . . . . . . . . . . . . 61 7.3.4.8.1 ResponseOnEvent StateChar . . . . . . . . . 61 7.3.4.8.1.1 Initializing Dcm (1) . . . . . . . . . . . . 62 7.3.4.8.1.2 Transition from ’ROE cleared’ to ’ROE stopped’ (2) . . . . . . . . . . . . . . . . 62 7.3.4.8.1.3 Transition from ’ROE stopped’ to ’ROE cleared’ (3) . . . . . . . . . . . . . . . . 62 7.3.4.8.1.4 Transition from ’ROE stopped’ to ’ROE started’ (4) . . . . . . . . . . . . . . . . 62 7.3.4.8.1.5 Transition from ’ROE started’ to ’ROE stopped’ (5) . . . . . . . . . . . . . . . . 63 7.3.4.8.1.6 Transition from ’ROE started’ to ’ROE started’ (6) . . . . . . . . . . . . . . . . 63 7.3.4.8.1.7 Transition from ’ROE started’ to ’ROE cleared’ (7) . . . . . . . . . . . . . . . . 63 7.3.4.8.1.8 Transition from ’ROE cleared’ to ’ROE cleared’ (8) . . . . . . . . . . . . . . . . 63 7.3.4.8.1.9 Transition from ’ROE cleared’ to ’ROE started’ (9) . . . . . . . . . . . . . . . . 64 7.3.4.8.1.10 Transition from ’ROE stopped’ to ’ROE stopped’ (10) . . . . . . . . . . . . . . . 64 7.3.4.8.2 ROE sub-functions . . . . . . . . . . . . . . . 64 7.3.4.8.3 EventWindowTime and StorageState . . . . . 65 7.3.4.8.4 Pre-configuration of ResponseOnEvent . . . . 67 7.3.4.8.5 Handling of event-trigger . . . . . . . . . . . . 67 7.3.4.8.5.1 ROE event-trigger onDTCStatusChange (0x01) . . . . . . . . . . . . 67 7.3.4.8.5.2 ROE event-trigger onChangeOfDataIdentifier (0x03) . . . . . . . . . . . 68 7.3.4.8.6 Trigger a ServiceToRespondTo . . . . . . . . . 68 7.3.4.8.7 Send a ServiceToRespondTo . . . . . . . . . . 69 7.3.4.8.7.1 Roe transmission cycle . . . . . . . . . 70 7.3.4.8.8 ResponseOnEvent in multiple client environments . . . . . . . . . . . . . . . . . . . . . . . 70 7.3.4.9 Support of segmented response (paged-buffer) . . . 71 7 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 7.3.4.10 Support of ResponsePending response triggered by the Application . . . . . . . . . . . . . . . . . . . . . 71 7.3.4.11 Manage security level . . . . . . . . . . . . . . . . . 72 7.3.4.11.1 Initialization sequence . . . . . . . . . . . . . . 72 7.3.4.11.2 AttemptCounter update . . . . . . . . . . . . . 73 7.3.4.12 Manage session state . . . . . . . . . . . . . . . . . 74 7.3.4.13 Keep track of active non-default sessions . . . . . . 74 7.3.4.14 Allow to modify timings . . . . . . . . . . . . . . . . . 75 7.3.4.15 Handling of different diagnostic protocols . . . . . . 75 7.3.4.15.1 Different service tables . . . . . . . . . . . . . 76 7.3.4.15.2 Prioritization of protocol . . . . . . . . . . . . . 76 7.3.4.15.3 Preemption of protocol . . . . . . . . . . . . . 76 7.3.4.15.4 Parallel OBD and UDS protocol processing . . 78 7.3.4.15.5 Detection of protocol start . . . . . . . . . . . . 78 7.3.4.15.6 Protocol stop . . . . . . . . . . . . . . . . . . . 79 7.3.4.16 Manage resources . . . . . . . . . . . . . . . . . . . 79 7.3.4.17 Communication Mode Handling . . . . . . . . . . . . 80 7.3.4.17.1 No Communication . . . . . . . . . . . . . . . 80 7.3.4.17.2 Silent Communication . . . . . . . . . . . . . . 81 7.3.4.17.3 Full Communication . . . . . . . . . . . . . . . 82 7.3.4.17.4 Diagnostic Activation State . . . . . . . . . . . 82 7.4 Diagnostic Service Dispatcher (DSD) . . . . . . . . . . . . . . . . . . . 83 7.4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 7.4.2 Use cases . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83 7.4.2.1 Receive a request message and transmit a positive response message . . . . . . . . . . . . . . . . . . . 84 7.4.2.2 Receive a request message and suppress a positive response . . . . . . . . . . . . . . . . . . . . . . . . 84 7.4.2.3 Receive a request message and suppress a negative response . . . . . . . . . . . . . . . . . . . . . . . . 84 7.4.2.4 Receive a request message and transmit a negative response message . . . . . . . . . . . . . . . . . . . 85 7.4.2.5 Send a positive response message without corresponding request . . . . . . . . . . . . . . . . . . . . 85 7.4.2.6 Segmented Responses (paged-buffer) . . . . . . . . 86 7.4.3 Interaction of the DSD with other modules . . . . . . . . . . . 86 7.4.3.1 Interaction of the DSD with the DSL main functionality 86 7.4.3.2 Interaction of the DSD with the DSP . . . . . . . . . . 87 7.4.4 Functional Description of the DSD . . . . . . . . . . . . . . . 87 7.4.4.1 Support checking the diagnostic service identifier and adapting the diagnostic message . . . . . . . . 87 7.4.4.2 Handling of "suppressPosRspMsgIndicationBit" . . . 88 7.4.4.3 Verification functionality . . . . . . . . . . . . . . . . 89 7.4.4.3.1 Verification of the Diagnostic Session . . . . . 90 7.4.4.3.2 Verification of the Service Security Access levels 90 7.4.4.3.3 Verification of the Service mode dependencies 91 8 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 7.4.4.4 Check format and subfunction support . . . . . . . . 91 7.4.4.4.1 Verification of the Manufacturer Application environment/permission . . . . . . . . . . . . . . 91 7.4.4.4.2 Verification of the Supplier Application environment/permission . . . . . . . . . . . . . . . . . 92 7.4.4.5 Distribution of diagnostic message to DSP submodule 93 7.4.4.6 Assemble positive or negative response . . . . . . . 93 7.4.4.6.1 Positive Response . . . . . . . . . . . . . . . . 93 7.4.4.6.2 Negative Response . . . . . . . . . . . . . . . 94 7.4.4.6.3 Suppression of response . . . . . . . . . . . . 94 7.4.4.7 Initiate transmission . . . . . . . . . . . . . . . . . . 94 7.5 Diagnostic Service Processing (DSP) . . . . . . . . . . . . . . . . . . . 96 7.5.1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 7.5.1.1 Check format and subfunction support . . . . . . . . 96 7.5.1.2 Assemble response . . . . . . . . . . . . . . . . . . 96 7.5.1.3 Negative Response Codes handling . . . . . . . . . 97 7.5.1.4 Diagnostic mode declaration groups . . . . . . . . . 97 7.5.1.5 Mode dependent request execution . . . . . . . . . . 99 7.5.1.6 Sender/Receiver Communication . . . . . . . . . . . 101 7.5.1.7 Passing SwDataDefProps properties from DEXT file to the Dcm Service SW-C . . . . . . . . . . . . . . . . 102 7.5.1.7.1 DcmDspDiagnosticDataElementRef workflow . . . . . . . . . . . . . . . . . . . . . 103 7.5.1.7.2 DcmDspAlternativeDataType.DcmApplicationDataType workflow . . . . . . . . . . . . . . . . . . . . . 104 7.5.1.8 Asynchronous call behavior . . . . . . . . . . . . . . 104 7.5.2 UDS Services . . . . . . . . . . . . . . . . . . . . . . . . . . 105 7.5.2.1 General behavior using DEM interfaces . . . . . . . 106 7.5.2.2 Service 0x10 - Diagnostic Session Control . . . . . . 107 7.5.2.3 Service 0x11 - ECUReset . . . . . . . . . . . . . . . 108 7.5.2.4 Service 0x14 - Clear Diagnostic Information . . . . . 109 7.5.2.5 Service 0x19 - Read DTC Information . . . . . . . . . 111 7.5.2.5.1 Subfunctions 0x01, 0x07, 0x11 and 0x12 . . . 111 7.5.2.5.2 Subfunctions 0x02, 0x0A, 0x0F, 0x13, 0x15 and 0x17 . . . . . . . . . . . . . . . . . . . . . 112 7.5.2.5.3 Subfunction 0x08 . . . . . . . . . . . . . . . . 115 7.5.2.5.4 Subfunction 0x09 . . . . . . . . . . . . . . . . 115 7.5.2.5.5 Subfunctions 0x06/0x10/0x19 . . . . . . . . . 117 7.5.2.5.6 Subfunction 0x03 . . . . . . . . . . . . . . . . 118 7.5.2.5.7 Subfunctions 0x04 and 0x18 . . . . . . . . . . 120 7.5.2.5.8 Subfunction 0x05 . . . . . . . . . . . . . . . . 122 7.5.2.5.9 Subfunctions 0x0B, 0x0C, 0x0D and 0x0E . . 123 7.5.2.5.10 Subfunction 0x14 . . . . . . . . . . . . . . . . 124 7.5.2.5.11 Subfunction 0x42 . . . . . . . . . . . . . . . . 125 7.5.2.5.12 Subfunction 0x55 . . . . . . . . . . . . . . . . 126 7.5.2.6 Service 0x22 - ReadDataByIdentifier . . . . . . . . . 128 9 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 7.5.2.6.1 Non-OBD DID . . . . . . . . . . . . . . . . . . 130 7.5.2.6.2 OBD DID . . . . . . . . . . . . . . . . . . . . . 131 7.5.2.7 Service 0x24 - ReadScalingDataByIdentifier . . . . . 133 7.5.2.8 Service 0x27 - SecurityAccess . . . . . . . . . . . . 134 7.5.2.9 Service 0x28 - CommunicationControl . . . . . . . . 136 7.5.2.10 Service 0x2A - ReadDataByPeriodicIdentifier . . . . 139 7.5.2.10.1 Scheduler PeriodicTransmission . . . . . . . . 141 7.5.2.11 Service 0x2C - DynamicallyDefineDataIdentifier . . . 143 7.5.2.12 Service 0x2E - WriteDataByIdentifier . . . . . . . . . 145 7.5.2.13 Service 0x2F - InputOutputControlByIdentifier . . . . 147 7.5.2.14 Service 0x31 - RoutineControl . . . . . . . . . . . . . 159 7.5.2.15 Service 0x3E - Tester Present . . . . . . . . . . . . . 165 7.5.2.16 Service 0x3D - WriteMemoryByAddress . . . . . . . 165 7.5.2.17 Service 0x23 - ReadMemoryByAddress . . . . . . . 166 7.5.2.18 Service 0x34 - RequestDownload . . . . . . . . . . . 167 7.5.2.19 Service 0x35 - RequestUpload . . . . . . . . . . . . 168 7.5.2.20 Service 0x36 - TransferData . . . . . . . . . . . . . . 169 7.5.2.21 Service 0x37 - RequestTransferExit . . . . . . . . . . 170 7.5.2.22 Service 0x38 - RequestFileTransfer . . . . . . . . . . 172 7.5.2.23 Service 0x85 - ControlDTCSetting . . . . . . . . . . 172 7.5.2.24 Service 0x87 - LinkControl . . . . . . . . . . . . . . . 174 7.5.3 OBD Services . . . . . . . . . . . . . . . . . . . . . . . . . . 174 7.5.3.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . 174 7.5.3.2 General behavior . . . . . . . . . . . . . . . . . . . . 175 7.5.3.3 Service $01 - Request Current Powertrain Diagnostic Data . . . . . . . . . . . . . . . . . . . . . . . . . 175 7.5.3.4 Service $02 - Request Power Train FreezeFrame Data 178 7.5.3.4.1 Service $02 - PID$02 . . . . . . . . . . . . . . 178 7.5.3.4.2 Service $02 - availability PID . . . . . . . . . . 179 7.5.3.4.3 Service $02 - other PIDs . . . . . . . . . . . . 179 7.5.3.5 Service $03 $07 $0A - Obtaining DTCs . . . . . . . 180 7.5.3.6 Service $04 - Clear/reset emission-related diagnostic information . . . . . . . . . . . . . . . . . . . . . . 182 7.5.3.7 Service $06 - Request On-Board Monitoring Testresults for Specific Monitored Systems . . . . . . . . 183 7.5.3.7.1 General requirements . . . . . . . . . . . . . . 183 7.5.3.7.2 Test results obtained via Dem interaction . . . 183 7.5.3.8 Service $08 - Request Control of On-Board System, Test or Component . . . . . . . . . . . . . . . . . . . 184 7.5.3.9 Service $09 - Request Vehicle Information . . . . . . 185 7.5.4 Interaction usecases . . . . . . . . . . . . . . . . . . . . . . . 186 7.5.4.1 Jump to Bootloader . . . . . . . . . . . . . . . . . . . 186 7.5.4.2 Jump due to ECUReset . . . . . . . . . . . . . . . . 189 7.5.4.3 Jump from Bootloader / ECUReset . . . . . . . . . . 189 7.5.4.4 Flags management . . . . . . . . . . . . . . . . . . . 190 7.5.4.4.1 Jump to Bootloader . . . . . . . . . . . . . . . 190 10 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 7.5.4.4.2 Jump from Bootloader . . . . . . . . . . . . . . 190 7.6 Error notification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 7.7 Debugging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 7.8 Synchronous and Asynchronous implementation . . . . . . . . . . . . 191 7.9 DID configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 7.9.1 Individual DID . . . . . . . . . . . . . . . . . . . . . . . . . . 192 7.9.2 DID ranges . . . . . . . . . . . . . . . . . . . . . . . . . . . . 194 7.10 Startup behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 8 API specification 195 8.1 Imported types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195 8.2 Type definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 196 8.2.1 Dcm_StatusType . . . . . . . . . . . . . . . . . . . . . . . . . 196 8.2.2 Dcm_CommunicationModeType . . . . . . . . . . . . . . . . 197 8.2.3 Dcm_ConfigType . . . . . . . . . . . . . . . . . . . . . . . . . 197 8.2.4 Dcm_ReturnReadMemoryType . . . . . . . . . . . . . . . . . 198 8.2.5 Dcm_ReturnWriteMemoryType . . . . . . . . . . . . . . . . . 198 8.2.6 Dcm_EcuStartModeType . . . . . . . . . . . . . . . . . . . . 199 8.2.7 Dcm_ProgConditionsType . . . . . . . . . . . . . . . . . . . 199 8.2.8 Dcm_MsgItemType . . . . . . . . . . . . . . . . . . . . . . . 200 8.2.9 Dcm_MsgType . . . . . . . . . . . . . . . . . . . . . . . . . . 200 8.2.10 Dcm_MsgLenType . . . . . . . . . . . . . . . . . . . . . . . . 200 8.2.11 Dcm_MsgAddInfoType . . . . . . . . . . . . . . . . . . . . . 200 8.2.12 Dcm_IdContextType . . . . . . . . . . . . . . . . . . . . . . . 201 8.2.13 Dcm_MsgContextType . . . . . . . . . . . . . . . . . . . . . 201 8.2.14 Dcm_ExtendedOpStatusType . . . . . . . . . . . . . . . . . 203 8.3 Function definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 8.3.1 Functions provided for other BSW components . . . . . . . . 204 8.3.1.1 Dcm_Init . . . . . . . . . . . . . . . . . . . . . . . . . 204 8.3.1.2 Dcm_GetVersionInfo . . . . . . . . . . . . . . . . . . 204 8.3.1.3 Dcm_DemTriggerOnDTCStatus . . . . . . . . . . . . 205 8.3.1.4 Dcm_GetVin . . . . . . . . . . . . . . . . . . . . . . 205 8.3.2 Functions provided to BSW modules and to SW-Cs . . . . . 206 8.3.2.1 Dcm_GetSecurityLevel . . . . . . . . . . . . . . . . . 206 8.3.2.2 Dcm_GetSesCtrlType . . . . . . . . . . . . . . . . . 206 8.3.2.3 Dcm_GetActiveProtocol . . . . . . . . . . . . . . . . 207 8.3.2.4 Dcm_ResetToDefaultSession . . . . . . . . . . . . . 207 8.3.2.5 Dcm_TriggerOnEvent . . . . . . . . . . . . . . . . . 208 8.3.2.6 Dcm_ SetActiveDiagnostic . . . . . . . . . . . . . . . 208 8.4 Callback notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . 209 8.4.1 Dcm_StartOfReception . . . . . . . . . . . . . . . . . . . . . 210 8.4.2 Dcm_CopyRxData . . . . . . . . . . . . . . . . . . . . . . . . 211 8.4.3 Dcm_TpRxIndication . . . . . . . . . . . . . . . . . . . . . . 211 8.4.4 Dcm_CopyTxData . . . . . . . . . . . . . . . . . . . . . . . . 212 8.4.5 Dcm_TpTxConfirmation . . . . . . . . . . . . . . . . . . . . . 213 8.4.6 Dcm_TxConfirmation . . . . . . . . . . . . . . . . . . . . . . 214 11 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 8.4.7 Dcm_ComM_NoComModeEntered . . . . . . . . . . . . . . 214 8.4.8 Dcm_ComM_SilentComModeEntered . . . . . . . . . . . . . 215 8.4.9 Dcm_ComM_FullComModeEntered . . . . . . . . . . . . . . 215 8.5 Callout Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216 8.5.1 Dcm_ReadMemory . . . . . . . . . . . . . . . . . . . . . . . 216 8.5.2 Dcm_WriteMemory . . . . . . . . . . . . . . . . . . . . . . . 217 8.5.3 Dcm_SetProgConditions . . . . . . . . . . . . . . . . . . . . 219 8.5.4 Dcm_GetProgConditions . . . . . . . . . . . . . . . . . . . . 219 8.5.5 Dcm_ProcessRequestTransferExit . . . . . . . . . . . . . . . 220 8.5.6 Dcm_ProcessRequestUpload . . . . . . . . . . . . . . . . . 221 8.5.7 Dcm_ProcessRequestDownload . . . . . . . . . . . . . . . . 222 8.5.8 Dcm_ ProcessRequestFileTransfer . . . . . . . . . . . . . . 222 8.6 Scheduled functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 8.6.1 Dcm_MainFunction . . . . . . . . . . . . . . . . . . . . . . . 224 8.7 Expected interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 224 8.7.1 Mandatory interfaces . . . . . . . . . . . . . . . . . . . . . . 224 8.7.2 Optional interfaces . . . . . . . . . . . . . . . . . . . . . . . . 224 8.7.3 Configurable interfaces . . . . . . . . . . . . . . . . . . . . . 228 8.7.3.1 SecurityAccess . . . . . . . . . . . . . . . . . . . . . 228 8.7.3.1.1 GetSeed . . . . . . . . . . . . . . . . . . . . . 228 8.7.3.1.2 CompareKey . . . . . . . . . . . . . . . . . . . 229 8.7.3.1.3 GetSecurityAttemptCounter . . . . . . . . . . 230 8.7.3.1.4 SetSecurityAttemptCounter . . . . . . . . . . . 231 8.7.3.2 DataServices . . . . . . . . . . . . . . . . . . . . . . 231 8.7.3.2.1 ReadData . . . . . . . . . . . . . . . . . . . . 231 8.7.3.2.2 WriteData . . . . . . . . . . . . . . . . . . . . 233 8.7.3.2.3 ReadDataLength . . . . . . . . . . . . . . . . . 235 8.7.3.2.4 ConditionCheckRead . . . . . . . . . . . . . . 236 8.7.3.2.5 GetScalingInformation . . . . . . . . . . . . . 237 8.7.3.2.6 ReturnControlToECU . . . . . . . . . . . . . . 239 8.7.3.2.7 ResetToDefault . . . . . . . . . . . . . . . . . 240 8.7.3.2.7.1 Synchronous interface . . . . . . . . . . 240 8.7.3.2.7.2 Asynchronous interface . . . . . . . . . 241 8.7.3.2.8 FreezeCurrentState . . . . . . . . . . . . . . . 241 8.7.3.2.8.1 Synchronous interface . . . . . . . . . . 241 8.7.3.2.8.2 Asynchronous interface . . . . . . . . . 242 8.7.3.2.9 ShortTermAdjustment . . . . . . . . . . . . . . 243 8.7.3.2.9.1 Synchronous interface . . . . . . . . . . 243 8.7.3.2.9.2 Asynchronous interface . . . . . . . . . 244 8.7.3.3 DataServices_DIDRange . . . . . . . . . . . . . . . 245 8.7.3.3.1 IsDidAvailable . . . . . . . . . . . . . . . . . . 245 8.7.3.3.2 ReadDidData . . . . . . . . . . . . . . . . . . . 246 8.7.3.3.3 WriteDidData . . . . . . . . . . . . . . . . . . . 247 8.7.3.3.4 ReadDidRangeDataLength . . . . . . . . . . . 247 8.7.3.4 InfoTypesServices . . . . . . . . . . . . . . . . . . . 248 8.7.3.4.1 GetInfotypeValueData . . . . . . . . . . . . . . 248 12 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 8.7.3.5 RoutineServices . . . . . . . . . . . . . . . . . . . . 249 8.7.3.5.1 Xxx_Start Operation . . . . . . . . . . . . . . . 249 8.7.3.5.2 Xxx_StartConfirmation Operation . . . . . . . 250 8.7.3.5.3 Xxx_Stop Operation . . . . . . . . . . . . . . . 250 8.7.3.5.4 Xxx_StopConfirmation Operation . . . . . . . 252 8.7.3.5.5 Xxx_RequestResults Operation . . . . . . . . 252 8.7.3.5.6 Xxx_RequestResultsConfirmation Operation . 253 8.7.3.6 RequestControlServices . . . . . . . . . . . . . . . . 253 8.7.3.6.1 RequestControl callout . . . . . . . . . . . . . 254 8.7.3.7 CallbackDCMRequestServices . . . . . . . . . . . . 254 8.7.3.7.1 StartProtocol . . . . . . . . . . . . . . . . . . . 254 8.7.3.7.2 StopProtocol . . . . . . . . . . . . . . . . . . . 255 8.7.3.8 ServiceRequestNotification . . . . . . . . . . . . . . 255 8.7.3.8.1 Indication . . . . . . . . . . . . . . . . . . . . . 255 8.7.3.8.2 Confirmation . . . . . . . . . . . . . . . . . . . 256 8.7.3.9 ClearDTCCheckFnc . . . . . . . . . . . . . . . . . . 257 8.8 Dcm as Service-Component . . . . . . . . . . . . . . . . . . . . . . . . 258 8.8.1 Implementation Data Types . . . . . . . . . . . . . . . . . . . 258 8.8.1.1 Dcm_OpStatusType . . . . . . . . . . . . . . . . . . 258 8.8.1.2 Dcm_ConfirmationStatusType . . . . . . . . . . . . . 258 8.8.1.3 Dcm_SecLevelType . . . . . . . . . . . . . . . . . . 259 8.8.1.4 Dcm_SesCtrlType . . . . . . . . . . . . . . . . . . . 259 8.8.1.5 Dcm_ProtocolType . . . . . . . . . . . . . . . . . . . 260 8.8.1.6 Dcm_NegativeResponseCodeType . . . . . . . . . . 261 8.8.1.7 Dcm_DataArrayTypeUint8_{Data}Type . . . . . . . . 264 8.8.1.8 Dcm_DataArrayTypeUint16_{Data}Type . . . . . . . 264 8.8.1.9 Dcm_DataArrayTypeUint32_{Data}Type . . . . . . . 265 8.8.1.10 Dcm_DataArrayTypeSint8_{Data}Type . . . . . . . . 265 8.8.1.11 Dcm_DataArrayTypeSint16_{Data}Type . . . . . . . 266 8.8.1.12 Dcm_DataArrayTypeSint32_{Data}Type . . . . . . . 266 8.8.1.13 Dcm_RangeArray_{Range}Type . . . . . . . . . . . 267 8.8.1.14 Dcm_InfoTypeServicesArray_{VehInfoData}Type . . 267 8.8.1.15 Dcm_RequestControlServicesInArray_{Tid}Type . . 268 8.8.1.16 Dcm_RequestControlServicesOutArray_{Tid}Type . 268 8.8.1.17 Dcm_ScalingInfoArray_{Data}Type . . . . . . . . . . 268 8.8.1.18 Dcm_RequestDataOut_{Routine}_{Signal}PrimitivType269 8.8.1.19 Dcm_RequestDataOut_{Routine}_{Signal}Type . . . 270 8.8.1.20 Dcm_RequestDataOut_{Routine}_{Signal}ArrayType 271 8.8.1.21 Dcm_RequestFlexibleOutArrayData_{Routine}_{Signal}Type272 8.8.1.22 Dcm_StartDataIn_{Routine}_{Signal}PrimitivType . . 273 8.8.1.23 Dcm_StartDataIn_{Routine}_{Signal}Type . . . . . . 274 8.8.1.24 Dcm_StartDataIn_{Routine}_{Signal}ArrayType . . . 275 8.8.1.25 Dcm_StartDataOut_{Routine}_{Signal}PrimitivType . 276 8.8.1.26 Dcm_StartDataOut_{Routine}_{Signal}Type . . . . . 277 8.8.1.27 Dcm_StartDataOut_{Routine}_{Signal}ArrayType . . 277 8.8.1.28 Dcm_StartFlexibleInArrayData_{Routine}_{Signal}Type279 13 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 8.8.1.29 Dcm_StartFlexibleOutArrayData_{Routine}_{Signal}Type279 8.8.1.30 Dcm_StopDataIn_{Routine}_{Signal}PrimitivType . . 280 8.8.1.31 Dcm_StopDataIn_{Routine}_{Signal}Type . . . . . . 281 8.8.1.32 Dcm_StopDataIn_{Routine}_{Signal}ArrayType . . . 281 8.8.1.33 Dcm_StopDataOut_{Routine}_{Signal}PrimitivType . 282 8.8.1.34 Dcm_StopDataOut_{Routine}_{Signal}Type . . . . . 283 8.8.1.35 Dcm_StopDataOut_{Routine}_{Signal}ArrayType . . 284 8.8.1.36 Dcm_StopFlexibleInArrayData_{Routine}_{Signal}Type285 8.8.1.37 Dcm_StopFlexibleOutArrayData_{Routine}_{Signal}Type286 8.8.1.38 Dcm_KeyArray_{SecurityLevel}Type . . . . . . . . . 286 8.8.1.39 Dcm_SeedArray_{SecurityLevel}Type . . . . . . . . 287 8.8.1.40 Dcm_SecurityAccessDataRecordArray_{SecurityLevel}Type287 8.8.1.41 Dcm_RequestDataArrayType . . . . . . . . . . . . . 288 8.8.1.42 Dcm_ControlMask_{Data}Type . . . . . . . . . . . . 288 8.8.1.43 ControlMask types . . . . . . . . . . . . . . . . . . . 289 8.8.1.44 Dcm_inputOutputControlParameterType . . . . . . . 290 8.8.1.45 Dcm_IOOperationRequest_{Data}Type . . . . . . . . 291 8.8.1.46 Dcm_IOOperationResponseType . . . . . . . . . . . 292 8.8.1.47 Dcm_DidSupportedType . . . . . . . . . . . . . . . . 292 8.8.2 Sender-Receiver-Interfaces . . . . . . . . . . . . . . . . . . . 293 8.8.2.1 DataServices_{Data} . . . . . . . . . . . . . . . . . . 293 8.8.2.2 IOControlRequest_{Data} . . . . . . . . . . . . . . . 295 8.8.2.3 IOControlResponse . . . . . . . . . . . . . . . . . . 296 8.8.3 Client-Server-Interfaces . . . . . . . . . . . . . . . . . . . . . 297 8.8.3.1 SecurityAccess_{SecurityLevel} . . . . . . . . . . . . 297 8.8.3.2 DataServices_{Data} . . . . . . . . . . . . . . . . . . 300 8.8.3.2.1 ReadData . . . . . . . . . . . . . . . . . . . . 318 8.8.3.2.2 WriteData . . . . . . . . . . . . . . . . . . . . 318 8.8.3.2.3 ReadDataLength . . . . . . . . . . . . . . . . . 318 8.8.3.2.4 ConditionCheckRead . . . . . . . . . . . . . . 318 8.8.3.2.5 GetScalingInformation . . . . . . . . . . . . . 319 8.8.3.2.6 ReturnControlToEcu . . . . . . . . . . . . . . . 319 8.8.3.2.7 ResetToDefault . . . . . . . . . . . . . . . . . 319 8.8.3.2.8 FreezeCurrentState . . . . . . . . . . . . . . . 319 8.8.3.2.9 ShortTermAdjustment . . . . . . . . . . . . . . 319 8.8.3.3 DataServices_DIDRange_{Range} . . . . . . . . . . 319 8.8.3.4 InfotypeServices_{VehInfoData} . . . . . . . . . . . . 322 8.8.3.5 RoutineServices_{RoutineName} . . . . . . . . . . . 323 8.8.3.6 RequestControlServices_{Tid} . . . . . . . . . . . . 338 8.8.3.7 CallbackDCMRequestServices . . . . . . . . . . . . 338 8.8.3.8 ServiceRequestNotification . . . . . . . . . . . . . . 340 8.8.3.9 DCMServices . . . . . . . . . . . . . . . . . . . . . . 342 8.8.3.10 DCM_Roe . . . . . . . . . . . . . . . . . . . . . . . . 343 8.8.4 Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344 8.8.4.1 Dcm_CallbackDCMRequestServices_{Name} . . . . 346 8.8.4.2 DataServices_DIDRange_{Range} . . . . . . . . . . 346 14 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 8.8.4.3 DataServices_{Data} . . . . . . . . . . . . . . . . . . 346 8.8.4.4 IOControlRequest_{Data} . . . . . . . . . . . . . . . 348 8.8.4.5 IOControlResponse_{Data} . . . . . . . . . . . . . . 348 8.8.4.6 DCM_Roe_{RoeName} . . . . . . . . . . . . . . . . 349 8.8.4.7 DCMServices . . . . . . . . . . . . . . . . . . . . . . 349 8.8.4.8 InfotypeServices_{VehInfoData} . . . . . . . . . . . . 350 8.8.4.9 RequestControlServices_{Tid} . . . . . . . . . . . . 350 8.8.4.10 ServiceRequestManufacturerNotification_{Name} . . 350 8.8.4.11 ServiceRequestSupplierNotification_{Name} . . . . . 351 8.8.4.12 RoutineServices_{RoutineName} . . . . . . . . . . . 351 8.8.4.13 SecurityAccess_{SecurityLevel} . . . . . . . . . . . . 351 8.8.4.14 Dcm_DiagnosticSessionControlModeSwitchInterface 352 8.8.4.15 Dcm_EcuResetModeSwitchInterface . . . . . . . . . 352 8.8.4.16 Dcm_ModeRapidPowerShutDownModeSwitchInterface352 8.8.4.17 Dcm_CommunicationControlModeSwitchInterface_{ComMChannelName}353 8.8.4.18 Dcm_ControlDTCSettingModeSwitchInterface . . . . 353 8.8.4.19 Dcm_ResponseOnEventModeSwitchInterface_{RoeEventID}353 8.8.4.20 Dcm_SecurityAccessModeSwitchInterface . . . . . . 354 8.8.5 ModeDeclarationGroups . . . . . . . . . . . . . . . . . . . . 354 8.8.5.1 DcmDiagnosticSessionControl . . . . . . . . . . . . 354 8.8.5.2 DcmEcuReset . . . . . . . . . . . . . . . . . . . . . 355 8.8.5.3 DcmModeRapidPowerShutDown . . . . . . . . . . . 355 8.8.5.4 DcmCommunicationControl . . . . . . . . . . . . . . 355 8.8.5.5 DcmControlDTCSetting . . . . . . . . . . . . . . . . 356 8.8.5.6 DcmResponseOnEvent . . . . . . . . . . . . . . . . 356 8.8.5.7 DcmSecurityAccess . . . . . . . . . . . . . . . . . . 357 8.8.6 Mode-Switch-Interfaces . . . . . . . . . . . . . . . . . . . . . 357 8.8.6.1 Dcm_DiagnosticSessionControlModeSwitchInterface 357 8.8.6.2 Dcm_EcuResetModeSwitchInterface . . . . . . . . . 358 8.8.6.3 Dcm_ModeRapidPowerShutDownModeSwitchInterface358 8.8.6.4 Dcm_CommunicationControlModeSwitchInterface . 358 8.8.6.5 Dcm_ControlDTCSettingModeSwitchInterface . . . . 359 8.8.6.6 Dcm_ResponseOnEventModeSwitchInterface . . . . 359 8.8.6.7 Dcm_SecurityAccessModeSwitchInterface . . . . . . 360 8.9 External diagnostic service processing . . . . . . . . . . . . . . . . . . 360 8.9.1 <Module>_<DiagnosticService> . . . . . . . . . . . . . . . . 360 8.9.2 <Module>_<DiagnosticService>_<SubService> . . . . . . . 361 8.10 Internal interfaces (not normative) . . . . . . . . . . . . . . . . . . . . . 362 8.10.1 DslInternal_SetSecurityLevel . . . . . . . . . . . . . . . . . . 362 8.10.2 DslInternal_SetSesCtrlType . . . . . . . . . . . . . . . . . . . 362 8.10.3 DspInternal_DcmConfirmation . . . . . . . . . . . . . . . . . 362 8.10.4 DslInternal_ResponseOnOneEvent . . . . . . . . . . . . . . 363 8.10.5 DslInternal_ResponseOnOneDataByPeriodicId . . . . . . . . 363 8.10.6 DsdInternal_StartPagedProcessing . . . . . . . . . . . . . . 363 8.10.7 DspInternal_CancelPagedBufferProcessing . . . . . . . . . . 363 8.10.8 DsdInternal_ProcessPage . . . . . . . . . . . . . . . . . . . 363 15 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 9 Sequence diagrams 363 9.1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 363 9.2 DSL (Diagnostic Session Layer) . . . . . . . . . . . . . . . . . . . . . . 364 9.2.1 Start Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . 364 9.2.2 Process Busy behavior . . . . . . . . . . . . . . . . . . . . . 365 9.2.3 Update Diagnostic Session Control when timeout occurs . . 366 9.2.4 Process single response of ReadDataByPeriodicIdentifier . . 367 9.2.5 Process single event-triggered response of ResponseOnEvent368 9.2.6 Process concurrent requests . . . . . . . . . . . . . . . . . . 369 9.2.7 Interface to ComManager . . . . . . . . . . . . . . . . . . . . 371 9.2.7.1 Handling in Default Session . . . . . . . . . . . . . . 371 9.2.7.2 Handling in Non-Default Session . . . . . . . . . . . 372 9.2.7.3 Session transitions . . . . . . . . . . . . . . . . . . . 372 9.2.7.4 Communication States . . . . . . . . . . . . . . . . . 373 9.2.8 Receive request message and transmit negative response message . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375 9.2.9 Process Service Request with paged-buffer . . . . . . . . . . 376 9.2.10 Process copy data in reception . . . . . . . . . . . . . . . . . 378 9.2.11 Process copy data in transmission . . . . . . . . . . . . . . . 379 9.3 DSP (Diagnostic Service Processing) . . . . . . . . . . . . . . . . . . . 379 9.3.1 Interface DSP - DEM (service 0x19, 0x14, 0x85) . . . . . . . 379 9.3.2 Interface special services . . . . . . . . . . . . . . . . . . . . 379 9.3.2.1 Process Diagnostic Session Control . . . . . . . . . 379 9.3.2.2 Process Tester Present . . . . . . . . . . . . . . . . 380 9.3.2.3 Process Security Access . . . . . . . . . . . . . . . . 381 9.3.2.4 Process ResponseOnEvent OnDtcChange . . . . . 382 9.3.2.5 Process ResponseOnEvent OnChangeOfDataIdentifier . . . . . . . . . . . . . . . . . . . . . . . . . . . 383 9.3.2.6 Process Jump to Bootloader . . . . . . . . . . . . . . 384 10 Configuration specification 384 10.1 How to read this chapter . . . . . . . . . . . . . . . . . . . . . . . . . . 385 10.2 Configuration constraints . . . . . . . . . . . . . . . . . . . . . . . . . . 385 10.3 Containers and configuration parameters . . . . . . . . . . . . . . . . . 386 10.3.1 Dcm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 386 10.3.2 DcmConfigSet . . . . . . . . . . . . . . . . . . . . . . . . . . 387 10.3.2.1 DcmPageBufferCfg . . . . . . . . . . . . . . . . . . . 387 10.3.2.2 DcmProcessingConditions . . . . . . . . . . . . . . . 388 10.3.3 DcmDsd . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 389 10.3.3.1 DcmDsd . . . . . . . . . . . . . . . . . . . . . . . . . 389 10.3.3.2 DcmDsdService . . . . . . . . . . . . . . . . . . . . 391 10.3.3.3 DcmDsdServiceRequestManufacturerNotification . . 395 10.3.3.4 DcmDsdServiceRequestSupplierNotification . . . . . 396 10.3.3.5 DcmDsdServiceTable . . . . . . . . . . . . . . . . . 396 10.3.3.6 DcmDsdSubService . . . . . . . . . . . . . . . . . . 397 10.3.4 DcmDsl . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 400 16 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 10.3.4.1 DcmDsl . . . . . . . . . . . . . . . . . . . . . . . . . 400 10.3.4.2 DcmDslBuffer . . . . . . . . . . . . . . . . . . . . . . 401 10.3.4.3 DcmDslCallbackDCMRequestService . . . . . . . . 402 10.3.4.4 DcmDslDiagResp . . . . . . . . . . . . . . . . . . . . 402 10.3.4.5 DcmDslProtocol . . . . . . . . . . . . . . . . . . . . 403 10.3.4.6 DcmDslProtocolRow . . . . . . . . . . . . . . . . . . 403 10.3.4.7 DcmDslConnection . . . . . . . . . . . . . . . . . . . 412 10.3.4.8 DcmDslMainConnection . . . . . . . . . . . . . . . . 412 10.3.4.9 DcmDslProtocolRx . . . . . . . . . . . . . . . . . . . 415 10.3.4.10 DcmDslProtocolTx . . . . . . . . . . . . . . . . . . . 416 10.3.4.11 DcmDslPeriodicTransmission . . . . . . . . . . . . . 417 10.3.4.12 DcmDslPeriodicConnection . . . . . . . . . . . . . . 418 10.3.4.13 DcmDslResponseOnEvent . . . . . . . . . . . . . . 419 10.3.5 DcmDsp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 420 10.3.5.1 Communication Control . . . . . . . . . . . . . . . . 426 10.3.5.1.1 DcmDspComControl . . . . . . . . . . . . . . 426 10.3.5.1.2 DcmDspComControlAllChannel . . . . . . . . 427 10.3.5.1.3 DcmDspComControlSetting . . . . . . . . . . 428 10.3.5.1.4 DcmDspComControlSpecificChannel . . . . . 428 10.3.5.1.5 DcmDspComControlSubNode . . . . . . . . . 430 10.3.5.2 DcmDspCommonAuthorization . . . . . . . . . . . . 431 10.3.5.3 DIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . 432 10.3.5.3.1 DcmDspDid . . . . . . . . . . . . . . . . . . . 432 10.3.5.3.2 DcmDspDidInfo . . . . . . . . . . . . . . . . . 436 10.3.5.3.3 DcmDspDidRead . . . . . . . . . . . . . . . . 437 10.3.5.3.4 DcmDspDidSignal . . . . . . . . . . . . . . . . 438 10.3.5.3.5 DcmDspDidSupportInfo . . . . . . . . . . . . . 439 10.3.5.3.6 DcmDspDidRange . . . . . . . . . . . . . . . . 440 10.3.5.3.7 DcmDspDidWrite . . . . . . . . . . . . . . . . 445 10.3.5.4 DcmDspControlDTCSetting . . . . . . . . . . . . . . 447 10.3.5.5 Data elements . . . . . . . . . . . . . . . . . . . . . 448 10.3.5.5.1 DcmDspData . . . . . . . . . . . . . . . . . . . 448 10.3.5.5.2 DcmDspDiagnosisScaling . . . . . . . . . . . 459 10.3.5.5.3 DcmDspArgumentScaling . . . . . . . . . . . . 460 10.3.5.5.4 DcmDspAlternativeArgumentData . . . . . . . 461 10.3.5.5.5 DcmDspTextTableMapping . . . . . . . . . . . 461 10.3.5.5.6 DcmDspAlternativeDataInterface . . . . . . . . 462 10.3.5.5.7 DcmDspAlternativeDataType . . . . . . . . . . 463 10.3.5.5.8 DcmDspAlternativeDiagnosticDataElement . . 464 10.3.5.5.9 DcmDataElementInstance . . . . . . . . . . . 465 10.3.5.5.10DcmSubElementInDataElementInstance . . . 466 10.3.5.5.11DcmSubElementInImplDataElementInstance . 467 10.3.5.5.12DcmDspDidDataSupportInfo . . . . . . . . . . 468 10.3.5.5.13DcmDspDataInfo . . . . . . . . . . . . . . . . 469 10.3.5.6 DcmDspDidControl . . . . . . . . . . . . . . . . . . . 470 10.3.5.7 DcmDspDidControlEnableMask . . . . . . . . . . . . 473 17 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 10.3.5.8 Ecu Reset . . . . . . . . . . . . . . . . . . . . . . . . 474 10.3.5.8.1 DcmDspEcuReset . . . . . . . . . . . . . . . . 474 10.3.5.8.2 DcmDspEcuResetRow . . . . . . . . . . . . . 474 10.3.5.9 Memory . . . . . . . . . . . . . . . . . . . . . . . . . 475 10.3.5.9.1 DcmDspMemory . . . . . . . . . . . . . . . . . 475 10.3.5.9.2 DcmDspAddressAndLengthFormatIdentifier . 476 10.3.5.9.3 DcmDspMemoryIdInfo . . . . . . . . . . . . . 476 10.3.5.9.4 DcmDspReadMemoryRangeByLabelInfo . . . 477 10.3.5.9.5 DcmDspReadMemoryRangeInfo . . . . . . . . 480 10.3.5.9.6 DcmDspWriteMemoryRangeByLabelInfo . . . 482 10.3.5.9.7 DcmDspWriteMemoryRangeInfo . . . . . . . . 484 10.3.5.10 PIDs . . . . . . . . . . . . . . . . . . . . . . . . . . . 486 10.3.5.10.1DcmDspPid . . . . . . . . . . . . . . . . . . . 486 10.3.5.10.2DcmDspPidSupportInfo . . . . . . . . . . . . . 488 10.3.5.10.3DcmDspPidData . . . . . . . . . . . . . . . . . 489 10.3.5.10.4DcmDspPidService01 . . . . . . . . . . . . . . 490 10.3.5.10.5DcmDspPidService02 . . . . . . . . . . . . . . 493 10.3.5.10.6DcmDspPidDataSupportInfo . . . . . . . . . . 494 10.3.5.11 DcmDspRequestControl . . . . . . . . . . . . . . . . 495 10.3.5.12 DcmDspRequestFileTransfer . . . . . . . . . . . . . 497 10.3.5.13 Response on Event . . . . . . . . . . . . . . . . . . . 498 10.3.5.13.1DcmDspRoe . . . . . . . . . . . . . . . . . . . 498 10.3.5.13.2DcmDspRoeEvent . . . . . . . . . . . . . . . . 499 10.3.5.13.3DcmDspRoeEventProperties . . . . . . . . . . 500 10.3.5.13.4DcmDspRoeOnChangeOfDataIdentifier . . . . 500 10.3.5.13.5DcmDspRoeOnDTCStatusChange . . . . . . 501 10.3.5.13.6DcmDspRoeEventWindowTime . . . . . . . . 501 10.3.5.14 Routines . . . . . . . . . . . . . . . . . . . . . . . . . 503 10.3.5.14.1DcmDspRoutine . . . . . . . . . . . . . . . . . 503 10.3.5.14.2DcmDspRequestRoutineResults . . . . . . . . 505 10.3.5.14.3DcmDspRequestRoutineResultsOut . . . . . . 508 10.3.5.14.4DcmDspRequestRoutineResultsOutSignal . . 508 10.3.5.14.5DcmDspStartRoutine . . . . . . . . . . . . . . 510 10.3.5.14.6DcmDspStartRoutineIn . . . . . . . . . . . . . 513 10.3.5.14.7DcmDspStartRoutineInSignal . . . . . . . . . 513 10.3.5.14.8DcmDspStartRoutineOut . . . . . . . . . . . . 515 10.3.5.14.9DcmDspStartRoutineOutSignal . . . . . . . . 516 10.3.5.14.10DcmDspStopRoutine . . . . . . . . . . . . . . 518 10.3.5.14.11DcmDspStopRoutineIn . . . . . . . . . . . . . 521 10.3.5.14.12DcmDspStopRoutineInSignal . . . . . . . . . . 521 10.3.5.14.13DcmDspStopRoutineOut . . . . . . . . . . . . 523 10.3.5.14.14DcmDspStopRoutineOutSignal . . . . . . . . . 524 10.3.5.15 Session Security and Modes . . . . . . . . . . . . . 526 10.3.5.15.1DcmDspSecurity . . . . . . . . . . . . . . . . . 526 10.3.5.15.2DcmDspSecurityRow . . . . . . . . . . . . . . 527 10.3.5.15.3DcmDspSession . . . . . . . . . . . . . . . . . 533 18 of 553 — AUTOSAR CONFIDENTIAL — Document ID 18: AUTOSAR_SWS_DiagnosticCommunicationManager Specification of Diagnostic Communication Manager AUTOSAR CP Release 4.3.1 10.3.5.15.4DcmDspSessionRow . . . . . . . . . . . . . . 533 10.3.5.15.5DcmModeCondition . . . . . . . . . . . . . . . 535 10.3.5.15.6DcmModeRule . . . . . . . . . . . . . . . . . . 538 10.3.5.16 DcmDspVehInfo . . . . . . . . . . . . . . . . . . . . 540 10.3.5.17 DcmDspVehInfoData . . . . . . . . . . . . . . . . . . 541 10.3.5.18 DcmDspPeriodicTransmission . . . . . . . . . . . . . 543 10.3.5.19 DcmDspClearDTC . . . . . . . . . . . . . . . . . . . 546 10.3.6 DcmGeneral . . . . . . . . . . . . . . . . . . . . . . . . . . . 547 10.4 Protocol Configuration Example . . . . . . . . . . . . . . . . . . . . . . 551 10.5 Published Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 552 A Not applicable requirements 552
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论