Keelog Technology and Its Applications in Remote Control Systems
Keelog Technology and Its Applications in Remote Control Systems
Nesib Eyyubov
Xalid Isgandarov
• Synchronization counter - The synchronization counter is the heart of the hopping code
algorithm. It increments every button press. The synchronization information is used at the
decoder to determine whether the transmission is valid or whether it is a repetition of a
previous transmission. Repetitious codes are rejected to safeguard the system against code
grabbers.
• Typical Packet - A typical Classic KEELOQ technology packet consists of two parts. One part is
being sent in plain text and the other is sent encrypted. Sending part of the message in plain
text allows for backwards compatibility with fixed code receivers. Some of the information that
is being sent in plain text is contained inside the encrypted section and can be used as a post-
decryption check.
• Serial Number - This is a unique number that is specific to each individual encoder. Its main
purpose is to differentiate between encoders. The encoder serial number is transmitted every
time a button is pressed. The serial number is transmitted unencrypted as part of the
transmission
APPLICATION
A full perspective of the capabilities of the KEELOQ system would involve describing the
unique features of each device separately. However, the entire product range has certain
characteristics that may or may not be applicable to a specific member of the product
range. The most important characteristics are listed to enable the prospective user to get a
global view of the KEELOQ system. The specifications for a particular encoder or decoder
should be consulted to determine the applicability of these features to that device.
Encoders
Security Operating Other
• Programmable 28/32-bit serial number • One (3.0V) or two (6.0V) Lithium battery • On-chip EEPROM
• Programmable 64-bit encryption key operation • On-chip oscillator and timing
• Each transmission is unique • One (9.0V or 12.0V) Alkaline battery components
• 66/67 bit transmission length operation • On-chip reset circuit
• 32-bit hopping code • 3 or 4 button inputs - 7 or 15 functions • Button inputs have internal pull-down
• 34/35-bit fixed code (28/32-bit serial • Selectable baud rate resistors
number, • Automatic power down after • Current limiting on LED output
4/0-bit function, VLOW, Rpt/2-bit CRC) transmission
• Encryption key is read protectedc • Battery low signal transmitted
• Nonvolatile synchronization data
• IR modulation capability
Decoders
Operating Decoder
Security • 2.0V to 6.0V operation • Single chip decoder available
• KEELOQ code hopping technology • 4 MHz RC oscillator • On-chip EEPROM
• Secure storage of manufacturers key • Learning indication • Four binary function outputs - 15
• Secure storage of transmitters keys • Auto baud rate detection functions
• Normal learning mode and Secure • One or two wire serial interface
learning mode • Battery low indication
• Four or more transmitters can be
learned
ENCODER
FUNCTIONS
Transmitter Activation
The encoder has an internal power switch which turns on when any of the button inputs are taken high. When a button is pressed, the encoder is turned on and the
inputs are sampled after a debounce delay. The encoder then transmits a code, based on the correct key, synchronization information, and function codes. If the time-out
option is selection, the encoder will shutdown after a complete transmission. This mode prevents battery depletion when a push button is inadvertently activated for an
extended period. To activate the device again, the buttons have to be released and activated again.
Three data rates are used: 833, 1667, and 3333 bits per second. At the lower transmission rate, a complete transmission requires approximately 100ms, at the higher rate
50ms, and at the highest rate 25ms. All encoders will transmit the codes repeatedly while the transmitter is activated.
DECODER FUNCTIONS
General Description
The KEELOQ decoders can be used for secure remote
control systems. To gain a full understanding of the
modes of KEELOQ decoder operation, several concepts
have to be understood.
Decoder Features
Operation The user places the decoder in learning mode. When the first code word is received, the serial number is used to generate the transmitter’s secret key that
was programmed into the transmitter during the production stage. The secret key is used to decrypt the hopping code. The decoder then waits for a second
transmission (must be activated a second time). The serial number is compared to the first received serial number. If equal the hopping code is decrypted and the
validation checks performed. The final check is to check that the codes are sequential. All the transmitter information is then stored.
Decoder
Secure learn mode (Seed Derived)
• Transmission format in secure learn mode
Operation The user places the decoder in learning mode. During the first stage of learn, the user must press a specific button. The hopping code part of the
transmission will be replaced by the 32/48-bit seed stored in the encoder. The key is derived from the seed instead of the serial number in this case. During the second
stage of learning, any other button combination can be pressed. A normal hopping code transmission is sent during the second stage. The generated key is used to
decrypt the hopping code, and all the transmitter information is stored. Since the seed is only transmitted during the learning process, and is required to generate the
key a normal transmission cannot be intercepted, a key generated and the hopping code decrypted to predict the next hopping code. As a further security measure,
the transmission of the random seed can be disabled after 1 to 128 operations of the transmitter once the transmitter has been learned. That means that even if
someone had physical access to the encoder, it would not be possible to get the random seed which is needed for key generation. The disadvantage is that a
transmitter cannot be relearned at a later stage.
END