[DoCAN] Vehicle Diagnostic Communication Part 51 [UDS 12]

[DoCAN] Vehicle Diagnostic Communication Part 51 [UDS 12] 車両診断通信
[DoCAN] Vehicle Diagnostic Communication Part 51 [UDS 12]

Click here for back issues.
https://www.simulationroom999.com/blog/diagnostic-communication-en-back-issue/

Introduction.

Explanation of ISO 14229, UDS.
This time, SecurityAccess will be explained.

SecurityAccess Services

Back to the explanation of the various services again.
In turn, I will explain the SecurityAccess service.

From the name, you can probably guess that this is a security-related function.
Let’s start with the message structure.

SecurityAccess Service Request Messages

There are two types of request messages for the SecurityAccess service

  • requestSeed
  • sendKey

The message structure of requestSeed is as follows.

PositionParameter NameValue
1SecurityAcces Request SID0x27
2sub-function = [ securityAccessType = requestSeed ]0x01,0x03,0x05,0x07-0x7D

The message structure of sendkey is as follows.

PositionParameter NameValue
1SecurityAcces Request SID0x27
2sub-function = [ securityAccessType = sendKey ]0x02,0x04,0x06,0x08-0x7E
3-nsecurityKey0x00 – 0xFF

You may be confused by the sudden appearance of two different message structures.
The SecurityAccess service has two types of message structures: requestSeed and sendKey.

At first glance, they look similar, but the point is the sub-function.
You will notice that the requestSeed is odd and the sendKey is even.
This is no coincidence; the meaning of the request message switches depending on the odd or even number of sub-functions

Response messages for SecurityAccess service

Naturally, there are two types of response messages.

The response message to requestSeed is as follows.

PositionParameter NameValue
1SecurityAcces Response SID0x67
2sub-function = [ securityAccessType = requestSeed ]0x01,0x03,0x05,0x07-0x7D
3-nsecuritySeed0x00 – 0xFF

And the response message to sendKey is as follows.

PositionParameter NameValue
1SecurityAcces Response SID0x67
2sub-function = [ securityAccessType = sendKey ]0x02,0x04,0x06,0x08-0x7E

You will see that the words Seed and Key are the key points.

In the next article, I will explain the concept of this service.

Conclusion

  • The SecurityAccess service has two major message patterns.
    • requestSeed.
      • Odd sub-functions.
    • sendKey.
      • Even sub-functions.

Click here for back issues.

コメント

タイトルとURLをコピーしました