Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

NI CAN arbitration id break-down

Solved!
Go to solution

What is the break-down of arbitration ID for extended message?

 

Is it:

 

| x | x | 1 | 11-bits standard | 18-bits extended |

             ^                ^ ^                ^

             msb            lsb msb            lsb

or

 

| x | x | 1 | 18-bits extended | 11-bits standard |

             ^                ^ ^                ^

             msb            lsb msb            lsb

 

 

I couldn't find this information. I need to map CAN message structure in Freescale implementation which is as follows (32-bit):

 

| 11-bits standard | SRR | IDE | 18-bits extended | RTR |

 ^                ^             ^                ^

 msb            lsb             msb            lsb

 

 

where SRR => Substitute Remote Request bit (remote request for standard ID)

      IDE => Extended ID bit. 1 => extended id, 0 => standard id

      RTR => Remote Request for extended ID

 

Please advice.

0 Kudos
Message 1 of 4
(6,806 Views)

The question itself was incorrect. I figured it out. There is nothing like:

 

| x | x | 1 | 11-bits standard | 18-bits extended |

             ^                ^ ^                ^

             msb            lsb msb            lsb

or

 

| x | x | 1 | 18-bits extended | 11-bits standard |

             ^                ^ ^                ^

             msb            lsb msb            lsb

 

 

it is just as follows:

 

for extended:

 

| x | x | 1 | 29-bits extended |

             ^                ^ 

             msb            lsb

 

 

for standard:

 

| x | x | 0 | <18-bits padded with zeroes> | 11-bits standard |

                                            ^                ^ 

                                            msb            lsb

 

 

The confusion came out from tx/rx buffer description in freescale MSCAN.

0 Kudos
Message 2 of 4
(6,759 Views)
Solution
Accepted by YogeeshBK

The CAN bus doesn't send 18 0-byte padded bytes for a standard ID.

 

Most hardware has a 32-bit register for the ID.

For a 29-bit ID, you fill up 28:0. For an 11-bit ID, you fill up 28:18 with the ID.

One of the upper bits 31, 30, or 29 indicates whether the ID is standard or extended for the sake of the transmission.

 

 

Message 3 of 4
(6,756 Views)

Thanks a lot. In our project, we use 29-bits (extended ID).

 

So, I guessed, the upper 18 bits would be padded to keep bit numbering to start from bit 0 for both standard and extended.

0 Kudos
Message 4 of 4
(6,751 Views)