没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论

Specification of a Diagnostic Communication
Manager for SAE J1939
AUTOSAR CP R19-11
1 of 97 Document ID 610: AUTOSAR_SWS_SAEJ1939DiagnosticCommunicationManager
- AUTOSAR confidential -
Document Title
Specification of a Diagnostic
Communication Manager for
SAE J1939
Document Owner
AUTOSAR
Document Responsibility
AUTOSAR
Document Identification No
610
Document Status
published
Part of AUTOSAR Standard
Classic Platform
Part of Standard Release
R19-11
Document Change History
Date
Release
Changed by
Change Description
2019-11-28
R19-11
AUTOSAR
Release
Management
Added generic DMx support
Fixed tracing to RS Diagnostics
Improved API and service port
tables
Changed Document Status from
Final to published
2018-10-31
4.4.0
AUTOSAR
Release
Management
Changed header file structure
Separate buffer for DM35
Fixed “SPN support type” bit value
Fixed API towards DEM
2017-12-08
4.3.1
AUTOSAR
Release
Management
Fixed instance reference to
application data elements used for
environmental checks
Retry of failed transmissions
Introduction of runtime errors
2016-11-30
4.3.0
AUTOSAR
Release
Management
Clarifications, Corrections and
Optimization
DM1 max number of DTC to be set
to configurable
Support of DM53, DM54, and DM55
Extend J1939DcmBusType with
new enumerators
2015-07-31
4.2.2
AUTOSAR
Release
Management
Clarifications
DM01 handling on multiple networks
DM19 updated negative response
code

Specification of a Diagnostic Communication
Manager for SAE J1939
AUTOSAR CP R19-11
2 of 97 Document ID 610: AUTOSAR_SWS_SAEJ1939DiagnosticCommunicationManager
- AUTOSAR confidential -
Document Change History
Date
Release
Changed by
Change Description
2014-10-31
4.2.1
AUTOSAR
Release
Management
Optimizations
Editorial changes
2014-03-31
4.1.3
AUTOSAR
Release
Management
Refinement of
J1939Dcm_DemTriggerOnDTCStat
us
Smaller corrections
Editorial changes
2013-10-31
4.1.2
AUTOSAR
Release
Management
Introduction of formal descriptions of
service interfaces
Configuration of further DMx
messages
Revised DEM interface
Editorial changes
2013-03-15
4.1.1
AUTOSAR
Administration
Initial Release

Specification of a Diagnostic Communication
Manager for SAE J1939
AUTOSAR CP R19-11
3 of 97 Document ID 610: AUTOSAR_SWS_SAEJ1939DiagnosticCommunicationManager
- AUTOSAR confidential -
Disclaimer
This work (specification and/or software implementation) and the material contained
in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR
and the companies that have contributed to it shall not be liable for any use of the
work.
The material contained in this work is protected by copyright and other types of
intellectual property rights. The commercial exploitation of the material contained in
this work requires a license to such intellectual property rights.
This work may be utilized or reproduced without any modification, in any form or by
any means, for informational purposes only. For any other purpose, no part of the
work may be utilized or reproduced, in any form or by any means, without permission
in writing from the publisher.
The work has been developed for automotive applications only. It has neither been
developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.

Specification of a Diagnostic Communication
Manager for SAE J1939
AUTOSAR CP R19-11
4 of 97 Document ID 610: AUTOSAR_SWS_SAEJ1939DiagnosticCommunicationManager
- AUTOSAR confidential -
Table of Contents
1 Introduction and functional overview .................................................................. 7
1.1 Diagnostics according to SAE J1939............................................................ 7
2 Acronyms and abbreviations .............................................................................. 8
3 Related documentation ...................................................................................... 9
3.1 Input documents ........................................................................................... 9
3.2 Related standards and norms .................................................................... 10
3.3 Related specification .................................................................................. 10
4 Constraints and assumptions ........................................................................... 11
4.1 Limitations .................................................................................................. 11
4.2 Applicability to car domains ........................................................................ 11
5 Dependencies to other modules ....................................................................... 12
5.1 File structure ............................................................................................... 14
5.1.1 Code file structure ................................................................................... 14
5.1.2 Header file structure ................................................................................ 14
6 Requirements traceability ................................................................................. 15
7 Functional specification .................................................................................... 16
7.1 Overview .................................................................................................... 16
7.1.1 Supported diagnostic messages ............................................................. 16
7.2 Module Handling ........................................................................................ 17
7.2.1 Initialization ............................................................................................. 17
7.3 Message processing ................................................................................... 18
7.3.1 Reception of Requests ............................................................................ 18
7.3.2 Failed message transmission ................................................................. 19
7.3.3 Termination of message ......................................................................... 19
7.3.4 Handling of Meta Data ............................................................................ 20
7.4 Communication State Handling .................................................................. 20
7.5 Mode dependent request execution ........................................................... 20
7.6 J1939Dcm – DEM interaction ..................................................................... 22
7.6.1 DTC status .............................................................................................. 22
7.6.2 FreezeFrame .......................................................................................... 23
7.6.3 Ratio ....................................................................................................... 25
7.6.4 Service Only DTCs ................................................................................. 26
7.7 Diagnostic messages ................................................................................. 27
7.7.1 Diagnostic message 1 (DM01) ................................................................ 27
7.7.2 Diagnostic message 2 (DM02) ................................................................ 28
7.7.3 Diagnostic message 3 (DM03) ................................................................ 28
7.7.4 Diagnostic message 4 (DM04) ................................................................ 29
7.7.5 Diagnostic message 5 (DM05) ................................................................ 29
7.7.6 Diagnostic message 6 (DM06) ................................................................ 29
7.7.7 Diagnostic message 11 (DM11) .............................................................. 30
7.7.8 Diagnostic message 12 (DM12) .............................................................. 30

Specification of a Diagnostic Communication
Manager for SAE J1939
AUTOSAR CP R19-11
5 of 97 Document ID 610: AUTOSAR_SWS_SAEJ1939DiagnosticCommunicationManager
- AUTOSAR confidential -
7.7.9 Diagnostic message 13 (DM13) .............................................................. 31
7.7.10 Diagnostic message 19 (DM19) .............................................................. 32
7.7.11 Diagnostic message 20 (DM20) .............................................................. 33
7.7.12 Diagnostic message 21 (DM21) .............................................................. 33
7.7.13 Diagnostic message 23 (DM23) .............................................................. 33
7.7.14 Diagnostic message 24 (DM24) .............................................................. 34
7.7.15 Diagnostic message 25 (DM25) .............................................................. 34
7.7.16 Diagnostic message 26 (DM26) .............................................................. 34
7.7.17 Diagnostic message 28 (DM28) .............................................................. 35
7.7.18 Diagnostic message 29 (DM29) .............................................................. 35
7.7.19 Diagnostic message 31 (DM31) .............................................................. 36
7.7.20 Diagnostic message 35 (DM35) .............................................................. 36
7.7.21 Active Service Only DTCs (DM53) .......................................................... 37
7.7.22 Previously Active Service Only DTCs (DM54) ........................................ 37
7.7.23 Diagnostic Data Clear/Reset for All Service Only DTCs (DM55) ............ 38
7.8 Error Classification ..................................................................................... 38
7.8.1 Development Errors ................................................................................ 38
7.8.2 Runtime Errors ........................................................................................ 39
7.8.3 Transient Faults ...................................................................................... 39
7.8.4 Production Errors .................................................................................... 39
7.8.5 Extended Production Errors .................................................................... 39
8 API specification ............................................................................................... 40
8.1 Imported types ............................................................................................ 40
8.2 Type definitions .......................................................................................... 41
8.2.1 J1939Dcm_ConfigType .......................................................................... 41
8.2.2 J1939Dcm_StateType ............................................................................ 41
8.3 Function definitions..................................................................................... 42
8.3.1 J1939Dcm_Init ........................................................................................ 42
8.3.2 J1939Dcm_DeInit ................................................................................... 42
8.3.3 J1939Dcm_GetVersionInfo ..................................................................... 43
8.3.4 J1939Dcm_SetState ............................................................................... 43
8.3.5 J1939Dcm_GenericDMxTransmit ........................................................... 45
8.4 Call-back notifications ................................................................................. 46
8.4.1 J1939Dcm_RequestIndication ................................................................ 46
8.4.2 J1939Dcm_RxIndication ......................................................................... 47
8.4.3 J1939Dcm_TxConfirmation .................................................................... 48
8.4.4 J1939Dcm_StartOfReception ................................................................. 50
8.4.5 J1939Dcm_CopyRxData ........................................................................ 51
8.4.6 J1939Dcm_TpRxIndication ..................................................................... 52
8.4.7 J1939Dcm_CopyTxData ......................................................................... 53
8.4.8 J1939Dcm_TpTxConfirmation ................................................................ 55
8.4.9 Call-back notifications from DEM ............................................................ 56
8.5 Scheduled functions ................................................................................... 56
8.5.1 J1939Dcm_MainFunction ....................................................................... 57
8.6 Expected Interfaces .................................................................................... 57
8.6.1 Mandatory Interfaces .............................................................................. 57
8.6.2 Optional Interfaces .................................................................................. 57
8.6.3 Configurable interfaces ........................................................................... 59
8.7 Service Interfaces ....................................................................................... 64
剩余96页未读,继续阅读
安全验证
文档复制为VIP权益,开通VIP直接复制

评论0
最新资源