没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
主要内容:本文档详细规定了AUTOSAR(汽车开放系统架构)CAN Transport Layer的具体标准,版本号为4.2.21。文中详尽描述了CAN通信网络中消息发送与接收机制,接口规范和服务定义,并强调它与CAN Interface 和 PDU Router模块之间的关系,以及它们是如何协同工作的来确保高效的消息收发,适用于嵌入式软件开发者、ECU软件设计人员和其他希望深入掌握车载网络通讯协议的专家级从业人员;同时介绍了最新的修改历史记录和更新特性比如对Flexible Data Rate的支持、对数据块大小静态配置能力等。 适用人群:嵌入式软件开发者,尤其关注车载系统的专业工程师,以及需要对AUTOSAR有深入了解的技术研究人员。 使用场景及目标:用于帮助理解和实施车载通讯网络的高级特性和最新技术,如全双工传输模式支持、错误处理改善等功能。 其他说明:该资料属于AUTOSAR发布的最终正式标准规范文档的一部分,仅供教育和技术交流用途。
资源推荐
资源详情
资源评论
Specification of CAN Transport Layer
AUTOSAR Release 4.2.2
1 of 99 Document ID 014: AUTOSAR_SWS_CANTransportLayer
- AUTOSAR confidential -
Document Title
Specification of CAN Transport
Layer
Document Owner
AUTOSAR
Document Responsibility
AUTOSAR
Document Identification No
014
Document Classification
Standard
Document Status
Final
Part of AUTOSAR Release
4.2.2
Document Change History
Release
Changed by
Change Description
4.2.2
AUTOSAR
Release
Management
File structure correction
FC_OVFL clarification
DET Renaming and Extension Incorporation
4.2.1
AUTOSAR
Release
Management
Introduced support for CAN Flexible Data rate
Minor corrections
Clarifications
4.1.3
AUTOSAR
Release
Management
Revised padding behaviour.
Clarified relation between
CanTpMainFunctionPeriod and other timers.
Revised CanTp_RxIndication() prototype.
Extended parameter CanTpTc for receive
cancellation.
4.1.2
AUTOSAR
Release
Management
Replace NTFRSLT_OK/NTFRSLT_<other>
E_OK/E_NOT_OK
Handling of unexpected arrival of N-PDU table
clarification
Editorial changes
Removed chapter(s) on change documentation
4.1.1
AUTOSAR
Administration
Error handling has been improved
PostBuild concept has been refined
Introduction of HDV support
Clarifications of buffer handling
4.0.3
AUTOSAR
Administration
CanTp does not report production errors
anymore
Metamodel structure changed
Harmonization with the new buffer concept
Change the BlockSize to be statically
configurable instead a maximum value
4.0.2
AUTOSAR
Administration
Corrections and improvement in errors
description;
API services correction;
Clarifications in relation with buffer handling
Updated table in Ch.6 for half and full duplex
support
Specification of CAN Transport Layer
AUTOSAR Release 4.2.2
2 of 99 Document ID 014: AUTOSAR_SWS_CANTransportLayer
- AUTOSAR confidential -
Document Change History
Release
Changed by
Change Description
4.0.1
AUTOSAR
Administration
Added Mixed Addressing Mode
CanTp supports Full Duplex Mode
New buffering concept
Added possibility to change CanTp parameters
Legal disclaimer revised
3.0.1
AUTOSAR
Administration
Addition of transmit cancellation feature
DataLength check only for too small DLC
(CanTp220)
Restriction on mapping of N-Pdu
(SWS_CanTp_00248)
Document meta information extended
Small layout adaptations made
2.1.16
AUTOSAR
Administration
“Advice for users” revised
“Revision Information” added
2.1.15
AUTOSAR
Administration
Clarification and correction of error
management: list of production/development
error and behavior in case of error
Addition of SWS_CanTp_00166 and
SWS_CanTp_00167 to avoid blocking situation
in case of no buffer provided by upper layer
Remove of CanTpRxWftMax of container
CanTpTxNSdu
1 parameter added for the call of
Det_ReportError
Add header files inclusions
Addition of CanTpNSa container in configuration
chapter
Legal disclaimer revised
2.1
AUTOSAR
Administration
Document structure adapted to common
Release 2.0 SWS Template.
1.0
AUTOSAR
Administration
Initial Release
Specification of CAN Transport Layer
AUTOSAR Release 4.2.2
3 of 99 Document ID 014: AUTOSAR_SWS_CANTransportLayer
- AUTOSAR confidential -
Disclaimer
This specification 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 specification.
The material contained in this specification is protected by copyright and other types
of Intellectual Property Rights. The commercial exploitation of the material contained
in this specification requires a license to such Intellectual Property Rights.
This specification 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 specification may be utilized or reproduced, in any form or by any means, without
permission in writing from the publisher.
The AUTOSAR specifications have been developed for automotive applications only.
They have neither been developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Advice for users
AUTOSAR specifications may contain exemplary items (exemplary reference
models, "use cases", and/or references to exemplary technical solutions, devices,
processes or software).
Any such exemplary items are contained in the specifications for illustration purposes
only, and they themselves are not part of the AUTOSAR Standard. Neither their
presence in such specifications, nor any later documentation of AUTOSAR
conformance of products actually implementing such exemplary items, imply that
intellectual property rights covering such exemplary items are licensed under the
same rules as applicable to the AUTOSAR Standard.
Specification of CAN Transport Layer
AUTOSAR Release 4.2.2
4 of 99 Document ID 014: AUTOSAR_SWS_CANTransportLayer
- AUTOSAR confidential -
Table of Contents
1 Introduction and functional overview ................................................................... 7
2 Acronyms and abbreviations ............................................................................. 10
3 Related documentation...................................................................................... 13
3.1 Input documents .......................................................................................... 13
3.2 Related standards and norms ..................................................................... 14
3.3 Related specification ................................................................................... 14
4 Constraints and assumptions ............................................................................ 15
4.1 Limitations ................................................................................................... 15
4.2 Applicability in automotive domain .............................................................. 15
5 Dependencies on other modules ....................................................................... 16
5.1 AUTOSAR architecture basic concepts ....................................................... 16
5.1.1 CAN Transport Layer connection(s) ...................................................... 16
5.1.2 CAN Transport Layer interactions ......................................................... 16
5.1.3 Processing mode .................................................................................. 17
5.1.4 Data consistency ................................................................................... 17
5.1.5 Static configuration ............................................................................... 17
5.1.6 PDU Router services ............................................................................ 18
5.1.7 CAN Interface services ......................................................................... 18
5.2 File structure ................................................................................................ 18
5.2.1 Code file structure ................................................................................. 19
5.2.2 Header file structure .............................................................................. 19
5.2.3 Version check ....................................................................................... 20
5.2.4 Design Rules......................................................................................... 20
6 Requirements traceability .................................................................................. 21
7 Functional specification ..................................................................................... 29
7.1 Services provided to upper layer ................................................................. 29
7.1.1 Initialization and shutdown .................................................................... 29
7.1.2 Transmit request ................................................................................... 31
7.1.3 Transmit cancellation ............................................................................ 31
7.2 Services provided to the lower layer ............................................................ 32
7.2.1 Transmit confirmation ........................................................................... 32
7.2.2 Reception indication .............................................................................. 32
7.3 Internal behavior .......................................................................................... 33
7.3.1 N-SDU Reception ................................................................................. 33
7.3.2 N-SDU Transmission ............................................................................ 37
7.3.3 Buffer strategy ....................................................................................... 40
7.3.4 Protocol parameter setting services ...................................................... 43
7.3.5 Tx and Rx data flow .............................................................................. 43
7.3.6 Relationship between CAN NSduId and CAN LSduId .......................... 44
7.3.7 Concurrent connection .......................................................................... 46
7.3.8 N-PDU padding ..................................................................................... 47
7.3.9 Handling of unexpected N-PDU arrival ................................................. 49
7.4 Error classification ....................................................................................... 51
7.4.1 Development Errors .............................................................................. 52
Specification of CAN Transport Layer
AUTOSAR Release 4.2.2
5 of 99 Document ID 014: AUTOSAR_SWS_CANTransportLayer
- AUTOSAR confidential -
7.4.2 Runtime Errors ...................................................................................... 52
7.4.3 Transient Faults .................................................................................... 53
7.4.4 Production Errors .................................................................................. 53
7.4.5 Extended Production Errors .................................................................. 53
7.5 Error detection ............................................................................................. 53
7.6 Error notification .......................................................................................... 54
7.7 AUTOSAR debugging concept .................................................................... 55
8 API specification ................................................................................................ 56
8.1 Imported types ............................................................................................. 56
8.2 Type definitions ........................................................................................... 56
8.2.1 CanTp_ConfigType ............................................................................... 56
8.3 Function definitions...................................................................................... 57
8.3.1 CanTp_Init ............................................................................................ 57
8.3.2 CanTp_ GetVersionInfo ........................................................................ 57
8.3.3 CanTp_Shutdown ................................................................................. 58
8.3.4 CanTp_Transmit ................................................................................... 59
8.3.5 CanTp_CancelTransmit ........................................................................ 61
8.3.6 CanTp_CancelReceive ......................................................................... 62
8.3.7 CanTp_ChangeParameter .................................................................... 63
8.3.8 CanTp_ReadParameter ........................................................................ 64
8.3.9 Main Function ....................................................................................... 64
8.4 Call-back notifications .................................................................................. 65
8.4.1 CanTp_RxIndication ............................................................................. 65
8.4.2 CanTp_TxConfirmation ......................................................................... 66
8.5 Expected Interfaces ..................................................................................... 66
8.5.1 Mandatory Interfaces ............................................................................ 66
8.5.2 Optional Interfaces ................................................................................ 67
9 Sequence diagrams .......................................................................................... 68
9.1 SF N-SDU received and no buffer available. ............................................... 68
9.1.1 Assumptions ......................................................................................... 68
9.1.2 Sequence diagram ................................................................................ 68
9.1.3 Transition description ............................................................................ 68
9.2 Successful SF N-PDU reception.................................................................. 70
9.2.1 Assumptions ......................................................................................... 70
9.2.2 Sequence diagram ................................................................................ 70
9.2.3 Transition description ............................................................................ 71
9.3 Transmit request of SF N-SDU .................................................................... 71
9.3.1 Assumptions ......................................................................................... 71
9.3.2 Sequence diagram ................................................................................ 72
9.3.3 Transition description ............................................................................ 73
9.4 Transmit request of larger N-SDU ............................................................... 74
9.4.1 Assumptions ......................................................................................... 74
9.4.2 Sequence diagram ................................................................................ 75
9.4.3 Transition description ............................................................................ 76
9.5 Large N-SDU Reception .............................................................................. 77
9.5.1 Assumptions ......................................................................................... 77
9.5.2 Sequence diagram ................................................................................ 78
9.5.3 Transition description ............................................................................ 79
剩余98页未读,继续阅读
资源评论
weixin_44295580
- 粉丝: 48
- 资源: 12
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 新手Django入门与实践
- 计算机组成原理实验报告计算机组成原理实验报告PDF
- Java毕业设计基于springboot+vue的养老院管理系统源码+数据库脚本
- 自定义TreeView,多列带有标头,支持多选绑定,带有虚拟化技术
- springboot高校学生请假管理系统(附源码+数据库)38439
- 茉莉新版绿茶高阶定制35款语音包.zip
- keepalived v2.3.2 for el7
- IC3D blox:3DIC设计新范式
- keepalived v2.3.2 for el8
- springboot在线音乐播放器(附源码+数据库)39689
- 本科生学习计算机网络课程
- content_1732669807001.pdf
- 遥感图像分类 高分辨率遥感影像数据集
- 封装组件-D3绘制 雷达图及保姆级注解
- DirectX 11 框架.zip
- 基于springboot+vue的养老院管理系统 (源码+数据库脚本)-高分毕业设计项目
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功