Techniques exist for monitoring the configuration of mechanical devices and detecting whether the mechanical devices have been tampered with or otherwise physically changed. For instance, existing security systems are known to electronically monitor the state of mechanical or magnetic switches disposed about a building or attached to a lockable storage container in order to determine whether such switches change from an open state to a closed state or vice versa in response to the building or container being tampered with. In many instances, such security systems are not implemented in an efficient or reliable manner. Some existing security systems are bulky and consume a relatively sizeable amount of power. Further, circuitry of the security system are relatively rigid and are not adaptable to different security system applications.
What is needed, then, is a circuit and method for reliably detecting the state of a device, such as a mechanical switch, that may be simply and inexpensively implemented and is adapted for use in a number of different applications.
Exemplary embodiments of the present invention overcome the above-described shortcomings in existing tamper detection circuits and satisfy a significant need for a detection circuit that may accommodate any of a number of different applications. According to an exemplary embodiment of the present invention, a detection circuit may be configured into any of a number of different switch detection configurations. For example, the detection circuit may be configured to be in a normally-closed-tamper-to-high configuration, a normally-closed-tamper-to-low configuration, a normally-open-tamper-to-high configuration and a normally-open-tamper-to-low configuration.
The normally-closed-tamper-to-high configuration is one in which the switch is normally in the closed state and opens when a tamper event occurs such that one of its conduction terminals is pulled to a voltage representing the logic high state by the detection circuit. The normally-closed-tamper-to-low configuration is one in which the switch is normally in the closed state and opens when a tamper event occurs such that one of its conduction terminals is pulled to a voltage representing the logic low state by the detection circuit. The normally-open-tamper-to-high configuration is one in which the switch is normally in the open state and closes when a tamper event occurs such that one of its conduction terminals is pulled to a voltage representing the logic high state by the detection circuit. The normally-open-tamper-to-low configuration is one in which the switch is normally in the open state and closes when a tamper event occurs such that one of its conduction terminals is pulled to a voltage representing the logic low state by the detection circuit.
Specifically, the detection circuit may be configurable to selectively pull (or attempt to pull) a first conduction terminal of the switch towards a voltage level representative of a logic high state and to selectively pull (or attempt to pull) the first conduction terminal of the switch towards a voltage level representative of a logic low state, while the switch is in its normal state. In the event the detection circuit is configured in one of the normally open states and the switch closes, such as due to the occurrence of a tamper event, the detection circuit detects the switch changing state and stops pulling the first conduction terminal of the switch. In the event the detection circuit is configured in one of the normally closed states, the detection circuit may at least occasionally pull (or attempts to pull) the first conduction terminal of the switch towards a voltage level representative of a selected logic state. In this way, there is no continuous current path through the detection circuit and the switch.
An operation of the detection circuit may include configuring the detection circuit to select whether the circuit is to detect a switch switching from a normally open state or from a normally closed state, and to select whether the detection circuit pulls the first terminal of the switch towards a voltage representative of a logic high value or a logic low value during the time the switch is in its normal state. Following the detection circuit detecting the switch switching from the selected normal state, the detection circuit generates an output signal having a value indicative of the detection.
A more complete understanding of the method and apparatus of the present invention may be acquired by reference to the following Detailed Description when taken in conjunction with the accompanying Drawings wherein:
The present invention will now be described more fully hereinafter with reference to the accompanying drawings in which exemplary embodiments of the invention are shown. This invention may, however, be embodied in many different forms and should not be construed as being limited to the embodiments set forth herein. Rather, the embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
Embodiments of the invention may include detection circuitry for monitoring one or more switches. The exemplary embodiment of the present invention described hereinbelow is a circuit for monitoring the state of two switches. The circuitry for monitoring one switch may be the same as the circuitry for monitoring the other switch.
The detection circuitry may include circuitry for selecting one of the detection configurations. When a configuration is selected, circuitry dedicated to the unselected configurations may be disabled and decoupled from the switch. A configuration register (not shown), for example, may store data which is used to perform the selection. In this way, the configuration may be set in a volatile manner.
Normally open circuits 3 monitor the two switches S1 and S2 when detection circuitry is configured in the normally-open tamper configuration. In particular, each of the blocks 3 is used to monitor a distinct switch S1 or S2 when detection circuitry is configured in either the normally-open-tamper-to-high configuration or the normally-open-tamper-to-low configuration.
Detection circuitry further includes normally closed circuits 5, each of which is to adapted to monitor a distinct switch S1 or S2 when detection circuitry is configured in one of the normally-closed tamper configurations. Normally closed circuits 5, when enabled, are capable of monitoring switches S1 and S2 when detection circuitry is configured in either the normally-closed-tamper-to-low or normally-closed-tamper-to-high configurations. Output circuits 7 receive the outputs of each normally open circuit 3 and normally closed circuit 5 and generates a pair of output signals TB1 and TB2 having values representative of switch S1 and S2, respectively, changing state.
In
Circuitry 100 may include a circuit 45 having an input coupled to node TP and capable of generating an output having a value based upon the voltage appearing on node TP. Specifically, circuit 45 may perform a logical inversion function with hysteresis between its input and output. Circuit 45 may include a select input to selectively eliminate the possibility of static current being drawn by circuit 45 in the event a relatively lower voltage appears on node TP and a terminal of switch S1.
An implementation of circuit 45, according to an embodiment of the present invention, is shown in
As can be seen, when select input SEL is at a logic low level, circuit 45 performs as a logic inverter with hysteresis in that output OUT is the logical inversion of input IN. However, when select input SEL is at a logic high level, the output of first stage 50 is pulled to the ground potential by transistor 50A and transistor 50B is turned off In this way, no static current flows in first stage 50 due to transistor 50B being turned off, even if input IN is at a voltage level to simultaneously activate/turn on transistors 50C and 50D. Output OUT is driven to a logic low level when select input SEL is at a logic high level. In this way, select input SEL may serve to disable circuit 45 from providing at output OUT the logical inversion of input IN. It is noted that static current is unable to flow in second stage 51 even if input IN is at a voltage level to simultaneously activate transistors 51A and 51B, due to only one of transistors 51C and 51D being activated at a time.
Circuitry 100 of normally open circuit 3 may further include a transistor 47 coupled between node TP and a high reference voltage and having a control/gate terminal coupled to the output of circuit 45. Transistor 47 may be sized to relatively weakly pull node TP (and hence the conduction terminal of switch S1) to the high reference voltage when activated. Transistor 47 serves to pull signal TP (and thus the conduction terminal of a switch S1 or S2) towards the high voltage reference when activated (i.e., when the switch remains normally open).
Circuitry 100 of normally open circuit 3 may further include flip flop circuit 11. Flip flop circuit 11 may be a D-type flip flop circuit (as shown in
Circuit 3 may further include a control circuit 46 that generates the control signal for driving the select input SEL of circuit 45. Control circuit 46 may generate the control signal based upon a number of signals/conditions of normally open circuit 3 and/or the device in which detection circuitry 1 is employed. For instance, the control signal generated by control circuit 46 may be based upon the output of flip flop circuit 11.
Circuitry 110 may also include a circuit 45, control circuit (TAMPERSEL) 46 and flip flop circuit 11 connected to each other much as such circuits are connected to each other in circuitry 100. In addition, circuitry 110 may include logic NOR gate 80 coupled between circuitry 45 and flip flop circuit 11 of circuitry 110. An n-channel transistor 48 may be coupled between signal TP and the low voltage reference. The control terminal of transistor 48 is coupled to the output of circuit 45 of circuitry 110. Transistor 48 is sized to relatively weakly pull signal TP (and thus the conduction terminal of a switch S1 or S2) towards the low voltage reference when activated (i.e., when the switch remains normally open).
As stated above, circuit 120 serves to enable one or less circuits 100 and 110, based upon the desired configuration for detection circuitry. Input signal Control1 controls whether one of circuit 100 and 110 will be enabled to monitor the corresponding switch. Signal Control1 may be in a first (logic high, in this exemplary embodiment) state when detection circuitry is configured in a normally open configuration, and in a second (logic low) state when detection circuitry is configured in a normally closed state. Control signal Control2 selects the circuit 100 or 110 that is enabled for monitoring the corresponding switch. When signal Control2 is in a first (logic low) state, circuit 100 is enabled to monitor the corresponding switch and detection circuitry is thus configured in the normally-open-tamper-to-low state. Conversely, when signal Control2 is in a second (logic high) state, circuit 110 is enabled to monitor the corresponding switch and detection circuitry is thus configured in the normally-open-tamper-to-high state.
If circuitry 100 is enabled by circuitry 120 and signals Control1 and Control2 so that a normally-open-tamper-to-low configuration is configured, input signal TP (and hence the conduction terminal of one of the switches) is temporarily pulled to a voltage corresponding to a logic high value by temporary activation of a p-channel transistor 47. When the corresponding switch changes state from the open state to the closed state, input signal TP is pulled towards low reference voltage Vss, due to the other conduction terminal of the switch not coupled to input signal TP being coupled to Vss. The switch closing causes the output of circuit 45 to change from a logic low value to a logic high value, which causes flip flop element 11 to clock a logic high value, which thereafter causes output signal TB to change state.
The output of circuit 45 changing state also causes transistor 47 to be deactivated and the output of control circuit 46 to deselect circuit 45. Because circuitry 110 is disabled by circuit 120 during this time, flip-flop circuit 11 of circuit 120 remains in the reset state and thus allows output signal TB to follow the output of flip flop circuit 11 of circuit 100. Other circuitry, such as circuitry in output circuits 7 (
Conversely, if circuitry 110 is enabled by circuitry 120 and signals Control1 and Control2 so that a normally-open-tamper-to-high configuration is configured, input signal TP is temporarily pulled to a voltage corresponding to a logic low value by temporary activation of an n-channel transistor 48. When the corresponding switch changes state from the open state to the closed state, input signal TP is pulled towards high reference voltage Vcc, due to the other conduction terminal of the switch not coupled to input signal TP being coupled to high reference Vcc and to transistor 48 having a lesser drive strength. The output of circuit 45 of circuit 110 changing from a logic high value to a logic low value also causes flip flop circuit 11 of circuit 110 to clock a logic high value, which thereafter causes output signal TB to change state.
The output of circuit 45 of circuit 110 changing state also causes transistor 48 to be deactivated and the output of control circuit 46 of circuit 110 to deselect circuit 45. Because circuitry 100 is disabled by circuitry 120 during this time, flip flop circuit 11 of circuit 100 remains in the reset state and thus allows output signal TB to follow the output of flip flop circuit 11 of circuit 110. Output circuits 7 may cause signal TB to transition to a data value that initiates further action.
When the detection circuitry is configured in the normally-closed-tamper-to-high configuration, transistors 400 and 404 are activated and transistors 402 and 403 are deactivated. This results in resistor R being coupled to the switch being monitored as a pull-up resistor. When the switch is normally closed, input signal TP is pulled to a voltage corresponding to a logic low state due to the drive strength of the switch being greater than that of the pull-up transistor. Then, when the switch is opened, resistor R pulls input signal TP to a voltage representing a logic high state. Input signal TP being in the logic high state causes circuitry in
When the tamper detect circuitry is configured in the normally-closed-tamper-to-low configuration, transistors 402 and 403 are activated and transistors 400 and 404 are deactivated. This results in resistor R being coupled to input signal TP (and therefore the switch being monitored) as a pull-down resistor. When the switch is normally closed, input signal TP is pulled to a voltage corresponding to a logic high state. Then, when a tamper event occurs, the switch is opened which results in resistor R pulling input signal TP to a voltage representing a logic low state. Input signal TP being in the logic low state causes circuitry in
With reference again to
Because the normally-closed tamper configurations result in a current path existing between the high voltage reference Vcc and the low voltage reference Vss prior to the switch being opened, it may be desired to limit current consumption. Accordingly, the circuit in
The tamper detect circuitry may also include circuitry for programmably setting the amount of resistance of resistor R to any of at least two resistance values. As stated above, resistor R may be formed from a plurality of series-connected resistors. Referring to
An operation of detection circuitry will be described with reference to
In the event detection circuitry is configured in the normally-closed-tamper-to-high configuration, normally open circuits 3 are disabled from monitoring the switches S1 and S2 and thus do not affect the outputs TB1 and TB2. Transistors 400 and 404 are activated and transistors 402 and 403 are deactivated, which results in resistor R of each normally open circuit 5 acting as a pull-up resistor. When a switch S1 or S2 changes to the open state, such as in response to the occurrence of a tamper condition, the corresponding normally closed circuit 5 detects signal TP being pulled to the logic high state resistor R. Circuitry in normally closed circuit 5 detects node TP being pulled to the logic high state, and drives output TB to a value indicative of the detection. Output circuits 7 responsively drive the output TB1 to a value indicative of the detection of the switch being opened.
In the event detection circuitry is configured in the normally-closed-tamper-to-low state, a similar set of steps are performed as described above. However, transistors 402 and 403 are activated and transistors 404 are deactivated, resulting in the resistor R forming a pull-down resistor. Normally closed circuit 5 associated with a switch that opens detects node TP being pulled to a logic low value by resistor R, and output TB1 or TB2 is driven to a state indicative of the detection.
In the event detection circuitry is configured in the normally-open-tamper-to-high state, normally closed circuits 3 are disabled and do not perform the above-described detecting. Transistor 47 (
In the event detection circuitry is configured in the normally-open-tamper-to-low state, normally closed circuits 3 are disabled and do not perform the above-described detecting. Transistor 48 (
The invention being thus described, it will be obvious that the same may be varied in many ways. Such variations are not to be regarded as a departure from the spirit and scope of the invention, and all such modifications as would be obvious to one skilled in the art are intended to be included within the scope of the following claims.
The present application claims priority from U.S. Provisional Application No. 60/469,325, filed May 9, 2003, the disclosure of which is hereby incorporated by reference. The present application is related to U.S. patent application Ser. No. 10/147,639, filed May 17, 2002, which is incorporated by reference herein in its entirety.
Number | Name | Date | Kind |
---|---|---|---|
5275158 | Lopin | Jan 1994 | A |
6861955 | Youssef | Mar 2005 | B2 |
20040051643 | Bullmore | Mar 2004 | A1 |
Number | Date | Country | |
---|---|---|---|
20040222702 A1 | Nov 2004 | US |
Number | Date | Country | |
---|---|---|---|
60469325 | May 2003 | US |