A software-upgradable USB smart lock
By using the USB port for software upgrade of smart locks, the existing smart lock upgrade process is solved, and a more convenient and safe upgrade process is achieved.
Patent Information
- Application Number
- CN202010827692.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-17
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2040-08-17
AI Technical Summary
The software upgrade process of existing smart locks is cumbersome, the success rate of remote upgrade is low, and the USB port is only used for emergency power supply, so it cannot take on the software upgrade task.
Design a software-upgradable USB smart lock, which is used as an upgrade port for power supply and data transmission through the USB port, and connects it to the control module using the SWDIO, NRST, and SWCLK terminals of the USB interface for data conduction, and the VCC terminal and GND terminal are used for data transmission. Normal power supply or charging.
It has simplified the software upgrade process of smart locks, improved the upgrade success rate, avoided manpower and material resources, and provided double-layer protection for excessive USB current input and software input, ensuring safe and reliable use.
Smart Images

Figure CN111862418B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a smart lock, and in particular to a software-upgradable USB smart lock. Background Art
[0002] At present, the software upgrade of fingerprint locks on the market generally adopts the cumbersome disassembly of the lock and then sends it back to the manufacturer for upgrading, or technicians come to disassemble and upgrade, or remote upgrade, but the success rate of remote upgrade is only 70%, which causes great loss of manpower and material resources for production and after-sales personnel. At present, the USB port of smart locks on the market is limited to emergency power supply. Although it has the characteristics of normal use, it cannot be used for software upgrade. Summary of the invention
[0003] In view of the above technical problems, the present invention discloses a software-upgradeable USB smart lock, which can use the USB port as a power supply and data transmission software upgrade port, making it more convenient to use.
[0004] To this end, the technical solution of the present invention is:
[0005] A software-upgradable USB smart lock, comprising a lock front plate and a lock base, wherein a space for accommodating a lock, a clutch motor, a battery, and a control board is formed between the lock front plate and the lock base, wherein the control board is provided with a control module and a motor control module, wherein the control module is electrically connected to the motor control module, and the motor control module is electrically connected to the clutch motor;
[0006] The lock front plate is provided with a USB interface, and the USB interface includes a VCC terminal, a GND terminal, a SWDIO terminal, a NRST terminal, and a SWCLK terminal. The VCC terminal is electrically connected to the battery through a control module, the SWDIO terminal, the NRST terminal, and the SWCLK terminal are electrically connected to the control module, and the GND terminal is grounded.
[0007] With this technical solution, the SWDIO, NRST and SWCLK terminals of the USB interface are connected to the control module for data transmission, and the VCC and GND terminals are used for normal power supply or charging.
[0008] As a further improvement of the present invention, the control module includes a main control chip U1 and a sub-control chip U2, the SWDIO end of the USB interface is electrically connected to the PA13-SWDIO end of the main control chip U1, the SWCLK end of the USB interface is electrically connected to the PA14-SWCLK end of the main control chip U1; the NRST end of the USB interface is electrically connected to the NRST end of the main control chip U1.
[0009] As a further improvement of the present invention, the VCC terminal of the USB interface is connected to the VDD terminal of the main control chip U1; the GND terminal of the USB interface is connected to the VSS terminal of the main control chip U1.
[0010] As a further improvement of the present invention, the PB11-I2C2 SDA terminal of the main control chip U1 is connected to the OSC_IN / PFO terminal of the sub-control chip U2 through encrypted data, and the PB10-12C2_SCL terminal of the main control chip U1 is connected to the OSC_OUT / PF1 terminal of the sub-control chip U2 through encrypted data. The method of encrypting data is a method of the prior art.
[0011] As a further improvement of the present invention, the motor control module includes a motor control chip U3B, the PA4 end of the sub-control chip U2 is connected to the BIN1 end of the motor control chip U3B, the PA3 end of the sub-control chip U2 is connected to the BIN2 end of the motor control chip U3B, and the BOUNT1 end and BOUNT2 end of the motor control chip U3B are respectively connected to the two ends of the motor.
[0012] As a further improvement of the present invention, the VCC end is connected to one end of the resettable fuse R1, the other end of the resettable fuse R1 is connected to one end of the TVS tube D1 and the VCC end of the main control chip U1, and the other end of the TVS tube D1 is grounded.
[0013] As a further improvement of the present invention, the model of the resettable fuse R1 is ASMD0805-075, and the model of the TVS tube is BTRSF12C201.
[0014] Compared with the prior art, the present invention has the following beneficial effects:
[0015] By adopting the technical solution of the present invention, a USB port is provided on the front panel of the lock, and the USB pin number is ≥ 2 pins, 2 pins are used for normal power supply, and the other 3 pins are used for data transmission. Not only the USB port is cleverly used as an upgrade port, but also excessive USB current input and software input are protected, and double-layer protection is provided to avoid malicious human damage, making it safer and more reliable to use. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a structural schematic diagram of a software-upgradeable USB smart lock of the present invention.
[0017] Figure 2 The present invention discloses a circuit diagram of a control board of a software-upgradable USB smart lock.
[0018] Reference numerals include:
[0019] 1-lock the front panel, 2-lock the base, 3-USB port. DETAILED DESCRIPTION
[0020] The preferred embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0021] like Figure 1 As shown, a software-upgradeable USB smart lock includes a lock front plate 1 and a lock base 2, wherein a space for accommodating a lock, a clutch motor, a battery, and a control board is formed between the lock front plate 1 and the lock base 2, wherein the control board is provided with a control module and a motor control module, wherein the control module is electrically connected to the motor control module, wherein the motor control module is electrically connected to the clutch motor, and wherein the lock front plate is provided with a USB interface 3.
[0022] like Figure 2 As shown, the USB interface 3 includes a VCC terminal, a GND terminal, a SWDIO terminal, a NRST terminal, and a SWCLK terminal. The VCC terminal is electrically connected to the battery through the control module, and the SWDIO terminal, the NRST terminal, and the SWCLK terminal are electrically connected to the control module. The VCC terminal is connected to one end of the resettable fuse R1, and the other end of the resettable fuse R1 is connected to one end of the TVS tube D1 and the VCC terminal of the main control chip U1, and the other end of the TVS tube D1 is grounded.
[0023] The control module includes a main control chip U1 and a sub-control chip U2. The SWDIO end of the USB interface is electrically connected to the PA13-SWDIO end of the main control chip, the SWCLK end of the USB interface is electrically connected to the PA14-SWCLK end of the main control chip U1; the NRST end of the USB interface is electrically connected to the NRST end of the main control chip U1. The VCC end of the USB interface is connected to the VDD end of the main control chip U1; the GND end of the USB interface is connected to the VSS end of the main control chip U1.
[0024] The PB11-I2C2 SDA terminal of the main control chip U1 is connected to the OSC_IN / PFO terminal of the sub-control chip U2 through encrypted data, and the PB10-12C2_SCL terminal of the main control chip U1 is connected to the OSC_OUT / PF1 terminal of the sub-control chip U2 through encrypted data.
[0025] The motor control module includes a motor control chip U3B, the PA4 end of the sub-control chip U2 is connected to the BIN1 end of the motor control chip U3B, and the PA3 end of the sub-control chip U2 is connected to the BIN2 end of the motor control chip U3B to control the level signal of the clutch motor rotation; the BOUNT1 end and BOUNT2 end of the motor control chip U3B are respectively connected to the two ends of the motor.
[0026] Among them, the model of the main control chip U1 is STM32L151RCT6, the model of the sub-control chip U2 is: GD32E230F8P6, the model of the motor control chip U3B is: DRV8833RTYR, the model of the self-resettable fuse R1 is ASMD0805-075, and the model of the TVS tube is BTRSF12C201.
[0027] With this technical solution, the SWDIO, NRST, and SWCLK terminals of the USB interface are connected to the control module for data transmission, and the VCC and GND terminals are used for normal power supply or charging. With this USB interface, emergency power supply can be burned outside the door, and software can be burned. R1 is a recoverable fuse that can limit the current input to 0.75A. D1 is a high-power TVS tube with a fixed voltage of 6V. When the input voltage is greater than 6.5V, a voltage clamp will be formed, which is equivalent to a short circuit with the ground, thereby disconnecting the recoverable fuse R1 and playing a protective role. The main control chip and the auxiliary control chip exchange instructions through encrypted data.
[0028] The specific implementation modes described above are preferred implementation modes of the present invention, and are not intended to limit the specific implementation scope of the present invention. The scope of the present invention includes but is not limited to the specific implementation modes. All equivalent changes made in accordance with the shape and structure of the present invention are within the protection scope of the present invention.
Claims
1. A software-upgradable USB smart lock, characterized by: It includes a lock front plate and a lock base, wherein a space for accommodating a lock, a clutch motor, a battery, and a control panel is formed between the lock front plate and the lock base, wherein the control panel is provided with a control module and a motor control module, wherein the control module is electrically connected to the motor control module, and the motor control module is electrically connected to the clutch motor; The lock front panel is provided with a USB interface, and the USB interface includes a VCC terminal, a GND terminal, a SWDIO terminal, a NRST terminal, and a SWCLK terminal. The VCC terminal is electrically connected to the battery through the control module, the SWDIO terminal, the NRST terminal, and the SWCLK terminal are electrically connected to the control module, and the GND terminal is grounded; The control module includes a main control chip U1 and a sub-control chip U2. The SWDIO end of the USB interface is electrically connected to the PA13-SWDIO end of the main control chip U1, and the SWCLK end of the USB interface is electrically connected to the PA14-SWCLK end of the main control chip U1; the NRST end of the USB interface is electrically connected to the NRST end of the main control chip U1; the VCC end is connected to one end of the resettable fuse R1, and the other end of the resettable fuse R1 is connected to one end of the TVS tube D1 and the VCC end of the main control chip U1, and the other end of the TVS tube D1 is grounded; The VCC end of the USB interface is connected to the VDD end of the main control chip U1; the GND end of the USB interface is connected to the VSS end of the main control chip U1; The PB11-I2C2 SDA terminal of the main control chip U1 is connected to the OSC_IN / PFO terminal of the sub-control chip U2 through encrypted data, and the PB10-12C2_SCL terminal of the main control chip U1 is connected to the OSC_OUT / PF1 terminal of the sub-control chip U2 through encrypted data.
2. The software-upgradable USB smart lock according to claim 1, characterized in that: The motor control module includes a motor control chip U3B, the PA4 end of the sub-control chip U2 is connected to the BIN1 end of the motor control chip U3B, the PA3 end of the sub-control chip U2 is connected to the BIN2 end of the motor control chip U3B, and the BOUNT1 end and BOUNT2 end of the motor control chip U3B are respectively connected to the two ends of the motor.
3. The software-upgradable USB smart lock according to claim 2, characterized in that: The model of the resettable fuse R1 is ASMD0805-075, and the model of the TVS tube is BTRSF12C201.
Citation Information
Patent Citations
Control system of intelligent lock cylinder
CN110097667A
Novel electron fingerprint intelligence lock core
CN205046987U
USB interface circuit and electronic equipment
CN209433399U
USB intelligent lock capable of being upgraded by software
CN212391827U