# CAN Transmitt Buffer full

**URL:** <https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248>\
**Category:** Jetson Nano\
**Tags:** can-bus\
**Created:** [June 20, 2023, 8:55am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248 "2023-06-20T08:55:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rosen1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rosen1](https://forums.developer.nvidia.com/u/rosen1)\
**Post date:** [June 20, 2023, 8:55am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/1 "2023-06-20T08:55:34Z")

</div>

Hey,  
I have a working script on my computer that sends a lot of messages to 6 can node ids. When I run the script from my computer and send around 800 messages per second i have no problem. I use canopen library and read/write with RemoteNode and SDOClient.  
When I switch to Jetson nano Im getting LAG, meaning the messages are send with delay and after a bit i got an error that the buffer is full. I am using USB2CAN from innomaker. My cpu load is around 20% when I send most of the messages.  
What could lead to this delay I am experiencing ?  
What could possibly fix it ?

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [June 21, 2023, 8:41am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/3 "2023-06-21T08:41:10Z")

</div>

Hi rosen1,

Are you using the devkit or custom board for Jetson Nano?  
What’s your Jetpack version in use?

Do you mean that your script work as expected on host PC but get issue on Jetson Nano?

How do you test CAN transmission? Is that loopback or send/receive with 2 CAN devices?

---

<div class="post-metadata">

**Author:** ![rosen1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rosen1](https://forums.developer.nvidia.com/u/rosen1)\
**Post date:** [June 22, 2023, 7:26am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/4 "2023-06-22T07:26:14Z")

</div>

Yes, my script works perfectly on my laptop, but have problems on jetson nano. I have the devkit B01. My jeptpack version is 4.6 with Linux kernel 4.9 and 18.04 Ubuntu. It works fine until i start to send a lot of commands for short period. Then they are executed but with significant delay, as if they are qued and processed really slow, which is not optimal for me. Im using rosbag file for logging.

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [June 26, 2023, 7:27am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/5 "2023-06-26T07:27:15Z")

</div>

> [@rosen1](#):
>
> It works fine until i start to send a lot of commands for short period.

Have you tried to change the higher data rate with the following instruction with FD enabled?  
[Controller Area Network (CAN) — To set the interface properties](https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/HR/ControllerAreaNetworkCan.html?#to-set-the-interface-properties)

Or configuring TDCR for higher bit rates?  
[Controller Area Network (CAN) — To configure the TDCR for higher bit rates](https://docs.nvidia.com/jetson/archives/r35.3.1/DeveloperGuide/text/HR/ControllerAreaNetworkCan.html?#to-configure-the-tdcr-for-higher-bit-rates)

---

<div class="post-metadata">

**Author:** ![rosen1](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@rosen1](https://forums.developer.nvidia.com/u/rosen1)\
**Post date:** [June 27, 2023, 6:47am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/6 "2023-06-27T06:47:39Z")

</div>

I cannot enable can FD. When i write :  
ip link set can0 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on  
i get RTNETLINK answers: Operation not supported

I also have problem with kernel:  
cat /proc/device-tree/mttcan@c310000/status  
cat: /proc/device-tree/mttcan@c310000/status: No such file or directory

---

<div class="post-metadata">

**Author:** ![KevinFFF](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kevinfff/32/15508_2.png) [@KevinFFF](https://forums.developer.nvidia.com/u/KevinFFF)\
**Post date:** [June 27, 2023, 9:49am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/7 "2023-06-27T09:49:46Z")

</div>

**There is no update from you for a period, assuming this is not an issue any more.  
Hence we are closing this topic. If need further support, please open a new one.  
Thanks**

Could you try enter su mode and run the command?

```auto
$sudo su
#ip link set can0 up type can bitrate 500000 dbitrate 1000000 berr-reporting on fd on

```

> [@rosen1](#):
>
> I also have problem with kerne

Do you load the kernel module for CAN or enable this node in device tree?

```auto
modprobe mttcan

```

---

<div class="post-metadata">

**Author:** ![kayccc](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/kayccc/32/14043_2.png) [@kayccc](https://forums.developer.nvidia.com/u/kayccc)\
**Post date:** [July 5, 2023, 4:31am UTC](https://forums.developer.nvidia.com/t/can-transmitt-buffer-full/257248/9 "2023-07-05T04:31:57Z")

</div>

Closed on July 5, 2023, 4:31am UTC


