Skip to main content
turboscrew
Senior III
November 13, 2018
Solved

CAN filtering

  • November 13, 2018
  • 5 replies
  • 909 views

How does one define the filter for a CAN A message, when the ID is only 11 bits?

If using 16-bit filter, what should be put to the EXTID[17:15]?

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    >>What do the EXTID-bits match to?

    Whatever you have on the wire, it is a one-to-one deal, not magic. If it's random crap you're going to need to mask it...

    5 replies

    Tesla DeLorean
    Guru
    November 13, 2018

    Match = (ID << 5)

    Mask = 0x7FF << 5;

    Let me go find the diagram, I've posted it a bunch of times to older iteration of the forum...

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    Tesla DeLorean
    Guru
    November 13, 2018

    0690X000006CMzsQAG.jpg

    For the identifier list expect you're going to have to exactly match the bit patterns you've enumerated.

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    turboscrew
    Senior III
    November 14, 2018

    Just that CAN A does not have EXTID. CAN A ID is only 11 bits.

    What do the EXTID-bits match to?

    Or maybe one needs to use masking with CAN A?

    Tesla DeLorean
    Tesla DeLoreanBest answer
    Guru
    November 14, 2018

    >>What do the EXTID-bits match to?

    Whatever you have on the wire, it is a one-to-one deal, not magic. If it's random crap you're going to need to mask it...

    Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
    turboscrew
    Senior III
    November 14, 2018

    As I thought. Thanks for confirmation.