Charging method of intelligent lock, intelligent lock and system thereof
Through the smart lock, it uses near-field communication to acquire external power and dynamically adjust the charging power, and solves the problem of the smart lock battery exhaustion and inability to turn on, realizes wireless charging and emergency door opening, and improves the reliability and user experience of the smart lock.
Patent Information
- Application Number
- CN202411948579.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-13
AI Technical Summary
The smart lock cannot be turned on normally when the battery is exhausted, resulting in the user being unable to enter. How to optimize the charging management of the smart lock to solve this problem.
Power is obtained from external devices through near field communication (NFC) and the charging power of the smart lock is adjusted using energy management circuits to achieve wireless charging. When the voltage reaches the preset value, the control turns on the smart lock.
Wireless charging and dynamic charging power adjustment of smart locks are realized, ensuring that the door can be opened through an external power supply when the battery is exhausted, improving the reliability and user experience of smart locks.
Smart Images

Figure CN119995189A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of smart locks, and in particular to a charging method for a smart lock, a smart lock and a system thereof. Background Art
[0002] Traditional door locks can only be opened with a mechanical key. Subsequently, smart locks with integrated functions emerged. As smart locks integrate more and more functions, they also increase battery consumption. If the smart lock's battery runs out and the user fails to replace or recharge it promptly, the door will become unusable. Therefore, optimizing smart locks and achieving optimal charging management has become a pressing issue. Summary of the Invention
[0003] The present application provides a charging method for a smart lock, a smart lock and a system thereof, which can achieve charging optimization of the smart lock.
[0004] In order to solve the above technical problems, the technical solution adopted in this application is: to provide a charging method for a smart lock, the method comprising: obtaining an external first power supply, the external first power supply being obtained by the smart lock from an external device using near-field communication; processing the external first power supply to adjust the final charging power of the smart lock; using the final charging power to charge the smart lock; detecting that the voltage value after charging reaches a preset voltage value, and controlling the smart lock to open.
[0005] To solve the above technical problems, another technical solution adopted in this application is: providing a smart lock, which includes an external charging module and a door lock module, the external charging module includes an NFC energy coil, an energy management circuit, and an energy storage circuit connected in sequence, the door lock module includes a door lock control unit and a door lock switch unit, and the energy storage circuit is connected to the door lock control unit; the NFC energy coil is used to obtain an external first power supply from an external device using near-field communication; the energy management circuit is used to process the external first power supply, adjust the final charging power of the smart lock, and use the final charging power to charge the energy storage circuit of the smart lock; the door lock control unit is used to detect that the voltage value of the energy storage circuit after charging reaches a preset voltage value, and control the door lock switch unit to turn on the smart lock.
[0006] In order to solve the above technical problems, another technical solution adopted in this application is: to provide a smart lock system, including an external device and a smart lock as described above; the external device is provided with an NFC antenna, and the external device uses the NFC antenna to perform near-field communication with the smart lock.
[0007] Through the above scheme, the beneficial effect of the present application is: the smart lock uses near-field communication to obtain an external first power source from an external device, which can realize wireless charging of the smart lock, and after obtaining the external first power source, the external first power source is processed and the final charging power of the smart lock is adjusted, so as to use the final charging power to charge the smart lock, and then when it is detected that the voltage value after charging reaches the preset voltage value, the smart lock is controlled to be turned on. Based on this, since the smart lock can dynamically adjust the charging power during wireless charging, the charging optimization of the smart lock can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without inventive efforts. Among them:
[0009] Figure 1 This is a structural diagram of an embodiment of a smart lock provided by this application;
[0010] Figure 2 This is a schematic diagram of the structure of the energy management circuit in an embodiment of the smart lock provided by this application;
[0011] Figure 3 This is a schematic diagram of the structure of the synchronous rectification circuit of the energy management circuit in an embodiment of the smart lock provided by this application;
[0012] Figure 4 This is a schematic diagram of the structure of the DC-DC converter of the energy management circuit in one embodiment of the smart lock provided by this application;
[0013] Figure 5 This is a structural diagram of an embodiment of the smart lock system provided by this application;
[0014] Figure 6 This is a flow chart of an embodiment of the image defect detection method provided by the present application;
[0015] Figure 7 It is a flow chart of another embodiment of the image defect detection method provided by the present application. DETAILED DESCRIPTION
[0016] The present application will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only intended to illustrate the present application and are not intended to limit the scope of the present application. Similarly, the following examples are only some examples of the present application and are not intended to be complete. All other examples obtained by those of ordinary skill in the art without creative work are intended to fall within the scope of protection of the present application.
[0017] References to "embodiments" in this application mean that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0018] It should be noted that the terms "first", "second" and "third" in this application are only used for descriptive purposes and should not be understood as indicating or suggesting relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first", "second" and "third" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units that are inherent to these processes, methods, products or devices.
[0019] In order to more clearly describe the technical solution of this application, the smart lock 10 of this application is first introduced. Figure 1 , Figure 1 It is a structural diagram of an embodiment of the smart lock 10 provided in this application.
[0020] The smart lock 10 includes an external charging module 11 and a door lock module 12. Among them, the external charging module 11 includes an NFC (Near Field Communication) energy coil, an energy management circuit 112, and an energy storage circuit 113 connected in sequence. The door lock module 12 includes a door lock control unit 121 and a door lock switch unit 122 connected in sequence. The energy storage circuit 113 is connected to the door lock control unit 121. The NFC energy coil 111 is used to obtain an external first power supply from an external device using near field communication. The energy management circuit 112 is used to process the external first power supply, adjust the final charging power of the smart lock 10, and use the final charging power to charge the energy storage circuit 113 of the smart lock 10. The door lock control unit 121 is used to detect that the voltage value of the energy storage circuit 113 after charging reaches a preset voltage value, and control the door lock switch unit 122 to turn on the smart lock 10.
[0021] The energy storage circuit 113 can be a capacitor, and the capacitance of the capacitor can be customized as needed, which is not specifically limited here. When an external device with NFC function is close to the NFC energy coil 111 on the smart lock 10, the NFC energy coil 111 will charge the energy storage circuit 113 through the energy management circuit 112, thereby charging to a preset voltage value, and the door lock control unit 121 can quickly start working and control the door lock switch unit 122 to open the smart lock 10. The door lock switch unit 122 can be any of the existing mechanical structures for opening the smart lock 10, which is not specifically limited here. In one embodiment, the door lock switch unit 122 includes a pressure spring, a locking rod and a locking buckle. The locking buckle is arranged on the inner wall of the smart lock 10, one end of the pressure spring is connected to the output end of a driving mechanism such as a motor, and the other end of the pressure spring is connected to the locking rod. A groove for locking the buckle movement is provided on the locking rod. The locking buckle is used to limit the position of the positioning locking rod. Specifically, a groove of a preset length is provided on the lock rod. When the lock rod is unlocked or unlocked, the locking buckle provided on the inner wall of the smart lock 10 moves in the groove, thereby limiting the telescopic length range of the lock rod. This can effectively prevent the lock rod from being over-extended when locking or over-contracted when unlocking, thereby improving the rationality of the internal structure of the smart lock 10 and effectively improving the reliability and security of the smart lock 10. The preset voltage value can be customized as needed. The preset voltage value can be large enough to support the door lock switch unit 122 to open the smart lock 10, including but not limited to 12V or 15V.
[0022] Therefore, the NFC energy coil 111 of the smart lock 10 uses near-field communication to obtain an external first power source from an external device, which can realize wireless charging of the smart lock 10, and provide a smart lock 10 based on NFC reverse charging. After obtaining the external first power source, the energy management circuit 112 processes the external first power source and adjusts the final charging power of the smart lock 10, thereby using the final charging power to charge the energy storage circuit 113 of the smart lock 10. Then, the door lock control unit 121 controls the opening of the smart lock 10 after detecting that the voltage value of the energy storage circuit 113 after charging reaches a preset voltage value. Based on this, since the smart lock 10 can dynamically adjust the charging power during wireless charging and control the energy conversion efficiency, the charging optimization of the smart lock 10 can be achieved.
[0023] The unlocking methods of the smart lock 10 include but are not limited to password unlocking, fingerprint unlocking, face unlocking, audio unlocking and other forms. Therefore, the unlocking signal of the present application includes but is not limited to unlocking password, unlocking fingerprint, unlocking face, unlocking audio, so that after the smart lock 10 obtains the unlocking signal, it controls the door lock switch unit 122 of the smart lock 10 to unlock the smart lock 10 based on the unlocking signal. The door lock control unit 121 of the door lock module 12 can be connected to at least one unit of the key circuit unit 123, the fingerprint function unit 124, the card swiping function unit 125, the audio drive unit 126, the video image unit 127, the face door unlocking unit 128, the wandering detection unit 129, the voice intercom unit 1210, and the wireless connection unit 1211. The key circuit unit 123 is used to collect the unlocking password input by the user, or the card swiping function unit 125 is used to identify the unlocking password in the unlocking card used by the user, so that the key circuit unit 123 or the card swiping function unit 125 generates and sends an unlocking signal to the door lock control unit 121 based on the unlocking password. Then, after the door lock control unit 121 obtains the unlocking signal, it controls the door lock switch unit 122 of the smart lock 10 to unlock the smart lock 10 based on the unlocking signal, thereby achieving password unlocking. The fingerprint function unit 124 is used to collect the unlocking fingerprint input by the user, and generates and sends an unlocking signal to the door lock control unit 121 based on the unlocking fingerprint. Then, after the door lock control unit 121 obtains the unlocking signal, it controls the door lock switch unit 122 of the smart lock 10 to unlock the smart lock 10 based on the unlocking signal, thereby achieving fingerprint unlocking. The video image unit 127 is used to obtain and transmit the user's video image information to the door lock control unit 121. The face unlocking unit 128 is used to obtain and transmit the user's facial recognition information to the door lock control unit 121. The loitering detection unit 129 is used to obtain and transmit the user's loitering detection information in front of the smart lock 10 to the door lock control unit 121. The voice intercom unit 1210 is used to obtain and transmit the user's voice information to the door lock control unit 121, so that the door lock control unit 121 can generate an unlocking signal or an alarm signal after obtaining at least one of the video image information, facial recognition information, loitering detection information, and user voice information. The alarm signal is generated when an abnormality is detected in the unlocking signal or when an abnormality is detected in the video image information, facial recognition information, loitering detection information, or user voice information. The audio driver unit 126 is used to issue an alarm after the door lock control unit 121 obtains the alarm signal. In addition, the wireless connection unit 1211 is used to connect the smart lock 10 to a wireless network to achieve networking. In one embodiment, the video image unit 127 and the voice intercom unit 1210 can simultaneously acquire video image information and user voice information, thereby enabling remote video intercom, thereby providing a clearer understanding of the visitor's identity and the real-time scene in front of the door. When the loitering detection unit 129 acquires loitering detection information of the user in front of the smart lock 10, it can utilize an existing loitering detection algorithm, which is not specifically limited here.By detecting the situation in front of the door through the wandering detection unit 129, abnormal wandering detection information can be generated, forming an alarm signal so that the door lock control unit 121 can use the audio driving unit 126 to issue an alarm and realize voice broadcast of abnormalities.
[0024] Considering that the smart lock 10 integrates many functional units, in order to realize the allocation of power supply resources and control resources, in a specific embodiment, the door lock module 12 may include a door lock basic function module 12a and a door lock extended function module 12b, and the door lock control unit 121 includes a first door lock control unit 121a and a second door lock control unit 121b connected to each other, wherein the first door lock control unit 121a is used to control each functional unit in the door lock basic function module 12a, and the second door lock control unit 121b is used to control each functional unit in the door lock extended function module 12b. The battery 13 includes a first battery 13a and a second battery 13b, wherein the first battery 13a is connected to the first door lock control unit 121a, and the second battery 13b is connected to the second door lock control unit 121b, so that the first battery 13a is used to power the first door lock control unit 121a, and the second battery 13b is used to power the second door lock control unit 121b. In the door lock basic function module 12a, the first door lock control unit 121a is connected to the door lock switch unit 122, and the first door lock control unit 121a is connected to at least one of the key circuit unit 123, the fingerprint function unit 124, the card swiping function unit 125, and the audio drive unit 126, wherein the key circuit unit 123 is used to collect the unlocking password input by the user, the fingerprint function unit 124 is used to collect the unlocking fingerprint input by the user, the card swiping function unit 125 is used to identify the unlocking password in the unlocking card used by the user, and the audio drive unit 126 is used to issue an alarm after the first door lock control unit 121a obtains the alarm signal. In the door lock extended function module 12b, the second door lock control unit 121b is connected to at least one of the video image unit 127, the face door opening unit 128, the wandering detection unit 129, the voice intercom unit 1210, and the wireless connection unit 1211, wherein the video image unit 127 is used to obtain and send the user's video image information to the second door lock control unit 121b, the face door opening unit 128 obtains and sends the user's face recognition information to the second door lock control unit 121b, the wandering detection unit 129 is used to obtain and send the user's wandering detection information in front of the smart lock 10 to the second door lock control unit 121b, the voice intercom unit 1210 is used to obtain and send the user's voice information to the second door lock control unit 121b, and the wireless connection unit 1211 is used for the smart lock 10 to connect to a wireless network. The second door lock control unit 121b is used to generate an unlocking signal or an alarm signal after obtaining at least one of the video image information, face recognition information, wandering detection information, and user voice information. In one embodiment, the first battery 13 a may be a dry cell battery 13 , and the second battery 13 b may be a lithium battery 13 .Therefore, since there is a communication link between the first door lock control unit 121a and the second door lock control unit 121b for transmitting door opening information, and they obtain power from different batteries 13 respectively and control their respective functional units respectively, effective allocation of power supply resources and control resources can be achieved.
[0025] In one embodiment, the smart lock 10 includes a USB interface 14. After detecting that the power supply of the battery 13 of the smart lock 10 to the smart lock 10 is interrupted, the door lock control unit 121 is further used to obtain an external second power source to charge the smart lock 10 using the external second power source, wherein the external second power source is obtained from an external charging device through the USB interface 14 of the smart lock 10. The external charging device can be, but is not limited to, a power bank. Therefore, when the smart lock 10 is out of power, the power bank and the charging cable can be connected to the smart lock 10 for power supply, so that the unlocking function of the smart lock 10 can operate normally. Therefore, when the battery 13 of the smart lock 10 is unable to work, in addition to obtaining the external first power source from the external device through the external charging module 11, the external second power source can also be obtained from the external charging device through the USB interface 14 of the smart lock 10, so that two emergency power sources, the external first power source and the external second power source, can be used to power the smart lock 10, so that emergency door opening can be achieved when the battery 13 is out of power. In the smart lock 10 in which the door lock module 12 includes a door lock basic function module and a door lock extended function module, both the external first power supply and the external second power supply are connected to the first door lock control unit 121a, so that both the external first power supply and the external second power supply are emergency power supplies for the first door lock control unit 121a. Of course, in other embodiments, at least one of the external first power supply and the external second power supply is connected to the first door lock control unit 121a, and at the same time, at least one of the external first power supply and the external second power supply is connected to the second door lock control unit 121b, so that the external first power supply and the external second power supply can be not only the emergency power supply for the first door lock control unit 121a, but also the emergency power supply for the second door lock control unit 121b, so that the door lock extended function module can also have an emergency power supply.
[0026] In one embodiment, the smart lock 10 includes a battery 13 connected to a door lock control unit 121. Before detecting that the power supply from the battery 13 to the smart lock 10 is interrupted, the door lock control unit 121 is further configured to obtain voltage from the battery 13 and control the opening of the smart lock 10. Therefore, the battery 13 of the smart lock 10 can be prioritized for power supply, and the door lock control unit 121 obtains voltage from the battery 13 to control the opening of the smart lock 10. Thus, after the power supply from the battery 13 to the smart lock 10 is interrupted, the external charging module 11 utilizes NFC-based reverse charging technology to obtain power from an external device, thereby enabling emergency door opening in the event of a battery 13 failure. If the battery 13 of the door lock is low on power and the user fails to replace or charge the battery 13 in a timely manner, the battery 13 becomes depleted, rendering the door inaccessible. The smart lock 10 can only be opened using a mechanical key or by using an external charging device such as a power bank via the USB port 14 for emergency power supply. However, users typically do not carry keys or power banks with them, resulting in a door unlocking failure. For this application scenario, the smart lock 10 of this application retains the original functions of the smart lock 10 and integrates the NFC emergency door opening function into the smart lock 10. This can solve the problem of emergency door opening when the smart lock 10 runs out of power and there is no key or power bank with you. Specifically, when there is no power, the NFC function of the mobile phone can be used to wirelessly charge the smart lock 10. The user only needs to bring an external device such as a mobile phone close to the smart lock 10. The external device and the smart lock 10 are connected through near-field communication. The smart lock 10 can then be reverse charged based on NFC to achieve emergency door opening.
[0027] In one embodiment, the external charging module 11 may also include an NFC communication coil 115 and an NFC chip 114 connected in sequence, and the NFC chip 114 is connected to the door lock control unit 121; the door lock control unit 121 is used to send an authorization authentication request to the external device through the NFC chip 114 and the NFC communication coil 115, so that the external device can feedback an authorization authentication reply in response to the authorization authentication request; the door lock control unit 121 is also used to detect that the voltage value of the energy storage circuit 113 after charging reaches a preset voltage value when it is determined that the authorization authentication reply meets the authorization authentication conditions, and control the opening of the smart lock 10; or, the door lock control unit 121 is also used to not execute the control to open the smart lock 10 when it is determined that the authorization authentication reply does not meet the authorization authentication conditions, and send an authentication failure message containing unauthorized unlocking to the external device through the NFC chip 114 and the NFC communication coil 115. Therefore, through authorization authentication, the security of the smart lock 10 can be improved, and at the same time, the entire unlocking process can be ended as soon as possible for the external device without authorization to avoid waste of resources.
[0028] See also Figure 2 , Figure 2This is a schematic diagram of the energy management circuit in one embodiment of the smart lock provided in this application. The energy management circuit 112 may include a charging control unit 1121, a synchronous rectification circuit 1122, and a DC-DC converter 1123. The synchronous rectification circuit 1122 and the DC-DC converter 1123 are connected in sequence. The synchronous rectification circuit 1122 is connected to the charging control unit 1121.
[0029] In one embodiment, the charging control unit 1121 stores preset configuration parameters, which include a target temperature value and coefficients of a PID control algorithm. The charging control unit 1121 is used to obtain the current temperature value when the smart lock 10 is charged using an external first power source. Based on the preset configuration parameters and the current temperature value, the PID control algorithm is used to adjust the final charging power of the smart lock 10. For details on the adjustment of the final charging power, please refer to the detailed description of the method embodiment below. Therefore, by adjusting the final charging power of the smart lock 10 through the PID control algorithm, precise control of thermal management is achieved, ensuring that the entire system of the smart lock 10 operates within the optimal temperature range.
[0030] In one embodiment, the charging control unit 1121 is further configured to detect an unlock request from an external device after detecting that the power supply from the battery 13 of the smart lock 10 to the smart lock 10 has been interrupted, and then, in response to the unlock request, obtain the external first power source using the NFC energy coil 111. Therefore, when the smart lock 10 is out of power, wireless charging can be achieved using NFC technology.
[0031] In one embodiment, the synchronous rectification circuit 1122 includes a MOS transistor and a temperature sensor connected to the MOS transistor. The synchronous rectification circuit 1122 is used to synchronously rectify the external first power supply; the DC-DC converter 1123 is used to perform DC-DC conversion on the synchronously rectified external first power supply; the temperature sensor is used to detect the current temperature value when the smart lock 10 is charged using the external first power supply. The charging control unit 1121 is further used to shut down the synchronous rectification circuit 1122 and stop charging the smart lock 10 if the current temperature value is greater than a preset temperature threshold.
[0032] See also Figure 3 , Figure 3 Schematic diagram of the structure of the synchronous rectification circuit of the energy management circuit in the embodiment of the smart lock provided by this application. Figure 3As shown, the AC input is connected to the input of the driver chip, while the output of the driver chip is connected to D1 and D2, which are arranged in parallel. The AC input is the input voltage of the AC power supply of the external first power supply. D1 and D2 are two MOS transistors. When one of the two MOS transistors is turned on, the other is turned off. This allows the two MOS transistors to achieve synchronous rectification and output the rectified output voltage. The MOS transistors can use low on-resistance IRF540N or AO3400A to reduce energy loss during the rectification process. The driver chip is used to provide the drive signal for the MOS transistor and can use the high-efficiency, low-power IR2110. Through this configuration, the gate resistance value can be optimized to balance switching speed and switching loss. In addition, the synchronous rectification circuit 1122 can also include a filtering circuit. Specifically, the filtering circuit includes C1, C2, and L. C1 can be a 100uF electrolytic capacitor, providing primary filtering. C2 can be a 10nF ceramic capacitor for high-frequency filtering. L can be a 10uH inductor for smoothing the output voltage. Therefore, to achieve filtering, a 100uF electrolytic capacitor and a 10nF ceramic capacitor are used to provide good filtering effects, and a 10uH inductor is used to further smooth the output voltage. The components in the synchronous rectifier circuit 1122 can be replaced with other types of components with the same function, and the sizes of the capacitors and inductors can also be adjusted as needed, without specific limitation here.
[0033] See also Figure 4 , Figure 4This is a schematic diagram of the DC-DC converter structure of the energy management circuit in one embodiment of the smart lock provided herein. The input voltage Vin in the DC-DC converter 1123 is the output voltage of the synchronous rectification circuit 1122. The input voltage Vin is connected to the input of the IC. The IC is used to convert the higher input voltage into a stable output voltage. It can be, but is not limited to, a high-efficiency, low-power DC-DC converter 1123 chip such as the LM2596 or TPS62175, thereby reducing losses during the energy conversion process. The output of the IC is connected to D1. D1 is used for rectification, ensuring that current flows to the output when the inductor releases energy. D1 can be an SS34 Schottky diode for fast switching and reduced losses. The DC-DC converter 1123 may also include a filtering circuit. Specifically, the output of the IC is connected to L1, which is an inductor that stores energy and smoothes the current in and out. The value of L1 can be, but is not limited to, 10μH. One end of D1 is connected to the output of the IC, and the other end of D1 is connected to C1 and C2. C1 is connected to the output to filter the output voltage, making it smooth and stable. C1 can be a 100μF electrolytic capacitor. C2 is typically connected in parallel at the output to further filter and suppress high-frequency noise. C2 can be a 10nF ceramic capacitor. GND is the ground connection to ensure circuit stability. Therefore, for filtering, a 100uF electrolytic capacitor and a 10nF ceramic capacitor are used to provide good filtering, and a 10uH inductor is used to further smooth the output voltage.
[0034] Therefore, through the setting of the above-mentioned energy management circuit 112, not only the charging efficiency of the smart lock 10 can be dynamically adjusted, but also the stability of the smart lock 10 can be improved.
[0035] See also Figure 5 , Figure 5 The smart lock system 50 includes an external device 51 and a smart lock 52. Figure 1-4 In the smart lock structure of any of the above embodiments, the external device 51 is provided with an NFC antenna 511, and the external device 51 utilizes the NFC antenna 511 to perform near field communication with the smart lock 52. The external device 51 can be a mobile phone or other device with NFC function.
[0036] In this way, the user can use the NFC function of the external device 51 to wirelessly charge the smart lock 52 to unlock it. The user only needs to bring the external device 51, such as a mobile phone, close to the smart lock 52. The external device 51 and the smart lock 52 are connected via near-field communication. The smart lock 52 can then be reverse-charged based on NFC to achieve emergency door opening. In addition, because the smart lock 52 can adaptively control the charging power, it can achieve efficient thermal management and improve the stability of the smart lock system 50.
[0037] See also Figure 6 , Figure 6 : is a flow chart of an embodiment of an image defect detection method provided by the present application, the method comprising:
[0038] S61: Obtaining an external first power source.
[0039] The smart lock obtains the first external power source from an external device using near-field communication. The external device includes, but is not limited to, any device that can interact with the smart lock using near-field communication, such as a mobile phone. The external device is equipped with an NFC antenna, which enables near-field communication between the external device and the smart lock. Since near-field communication is possible between the external device and the smart lock, the smart lock can obtain the first external power source from the external device using near-field communication, thereby enabling reverse charging based on NFC.
[0040] In one embodiment, when obtaining the external first power source, it is detected that the power supply of the smart lock by the battery of the smart lock is interrupted; when an unlocking request sent by an external device is detected, the external first power source is obtained in response to the unlocking request. Therefore, when the battery of the smart lock itself cannot supply power, an external device can be used to unlock the lock. In one embodiment, before detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, the voltage can be obtained from the battery to control the opening of the smart lock, and therefore, priority is given to using the battery of the smart lock itself for power supply. In one embodiment, after detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, in addition to the above-mentioned detection of the unlocking request sent by the external device, the external first power source is obtained in response to the unlocking request, and the external second power source can also be obtained to charge the smart lock using the external second power source, wherein the external second power source is obtained from an external charging device through the USB interface of the smart lock.
[0041] S62: Process the external first power source and adjust the final charging power of the smart lock.
[0042] Taking into account that external factors may affect the charging power during the power charging process, this application processes the external first power supply after obtaining the external first power supply and adjusts the final charging power of the smart lock.
[0043] In one embodiment, when processing the external first power source and adjusting the final charging power of the smart lock, a preset charging power value can be obtained and the preset charging power value can be used as the final charging power so that the smart lock can be charged with a constant final charging power.
[0044] In another embodiment, the preset configuration parameters of the smart lock can be obtained. The preset configuration parameters include the target temperature value and the coefficients of the PID control algorithm. The current temperature value when the smart lock is charged using the external first power supply is obtained. Based on the preset configuration parameters and the current temperature value, the PID control algorithm is used to adjust the final charging power of the smart lock. Therefore, the PID control algorithm is used to dynamically adjust the charging power to ensure efficient charging under different environmental conditions. In one embodiment, when processing the external first power supply, the external first power supply can be synchronously rectified using a synchronous rectification circuit, and then the DC-DC converter is used to perform DC-DC conversion on the synchronously rectified external first power supply. In order to achieve temperature monitoring and protection and prevent the MOS transistor in the synchronous rectification circuit from being damaged due to overheating, a temperature sensor can be installed near the MOS transistor to monitor the temperature in real time, and a temperature protection circuit can be designed. When the temperature exceeds the threshold, the MOS transistor is automatically shut down to prevent overheating damage. Therefore, after obtaining the current temperature value when the smart lock is charged using the external first power supply, if it is detected that the current temperature value is greater than the preset temperature threshold, the synchronous rectification circuit is shut down and charging of the smart lock is stopped.
[0045] S63: Use the final charging power to charge the smart lock.
[0046] By using the final charging power obtained by adjustment to charge the smart lock, dynamic adjustment of the charging power can be achieved, so that the charging power is more in line with actual needs.
[0047] S64: When it is detected that the voltage value after charging reaches the preset voltage value, the smart lock is controlled to be opened.
[0048] After the smart lock is charged, if the voltage detected after charging reaches a preset voltage value, the smart lock is controlled to be unlocked. The unlocking methods of the smart lock of this application include but are not limited to password unlocking, fingerprint unlocking, face unlocking, audio unlocking, and other forms. Therefore, the unlocking signal of this application includes but is not limited to unlocking password, unlocking fingerprint, unlocking face unlocking, and unlocking audio. After the smart lock obtains the unlocking signal, based on the unlocking signal, it controls the door lock switch unit of the smart lock to unlock the smart lock. In addition, it can obtain an alarm signal, and based on the alarm signal, it controls the audio driver unit of the smart lock to sound an alarm.
[0049] In one embodiment, when it is detected that the voltage value after charging reaches a preset voltage value and the smart lock is controlled to be opened, it is detected that the current power supply source is an external first power source; a permission authentication request is sent to the external device, so that the external device responds to the permission authentication request and feeds back a permission authentication reply; it is determined whether the permission authentication reply meets the permission authentication conditions; if so, the step of detecting that the voltage value after charging reaches the preset voltage value and controlling the smart lock to be opened is executed; if not, the control to open the smart lock is not executed, and an authentication failure message including no permission to unlock is sent to the external device.
[0050] Through the above method, the smart lock uses near-field communication to obtain an external first power source from an external device, which can realize wireless charging of the smart lock. After obtaining the external first power source, the external first power source is processed and the final charging power of the smart lock is adjusted, so as to use the final charging power to charge the smart lock, and then when it is detected that the voltage value after charging reaches the preset voltage value, the smart lock is controlled to be turned on. Based on this, since the smart lock can dynamically adjust the charging power during wireless charging, the charging optimization of the smart lock can be realized.
[0051] See also Figure 7 , Figure 7 FIG. 1 is a flow chart of another embodiment of the image defect detection method provided by the present application, the method comprising:
[0052] S71: Obtain voltage from the battery and control the opening of the smart lock.
[0053] In this embodiment, the battery of the smart lock itself is preferentially used to power the smart lock. Therefore, before it is detected that the power supply of the smart lock by the battery is interrupted, the voltage is obtained from the battery, so that the smart lock can be controlled to open.
[0054] S72: When it is detected that the power supply of the smart lock by the battery of the smart lock is interrupted and an unlocking request sent by an external device is detected, an external first power source is obtained in response to the unlocking request.
[0055] After detecting that the power supply of the smart lock by the battery is interrupted, if an unlocking request sent by an external device is detected, the external first power source is obtained in response to the unlocking request. Therefore, when the battery is out of power, the external first power source can be obtained from the external device so that emergency unlocking can be performed using the external device.
[0056] S73: Performing synchronous rectification on the external first power supply by using a synchronous rectification circuit, and performing DC-DC conversion on the synchronously rectified external first power supply by using a DC-DC converter.
[0057] The external first power supply is processed by performing synchronous rectification on the external first power supply using a synchronous rectification circuit and performing DC-DC conversion on the synchronously rectified external first power supply using a DC-DC converter.
[0058] S74: Obtain preset configuration parameters of the smart lock, which include a target temperature value and coefficients of a PID control algorithm; obtain a current temperature value when the smart lock is charged using an external first power source; and adjust the final charging power of the smart lock using a PID control algorithm based on the preset configuration parameters and the current temperature value.
[0059] First, obtain the preset configuration parameters of the smart lock, which include the target temperature value and the coefficients of the PID control algorithm, so as to achieve initialization. For example, the target temperature value (r(t)): set the target temperature, for example, 35 ° C. Initial error (e(0)): initial temperature error, set to 0. Integral error (I(0)): initial integral error, set to 0. Differential error (D(0)): initial differential error, set to 0. Proportional coefficient (K_p), integral coefficient (K_i), differential coefficient (K_d): set according to system characteristics, for example (K_p = 0.1), (K_i = 0.01), (K_d = 0.05). The size of the proportional coefficient, integral coefficient, and differential coefficient can be other values, which are not specifically limited here.
[0060] Secondly, the current temperature value when the smart lock is charged by the external first power supply is obtained. For example, the current temperature value (y(t)) is obtained at each sampling period (t).
[0061] Finally, based on the preset configuration parameters and the current temperature value, the PID control algorithm is used to adjust the final charging power of the smart lock. The current temperature error is calculated; the PID term and its control output are calculated; and the charging power is adjusted. Specifically, the current temperature error is calculated as the difference between the target temperature value and the current temperature value, for example, (e(t) = r(t) - y(t)). Calculating the PID terms and their control outputs is to obtain the proportional term, integral term, and differential term, and add the proportional term, integral term, and differential term to obtain the final control output, for example, the proportional term (P(t)): [P(t) = K_pe(t)]; the integral term (I(t)): [I(t) = I(t-T_s) + K_i e(t)T_s]; the differential term (D(t)): [D(t) = K_d\frac{e(t)-e(t-T_s)}{T_s}], and add the proportional term P(t), the integral term I(t), and the differential term D(t) to obtain the final control output (u(t)): [u(t) = P(t) + I(t) + D(t)]. Adjusting the charging power is to adjust the charging power based on the final control output. For example, it is determined whether the final control output u(t) is greater than 0. If the final control output u(t) is greater than 0, indicating that the current temperature value is lower than the target temperature value, the charging power is increased according to the preset charging power adjustment rule to obtain the final charging power; if the final control output u(t) is less than 0, indicating that the current temperature value is higher than the target temperature value, the charging power is reduced according to the preset charging power adjustment rule to obtain the final charging power. The preset charging power adjustment rule can be set as needed. In one embodiment, the preset charging power adjustment rule is to adjust the final charging power to a preset charging power value. In one embodiment, the preset charging power adjustment rule is to obtain a power adjustment comparison table that includes a correlation between the current temperature error and the charging power adjustment gradient, and adjust the charging power based on the current temperature error. The power adjustment comparison table includes at least one correlation between the current temperature error and the charging power adjustment gradient. As long as the current temperature error is known, the amount of charging power that needs to be adjusted can be determined.
[0062] To clearly explain step S74, the first sampling cycle is used as an example. Obtain the preset configuration parameters of the smart lock and initialize it: Assume that the target temperature value is (r(t) = 35) ° C, the sampling cycle is (T_s = 1) seconds, the proportional coefficient (K_p = 0.1), the integral coefficient (K_i = 0.01), and the differential coefficient (K_d = 0.05). Obtain the current temperature value of the first sampling cycle when the smart lock is charged using the external first power supply, which is (y(t) = 40) ° C. Calculate the current temperature error: (e(1) = 35-40 = -5). Calculate the PID terms and their control outputs: (P(1) = 0.1\times(-5) = -0.5); (I(1) = 0 + 0.01\times(-5)\times 1 = -0.05); (D(1) = 0.05\times\frac{-5-0}{1} = -0.25); (u(1) = -0.5 + (-0.05) + (-0.25) = -0.8). Adjust the charging power: Reduce the charging power based on (u(1) = -0.8). Therefore, precise control of thermal management can be achieved to ensure that the system operates within the optimal temperature range.
[0063] S75: Use the final charging power to charge the smart lock.
[0064] S76: Detecting that the voltage value after charging reaches the preset voltage value, controlling the smart lock to be opened.
[0065] For relevant instructions on steps S75-S76, please refer to the above steps S63-S64, which will not be repeated here.
[0066] Through the above method, on the basis of retaining the original battery charging unlocking function of the smart lock, the NFC passive unlocking function is integrated, so that the mobile phone can communicate with the door lock NFC charging and unlock it, solving the problem of opening the door when the home smart lock is out of power, realizing emergency door opening, and optimizing the charging circuit, dynamically adjusting the charging efficiency, and realizing efficient thermal management by introducing the PID control algorithm, effectively improving the system stability.
[0067] The above-mentioned smart lock charging method, smart lock and various embodiments of the system can be used independently or in combination, and will not be described in detail here.
[0068] In the several embodiments provided in this application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of modules or units is merely a logical functional division. In actual implementation, other division methods may be used. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not implemented.
[0069] Units described as separate components may or may not be physically separate, and components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.
[0070] In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional units.
[0071] The above are merely embodiments of the present application and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A charging method for a smart lock, characterized in that: The method comprises: Obtaining an external first power source, where the external first power source is obtained by the smart lock from an external device using near field communication; Processing the external first power source to adjust the final charging power of the smart lock; Using the final charging power to charge the smart lock; When it is detected that the voltage value after charging reaches a preset voltage value, the smart lock is controlled to be opened.
2. The charging method of the smart lock according to claim 1, characterized in that: The adjusting the final charging power of the smart lock includes: Obtaining preset configuration parameters of the smart lock, wherein the preset configuration parameters include a target temperature value and a coefficient of a PID control algorithm; Acquire a current temperature value when the smart lock is charged by the external first power source; Based on the preset configuration parameters and the current temperature value, the final charging power of the smart lock is adjusted using the PID control algorithm.
3. The charging method of the smart lock according to claim 2, characterized in that: The processing of the external first power source includes: Performing synchronous rectification on the external first power supply by using a synchronous rectification circuit; Performing DC-DC conversion on the external first power source after synchronous rectification using a DC-DC converter; After obtaining the current temperature value when the smart lock is charged by the external first power source, the method further includes: If it is detected that the current temperature value is greater than a preset temperature threshold, the synchronous rectification circuit is turned off and charging of the smart lock is stopped.
4. The charging method of the smart lock according to claim 1, characterized in that: The step of obtaining an external first power source includes: Detecting that the power supply of the smart lock by the battery of the smart lock is interrupted; When an unlocking request sent by the external device is detected, the external first power source is acquired in response to the unlocking request.
5. The charging method of the smart lock according to claim 4, characterized in that: Before detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, the method includes: Obtaining voltage from the battery to control the opening of the smart lock; and / or, After detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, the method further includes: Obtain an external second power source to charge the smart lock using the external second power source, wherein the external second power source is obtained from an external charging device through a USB interface of the smart lock.
6. The charging method of the smart lock according to claim 1, characterized in that: The detecting that the voltage value after charging reaches a preset voltage value and controlling to open the smart lock comprises: Detecting that the current power supply source is the external first power supply; Sending a permission authentication request to the external device, so that the external device feeds back a permission authentication reply in response to the permission authentication request; Determining whether the authority authentication reply satisfies the authority authentication condition; If yes, executing the step of detecting that the voltage value after charging reaches the preset voltage value and controlling the smart lock to be opened; If not, the control to open the smart lock is not executed, and an authentication failure message including unauthorized unlocking is sent to the external device.
7. The charging method of the smart lock according to any one of claims 1 to 6, characterized in that: The controlling of opening the smart lock comprises: Obtaining an unlocking signal, wherein the unlocking signal includes an unlocking password, an unlocking fingerprint, an unlocking face, or an unlocking audio; Based on the unlocking signal, controlling the door lock switch unit of the smart lock to unlock the smart lock; and / or, Get alarm signal; Based on the alarm signal, the audio driving unit of the smart lock is controlled to issue an alarm.
8. A smart lock, characterized in that: The smart lock includes an external charging module and a door lock module, the external charging module includes an NFC energy coil, an energy management circuit, and an energy storage circuit connected in sequence, the door lock module includes a door lock control unit and a door lock switch unit connected in sequence, and the energy storage circuit is connected to the door lock control unit; The NFC energy coil is used to obtain an external first power source from an external device using near field communication; The energy management circuit is used to process the external first power supply, adjust the final charging power of the smart lock, and use the final charging power to charge the energy storage circuit of the smart lock; The door lock control unit is used to detect that the voltage value of the energy storage circuit after charging reaches a preset voltage value, and control the door lock switch unit to open the smart lock.
9. The smart lock according to claim 8, characterized in that: The energy management circuit includes a charging control unit, wherein the charging control unit stores preset configuration parameters, wherein the preset configuration parameters include a target temperature value and coefficients of a PID control algorithm; The charging control unit is used to obtain the current temperature value when the smart lock is charged by the external first power supply; Based on the preset configuration parameters and the current temperature value, the final charging power of the smart lock is adjusted using the PID control algorithm, and / or, The charging control unit is also used to detect an unlocking request sent by the external device after detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, and then, in response to the unlocking request, obtain the external first power supply using the NFC energy coil.
10. The smart lock according to claim 9, characterized in that: The energy management circuit includes a synchronous rectification circuit and a DC-DC converter connected in sequence, and the synchronous rectification circuit includes a MOS tube and a temperature sensor connected to the MOS tube, and the synchronous rectification circuit is connected to the charging control unit; The synchronous rectification circuit is used to perform synchronous rectification on the external first power supply; The DC-DC converter is used to perform DC-DC conversion on the external first power supply after synchronous rectification; The temperature sensor is used to detect the current temperature value when the smart lock is charged using the external first power supply. The charging control unit is also used to detect that the current temperature value is greater than a preset temperature threshold, then shut down the synchronous rectification circuit and stop charging the smart lock.
11. The smart lock according to claim 8, characterized in that: The smart lock includes a battery connected to the door lock control unit. Before detecting that the power supply of the smart lock by the battery to the smart lock is interrupted, the door lock control unit is further used to obtain voltage from the battery to control the opening of the smart lock, and / or, The smart lock includes a USB interface. After detecting that the power supply of the smart lock by the battery of the smart lock is interrupted, the door lock control unit is also used to obtain an external second power supply to charge the smart lock using the external second power supply, wherein the external second power supply is obtained from an external charging device through the USB interface of the smart lock.
12. The smart lock according to claim 8, characterized in that: The external charging module further includes an NFC communication coil and an NFC chip connected in sequence, and the NFC chip is connected to the door lock control unit; The door lock control unit is used to send an authorization authentication request to the external device through the NFC chip and the NFC communication coil, so that the external device feeds back an authorization authentication reply in response to the authorization authentication request; The door lock control unit is also used to detect that the voltage value of the energy storage circuit after charging reaches a preset voltage value when it is determined that the authority authentication reply satisfies the authority authentication conditions, and control the opening of the smart lock; or, the door lock control unit is also used to not execute the control to open the smart lock when it is determined that the authority authentication reply does not satisfy the authority authentication conditions, and send authentication failure information containing unauthorized unlocking to the external device through the NFC chip and the NFC communication coil.
13. The smart lock according to any one of claims 8 to 12, characterized in that: The door lock control unit comprises a first door lock control unit and a second door lock control unit connected to each other; The first door lock control unit is connected to a first battery, and the second door lock control unit is connected to a second battery, wherein the first battery is used to power the first door lock control unit, and the second battery is used to power the second door lock control unit; The first door lock control unit is connected to the door lock switch unit, and the first door lock control unit is connected to at least one of a key circuit unit, a fingerprint function unit, a card swiping function unit, and an audio drive unit, wherein the key circuit unit is used to collect an unlocking password input by a user, the fingerprint function unit is used to collect an unlocking fingerprint input by a user, the card swiping function unit is used to identify the unlocking password in an unlocking card used by a user, and the audio drive unit is used to issue an alarm after the first door lock control unit obtains an alarm signal; The second door lock control unit is connected to at least one of a video image unit, a face door opening unit, a wandering detection unit, a voice intercom unit, and a wireless connection unit, wherein the video image unit is used to obtain and send the user's video image information to the second door lock control unit, the face door opening unit is used to obtain and send the user's face recognition information to the second door lock control unit, the wandering detection unit is used to obtain and send the user's wandering detection information in front of the smart lock to the second door lock control unit, the voice intercom unit is used to obtain and send the user's voice information to the second door lock control unit, and the wireless connection unit is used for the smart lock to connect to a wireless network, and the second door lock control unit is used to generate an unlocking signal or an alarm signal after obtaining at least one of the video image information, face recognition information, wandering detection information, and user voice information.
14. A smart lock system, characterized in that: Comprising an external device and a smart lock as claimed in any one of claims 8 to 13; The external device is provided with an NFC antenna, and the external device uses the NFC antenna to perform near field communication with the smart lock.