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
I'm currently using socketcan_bridge to interface with CAN in my ROS project. While it does generally work, it will sometimes spit out a sequence of four lines like this:
After that, any further attempts to send a message result in:
[ERROR] [1517684649.054520857]: Failed to send message: 9e040005#010384fc7c.
I can send that same CAN frame from the command line. So, it's not an underlying driver failure, but it seems that the bridge doesn't recover from an intermittent bus error. Yes, the ideal solution is to resolve whatever causes it, but if this ever happens in a production environment the whole system grinds to a halt.
This seems to be where the latter message is coming from:
ROS_ERROR("Failed to send message: %s.", can::tostring(f, true).c_str());
}
I am not sure where the former originates or what produces it. In dmesg, I often see the following when, e.g., I plug in a USB device (my guess is that the USB processing is flooding interrupts or something of that nature):
[12842.644761] mttcan c310000.mttcan can0: mttcan_poll_ir: some msgs lost on in Q0
That may or may not be related.
I think #249 would fix the problem, but I don't think I am personally prepared to take on the fixes to that PR that were requested.
Could anyone suggest a fix or resolution?
The text was updated successfully, but these errors were encountered:
I'm currently using
socketcan_bridge
to interface with CAN in my ROS project. While it does generally work, it will sometimes spit out a sequence of four lines like this:After that, any further attempts to send a message result in:
I can send that same CAN frame from the command line. So, it's not an underlying driver failure, but it seems that the bridge doesn't recover from an intermittent bus error. Yes, the ideal solution is to resolve whatever causes it, but if this ever happens in a production environment the whole system grinds to a halt.
This seems to be where the latter message is coming from:
ros_canopen/socketcan_bridge/src/topic_to_socketcan.cpp
Lines 69 to 73 in 4b0345a
I am not sure where the former originates or what produces it. In
dmesg
, I often see the following when, e.g., I plug in a USB device (my guess is that the USB processing is flooding interrupts or something of that nature):That may or may not be related.
I think #249 would fix the problem, but I don't think I am personally prepared to take on the fixes to that PR that were requested.
Could anyone suggest a fix or resolution?
The text was updated successfully, but these errors were encountered: