Does mttcan support id filtering

Hi,

Does CAN support ID filtering on all the jetson platforms?
If so, how to enable and use it?

hello 295839633,

please insert raw CAN protocol module for CAN-ID filtering,
for example, $ modprobe can_raw

Hi,

Thank you.

I’m also concerned about whether filtering will take up CPU resources.
Is the filtering in can_raw through software filtering or can controller filtering?

hello 295839633,

could you please share the actual use-case for reference?
thanks

Hi,

At present, it is just in the evaluation stage.
If using candump can0 123:7FF, is the filtering by software or can controller?

hello 295839633,

CAN controller (mttcan) is NOT available for Jetson Nano, you may also check TRM for details,

you may load CAN kernel drivers and configure interface settings for transferring packets,
for example,
follow below steps to check if controller is working fine,

  1. Short Tx and Rx pins of Tegra
  2. Enable CAN drivers
  3. ip link set can0 type can bitrate 500000 loopback on
  4. ip link set can0 up
  5. candump can0 &
  6. cansend can0 123#abcdabcd

it’s mttcan controllers to handle the communication,
thanks