-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Rewrite TP/ETP and update transport layer example #391
Conversation
2a9bf1b
to
5a32a77
Compare
e89f6bd
to
1775528
Compare
1775528
to
82d8e23
Compare
I did try testing our VT example against our VT, and got a crash in the VT example here: Buffer size was 0 Callstack:
So this would have been when trying to upload the object pool, and trying to use the data callback method of transferring the data. |
isobus/include/isobus/isobus/can_extended_transport_protocol.hpp
Outdated
Show resolved
Hide resolved
06d262b
to
5a4c295
Compare
Good catch! I fixed that issue with the callback, and resolved your comments. Plus fixed another issue where the protocols would listen (and respond) to messages not destined to them |
There is still some callback issue.... when I run the VT example, I can see situations where the callback gets called with a buffer of size 0, so when the callback tries to memcpy the data into it, that probably doesn't do anythign, and the end result later is an exception when we try to index into a 0 size buffer. This was seen in can_message_data.cpp line 113 |
…come through first
Also stopped transport protocols listening to messages not destined to them
14e64fd
to
6ffb6c0
Compare
6ffb6c0
to
be1cb56
Compare
Ahh my bad, I accidentally used |
…sport layer example
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 47 New issues |
This PR includes a full rewrite of the extended transport protocol where I've taken the rewrite of the TP as base, and also a freshing transport layer example that shows of the complete transport layer - with progress indication! :)
Screencast.from.20-12-23.21.17.27.webm