How Do Key Fobs Work?

by | Aug 16, 2019

car-key-fob-not-working-57f182cb5f9b586c35574ca5-9684047

Key fobs for remotely locking/unlocking car doors are standard equipment at this point and keyless ignitions using key fob recognition is now standard in over 60% of new car models according to Edmonds. Future generations won’t know that we used to use actual keys to unlock and start our cars.

Key fobs transmit a radio signal to the car and if the car recognizes the transmission as coming from the right fob(s) it will perform the command encoded in the radio transmission.

All key fobs of U.S. manufacturers use a radio signal frequency of 315 MHz and foreign models us 433.92 MHz. Because all fobs use just one of two frequencies, the security relies on both the fob (transmitter) and car electronics (receiver) knowing the same code which changes after every press of the key fob button (or otherwise communicating with each other). Both the transmitter and receiver know the code numbers as they change because they are programmed with the same code generating algorithm. So, both the car and fob know what code number will be next due to sharing an algorithm.

The mathematics of the quasi-randomly generated codes is that it is about a one-in-a-billion chance that a car would mistakenly unlock because of a duplicate code transmission from a wrong fob.

What happens if you press the key fob button when you aren’t in range of the car? Now the car receiver and fob transmitter are no longer in sync as the fob will move one code number ahead of the car receiver. This problem is solved by the receiver scanning the upcoming 256 codes every-time it receives a signal to see if any of those codes match. If so, it accepts the code and resets the starting point.

So, you can press your key fob up to 256 times out of range of your car without messing up the encryption system. However if you (or your toddler or drunk spouse) press it 257 times you have an issue and will need to figure out how to reset it. (I’d love if someone reading this blog post would test this out.)

Related question/answer: my car has “keyless entry” meaning it opens if I touch the handle and I have the key fob in my pocket and I can also lock it by touching the handle with the fob in my pocket. If you have keyless entry and/or keyless ignition, then the key fob is constantly transmitting a code and then changes its code after an interaction with the car receiver. Many times, I have in inadvertently left the fob inside the car and touched the handle to lock the car. It won’t lock. It knows that the fob is INSIDE the car and not in my pocket. How does it know? Answer: the car has multiple antennae around the car and uses those antennae to triangulate the location of the fob and thus the fob only works when it’s in the appropriate location (outside the car to lock it and unlock it and inside the car to start and operate the car).

UPDATE – If you have a keyless ignition and a keyless entry system, your key fob is constantly sending out a radio signal with the appropriate code. The technology does exist for a car thief to intercept that code, amplify it with a pirate fob and use it to open/start and drive your car away. To combat this, police suggest keeping your key fob in a metal container or even in your refrigerator or microwave!

8 Comments

  1. You have stated the answer I have been looking for. The only problem is that in my case it was NOT true! It cost me $300 to have a locksmith come let me into the car! My purse was just inside the hatchback door of my 2017 VW Tiguan with the groceries. I went to the front door and it wouldn’t open, so I went back to open the hatch and use the key to unlock the front door. I was locked out entirely! The hatch would not open.
    So did I find a place where the antenna can’t read the key??
    I won’t be so trusting of the “system” next time!

    You said: “Many times, I have in inadvertently left the fob inside the car and touched the handle to lock the car. It won’t lock. It knows that the fob is INSIDE the car and not in my pocket. How does it know? Answer: the car has multiple antennae around the car and uses those antennae to triangulate the location of the fob – thus the fob only works when it’s in the appropriate location (outside the car to lock it and unlock it and inside the car to start and operate the car).”

    Reply
    • I wouldn’t trust this system. After the vehicles age the antennas could falter.
      It is a steep cost to pay to get locked out and really inconvenient. I hate it.

      In my older cars, I wired up switches in hidden places on the outside of the car, like near a windshield wiper, that I could open the door locks with. I connected them in parallel with the door lock switch. Worked perfect.

      Reply
  2. So if the codes keep changing in tandem, vehicle and key, what about the second key you have in the house, it would be using some old code, how does it update ?

    Reply
  3. “…If you have a keyless ignition and a keyless entry system, your key fob is constantly sending out a radio signal”
    That sounds like it would run the key fob’s battery down rather quickly!!
    I wonder how the battery isn’t exhausted after a few days of “constantly sending out a radio signal”???

    Reply
    • I believe that the article is incorrect. The car, (which has a much bigger battery!) constantly transmits a “wake up” frequency and when the key fob gets into range, it wakes up to being the unlock protocols. So the fob would be “on” only when near or in the vehicle. I would guess that the more time you spend in the car, the shorter the battery life of the fob as it would be on more often.

      Reply
      • That makes more sense…otherwise you would be changing fob batteries frequently.

        Reply
  4. Excellent post. I want to thank you for this informative, I really appreciate sharing this great post. Thanks for sharing this…

    Reply

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Archives

Subscribe To The IFOD

Get the Interesting Fact of the Day delivered twice a week. Plus, sign up today and get Chapter 2 of John's book The Uncertainty Solution to not only Think Better, but Live Better. Don't miss a single post!

You have Successfully Subscribed!

Share This
%d bloggers like this: