CAN communication in NVIDIA Jetson Nano

30 views (last 30 days)
Hi,
I am trying to interface a IMU sensor that has CAN communication with NVIDIA Jetson Nano and visualize the data in simulink and use the data in my model.
But as the NVIDIA Jetson Nano doesn't have inbuilt CAN interface, I would like some inputs on how this can be done using the MATLAB/Simulink support packages for NVIDIA Jetson.
Can some one give me inputs on how I can integrate CAN communication in a Jetson Nano and use the data over CAN within my Simulink Models.
Thank you

Accepted Answer

Ramakrishna Mandalapu
Ramakrishna Mandalapu on 7 Nov 2023
Hi Vasanth,
Unfortunately, on Jetson Nano there are no built-in CAN controllers. You can refer to this post on the NVIDIA blog. In the post they confirm that there are no CAN controllers on Jetson Nano. In addition, they provide a CAN solution through SPI interface, you can follow that approach if you want CAN only IMU integration. IMU sensors can be interfaced through I2C as well. The current sensors we support through Simulink uses I2C. I suggest if you are not concerned about the interface then you can take advantage of these sensor blocks in the support package "MATLAB Coder support package for NVIDIA Jetson and NVIDIA DRIVE Platforms".
Thanks,
Ramakrishna
  7 Comments
Ramakrishna Mandalapu
Ramakrishna Mandalapu on 20 Nov 2023
Hi Vasanth,
Do you have "Embedded coder" installed? if not then these setting will not be available.
Thanks,
Ramakrishna
Vasanth Krishnan
Vasanth Krishnan on 20 Nov 2023
Hi Ramakrishna,
I have rectified the error and its now working good. I got the CAN working in the Jetson Nano both via USB-CAN as well as SPI and I am able to visualize the data within Simulink.
Thank you for your inputs,
Vasanth

Sign in to comment.

More Answers (0)

Categories

Find more on Get Started with GPU Coder in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!