The instructions to program the keyless entry fob on one BMW model won’t necessarily work on another BMW model. You can try one of two sets of instructions and see if they work for your BMW. Your aim is to avoid resorting to the dealership, which may charge $50 to $100 for the service. BMW ICOM A2 WIFI

Make sure that all the doors, trunk and hood are closed.
Open the trunk door. Open and close the driver’s door.
Put the key in the ignition cylinder and turn it on and off five times. Don’t actually start the engine. The alarm should chirp a confirmation.
Open and close the driver’s door.
Press any button on the remote to program it. The alarm light will flash to acknowledge a successful programming.
Repeat steps 4 and 5 for any other remotes.
Exit the programming mode by leaving the driver’s door open while closing the trunk door. Then close the driver’s door. You should hear the alarm sound off to confirm that you’ve left the programming mode.

Instruction Set Two the key pro m8
Make sure that all the doors, trunk and hood are closed.
Insert the key into the ignition and switch it to position 1. Turn it back again. Repeat this four more times. Then remove the key from the ignition cylinder.
Press the “Lock” button three times while holding down the “Unlock” button. Then release the “Unlock” button. The door locks will then cycle to confirm that you did it correctly.
Repeat step 3 for each fob that you need to program.
Exit the programming mode by inserting the key into the ignition and turning it to position 1 and then taking it out.