Key Programming and Fobs

Car Key Fob Programming Explained, How the Pairing Works

Car key fob programming writes a serial number and a counter value into a receiver memory slot. A UK fob transmits 66 data bits on every press, and 32 of those bits carry a counter that changes each time.

AHAaron Hoburn ·Updated 14 September 2026·9 min read

Car key fob programming, the mechanics

  • ✓A UK fob transmits 66 data bits on every button press
  • ✓34 bits travel in the clear, 32 bits travel encrypted
  • ✓The encrypted block carries a 16-bit counter that increments every press
  • ✓UK vehicles transmit at 433.92 MHz
  • ✓AES-128 fobs cannot be cloned. OBD programming is the only route

What happens electronically when a key fob is programmed?

Programming writes a fob serial number and counter value into a receiver memory slot. The receiver then accepts transmissions carrying that serial and rejects every other serial on the same frequency.

The operation runs in 5 stages. Each stage completes in milliseconds once the enrolment window opens.

1

The receiver enters learning mode

An ignition sequence or a diagnostic command opens a time-limited enrolment window. The window runs 10 to 30 seconds on onboard systems.

2

The fob transmits its identity frame

A button press sends 66 data bits. The first 34 travel in the clear and carry the serial number. The remaining 32 travel encrypted and carry the counter.

3

The receiver decrypts the rolling portion

The shared 64-bit key inside the receiver decrypts the 32-bit block and reads the counter value the fob transmitted.

4

The receiver stores serial and counter

Both values write into a memory slot. The receiver now expects the next transmission from that serial to carry a higher counter.

5

The immobiliser handshake runs separately

The transponder answers a challenge from the vehicle coil. That exchange authorises the engine and runs independently of the button transmission.

Stage 5 explains the most common post-programming complaint. Button locking and engine authorisation run as separate exchanges, so a fob paired to the receiver still leaves the engine immobilised until the transponder half completes.

What does a key fob actually transmit?

A KeeLoq fob transmits 66 data bits per button press. Thirty-four bits travel unencrypted and carry the serial number. Thirty-two bits travel encrypted and carry the rolling counter.

The Microchip HCS301 encoder defined this structure and became the dominant automotive implementation. The table below lists each portion of the transmission and whether encryption covers it.

Portion of the transmissionBitsContentsEncrypted
Serial number28The unique identity of that fobNo
Button code (plain)4Which button was pressedNo
Status bits2Repeat flag and low-battery flagNo
Button code (encrypted)4The same button code, verifiedYes
OVR bits2Counter overflow extensionYes
Discrimination value10Usually the low bits of the serial numberYes
Synchronisation counter16Increments on every button pressYes

The serial number travels in the clear deliberately. The receiver reads the serial first to identify which stored key is transmitting, then decrypts the counter block using the key held against that serial.

How does a rolling code stop a replay attack?

A rolling code stops a replay attack because the counter increments on every transmission and the receiver rejects any value it has already seen. A captured code expires the moment the vehicle accepts it.

Both fob and receiver hold a 16-bit counter. The fob increments on each press. The receiver stores the last value accepted and expects a higher value next time.

A recording of yesterday transmission carries a counter below the stored value. The receiver discards it without responding, which is why passive recording produces no result against a rolling-code vehicle.

From the workshop

Drivers occasionally press a fob repeatedly in a pocket, out of range of the vehicle. The fob counter advances while the receiver counter stays still. Enough presses push the fob beyond the acceptance window, and the fob stops working while the battery reads full. Resynchronisation restores it in minutes.

Why does a fob stop working after too many button presses?

A fob stops working after excessive presses because the counter advances beyond the receiver acceptance window. That window runs between 16 and 256 increments depending on the implementation.

The window exists to tolerate normal out-of-range presses. A counter inside the window resynchronises automatically on the next successful transmission.

A counter beyond the window requires deliberate resynchronisation. The KeeLoq protocol handles this by replacing the encrypted 32-bit block with a 32-bit seed value, which re-establishes the shared position.

What frequency does a UK car key fob use?

UK car key fobs transmit at 433.92 MHz. North American vehicles use 315 MHz, and a small number of European systems use 868 MHz.

Frequency mismatch is the single most common fault in imported replacement fobs. The table below lists each band and the market that uses it.

RegionFrequencyUsed by
United Kingdom and Europe433.92 MHzEvery UK-market vehicle
Some European systems868 MHzSelected premium and aftermarket systems
North America315 MHzUS and Canadian market vehicles
Japan domestic market315 MHzJDM imports

A 315 MHz fob fitted to a UK vehicle produces a specific symptom pattern. The transponder pairs normally and the engine starts, because the transponder communicates through a coil at 125 kHz rather than over the radio band. The buttons never operate the locks.

What is the difference between cloning and programming a key fob?

Cloning copies the output of one fob onto another without involving the vehicle. Programming enrols a new fob into the receiver cryptographically. Rolling-code systems accept programming only.

The table below separates the four operations by whether the receiver participates and whether rolling code permits the method.

OperationWhat happensReceiver involvedWorks on rolling code
CloningThe output of one fob is copied onto anotherNoNo
Learning modeThe receiver enrols a new fob and stores its serial and counterYesYes
OBD programmingA tool writes the fob identity into the immobiliser databaseYesYes
Transponder cloningA chip is copied onto a blank transponderNoFixed and crypto chips only

Transponder cloning sits apart from fob cloning. A fixed 4C or a crypto 4D chip copies onto a blank transponder, which produces a working start key without touching the immobiliser. AES-128 chips resist that copy entirely.

Why can AES key fobs not be cloned?

AES-128 fobs resist cloning because the secret key never leaves the protected memory of the chip. The key space runs to 2 to the power 128, which places brute-force recovery beyond any available computing capacity.

KeeLoq dominated automotive remotes between 1996 and 2010. AES challenge-response replaced it as the standard from roughly 2010 onward.

The practical consequence appears at replacement time. A Hitag AES or equivalent chip offers one route only: OBD programming through the vehicle diagnostic port, using a tool that holds manufacturer-level access.

Why must lost keys be erased from the receiver?

A lost key stays valid in receiver memory until an erase command removes it. The vehicle continues to accept that serial number and counter indefinitely.

Receiver memory holds a fixed number of slots, commonly between 4 and 8 depending on the make. A stolen key occupies a slot and authorises entry and ignition for as long as the slot stands.

Erasing rewrites the entire slot table, which is why every remaining key must be present during the session. Any key absent from that session loses its slot permanently.

Questions

Car key fob programming, questions answered

Programming writes a fob serial number and counter value into a receiver memory slot. The receiver then accepts transmissions carrying that serial and rejects every other serial on the same frequency.

A KeeLoq fob transmits 66 data bits per press. Thirty-four bits carry the serial number unencrypted. Thirty-two bits carry the rolling counter encrypted.

A rolling code works through a 16-bit counter that increments on every press. The receiver stores the last accepted value and rejects any value it has already seen, which defeats replay attacks.

The battery is not the fault. The counter advanced beyond the receiver acceptance window, which runs between 16 and 256 increments. Repeated presses out of range cause it. Resynchronisation restores the fob.

UK car key fobs transmit at 433.92 MHz. North American vehicles use 315 MHz. A 315 MHz fob starts a UK engine through the transponder yet never operates the locks.

Fixed-code and learning-code fobs clone onto a duplicator. Rolling-code and AES fobs cannot, because the secret key never leaves the protected memory of the chip.

Receiver memory holds 4 to 8 slots depending on the make. A stolen key occupies a slot and authorises the vehicle until an erase command clears the table.

Onboard programming rewrites the entire slot table. Every key absent from that session loses its slot permanently, which is why all fobs must be present.
South Yorkshire, 24/7
Counter drift or pairing fault? Call 07513 664346

Receiver slots and immobiliser data read over OBD. South Yorkshire, 24 hours.

From £100No VATNo call-out fee24/734 makes140+ 5★ reviews
140+ five-star Google reviews
Posted on Google Google
Jacob Worthington profile picture
Jacob Worthington
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Exceptional service, prompt, helpful advice too.
Posted on Google Google
Adam Webb profile picture
Adam Webb
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
AH provided us a new key for our range Rover today, great service and great price will be using again
Posted on Google Google
Patricia Russell profile picture
Patricia Russell
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
A fabulous service! Quick response, friendly, knowledgeable and really reasonably priced. I wouldn’t hesitate to use them again and would highly recommend them to anyone. ⭐️⭐️⭐️⭐️⭐️
Posted on Google Google
J Ed profile picture
J Ed
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Arrived within 20 minutes and sorted the issue. Great service much appreciated!
Posted on Google Google
Hannah Dawson profile picture
Hannah Dawson
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Very grateful for AH Autokeys work. He did a fantastic job for me. I locked my car and house keys in my car boot at gone 11pm at night when I was out alone, I had 6% phone battery, called the first person I found on Google, only to find out he wasn’t local. Despite this though, he still agreed to drive out 50mins to help. The car was unlocked door in no time but the boot wasn’t accessible from the inside and the car was too old to be opened electronically. He spent a long time trying to unlock the car boot. After a while, I was worried he might give up and say it can’t be done. He persevered though and finally managed to retrieve my keys. If I’d called somebody else, maybe they’d have given up on it so I’m really grateful that he stuck with it for me! I hope I never have to use the service again, but if I find myself in this boat in the future, this will be the first place I call. I can’t recommend enough. Thank you!
Posted on Google Google
Jill Hargadon profile picture
Jill Hargadon
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Excellent service from beginning to end. I cannot recommend Aaron enough. He is professional, but friendly, reliable and efficient. Will definitely use again.
Posted on Google Google
Alif Hossain profile picture
Alif Hossain
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Amazing service got it done in no time. Definitely recommend.
Posted on Google Google
Lee Bosah profile picture
Lee Bosah
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Fast response, Great customer service A* job 👍🏽
Posted on Google Google
luke lowe profile picture
luke lowe
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Just had Aaron come to unlock my polo, as I left they keys on the seat and the car had locked. had it open within 5 minutes of coming also came to quickly to my house in swinton, top service would definitely use again if I needed it
🍪
Scroll to Top