Skip to content

Is it normal for UDS frames to be padded with 0xA (0b1010) ? #386

Answered by collin80
exekutive asked this question in Q&A
Discussion options

You must be logged in to vote

Short answer: Yes.

Longer answer: The relevant standards do say that all UDS frames should be 8 bytes in length. But, not all UDS frames need all 8 bytes. So, the remaining bytes are filled out with some "dummy" bytes. Various vehicles will use different values here. 0xAA is common, 0x00 could be used, 0xFF could be used. The actual value ought to be irrelevant as those bytes are past the end of where the initial length byte says the end is. Note that the frames start with 0x04 meaning that 4 bytes follow. Sure enough, after 4 bytes the rest are padded. This is the proper behavior for UDS.

Even more info you didn't ask for: I assume the reason that 0xAA is used is because it is repeating …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@exekutive
Comment options

Answer selected by exekutive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants