logo资料库

06-DCM模块软件使用说明 恒润协议栈UDS部分的DCM模块使用说明书.pdf

第1页 / 共60页
第2页 / 共60页
第3页 / 共60页
第4页 / 共60页
第5页 / 共60页
第6页 / 共60页
第7页 / 共60页
第8页 / 共60页
资料共60页,剩余部分请下载后查看
文档介绍
目的
适用范围
读者对象
参考文档
术语和缩写
DCM模块
功能概述
输入条件
模块关系图
文件组成
内核文件
Dcm.h
Dcm _Types.h
Dcm.c
Dcm_Cbk.h
Dcm_Cbk.c
配置文件
Dcm_Cfg.h
Dcm_Cfg.c
Dcm_Lcfg.c
应用程序回调函数文件
App_Dcm.h
App_Dcm.c
资源占用
接口函数使用说明
DCM与CanTp接口
Dcm_StartOfReception
Dcm_CopyRxData
Dcm_CopyTxData
Dcm_RxIndication
Dcm_TxConfirmation
DCM与应用程序接口
Dcm_Init
Dcm_MainFunction
DsdInternal_ProcessingDone
DsdInternal_SetNegResponse
DslInternal_RCRResponsePending
DsdInternal_ProcessingDoneNoResponse
Dcm_GetSecurityLevel
Dcm_GetSesCtrlType
Dcm_ResetToDefaultSession
DsdInternal_SecurityAccessKeyCompared
DsdInternal_RoutineStarted
应用程序回调函数接口
App_DiagnosticActive
App_DefaultSession
App_DefaultSessionPost
App_ExtendedSession
App_ExtendedSessionPost
App_HardReset
App_HardResetPost
App_ClearDiagnosticInformation
App_ReportNumberOfDTCByStatusMask
App_ReportDTCByStatusMask
App_ReportDTCSnapshortRecordByDTCNumber
App_ReportDTCExtendedDataRecordByDTCNumber
App_ReportSupportedDTC
App_Read<0xF010>
App_GetSeed_L<1>
App_CompareKey_L<1>
App_EnableRxAndTx
App_EnableRxAndDisableTx
App_DisableRxAndTx
App_Write<0xF010>
AppRoutinControlStart<0x5800>
AppRoutinControlStop<0x5800>
AppRoutinControlResult<0x5800>
App_DTCRecordOn
App_DTCRecordOff
App_ShortTermAdjustment_<0x5001>
App_ReturnControlToEcu_<0x5001>
配置参数使用说明
Pre-Compile配置参数(宏)表
Pre-Compile配置参数(变量)
const uint8* gCurrentSidMap
const DcmDsdServiceTable* gCurrentDcmDsdServiceTable
const uint32 gCurentDcmDsdServiceTableSize
const DcmDsdSubService gDcmDsdSubService
Link-Time配置参数
const uint32 gDcmDspNonDefaultSessionS3Server
const DcmDspSessionRow gDcmDspSessionRow
const DcmDspSecurityRow gDcmDspSecurityRow
const uint16 DcmDspMaxDidToRead
const Dcm_22_ServiceInfoType gDcmDsdSubService_22
const uint8 gMemoryAddressFormat
const uint8 gMemorySizeFormat
const DcmDspReadMemoryRangeInfo gDcmDspReadMemoryRangeInfo_23
const Dcm_24_ServiceInfoType gDcmDsdSubService_24
const Dcm_2A_ServiceInfoType gDcmDsdSubService_2A
const Dcm_2C_ServiceInfoType gDcmDsdSubService_2C
const Dcm_2E_ServiceInfoType gDcmDsdSubService_2E
const Dcm_2F_ServiceInfoType gDcmDsdSubService_2F
const DcmDspRoutine DcmDspRoutineIdentifierTable_31
const DcmDspWriteMemoryRangeInfo gDcmDspWriteMemoryRangeInfo_3D
时序图
单帧请求单帧肯定响应
单帧请求否定响应
单帧请求多帧肯定响应
多帧请求单帧肯定响应
多帧请求否定响应
多帧请求多帧肯定响应
需要较长处理时间的诊断回调函数
注意事项
源代码示例
软件局限性
DCM 模块软件使用说明 恒 润 科 技
文件状态: [ ] 草稿 [√ ] 正式发布 [ ] 正在修改 文件起草分工: 1. 刘小燕 编制: 刘小燕 签名: 刘小燕 日期: 2011-04-10 审核: 马秋英 签名: 马秋英 日期: 2011-05-10 批准: 陈昆盛 签名: 陈昆盛 日期: 2011-05-10 所 有 权 声 明 该文档及其所含信息是恒润科技有限公司的财产。该文档及其所含信息的复制、使用及披 露必须得到恒润科技有限公司的书面授权。 第 I 页
更改历史 版本 更改描述 1.0 初始版本 1.1 更新 更改日期 2011-04-10 2012-01-15 更改人 刘小燕 刘小燕 第 II 页
目 录 1 文档介绍 2 DCM模块 1.1 1.2 1.3 1.4 1.5 2.1 2.2 2.3 2.4 2.5 2.6 2.4.1 内核文件 2.4.2 配置文件 2.4.2.1 Dcm_Cfg.h 2.4.2.2 Dcm_Cfg.c 2.4.2.3 Dcm_Lcfg.c 2.4.3 应用程序回调函数文件 2.4.1.1 Dcm.h 2.4.1.2 Dcm _Types.h 2.4.1.3 Dcm.c 2.4.1.4 Dcm_Cbk.h 2.4.1.5 Dcm_Cbk.c ................................................................................................................................................... 1 ........................................................................................................................................... 1 目的 ................................................................................................................................... 1 适用范围 ................................................................................................................................... 1 读者对象 ................................................................................................................................... 1 参考文档 ............................................................................................................................... 1 术语和缩写 ................................................................................................................................................. 1 ................................................................................................................................... 1 功能概述 ................................................................................................................................... 1 输入条件 ............................................................................................................................... 2 模块关系图 ................................................................................................................................... 2 文件组成 ........................................................................................................................... 2 ........................................................................................................................ 3 ............................................................................................................ 3 ........................................................................................................................ 3 ............................................................................................................... 3 ................................................................................................................ 3 ........................................................................................................................... 3 ................................................................................................................ 3 ................................................................................................................ 3 ............................................................................................................... 3 ................................................................................................... 3 ............................................................................................................... 3 ............................................................................................................... 4 ................................................................................................................................... 4 ................................................................................................................... 4 ........................................................................................................... 4 ............................................................................................. 4 .................................................................................................... 4 .................................................................................................... 5 .................................................................................................... 6 ............................................................................................... 6 ...................................................................................................... 7 ................................................................................................................... 7 .................................................................................................. 7 .................................................................................... 8 ................................................................................... 8 ........................................................................... 9 .............................................................. 10 ............................................................................................11 ...............................................................................................11 .................................................................................. 12 .................................................... 12 2.6.2.1 Dcm_Init 2.6.2.2 Dcm_MainFunction 2.6.2.3 DsdInternal_ProcessingDone 2.6.2.4 DsdInternal_SetNegResponse 2.6.2.5 DslInternal_RCRResponsePending 2.6.2.6 DsdInternal_ProcessingDoneNoResponse 2.6.2.7 Dcm_GetSecurityLevel 2.6.2.8 Dcm_GetSesCtrlType 2.6.2.9 Dcm_ResetToDefaultSession 2.6.2.10 2.6.1.1 Dcm_StartOfReception 2.6.1.2 Dcm_CopyRxData 2.6.1.3 Dcm_CopyTxData 2.6.1.4 Dcm_RxIndication 2.6.1.5 Dcm_TxConfirmation 2.4.3.1 App_Dcm.h 2.4.3.2 App_Dcm.c 资源占用 接口函数使用说明 DsdInternal_SecurityAccessKeyCompared 2.6.1 DCM与CanTp接口 2.6.2 DCM与应用程序接口 第 III 页
2.6.2.11 DsdInternal_RoutineStarted 2.6.3 应用程序回调函数接口 2.6.3.1 App_DiagnosticActive 2.6.3.2 App_DefaultSession 2.6.3.3 App_DefaultSessionPost 2.6.3.4 App_ExtendedSession 2.6.3.5 App_ExtendedSessionPost 2.6.3.6 App_HardReset 2.6.3.7 App_HardResetPost 2.6.3.8 App_ClearDiagnosticInformation 2.6.3.9 App_ReportNumberOfDTCByStatusMask 2.6.3.10 2.6.3.11 2.6.3.12 2.6.3.13 2.6.3.14 2.6.3.15 2.6.3.16 2.6.3.17 2.6.3.18 2.6.3.19 2.6.3.20 2.6.3.21 2.6.3.22 2.6.3.23 2.6.3.24 2.6.3.25 2.6.3.26 2.6.3.27 配置参数使用说明 App_ReportDTCByStatusMask App_ReportDTCSnapshortRecordByDTCNumber App_ReportDTCExtendedDataRecordByDTCNumber App_ReportSupportedDTC App_Read<0xF010> App_GetSeed_L<1> App_CompareKey_L<1> App_EnableRxAndTx App_EnableRxAndDisableTx App_DisableRxAndTx App_Write<0xF010> AppRoutinControlStart<0x5800> AppRoutinControlStop<0x5800> AppRoutinControlResult<0x5800> App_DTCRecordOn App_DTCRecordOff App_ShortTermAdjustment_<0x5001> App_ReturnControlToEcu_<0x5001> ............................................................................. 12 ................................................................................................. 13 ............................................................................................. 13 ................................................................................................ 13 .......................................................................................... 14 ............................................................................................. 14 ...................................................................................... 15 ........................................................................................................ 15 ................................................................................................. 16 ............................................................................ 16 ............................................................. 16 ....................................................................... 17 ......................................... 17 .................................. 18 ............................................................................. 18 ........................................................................................ 19 ........................................................................................ 19 ................................................................................ 19 ...................................................................................... 20 ......................................................................... 20 .................................................................................... 21 ....................................................................................... 21 .................................................................... 22 .................................................................... 22 ................................................................. 22 ........................................................................................ 23 ........................................................................................ 23 ........................................................... 24 ............................................................. 24 ................................................................................................................. 24 ..................................................................................... 24 ..................................................................................... 32 .................................................................................. 32 ................................. 34 ...................................................... 34 .................................................... 34 ........................................................................................................ 34 ............................................... 35 ................................................. 35 ............................................... 35 ..................................................................... 35 .................................. 36 .................................................................... 36 .......................................................................... 36 ..... 36 const uint32 gDcmDspNonDefaultSessionS3Server const DcmDspSessionRow gDcmDspSessionRow const DcmDspSecurityRow gDcmDspSecurityRow const uint16 DcmDspMaxDidToRead const Dcm_22_ServiceInfoType gDcmDsdSubService_22 const uint8 gMemoryAddressFormat const uint8 gMemorySizeFormat const DcmDspReadMemoryRangeInfo gDcmDspReadMemoryRangeInfo_23 const uint8* gCurrentSidMap const DcmDsdServiceTable* gCurrentDcmDsdServiceTable const uint32 gCurentDcmDsdServiceTableSize const DcmDsdSubService gDcmDsdSubService 2.7.2.1 2.7.2.2 2.7.2.3 2.7.2.4 2.7.3.1 2.7.3.2 2.7.3.3 2.7.3.4 2.7.3.5 2.7.3.6 2.7.3.7 2.7.3.8 第 IV 页 2.7 2.7.1 2.7.2 Pre-Compile配置参数(宏)表 Pre-Compile配置参数(变量) 2.7.3 Link-Time配置参数
2.7.3.9 2.7.3.10 2.7.3.11 2.7.3.12 2.7.3.13 2.7.3.14 2.7.3.15 gDcmDspWriteMemoryRangeInfo_3D const Dcm_24_ServiceInfoType gDcmDsdSubService_24 const Dcm_2A_ServiceInfoType gDcmDsdSubService_2A const Dcm_2C_ServiceInfoType gDcmDsdSubService_2C const Dcm_2E_ServiceInfoType gDcmDsdSubService_2E const Dcm_2F_ServiceInfoType gDcmDsdSubService_2F const DcmDspRoutine DcmDspRoutineIdentifierTable_31 const .................................... 37 .......................... 38 ........................... 38 ........................... 39 ............................ 39 ........................... 40 DcmDspWriteMemoryRangeInfo .................................................................................. 41 ..................................................................................................................................................... 42 ......................................................................................................... 43 单帧请求单帧肯定响应 ................................................................................................................. 44 单帧请求否定响应 ......................................................................................................... 45 单帧请求多帧肯定响应 ......................................................................................................... 46 多帧请求单帧肯定响应 ................................................................................................................. 47 多帧请求否定响应 ......................................................................................................... 48 多帧请求多帧肯定响应 ..................................................................................... 49 需要较长处理时间的诊断回调函数 ................................................................................................................................................. 50 ............................................................................................................................................. 51 ............................................................................................................................................. 51 3 时序图 3.1 3.2 3.3 3.4 3.5 3.6 3.7 4 注意事项 5 源代码示例 6 软件局限性 此行切勿删除,目录结束标签 第 V 页
分享到:
收藏