A door lock system and reset circuit thereof
By designing a lock system reset circuit based on the USB interface and using capacitors and switching tubes to generate level pulse signals, a simple and stable reset of the door lock system is achieved, which solves the troublesome reset function and appearance design safety issues in the existing technology, and achieves Beautiful and safe system reset effect.
Patent Information
- Application Number
- CN202011410454.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-03
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2040-12-03
Smart Images

Figure CN112615610B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of integrated circuits, and in particular to a lock system reset circuit based on a simple circuit. Background Art
[0002] In the actual development and design of application system equipment, it is always required to reserve some interface methods for resetting the system. However, considering the overall aesthetics and safety design of the interface, a button cannot be reserved on the front of the device. For example, current door locks do not reserve buttons on the outer panel to reset the lock, which can easily be misoperated by others, causing frequent system resets and affecting overall use. However, current locks will reserve a USB interface as a backup power supply. If this system reset function can be combined with the USB interface, it can be more perfect to achieve the function without affecting the overall appearance design and safety of the lock.
[0003] Corresponding to the above requirements, the usual implementation is to detect the voltage of the USB power supply. If there is a voltage, the MCU's RST will be given a valid level, which can cause the MCU to reset. However, if there are multiple MCUs, the main MCU needs to have clear control over the RST or power supply of other MCUs. In addition, the reset of the main MCU usually needs to go through a series of initialization and self-test processes before controlling other MCUs or circuits. The implementation of the entire reset requires the cooperation of software logic, which is more troublesome to implement. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a door lock system and a reset circuit thereof which are widely applicable, simple and stable, so as to achieve the reset of the door lock system.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] A lock system reset circuit is applied to a smart door lock with a USB interface charging function. The circuit includes:
[0007] A first capacitor, wherein a first end of the first capacitor is connected to a first power interface, and the first power interface is a USB power interface;
[0008] a first resistor, wherein a first end of the first resistor is connected to a second end of the first capacitor, and a second end of the first resistor is grounded;
[0009] A first switch tube, wherein a control end of the first switch tube is connected to a first end of the first resistor, an input end of the first switch tube is connected to a second power interface, an output end of the first switch tube is grounded, and the second power interface is a door lock system power interface;
[0010] a second switch tube, wherein a control end of the second switch tube is connected to an input end of the first switch tube, and an input end of the second switch tube is connected to the second power interface;
[0011] A second resistor, wherein a first end of the second resistor is connected to the output end of the second switch tube, and a second end of the second resistor is grounded;
[0012] A third switch tube, wherein the control end of the third switch tube is connected to the output end of the second switch tube, the input end of the third switch tube is connected to the second power supply interface, and the output end of the third switch tube serves as the reset signal output end of the lock system reset circuit.
[0013] Optionally, the above lock system reset circuit further includes:
[0014] A third resistor is arranged between the control end of the first switch tube and the first end of the first resistor;
[0015] a fourth resistor disposed between the input end of the first switch tube and the second power interface;
[0016] A fifth resistor is arranged between the control end of the second switch tube and the first switch tube.
[0017] Optionally, in the above lock system reset circuit, the first switch tube and the second switch tube are triodes;
[0018] The third switch tube is a MOS tube.
[0019] Optionally, in the above lock system reset circuit, the first capacitor is an adjustable capacitor, and the first resistor is an adjustable resistor.
[0020] Optionally, the above lock system reset circuit further includes:
[0021] a sixth resistor, wherein a first end of the sixth resistor is connected to an output end of the third switch tube;
[0022] A first diode, wherein an input end of the first diode is connected to the second end of the sixth resistor, and an output end of the first diode is connected to the input end of the first switch tube.
[0023] A door lock system is provided, using any one of the lock system reset circuits described above.
[0024] Optionally, in the above door lock system, the USB interface of the door lock system is located on the first side of the door.
[0025] Based on the above technical solution, in the above solution provided by the embodiment of the present invention, when the AC signal conductivity of the first capacitor C1 generates a level pulse signal corresponding to the USB level change, the level signal is applied to the first switch tube Q1, so that the first switch tube generates an on-off signal, so that the input end of the first switch tube also generates a level pulse signal, that is, when the level is high, the first switch tube is turned on, and when the first switch tube is turned on, the input end level of the first switch tube is low, when the level is low, the first switch tube is disconnected, and the input end is high. At this time, the level signal at the input end of the first switch tube and the level pulse signal at the input end of the first switch tube act on the input end of the second switch tube. When the level signal is high, the second switch tube is turned on, and a level signal is output, and its output end is a high level signal. When the level signal is low, the second switch tube is turned off, and the second switch tube has no level signal output, and its output end is a low level signal. Thus, the output end of the second switch tube will also generate a level pulse signal, and the level pulse signal then acts on the third switch tube. The third switch tube is arranged on the power supply circuit of the door lock system. When the third switch tube is disconnected, the door lock power supply cannot provide power supply current for the circuit in the door lock system. When the third switch tube is turned on, it can provide working current for the power circuit in the door lock system. In this scheme, the third switch tube is preferably a normally closed switch tube. The level pulse signal generated by the output end of the second switch tube acts on the control end of the third switch tube. When the level pulse signal generated by the output end of the second switch tube is at a high level, the third switch tube is disconnected. When the level pulse signal generated by the output end of the second switch tube is at a low level, the third switch tube is turned on, thereby realizing an on-off process of the third switch tube in a short time, so that the door lock system has a power-off and power-on action, realizing the power reset operation of the door lock system, so that the door lock system completes a reset. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0027] Figure 1 It is the basic circuit of the door lock system reset circuit disclosed in the embodiment of the present application;
[0028] Figure 2 It is a schematic diagram of the structure of the door lock system reset circuit disclosed in the embodiment of the present application;
[0029] Figure 3 This is a schematic diagram of the structure of a door lock system reset circuit disclosed in another embodiment of the present application. DETAILED DESCRIPTION
[0030] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0031] See also Figure 1 The technical solution provided by this application is based on the design of pure hardware circuit to achieve the reset of the entire door lock system. Figure 1 When the USB interface VCC_USB has a level change, the AC signal conductivity of the first capacitor C1 is used to generate a level pulse signal corresponding to the USB level change. When the VCC_USB level changes from 0V to 5V, the level of the middle point of the first capacitor C1 and the first resistor R1 changes from 0V to 5V. After the capacitor charge is released, the level of the middle point of the first capacitor C1 and the first resistor R1 becomes 0V again, and changing the values of the first capacitor C1 and the first resistor R1 can change the width of the output pulse. Therefore, in this solution, the first capacitor of the first capacitor and the first resistor is an adjustable capacitor, and the first resistor is an adjustable resistor.
[0032] based on Figure 1 The circuit shown in Figure 2 , the lock system reset circuit disclosed in the present application includes:
[0033] A first capacitor C1, wherein a first end of the first capacitor is connected to a first power interface, wherein the first power interface is a USB power interface, and a voltage level provided by the USB power interface is recorded as VCC_USB;
[0034] A first resistor R1, wherein a first end of the first resistor is connected to a second end of the first capacitor, and a second end of the first resistor is grounded;
[0035] A first switch tube Q1, wherein a control end of the first switch tube is connected to a first end of the first resistor, an input end of the first switch tube is connected to a second power interface, an output end of the first switch tube is grounded, and the second power interface is a door lock system power interface, and a level signal provided by the second power interface is recorded as VCC_BAT_MAIN;
[0036] A second switch tube Q2, wherein a control end of the second switch tube is connected to an input end of the first switch tube, and an input end of the second switch tube is connected to the second power interface;
[0037] A second resistor R2, wherein a first end of the second resistor is connected to the output end of the second switch tube, and a second end of the second resistor is grounded;
[0038] The third switch tube Q3, the control end of the third switch tube is connected to the output end of the second switch tube, the input end of the third switch tube is connected to the second power interface, and the output end of the third switch tube serves as the reset signal output end of the lock system reset circuit.
[0039] See also Figure 2 In the above circuit system, when the AC signal conductivity of the first capacitor C1 generates a level pulse signal corresponding to the USB level change, the level signal is applied to the first switch tube Q1, so that the first switch tube generates an on-off signal, so that the input end of the first switch tube also generates a level pulse signal, that is, when the level is high, the first switch tube is turned on, and when the first switch tube is turned on, the input end level of the first switch tube is low, when the level is low, the first switch tube is turned off, and the input end is high. At this time, the level signal at the input end of the first switch tube and the level pulse signal at the input end of the first switch tube act on the input end of the second switch tube. When the level signal is high, the second switch tube is turned on, and a level signal is output, and its output end is a high level signal. When the level signal is low, the second switch tube is turned off, and the second switch tube has no level signal output, and its output end is a low level signal. Thus, the output end of the second switch tube will also generate a level pulse signal, and the level pulse signal then acts on the third switch tube. The third switch tube is arranged on the power supply circuit of the door lock system. When the third switch tube is disconnected, the door lock power supply cannot provide power supply current for the circuit in the door lock system. When the third switch tube is turned on, it can provide working current for the power circuit in the door lock system. In this scheme, the third switch tube is preferably a normally closed switch tube. The level pulse signal generated by the output end of the second switch tube acts on the control end of the third switch tube. When the level pulse signal generated by the output end of the second switch tube is at a high level, the third switch tube is disconnected. When the level pulse signal generated by the output end of the second switch tube is at a low level, the third switch tube is turned on, thereby realizing an on-off process of the third switch tube in a short time, so that the door lock system has a power-off and power-on action, realizing the power reset operation of the door lock system, so that the door lock system completes a reset.
[0040] Furthermore, the above circuit may also include some auxiliary resistors, which mainly provide a voltage divider in the circuit. Figure 2 , these auxiliary circuits may include:
[0041] A third resistor R3, which is arranged between the control end of the first switch tube and the first end of the first resistor;
[0042] A fourth resistor R4, which is arranged between the input end of the first switch tube and the second power interface;
[0043] A fifth resistor R5 is provided between the control end of the second switch tube and the first switch tube.
[0044] like Figure 1 When the USB interface VCC_USB has a level change, the AC signal conductivity of the first capacitor C1 is used to generate a level pulse signal corresponding to the USB level change. By using the change of the level pulse signal, the auxiliary resistors (the second resistor, the third resistor, the fourth resistor and the fifth resistor) and the first switch tube Q1 and the second switch tube Q2 can be compatible with the situation where the VCC_USB level is inconsistent with the VCC_BAT_MAIN level. When there is no change in VCC_USB, the second resistor R2 will pull down the input end of the third switch tube Q3 (when the third switch tube is a MOS tube, its control end is the gate of the MOS tube), and the third switch tube Q3 will be turned on all the time, so that the door lock system is always powered. When VCC_USB changes, the auxiliary circuit behind is used to give a high pulse to the control end of the third switch tube Q3, and the high pulse will cause the third switch tube Q3 to be disconnected, so that the entire door lock system does not need additional software logic control, and the entire door lock system will be powered off and reset once, achieving the simplest system reset.
[0045] In the above solution, the types of the first switch tube, the second switch tube and the third switch tube can be selected according to user needs. For example, the first switch tube and the second switch tube are triodes; the third switch tube is a MOS tube.
[0046] Further, based on Figure 2 The applicant conducted further research on the circuit and found that the circuit can solve the problem of a door lock system in normal working state. However, when the entire door lock system is relatively complex and has a large capacitor, due to the effect of capacitor energy storage and the door lock system has entered a low power consumption state, there is no discharge path when the door lock system is in a low power consumption state. In this state, turning on and off the power switch (third switch tube) of the door lock system may not effectively reset the door lock system. Therefore, if Figure 3, the present application has made further improvements to the circuit. In this embodiment, the above circuit may also include: a sixth resistor R6 and a first diode D1, the first end of the sixth resistor is connected to the output end of the third switch tube; a first diode, the input end of the first diode is connected to the second end of the sixth resistor, and the output end of the first diode is connected to the input end of the first switch tube. After adding the first diode D1 and the sixth resistor R6, when the power supply is normal or the USB is always powered, the door lock system is in the working state and the dormant state, and no path will be formed to generate additional power consumption. Only when the USB power supply is connected, when the VCC_USB level changes, when the third switch tube Q3 is turned off, the first diode D1 and the sixth resistor R6 will form a path, adding a discharge path to the entire door lock system, and completing the reset operation of the door lock system. In addition, the components used in the above circuit are all conventional materials, which will not increase the system cost.
[0047] Corresponding to the above circuit, the present application also discloses a door lock system using the above circuit, which uses any one of the lock system reset circuits described above.
[0048] Furthermore, in the technical solution disclosed in the above-mentioned embodiment of the present application, the USB interface of the door lock system is located on the first side of the door, and the first side is the outer side of the door.
[0049] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0050] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A lock system reset circuit, It is characterized in that Applied to smart door locks with USB charging function, the circuit includes: A first capacitor, wherein a first end of the first capacitor is connected to a first power interface, and the first power interface is a USB power interface; a first resistor, wherein a first end of the first resistor is connected to a second end of the first capacitor, and a second end of the first resistor is grounded; A first switch tube, wherein the control end of the first switch tube is connected to the first end of the first resistor, the input end of the first switch tube is connected to the second power interface, the output end of the first switch tube is grounded, and the second power interface is a door lock system power interface; wherein a level pulse signal corresponding to a USB level change is generated by utilizing the AC signal conductivity of the first capacitor, and the level pulse signal acts on the first switch tube; a second switch tube, wherein a control end of the second switch tube is connected to an input end of the first switch tube, and an input end of the second switch tube is connected to the second power interface; A second resistor, wherein a first end of the second resistor is connected to the output end of the second switch tube, and a second end of the second resistor is grounded; A third switch tube, wherein the control end of the third switch tube is connected to the output end of the second switch tube, the input end of the third switch tube is connected to the second power supply interface, the output end of the third switch tube serves as the reset signal output end of the lock system reset circuit, and the third switch tube is arranged on the power supply circuit of the door lock system.
2. The lock system reset circuit according to claim 1, It is characterized in that Also includes: A third resistor is arranged between the control end of the first switch tube and the first end of the first resistor; a fourth resistor disposed between the input end of the first switch tube and the second power interface; A fifth resistor is arranged between the control end of the second switch tube and the first switch tube.
3. The lock system reset circuit according to claim 1, It is characterized in that The first switch tube and the second switch tube are triodes; The third switch tube is a MOS tube.
4. The lock system reset circuit according to claim 1, It is characterized in that The first capacitor is an adjustable capacitor, and the first resistor is an adjustable resistor.
5. The lock system reset circuit according to claim 1, It is characterized in that Also includes: a sixth resistor, wherein a first end of the sixth resistor is connected to an output end of the third switch tube; A first diode, wherein an input end of the first diode is connected to the second end of the sixth resistor, and an output end of the first diode is connected to the input end of the first switch tube.
6. A door lock system, It is characterized in that The lock system reset circuit according to any one of claims 1 to 5 is applied.
7. The door lock system according to claim 6, It is characterized in that The USB interface of the door lock system is located on the first side of the door.
