Background of the Invention
The invention relates generally to apparatus for monitoring the opening and closing of a door and is more particularly directed to an apparatus and method for detecting unauthorized opening and closing of a door.
In various coin-operated machines, such as slot machines, video games, pinball machines, and other games of chance, it is necessary to detect and keep track of the various times the door to the coin box and interior of the game cabinet is opened. The reason is two-fold: first, it is desirable to detect and to discourage pilfering from the coin box or tampering with the game mechanism itself to alter the game play; second, particularly with gaming devices which accept wagers, it is necessary to keep track of the door openings to maintain a proper accounting of the financial status of the gaming device. Known gaming devices typically have door interlock switches or the like which register when the door has been opened. Unfortunately, it has proven to be quite easy to defeat most door interlock switches. When the switch is defeated, it is possible to gain access to the coin box or the game mechanism without sounding any alarm and without causing a record to be made of the unauthorized door opening.
Summary of the Invention
The present invention provides a door interlock method and apparatus for monitoring the opening and closing of a door to a secure game cabinet or the like which cannot be readily defeated by known techniques. Briefly, the door interlock apparatus comprises a radiative emitter, such as a light emitting diode or an infrared emitting diode, and a sensor which are mounted with respect to the door so as to be in optical communication with one another when the door is in closed position. The term "optical communication" as used herein embraces communication by infrared and ultraviolet radiation as well as by radiation in the visible spectrum. In the method of the invention the sensor is interrogated to determine whether it is receiving radiation, and if so, a first signal is provided indicating that fact. In response to the first signal, a determination is made whether the emitter and sensor are still in optical communication with one another. If they are not in optical communication, a second signal is provided to an indicator means, which provides an indication that someone has attempted to tamper with the door.
With this method certain attempts to circumvent the system will be easily detected. For example, if the door is in fact closed, then the sensor will of course be receiving radiation, and a first signal would be provided in accordance with the invention. However, the sensor could also be receiving radiation from a second source in an attempt to foil the system. Therefore, the invention calls for verification that the emitter and sensor are still in optical communication before concluding that the door is closed.
In a further of its aspects, the invention calls for periodically determining over a predetermined duration whether the above first-named signal is being provided. If the signal fails to be provided for the full predetermined duration, then a further signal is provided indicating the door is truly open. According to this aspect of the invention, the optical communication between the emitter and sensor must be interrupted for the full predetermined duration, for example, 100 milliseconds, before the method signals that the door is open.
In a preferred embodiment of the invention, the determination that the sensor and emitter are in optical communication is made by causing the emitter to emit characteristic pulses of light in a predetermined sequence and then monitoring whether those pulses are received by the sensor. In this way, the system cannot be foiled by replacing the emitter with a substitute light source. In another aspect of the invention, the emitter and sensor are operated at different current levels, so that the system cannot be foiled merely by shunting the emitter and sensor together.
In a preferred embodiment the operation and monitoring of the emitter and sensor are controlled by a microprocessor. An exposition is given hereinbelow of a suitable microprocessor control routine for implementing the method.
A further understanding and appreciation of the nature and advantages of the invention can be gained by reference to the remaining portions of the specification and to the attached drawings.
Brief Description of the Drawings
FIG. 1 is a combination block diagram and perspective view of a portion of a cabinet and apparatus for practicing the method of the invention; a portion of an interior wall and cabinet door with sensor and emitter mounted thereon is shown in perspective, and apparatus for controlling the emitter and sensor is shown in the block diagram.
FIG. 2 is a logic flow chart illustrating a microprocessor routine for controlling the emitter and sensor in accordance with the invention.
Detailed Description of the Preferred Embodiments
FIG. 1 shows a portion of a door 10 and an interior wall 11 of a game cabinet. A radiative emitter 12 and sensor 13 are mounted in operative association with door 10 so as to communicate with one another when the door is in closed position. The term "operative association" as used herein is taken to mean that emitter 12 and sensor 13 are mounted so as to define an interruptable communication path which is interrupted when door 10 is opened. An emitter and sensor in this configuration will communicate with one another across a gap to close an electrical circuit when door 10 is closed and will cause that circuit to be broken when door 10 is opened. Configured in this manner, the emitter and sensor can be coupled to a suitable indicating circuit to monitor the opening and closing of door 10. However, this simple arrangement is easily foiled to give a false indication of a closed door.
The present invention adds to the above-described configuration a means for interrogating emitter 12 and sensor 13 to verify whether they are indeed in communication with one another, which can only occur when door 10 is closed. According to the invention, the verification function is provided by a first means which has a first state indicating that said sensor is receiving radiation and a second state indicating that it is not; a second means for pulsing emitter 12; a third means which monitors whether the state of the first means tracks the pulsation of emitter 12 and provides an alarm signal when it fails to track the pulsations; and a fourth means providing an indication of unauthorized opening of door 10 in response to the alarm signal.
In the preferred embodiment illustrated in FIG. 1 these means are provided by microprocessor 15, which includes input register 16, central processing unit 17, output register 18, and counter/timer 22. Sensor 13 is connected to input register 16 and provides a signal causing a status bit or flag to be set in input register 16 whenever sensor 13 is receiving radiation. Output register 18 is connected to emitter 12 and provides a signal in response to commands from CPU 17 for energizing the emitter.
As explained more fully hereinbelow, when the status bit is set in input register 16, indicating that sensor 13 is receiving radiation, CPU 17 provides a sequence of commands causing emitter 12 to pulse in a predetermined manner. As used herein, the term "to pulse" means to deenergize emitter 12 for a characteristic period, that is, to cause emitter 12 to blink. If sensor 13 fails to receive the pulsation of emitter 12, that is, if the status bit of input register 16 fails to track the pulse commands of CPU 17, then microprocessor 15 provides an alarm signal indicating that the emitter-sensor configuration has been tampered with. The alarm signal is received by indicator means 19.
The indicator means 19 may be provided by any of several common devices, such as a local or remote auditory alarm or a local or remote display monitor indicating unauthorized opening of the door and unauthorized entry into the cabinet. CPU 17 may also make an entry in a memory device, such as random access memory 21, recording the tampering attempt. Such alarm, display, or memory arrangements are well known to those skilled in the art.
The preferred embodiment also includes means for indicating when door 10 is truly open. As illustrated in FIG. 1, the apparatus further comprises counter/timer 22 included in microprocessor 15 and a second indicator means 23 for indicating that door 10 is open. On command from CPU 17, counter/timer 22 counts down a predetermined time interval when the sensor-status bit is first set in input register 16. If sensor 13 does not change its status during the predetermined time interval, that is, if the sensor-status bit is not cleared from input register 16 during the predetermined time interval, then microprocessor 15 activates indicator means 23 to signal that door 10 is truly open. If sensor 13 does change its status within the predetermined time interval, that is, if the sensor-status bit is cleared from input register 16 within the predetermined time interval, then CPU 17 commands output register 18 to pulse emitter 12 so as to verify whether emitter 12 and sensor 13 are still in optical communication with one another.
In the preferred embodiment radiative emitter 12 is provided by a light emitting diode which is connected directly to an output port of microprocessor 15. Sensor 13 is then provided by a phototransistor connected at its bias side to an input port of microprocessor 15. The phototransistor is operated at a level sufficiently high so as not to respond to ambient light. The light emitting diode is mounted on door 10 so that when the door is closed, the diode will be in close proximity to the phototransistor. In this manner, the light emitting diode communicates with the phototransistor only across a small air gap and can deliver a light signal of sufficient intensity to activate the phototransistor, which is not activated by ambient light levels. While the preferred embodiment illustrated here employs a light emitting diode, other types of radiative emitters can be used in the invention, for example, an infrared emitting diode.
Having described the general arrangement and function of apparatus for practicing the invention, the control of microprocessor 15 is now described in more detail. FIG. 2 provides a flow chart of a routine for practicing the invention, and Appendix I contains an illustrative assembly-language program. With reference to FIG. 2, upon entry into the routine emitter 12 is activated at block 31 and counter/timer 22 is initialized at block 32. At block 33, CPU 17 checks whether the sensor-status bit has been set. A cleared status bit indicates that sensor 13 is not receiving radiation and provides a preliminary indication that door 10 is open. As described above, however, CPU 17 does not signal indicator means 23 that the door is truly open unless sensor 13 fails to receive any radiation for a continuous, predetermined time interval. Thus, if upon interrogation at block 33 it is found that no sensor-status bit is set, the counter is decremented, the status of the sensor is interrogated again, and so on until the counter has counted down to zero. In the illustrative program of Appendix I the counter is set to count down a predetermined time interval of 100 milliseconds. If the counter reads zero, then at block 34 CPU 17 signals indicator means 23 that the door is open. The CPU command may be used to produce a door-open display on an appropriate monitor and to perform such other commonplace tasks as turning on a lamp within the cabinet.
If at any time before the loop counter 22 counts down to zero the interrogation at block 33 determines that the sensor-status flag has been set, then control shifts to block 36, which initializes the counter again in preparation for a verification loop.
In the verification loop CPU 17 pulses emitter 12 and verifies whether the pulses are tracked by sensor 13. At block 37 CPU 17 causes emitter 12 to be deenergized. CPU 17 then checks the state of the sensor-status bit. If the bit is still set, then CPU 17 concludes that sensor 13 is not tracking the pulsation of emitter 12 and the sensor and emitter are no longer in communication with one another. Upon the occurrence of this condition, CPU 17 provides an alarm signal at block 39 to indicator means 19.
If the status bit has changed its state, so as to track the leading edge of the first pulse from emitter 12, then at block 41 CPU 17 causes the emitter to be energized again. At block 42 CPU 17 checks once again the state of the sensor-status bit to ascertain whether it has tracked the trailing edge of the pulse from emitter 12. If so, the loop counter is decremented at block 43.
Emitter 12 is pulsed in this manner for a predetermined number of pulses as defined by the loop counter. If at any time during the verification loop the sensor-status bit fails to track the leading edge or the trailing edge of any pulse, control will shift to block 39, which provides an alarm signal indicating unauthorized tampering with the door interlock system. If the sensor-status bit successfully tracks the verification pulsations of emitter 12, then CPU 17 concludes that the door is in fact closed and returns control to block 31, which reenergizes emitter 12. In the illustrative program of Appendix I the verification loop produces a total of 10 equally spaced pulses over an elapsed time of 15 milliseconds.
Appendix I provides an illustrative assembly-language program listing for microprocessor 15 according to the general flow chart of FIG. 2. In that listing, the function labeled WATCHD, which stands for "watch dog," provides a refresh sequence for the microprocessor hardware when the routine returns to the beginning from block 44. The function labeled WARMPU, which stands for "warm power up," refreshes the sensor-status bit if the apparatus should be instantaneously turned off and on. The other instructions of the listing will be readily interpretable by those skilled in the art of microprocessor programming. It will be appreciated that the listing of Appendix I provides only an illustrative program for implementing the method of the invention, and other programs could be written by one skilled in the art for carrying out the method disclosed herein.
While the above provides a full and complete disclosure of the preferred embodiments of the invention, various modifications and equivalents will occur to those skilled in the art given the benefit of this disclosure. For example, many of the software functions provided by microprocessor 15 could be implemented by well known logic gate arrays external to the microprocessor. Also, other predetermined sequences of pulses of different pulse widths and spacings or even a sequence of randomly generated pulses could be used in the verification loop. All such modifications and alternate constructions are considered to fall within the spirit and scope of the invention disclosed herein, which is defined by the appended claims.