Control circuit and intelligent lock

By using control lines and data transmission line groups in the control circuit of the smart lock to realize data signal interaction and reset functions, the problem of congestion in the internal wiring of the smart lock is solved, and the network communication function of the smart lock is realized.

CN221884153UActive Publication Date: 2024-10-22LOONGSON ZHONGKE (JINHUA) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420365706.7
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-02-27
Publication Date
2024-10-22
Estimated Expiration
2034-02-27

AI Technical Summary

Technical Problem

When adding network communication functions to existing smart locks, communication enable lines need to be added, causing internal wiring congestion.

Method used

By using the control line and data transmission line group in the control circuit, the data signal interaction between the micro control unit and the communication port group is realized, and the reset function is completed through the control line, avoiding the need for additional communication enable lines.

Benefits of technology

It saves the wiring space inside the smart lock, solves the wiring congestion problem caused by adding communication enable lines, and realizes the network communication function of the smart lock.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221884153U_ABST
    Figure CN221884153U_ABST
Patent Text Reader

Abstract

The embodiment of the utility model provides a control circuit and an intelligent lock, and relates to the technical field of intelligent locks, the control circuit comprises a micro-control unit and a control device which are arranged in a first area, and a communication port group and a control sub-circuit which are arranged in a second area, a circuit between the first area and the second area comprises a control circuit and a data transmission circuit group, the reset end of the micro-control unit is electrically connected with the control sub-circuit through the control circuit, the communication enabling end of the micro-control unit is electrically connected with the control device, and the control device is electrically connected with the control sub-circuit through the control circuit. The control sub-circuit is electrically connected with the communication port group, the transceiving port group of the micro-control unit is electrically connected with the communication port group through the data transmission line group, the control function and the reset function of data signal interaction are achieved through the control line, a communication enabling line does not need to be additionally added, the wiring space in the intelligent lock is saved, and the wiring cost is reduced. The problem that in the prior art, internal wiring of an intelligent lock is crowded is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of smart locks, in particular to a control circuit and a smart lock. Background Art

[0002] In a smart lock without a network communication function, a microcontroller unit (MCU) is arranged on a first circuit board, a reset button is arranged on a second circuit board, and the reset button is connected to the microcontroller unit through a reset circuit.

[0003] In the prior art, in order to enable the smart lock to have a network communication function, it is necessary to add a communication module to the smart lock. Specifically, the communication module is set on the second circuit board, and a data transmission line group and a communication enable line are added to enable the microcontroller unit to interact with the communication module through the data transmission line group for data signals, and the microcontroller unit controls the data signal interaction between the microcontroller unit and the communication module through the communication enable line.

[0004] However, in actual production, in order to enable the smart lock to have network communication function, it is necessary to add communication enabling lines, which leads to congestion in the internal wiring of the smart lock. Utility Model Content

[0005] The utility model provides a control circuit and a smart lock, so as to at least solve the problem in the prior art that in order to enable the smart lock to have a network communication function, it is necessary to add a communication enabling line, resulting in crowded wiring inside the smart lock.

[0006] In a first aspect, an embodiment of the utility model provides a control circuit, comprising a micro control unit and a control device arranged in a first area, and a communication port group and a control subcircuit arranged in a second area; the line between the first area and the second area comprises a control line and a data transmission line group;

[0007] The reset terminal of the micro control unit is electrically connected to the control sub-circuit through the control circuit, the communication enable terminal of the micro control unit is electrically connected to the control device, and the transceiver port group of the micro control unit is electrically connected to the communication port group through the data transmission line group;

[0008] The control device is electrically connected to the control subcircuit via the control circuit;

[0009] The control subcircuit is electrically connected to the communication port group;

[0010] The control subcircuit cooperates with the control device to control the micro control unit to perform data signal interaction with the communication port group according to the control signal generated by the micro control unit.

[0011] Optionally, the control subcircuit includes a first switch subcircuit and a second switch subcircuit; the first switch subcircuit is electrically connected to the control device through the control circuit, and is electrically connected to the communication port group, and is used to cooperate with the control device to control the data signal interaction between the micro control unit and the communication port group according to the control signal; the second switch subcircuit is electrically connected to the reset end of the micro control unit through the control circuit, and is used to respond to a reset instruction issued by the reset end to control the reset of the micro control unit.

[0012] Optionally, the control circuit also includes a power interface terminal and a ground interface terminal arranged in the second area, and the line between the first area and the second area also includes a power line and a ground line; the first switch sub-circuit includes a first resistor, a MOS tube, and a second resistor; the power terminal of the micro control unit is electrically connected to the power interface terminal through the power line; the ground terminal of the micro control unit is electrically connected to the ground interface terminal through the ground line; the first end of the first resistor is electrically connected to the power interface terminal, and the second end of the first resistor is electrically connected to the reset terminal of the micro control unit and the control device through the control line respectively; the source of the MOS tube is electrically connected to the power interface terminal, the gate of the MOS tube is electrically connected to the micro control unit through the control line, and the drain of the MOS tube is electrically connected to the communication port group; the first end of the second resistor is electrically connected to the communication port group, and the second end of the second resistor is electrically connected to the ground interface terminal.

[0013] Optionally, the second switch subcircuit includes a reset switch device, a first end of the reset switch device is electrically connected to the ground interface terminal, and a second end of the reset switch device is electrically connected to the micro control unit through the control circuit.

[0014] Optionally, the communication port group includes a communication sending end, a communication receiving end, and an enabling end; the transceiver port group of the micro control unit includes the sending end of the micro control unit and the receiving end of the micro control unit; the data transmission line group includes a first line and a second line; the sending end of the micro control unit is electrically connected to the communication receiving end through the first line; the receiving end of the micro control unit is electrically connected to the communication sending end through the second line; and the enabling end is connected to the first switch sub-circuit.

[0015] Optionally, the control circuit also includes a communication module arranged in the second area; the transmitting end of the communication module is electrically connected to the communication transmitting end, the receiving end of the communication module is electrically connected to the communication receiving end, and the communication enabling end of the communication module is electrically connected to the enabling end.

[0016] Optionally, the MOS tube is a PMOS tube.

[0017] Optionally, the control device is a diode; an anode of the control device is electrically connected to the second end of the control circuit, and a cathode of the control device is electrically connected to a communication enable terminal of the micro control unit.

[0018] Optionally, the first area is an area of ​​a first circuit board, and the second area is an area of ​​a second circuit board.

[0019] In a second aspect, an embodiment of the utility model provides a smart lock, comprising a control circuit as described in the first aspect.

[0020] Compared with the prior art, the utility model has the following advantages:

[0021] The utility model embodiment provides a control circuit, which includes a micro control unit and a control device arranged in a first area, and a communication port group and a control subcircuit arranged in a second area, wherein the line between the first area and the second area includes a control line and a data transmission line group, the reset end of the micro control unit is electrically connected to the control subcircuit through the control line, the communication enable end of the micro control unit is electrically connected to the control device, the control device is electrically connected to the control subcircuit through the control line, the control subcircuit is electrically connected to the communication port group, the transceiver port group of the micro control unit is electrically connected to the communication port group through the data transmission line group, and the micro control unit and the communication port group perform data communication through the data transmission line group. The microcontroller generates a control signal, and the control subcircuit cooperates with the control device through the control line. According to the control signal generated by the microcontroller, the microcontroller is controlled to interact with the communication port group for data signal. The communication port group can be connected to the communication module to realize the network communication function of the smart lock, and the reset end of the microcontroller is electrically connected to the control subcircuit through the control line, that is, the control function and reset function of the data signal interaction are realized through the control line, and there is no need to add additional communication enabling lines, which saves the wiring space inside the smart lock, and solves the problem of crowded wiring inside the smart lock in the prior art due to the need to add communication enabling lines in order to enable the smart lock to have network communication functions. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the description of the embodiments of the utility model will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the utility model. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 It is a structural schematic diagram of a control circuit provided by an embodiment of the utility model;

[0024] Figure 2 It is a specific structural schematic diagram of a control circuit provided by an embodiment of the utility model;

[0025] Figure 3 It is a schematic diagram of the principle of a control circuit provided by an embodiment of the utility model;

[0026] Figure 4 It is a schematic diagram of a smart lock provided by an embodiment of the utility model. DETAILED DESCRIPTION

[0027] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0028] Reference Figure 1 The utility model provides a control circuit, the control circuit includes a micro control unit 10 and a control device 20 arranged in a first area A, and a communication port group 40 and a control sub-circuit 30 arranged in a second area B; the line between the first area A and the second area B includes a control line C and a data transmission line group D; the communication enable terminal GPIO-OUT of the micro control unit 10 is electrically connected to the control device 20, the reset terminal ADC_In of the micro control unit 10 is electrically connected to the control sub-circuit 30 through the control line C, and the control device 20 is electrically connected to the control sub-circuit 30 through the control line C. The control subcircuit 30 is electrically connected to the communication port group 40; the transceiver port group of the microcontroller unit 10 is electrically connected to the communication port group 40 through the data transmission line group D; the microcontroller unit 10 is used to interact with the communication port group 40 for data signals; the microcontroller unit 10 is also used to generate control signals; the control subcircuit 30 cooperates with the control device 20 to control the microcontroller unit 10 to interact with the communication port group 40 for data signals according to the control signal generated by the microcontroller unit; the control subcircuit 30 is also used to control the microcontroller unit 10 to reset in response to a reset instruction.

[0029] It should be noted that the smart lock is different from the traditional mechanical lock and is more intelligent and simple in terms of user security, identification and management. The micro control unit 10 in the smart lock can realize the functions of the smart lock such as fingerprint, password, card, voice, light, motor drive and master control.

[0030] The reset instruction is an instruction for restoring factory settings. The control subcircuit 30 sends a reset instruction to the control micro control unit 10 according to the user trigger, and the control micro control unit 10 is reset, that is, the control micro control unit 10 is restored to factory settings.

[0031] The first area A and the second area B are both areas in the control circuit of the smart lock, and the control line C and the lines in the data transmission line group D are all wires. In the related art, in order to realize the control function of the reset function and the data signal interaction, two lines are used, that is, the reset line is used to realize the reset function and the communication enable line is used to realize the control function of the data signal interaction. In the embodiment of the present application, one line (that is, the control line C) is used to realize the reset function and the data signal interaction control function, and the wiring space occupied by the control line C in the smart lock is smaller than the wiring space jointly occupied by the reset line and the communication enable line in the smart lock, thereby saving the wiring space inside the smart lock. In some embodiments, the wiring space occupied by the control line C in the smart lock is half of the wiring space jointly occupied by the reset line and the communication enable line in the smart lock.

[0032] In an embodiment of the utility model, the control circuit includes a microcontroller unit 10 and a control device 20 arranged in a first area A, and a communication port group 40 and a control subcircuit 30 arranged in a second area B, wherein the line between the first area A and the second area B includes a control line C and a data transmission line group D, the reset terminal ADC_In of the microcontroller unit 10 is electrically connected to the control subcircuit 30 through the control line C, the communication enable terminal GPIO-OUT of the microcontroller unit 10 is electrically connected to the control device 20, the control device 20 is electrically connected to the control subcircuit 30 through the control line C, the control subcircuit 30 is electrically connected to the communication port group 40, the transceiver port group of the microcontroller unit 10 is electrically connected to the communication port group 40 through the data transmission line group D, and the microcontroller unit 10 is electrically connected to the communication port group 40 through the data transmission line group D. The communication port group 40 performs data signal interaction; the microcontroller unit 10 generates a control signal, and the control subcircuit 30 cooperates with the control device 20 through the control line C. According to the control signal generated by the microcontroller unit 10, the microcontroller unit 10 is controlled to interact with the communication port group 40 for data signal interaction. The communication port group 40 can be connected to the communication module 70 to realize the network communication function of the smart lock, and the control subcircuit 30 responds to the reset instruction to control the microcontroller unit 10 to reset through the control line C, that is, the control function and reset function of the data signal interaction are realized through the control line C, and there is no need to add additional communication enabling lines, which saves the wiring space inside the smart lock, and solves the problem of crowded wiring inside the smart lock in the prior art due to the need to add communication enabling lines in order to enable the smart lock to have network communication functions.

[0033] Optionally, refer to Figure 2The control subcircuit 30 includes a first switch subcircuit 31 and a second switch subcircuit 32; the first switch subcircuit 31 is electrically connected to the control device 20 through the control circuit C, and is electrically connected to the communication port group 40, and is used to cooperate with the control device 20 to control the data signal interaction between the micro control unit 10 and the communication port group 40 according to the control signal; the second switch subcircuit 32 is electrically connected to the reset end of the micro control unit 10 through the control circuit C, and is used to respond to the reset instruction issued by the reset end to control the reset of the micro control unit 10.

[0034] The first switch subcircuit 31 is electrically connected to the control device 20 through the control line C, and is electrically connected to the communication port group 40, and is used to cooperate with the control device 20 to control the data signal interaction between the micro control unit 10 and the communication port group 40 according to the control signal to realize the control function of the data signal interaction; the second switch subcircuit 32 is electrically connected to the reset end of the micro control unit 10 through the control line C, responds to the reset instruction issued by the reset end, and controls the micro control unit 10 to reset, so as to realize the reset function.

[0035] Optionally, refer to Figure 3 , the control circuit also includes a power interface terminal 50 and a ground interface terminal 60 arranged in the second area B, and the line between the first area A and the second area B also includes a power line E and a ground line F; the first switch sub-circuit 31 includes a first resistor R1, a MOS tube M, and a second resistor R2; the power interface terminal 50 is electrically connected to an external power supply, and the ground interface terminal 60 is grounded; the power terminal VCC of the micro control unit 10 is electrically connected to the first end of the power line E, the power interface terminal 50 is electrically connected to the second end of the power line E, the ground terminal GND of the micro control unit 10 is electrically connected to the first end of the ground line F, and the ground interface terminal 60 is electrically connected to the ground The second end of the ground line F is electrically connected; the first end of the first resistor R1 is electrically connected to the power interface terminal 50, the second end of the first resistor R1 is electrically connected to the first end of the control circuit C, and the second end of the control circuit C is electrically connected to the reset terminal ADC_In of the micro control unit 10 and the control device 20 respectively; the source of the MOS tube M is electrically connected to the power interface terminal 50, the gate of the MOS tube M is electrically connected to the first end of the control circuit C, and the drain of the MOS tube M is electrically connected to the communication port group 40; the first end of the second resistor R2 is electrically connected to the communication port group 40, and the second end of the second resistor R2 is electrically connected to the ground interface terminal 60.

[0036] It should be noted that the external power supply supplies power to the control subcircuit 30 through the power supply line E, that is, supplies power to the first switch subcircuit 31 and the second switch subcircuit 32 through the power supply line E, and the external power supply also supplies power to the micro control unit 10 through the power supply line E.

[0037] The first resistor R1 is a pull-up resistor, the second resistor R2 is a pull-down resistor, and the MOS transistor M is a metal-oxide-semiconductor field-effect transistor. In some embodiments, the resistance value of the first resistor R1 is 100 kiloohms, and the resistance value of the second resistor R2 is 100 kiloohms.

[0038] Optionally, the MOS tube M is a PMOS tube.

[0039] It should be noted that a PMOS tube is a positive channel Metal Oxide Semiconductor tube.

[0040] In the case where the communication enable terminal GPIO-OUT of the micro control unit 10 generates a high-level control signal, the control device 20 is not turned on (disconnected), at this time, the gate level and the source level of the MOS tube M are both high levels, the MOS tube M is not turned on, the level of the enable terminal 43 in the communication port group 40 for controlling the data signal interaction between the micro control unit 10 and the communication port group 40 is low, and the data signal interaction state between the micro control unit 10 and the communication port group 40 is in the first state (for example, the state of stopping the data signal interaction); in the case where the communication enable terminal GPIO-OUT of the micro control unit 10 generates a low-level control signal, the control device 20 is turned on, at this time, the gate level of the MOS tube M is low, and the source level of the MOS tube M is high, that is, the gate level of the MOS tube M is lower than the source level of the MOS tube M. Since the MOS tube M is a PMOS tube, the MOS tube M is turned on, the level of the enable terminal 43 in the communication port group 40 is high, and the data signal interaction state between the micro control unit 10 and the communication port group 40 is in the second state (for example, the state of performing data signal interaction).

[0041] Optionally, the second switch sub-circuit 32 includes a reset switch device S, a first end of the reset switch device S is electrically connected to the ground interface terminal 60 , and a second end of the reset switch device S is electrically connected to the first end of the control circuit C.

[0042] Specifically, the reset switch device S may be a button device. When the button on the reset switch device S is pressed, the reset switch device S is turned on; when the button on the reset switch device S is not pressed, the reset switch device S is turned off.

[0043] In some embodiments, the reset switch device S may be a button device of model SW-PB.

[0044] When the reset switch device S is turned on, the reset terminal ADC_In of the microcontroller unit 10 is grounded through the control line C, and the level of the reset terminal ADC_In of the microcontroller unit 10 is low, and the microcontroller unit 10 is reset (restored to factory settings); when the reset switch device S is turned off, the reset terminal ADC_In of the microcontroller unit 10 is connected to the external power supply through the control line C, and the level of the reset terminal ADC_In of the microcontroller unit 10 is high, and the microcontroller unit 10 is in a normal working state (no reset is performed).

[0045] Alternatively, if Figure 3 As shown, the communication port group 40 includes a communication transmitting end 41, a communication receiving end 42, and an enabling end 43; the transceiver port group of the micro control unit 10 includes a transmitting end TX of the micro control unit 10 and a receiving end RX of the micro control unit 10, and the data transmission line group D includes a first line D1 and a second line D2; the transmitting end TX of the micro control unit 10 is electrically connected to the first end of the first line D1, and the communication receiving end 42 is electrically connected to the second end of the first line D1; the receiving end RX of the micro control unit 10 is electrically connected to the first end of the second line D2, and the communication transmitting end 41 is electrically connected to the second end of the second line D2; the enabling end 43 is electrically connected to the drain of the MOS tube M.

[0046] Specifically, the transmitting end TX of the microcontroller unit 10 can send a data signal to the communication receiving end 42 through the first line D1, and the communication transmitting end 41 can send a data signal to the receiving end RX of the microcontroller unit 10 through the second line D2. The communication enable end GPIO-OUT of the microcontroller unit 10 controls the line C so that the first switch subcircuit 31 cooperates with the control device 20, and controls the data signal interaction between the microcontroller unit 10 and the enable end 43 according to the control signal.

[0047] When the level output by the first switch subcircuit 31 to the enable terminal 43 is a low level, the data signal interaction state between the micro control unit 10 and the communication port group 40 is in a first state (for example, a state of stopping data signal interaction); when the level output by the first switch subcircuit 31 to the enable terminal 43 is a high level, the data signal interaction state between the micro control unit 10 and the communication port group 40 is in a second state (for example, a state of performing data signal interaction).

[0048] Optionally, the control circuit also includes a communication module 70 arranged in the second area B; the transmitting end of the communication module 70 is electrically connected to the communication transmitting end 41, the receiving end of the communication module 70 is electrically connected to the communication receiving end 42, and the communication enabling end of the communication module 70 is electrically connected to the enabling end 43.

[0049] Specifically, the transmitting end TX of the microcontroller unit 10 can send a data signal to the receiving end of the communication module 70 through the first line D1, and the transmitting end of the communication module 70 can send a data signal to the receiving end RX of the microcontroller unit 10 through the second line D2. The communication enable end GPIO-OUT of the microcontroller unit 10 controls the line C so that the first switch subcircuit 31 cooperates with the control device 20, and controls the data signal interaction between the microcontroller unit 10 and the communication module 70 according to the control signal.

[0050] In some embodiments, the communication module 70 can be a WIFI (Wireless Fidelity, a wireless network communication technology) communication module 70, an NB (Narrow Band, a narrowband Internet of Things technology) communication module 70 or a CAT1 (Long-Term Evolution Category 1, a modulation and coding technology) communication module 70, etc.; the communication enable end of the communication module 70 can be a reset end, a switch control end, a sleep control end, etc.

[0051] When the communication enable end of the communication module 70 is the reset end, when the level of the communication enable end of the communication module 70 is at a low level, the communication module 70 is in a normal working state, that is, the micro control unit 10 and the communication module 70 can interact with each other normally for data signals, and when the level of the communication enable end of the communication module 70 is at a high level, the communication module 70 is reset (restored to factory settings).

[0052] When the communication enable end of the communication module 70 is a switch control end, when the level of the communication enable end of the communication module 70 is low, the communication module 70 is in a closed state, and at this time the micro control unit 10 cannot interact with the communication module 70 through the first line D1 and the second line D2 and cannot perform data signal interaction; when the level of the communication enable end of the communication module 70 is high, the communication module 70 is in an open state, and at this time the micro control unit 10 can normally interact with the communication module 70 through the first line D1 and the second line D2 and can perform data signal interaction.

[0053] When the communication enable end of the communication module 70 is a sleep control end, when the level of the communication enable end of the communication module 70 is low, the communication module 70 is in a normal working state, that is, the micro control unit 10 and the communication module 70 can normally exchange data signals through the first line D1 and the second line D2; when the level of the communication enable end of the communication module 70 is high, the communication module 70 is in a sleep state. At this time, if there is no data signal that needs to be interacted between the micro control unit 10 and the communication module 70, the communication module 70 is in a low power consumption state. If there is a data signal that needs to be interacted between the micro control unit 10 and the communication module 70, the communication module 70 is in a normal working state.

[0054] Optionally, the control device 20 is a diode, an anode of the control device 20 is electrically connected to the second end of the control circuit C, and a cathode of the control device 20 is electrically connected to the communication enable terminal GPIO-OUT of the micro control unit 10 .

[0055] Specifically, the control device 20 is a reverse protection diode (eg, a diode of model SS16), and the forward voltage drop of the reverse protection diode is 0.7V.

[0056] In the case where the communication enable terminal GPIO-OUT of the micro control unit 10 generates a high-level control signal, the diode is reversely non-conductive (disconnected), at this time, the level of the gate and the level of the source of the MOS tube M are both high, the MOS tube M is not conductive, the level of the enable terminal 43 is low, the level of the communication enable terminal of the communication module 70 is low, and the data signal interaction state between the micro control unit 10 and the communication module 70 is in the first state (for example, the state of stopping data signal interaction). In the case where the communication enable terminal GPIO-OUT of the micro control unit 10 generates a low-level control signal, the diode is forwardly conductive, at this time, the level of the gate of the MOS tube M is low, and the level of the source of the MOS tube M is high, that is, the level of the gate of the MOS tube M is lower than the level of the source of the MOS tube M. Since the MOS tube M is a PMOS tube, the MOS tube M is conductive, the level of the enable terminal 43 is high, the level of the communication enable terminal of the communication module 70 is high, and the data signal interaction state between the micro control unit 10 and the communication module 70 is in the second state (for example, the state of performing data signal interaction).

[0057] Optionally, the first area A is an area of ​​a first circuit board, and the second area B is an area of ​​a second circuit board.

[0058] It should be noted that a microcontroller unit 10 and a control device 20 are provided on the first circuit board, a control subcircuit 30 and a communication module 70 are provided on the second circuit board, and five lines are provided between the first circuit board and the second circuit board, namely a control line C, a power line E, a ground line F, a first line D1 and a second line D2.

[0059] Among them, the external power supply supplies power to the micro control unit 10 and the control sub-circuit 30 through the power supply line E, and the micro control unit 10 is grounded through the ground line F; the second switch sub-circuit 32 in the control sub-circuit 30 responds to the reset instruction and controls the micro control unit 10 to reset through the control line C; the communication enable terminal GPIO-OUT of the micro control unit 10 cooperates with the control device 20 through the control line C, and controls the data signal interaction between the micro control unit 10 and the communication module 70 according to the control signal; the transmitting end TX of the micro control unit 10 can send a data signal to the receiving end of the communication module 70 through the first line D1, and the transmitting end of the communication module 70 can send a data signal to the receiving end RX of the micro control unit 10 through the second line D2.

[0060] The second switch subcircuit 32 in the control subcircuit 30 responds to the reset instruction, controls the reset process of the microcontroller unit 10 and the communication enable terminal GPIO-OUT of the microcontroller unit 10 through the control line C, so that the first switch subcircuit 31 in the control subcircuit 30 cooperates with the control device 20, and controls the process of data signal interaction between the microcontroller unit 10 and the communication module 70 according to the control signal without affecting each other. Specifically, the signal for realizing the reset function and the signal for realizing the control function of data signal interaction are time-division multiplexed, that is, the signal for realizing the reset function and the signal for realizing the control function of data signal interaction are periodically transmitted alternately in the control line without affecting each other.

[0061] Reference Figure 4 , an embodiment of the utility model provides a smart lock, including the above-mentioned control circuit.

[0062] The smart lock provided by the embodiment of the utility model has a network communication function. In the control circuit of the smart lock, the control function and reset function of data signal interaction are realized through the control line. There is no need to add additional communication enabling lines, thus saving the wiring space inside the smart lock.

[0063] The specific implementation process of the control circuit of the smart lock is similar to the implementation process of the aforementioned control circuit, and will not be repeated here.

[0064] In summary, an embodiment of the utility model provides a control circuit, which includes a micro control unit and a control device arranged in a first area, and a communication port group and a control sub-circuit arranged in a second area, wherein the line between the first area and the second area includes a control line and a data transmission line group, the reset terminal ADC_In of the micro control unit is electrically connected to the control sub-circuit through the control line, the communication enable terminal GPIO-OUT of the micro control unit is electrically connected to the control device, the control device is electrically connected to the control sub-circuit through the control line, the control sub-circuit is electrically connected to the communication port group, the transceiver port group of the micro control unit is electrically connected to the communication port group through the data transmission line group, and the micro control unit is electrically connected to the communication port group through the data transmission line group. Data signals are interacted with the communication port group; the microcontroller unit generates a control signal, and the control subcircuit cooperates with the control device through the control line. According to the control signal, the data signal interaction between the microcontroller unit and the communication port group is controlled. The communication port group can be connected to the communication module 70 to realize the network communication function of the smart lock, and the control subcircuit responds to the reset instruction to control the reset of the microcontroller unit through the control line, that is, the control function and reset function of the data signal interaction are realized through the control line, and there is no need to add additional communication enable lines, which saves the wiring space inside the smart lock, and solves the problem of crowded wiring inside the smart lock in the prior art due to the need to add communication enable lines in order to enable the smart lock to have network communication functions.

[0065] Finally, it should be noted that, in this article, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "includes" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or also includes elements that are inherent to such process, method, article or terminal device.

[0066] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

[0067] The above is only a specific implementation of the utility model, but the protection scope of the utility model is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the utility model, which should be included in the protection scope of the utility model. Therefore, the protection scope of the utility model should be based on the protection scope of the claims.

Claims

1. A control circuit, It is characterized in that It includes a micro control unit and a control device arranged in a first area, and a communication port group and a control subcircuit arranged in a second area; the line between the first area and the second area includes a control line and a data transmission line group; The reset terminal of the micro control unit is electrically connected to the control sub-circuit through the control circuit, the communication enable terminal of the micro control unit is electrically connected to the control device, and the transceiver port group of the micro control unit is electrically connected to the communication port group through the data transmission line group; The control device is electrically connected to the control subcircuit via the control circuit; The control subcircuit is electrically connected to the communication port group; The control subcircuit cooperates with the control device to control the micro control unit to perform data signal interaction with the communication port group according to the control signal generated by the micro control unit.

2. The control circuit according to claim 1, It is characterized in that The control subcircuit includes a first switch subcircuit and a second switch subcircuit; The first switch subcircuit is electrically connected to the control device through the control line and is electrically connected to the communication port group, and is used to cooperate with the control device to control the data signal interaction between the micro control unit and the communication port group according to the control signal; The second switch subcircuit is electrically connected to the reset terminal of the micro control unit through the control circuit, and is used to respond to a reset instruction issued by the reset terminal to control the micro control unit to reset.

3. The control circuit according to claim 2, It is characterized in that The control circuit further includes a power interface terminal and a ground interface terminal arranged in the second area, and the line between the first area and the second area further includes a power line and a ground line; the first switch subcircuit includes a first resistor, a MOS tube, and a second resistor; The power supply terminal of the micro control unit is electrically connected to the power supply interface terminal through the power supply line; the ground terminal of the micro control unit is electrically connected to the ground interface terminal through the ground line; The first end of the first resistor is electrically connected to the power interface end, and the second end of the first resistor is electrically connected to the reset end of the micro control unit and the control device through the control circuit respectively; The source of the MOS tube is electrically connected to the power interface terminal, the gate of the MOS tube is electrically connected to the micro control unit through the control circuit, and the drain of the MOS tube is electrically connected to the communication port group; A first end of the second resistor is electrically connected to the communication port group, and a second end of the second resistor is electrically connected to the ground interface terminal.

4. The control circuit according to claim 3, It is characterized in that The second switch subcircuit includes a reset switch device, a first end of the reset switch device is electrically connected to the ground interface terminal, and a second end of the reset switch device is electrically connected to the micro control unit through the control circuit.

5. The control circuit according to claim 2, It is characterized in that The communication port group includes a communication sending end, a communication receiving end, and an enabling end; The transceiver port group of the micro control unit includes a transmitting end of the micro control unit and a receiving end of the micro control unit; the data transmission line group includes a first line and a second line; The transmitting end of the micro control unit is electrically connected to the communication receiving end through the first line; The receiving end of the micro control unit is electrically connected to the communication sending end through the second line; The enable terminal is connected to the first switch sub-circuit.

6. The control circuit according to claim 5, It is characterized in that The control circuit further includes a communication module disposed in the second area; The transmitting end of the communication module is electrically connected to the communication transmitting end, the receiving end of the communication module is electrically connected to the communication receiving end, and the communication enabling end of the communication module is electrically connected to the enabling end.

7. The control circuit according to claim 3, It is characterized in that The MOS tube is a PMOS tube.

8. The control circuit according to claim 1, It is characterized in that The control device is a diode; the anode of the control device is electrically connected to the second end of the control circuit, and the cathode of the control device is electrically connected to the communication enable end of the micro control unit.

9. The control circuit according to claim 1, It is characterized in that The first area is an area of ​​a first circuit board, and the second area is an area of ​​a second circuit board.

10. A smart lock, It is characterized in that Comprising a control circuit as described in any one of claims 1-9.