-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Candump dont show delta #469
Comments
What was your previous kernel version? |
6.1.28 |
There was no change in the |
Can you try to set |
do not help |
As you are using a RealTime kernel (b2qt-raspberrypi4 6.1.54-rt15-v7l) ... is it possible that the RT kernel has another timer infrastructure, that does not provide the former syscall interface This is a really weird behaviour. Maybe uninstalling the can-utils with |
I check with latest non-RT Rasbain 32-bit on Rpi4b. candump works fine (show delta). |
|
can you only update the kernel to |
b2qt is Yocto based distro. I use custom config for kernel. What options I must check in kernel. (Or I can upload my current config) |
Can you compile |
This can be problematic( |
Another option is to make sure, that you are using the latest |
I use can-utils with SRCREV = "41ea759237bbd156d753251c573c280d96873528" as latest commit to build. |
I make small patch to output debug info
When I run
May be this will be usefull |
The driver doesn't support hardware timestamps. This is why you get |
What's the supposed delay between 2 CAN frames? |
Delay - 1 ms.
|
Can you re-run with your debug output enabled? |
#469 (comment) |
Please run |
|
The timestamps that recvmsg got look correct to me:
Can you confirm, that this version is 41ea759? |
Which C library are you using? glibc? Which version? |
The difference between your strace output and mine is the different
|
glibc 2.38
|
Can you add this patch, rerun with
|
|
please add the patch from #469 (comment), compile and re-run. |
Sorry
|
I try your branch. |
I've updated the branch, it should output some debug information.
|
|
I've updated the branch, it should output some more debug information. |
|
Can you send me the output of
|
|
I've updated the branch, it should output even more debug information. |
|
yet another update |
|
yet another update |
Can you give me access to your yocto? |
https://doc.qt.io/Boot2Qt/b2qt-how-to-create-b2qt-image.html |
Can you test my current branch? |
|
For whatever reason it seems that |
|
Which |
MACHINE=raspberrypi4 |
Ok, the website only lists |
You reproduce problem on your system? |
It failed to compile the whole system, but |
https://sourceware.org/glibc/wiki/Y2038ProofnessDesign mb will be usefull |
It maybe only a I had meet same problem, Alpine linux use musl-libc, and musl use time64, link musl time64 Release Notes, so This only affect 32bit platform, 64bit will all be fine. |
We should consider using C99 sprintf(ts_buffer, "(%010lu.%06lu) ", tv->tv_sec, tv->tv_usec); example new with C99: sprintf(ts_buffer, "(%010llu.%06llu) ", (unsigned long long)tv->tv_sec, (unsigned long long)tv->tv_usec); Update: |
Fixed in #473 |
My system is CM4 with MCP2515.
Linux b2qt-raspberrypi4 6.1.54-rt15-v7l #1 SMP PREEMPT_RT Wed Sep 20 14:13:53 UTC 2023 armv7l GNU/Linux
Example of my log. (with -t delta option it show 0)
candump -t a -a can0
But in real packet receive with delays. And I want to measure it. Such error I start receive after system update.
The text was updated successfully, but these errors were encountered: