-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
How to implement request-response pattern? #132
Comments
Hi,
Once you have that, the rest should be transparent (hopefully). An I wouldn't add support for a custom adressing scheme inside this repo, it is meant to support ISO-15765 and your adressing scheme is not part of it. Hope that helps |
I would also need to change that line to check for AbstractAddress instead. I'm comfortable with that. |
Thanks @pylessard!
ah, yes I see trying to respond with a different stack was a dumb idea. The |
Exact, |
Hi, I'm trying to implement a CAN device that receives ISOTP requests and responds back to the sender device. Its a non-automotive application, with a variable number of bus devices. Perhaps a little non-standard.
I'm using normal 29-bit addressing with a custom addressing scheme, which I'll simplify to:
It would be great if I could do something like:
The problem I have is that the arbitration id gets stripped out during the ISOTP Rx processing, so its not available to my
# process response
code.And the txid is fixed for the stack at instantiation time, so a bit tricky to vary the arbitration id of the response based on the request.
What I'm looking at doing as a workaround is:
Address.is_for_me()
logic)TransportLayerLogic._process_rx(msg)
TransportLayerLogic.rx_queue
and associate it with the above arbitration_id.Questions
Any help/guidance much appreciated, thanks.
The text was updated successfully, but these errors were encountered: