Giter Site home page Giter Site logo

Miss frame when using canfdtest about can-utils HOT 4 OPEN

fxt-7 avatar fxt-7 commented on July 16, 2024
Miss frame when using canfdtest

from can-utils.

Comments (4)

marckleinebudde avatar marckleinebudde commented on July 16, 2024

Hey @fxt-7,

first of all, but unrelated to this issue, you should be using a proper mainline kernel with the mainline driver (mcp251xfd) for your mcp2518fd CAN controller. You're using the mcp25xxfd, which is a old version.

I think canfdtest doesn't properly work in loopback mode, it's not a problem on your side. Better setup a proper CAN bus and start canfdtest -v can0 on one side and canfdtest -vg can0 on the other side. If you have 2 CAN controllers on the same system, you can also use can0 and can1.

from can-utils.

fxt-7 avatar fxt-7 commented on July 16, 2024

Hi @marckleinebudde,

Thank you for your quick and professional answer! ! I will update the driver version to the latest.
So if I want to test the loopback function in one can device, I should use the other tools, just like cangen? Is there a tool similar to canfdtest for testing the loopback function?

Hope your answer~

from can-utils.

marckleinebudde avatar marckleinebudde commented on July 16, 2024

Consider updating your kernel, not just the CAN driver.

I've just updates the canfdtest in the https://github.com/linux-can/can-utils repo. It should now work on CAN devices in loopback mode, use -xx to filter out other and locally generated CAN traffic.

In one terminal:

canfdtest -xx -v can0

In another:

canfdtest -xx -vg can0

from can-utils.

fxt-7 avatar fxt-7 commented on July 16, 2024

Hi @marckleinebudde

I can't update this product's kernel version, I must work on this kernel for the other work, so shall I update the driver to mcp251xfd base on the 5.4.254 kernel ?

On the other hand,thanks for your upadtes! ! I had tried the latest canfdtest to test loopback function, but how to determine if there is a frame drop, judge by these dot “.” ? Or just like the before, the err logs like Databyte %x mismatch?
send
image

receive
image

Another question, after you updating,the usage like ./canfdtest -xx -vg - f 100 can0 is right ? Or just can't assign the frame counts which I want to send ?

Looking forward to your answer, thanks~

from can-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.