METHOD AND APPARATUS FOR PROGRAMMING A SPARE KEY INTO A SECURITY SYSTEM

Abstract: A method for programming a spare key containing an electronic coded security code into the memory (18) of a security system (10) whereby a known key is inserted into the lock cylinder (12) and the security device is triggered to read its encoded security code. If within a period of time an unknown key is inserted into the lock cylinder (12), the encoded security code of the unknown key is then inserted into the system memory (18). The new key security code becomes an additional acceptable security code to open the lock.

Description: METHOD AND APPARATUS FOR PROGRAMMING A SPARE KEY INTO A SECURITY SYSTEM The present invention relates generally to a key- activated security device and more specifically, to a method and apparatus to program the security device to recognise a spare key for an automotive vehicle. Several security systems are available where a conventional key is combined with coded electronic circuitry to provide added security by increasing the total number possibilities able to satisfy the security device. However, the systems fail to disclose a convenient method for an end user to program a spare key into such a system. For instance, U.S. Patent 4,990,906 describes a microprocessor controlled programmable vehicle anti-theft device, where the system memory is cleared during a new key programming sequence. The security code of the new key is then placed into the memory. The new key security code is the only security code retained, thus any previously programmed keys become invalid. Also in order to program the new key into the system, the inputs of the microprocessor must be varied in a fixed sequence which requires trained service personnel. It would be desirable to have a security system which could easily be programmed by an end user and which could store several key code values rather than one key code value in memory. The present invention is a method and apparatus wherein an end user programs a spare key into an automotive security system without using special equipment or trained personnel. A spare key is cut to match an existing key which fits into a lock cylinder of the security system. The key also has electronic circuitry containing a code selected at random. The random code on the spare key is programmed into the memory of the security system by inserting a key having a security code which has been previously stored in the memory in the lock to initiate a timer. A spare key having the random code is inserted into the lock before the timer counts a predetermined time period. The respective electronic security code is then stored in the memory. The device can also have a feature which will erase all the codes currently stored in the memory and program a new key value. The process requires several steps and takes over 45 minutes to help insure that an unauthorised key cannot be easily used to reprogram the memory. The process useful to clear the memory should a key become lost or to clear the memory when it has become full. The invention will now be described further, by way of example, with reference to the accompanying drawings, in which: Figure 1 is a block diagram of preferred hardware according to the invention. Figure 2 is a flow chart showing of the method to program a spare key. Figure 3 is a flowchart showing the operation of the microprocessor of Figure 1. Referring now to figure 1, a microprocessor 10 which controls the operation of the system has a timer 14, a CPU 20, and a memory 18. Although they are all shown as an integral part of the microprocessor 10 they could also be separate components. The memory 18 is a keep-alive memory which will not be cleared when power is removed. When a properly cut key is placed into the lock cylinder 12 and rotated to a predetermined position, such as the accessory position on the ignition switch of an automobile, the CPU 20 will be triggered to read the security code from the circuitry embedded in the head of the key. The security code from the key can be read by direct contact although the preferable way is to have the microprocessor 10 send an RF signal via a transmitter/receiver located in the steering column to a transponder located on the key. The transponder sends its encoded security code to the microprocessor of the security system via another RF signal. Once the CPU 20 receives the security code, it is compared with the security codes stored in the memory 18. A valid security code will satisfy the security system, which then will enable vehicle operation . An LED 16 is used to provide feedback to the system user. For example, LED 16 will flash in a predetermined pattern if the code contained on the key matches a security code stored in memory. Timer 14 is used in a program mode. When the program mode is entered, the user will have a finite amount of time to insert a new key to be programmed. Timer 14 may comprise an oscillator to provide pulses to be counted by CPU 20 establish a predetermined time. Figure 2 shows the procedural steps used to program the security code of a previously cut key into the memory of the security device. The key must be a previously cut key in order to turn the lock cylinder. In step 32, a valid key must be inserted into the lock cylinder 12. Preferably, one lock cylinder is used, but two or more lock cylinders may be used. In step 34, the key must be rotated to a predetermined position, for example the accessory position or ignition-on position of an automobile ignition switch, in order to trigger the CPU 20 to read the code from the key. Upon removal of the key in step 36, the CPU 20 enters program mode for a predetermined period of time. The period of time is less than the time it would take the authorised user of the vehicle to leave the area of the vehicle, such as about 10 seconds. The programmed key is inserted in the lock cylinder 12 and rotated in step 38 to the predetermined position before the expiration of the predetermined time period. In step 40 the newly read security code is added to the memory. In an alternative embodiment, an additional step 42 is performed between steps 38 and 40 wherein the initial security code must again be read prior to storing the newly read value. Thus, security is increased by waiting for a valid key to be inserted into the lock cylinder within a short period of time after the removal of the unprogrammed key from the lock cylinder. The period of time is preferably the same as in step 38. Once the valid key is reinserted into the lock cylinder in step 42, the new key security code is stored and accepted by the system in step 40. Figure 3 shows a flow chart of the steps executed by the microprocessor to program a spare key. In step 50, a valid key is inserted into the lock cylinder and rotated causing the microprocessor to read the security code from the key. In step 52, the microprocessor receives the security code. The microprocessor in step 54 checks the security code received for validity by comparing it with those stored in memory. If the security code in the system is a valid code, step 56 is executed wherein the key is removed, thereby initiating program mode. Program mode is comprised of a short period of time (e.g., 10 seconds) established by starting a timer in step 56. If the time period has expired in step 58, the program reverts to the end of the program at step 68. If a key with a previously unprogrammed security value is placed into the lock cylinder of the system in step 60 and rotated before the time period has not expired then the microprocessor reads the unprogrammed security code from the key in step 62. If the security code contained on the key is already a programmed code, step 64 will prevent the system from storing the code twice by going to the end of the program in step 68. If the security code is not a previously stored security code, the unprogrammed security code is stored in the memory in step 66. The newly programmed security code value, once stored in the memory becomes a valid security code. The program sequence is ended at step 68. In an alternative embodiment, additional steps 70 and step 72 are executed before the security code is added to the memory in step 66. Step 70 requires a key with a previously programmed security code to be placed back into the lock cylinder to be read by the microprocessor. The key is checked in step 72 to verify that the security code is valid. If the key is not valid, the system will end at step 68. If the code is valid, the new key security code will be entered into the memory in step 66. The microprocessor will end program mode at step 68 upon the entry of the security code to memory. In a preferred embodiment, the memory is capable of storing about which exceeds the requirements of an average consumer. However, since the memory might eventually 5 contain both active and inactive codes, and since it may be desirable to remove a code if a key is misplaced or stolen. The present invention provides a sequence for clearing the memory. Referring back to step 54, if the code was not one 10 previously stored in the memory, the microprocessor enters a reprogram mode in which the system memory can be cleared and in which the key used to clear the system memory becomes the first valid security code to be stored. If any of the steps in reprogram mode are not precisely followed, the 15 microprocessor will jump to step ' 68 without clearing or reprogramming the memory. The reprogram sequence takes over 45 minutes in total to discourage a thief from breaching the security of the system while still allowing a stranded person without access to a valid key to reprogram a new key. 20 In step 80, the key must be left inactive in the lock cylinder for a randomly selected period of time, the length of which is controlled by the CPU. Once the time has expired, the LED is illuminated to indicate that the key must be rotated to the off position within a short period of 25 time in step 82. The key must then be rotated to the on position within a short period of time when signalled again by the LED in step 84. A check is made in step 86 to determine whether the user has properly responded to the LED signal a predetermined number of times. The present system 30 needs three times through the system in order to perform the reprogramming. If the system is not in its third time through in step 86 the system will repeat step 80 where the CPU waits again for a randomly generated time period. The total time period for three times through the loop of steps 35 80 through 86 is preferably over 45 minutes. Each individual key-on time is randomly selected so it would be difficult or impossible to use automatic equipment to clear the memory. This will help to discourage unauthorised reprogramming of the system. After the third successful response, all the codes stored in the system are cleared and the security code of the new key is stored in step 88. The security system now recognises the new key as a valid key and the programming sequence ends in step 68. The time periods used in the specification are preferred times, however the times can be varied without deviating from the scope of the invention.

Claims: CLAIMS 1. A method for programming a security system having a lock (12) , a timer (14), and a memory (18) to accept a spare key with an electronic security code not previously stored in said memory, comprising the steps of: inserting a key in said lock (12) , said key having a electronic security code which has been previously stored in said memory; initiating said timer (14) ; inserting a spare key having a respective electronic security code into said lock (12) before said timer counts a predetermined time period; and storing said respective electronic security code in said memory (18) . 2. An apparatus for programming the electronic security code of a spare key into the memory of a security system comprising: a timer (14) ; a memory (18) storing security codes; and a microprocessor (20) programmed to read the electronic security code of a key inserted in the system, compare the electronic security code with said stored security codes, and if said electronic security code matches a stored code and if that key is removed and then a spare key having a previously unstored electronic security code is inserted into the system within a predetermined period of time, storing said previously unstored electronic security code in said memory (18) . 3. An apparatus as claimed in claim 2, wherein said microprocessor again reads said previously stored electronic security code after reading the previously unstored security code and prior to storing said spare key electronic security code. 4. A method for programming a security system having a lock, a timer and a memory to accept a spare key having an electronic security code which was not previously stored into said memory, comprising the steps of: inserting a key having a respective electronic security code into said lock; reading the code of a key inserted into said lock; verifying the key is valid by comparing the electronic security code on said inserted key with the security codes in said memory and finding the inserted key electronic security code already stored; initiating said timer; inserting a spare key having a respective electronic security code into said lock before said timer counts a predetermined time period; reading the electronic security code of the spare key; and storing said electronic security code in said memory. 5. A method for programming a security system having a lock, a timer and a memory to accept a spare key having an electronic security code which was not previously stored into said memory, comprising the steps of: inserting a key having a respective electronic security code into said lock; rotating said key in the lock cylinder of the system; reading the code of said key placed into the security system; verifying the key is valid by comparing the electronic security code on the inserted key with the security codes in said memory and finding the electronic security code of said inserted key stored in the memory; removing the key from the system thereby initialising said timer; inserting a spare key having a respective electronic security code into said lock before said timer counts a predetermined time period; reading said electronic security code of said spare key ; and storing said electronic security code in said memory. 6. A method as claimed in claim 5, wherein, before adding the spare key security code into the memory of the system, a further step is executed comprising: reinserting the valid key into the system before a period of time counted by the timer. 7. A method for reprogramming a security system having a lock, a timer and a memory to accept a key having an electronic security code, comprising the steps of: inserting and rotating in said lock a key whose electronic security code has not been previously stored in said memory; initiating said timer; waiting a random time period having a length long enough to prevent unauthorised reprogramming of the system; clearing said memory all previously stored security codes; storing the electronic security code of said inserted key in said memory. 8. A method as claimed in claim 7, wherein the steps of triggering a timer and waiting a random time period are repeated three times before said memory is cleared.

Inventors: MOORE RONALD GERARD, TREHARNE WILLIAM DAVID, MOORE, RONALD, GERARD, TREHARNE, WILLIAM, DAVID
Applicants: FORD MOTOR CO, FORD MOTOR COMPANY, FORD MOTOR COMPANY LIMITED
Application year: 1993
Main classification: E05B49
IPC codes: B60R25, E05B49, E05B65, G07C9