obdevel / ACAN2040

Arduino library wrapper for can2040
GNU General Public License v3.0
9 stars 2 forks source link

lagging at >125kbps #1

Open apple2ms opened 1 year ago

apple2ms commented 1 year ago

Has anybody tested it at higher speeds for example 500000? The signals are lagging. Is there any way to solve this? image

obdevel commented 1 year ago

This library is a very thin wrapper around the can2040 project's code (see the README in this repo). My use-case is 125kbps at which it works fine. I would suggest opening an issue in the can2040 repo or adding to my existing 'discussion' issue there. It may be that Kevin has addressed this issue already, but as I know of no way for an Arduino library to automatically depend on a non-Arduino codebase, I have to track and include Kevin's changes manually. If he has already addressed this, I will grab his changes and update this library.

It would help if you have a ability to test Kevin's code independently, to remove any possibility that the Arduino toolchain (which is different to what Kevin uses) is affecting performance.

apple2ms commented 1 year ago

Hi, Do you plan on integrating the latest changes from Kevin's library? I can see that after https://github.com/KevinOConnor/can2040/pull/24 it might be possible to run two instances of it. Would be great if we can get that on arduino. I am willing to test because I already have a few boards with 2x can transceivers.

obdevel commented 1 year ago

Hi, Do you plan on integrating the latest changes from Kevin's library? I can see that after KevinOConnor/can2040#24 it might be possible to run two instances of it. Would be great if we can get that on arduino. I am willing to test because I already have a few boards with 2x can transceivers.

I usually pull in upstream changes when I notice them, so thanks for the heads up. Give me a couple of days as it's a manual copy and paste process.