Sending messages problems over canbus with Socketcan #1485
Unanswered
receperdog
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I'm using Python-can to send messages over canbus, and my can bus is using socketcan,
self.bus = can.ThreadSafeBus(interface="socketcan", channel="can0", receive_own_messages=False, bitrate=500000,can_filters=filters)
Above code is my instance of canbus and I'm sending 2 messages with using the above canbus in 100 ms
Here is the question:
I can record my messages from another device to see the graphic of messages and at some points sending process is freezing and messages send more than 2000 ms. I mean at the beginning of the process message sending time is increasing at some point cycle time is **149 ms 170 ms ..... 2000 ms 2500 ms...**etc
How can we solve that issue? You can see the detailed img following.

Beta Was this translation helpful? Give feedback.
All reactions