Repository navigation
lin: send the diagnostic slave response (0x3D) only once - #454
Draft
KonradBreitsprecherBkd wants to merge 1 commit into
Draft
KonradBreitsprecherBkd wants to merge 1 commit into
KonradBreitsprecherBkd wants to merge 1 commit into
Conversation
A LIN slave with ID 0x3D configured as TxUnconditional answered every 0x3D header with the last data. The LIN specification defines the SlaveResp frame differently: a slave answers only if it has a response pending, and only once. For a non-dynamic slave, SetFrameResponse and UpdateTxBuffer on 0x3D now make the response pending; Init does not. The next 0x3D header sends it once. Without a pending response the slave reports LIN_RX_NO_RESPONSE to the master (trivial simulation), or stays silent if a dynamic node is present. Other IDs, masters and dynamic mode are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Konrad Breitsprecher <Konrad.Breitsprecher@vector.com>
KonradBreitsprecherBkd
force-pushed
the
private/visbkd/COE-96025_lin_0x3d_diag_response
branch
from
November 6, 2026 11:30
b9b6187 to
9e17af7
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Subject
Bugfix, LIN.
Description
A LIN slave with ID 0x3D configured as
TxUnconditionalanswered every 0x3D header with the last data. The LIN specification defines the SlaveResp frame differently: a slave answers only if a response is pending, and only once.For a non-dynamic slave,
SetFrameResponseandUpdateTxBufferon 0x3D now make the response pending;Initdoes not. The next 0x3D header sends it once. Without a pending response, the slave reportsLIN_RX_NO_RESPONSEto the master in the trivial simulation, or stays silent if a dynamic node is present. Other IDs, masters and dynamic mode are unchanged. Masters on older SIL Kit versions work, because the master passes the slave's status through.No API, ABI or wire format change. The network simulator needs the same change, prepared separately.
Instructions for review / testing
LinController.cpp: the pending flag;SimBehaviorTrivial::ProcessFrameHeaderRequest: the 0x3D decision.Test_LinControllerTrivialSimDiagResponse.*(9 cases).TxUnconditionalstill make the master reportLIN_RX_ERROR.Developer checklist (address before review)
🤖 Generated with Claude Code