-
Notifications
You must be signed in to change notification settings - Fork 83
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
TestISOTPFlowControlFrameTimeout fails on isotp-c/vcan #38
Comments
Hi @driftregion, I looked into the test and I did not conceive to be compatible with ISOTP C. From what I could test is that, when using ISOTP C, the call to |
@driftregion Is this still relevant? Should I add the new test that omits using ISOTP C for this specific test or would you do it? Just asking because if I should do it, then I would try in the upcoming days. |
Hi @muehlke. Thanks for your interest in this issue.
That is correct, SocketCAN is link-layer and therefore unaware of FC timeout, but Here is my understanding of the test sequence:
Do you have the same understanding? It looks like
Note that there is no delay between iso14229/test/test_tp_compliance.c Lines 109 to 112 in 251b16f
I understand that Because iso14229 targets real-time bare-metal systems we must uphold that transports are non-blocking. We're making an exception for isotp sockets because they imply linux and threads. |
Yes, this is the recommended method of determining whether or not the flow control has timed out or not. Due to the nature of the library, it will also depend on the interval between calls to If a timeout has occurred, you can check for both The combination of both |
@driftregion we were on the same page about this issue, I adapted the test (added the suggestions by @SimonCahill I ran |
The text was updated successfully, but these errors were encountered: