没有合适的资源?快使用搜索试试~ 我知道了~
XCP -Part 2- Protocol Layer Specification
需积分: 47 11 下载量 145 浏览量
2014-11-19
16:44:17
上传
评论
收藏 797KB PDF 举报
温馨提示
试读
155页
Part 2 “Protocol Layer Specification” defines the generic protocol, which is independent from the transportation layer used
资源推荐
资源详情
资源评论
XCP
Version 1.0
“The Universal Measurement and Calibration
Protocol Family”
Part 2
Protocol Layer Specification
Association for Standardization of
Automation and Measuring Systems
Dated:2003-04-08
© ASAM E.V.
XCP -Part 2- Protocol Layer Specification -1.0.DOC
2
Status of Document
Date: 2003-04-08
Authors: Roel Schuermans, Vector Informatik GmbH
Rainer Zaiser, Vector Informatik GmbH
Frank Hepperle, DaimlerChrysler AG
Hans Schröter, DaimlerChrysler AG
Reiner Motz, Robert Bosch GmbH
Andreas Aberfeld, Robert Bosch GmbH
Hans-Georg Kunz, Siemens VDO Automotive AG
Thomas Tyl, Siemens VDO Automotive AG
Robert Leinfellner, dSPACE GmbH
Hendirk Amsbeck, dSPACE GmbH
Harald Styrsky, Compact Dynamics GmbH
Boris Ruoff, ETAS GmbH
Lars Wahlmann, Accurate Technologies Inc.
Version: 1.0
Doc-ID: XCP -Part 2- Protocol Layer Specification -1.0
Status: Released
Type Final
Disclaimer of Warranty
Although this document was created with the utmost care it cannot be guaranteed that it is
completely free of errors or inconsistencies.
ASAM e.V. makes no representations or warranties with respect to the contents or use of
this documentation, and specifically disclaims any expressed or implied warranties of
merchantability or fitness for any particular purpose. Neither ASAM nor the author(s)
therefore accept any liability for damages or other consequences that arise from the use of
this document.
ASAM e.V. reserves the right to revise this publication and to make changes to its content,
at any time, without obligation to notify any person or entity of such revisions or changes.
XCP -Part 2- Protocol Layer Specification -1.0.DOC
3
Revision History
This revision history shows only major modifications between release versions.
Date Author Filename Comments
2003-04-08 R.Schuermans Released document
XCP -Part 2- Protocol Layer Specification -1.0.DOC
4
Table of contents
0 Introduction........................................................................................................8
0.1 The XCP Protocol Family............................................................................................... 8
0.2 Documentation Overview............................................................................................... 9
0.3 Definitions and Abbreviations...................................................................................... 10
1 The XCP Protocol Layer ..................................................................................11
1.1 The XCP Packet............................................................................................................ 11
1.1.1 The XCP Packet Types ............................................................................................ 11
1.1.2 The XCP Packet Format........................................................................................... 12
1.1.2.1 The Identification Field................................................................................. 13
1.1.2.2 The Timestamp Field.................................................................................... 18
1.1.2.3 The Data Field............................................................................................... 20
1.1.3 The CTO Packets..................................................................................................... 21
1.1.3.1 Command Packet (CMD).............................................................................. 21
1.1.3.2 Command Response packet (RES)............................................................... 21
1.1.3.3 Error packet (ERR) ....................................................................................... 22
1.1.3.4 Event packet (EV)......................................................................................... 22
1.1.3.5 Service Request packet (SERV) .................................................................. 22
1.1.4 The DTO Packets..................................................................................................... 23
1.1.4.1 Data Acquisition Packet (DAQ) ................................................................... 23
1.1.4.2 Synchronous Data Stimulation Packet (STIM)............................................. 23
1.1.5 The XCP Packet Identifiers...................................................................................... 24
1.1.5.1 Master ! Slave............................................................................................. 24
1.1.5.2 Slave !Master.............................................................................................. 24
1.2 Table of Event codes (EV) ........................................................................................... 25
1.3 Table of Service Request codes (SERV)...................................................................... 26
1.4 Table of Command codes (CMD)................................................................................ 27
1.4.1 Standard commands (STD)...................................................................................... 28
1.4.2 Calibration commands (CAL) ................................................................................. 29
1.4.3 Page switching commands (PAG)........................................................................... 30
1.4.4 Data Acquisition and Stimulation commands (DAQ)............................................. 31
1.4.5 Non-volatile memory programming commands (PGM) ......................................... 32
1.5 Table of bit mask coded parameters............................................................................. 33
1.6 Description of Commands............................................................................................ 43
1.6.1 Standard commands (STD)...................................................................................... 44
1.6.1.1 Mandatory commands................................................................................... 44
1.6.1.1.1 Set up connection with slave................................................................ 44
1.6.1.1.2 Disconnect from slave.......................................................................... 47
1.6.1.1.3 Get current session status from slave................................................... 48
1.6.1.1.4 Synchronize command execution after time-out.................................. 53
1.6.1.2 Optional commands ...................................................................................... 54
1.6.1.2.1 Get communication mode info............................................................. 54
1.6.1.2.2 Get identification from slave................................................................ 56
XCP -Part 2- Protocol Layer Specification -1.0.DOC
5
1.6.1.2.3 Request to save to non-volatile memory.............................................. 57
1.6.1.2.4 Get seed for unlocking a protected resource........................................ 58
1.6.1.2.5 Send key for unlocking a protected resource ....................................... 59
1.6.1.2.6 Set Memory Transfer Address in slave................................................ 62
1.6.1.2.7 Upload from slave to master ................................................................ 63
1.6.1.2.8 Upload from slave to master (short version)........................................ 65
1.6.1.2.9 Build checksum over memory range.................................................... 66
1.6.1.3 Auxiliary commands..................................................................................... 68
1.6.1.3.1 Refer to transport layer specific command .......................................... 68
1.6.1.3.2 Refer to user defined command............................................................ 69
1.6.2 Calibration commands (CAL) ................................................................................. 70
1.6.2.1 Mandatory commands................................................................................... 70
1.6.2.1.1 Download from master to slave ........................................................... 70
1.6.2.2 Optional commands ...................................................................................... 71
1.6.2.2.1 Download from master to slave (Block Mode).................................... 71
1.6.2.2.2 Download from master to slave (fixed size) ........................................ 72
1.6.2.2.3 Download from master to slave (short version)................................... 73
1.6.2.2.4 Modify bits........................................................................................... 74
1.6.3 Page switching commands (PAG)........................................................................... 75
1.6.3.1 Mandatory commands................................................................................... 75
1.6.3.1.1 Set calibration page.............................................................................. 75
1.6.3.1.2 Get calibration page ............................................................................. 76
1.6.3.2 Optional commands ...................................................................................... 77
1.6.3.2.1 Get general information on PAG processor......................................... 77
1.6.3.2.2 Get specific information for a SEGMENT .......................................... 78
1.6.3.2.3 Get specific information for a PAGE................................................... 80
1.6.3.2.4 Set mode for a SEGMENT................................................................... 83
1.6.3.2.5 Get mode for a SEGMENT.................................................................. 84
1.6.3.2.6 Copy page............................................................................................. 85
1.6.4 Data Acquisition and Stimulation Commands (DAQ)............................................ 86
1.6.4.1 Static DAQ list configuration (stat).............................................................. 86
1.6.4.1.1 Mandatory commands.......................................................................... 86
1.6.4.1.1.1 Clear DAQ list configuration ......................................................... 86
1.6.4.1.1.2 Set pointer to ODT entry................................................................ 87
1.6.4.1.1.3 Write element in ODT entry........................................................... 88
1.6.4.1.1.4 Set mode for DAQ list.................................................................... 89
1.6.4.1.1.5 Get mode from DAQ list................................................................ 91
1.6.4.1.1.6 Start /stop/select DAQ list.............................................................. 93
1.6.4.1.1.7 Start/stop DAQ lists (synchronously)............................................. 94
1.6.4.1.2 Optional commands.............................................................................. 95
1.6.4.1.2.1 Get DAQ clock from slave............................................................. 95
1.6.4.1.2.2 Read element from ODT entry....................................................... 96
1.6.4.1.2.3 Get general information on DAQ processor................................... 97
1.6.4.1.2.4 Get general information on DAQ processing resolution.............. 101
1.6.4.1.2.5 Get specific information for a DAQ list....................................... 103
1.6.4.1.2.6 Get specific information for an event channel ............................. 105
1.6.4.2 Dynamic DAQ List Configuration (dyn).................................................... 107
1.6.4.2.1 Optional commands............................................................................ 107
1.6.4.2.1.1 Clear dynamic DAQ configuration .............................................. 107
1.6.4.2.1.2 Allocate DAQ lists ....................................................................... 108
剩余154页未读,继续阅读
资源评论
vzlybt
- 粉丝: 0
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- GEC6818:一款高性能嵌入式开发板GEC6818:一款高性能嵌入式开发板
- 红外和可见光图像融合,红外和可见光图像融合目的,Python实现源码(优质项目源码).zip
- Python中的数据可视化工具Matplotlib
- Yolov8算法在自定义数据集上的训练和应用Yolov8算法在自定义数据集上的训练和应用
- 代码迷宫2.sb3
- C#课程设计大作基于WinForm的页面美观功能完整的导师双选系统源码..zip
- 基于C#实现的Crazepony上位机源代码
- 基于Flask+vue的环境管理系统源码(优质项目源码).zip
- 冒泡排序的定义及java代码实现
- 平均电流知识点(包含平均电流的建模和概述)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功