【转】CAN通讯协议中PGN的计算

http://hi.baidu.com/luckdst/item/2e71bdf02711870fc7dc453c


      数据链路层通过协议数据单元(PDU)组织数据帧中的协议相关信息。PDU由CAN扩展数据帧中29位ID和O~8字节数据场组成。

CAN通讯协议中PGN的计算
J1939协议
// 18DB33F1
// 110   0   0   11011011 00110011 11110001
// P3~1 R1 DP    PF8~1    PS8~1     SA8~1
// PGN = R1 | DP | PF | PS = 56115

P Priority
R Reserved
PS PDU Specific
SA Source Address
PF PDU Format
DLC Data Length Code


DTC (4字节