Low PCAN-USB throughput versus PCAN-USB FD?
Posted: Wed 13. Feb 2019, 02:33
I have two PEAK CAN dongles: a regular grey PCAN-USB, and a black PCAN-USB FD. I am seeing big differences in max throughput between the two dongles and I'm not sure why.
Background: I am running Ubuntu 18.04 in a virtual machine, and I have a custom application which uses SocketCAN to transfer data as quickly as possible. I cannot achieve bus loads higher than ~20% or so with PCAN-USB, while PCAN-USB FD is easily able to reach ~85% bus load.
I then tried using cangen to generate maximum bus load:
This has a similar result: PCAN-USB maxes out at 20%, while PCAN-USB FD achieves 98% bus load. (The CAN bus only has one other node, and that node is only transmitting a single 1Hz frame.)
I also have a Windows 10 virtual machine on the same physical machine. Using PCAN Explorer 6, I can generate 100% bus load with PCAN-USB. So PCAN-USB itself is clearly capable of maximum throughput on this machine, but something on the Linux side seems to be preventing higher bus loads.
I'm not sure where to look to diagnose this. Is there a known cause for this sort of issue?
My /etc/network/interfaces contains this interface config:
Thanks!
Alex
Background: I am running Ubuntu 18.04 in a virtual machine, and I have a custom application which uses SocketCAN to transfer data as quickly as possible. I cannot achieve bus loads higher than ~20% or so with PCAN-USB, while PCAN-USB FD is easily able to reach ~85% bus load.
I then tried using cangen to generate maximum bus load:
Code: Select all
cangen can0 -g 0
I also have a Windows 10 virtual machine on the same physical machine. Using PCAN Explorer 6, I can generate 100% bus load with PCAN-USB. So PCAN-USB itself is clearly capable of maximum throughput on this machine, but something on the Linux side seems to be preventing higher bus loads.
I'm not sure where to look to diagnose this. Is there a known cause for this sort of issue?
My /etc/network/interfaces contains this interface config:
Code: Select all
allow-hotplug can0
iface can0 can static
restart-ms 100
bitrate 500000
up ip link set $IFACE txqueuelen 4000
Alex