Here we use X431 Pro5 and X-prog3.
Connect X431 scanner with vehicle, auto detect
Connect VIN, Read and decode VIN
Confirm vehicle information
Go to Special Function-> Anti-theft function->Generation 4 and above IMMO type-> Anti-theft key programming->All keys lost
Connect Launch X431 tablet with X-prog3 programmer
Select 5th Generation Immobilizer->A5/A5/Q5
Step 1: Read Immo data
Disconnect the BCM2 for more than 5s and connect again, hit OK to continue
Read immo data in the process
Read immo data succeed
Auto save data.
Launch X431 read the CS (Component Security) code from the BCM 2 (Body Control Module) in a 2013 Audi S4
Step 2: Generate dealer key
Place a blank key into X-prog3 key adapter
Generate dealer key successfully.
Step 3: Learn Key
Input number of keys to be learned. You need to learn both keys.
Insert the key to be learned successfully within 30s and turn on ignition switch
Interval for changing key in less than 5s.
For smart key, place the key to e learn near the key sensing area and press Start button.
Check the status in the dashboard, if shows 2/2, 2 keys have been successfully learned.
Test new keys.
www.obdii365.com