There are multiple users those need to use UDS protocol for various purposes like Garage person for fault detection, ECU manufacture for Testing activities and development purpose. Also OEM needs access to ECU memory for flashing purposes.
UDS services can be categorized in different groups like few services will just read some Data from memory,a few will write or update the data to memory, some will erase/update ECU sw itself , some will control Inputs outs of ECU directly.
So there are chances that any improper usage of UDS service may result in safety issues , security breaches or damage to ECU resources. Hence, it doesn't make sense to give access to all services to everyone.
To achieve this UDS has designed some mechanisms like Sessions, Security Authentication, Preconditions.
I hope you are aware about what a Diagnostic Session is.
Please visit : https://thevehiclediagnostics.blogspot.com/2020/01/what-is-diagnostic-session.html if you want to brush up.
A Diagnostic Session plays an important role to provide restricted access to services.
How a Diagnostic Session does this ! Let us see that in detail.
- A sessions could be default or non default.
- Any service in UDS can only be executed if it is allowed in that session.
- A session has set of services those can be executed in that session.
- Also a session transition between two session is possible only if that is allowed.
There are three basic sessions :
3. Programming Session
Other than this ECU may support a different session if required.
Let us see these sessions in detail.
1. Default Session :
- As its name suggests it is default session of ECU.
- This session gives superficial access to set of UDS services.
- Whenever ECU powers-up it is supposed to be in Default session until any session change is requested.
- Generally services requesting data or writing data (unsecured data) are allowed in this session.
- Services like Reading DIDs 0x22, Write Data by Identifier, Reading DTCs 0x19, Tester Present 0x3E, ECU Reset 0x11 are allowed in this session.
- No services which needs secured access can be executed in this session as service Security Access 0x27 is not allowed in this session.
- ECU remains in default session if no session change is requested.
- One of the targeted users could be a Garage person trying to just read DTCs.
- All services allowed in default sessions are allowed in this session.
- In addition to that this session gives access to more services.
- This session is MUST to take ECU to Programming session.
- Any Security Levels applicable to ECU can be unlocked in this session as service Security Access 0x27 is allowed in this session.
- All secured services can be executed after successful unlocking of ECU for any security level.
- ECU enters in default session if this session is ended or expired.
- One of the targeted users could be a End Of line engineer doing a Dynamic Vehicle Test which needs security levels.
- A specialized session designed for ECU programming.
- All services allowed in default sessions are allowed in this session.
- Services used for programming like RequestDownload - 0x 34, TransferData -0x 36, etc can be executed in this session.
- ECU enters to default session if this session is ended or expired.
- One of the targeted users could be a End of line Engineer Flashing Calibration SW .
Comments
Post a Comment