目录
1 打开CANape(点击Start按钮前)
2 关闭CANape(点击Stop按钮后)
3 报文注释
3.1 Connect连接
3.2 Exchange Station Identifications交换站标识
3.3 Get Seed for Key & Unlock Protection获取密钥的种子&解锁保护
3.3.1 Get Seed for Key报文格式
3.3.2 Unlock Protection报文格式
3.4 Get implemented Version of CCP获取实施的CCP版本
3.5 Disconnect断开连接
4 结尾
关键字:
CCP:Can Calibration Protocol
CRO:Command Receive Object
DTO:Data Transmission Object
本文旨在帮助大家理解CCP的通信过程。
相关推荐阅读(点击下方5个链接即可):
1、如何使用CANape实现XCP/CCP“Measurement测量”和“Calibration标定”变量
2、如何使用CANape查看CAN Message ID和Signal信号
3、【图解CCP协议的CAN通信过程】-2_Polling通信观测变量/信号
4、【图解CCP协议的CAN通信过程】-3_DAQ通信观测变量/信号
5、【图解CCP协议的CAN通信过程】-4_Calibration标定过程
ASAM MCD-1 CCP是在标定工具(如CANape,INCA..)和ECU之间定义了CAN特定的标定协议。本文旨在帮助大家理解CCP的通信过程(如果有选择,ASAM建议使用ASAM MCD-1 XCP)。
打开CANape软件(点击Start按钮前),截取到的CAN报文;
15.997772 1 667 Rx d 8 01 01 39 00 00 00 00 00 15.998160 1 771 Rx d 8 FF 00 01 FE 39 00 00 00 15.998744 1 667 Rx d 8 17 02 00 00 00 00 00 00 15.999114 1 771 Rx d 8 FF 00 02 03 00 03 03 8E 15.999458 1 667 Rx d 8 12 03 01 00 00 00 00 00 16.000180 1 771 Rx d 8 FF 00 03 01 00 00 84 B8 16.002723 1 667 Rx d 8 13 04 A2 03 23 6C 00 00 16.003091 1 771 Rx d 8 FF 00 04 01 00 00 84 B8 16.003445 1 667 Rx d 8 12 05 02 00 00 00 00 00 16.003922 1 771 Rx d 8 FF 00 05 01 00 00 84 B8 16.005775 1 667 Rx d 8 13 06 A2 03 23 6C 00 00 16.006143 1 771 Rx d 8 FF 00 06 03 00 00 84 B8 16.006775 1 667 Rx d 8 1B 07 02 01 00 00 00 00 16.007135 1 771 Rx d 8 FF 00 07 02 01 00 84 B8
关闭CANape软件(点击Stop按钮后),截取到的CAN报文;
65.226061 1 667 Rx d 8 07 08 01 00 39 00 00 00 65.226535 1 771 Rx d 8 FF 00 08 02 01 00 84 B8
15.997772 1 667 Rx d 8 01 01 39 00 00 00 00 00
15.998160 1 771 Rx d 8 FF 00 01 FE 39 00 00 00
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = CONNECT 0x01
命令代码= CONNECT 0x01
01
1
byte
Command Counter = CTR
命令计数器
01
2~3
word
station address (Intel format)
站地址(Intel格式)
00 39
4~7
bytes
don't care
无关
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
01
3~7
bytes
don't care
无关
15.998744 1 667 Rx d 8 17 02 00 00 00 00 00 00
15.999114 1 771 Rx d 8 FF 00 02 03 00 03 03 8E
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = EXCHANGE_ID 0x17
命令代码= EXCHANGE_ID 0x17
17
1
byte
Command Counter = CTR
命令计数器
02
2
byte
CCP master device ID information (optional and implementation specific)
CCP主设备ID信息(可选和特定于实现)
00
3~7
bytes
don't care
无关
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
02
3
byte
length of slave device ID in bytes
从设备ID的长度(以字节为单位)
03
4
byte
data type qualifier of slave device ID (optional and implementation specific)
从设备ID的数据类型限定符(可选和特定于实现)
00
5
byte
Resource Availability Mask
资源可用性掩码
03
6
byte
Resource Protection Mask
资源保护掩码
03
7
bytes
don’t care
无关
15.999458 1 667 Rx d 8 12 03 01 00 00 00 00 00
16.000180 1 771 Rx d 8 FF 00 03 01 00 00 84 B8
16.002723 1 667 Rx d 8 13 04 A2 03 23 6C 00 00
16.003091 1 771 Rx d 8 FF 00 04 01 00 00 84 B8
16.003445 1 667 Rx d 8 12 05 02 00 00 00 00 00
16.003922 1 771 Rx d 8 FF 00 05 01 00 00 84 B8
16.005775 1 667 Rx d 8 13 06 A2 03 23 6C 00 00
16.006143 1 771 Rx d 8 FF 00 06 03 00 00 84 B8
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = GET_SEED 0x12
命令代码= GET_SEED 0x12
12
1
byte
Command Counter = CTR
命令计数器
03/05
2
byte
Requested slave resource or function (Resource Mask)
请求的从站资源或功能(资源掩码)
01/02
3~7
bytes
don't care
无关
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
03/05
3
byte
Protection status (TRUE or FALSE)
保护状态(真或假)
01
4…7
bytes
'seed' data
“种子”数据
00 00 84 B8
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = UNLOCK 0x13
命令代码= UNLOCK 0x13
12
1
byte
Command Counter = CTR
命令计数器
04/06
2…7
bytes
'key'
A2 03 23 6C
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
04/06
3
byte
Current Privilege Status (Resource Mask)
当前权限状态(资源掩码)
01/03
4…7
bytes
don't care
无关
16.006775 1 667 Rx d 8 1B 07 02 01 00 00 00 00
16.007135 1 771 Rx d 8 FF 00 07 02 01 00 84 B8
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = GET_CCP_VERSION 0x1B
命令代码= GET_CCP_VERSION 0x1B
1B
1
byte
Command Counter = CTR
命令计数器
07
2
byte
Main Protocol version (desired)
主协议版本(所需)
02
3
byte
Release within version (desired)
在版本内发布(所需)
01
4~7
bytes
don't care
无关
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
07
3
byte
Main Protocol version as implemented
已实施的主协议版本
02
4
byte
Release within version as implemented
在实施版本内发布
01
5~7
bytes
don't care
无关
65.226061 1 667 Rx d 8 07 08 01 00 39 00 00 00
65.226535 1 771 Rx d 8 FF 00 08 02 01 00 84 B8
CRO请求报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Command Code = DISCONNECT 0x07
命令代码= DISCONNECT 0x07
07
1
byte
Command Counter = CTR
命令计数器
08
2
byte
0x00 temporary, 0x01 end of session
临时0x00,0x01会话结束
01
3
byte
don't care
无关
4~5
word
station address (Intel format)
站地址(Intel格式)
00 39
6~7
bytes
don't care
无关
DTO响应报文格式:
Position(Byte)
Type
Description
Log报文
0
byte
Packet ID: 0xFF
包标识:0xFF
FF
1
byte
Command Return Code
命令返回码
00
2
byte
Command Counter = CTR
命令计数器
08
3~7
bytes
don't care
无关
相关推荐阅读(点击下方两个链接即可):
1、如何使用CANape实现XCP/CCP“Measurement测量”和“Calibration标定”变量
2、如何使用CANape查看CAN Message ID和Signal信号
3、【图解CCP协议的CAN通信过程】-2_Polling通信观测变量/信号
4、【图解CCP协议的CAN通信过程】-3_DAQ通信观测变量/信号
5、【图解CCP协议的CAN通信过程】-4_Calibration标定过程