星期六, 09 10月 2021 14:13

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.

7.3.2        Normal addressing 
For each combination of N_SA, N_TA, N_TAtype and Mtype, a unique CAN identifier is assigned. N_PCI and N_Data is placed in the CAN frame data field. See Table 19.
Table 19 — Mapping of N_PDU parameters into CAN frame — Normal addressing 




 
N_PDU type


 
CAN Identifier


CAN frame data field




Byte 1


Byte 2


Byte 3


Byte 4


Byte 5


Byte 6


Byte 7


Byte 8




SingleFrame (SF)


N_AI


N_PCI


N_Data




FirstFrame (FF)


N_AI


N_PCI


N_Data




ConsecutiveFrame (CF)


N_AI


N_PCI


N_Data




FlowControl (FC)


N_AI


N_PCI


N/A




 
 7.3.3 Normal fixed addressing 
Normal fixed addressing is a subformat of normal addressing where the mapping of the address information into the CAN identifier is further defined. In the general case of normal addressing, described above, the correspondence between N_AI and the CAN identifier is left open.
For normal fixed addressing, only 29 bit CAN identifiers are allowed. Tables 20 and 21 define the mapping of the address information (N_AI) into the CAN identifier, depending on the target address type (N_TAtype). N_PCI and N_Data is placed in the CAN frame data field.
Table 20 — Normal fixed addressing, N_TAtype = physical 




 
N_PDU type


29 bit CAN Identifier bit position


CAN frame data field byte position




28 ... 26


25


24


23 ... 16


15


8


7 ... 0


1


2


3


4


5


6


7


8




SingleFrame (SF)


110 (bin)


0


0


218 (dec)


N_TA


N_SA


N_PCI


N_Data




FirstFrame (FF)


110 (bin)


0


0


218 (dec)


N_TA


N_SA


N_PCI


N_Data




ConsecutiveFrame (CF)


110 (bin)


0


0


218 (dec)


N_TA


N_SA


N_PCI


N_Data




FlowControl (FC)


110 (bin)


0


0


218 (dec)


N_TA


N_SA


N_PCI


N/A




 
Table 21 — Normal fixed addressing, N_TAtype = functional 




 
N_PDU type


29 bit CAN Identifier bit position


CAN frame data field byte position




28 ... 26


25


24


23 ... 16


15


8


7 ... 0


1


2


3


4


5


6


7


8




SingleFrame (SF)


110 (bin)


0


0


219 (dec)


N_TA


N_SA


N_PCI


N_Data




FirstFrame (FF)


110 (bin)


0


0


219 (dec)


N_TA


N_SA


N_PCI


N_Data




ConsecutiveFrame (CF)


110 (bin)


0


0


219 (dec)


N_TA


N_SA


N_PCI


N_Data




FlowControl (FC)


110 (bin)


0


0


219 (dec)


N_TA


N_SA


N_PCI


N/A




7.3.4        Extended addressing 
For each combination of N_SA, N_TAtype and Mtype, a unique CAN identifier is assigned. N_TA is placed in the first data byte of the CAN frame data field. N_PCI and N_Data is placed in the remaining bytes of the CAN frame data field....

继续阅读完整内容

请查看下方广告以解锁文章剩余内容

广告加载中...
查看 17122
 

瑞驰车友会微信公众号

qrcode for gh 673928177533 258

Please support our site by viewing this advertisement.

Please support our site by viewing this advertisement

Free Content