-
Notifications
You must be signed in to change notification settings - Fork 731
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
iso-tp: more checks #1487
iso-tp: more checks #1487
Conversation
I think this is fine, sending the initial messages out of band is definitely not the normal situation and I don't have any better ideas on how to handle it.
The asserts are good, something has gone wrong if either get hit. |
This reverts commit ba4c4f1.
asserts we can't get multiple single or first frames after calling
send
on IsoTpMessage. with this, we can extend timeouts in openpilot after every response, not just consecutive frames.@gregjhogan do you think it is a good idea to make the user of the class to need to call
send(b'', setup_only=True)
(or similar reset function) every time if they just want to receive?right now you can continually call
iso_tp_message.recv()
and continually get first or single frames, not sure if that's the intended behavior