ISO 15765-2协议-寻址方式
网络层数据的交换支持三种寻址方式:
1.Normal addressing
2.Extended addressing
3.Mixed addressing
每一种寻址格式都需要不同数量的CAN帧数据字节来封装与要交换的数据相关的寻址信息。用户对于单个CAN帧内传输的数据字节数取决于所选寻址格式的类型。
CAN Network layer from ISO 15765-4
Network Iayer interface and Standardized diagnostic CAN identifiers from 15765-3
8.Standardized diagnostic CAN identifiers
Mapping of the N_PDU fields - from ISO15765-2
Addressing formats
The exchange of network layer data is supported by three addressing formats: normal, extended and mixed addressing. Each addressing format requires a different number of CAN frame data bytes to encapsulate the addressing information associated with the data to be exchanged. Consequently, the number of data bytes transported within a single CAN frame depends on the type of addressing format chosen.
The following (7.3.2 to 7.3.5) specifies the mapping mechanisms for each addressing format, based on the data link layer services and service parameters defined in ISO 11898-1.
ISO15765-4协议的代码实现-数据链路层网络层NL_OBD_SendCANFrame函数代码详解(源自C300开发板教程)
如何理解ISO15765-4协议和ISO15031-5协议
ISO 15765 协议下载
下载链接
基于CAN总线的汽车诊断协议UDS (网络层 ISO 15765)
网络层的国际标准是ISO 15756-2,该标准详细规定了协议的具体细节。CAN总线是一帧8个字节,该协议可以使CAN总线高效的传输大约8个字节(up to 4095 bytes)的命令和数据。基于该标准文档,我开发出了一个独立性良好的协议栈,工作在上层诊断协议之下和下层CAN驱动之上,下面详解开发协议栈时需要实现的部分(基于 ISO 15765-2:2004(E))