UDS Set Key Verified

Block to inform the UDS module whether or not the key received from the UDS tester is valid.

Description

During a UDS seed/key sequence, a UDS tester first requests a seed from the ECU. Based on this seed, the UDS tester calculates the 32-bit key needed to unlock the resource, such as memory access. Once ready, the key is sent back to the ECU for verification. This 'UDS Set Key Valid' block decides whether or not the UDS module should accept this key.

This block is typically used in the function-call subsystem connected to the output of the 'UDS Verify Key Event' block.

Parameters
Sample time
Sample time of the block. The Sample time (in seconds) defines the rate at which the block is visited by the real-time scheduler of the target. The value of the Sample time has to be an integer multiple of the base sample time of the model. Set it to -1 (inherited) when used inside a function-call subsystem.
Inputs
Key valid
1 (TRUE) to inform the UDS module that the key was corrrect and that the resource can be unlocked, 0 (FALSE) otherwise.