ROLLING CODE SECURITY SYSTEM

Abstract: A rolling code transmitter is useful in a security system for providing secure encrypted RF transmission comprising an interleaved trinary bit fixed code and rolling code. A receiver (202) demodulates the encrypted RF transmission and recovers the fixed code and rolling code. Upon comparison of the fixed and rolling codes with stored codes (220) and determining that the signal has emanated from an authorized transmitter, a signal is generated to actuate an electric motor (234) to open or close a movable barrier.

Description: ROLLING CODE SECURITY SYSTEM CROSS REFERENCE TO RELATED APPLICATION This is a continuation-in-part of copending U.S. application Serial No. 446,886, filed May 17, 1995. BACKGROUND OF THE INVENTION The invention relates in general to security systems which allow operation upon the receipt of a proper¬ ly coded signal. More particularly, the invention relates to a security system or to a barrier operator system, such as a garage door operator, employing a transmitter and a receiver which communicate via code streams having at least a portion thereof which changes with multiple operation of the device. It is well known in the art to provide garage door operators or other barrier operators which include an electric motor connectable through a transmission to a door or other movable barrier which is to be opened and closed. Since many of these systems are associated with residences, as well as with garages, it is important that opening of the barrier be permitted only by one who is authorized to obtain entry to the area which the barrier protects. Some garage door operator systems have in the past employed mechanical lock and key arrangements associated with elec¬ trical switches mounted on the outside of the garage. While these systems enjoy a relatively high level of secur¬ ity, they are very inconvenient to use because they necessitate the operator exiting her vehicle in order to send the command to open the garage door. This also may present some danger to people when they leave the relative security of their vehicle if someone may be waiting to do injury to them. It is also well known to provide radio-controlled garage door operators which include a garage door operator unit having a radio receiver and a motor connected to be driven from the radio receiver. The radio receiver is adapted to receive radio frequency signals or other electromagnetic signals having particular signal character- istics which, when received, cause the door to be opened. More recently, such transmitter and receiver systems have become relatively more sophisticated in that they use radio transmitters which employ coded transmissions of multiple or three-valued digits, also known as "trinary bits" or other serial coded transmission techniques. Among these systems are U.S. Patent No. 3,906,348 to Willmott, which employs a transmitter and receiver system wherein a plural¬ ity of mechanical switches may be used to set a stored authorization code. U.S. Patent No. 4,529,980 to Liotine et al. dis¬ closes a transmitter and receiver combination for use in a device such as a garage door operator wherein the trans¬ mitter stores an authorization code which is to be trans¬ mitted to and received by the receiver via a radio frequency link. In order to alter or update the authori¬ zation code contained within the transmitter, the receiver is equipped with a programming signal transmitter or light emitting diode which can send a digitized optical signal back to the transmitter where it is stored. Other systems also employing encoded transmissions are shown in U.S. Patents Nos. 4,037,201, 4,535,333, 4,638,433, 4,750,118 and 4,988,992. While each of these devices have provided good security for the user, it is apparent that persons wishing to commit property or person-related crimes have become more sophisticated as well. It is known in the security industry today that devices are being made available that can intercept or steal transmitted codes. Transequatorial Technology, Inc. sells integrated circuit code hopping encoders identified as Keeloq models NTQ105, NTQ115, NTQ125D and NTQ129. Some of the Keeloq code hopping encoders generate serial codes having fixed portions, i.e., which do not change with repeated actuation of the encoding portion of the chip and rolling code por¬ tions which alter with each actuation of the encoding portion of the chip. In order to avoid, however, having the problem of the encoding portion of the chip having been inadvertently enabled and causing the rolling code to be altered on successive enabling attempts thereby leading to a rolling code which is transmitted and not recognized by a receiver, the Keeloq code hopping encoders provide a forward window system, that is they are operable with systems having code receivers which recognize as a valid code not a single rolling code, but a plurality of rolling codes within a certain code window or window of values which are the values which would be generated on a rela¬ tively small number of switch closures as compared to the total number of rolling codes available. The problem with such a system, however, might arise if a user was away for a period of time or had inadvertently caused codes to be transmitted beyond the number of codes normally allowed within the valid forward code window. In that case, the rolling code would not be recognized by the receiver and the user could not gain entry without taking other measures to defeat the locking system or the garage door operator system which might involve the intervention of a trained engineer or technician. Texas Instruments also has a prior system identi¬ fied as the Marcstar TRC1300 and TRC1315 remote control transmitter/receiver combination. The system involves the use of a rolling code encoder which increments or rolls potentially the entire code, that is it does not leave a fixed portion. The system also includes a forward window¬ ing function which allows an authorized user to be able to cause the receiver to be enabled within a limited number of key pushes. Like the Keeloq system, if the forward window is exceeded, the Texas Instruments system must be placed in a learn mode to cause the system to relearn the code. In order to place the system into the learn mode, the person must obtain direct access to the receiver to cause a pro¬ gramming control system associated with the receiver to be hand actuated causing the receiver to enter a learn mode. Once the receiver has learned the new code, the receiver will then construct a new valid forward code window within which valid rolling codes may be received. The problem, of course, with such a system is that if, for instance in a garage door operator, the only portal of entry to the garage door is through the overhead door controlled by the garage door operator, the user will not be able to obtain entry to the garage without possibly having to do some damage to the structure. This problem is sometimes referred to in the industry as a "vaulted garage." What is needed is an economical encoding system which provides good security by using a rolling code, but which enables a user of the system to proceed via a gradually degraded pathway in the event that the receiver detects a signal condition indicative of what might be a lack of security. SUMMARY OF THE INVENTION The invention relates in general to an electronic system for providing remote security for entry of actuation of a particular device. Such a system may include a trans¬ mitter and receiver set, for instance with a hand-held transmitter and a receiver associated with a vehicle such as an automobile or the like. The transmitter, upon signaling the receiver, causing the vehicle to start up or to perform other functions. The system may also be useful in a barrier operator system such as a garage door operator by allowing the garage door to be opened and closed in a relatively secure fashion while preventing persons who may be intercepting the radio frequency signals from being able to, although unauthorized, cause the vehicle to begin running or to allow access to the garage. The system includes a transmitter generally having means for developing a fixed code and a rolling or variable code. The rolling or variable code is changed with each actuation of the transmitter. The fixed code remains the same for each actuation of the transmitter. In the present system, the transmitter includes means for pro¬ ducing a 32-bit frame comprising the fixed portion of the code and a second 32-bit frame comprising the variable por¬ tion of the code. The 32-bit rolling code is then mirrored to provide a 32-bit mirrored rolling code. The 32-bit mirrored rolling code then has its most significant bit "deleted" by setting it to zero. The transmitter then converts the 32-bit fixed code and the mirrored variable code to a three-valued or trinary bit fixed code and a three-valued or trinary bit variable code or rolling code. To provide further security, each of the fixed code trinary bits or digits is encrypted by adding the corresponding rolling code trinary digit to each fixed code trinary digit to produce an encrypted fixed code trinary digit. The trinary bits are further encrypted by shuffling the encrypted fixed code trinary digits and the rolling code trinary digits so that instead of a frame of encrypted fixed code digits and a second frame of rolling code trinary digits alternating sequential trinary bits in both frames are comprised of an encrypted fixed code trinary bit and a rolling code trinary bit to yield a total of 40 interleaved trinary bits. The 40 interleaved trinary bits are then packaged in a first 20-trinary bit frame and a second 20-trinary bit frame which have proceeding them a single synchronization and/or identification pulse indi¬ cating the start of the frame and whether it is the first frame or the second frame. Immediately following each of the frames, the transmitter is placed into a quieting con¬ dition to maintain the average power of the transmitter over a typical 100 millisecond interval within legal limits promulgated by the United States Federal Communications Commission. The first trinary frame and the second trinary frame are used to modulate a radio frequency carrier, in this case via amplitude modulation to produce an amplitude modulated encrypted signal. The amplitude modulated signal is then launched and may be received by an AM receiver. In the preferred embodiment, the AM receiver receives the amplitude modulated signal, demodulates it to produce a pair of trinary bit encoded frames. The trinary bits in each of the frames are converted on the fly to 2-bit or half nibbles indicative of the values of the trinary bits which are ultimately used to form two 16-bit fixed code words and two 16-bit variable code words. The two 16-bit fixed code words are used as a pointer to identify the location of a previously stored rolling code value within the receiver. The two 16-bit rolling code words are concatenated by taking the 16-bit word having the more significant bits, multiplying it by 3 10 and then adding it to the second of the words to produce a 32-bit encrypted rolling code. In order to make certain that if the trans¬ mitter was inadvertently actuated a number of times, the authorized user can still start his car or gain entry to his garage. The 32-bit encrypted code is then compared via a binary subtraction with the stored rolling code. If the 32-bit code is within a forward window or fixed count, in the present embodiment 17,000, i.e., 17 x 1,000 transmitter actuations, the microprocessor produces an authorization signal which is then responded to by other portions of the circuit to cause the garage door to open or close as commanded. In the event that the code is greater than the stored rolling code, plus 17,000, indicative of a relatively large number of incrementations, the user is not locked out of the garage, but is allowed to provide further signals or indicia to the receiver that he is an authorized user without any significant degradation of the security. This is done by the receiver entering an alternate mode requiring two or more successive valid codes to be received, rather than just one. If the two or more successive valid codes are received, the garage door will open. However, in order to prevent a person who has previously or recently recorded a recent valid code from being able to obtain access to the garage, a trailing window, in this case starting at a count of 5,100, i.e., 17 x 300 transmitter actuations, less than the present stored count and including all code values between the present stored count and 5,100 less is compared to the received code. If the received code is within this backward window, the response of the system simply is to take no further action, nor to provide authorization during that code cycle on the assumption that the code has been purloined. Thus, the present system provides important advantages over the previous garage door operator systems and even previous rolling code systems. The system pro¬ vides a multiple segmented windowed system which provides a valid code window, a second relatively insecure code window in which two successive valid codes must be received and finally a window in which no valid codes are recognized due to the likelihood of the code having been stolen. It is a principal object of the present invention to provide a security system involving a radio frequency transmitter and receiver wherein multiple security condi¬ tions may exist requiring different levels of signal security. It is another object of the present invention to provide a secure radio transmitter receiver system which may rapidly and easily decode a relatively large code com¬ bination. Other advantages of the invention will become obvious to one of ordinary skill in the art upon a perusal of the following specification and claims in light of the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a perspective view of an apparatus for moving a barrier or garage embodying the present invention; FIG. 2 is a block diagram of a transmitter for use with a garage door operator of FIG. 1; FIG. 3 is a block diagram of a receiver posi¬ tioned within a head unit of the garage door operator shown in FIG. 1; FIG. 4 is a schematic diagram of the transmitter shown in FIG. 2; FIG. 5 is a schematic diagram of the receiver shown in FIG. 3; FIG. 6 is a timing diagram of signals generated by a portion of the transmitter; FIGS. 7A, B, C, and D are flow diagrams showing the operation of the transmitter; and FIGS. 8A, B, C, D, E, F and G are flow diagrams showing the operation of the receiver. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT Referring now to the drawings and especially to FIG. 1, more specifically a movable barrier door operator or garage door operator is generally shown therein and includes a head unit 12 mounted within a garage 14. More specifically, the head unit 12 is mounted to the ceiling of the garage 14 and includes a rail 18 extending therefrom with a releasable trolley 20 attached having an arm 22 extending to a multiple paneled garage door 24 positioned for movement along a pair of door rails 26 and 28. The system includes a hand-held transmitter unit 30 adapted to send signals to an antenna 32 positioned on the head unit 12 and coupled to a receiver as will appear hereinafter. An external control pad 34 is positioned on the outside of the garage having a plurality of buttons thereon and communicate via radio frequency transmission with the antenna 32 of the head unit 12. An optical emitter 42 is connected via a power and signal line 44 to the head unit. An optical detector 46 is connected via a wire 48 to the head unit 12. Referring now to FIG. 2, the transmitter 30 is shown therein in general and includes a battery 70 connected by a pushbutton switch 72 to a power supply 74 which is coupled via leads 75 and 76 to a microcontroller 78. The microcontroller 78 is connected by a serial bus 79 to a non-volatile memory 80. An output bus 81 connects the microcontroller to a radio frequency oscillator 82. The microcontroller 78 produces coded signals when the button 72 is pushed causing the output of the RF oscillator 82 to be amplitude modulated to supply a radio frequency signal at an antenna 83 connected thereto. More specifically, as shown in FIG. 5, details of the transmitter 30 are shown therein, including a plurality of switches 72. When switch 72 is closed, power is supplied through a diode 100 to a capacitor 102 to supply a 7.1 volt voltage at a lead 103 connected thereto. A light emitting diode 104 indicates that the transmitter button has been pushed and provides a voltage to a lead 105 connected thereto. A Zener diode 106 provides voltage regulation and the back-biased diode 107 provides over-voltage protection. The crystal 108 is energized, thereby energizing the microcontroller 78, a Zilog Z86C04 8-bit microcontroller in this embodiment. The signal is also sent via a resistor 110 through a lead 111 to a P32 pin of the microcontroller 78. Likewise, when a switch 113 is closed, current is fed through a diode 114 to the lead 103 also causing the crystal 108 to be energized, powering up the microcontroller at the same time that pin P33 of the microcontroller is pulled up. Similarly, when a switch 118 is closed, power is fed through a diode 119 to the crystal 108 as well as pull up voltage being provided through a resistor 120 to the pin P31. It should also be appreciated that pin P34 of the microcontroller is configured via a connection with the resistor 123 to be an RS232 input port 124. The microcontroller is coupled via the serial bus 79 to a chip select port, a clock port and a DI port to which and from which serial data may be written and read and to which addresses may be applied. As will be seen hereinafter in the operation of the microcontroller, the microcontroller 78 produces output signals at the lead 81, which are supplied to a resistor 125 which is coupled to a voltage dividing resistor 126 feeding signals to the lead 127. A 30-nanohenry inductor 128 is coupled to an NPN transistor 129 at its base 130. The transistor 129 has a collector 131 and an emitter 132. The collector 131 is connected to the antenna 83 which, in this case, comprises a printed circuit board, loop antenna having an inductance of 25-nanohenries, comprising a portion of the tank circuit with a capacitor 133, a variable capacitor 134 for tuning, a capacitor 135 an a capacitor 136. An 30-nanohenry indue- tor 138 is coupled via a capacitor 139 to ground. The capacitor has a resistor 140 connected in parallel with it to ground. When the output from lead 81 is driven high by the microcontroller, the capacitor Ql is switched on causing the tank circuit to output a signal on the antenna 83. When the capacitor is switched off, the output to the drive the tank circuit is extinguished causing the radio frequency signal at the antenna 83 also to be extinguished. Referring now to FIG. 3, the receiver is shown therein and includes a receiver antenna 200 coupled to an amplitude modulated receiver 202 driven from a power supply 204 connectable to a source of alternating current 206. The receiver 202 provides a demodulated output via a band¬ pass filter 210 to an analog-to-digital converter 212 which provides input to a microcontroller 214 having an internal read-only memory 216 and an internal random-access memory 218. A serial non-volatile memory 220 is connected via a memory bus 222 to the microcontroller 214 to send and receive information thereto. The microcontroller has an output line 226 coupled to a motor controller 228 which may include a plurality of relays or other standard electro- mechanical features which feeds electrical current on lines 230 and 232 to an electric motor 234. Referring now to FIG. 3 the antenna 200 coupled to a reactive divider network 250 comprised of a pair of series connected inductances 252 and 254 and capacitors 256 and 258 which supply an RF signal to a buffer amplifier having an NPN transistor 260, at its emitter 261. The NPN transistor 260 has a pair of capacitors 262 and 264 connected to it for power supply isolation. The buffer amplifier provides a buffered radio frequency output signal on a lead 268. The buffered RF signal is fed to an input 270 which forms part of a super-regenerative receiver 272 having an output at a line 274 coupled to the bandpass filter which provides digital output to the bandpass filter 212. The bandpass filter 212 includes a first stage 276 and a second stage 278 to provide a digital level output signal at a lead 280 which is supplied via an averaging circuit 282 to an input pin P32 of the microcontroller 214. The microcontroller 214 may have its mode of operation controlled by a programming or learning switch 300 coupled via a line 302 to the P25 pin. A command switch 304 is coupled via a jumper 306 to a line 308 and ultimately through a resistor to the input pin P22. A pin P21 sinks current through a resistor 314 connected to a light emitting diode 316, causing the diode to light to indicate that the receiver is active. The microcontroller 214 has a 4 Mhz crystal 328 connected to it to provide clock signals and includes an RS232 output port 332 that is coupled to the pin P31. A switch 340 selects whether con¬ stant pressure or monostable is to be selected as the out- put from output terminals P24 and P23 which are coupled to a transistor 350 which, when switched on, sinks current - 12 - through a coil 352 of a relay 354, causing the relay to close to provide an actuating signal on a pair of leads 356 and 358 to an electric motor. It may be appreciated that the power supply 204 may receive power from an external transformer or other AC source through a jack 370 which is connected to a pair of RF decoupling capacitors 372 and 374. The input signal is then set to a full-wave rectifier bridge 376 which provides an output current at a resistor 378. An 18-volt Zener diode 380 is connected between ground and the resistor 378 and includes high frequency bypass capacitor 382 connected in parallel with it. An 8.2-volt Zener diode 384 is connected in back-biased configuration to the resistor 378 to receive a signal therefrom to guarantee that at least an 8.2-volt signal is fed to a resistor 390 causing an LED 392 to be illuminated and also causing power to be supplied to a 5-volt 78L05 voltage regulator 396. The voltage regula¬ tor 396 supplies regulated voltage to an output line 398. Filtering capacitors 400a, 400b, 400c and 400d limit the fluctuations at the power supply. Operation of the transmitter unit begins in a step 500 as shown in Fig. 7A, wherein the user actuates a transmit button in a step 500. In a step 502 the rolling code counter value is fetched from the nonvolatile memory. In a step 504 seventeen is added to the rolling code counter value. In a step 506 the new rolling code counter value is then stored in nonvolatile memory. In a step 508 the binary representation of the rolling code counter has its bit order reversed or mirrored in order to begin encryption. In a step 510 the most significant bit of the mirrored counter value is set equal to zero. In a step 512, as shown in Fig. 7B, the mirrored binary counter value is converted to a base 3 or trinary number as is shown in Fig. 7D and described hereafter. Following the conversion to trinary bits or digits, in a step 514 the fixed code portion of the overall transmitted code is fetched from nonvolatile memory and in a step 516 a bit counter representative of the ordinal number of the current trinary digit is set equal to zero. In order to perform a code framing operation to produce the code stream, as shown in Fig. 6, in a step 518 a one-half millisecond synchronization bit is transmitted by the transmitter and in a step 520 the bit counter is incremented. In a step 522 a test is made to determine whether the bit counter indicates the end of a second blanking time. If it does, control is transferred back to a step 516. If it does not, control is then transferred to a step 524 shown in Fig. 7C wherein the bit counter is tested to determine whether it is indicative of the end of the second word. If the second word has ended, a second blank period is entered for transmission in a step 526, following which control is transferred back to step 520. If it is not a test is made in a step 528 to determine whether the bit counter indicates the end of the first blank time. If it does, a one and one-half millisecond long synchronization pulse is transmitted in a step 530 and control is then transferred back to step 520. If the bit counter does not indicate the end of the first blank time, a test is made in a step 532 to determine whether the bit counter indicates the end of the first word. If it does a first blanking period is entered into the code in a step 534, following which control is then transferred back to step 520. If it does not, a test is made in a step 536 to determine whether the current trinary bit number is odd or even, representing a fixed code trinary bit or a rolling code trinary bit respectively. If it is even the next rolling code trinary bit is transmitted in a step 538. If it is not, the most recent rolling code trinary bit that was transmitted, as shown in Fig. 6, is added to the fixed code trinary bit in a step 536a, the result is then truncated to a base 3 value in a step 537 yielding an encrypted fixed code trinary bit. The encrypted fixed code trinary bit is transmitted in a step 540 thereby causing the rolling code trinary bits and the encrypted fixed code trinary bits to be interleaved for further security. Following either step 538 or step 40 control is transferred back to the bit counter step 520. In order to convert the encrypted or interlinked and mirrored binary rolling code to trinary a routine 550 is provided in which a value equal to 3 19 is subtracted from the interlinked and mirrored code in a step 552. A test is made to determine whether the result of the subtraction is greater than zero in a step 554. If it is control is transferred to a step 556 causing the current base three digit to be incremented following which control is transferred back to step 552. If it is not the current base three digit is stored in a step 557. In a step 558 3 19 is added back in order to make the binary number positive. In a step 559 the result is multiplied by 3. In a step 560 a test is made to determine whether all 20 trinary bits in the current frame have been converted to binary. If they have not control is transferred to a step 561 causing pointing to the next trinary digit to be converted in the frame. If all 20 trinary digits in the current frame have been converted, trinary number is returned in a step 564 and control is transferred back to the exit point of step 512. The base three or trinary digits are then output by the radio transmitter as a pulse width modulated trinary code in the form shown in Fig. 6. Referring now to Fig. 8A, a transition of the received radio frequency signal from low to high or from high to low is detected in a step 600. The microcontroller executes steps to identify the trinary bit stream from the transmitter. Following the transmission a time difference from the last transmission is determined in a step 602 and a radio inactive timer is cleared. In a step 604 a determination is made whether the time difference is for the active high time or inactive low time. If it is for the inactive low time the inactive time value is stored in step 606 and the routine is exited in a step 608. If the time difference is indicated to be active time, the active time is stored in a step 610 and a test is made to determine whether the pulse is the first pulse, in other words, the sync pulse in a step 612. If the test in step 612 indicating that the pulse is the sync pulse is found to be true control is transferred to a step 634, shown in Fig. 8B which tests whether the inactive time is between 20 milliseconds and 55 milliseconds. If it is not, the trinary code is rejected in a step 636 and the bit counter is cleared. The routine is exited in step 638. If not, control is transferred to a step 650. Following the bit counter being set to 1, control is transferred to a step 650 testing whether the active time is greater than 1.0 millisecond. This is done to determine whether the pulse is a sync pulse representative of the beginning of FRAME 1 or FRAME 2. If the active time exceeds 1.0 millisecond a test is made in a step 652 testing whether the active time is greater than 2.0 milliseconds. If the active time is greater than 2.0 milliseconds the received trinary code is rejected and the bit counter is cleared in a step 654. If in step 650 the active time is found not to be greater than 1 millisecond, control is transferred to a test 656 which tests whether the active is less than 0.35 milliseconds. If it is, the code is rejected and the bit counter is cleared in step 654. If it is not the FRAME 1 flag is set in step 658 indicating that a first frame is being received. In the event that the test from step 652 indicates that the active time is not greater than 2.0 milliseconds the FRAME 2 flag is set in a step 660. Following execution of the bit counter clearing step in step 654 the interrupt is returned from in step 662; likewise the interrupt is returned from in a step 664 following step 658 and step 660. If it is not the received pulse tested for in step 612 is not a sync pulse a test is made in a step 614 to determine whether the active time is less than 4.5 milliseconds. In the event that the active time is found to be less than 4.5 milliseconds control is transferred to a test step 616 testing whether the inactive time is less than 4.5 milliseconds. If the active time is 4.5 milliseconds or greater control is transferred from step 614 to a step 618 causing the radio code to be rejected and all code registers related to the radio code to be cleared. In the event that the inactive time is found to be greater than 4.5 milliseconds, control is also transferred to the step 618 causing the radio to be rejected and the radio related registers to be cleared. If the inactive time is 4.5 milliseconds or less, the bit counter is set to 1 indicating that a pulse has been received in a step 630 shown in Fig. 8C. Referring now to Fig. 8D, the microcontroller begins to separate the interleaved trinary fixed code bits from the trinary rolling code bits. In a step 670 the bit counter or current number of bits received is increased following which the inactive time is subtracted from the active time in a step 672. A test is made in a step 674 to determine whether the result of the subtraction is less than minus 0.38 milliseconds; if it is the bit value is set equal to zero in a step 676; if it is not a test is made in a step 678 to determine whether the results are greater than 0.38 milliseconds. If they are the bit value is set equal to 2. If the test of step 678 indicates the results are not greater than 0.38 milliseconds the bit value is set equal to 1 in a step 682. Steps 676, 680 and 682 all transfer control to a step 684 which tests whether the bit counter holds an odd number. If it does the fixed code registers are multiplied by three in a step 686; if it does not, the rolling code registers are multiplied by three in a step 688. In order to decrypt the received fixed code trinary bit, following step 686, as shown in Fig. 8E, the last rolling code trinary bit received is subtracted from the current encrypted fixed code trinary bit in a step 687. The value is then corrected back to a positive base 3 value in a step 689. The resulting bit value is added to the encrypted fixed code trinary bit in a step 690 to yield a decrypted fixed code trinary bit. Following step 688 the rolling code trinary bit value is added to the rolling code in a step 692. Following both of those steps a test is made in a step 694 to determine if the received bit number counter value is less than, greater than or equal to 21. If the received bit counter value is greater than 21 the radio code is rejected in a step 696 for having too many bits, indicating in reception, and the routine is exited. If the bit counter value is less than 21 return from interrupt is made and the next pulse edge in the radio signal is waited for in a step 698. In the event the bit counter value is equal to 21 a test is made in a step 700 for the presence of a first or second frame. If the FRAME 1 is being processed control is transferred to a step 702 causing the bit counter to be cleared and setting up for the second frame following which the interrupt is returned from. If the FRAME 2 is being received control is transferred to a step 704 combining the rolling code registers from the two frames into a single binary value by concatenation. In a step 706 the combined binary value is then mirrored, in other words, the least significant bit becomes the most significant bit. The most significant bit becomes the least significant bit, and so on. A test is made to determine whether program mode has been set in a step 708, as shown in Fig. 8F. If program mode was not set a test is made in a step 710 to determine whether the received fixed code matches a fixed code stored in nonvolatile memory. If there is no match the routine is returned from and the new radio code is waited for in a step 712. If there is a match control is transferred to a step 714, shown in Fig. 8G, where a test is made to determine whether the received counter value is within the forward rolling code window, 17,000 greater than the stored counter value, representative of 1,000 transmitter actuations. If it is control is transferred to a step 716 setting the flag for a command to operate the garage door. Control is then transferred to a step 718 causing the receiver rolling code to be resynchronized by updating the rolling code counter in nonvolatile memory to match the received value of the counter and the interrupt is returned from in a step 720. In the event the received counter value is outside the 17,000 bit forward rolling code window or limit of step 714 a test is made in a step 722 to determine whether the fixed code that was received matches the previous fixed code received, as a backup identifier of the particular transmitter. If it does a test is made in a step 724 to determine if the received rolling counter value is behind the backward rolling code window because it is less by 5100 than the rolling counter value in nonvolatile memory. If it is not control is transferred to a step 726 which tests whether the received rolling code is within the resynchronization rolling code window, 18 bits greater than the previous received rolling code which is outside the forward rolling code window. The system, having detected a rolling code outside the forward window, thus tests for two receipts of the fixed code consecutively and resynchronizes the receiver by resynchronizing the stored rolling code within the receiver. Thus a synchronization window exists when either the received rolling code is within the forward rolling code or it is within the twice consecutive window tested for in step 726. The door operator flag signal is set in step 716 and the door is moved in response thereto by the motor. In step 718 the rolling code in the receiver is resynchronized. If the received rolling code as tested for in step 726 is not within 18 of the previously received rolling code step 728 is executed awaiting a new radio code. Referring back to Fig. 8F, if the program mode has been set as tested for in step 708 a test is made in a step 736 to determine whether the code matches the last code received. If it does control is transferred to a step 738 testing whether the fixed portion of the code matches the fixed code already in nonvolatile memory. If it does the rolling code is replaced in the nonvolatile memory with the received rolling code in the step 740. If it does not the fixed and rolling portions of the code are stored in a new memory location in a step 742 following which in a step 744 the program indicator is switched off, the program mode is exited and the interrupt is returned from. In the event that the test in step 736 indicates that the code does not match the last code received the code is stored in a step 746 for comparison with the next received code. While there has been illustrated and described a particular embodiment of the present invention, it will be appreciated that numerous changes and modifications will occur to those skilled in the art, and it is intended in the appended claims to cover all those changes and modifi¬ cations which fall within the true spirit and scope of the present invention.

Claims: WHAT IS CLAIMED IS: 1. A transmitter for sending an encrypted signal to control an actuator, comprising: means for generating a radio frequency oscilla¬ tory signal; means for generating a variable binary code; means for generating a three-valued or trinary code responsive to the binary variable code; and means for modulating the radio frequency oscilla¬ tory signal with the trinary code to produce a modulated trinary coded variable radio frequency signal for operation or control of a secure actuator. 2. A transmitter for sending an encrypted signal to control an actuator according to claim 1, further comprising means for receiving said binary signal and pro¬ ducing a mirrored binary signal, said mirrored binary signal being supplied to said means for converting the binary signal to a trinary signal. 3. A transmitter for sending an encrypted signal to control an actuator according to claim 1, further comprising means for producing a fixed code signal and means for combining said fixed code signal with said roll¬ ing code signal. . A transmitter for sending an encrypted signal to control an actuator according to claim 3, further comprising means for interleaving trinary bits responsive to said fixed code signal with trinary bits responsive to said rolling code signal to produce a trinary interleaved fixed and rolling code signal. 5. A transmitter for sending an encrypted signal to an actuator according to claim 1, wherein said means for producing said variable code further comprises means for changing the value of said variable code with each transmitter actuation. 6. A transmitter for sending an encrypted signal to control an actuator according to claim 5, wherein said variable code is altered by addition of a fixed value with each transmitter actuation. 7. A transmitter for sending an encrypted signal to control an actuator according to claim 6, wherein said means for incrementing said variable code increments said variable code by a prime number value. 8. A transmitter for sending an encrypted signal to control an actuator according to claim 1, wherein said means for generating a variable code includes a non¬ volatile memory for storing a variable code. 9. A transmitter for sending an encrypted signal to control an actuator according to claim 1, wherein said means for generating said variable code includes stor¬ age means holding a previous cycle variable code signal from which the variable code is generated. 10. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal, comprising: means for receiving an encrypted radio frequency signal; means for demodulating the encrypted radio frequency signal into a demodulated encrypted signal; means for synchronizing with and separating the demodulated encrypted signal into a variable code portion and a fixed code portion; means for testing the fixed code portion and generating a receipt signal in response thereto; means for testing whether a rolling code value is within a windowed range of rolling code values to avoid false triggering on a spurious rolling code having been transmitted by a person not having permission to authorize generation of the actuator signal and producing a rolling code signal in response thereto; means for updating the variable code to an incremented rolling code; and means for producing an actuator signal to produce a actuator command in response to the verified fixed code and the variable code. 11. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal, comprising: means for receiving an encrypted radio frequency signal; means for demodulating the encrypted radio frequency signal into a demodulated encrypted signal; means for comparing the encrypted signal to a first plurality of signal code values defining a valid signal window and in response thereto generating an actuator signal; means for comparing the encrypted signal to a second set of values and generating a security code signal in response thereto; means for comparing a second signal transmission; and means responsive to said security code signal for comparing a second successive transmission to said second window values and producing an actuation signal in response thereto and means for inhibiting actuation responsive to receipt of a signal having a value within a trailing signal windo . 12. A receiver for receiving an encrypted signal from a transmitter for generating an actuation signal according to claim 11, further comprising means for deter¬ mining whether the second of the two successive codes is valid by comparing the first received code to the second received code and producing the actuation signal only when the first received code and the second received code are separated by a single rolling code increment. 13. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal according to claim 11, further comprising means for gener¬ ating a fixed code signal in response to said encrypted radio frequency signal, said fixed code signal being com¬ pared to a stored fixed code signal and enabling actuation only upon a match. 14. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal according to claim 11, wherein said demodulated encrypted signal comprises an interleaved fixed code trinary portion and a variable code trinary portion. 15. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal according to claim 14, further comprising means for con¬ verting said trinary bits to binary bits. 16. A receiver for receiving an encrypted signal from a transmitter and for generating an actuation signal according to claim 14, further comprising means for con¬ verting the demodulated encrypted signal into a binary fixed code signal and a binary variable code signal. 17. A transmitter for sending an encrypted signal to control an actuator, comprising: means for generating a radio frequency signal; means for generating a rolling code; means for generating a fixed code; means for generating an encrypted fixed code in response to the rolling code and the fixed code; and means for modulating the radio frequency signal with the rolling code and the encrypted fixed code to produce an encrypted radio frequency signal for operation or control of a secure actuator. 18. A receiver for receiving an encrypted radio frequency signal from a transmitter and for generating an actuation signal, comprising: means for receiving an encrypted radio frequency signal; means for demodulating the encrypted radio frequency signal into a demodulated encrypted signal; means for separating the demodulated encrypted signal into a rolling code signal and an encrypted fixed code signal; means for decrypting the encrypted fixed code signal into a decrypted fixed code signal; and means for determining the authenticity of the rolling code and the decrypted fixed code signal and generating a control signal in response thereto for control or actuation of an actuator. 19. A receiver for receiving an encrypted radio frequency signal from a transmitter and for generating an actuation signal, comprising: means for receiving an encrypted radio frequency signal; means for demodulating the encrypted radio frequency signal into a demodulated encrypted signal; means responsive to the demodulated encrypted signal for producing a rolling code signal; means for testing whether the rolling code signal is within a forward rolling code window and generating an actuation authorization in response thereto; means for testing whether the rolling code is within a backward rolling code and inhibiting actuation of an actuator in response thereto; means for testing whether the rolling code is within a rolling code resynchronization window and generating a resynchronization signal in response thereto; means for resynchronization of a receiver rolling code value in response to the resynchronization signal; and means for generating a control signal in response to the actuation authorization for control or actuation of the actuator. 20. A receiver for receiving an encrypted radio frequency signal from a transmitter and for generating an actuation signal according to claim 19, wherein said resynchronization window is within two transmitter actuations.

Inventors: FARRIS BRADFORD L, FITZGIBBON JAMES J, FARRIS, BRADFORD, L., FITZGIBBON, JAMES, J.
Applicants: CHAMBERLAIN GROUP INC, FARRIS BRADFORD L, FITZGIBBON JAMES J, FARRIS, BRADFORD, L., FITZGIBBON, JAMES, J., THE CHAMBERLAIN GROUP, INC.
Application year: 1996
Main classification: H04L9
IPC codes: G07C9, H04L9