Firstly, you must request the seed from the ECU by UDS RequestSeed.vi (27 01). If everything goes well, the ECU will give a positive response [67 01 xx xx xx xx]. xx xx xx xx is the ECU seed.
Secondly, you must develop a vi to calculate the security key. The calculated algorithm should be the same as the algorithm in ECU.
Then, you must send the key to the ECU through UDS SendKey.vi (27 02).
Finally, you will get a positive response [67 02] if the security key matches the calculated result of ECU with the same seed and algorithm.
Note: Security access service 27 is unavailable in the default session (10 01).