Hey dear community! Does anyone have an experience with PYthon-Can Library?
I am working on project, where I have to use "USB to CAN Canable" adapter to read off can bus data and then treat it in python, to be exact, in Kivy GUI App.
With PCAN viewer it works as it suppose to be.
CAN viewer from Python Can library works without any problem, but when I try to read and treat data in my App using either can.notifier() or just treating data from bus.recv() it works for some period of time, after it gets some delay and stops with an error:
can.interfaces.pcan.pcan.PcanCanOperationError: The CAN controller was read too late.
Looks like it gets a lot of message and do not have enough time to treat it and pass further.
There was told something about Real Time drivers in documentation for drivers from PEAK-system, but it was regarding Linux OS, for RPi4 we have to assemble our kernel on ours own (correct me if I am mistaken).
Any way I ready to listen up your suggestion how to enhance my situation, because for me it is like shot in the leg
.
thank you for your thoughts in advance!
RPi4 OS version:
Debian GNU/Linux 12 (bookworm)
kernel version:
Linux sciencetech 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
I am working on project, where I have to use "USB to CAN Canable" adapter to read off can bus data and then treat it in python, to be exact, in Kivy GUI App.
With PCAN viewer it works as it suppose to be.
CAN viewer from Python Can library works without any problem, but when I try to read and treat data in my App using either can.notifier() or just treating data from bus.recv() it works for some period of time, after it gets some delay and stops with an error:
can.interfaces.pcan.pcan.PcanCanOperationError: The CAN controller was read too late.
Looks like it gets a lot of message and do not have enough time to treat it and pass further.
There was told something about Real Time drivers in documentation for drivers from PEAK-system, but it was regarding Linux OS, for RPi4 we have to assemble our kernel on ours own (correct me if I am mistaken).
Any way I ready to listen up your suggestion how to enhance my situation, because for me it is like shot in the leg

thank you for your thoughts in advance!
RPi4 OS version:
Debian GNU/Linux 12 (bookworm)
kernel version:
Linux sciencetech 6.6.31+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.31-1+rpt1 (2024-05-29) aarch64 GNU/Linux
Statistics: Posted by Dima_alchemy — Fri Jul 19, 2024 9:49 am — Replies 0 — Views 26