Comments (4)
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.
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.
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.
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
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)
- cangw freezes after ~4,000 msgs HOT 18
- In can-calc-bit-timing -? the --tq parameter is not described HOT 2
- cangw persistent rules HOT 11
- canbusload: pselect() is called with uninitialzied sigmask HOT 7
- Use of J1939, can-utils, RaspberryPi, ValueCan4 HOT 11
- Candump dont show delta HOT 60
- systemd cannot configure canbus TransmitQueueLength does not take effect HOT 1
- CANGW: Getting Around Multiple Inverted Filters HOT 1
- canplayer -g gap option seems not working. HOT 6
- Is it possible to send statically addressed J1939 messages to a can bus with just one active node? HOT 2
- cangw setup wrong HOT 6
- Sending keyframes using can utils will result in multiple repetitions of the received packet HOT 11
- cangw and multiple vcan HOT 3
- Help me with data padding HOT 9
- TX/RX packets are incorrectly labeled HOT 1
- CMake build broken due to ISOBUS HOT 2
- Any write to CAN_BCM socket returns -1 with errno = 22 HOT 7
- isobusfs throws warning when compiled with recent clang HOT 1
- can-j1939 - trying to emulate an entire truck HOT 21
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from can-utils.