-
Notifications
You must be signed in to change notification settings - Fork 102
Description
Hi
I'm trying to understand how to handle security access levels following a timeout due to no testerpresent messages.
Currently, if I change session to user, send a requestseed message followed by a sendkey message, I can then access any protected sessions that I've implemented.
However, if the testerpresent messages stop, my state machine transitions back into the defaultsession, but the security access remains. If I perform another requestseed, it returns unlocked, which is as expected given the code.
The ISO14229-1 specification (page 38), states that when we transition back to the default session, "a locked security level shall be activated in the server". How can I inform the iso14229 library that this transition to the default session has taken place and it should return to a locked state? If I understand correctly, this isn't currently implemented ?
I've added a workaround by adding a function such as
void UDSServerSecurityAccessReset(UDSServer_t *srv)
{
srv->securityLevel = 0;
}
Any input would be appreciated.
Thanks in advance
Lee