# Configuring CAN Channels on the Drive Xavier

**URL:** <https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187>\
**Category:** DRIVE AGX Xavier General\
**Created:** [March 5, 2019, 8:58pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187 "2019-03-05T20:58:40Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviralfay1b](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aviralfay1b](https://forums.developer.nvidia.com/u/aviralfay1b)\
**Post date:** [March 5, 2019, 8:58pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/1 "2019-03-05T20:58:40Z")

</div>

Hello All,

I am trying to configure CAN channels on the Drive Xavier.

Currently on the Xavier, I see Can0 and Can1 configured.

I am able to see the CAN bus traffic (on the pin 2 and 7 - CAN 6) when using sample can --driver=can.socket --params=device=can1. I believe --driver=can.socket --params=device=can0 corresponds to CAN 4? Currently I dont have a mating DB9 that converts 8 and 1 pins to 2 and 7 so I am unable to verify that.

I wanted to ask the following:-

1. Could I get a link to the document where these dependency of the Can0- CAN 6 channel is defined?
2. How do I configure the CAN channels - 1, 2, 3, 5, (assuming Can0=\> Channel 4 and Can1=\> Channel 6)

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [March 6, 2019, 3:46am UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/2 "2019-03-06T03:46:46Z")

</div>

Dear aviralfay1b,

Could you please refer to 5.1.2 Configured CAN controller mapping in Aurix firmware in DDP\_EB\_AURIX\_Software\_UserGuide.pdf which is in DRIVE-V5.0.13-E3550-Aurix.zip in your hostPC? Thanks.

---

<div class="post-metadata">

**Author:** ![aviralfay1b](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aviralfay1b](https://forums.developer.nvidia.com/u/aviralfay1b)\
**Post date:** [March 26, 2019, 12:17am UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/3 "2019-03-26T00:17:48Z")

</div>

Hello,

Thank you for the reply but unfortunately, I am unable to configure this.

I did follow through the DDP\_EB\_AURIX\_Software\_UserGuide.pdf which is in DRIVE-V5.0.13-E3550-Aurix.zip in the hostPC but still couldn’t configure it.

Maybe you could provide more details on this? Step by step instructions?

Thanks

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [March 26, 2019, 1:36am UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/4 "2019-03-26T01:36:07Z")

</div>

Dear aviralfay1b,

I think you need to contact EB team for your topic.  
I will send a PM. Thanks.

---

<div class="post-metadata">

**Author:** ![aviralfay1b](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aviralfay1b](https://forums.developer.nvidia.com/u/aviralfay1b)\
**Post date:** [April 4, 2019, 4:50pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/5 "2019-04-04T16:50:48Z")

</div>

Hello,

I received no reply from the EB contact you provided. Is there any way, I can use the sample builds to log CAN traffic on Aurix channels? If so please provide some detailed instructions.

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [April 5, 2019, 2:36am UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/6 "2019-04-05T02:36:20Z")

</div>

Dear aviralfay1b,

Unfortunately Aurix CAN is in charge of EB teams.  
I think you’ll have to ask EB team once again.

---

<div class="post-metadata">

**Author:** ![aviralfay1b](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@aviralfay1b](https://forums.developer.nvidia.com/u/aviralfay1b)\
**Post date:** [April 10, 2019, 3:00am UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/7 "2019-04-10T03:00:03Z")

</div>

Hello,

I was able to get the easy can working both receive and transmit through the python scripts provided.  
For those who are facing similar problems, here is the solution:-

First configure all the CAN Rx messages on aurix\_configure\_easy\_can.py.  
Run the python file  
This will configure the aurix chip to channel the configured message on the ethernet between the aurix and the tegra  
Execute the aurix\_tegra\_a\_can\_send\_receive.py and you should be able to see the messages that you configured in the above script. You can edit this script now to fill in a text file or log in whatever format you wish to log.

However, if we run nvidia sample build ./sample\_canbus\_logger–driver=can.aurix --params=ip=10.42.0.146, bus=a,

we get an exception saying “cannot identify the tegra board” I tried changing the ip to 10.42.0.28 (tegra A) and 10.42.0.29 (tegra B) still i keep getting the same exception. Somehow I feel the answer to this problem lies within how nvidias sample build is calling the EBs aurix can apis. The python scripts are working but not the sample build.

---

<div class="post-metadata">

**Author:** ![Phil.Chen](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@Phil.Chen](https://forums.developer.nvidia.com/u/Phil.Chen)\
**Post date:** [February 9, 2020, 4:24pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/8 "2020-02-09T16:24:46Z")

</div>

Did you figure out how to use multiple aurix can channel working at the same time? It will be highly appreciated if you can share what you found if you figured out!

---

<div class="post-metadata">

**Author:** ![anil-kumar.chavali](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@anil-kumar.chavali](https://forums.developer.nvidia.com/u/anil-kumar.chavali)\
**Post date:** [August 6, 2021, 1:46pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/9 "2021-08-06T13:46:20Z")

</div>

Hello ,

I’m facing a similar situation described by @aviralfay1b , How can we solve this issue ? I also observed that the sample canbus logger works for standard CAN frames , but for extended can frames it doesn’t work.(config file was modified according to frame type)

---

<div class="post-metadata">

**Author:** ![VickNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/vicknv/32/14043_2.png) [@VickNV](https://forums.developer.nvidia.com/u/VickNV)\
**Post date:** [August 6, 2021, 3:11pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/10 "2021-08-06T15:11:37Z")

</div>

Hi @anil-kumar.chavali , Please create a new topic linked to his post. Thanks.

---

<div class="post-metadata">

**Author:** ![TomNVIDIA](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/tomnvidia/32/14181_2.png) [@TomNVIDIA](https://forums.developer.nvidia.com/u/TomNVIDIA)\
**Post date:** [October 12, 2021, 8:03pm UTC](https://forums.developer.nvidia.com/t/configuring-can-channels-on-the-drive-xavier/71187/11 "2021-10-12T20:03:11Z")

</div>


