-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Receive flow control frames from ECU when transmitting, rather than can-isotp receiver? #40
Comments
Hi, Maybe share your configuration? |
I have a custom ECU connected to channel 1 of the VN1610 Vector interface (channel '0' in Python) running at 500kbps. It expects requests from normal physical address 0x711 and responds with address 0x710. I'll focus on the transmit-only code I'm trying to use since based on your reply it sounds like that should handle incoming Flow Control frames from my ECU. Here's that code, which should be the same as the example code from the docs except for the use of can.Bus() instead of VectorBus():
When I run that:
And the trace from the CANalyzer software (blocksize 255, stmin 20): Perhaps I need to either send a 3 byte FC frame or enable padding in can-isotp? |
I figured it out, my ECU was setting the CAN extended ID bit in the FC frame when it shouldn't have. Traced it down to Thanks for helping me find and fix a firmware bug ;-) |
Ah! We can indeed see the 710x in your canalyzer screenshot. Glad it helps! |
Thank you so much for making this module.
I am trying to use the isotp module to send data to an ECU on a Vector CAN interface, using the transmit example from the documentation. In the bus trace, I see the First Frame from can-isotp, and a response Flow Control from my ECU. However, can-isotp then reports that it timed out while waiting for a Flow Control frame.
I can get can-isotp to communicate with itself by running the transmit example and threaded receive example code side by side (using a separate bus instance in each with the same settings), but it still appears can-isotp is generating the flow control frame and the transmitter is using that (trace from CANalyzer, ECU FC in green and can-isotp FC in yellow):
Can can-isotp be configured to use Flow Control frames from an ECU rather than generating them in the can-isotp receiver side? Any tips on how to accomplish that?
The text was updated successfully, but these errors were encountered: