CN114759655A - Intelligent lock USB emergency restarting method and system - Google Patents

Intelligent lock USB emergency restarting method and system Download PDF

Info

Publication number
CN114759655A
CN114759655A CN202011101330.1A CN202011101330A CN114759655A CN 114759655 A CN114759655 A CN 114759655A CN 202011101330 A CN202011101330 A CN 202011101330A CN 114759655 A CN114759655 A CN 114759655A
Authority
CN
China
Prior art keywords
circuit
intelligent lock
usb
power supply
power
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011101330.1A
Other languages
Chinese (zh)
Inventor
郭萌
李鹏
赵光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Hardrock Technology Co ltd
Original Assignee
Beijing Hardrock Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Hardrock Technology Co ltd filed Critical Beijing Hardrock Technology Co ltd
Priority to CN202011101330.1A priority Critical patent/CN114759655A/en
Publication of CN114759655A publication Critical patent/CN114759655A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J9/00Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting
    • H02J9/04Circuit arrangements for emergency or stand-by power supply, e.g. for emergency lighting in which the distribution system is disconnected from the normal source and connected to a standby source
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0029Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits
    • H02J7/0031Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with safety or protection devices or circuits using battery or load disconnect circuits

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Business, Economics & Management (AREA)
  • Emergency Management (AREA)
  • Power Sources (AREA)

Abstract

The invention discloses an intelligent lock USB emergency restarting method and a system, wherein the intelligent lock USB emergency restarting method comprises the following steps: judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step; judging whether the main circuit is powered off, if so, carrying out the next step; stopping power supply and discharging until the intelligent lock control circuit is completely powered off; and a standby USB circuit is adopted for supplying power. By adopting the scheme, the standby USB circuit can be used for supplying power without adopting an outdoor restart button, and the intelligent lock control circuit can be really restarted without residue by discharging to be completely powered off, so that various problems of intelligent lock dead halt caused by incomplete power failure are eliminated, the hidden danger of residual dead halt caused by incomplete power failure is overcome, the restorable restart effect is really realized, and the intelligent lock can be applied to intelligent locks of various power supply modes; and the spare USB circuit supplies power, so that the spare USB circuit has the advantage of easy implementation and basically does not need additional hardware.

Description

Intelligent lock USB emergency restarting method and system
Technical Field
The invention relates to the field of intelligent locks, in particular to an intelligent lock USB emergency restarting method and system.
Background
The intelligent lock is used as an electronic device, and the possibility of crash exists. When the system crashes, the battery must be disassembled, and the system is powered off and restarted. However, if the crash occurs, people are shut out of the door, the battery cannot be detached, and at the moment, if an emergency mechanical key is not provided, the door cannot be opened by any method and can only be broken by violence.
Some intelligence locks are equipped with the restart button outside the lock, can cut off the power supply and restart after pressing. But this requires keeping one more button location on the outside and training the user to know how to restart. More importantly, the security holes exist, and the security holes are easy to be exploited by people.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The invention provides an intelligent lock USB emergency restart method and system, aiming at solving the technical problems that: how to avoid adopting the outdoor restart button in order to eliminate the security leak, how to overcome the incomplete remaining dead halt hidden danger that leads to of outage, how easily to realize etc..
The technical scheme of the invention is as follows:
an intelligent lock USB emergency restart method comprises the following steps:
judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step;
judging whether the main circuit is powered off, if so, carrying out the next step;
stopping power supply and discharging until the intelligent lock control circuit is completely powered off;
and a standby USB circuit is adopted for supplying power.
Preferably, the main circuit is a battery power supply circuit or a main line power supply circuit, the power supply of the battery power supply circuit is a built-in battery of the intelligent lock, and the power supply of the main line power supply circuit is household commercial power.
Preferably, the standby USB circuit is an external circuit and an external power supply thereof, and the external power supply comprises a mobile phone battery and a mobile power supply.
Preferably, before the standby USB circuit is used to supply power or before the standby USB circuit stops supplying power and discharges power, the method for restarting the intelligent lock USB in emergency further includes the steps of: and accessing the standby USB circuit.
Preferably, before determining whether the main circuit is powered off, the intelligent lock USB emergency restart method further includes the steps of:
performing soft start on the mobile terminal through APP interaction;
and judging whether the intelligent lock is still in a dead halt state, if so, carrying out the next step, otherwise, stopping, and not carrying out other steps.
Preferably, after the standby USB circuit is used to supply power, the method for restarting the smart lock in the USB emergency further includes: and powering on the intelligent lock control circuit.
Preferably, before the intelligent lock control circuit is powered on, the intelligent lock USB emergency restart method further includes: and carrying out power-on authority authentication.
Preferably, the power-on authority authentication is performed on the mobile terminal.
Preferably, the power-on authority authentication is performed on the mobile terminal through APP interaction.
An intelligent lock USB emergency restart system, comprising: the intelligent lock control circuit comprises a main circuit connecting end, a spare USB circuit connecting end, a power supply switching circuit, a voltage conversion circuit, a discharge circuit and an intelligent lock control circuit;
the power supply switching circuit is respectively connected with the main circuit connecting end and the standby USB circuit connecting end;
the discharge circuit is respectively connected with the standby USB circuit connecting end and the intelligent lock control circuit;
the voltage conversion circuit is respectively connected with the power supply switching circuit, the standby USB circuit connecting end and the intelligent lock control circuit.
By adopting the scheme, the standby USB circuit can be used for supplying power without adopting an outdoor restart button, and the intelligent lock control circuit can be really restarted without residue by discharging to be completely powered off, so that various problems of intelligent lock dead halt caused by incomplete power failure are eliminated, the hidden danger of residual dead halt caused by incomplete power failure is overcome, the restorable restart effect is really realized, and the intelligent lock can be applied to intelligent locks of various power supply modes; and the spare USB circuit supplies power, so that the spare USB circuit has the advantage of easy implementation and basically does not need additional hardware.
Drawings
FIG. 1 is a schematic flow chart diagram illustrating an embodiment of an intelligent lock USB emergency restart method according to the present invention;
FIG. 2 is a schematic diagram of a modular structure of the USB emergency restart system of the intelligent lock according to the present invention;
fig. 3 is a schematic circuit structure diagram of the intelligent lock USB emergency restart system of the present invention.
Detailed Description
In order to facilitate an understanding of the invention, reference will now be made in detail to the present embodiments of the invention, examples of which are illustrated in the accompanying drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The USB socket for emergency power supply is arranged on the outer side of the intelligent lock. Therefore, the invention provides a method for realizing the power-off restart function through a USB interface. When the crash occurs, the power-off restarting function can be realized only by inserting the USB standby power supply into the USB interface of the intelligent lock, and the crash problem is solved. As shown in fig. 1, an embodiment of the USB emergency restart method for an intelligent lock of the present invention is that the method includes: judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step; judging whether the main circuit is powered off, if so, carrying out the next step; stopping power supply and discharging until the intelligent lock control circuit is completely powered off; and a standby USB circuit is adopted for supplying power. By adopting the scheme, the standby USB circuit can be used for supplying power without adopting an outdoor restart button, and the intelligent lock control circuit can be really restarted without residue by discharging to be completely powered off, so that various problems of intelligent lock dead halt caused by incomplete power failure are eliminated, the hidden danger of residual dead halt caused by incomplete power failure is overcome, the restorable restart effect is really realized, and the intelligent lock can be applied to intelligent locks of various power supply modes; and the spare USB circuit supplies power, so that the spare USB circuit has the advantage of easy implementation and basically does not need additional hardware.
The intelligent lock is halted, which is an important technical problem to be solved by the invention, preferably, whether the intelligent lock is in a halted state is judged, and if yes, the next step is carried out; the crash state is usually an electrified state and occurs suddenly or gradually during normal work, and in the crash state, the intelligent lock lacks feedback or overtime feedback for an input instruction or a control instruction, so that better, whether the intelligent lock is in the crash state can be judged by obtaining feedback information or sending a heartbeat signal and the like.
When the intelligent lock is determined to be halted, whether continuous power supply exists or not needs to be judged, preferably, whether the main circuit is powered off or not is judged, and if yes, the next step is carried out; preferably, whether the main circuit is powered off is judged, if so, the next step is carried out, otherwise, the main circuit is powered off, and then the next step is carried out. If the main circuit supplies power continuously, the intelligent lock control circuit cannot be completely powered off, so that the restarting is incomplete, and the hidden trouble of the halt remains, so that the main circuit needs to be powered off to carry out the next step. The main circuit is a normal power supply circuit, and is distinguished from a standby USB circuit in the following step, preferably, the main circuit is a battery power supply circuit or a main line power supply circuit, a power supply of the battery power supply circuit is a built-in battery of the intelligent lock, and a power supply of the main line power supply circuit is household commercial power. Whether the main circuit is powered off or not can be conveniently judged by detecting the voltage or the current. Therefore, a thorough restarting effect can be realized, and the hidden danger of residual crash is avoided.
Preferably, before determining whether the main circuit is powered off, the intelligent lock USB emergency restart method further includes: performing soft start on the mobile terminal through APP interaction; and judging whether the intelligent lock is still in a dead halt state, if so, carrying out the next step, otherwise, stopping, and not carrying out other steps. For example, an intelligent lock USB emergency restart method includes: judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step; performing soft start on the mobile terminal through APP interaction; judging whether the intelligent lock is still in a dead halt state, if so, carrying out the next step, otherwise, stopping, and not carrying out other steps; judging whether the main circuit is powered off, if so, carrying out the next step; stopping power supply and discharging until the intelligent lock control circuit is completely powered off; and a standby USB circuit is adopted for supplying power. Other embodiments are analogized and will not be described in detail below.
When the main circuit determines that the power is cut off, such as the switch is cut off, preferably, the power supply is stopped and the intelligent lock control circuit is discharged until the intelligent lock control circuit is completely powered off; preferably, the power supply is stopped in a physical breaking manner; preferably, a relay or a triode is used as an electric control switch to stop power supply in a physical breaking mode. The intelligent lock control circuit is powered off, namely the main circuit is kept in a power-off state, so that the intelligent lock control circuit cannot be powered on until the intelligent lock control circuit is completely powered off.
Preferably, the delay circuit is adopted to control the power supply to stop and control the discharging to the complete power loss of the intelligent lock control circuit. Preferably, stopping power supply and discharging to complete power loss of the intelligent lock control circuit comprises: and a voltage conversion circuit is adopted to stop supplying power to the intelligent lock control circuit, and a discharge circuit is adopted to discharge the intelligent lock control circuit until the intelligent lock control circuit is completely power off. Preferably, the voltage conversion circuit is controlled by the delay circuit to stop supplying power to the intelligent lock control circuit and control the discharge circuit to discharge power to the intelligent lock control circuit until the intelligent lock control circuit is completely power-off. Preferably, the delay circuit includes a MOS transistor, that is, the delay circuit is implemented by using a MOS transistor. Therefore, simple and effective delay control can be realized, a control circuit can be simplified, and hardware cost is saved.
Preferably, the standby USB circuit is used to supply power, and includes: selecting a standby USB circuit to supply power by adopting a power supply switching circuit; preferably, power up is performed on the intelligent lock control circuit, and the method comprises the following steps: selecting a main circuit by adopting a power supply switching circuit to electrify the intelligent lock control circuit; or after the intelligent lock control circuit is powered on, the intelligent lock USB emergency restarting method further comprises the following steps: and selecting a main circuit by adopting the power supply switching circuit to supply power to the intelligent lock control circuit, and stopping selecting a standby USB circuit to supply power. Preferably, the main circuit and the standby USB circuit supply power to the intelligent lock control circuit through the voltage conversion circuit respectively. Preferably, the power switching circuit includes two diodes, which are a diode D1 and a diode D2, respectively, the main circuit or the main circuit connection end is connected to the anode of a diode D1, and the cathode of the diode D1 is connected to the voltage conversion circuit; the connection end of the spare USB circuit or the spare USB circuit is connected with the anode of a diode D2, and the cathode of the diode D2 is connected with the voltage conversion circuit. Preferably, stopping the supply of power includes: the voltage conversion circuit stops the main circuit and the standby USB circuit from supplying power to the intelligent lock control circuit; preferably, the supplying power using the spare USB circuit includes: the voltage conversion circuit adopts a spare USB circuit to supply power to the intelligent lock control circuit. Preferably, the voltage conversion circuit comprises a linear voltage regulator integrated circuit U1 and four filter capacitors, wherein the four filter capacitors comprise a filter capacitor C2, a filter capacitor C3, a filter capacitor C4 and a filter capacitor C5; the filter capacitor C2 and the filter capacitor C3 are connected in parallel, one end of the filter capacitor C2 is respectively connected with the input end of the linear voltage regulator integrated circuit U1 and the cathodes of the two diodes, namely the cathode of the diode D1 and the cathode of the diode D2, and the other end of the filter capacitor C3 is grounded and connected with the ground end of the linear voltage regulator integrated circuit U1; and the filter capacitor C4 and the filter capacitor C5 are connected in parallel, one end of the filter capacitor C4 and one end of the filter capacitor C5 are respectively connected with the output end of the linear voltage regulator integrated circuit U1 and the input end of the intelligent lock control circuit, and the other end of the filter capacitor C5 is grounded. The enabling end of the linear voltage regulator integrated circuit U1 is connected with the delay circuit to be used as the stopping end of the voltage conversion circuit; when the delay circuit comprises a MOS transistor, the enable terminal of the linear regulator integrated circuit U1 is connected to the drain of the MOS transistor, such as an NMOS transistor. Preferably, the linear voltage regulator integrated circuit U1 is a SOT23-5 package; preferably, the linear regulator integrated circuit U1 is model number QX6219 or CX 9058. The linear voltage stabilizer integrated circuit is a mature existing product, has reliable quality, long effective service life and low price.
Preferably, the discharge circuit comprises a diode D4 and a resistor R4 connected in series, one end of the resistor R4 is connected to the output end of the linear regulator integrated circuit U1, the other end is connected to the anode of the diode D4, and the cathode of the diode D4 is connected to the delay circuit to serve as the enable end of the discharge circuit; when the delay circuit comprises a MOS transistor, the cathode of the diode D4 is connected to the drain of the MOS transistor, for example, an NMOS transistor. Therefore, simple and effective discharge control can be realized, a control circuit can be simplified, and hardware cost is saved.
Preferably, the delay circuit comprises three resistors, a capacitor C1 and an NMOS transistor, wherein the three resistors comprise a resistor R1, a resistor R2 and a resistor R3; the resistor R1 and the resistor R2 are connected in series and then are integrally connected with the capacitor C1 in parallel to form a parallel structure, one end of the parallel structure is connected with a spare USB circuit or a spare USB circuit connecting end, and the other end of the parallel structure is connected with a gate pole of an NMOS tube; the connecting section of the resistor R1 and the resistor R2 is grounded, and the source electrode of the NMOS tube is grounded; the drain of the NMOS transistor is connected to the enable terminal of the linear regulator integrated circuit U1 to serve as the stop terminal of the linear regulator integrated circuit U1, and the drain of the NMOS transistor is further connected to the enable terminal of the discharge circuit, for example, the negative electrode of the diode D4 of the discharge circuit, and is further connected to the input terminal of the linear regulator integrated circuit U1 through the resistor R3.
In order to ensure that the emergency restart after the complete power failure can be successfully performed, it is preferable that the standby USB circuit is used for supplying power, that is, after the intelligent lock control circuit is completely discharged, the standby USB circuit is used for supplying power. Preferably, the standby USB circuit is an external circuit and an external power supply thereof, and the external power supply comprises a mobile phone battery and a mobile power supply. Therefore, the mobile phone charger has the advantage of being easy to realize, basically, hardware does not need to be additionally arranged, and the operation of a user is facilitated as long as the mobile phone or the charger is connected. From the perspective of safety, it is better that the intelligence lock does not set up the outside end of connecting electricity of door, and the intelligence lock just sets up the inside end of connecting electricity of door promptly, in case cracking, reinforcing security performance, in this embodiment, the intelligence lock is equipped with wireless power supply line, adopts reserve USB circuit to supply power with wireless charging mode. The anti-cracking performance of the intelligent lock is improved to a great extent, and the offensive defect is hardly left outside the door; however, power supply hardware needs to be improved, the existing mobile phone battery and the mobile power supply cannot be directly used, the standby USB circuit can be powered only by the wireless charging function, flexible selection is performed according to actual needs of users, and flexibility of final products is improved.
Preferably, before the standby USB circuit is used to supply power or before the standby USB circuit stops supplying power and discharges power, the method for restarting the intelligent lock USB in emergency further includes the steps of: and accessing the standby USB circuit. Therefore, a standby USB circuit can be adopted outside the door for power supply, and particularly, the reverse power supply function of a plurality of mobile phones at present is utilized, so that the power supply is easy to realize.
In order to ensure that power cannot be directly transmitted after the standby USB circuit is connected, preferably, after the standby USB circuit is used for supplying power, the intelligent lock USB emergency restart method further includes: and powering on the intelligent lock control circuit. Thereby achieving a complete restart. For example, an intelligent lock USB emergency restart method includes: judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step; judging whether the main circuit is powered off, if so, carrying out the next step; stopping power supply and discharging until the intelligent lock control circuit is completely powered off; a standby USB circuit is adopted for supplying power; and powering on the intelligent lock control circuit. For example, an intelligent lock USB emergency restart method includes: judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step; performing soft start on the mobile terminal through APP interaction; judging whether the intelligent lock is still in a dead halt state, if so, carrying out the next step, otherwise, stopping, and not carrying out other steps; judging whether the main circuit is powered off, if so, carrying out the next step; stopping power supply and discharging until the intelligent lock control circuit is completely powered off; a standby USB circuit is adopted for supplying power; and powering on the intelligent lock control circuit. Other embodiments may be analogized and will not be described in detail below. That is, after the standby USB circuit is used to supply power, an additional power-on operation is performed, for example, the mobile phone software controls the power-on switch, so as to ensure that the power supply using the standby USB circuit is completely controlled.
In order to avoid controlling the restart of the intelligent lock by illegal intrusion, preferably, before the intelligent lock control circuit is powered on, the intelligent lock USB emergency restart method further includes: and carrying out power-on authority authentication. Preferably, the power-on authority authentication is performed on the mobile terminal. Preferably, the power-on authority authentication is performed on the mobile terminal through APP interaction. Preferably, the mobile terminal interacts with the management terminal through the APP to perform power-on authority authentication; when the management terminal passes the authentication, the key is sent to the mobile terminal; and the mobile terminal powers on the intelligent lock control circuit according to the key.
Preferably, an intelligent lock USB emergency restart system includes: the intelligent lock control circuit comprises a main circuit connecting end, a spare USB circuit connecting end, a power supply switching circuit, a voltage conversion circuit, a discharge circuit and an intelligent lock control circuit; the power supply switching circuit is respectively connected with the main circuit connecting end and the standby USB circuit connecting end; the discharge circuit is respectively connected with the standby USB circuit connecting end and the intelligent lock control circuit; the voltage conversion circuit is respectively connected with the power supply switching circuit, the standby USB circuit connecting end and the intelligent lock control circuit. Preferably, the intelligent lock USB emergency restart system is realized by adopting the intelligent lock USB emergency restart method according to any embodiment of the invention; that is to say, the intelligent lock USB emergency restart system is provided with a plurality of functional modules, and each functional module is used for correspondingly executing corresponding steps of the intelligent lock USB emergency restart method according to any one embodiment. The intelligent lock USB emergency restarting system can adopt the standby USB circuit for power supply without adopting an outdoor restarting button, and can really realize residue-free restarting by discharging to the complete power failure of the intelligent lock control circuit, thereby eliminating various problems causing the intelligent lock to be halted, overcoming the hidden danger of residual halt caused by incomplete power failure, really realizing the restorable restarting effect, and being applied to intelligent locks with various power supply modes; and the spare USB circuit supplies power, so that the spare USB circuit has the advantage of easy implementation, and basically no additional hardware is required.
As shown in fig. 2, an embodiment of the USB emergency restart system of the smart lock according to the present invention is that the main circuit connection end is used for accessing a battery, the backup USB circuit connection end is used for accessing a USB power supply, the power switching circuit is respectively connected to the main circuit connection end and the backup USB circuit connection end, that is, the power switching circuit respectively receives a battery input and a USB power input, the power switching circuit is used for switching the battery and the USB power supply, and selects a proper power supply as a power supply voltage to output to the voltage conversion circuit. The power supply switching circuit can be used for selecting a power supply with high voltage to supply power, or can also be used for selecting a USB power supply when the USB power supply is electrified and selecting a battery when the USB power supply is not electrified; that is, the power switching circuit is used for selecting one of the main circuit connection end and the spare USB circuit connection end with higher voltage as the power supply voltage of the voltage conversion circuit; alternatively, the power supply switching circuit is configured to select the spare USB circuit connection terminal when the spare USB circuit connection terminal is powered, and to select the main circuit connection terminal when the spare USB circuit connection terminal is not powered. Preferably, the voltage conversion circuit converts and stabilizes the supply voltage to the operating voltage required by the intelligent lock control circuit, which is generally 3.3V. Preferably, the voltage conversion circuit has a stop terminal, and the output of the operating voltage is stopped when the stop terminal gives a signal. Preferably, the intelligent lock USB emergency restart system further comprises a delay circuit, the discharge circuit is connected with the connecting end of the standby USB circuit through the delay circuit, and the delay circuit is further connected with the voltage conversion circuit; namely, the time delay circuit is respectively connected with the standby USB circuit connecting end, the discharging circuit and the voltage conversion circuit. Preferably, the delay circuit is connected to the enable terminal of the discharge circuit and the stop terminal of the voltage conversion circuit, respectively, and the delay circuit is configured to control the voltage conversion circuit to stop and operate after a delay, and control the discharge circuit to operate and close after a delay. The intelligent lock control circuit is used for realizing all functions of the intelligent lock. The discharge circuit is used for discharging the working voltage.
Preferably, the voltage conversion circuit and the intelligent lock control circuit are both provided with filter capacitors, the capacitance value of the filter capacitors is usually selected to be large so that the intelligent lock can normally work, the current of the intelligent lock which normally works is small, and therefore after the voltage conversion circuit stops working, discharging of the intelligent lock control circuit only needs dozens of seconds to finish discharging, and therefore discharging circuit is necessary to be added to accelerate discharging compared with the prior art. The discharging circuit is provided with an enabling end, the discharging circuit works after the delay circuit gives a signal to the enabling end, the voltage on the filter capacitor can be released to be close to zero within dozens of milliseconds, and the intelligent lock control circuit stops working; after the delay circuit gives a signal to the stop end of the voltage conversion circuit, the voltage conversion circuit stops working for a period of time, namely, the power supply is stopped until the intelligent lock control circuit is completely powered off.
The intelligent lock USB emergency restarting method and the intelligent lock USB emergency restarting system have the following specific working principle descriptions: when the battery is used for supplying power and the USB does not supply power, the power supply switching circuit selects the battery as power supply voltage, and the delay circuit does not work. The enabling end of the discharging circuit has no signal, and the discharging circuit does not work. The voltage conversion circuit stops no signal at the end, and the voltage conversion circuit works. The working voltage is normal, and the intelligent lock control circuit works normally. When the intelligent lock has a crash fault. The user supplies power to the USB, and the power supply switching circuit selects a proper power supply. The delay circuit firstly sends signals to the stop end of the voltage conversion circuit and the enable end of the discharge circuit when the USB supplies power, and stops sending signals after a period of time; for example, the signal transmission is stopped after about 200 milliseconds to about 1 second. And in the period of time, the voltage conversion circuit stops working, the discharge circuit works, the final working voltage is reduced to be close to zero, and the intelligent lock control circuit stops working. When the time delay circuit stops sending signals, the discharging circuit stops working, the voltage conversion circuit starts working, the working voltage becomes normal, and the intelligent lock control circuit restarts working. Therefore, when the USB supplies power, the intelligent lock is powered off for a period of time and then restarted, and the problem of crash is solved.
As shown in fig. 3, an embodiment of the USB emergency restart system of the smart lock of the present invention includes: the intelligent lock control circuit comprises a main circuit connecting end VBAT, a spare USB circuit connecting end USB _5V, a power supply switching circuit 110, a voltage conversion circuit 120, a delay circuit 130, a discharge circuit 140 and an intelligent lock control circuit, wherein only an input end V3.3 of the intelligent lock control circuit is marked in the figure; that is, VBAT represents a battery power source or a connection terminal thereof, USB _5V represents a USB power source or a connection terminal thereof, and V3.3 represents a 3.3V voltage output to the smart lock control circuit. The power switching circuit 110 is implemented by two diodes, which are a diode D1 and a diode D2, respectively, a main circuit connection end VBAT is connected to the anode of the diode D1, a standby USB circuit connection end USB _5V is connected to the anode of the diode D2, the cathode of the diode D1 and the cathode of the diode D2 are connected to the input end VIN of the linear regulator integrated circuit U1, and which circuit voltage is high in the battery and the USB power source is selected as the power supply of the voltage conversion circuit or the linear regulator integrated circuit U1 thereof. The delay circuit 130 is realized by an NMOS tube D1, a resistor R1, a resistor R2, a resistor R3 and a capacitor C1; the resistor R1 and the resistor R2 are connected in series and are grounded at the middle section of the series connection; the resistor R1 and the resistor R2 are connected in series and then are connected in parallel with the capacitor C1 to form a parallel structure, one end of the parallel structure is connected with the spare USB circuit connection end USB _5V, and the other end of the parallel structure is connected with a gate pole (G pin) of the NMOS tube D1. The source (S-pin) of the NMOS transistor D1 is grounded, and may be commonly grounded with the resistor R1 and the resistor R2. When the USB power supply is not supplying power, the NMOS transistor D1 is not turned on, and the drain (pin D) of the NMOS transistor D1 outputs a high level. When the USB power supply, namely the spare USB circuit connection terminal USB _5V, supplies power, the capacitor C1 starts to charge, and the voltage on the capacitor C1 gradually increases from 0. The NMOS tube D1 is conducted, the drain electrode outputs low level, and the linear voltage regulator integrated circuit U1 stops working; after a period of time, the voltage on the capacitor C1 is high enough, the NMOS tube D1 is closed, the drain electrode outputs high level, and the linear voltage regulator integrated circuit U1 recovers to work. R1 is the discharge resistance, and when the USB did not supply power, the electric charge on electric capacity C1 discharged through resistance R1, resistance R2, guaranteed that time delay circuit can normally work next time.
The voltage conversion circuit 120 is composed of a linear voltage regulator integrated circuit U1, a filter capacitor C2, a filter capacitor C3, a filter capacitor C4 and a filter capacitor C5. The filter capacitor C2 and the filter capacitor C3 are connected in parallel, one end of the filter capacitor C2 is respectively connected with the input end VIN of the linear voltage regulator integrated circuit U1, the cathode of the diode D1 and the cathode of the diode D2, and the other end of the filter capacitor C8932 is grounded and is connected with the ground terminal VSS of the linear voltage regulator integrated circuit U1; CE is the enabling end of the linear voltage regulator integrated circuit U1 and is connected with the drain electrode of the NMOS tube D1, the linear voltage regulator integrated circuit U1 works when CE is high level, the output end VOUT of the linear voltage regulator integrated circuit U1 outputs 3.3V voltage, the linear voltage regulator integrated circuit U1 does not work when CE is low level, the output end VOUT of the linear voltage regulator integrated circuit U1 stops outputting, and therefore the output end VOUT serves as the stopping end of the voltage conversion circuit to achieve power supply stopping during discharging. The filter capacitor C4 and the filter capacitor C5 are connected in parallel, one end of the filter capacitor C4 is connected with the output end VOUT of the linear voltage regulator integrated circuit U1 and the input end V3.3 of the intelligent lock control circuit respectively, and the other end of the filter capacitor C5 is grounded. NC is an undefined function end of the linear voltage regulator integrated circuit U1 and is vacant.
The discharge circuit 140 is composed of a diode D4 and a current limiting resistor R4. One end of the resistor R4 is connected with the output end VOUT of the linear voltage regulator integrated circuit U1, the other end is connected with the anode of the diode D4, and the cathode of the diode D4 is connected with the drain of the diode NMOS tube D1 of the delay circuit 130; the diode D4 does not discharge when the drain of the NMOS transistor D1 is high, and discharges through the NMOS transistor D1 when the drain of the NMOS transistor D1 is low.
The working principle needs to be explained as follows: when the USB is not supplying power, the power switching circuit 110 selects the battery to supply power, i.e., obtains power from the main circuit connection terminal VBAT. The drain electrode of the NMOS tube D1 outputs high level, the linear voltage regulator integrated circuit U1 works and outputs 3.3V, and power is supplied to the intelligent lock control circuit.
When the USB is powered, the power switching circuit 110 selects the power with the higher voltage to supply power, that is, obtains power from the USB standby circuit connection terminal USB _ 5V. The drain of the NMOS transistor D1 outputs a low level first, and outputs a high level after a delay. Therefore, the linear regulator integrated circuit U1 stops working first, the discharge circuit 140 works, and after a time delay, the linear regulator integrated circuit U1 starts working, and the discharge circuit 140 stops working. The output 3.3V will first drop to close to 0 and then return to normal after a while. Therefore, the intelligent lock control circuit can be powered off firstly until the intelligent lock control circuit is completely powered off and then restarted, and can be restarted without residue, so that various problems of intelligent lock crash caused by power failure are eliminated, the hidden danger of residual crash caused by incomplete power failure is overcome, and the restorable restarting effect is really realized.
Further, the embodiment of the invention further comprises an intelligent lock USB emergency restarting method and system formed by mutually combining the technical characteristics of the above embodiments.
The technical features mentioned above are combined with each other to form various embodiments which are not listed above, and all of them are regarded as the scope of the present invention described in the specification; also, modifications and variations may be suggested to those skilled in the art in light of the above teachings, and it is intended to cover all such modifications and variations as fall within the true spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. An intelligent lock USB emergency restart method is characterized by comprising the following steps:
judging whether the intelligent lock is in a dead halt state, if so, carrying out the next step;
judging whether the main circuit is powered off, if so, carrying out the next step;
stopping power supply and discharging until the intelligent lock control circuit is completely power-off;
and a standby USB circuit is adopted for supplying power.
2. The intelligent lock USB emergency restart method according to claim 1, wherein the main circuit is a battery power supply circuit or a main line power supply circuit, a power supply of the battery power supply circuit is a built-in battery of the intelligent lock, and a power supply of the main line power supply circuit is household commercial power.
3. The intelligent lock USB emergency restart method according to claim 2, wherein the standby USB circuit is an external circuit and an external power supply thereof, and the external power supply comprises a mobile phone battery and a mobile power supply.
4. The intelligent lock USB emergency restart method of claim 2, wherein before the standby USB circuit is used for supplying power or before the standby USB circuit stops supplying power and discharges power, the method further comprises the following steps: and accessing the standby USB circuit.
5. The intelligent lock USB emergency restarting method according to claim 1, wherein before judging whether the main circuit is powered off, the method further comprises the steps of:
performing soft start on the mobile terminal through APP interaction;
and judging whether the intelligent lock is still in a dead halt state, if so, carrying out the next step, otherwise, stopping, and not carrying out other steps.
6. The intelligent lock USB emergency restart method according to any one of claims 1 to 5, further comprising, after the standby USB circuit is used for supplying power: and powering on the intelligent lock control circuit.
7. The intelligent lock USB emergency restart method according to claim 6, wherein before powering on the intelligent lock control circuit, the method further comprises: and carrying out power-on authority authentication.
8. The USB emergency restart method of claim 7, wherein the power-on right authentication is performed on the mobile terminal.
9. The USB emergency restart method of claim 8, wherein the power-on permission authentication is performed on the mobile terminal through APP interaction.
10. The utility model provides an emergent restart system of intelligence lock USB which characterized in that includes: the intelligent lock control circuit comprises a main circuit connecting end, a spare USB circuit connecting end, a power supply switching circuit, a voltage conversion circuit, a discharge circuit and an intelligent lock control circuit;
the power supply switching circuit is respectively connected with the main circuit connecting end and the standby USB circuit connecting end;
the discharge circuit is respectively connected with the standby USB circuit connecting end and the intelligent lock control circuit;
the voltage conversion circuit is respectively connected with the power supply switching circuit, the standby USB circuit connecting end and the intelligent lock control circuit.
CN202011101330.1A 2021-01-12 2021-01-12 Intelligent lock USB emergency restarting method and system Pending CN114759655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011101330.1A CN114759655A (en) 2021-01-12 2021-01-12 Intelligent lock USB emergency restarting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011101330.1A CN114759655A (en) 2021-01-12 2021-01-12 Intelligent lock USB emergency restarting method and system

Publications (1)

Publication Number Publication Date
CN114759655A true CN114759655A (en) 2022-07-15

Family

ID=82324321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011101330.1A Pending CN114759655A (en) 2021-01-12 2021-01-12 Intelligent lock USB emergency restarting method and system

Country Status (1)

Country Link
CN (1) CN114759655A (en)

Similar Documents

Publication Publication Date Title
CN108092361A (en) The battery protecting circuit of low standby power loss and car emergency startup power supply
CN110350624B (en) Intelligent battery overdischarge failure protection device and method
CN116707118A (en) Power failure detection and power failure holding function circuit and electronic equipment
CN113708467B (en) Electrifying circuit, battery backup unit and storage server system
CN108307563A (en) Integral LED driving with emergent self-checking function and its self checking method
CN112564268B (en) Internet of things tracker terminal equipment
CN102495558B (en) System and method for remotely controlling turn-on or turn-off of electric equipment by using radio frequency communication
CN114759655A (en) Intelligent lock USB emergency restarting method and system
CN108683248A (en) Power source switching circuit and switching method, power supply unit
US20230318327A1 (en) Stylus
CN102270877A (en) Power supply system
CN205051670U (en) Fall electricity from opening control circuit
CN110764398B (en) Intelligent watch and mode switching method thereof
WO2024000967A1 (en) Anti-reverse hot standby circuit and anti-reverse connection method for low-power consumption smart lock and smart device
CN115498731A (en) BMS state switching system
CN203909524U (en) Electrical appliance standby startup device, television and computer power supply
CN116505479A (en) Under-voltage protection method, energy storage equipment and photovoltaic system
CN105634088A (en) Long-distance remote-controlled patch board capable of supplying uninterruptible electric energy
CN213959800U (en) Battery management execution device of low-voltage energy storage system
CN205595560U (en) Constantly electrical drainage inserts
CN111669158B (en) Portable multifunctional switch circuit
CN112233287B (en) Automatic unlocking method of intelligent lock and intelligent lock system
CN108304059A (en) A kind of computer abnormal power-down auto shutdown system and method
CN214850535U (en) Charging circuit and wearable device
CN117615439A (en) Low-power consumption wireless communication module for power distribution terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination