# How to use Vector CAN analyzer in Jetson TX2

**URL:** <https://forums.developer.nvidia.com/t/how-to-use-vector-can-analyzer-in-jetson-tx2/63300>\
**Category:** Jetson TX2\
**Created:** [July 18, 2018, 12:27pm UTC](https://forums.developer.nvidia.com/t/how-to-use-vector-can-analyzer-in-jetson-tx2/63300 "2018-07-18T12:27:23Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![spatra](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/spatra/32/12509_2.png) [@spatra](https://forums.developer.nvidia.com/u/spatra)\
**Post date:** [July 19, 2018, 4:43am UTC](https://forums.developer.nvidia.com/t/how-to-use-vector-can-analyzer-in-jetson-tx2/63300/2 "2018-07-19T04:43:45Z")

</div>

Hi,

Please refer the below steps.

These are the steps can be followed to enable and check CAN on TX2.

1. Enable kernel support for mttcan(Other required modules are already supported)  
​ CONFIG\_MTTCAN = m (Here mttcan is compiled as a module)

2. Insert CAN BUS subsystem support module.  
modprobe can

3. Insert Raw CAN protocol module (CAN-ID filtering)  
modprobe can\_raw

4. Real CAN interface support (for our case, it is: mttcan)  
modprobe mttcan (dependent module is can\_dev: can driver with netlink support)

5. CAN interface settings for both the controllers  
ip link set can0 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on  
ip link set up can0  
ip link set can1 type can bitrate 500000 dbitrate 2000000 berr-reporting on fd on  
ip link set up can1

CAN interfaces are up now. Use ifconfig to list all the interfaces which are up.

1. Installation of user app to check CAN communication  
sudo apt-get install can-utils

2. Commands to run to check CAN packet send/receive  
broadcasting a can data packet:  
cansend \<can\_interface\> \<can\_frame\>  
e.g. cansend can0 123#abcdabcd

Receiving a can data packet:  
candump can\_interface  
e.g. candump can1

Different tools (i.e. cangen, cangw etc) can be used for various filtering options.

1. To check the interface statistics  
ip -details -statistics link show can0  
ip -details -statistics link show can1

Thanks & Regards,  
Sandipan

---

_[View the full topic](https://forums.developer.nvidia.com/t/how-to-use-vector-can-analyzer-in-jetson-tx2/63300)._
