You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A CAN hardware interface and file logging library written in C has been created. The library was developed to resolve issues similar to those described in #474.
Logging to binary log format (BLF) with the python-can package on the armv7l chip archetecture in embedded Linux user space resulted in dropped CAN frames (related to python-can/issues/474). When supplied with 500 messages per second at a bitrate of 250 kb/s (about a 57% bus load), the python-can package missed more than 13% of messages on the armv7l chip. (The issue was not associated with python-can itself, but rather a lack of computing resources to effectively run a daemon in Python on the low power CPU.) c-can has been developed to enable successful BLF CAN logging on the armv7l archetecture. Though, the library can be cross-compiled for any archetecture (granted there is a compiler available).
Features
c-can has been developed with a generic IO and bus interface that is modeled after python-can. The feature set is intended to be expanded to enable cross-platform usage.
The library is currently limited to the socketcan interface and BLF logging. The rollover logging script (scripts/r_logger) provides for continuous logging with no dropped CAN frames on an armv7l chip running embedded Linux.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A CAN hardware interface and file logging library written in C has been created. The library was developed to resolve issues similar to those described in #474.
Link to repository: https://github.com/j-c-cook/c-can
Background
Logging to binary log format (BLF) with the python-can package on the armv7l chip archetecture in embedded Linux user space resulted in dropped CAN frames (related to python-can/issues/474). When supplied with 500 messages per second at a bitrate of 250 kb/s (about a 57% bus load), the
python-can
package missed more than 13% of messages on the armv7l chip. (The issue was not associated withpython-can
itself, but rather a lack of computing resources to effectively run a daemon in Python on the low power CPU.)c-can
has been developed to enable successful BLF CAN logging on the armv7l archetecture. Though, the library can be cross-compiled for any archetecture (granted there is a compiler available).Features
c-can
has been developed with a generic IO and bus interface that is modeled afterpython-can
. The feature set is intended to be expanded to enable cross-platform usage.The library is currently limited to the
socketcan
interface and BLF logging. The rollover logging script (scripts/r_logger
) provides for continuous logging with no dropped CAN frames on an armv7l chip running embedded Linux.Beta Was this translation helpful? Give feedback.
All reactions