没有合适的资源?快使用搜索试试~ 我知道了~
ISO 15765-2 CANTP层介绍
资源推荐
资源详情
资源评论
ISO/DIS 15765-2 Transport Protocol
CANoe DLL – Version 5
ISO/DIS 15765-2 Transport Protocol - CANoe DLL II
©2010, Vector Informatik GmbH Osek_tp_e.doc Version 5
Table of contents
1
Introduction ....................................................................................................................1
1.1 Abbreviations ........................................................................................................................1
1.2 New Features of DLL version 5.6 .........................................................................................2
1.3 New Features of DLL version 5 ............................................................................................2
1.4 New Features of DLL version 4.14 .......................................................................................2
1.5 New Features of version 4.9..................................................................................................2
1.6 New Features of version 4.7..................................................................................................3
1.6.1 Extended fault injection feature..................................................................................................3
1.6.2 New API Functions.....................................................................................................................3
1.7 Corrections and clarifications................................................................................................3
1.8 New Features of version 4.4..................................................................................................4
1.8.1 Standard (2003-11-11) extensions ..............................................................................................4
1.8.2 New functionality .......................................................................................................................4
1.8.3 New API Functions.....................................................................................................................4
1.8.4 Additional database attribute ......................................................................................................4
1.9 Corrections and clarifications................................................................................................4
1.10 New Features of Version 4.0.................................................................................................5
1.11 New Features of Version 3.3.................................................................................................5
1.12 New Features of Version 3.2.................................................................................................5
1.12.1 Bug Fixes...............................................................................................................................5
1.12.2 New Functionality .................................................................................................................5
1.12.3 New API Functions ...............................................................................................................5
1.12.4 New INI file switches............................................................................................................5
1.13 New Features of Version 3.1.................................................................................................6
1.13.1 Bug Fixes...............................................................................................................................6
1.13.2 New API Functions ...............................................................................................................6
1.13.3 New INI file switches............................................................................................................6
1.13.4 Usability ................................................................................................................................6
1.14 New Features of Version 3.0.................................................................................................6
1.14.1 New Addressing Modes ........................................................................................................6
1.14.2 Additional Database Attributes .............................................................................................6
1.14.3 New API functions ................................................................................................................7
1.14.4 Other changes........................................................................................................................8
1.15 New Features of Version 2.5.................................................................................................8
1.15.1 New API functions ................................................................................................................8
1.15.2 New Callback functions ........................................................................................................9
1.15.3 Additional Database Attributes ...........................................................................................10
1.15.4 Other changes......................................................................................................................10
2 Properties of OSEK_TP.DLL .......................................................................................10
2.1 Versions and Functional Features .......................................................................................10
2.1.1 Normal Addressing...................................................................................................................11
2.1.2 Extended Addressing ................................................................................................................11
2.1.3 Normal Fixed Addressing.........................................................................................................11
2.1.4 Mixed Addressing.....................................................................................................................11
2.1.5 11 bit Mixed Addressing...........................................................................................................11
2.1.6 Special Aspects of the Implementation.....................................................................................12
2.1.7 Standard 2003 extensions .........................................................................................................12
2.2 Node-Specific Simulation ...................................................................................................12
ISO/DIS 15765-2 Transport Protocol - CANoe DLL III
©2010, Vector Informatik GmbH Osek_tp_e.doc Version 5
2.3 Parameterization..................................................................................................................12
2.3.1 Ini File.......................................................................................................................................12
2.3.2 Old Format................................................................................................................................15
2.3.3 Database....................................................................................................................................16
2.3.4 CANoe Options ........................................................................................................................17
2.3.5 Model Parameterization............................................................................................................18
3 Functional Description ................................................................................................18
3.1 CAPL Expansions ...............................................................................................................18
3.1.1 Functions for Data Transfer......................................................................................................18
3.1.2 Addressing Mode......................................................................................................................18
3.1.3 Protocol Parameters for all addressing modes ..........................................................................19
3.1.3.1 Times ...............................................................................................................................21
3.1.3.2 Protocol Parameters for Extended Addressing ................................................................22
3.1.3.3 Protocol Parameters for Normal Addressing ...................................................................23
3.1.3.4 Protocol Parameters for Normal Fixed Addressing .........................................................23
3.1.3.5 Protocol Parameters for Mixed Addressing .....................................................................24
3.1.3.6 Protocol Parameters for 11 bit Mixed Addressing...........................................................25
3.1.4 CAN transmission timeout handling.........................................................................................25
3.1.5 Transfer acceleration.................................................................................................................25
3.2 Callback Functions and error codes ....................................................................................26
3.3 Acknowledged data transfer (extension) .............................................................................27
3.3.1 Description................................................................................................................................27
3.3.2 Activation .................................................................................................................................28
3.3.3 Additional functions .................................................................................................................28
3.3.4 Examples ..................................................................................................................................28
4 Demo .............................................................................................................................29
4.1 Model layout .......................................................................................................................29
4.2 Description of the Panels.....................................................................................................29
4.3 Observer functionality.........................................................................................................31
5 Installation ....................................................................................................................31
5.1 Product Components Supplied ............................................................................................31
5.2 Installation...........................................................................................................................31
6 Frequently asked questions .......................................................................................32
7 Appendix: Fault injection support..............................................................................33
7.1 Introduction .........................................................................................................................33
7.2 WARNING..........................................................................................................................33
7.3 Usage...................................................................................................................................33
7.3.1 Functions ..................................................................................................................................33
7.3.2 Callbacks ..................................................................................................................................35
7.3.3 Aborting data transfer...............................................................................................................35
7.4 Feature interaction...............................................................................................................36
7.5 Examples .............................................................................................................................36
7.5.1 Basic fault injection functions ..................................................................................................36
7.5.2 Change the delay in the Presend-callback.................................................................................37
7.5.3 Abort transmission explicitly....................................................................................................37
ISO/DIS 15765-2 Transport Protocol - CANoe DLL 1
©2010, Vector Informatik GmbH Osek_tp_e.doc Version 5
1 Introduction
Efforts over the past several years to standardize diagnostic protocols and procedures internation-
ally have largely been completed with the introduction of the diagnostic protocol "Keyword Proto-
col 2000" (KWP2000) at all European automobile manufacturers and with the definition by
ISO/TF2 of a Transport Layer for diagnostic purposes (YAPTL or OSEK/COM 2.0).
The transport protocol standardized by ISO/TF2 is the basis for data transfer during diagnosis, but
is also used in other communication applications in which messages must be exchanged that are
larger than the transport capability of a CAN message. The purpose of the CANoe expansion DLL
described in this document is to model and simulate bus nodes which utilize this protocol.
Its implementation and specification are based on information of the following document:
• YAPTL - Yet Another Proposal for Transport Layer; Version 1.5; 06-04-97
• Releases from 3.0 implement the OSEK TP defined in the standard ISO/DIS 15765-2
(1999-11-30)
• Releases from 3.2 implement the OSEK TP defined in the standard ISO/DIS 15765-2
(2001-11-01)
• Releases from 4.1 implement the OSEK TP defined in the standard ISO/DIS 15765-2
(2003-11-11)
The version of the DLL described here is 5.0.0 (cf. 1.2 for details).
1.1 Abbreviations
Abbrev. Meaning
BS Block size, is defined by the receiver and transmitted to the sender in FC
CF Consecutive Frame
FC Flow Control
FF First Frame
SA Source Address (address of sender)
SF Single Frame: Transport layer message that fits into a single CAN message (6
(extended A.) or 7 (normal A.) data bytes)
Stmin Minimum interframe space, is defined by the receiver and transmitted to the
sender in FC
TA Target Address
TPCI Transport Protocol Control Information, is transmitted in Byte 0 (normal address)
or Byte 1 (extended address).
WFTmax The maximum number of consecutive wait frames the receiver sends before abort-
ing the transmission.
ISO/DIS 15765-2 Transport Protocol - CANoe DLL 2
©2010, Vector Informatik GmbH Osek_tp_e.doc Version 5
1.2 New Features of DLL version 5.6
• It is possible to accelerate the sending of data by forwarding several CAN frames at once to
the CAN controller (default: 64). For details refer to section 3.1.5.
• To im
prove the precision for small timer values, please refer to section 6.
1.3 New Features of DLL version 5
• CANoe 5.0 or later is necessary now.
• There is an additional, alternative API allowing multiple TP connection in parallel and fur-
ther improvements. Please refer to CanTP_Manual.PDF for details.
• Transmission will abort with new error code 10 if an invalid FlowStatus value is received
in an expected FlowControl frame (cf. ISO/DIS 15765-2, section 7.5.5.3).
• It is possible to set the values of the J1939 ID fields for normal fixed and mixed (29 bit)
mode (cf. 3.1.3.4 for details).
• It is possible
to specify more precisely how the DLL reacts on CAN frame Tx timeout er-
rors (cf. 3.1.4). In addition, these errors are indicated to CAPL (cf. 3.2).
• The extended m
ode with freely assigned IDs (i.e. no base address) can now use extended
CAN IDs too.
• Fault Injection: It is possible to double a Consecutive Frame and specify the distance be-
tween the frames (cf. 7.3.1).
• Fault Injection: A fram
e can be dropped completely from a callback function (cf. 7.3.2).
• Fault Injection: Data tr
ansfers can be aborted at any time outside of a callback function (cf.
7.3.3).
1.4 New Features of DLL version 4.14
• The DLL reports its functions with more information in the CAPL browser selection dia-
log. In addition, the functions have been divided into two groups, one for normal and one
for fault injection functions.
• The extended (29 bit) CAN ID format is now fully available in normal and extended ad-
dressing modes. Note that a 29 bit base address for extended mode can only be set using
the CAPL function
OSEKTL_SetTpBaseAdr and that the usage of extended IDs has to be acti-
vated with the call
OSEKTL_UseExtId( 1);.
• It is possible to use a special ASDT (acknowledged segmented data transfer) mode exten-
sion. Please cf. to section 3.3 for details.
1.5 New Features of version 4.9
• First- and Single-Frames are also indicated in the OSEKTL_FI_PreSend callback (cf.7.3.2).
• In extended addressing mode, it is possible to specify a range of addresses for reception, in-
stead of using only the rx-mask (cf. 3.1.3.2,
OSEKTL_SetMsgCount()).
剩余41页未读,继续阅读
资源评论
车载网络测试
- 粉丝: 1w+
- 资源: 7
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功