ISO 15765-2协议-寻址方式

星期三, 13 10月 2021

网络层数据的交换支持三种寻址方式:

1.Normal addressing

2.Extended addressing

3.Mixed addressing

每一种寻址格式都需要不同数量的CAN帧数据字节来封装与要交换的数据相关的寻址信息。用户对于单个CAN帧内传输的数据字节数取决于所选寻址格式的类型。

Network layer
7 Network Iayer interface
8.Standardized diagnostic CAN identifiers
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.

具体看NL_OBD_SendCANFrame函数关于ISO15765-4协议这部分代码的实现。
脱离枯燥的理论来感受ISO15765-4协议

ISO 15765 协议下载

星期一, 04 05月 2020

下载链接

网络层的国际标准是ISO 15756-2,该标准详细规定了协议的具体细节。CAN总线是一帧8个字节,该协议可以使CAN总线高效的传输大约8个字节(up to 4095 bytes)的命令和数据。基于该标准文档,我开发出了一个独立性良好的协议栈,工作在上层诊断协议之下和下层CAN驱动之上,下面详解开发协议栈时需要实现的部分(基于 ISO 15765-2:2004(E))