Smart door lock automatic time synchronization method and device, equipment, and storage medium

By introducing forward-conducting diodes and energy storage capacitors into smart door locks, combined with Bluetooth broadcasting and door opening history records, the problem of inaccurate time caused by battery replacement or charging is solved, low-power, high-accuracy automatic time calibration is achieved, and the user experience is improved.

CN115631559BActive Publication Date: 2025-09-05DESSMANN CHINA MACHINERY & ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211310082.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-25
Publication Date
2025-09-05
Estimated Expiration
2042-10-25

AI Technical Summary

Technical Problem

When replacing batteries or charging existing smart door locks, the clock chip will lose power and reset, resulting in inaccurate time, and there is a lack of effective solutions.

Method used

The clock circuit design, including forward-conducting diodes and energy storage capacitors, ensures that the clock chip can still be powered after a power outage. Combined with Bluetooth broadcasts and door opening history records, the time is automatically adjusted to maintain accurate time. If the clock circuit fails, the manufacturer's information Bluetooth broadcast or door opening history records are used to correct the time.

Benefits of technology

Under low power consumption conditions, the accuracy of smart door lock time and the improvement of user experience are achieved, the time inaccuracy caused by battery replacement or charging is avoided, and a multi-channel time calibration mechanism is provided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115631559B_ABST
    Figure CN115631559B_ABST
Patent Text Reader

Abstract

The present invention provides a method and apparatus, device, and storage medium for automatically calibrating a smart door lock. The method includes: automatically calibrating the smart door lock using a clock circuit; when the clock circuit fails, searching for a first Bluetooth broadcast message based on a user's door-opening action; if a first Bluetooth broadcast message matching the smart door lock's manufacturer information is successfully searched, automatically calibrating the smart door lock based on the time information of the first Bluetooth broadcast message; if a first Bluetooth broadcast message matching the smart door lock's manufacturer information cannot be searched, estimating the smart door lock's door-opening time after the clock circuit fails using door-opening history records; and automatically calibrating the smart door lock based on the estimated door-opening time. The present invention automatically calibrates the smart door lock using multiple methods, which can largely ensure the accuracy of the door lock system time, thereby achieving the technical effect of improving the user experience without the user being aware of it.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart door locks, and in particular to a method and device for automatic time synchronization of a smart door lock, equipment, and storage medium. Background Art

[0002] Existing smart door locks are all equipped with a clock chip to ensure the accuracy of the real-time time. However, smart door locks are generally battery-powered, and their overall low-power design ensures long-lasting battery life. When the battery is removed for replacement or charging, the clock chip will be reset due to power loss, resulting in inaccurate time in the smart door lock.

[0003] With respect to the problem in the above-mentioned related technologies that the smart door lock needs to be removed for battery replacement or battery charging, resulting in inaccurate time of the smart door lock, no effective solution has been proposed so far. Summary of the Invention

[0004] The embodiments of the present invention provide a method and apparatus, device, and storage medium for automatic time synchronization of a smart door lock, so as to overcome the problem in the related art that the smart door lock needs to be removed for battery replacement or battery charging, resulting in inaccurate time of the smart door lock.

[0005] To achieve the above objectives, a first aspect of an embodiment of the present invention provides a method for automatically synchronizing a smart door lock, comprising:

[0006] Automatically calibrate the time of the smart door lock through the clock circuit;

[0007] When the clock circuit fails, searching for a first Bluetooth broadcast message according to the user's door opening action; the first Bluetooth broadcast message is a Bluetooth broadcast message that matches the manufacturer information of the smart door lock;

[0008] If a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched, the smart door lock is automatically timed according to the time information contained in the first Bluetooth broadcast message;

[0009] If the first Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be searched, the door opening history record is used to estimate the door opening time of the smart door lock after the clock circuit fails; and the smart door lock is automatically calibrated according to the estimated door opening time.

[0010] The automatic time synchronization method for smart door locks provided by the present invention automatically synchronizes the time of the smart door lock in a variety of ways, which can ensure the accuracy of the door lock system time to a large extent, thereby achieving the technical effect of improving the user experience without the user being aware of it.

[0011] Preferably, the clock circuit includes a clock chip, a diode, an energy storage capacitor and a decoupling capacitor. The forward-set diode is connected between the battery of the smart door lock and the power pin of the clock chip. The energy storage capacitor is connected in series between the power pin of the clock chip and the ground, and the decoupling capacitor is connected in parallel with the energy storage capacitor.

[0012] The automatic time calibration method for smart door locks provided by the present invention can achieve the technical effect of continuing to supply power to the clock chip after the door lock is powered off, so that the door lock time remains accurate for a short time, by setting a forward-conducting diode and a storage capacitor for energy storage in the clock circuit; and preventing the energy of the energy storage capacitor from flowing back into the battery and causing waste.

[0013] Preferably, when the clock circuit fails, before searching for the first Bluetooth broadcast message according to the user's door opening action, the method further includes:

[0014] Real-time detection of characteristic values ​​of the temporary storage space in the clock chip;

[0015] When the characteristic value changes, it is determined that the clock circuit has failed;

[0016] When the characteristic value does not change, it is determined that the clock circuit is not failed.

[0017] The automatic time calibration method for an intelligent door lock provided by the present invention determines whether a clock circuit has failed by judging whether a characteristic value of a temporary storage space has changed. This method can simply and quickly determine whether the door unlocking time is accurate, and the judgment cost is low.

[0018] Preferably, the method further comprises:

[0019] When the clock circuit is not invalid, packaging the manufacturer information and time information of the smart door lock into a second Bluetooth broadcast message;

[0020] The second Bluetooth broadcast message is broadcasted, and the second Bluetooth broadcast message is used for automatic time calibration of one or more smart door locks within a preset space range.

[0021] The automatic time calibration method for smart door locks provided by the present invention can provide time data for automatic time calibration for other failed door locks in the surrounding space by broadcasting the manufacturer information and time information of the smart door lock to the surrounding space.

[0022] Preferably, the door opening history record represents the door opening time information within a preset time range of the smart door lock when the clock circuit is not invalid;

[0023] The method of estimating the door opening time of the smart door lock after the clock circuit fails by using the door opening history record includes:

[0024] Determine whether there is any door opening behavior in the door opening history record of the smart door lock within the same time period of each day within a preset number of days;

[0025] If the door opening behavior exists, the door opening time of the smart door lock after the clock circuit fails is estimated based on the door opening time in the same time period of each day within the preset number of days to obtain the estimated door opening time.

[0026] The automatic time calibration method for smart door locks provided by the present invention estimates the opening time of the smart door lock after the clock circuit fails by using the door opening time within the same time period of each day within a preset number of days. It can also calculate the user's past door opening habits and provide a time basis for the door lock opening time when the door lock time is inaccurate and cannot be calibrated.

[0027] Preferably, estimating the door opening time of the smart door lock after the clock circuit fails based on the door opening time within the same time period of each day within the preset number of days to obtain the estimated door opening time includes:

[0028]

[0029] Among them, T1 represents the estimated door opening time, T i Indicates the door opening time within the same time period of each day within the preset number of days, and m represents the preset number of days.

[0030] Preferably, the automatic time adjustment of the smart door lock according to the estimated door opening time includes:

[0031] Obtain the time difference between the opening time of the smart door lock and the current time after the clock circuit fails;

[0032] The smart door lock is automatically calibrated based on the time difference and the estimated door opening time to obtain the current actual time used to calibrate the smart door lock.

[0033] The automatic time calibration method for smart door locks provided by the present invention can automatically calibrate the smart door lock by using the time difference and the estimated door opening time when the door lock time is inaccurate and cannot be calibrated, providing a time basis for the current time of the door lock, thereby realizing low-power and low-cost automatic time calibration of the door lock.

[0034] A second aspect of an embodiment of the present invention provides an automatic time synchronization device for a smart door lock, comprising:

[0035] Clock calibration module, used to automatically calibrate the smart door lock through the clock circuit;

[0036] a message search module, configured to search for a first Bluetooth broadcast message according to a door opening action by a user when the clock circuit fails; the first Bluetooth broadcast message being a Bluetooth broadcast message that matches the manufacturer information of the smart door lock;

[0037] A message time calibration module, configured to automatically calibrate the time of the smart door lock according to the time information contained in the first Bluetooth broadcast message if a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched;

[0038] The estimated time synchronization module is used to estimate the opening time of the smart door lock after the clock circuit fails by using the door opening history record if the first Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be searched; and automatically synchronize the time of the smart door lock according to the estimated door opening time.

[0039] According to a third aspect of an embodiment of the present invention, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the steps of the above-mentioned method embodiments when executing the computer program.

[0040] According to a fourth aspect of an embodiment of the present invention, a readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the steps of the method of the first aspect of the present invention and various possible designs of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the specific embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0042] Figure 1 This is a flow chart of the automatic time synchronization method for a smart door lock according to Example 1 of the present invention.

[0043] Figure 2 Schematic diagram of the clock circuit.

[0044] Figure 3 This is a structural diagram of a smart door lock.

[0045] Figure 4 A diagram showing the door opening times for each day within a preset number of days before the clock circuit fails.

[0046] Figure 5 This is a principle block diagram of the automatic time synchronization device for an intelligent door lock according to embodiment 2 of the present invention.

[0047] Figure 6 This is a structural diagram of the computer device in Example 3 of the present invention. DETAILED DESCRIPTION

[0048] The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described are only some embodiments of the present invention, not all embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0049] In the description of the present invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are intended solely to facilitate and simplify the description of the present invention. They are not intended to indicate or imply that the devices or components referred to must have, be constructed, or operate in a specific orientation, and therefore should not be construed as limitations on the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.

[0050] In the description of the present invention, it should be noted that, unless otherwise expressly specified or limited, the terms "installed," "connected," and "connected" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integral connections; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components; wireless connections or wired connections. Those skilled in the art will understand the specific meanings of the above terms in the present invention based on specific circumstances.

[0051] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0052] Example 1

[0053] This embodiment provides a method for automatic time synchronization of a smart door lock, which is applied to a main control chip, such as Figure 1 As shown, the available days estimation method includes the following steps but is not limited to steps S100 to S400.

[0054] S100: Automatically calibrate the time of the smart door lock through the clock circuit.

[0055] like Figure 2As shown, the clock circuit in an optional embodiment of the present invention includes a clock chip U1, a diode D1, an energy storage capacitor C2, and a decoupling capacitor C1. A forward-set diode D1 is connected between the battery of the smart door lock (shown in the figure by the power supply VCC) and the power supply pin VDD of the clock chip. An energy storage capacitor C2 is connected in series between the power supply pin VDD of the clock chip U1 and the ground GND of the power supply. The decoupling capacitor C1 is connected in parallel with the energy storage capacitor C2. Among them, the input end of the diode D1 is connected to the power supply VCC, and the output end is connected to the power supply pin VDD-8 of the clock chip U1; the input end of the energy storage capacitor C2 is connected to the output end of the diode D1, and the output end of the energy storage capacitor C2 is connected to the ground GND of the power supply; one end of the decoupling capacitor C1 is connected to the power supply pin VDD-8 of the clock chip, and the other end is connected to the output end of the energy storage capacitor C2. Specifically, the first and second pins of the clock chip U1 represent the empty pin NC, the third and seventh pins represent the interrupt request output lines IRQ1 and IRQ2, the fourth pin represents the analog ground power ground pin GND of the clock chip, the fifth pin represents the data line SDA, the sixth pin represents the clock signal line SCL, and the eighth pin represents the power line VDD of the clock chip; in this embodiment, the ground of the clock chip U1 can be the same as the ground of the above-mentioned power supply, and can be Figure 2 GND shown in .

[0056] More specifically, during the operation of the clock circuit, the current from the power supply VCC is transmitted unidirectionally through diode D1 to the energy storage capacitor C2. After being filtered by decoupling capacitor C1, it is input into the power pin of the clock chip to supply energy to the clock chip U1. When the battery of the smart door lock is removed for replacement or charging, the power supply VCC is disconnected. The energy stored in the energy storage capacitor C2 can keep the clock chip operating for a period of time. And under the limitation of the unidirectional conduction of diode D1, the energy in the energy storage capacitor C2 will not flow back to the power supply VCC and cause waste.

[0057] More specifically, the clock chip has an internal 32.768kHz crystal oscillator, whose oscillation period ensures clock accuracy and consumes an average current of around 200 nanoamperes (nA). A 220µF energy storage capacitor, C2, can maintain power to the clock chip for over five minutes. Even if the smart door lock loses power, the clock chip can continue to operate for another five minutes. If the battery is replaced within this time, the lock will maintain accurate time.

[0058] The automatic time calibration method for smart door locks provided by the present invention can achieve the technical effect of continuing to supply power to the clock chip after the door lock is powered off, so that the door lock time remains accurate for a short time, by setting a forward-conducting diode and a storage capacitor for energy storage in the clock circuit; and preventing the energy of the energy storage capacitor from flowing back into the battery and causing waste.

[0059] S200: When the clock circuit fails, searching for a first Bluetooth broadcast message according to the user's door opening action; the first Bluetooth broadcast message is a Bluetooth broadcast message that matches the manufacturer information of the smart door lock.

[0060] Preferably, when the clock circuit fails, before searching for the first Bluetooth broadcast message according to the user's door opening action, it also includes: real-time detection of the characteristic value of the temporary storage space in the clock chip; when the characteristic value changes, it is judged that the clock circuit has failed; when the characteristic value does not change, it is judged that the clock circuit has not failed.

[0061] Specifically, there is a temporary storage space (i.e., the storage space of the random access memory RAM) in the clock chip U1 of the clock circuit, and the external device can read and write RAM data in this temporary storage space. When the battery of the smart door lock is removed for replacement or the battery is removed for charging, the clock chip U1 is powered off, which in turn causes the time information of the clock chip U1 and the written RAM data to be lost. Therefore, it is possible to determine whether the clock circuit has failed based on whether the characteristic value (i.e., RAM data) of the temporary storage space of the clock chip has changed. That is, if the RAM data has changed (for example, the RAM data during the write operation is inconsistent with the RAM data during the read operation), the clock circuit is determined to have failed. If the RAM data has not changed, the clock circuit is determined to be valid.

[0062] The automatic time calibration method for an intelligent door lock provided by the present invention determines whether a clock circuit has failed by judging whether a characteristic value of a temporary storage space has changed. This method can simply and quickly determine whether the door unlocking time is accurate, and the judgment cost is low.

[0063] Preferably, when the clock circuit is not invalid, the manufacturer information and time information of the smart door lock are packaged into a second Bluetooth broadcast message; the second Bluetooth broadcast message is broadcast, and the second Bluetooth broadcast message is used for automatic time calibration of one or more smart door locks within a preset spatial range.

[0064] Specifically, when the clock circuit is not invalid, the clock time of the smart door lock is accurate. The main control chip will package the door lock manufacturer information and time information into the Bluetooth broadcast through low-power Bluetooth broadcasting, and send it once a second to the surrounding space, so that other smart door locks of the same manufacturer within a preset range of the surrounding space (the range can be set according to actual conditions) can automatically calibrate the time. For example, in a residential environment in an apartment building, short-range Bluetooth broadcasts between neighbors can provide time data for surrounding failed devices.

[0065] The automatic time calibration method for smart door locks provided by the present invention can provide time data for automatic time calibration for other failed door locks in the surrounding space by broadcasting the manufacturer information and time information of the smart door lock to the surrounding space.

[0066] S300: If a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched, the smart door lock is automatically timed according to the time information of the first Bluetooth broadcast message.

[0067] Specifically, when a Bluetooth broadcast message matching the manufacturer information is searched, the time information can be stored and updated in the clock chip of the clock circuit for automatic time calibration of the smart door lock.

[0068] S400: If a Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be found, the door opening history record is used to estimate the door opening time of the smart door lock after the clock circuit fails; and the smart door lock is automatically calibrated according to the estimated door opening time.

[0069] Preferably, the smart door lock includes a clock circuit and a main control chip, such as Figure 3 As shown, the clock circuit can provide real-time clock information for the door lock. The main control chip can read the clock information at any time when receiving the user's unlocking action, which is used to record the door lock operation event time (i.e., the door opening history record) and the timeliness control of the user's door opening. Among them, the door lock operation event time includes door opening and closing records, alarm records (prying, trial and error, etc.). The relevant national standards require door locks to record key events and facilitate the tracing of user operation records. The timeliness control of user door opening can be expressed as controlling the user's door opening time. For example, a fingerprint set by the APP can only open the door within a certain time period of a certain day, or only a few days of the week are allowed to open the door, limiting the user's usage time (if the door lock time is inaccurate, it will cause the function to malfunction). The user can also actively connect and communicate with the smart door lock through the mobile phone Bluetooth. The mobile phone can send the accurate time to the door lock to update the door lock's real-time clock information.

[0070] Step S400, using the door opening history record to estimate the door opening time of the smart door lock after the clock circuit fails, includes:

[0071] S410: Determine whether there is any door opening behavior in the same time period of each day within a preset number of days in the door opening history record of the smart door lock; the door opening history record represents all door opening time information of the smart door lock when the clock circuit is not invalid.

[0072] S420: If there is a door opening behavior, the door opening time of the smart door lock after the clock circuit fails is estimated based on the door opening time in the same time period of each day within the preset number of days to obtain an estimated door opening time.

[0073] Specifically, based on the door opening time within the same time period of each day within the preset number of days, the door opening time of the smart door lock after the clock circuit fails is estimated to obtain the estimated door opening time, including:

[0074]

[0075] Among them, T1 represents the estimated door opening time, T i Indicates the door opening time within the same time period of each day within the preset number of days, and m represents the preset number of days.

[0076] In steps S410-S420, the main control chip will record all the door opening times (the clock circuit provides real-time clock information for the door lock) when the clock circuit is valid (i.e. the door lock time is accurate) and when the clock circuit fails (i.e. the door lock time is inaccurate). When the clock circuit fails (i.e. the door lock time is inaccurate), the main control chip will analyze the door opening times for each day within a preset number of days (e.g. 5 days) before the failure, as shown in the following example. Figure 4 As shown; and the door opening time interval and the number of door openings within the preset time (e.g., 24 hours) after the clock circuit fails are analyzed; if the number of door openings and the door opening time interval within the preset time (24 hours) after the failure are the same as each day of the preset number of days (e.g., 5 days) before the failure, the door opening time within the preset time (e.g., 24 hours) after the failure can be determined based on the door opening time of the previous five days.

[0077] For example: if there are door opening records from 8:00-8:30 in the morning and from 6:00-6:30 in the evening for every day of the 5 days before the clock circuit fails, with a time interval of 10 hours; and after the clock circuit fails, there are door opening records from 9:00-9:30 in the morning and from 7:00-7:30 in the evening, with a time interval of 10 hours, then it can be determined that the door opening events 5 days before the clock failure and the door opening events after the clock circuit fails have the same number of door openings and time intervals. Therefore, the door opening time after the clock circuit fails can be determined based on the door opening time 5 days before the clock failure, that is: the door opening time on the morning of the 1st day is 8:05, the door opening time on the morning of the 2nd day is 8:10, the door opening time on the morning of the 3rd day is 8:15, the door opening time on the morning of the 4th day is 8:20, and the door opening time on the morning of the 5th day is 8:25. According to the following formula, the door opening time in the morning after the clock fails can be calculated to be 8:15;

[0078]

[0079]

[0080] Similarly, the above method can be used to calculate the door opening time in the afternoon after the clock fails.

[0081] The automatic time calibration method for smart door locks provided by this invention estimates the door opening time after a clock circuit failure by using the door opening times during the same time period on each day within a preset number of days. This method can also estimate the user's past door opening habits, providing a time basis for the door lock's opening time when the door lock time is inaccurate and time calibration is unavailable. Furthermore, since people generally enter and exit the door regularly for work or school, time accuracy can be highly guaranteed.

[0082] Automatically adjust the time of the smart door lock based on the estimated door opening time, including:

[0083] S430: Obtain the time difference between the opening time of the smart door lock after the clock circuit fails and the current time.

[0084] Determine the time difference between the first error time information and the second error time information; the first error time information indicates the opening time of the smart door lock after the clock circuit fails, and the second error time information indicates the current time of the smart door lock after the clock circuit fails.

[0085] S440: Automatically calibrate the smart door lock based on the time difference and the estimated door opening time to obtain the current actual time used to calibrate the smart door lock.

[0086] According to the time difference and the estimated door opening time, the smart door lock is automatically calibrated to obtain the current actual time used to calibrate the smart door lock; the estimated door opening time represents the actual door opening time corresponding to the first error time; the current actual time represents the actual time corresponding to the second error time information.

[0087] Specifically, the smart door lock is automatically calibrated based on the time difference and the estimated door opening time to obtain the current actual time used for calibrating the smart door lock, including:

[0088] T2=T1+T

[0089] Among them, T2 represents the current actual time, T1 represents the estimated door opening time, and T represents the time difference.

[0090] Steps S430-S440 are illustrated by the following example: the smart door lock that is powered on again after the clock circuit fails displays a certain door opening time of 9.15 (i.e., the door opening time t1 of the smart door lock after the clock circuit fails, which is an inaccurate time), but the actual time corresponding to the door opening time t1 is 8.35 (i.e., the estimated door opening time T1, which is an accurate time); the current time displayed by the smart door lock after the clock circuit fails is 10.15 (i.e., the current time t2 after the clock circuit fails, which is an inaccurate time), and t2-t1=10.15-9.15=1 hour (i.e., the time difference T) is calculated. The current actual time T2 is calculated by the estimated door opening time T1 and the time difference T (the current actual time corresponding to t2 is an accurate time):

[0091] T2=T1+T=8.35+1=9.35

[0092] The automatic time calibration method for smart door locks provided by the present invention can automatically calibrate the smart door lock by using the time difference and the estimated door opening time when the door lock time is inaccurate and cannot be calibrated, providing a time basis for the current time of the door lock, thereby realizing low-power and low-cost automatic time calibration of the door lock.

[0093] The technical solution of this application also has the following technical effects:

[0094] The automatic time synchronization method for smart door locks provided by the present invention ensures the accuracy of the door lock system time to the greatest extent at low cost through multi-channel time synchronization, and at the same time, the implementation of functions based on time is also guaranteed, thereby improving the user experience without the user's perception.

[0095] Example 2

[0096] This embodiment provides a smart door lock automatic time adjustment device, such as Figure 5 Shown, including:

[0097] Clock calibration module, used to automatically calibrate the smart door lock through the clock circuit;

[0098] A message search module is used to search for a first Bluetooth broadcast message based on the user's door opening action when the clock circuit fails; the first Bluetooth broadcast message is a Bluetooth broadcast message that matches the manufacturer information of the smart door lock;

[0099] A message time calibration module is configured to automatically calibrate the time of the smart door lock according to the time information contained in the first Bluetooth broadcast message if a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched;

[0100] The estimated time synchronization module is used to estimate the opening time of the smart door lock after the clock circuit fails by using the door opening history record if the first Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be searched; and automatically synchronize the smart door lock according to the estimated door opening time.

[0101] Preferably, the clock circuit includes a clock chip, a diode, an energy storage capacitor and a decoupling capacitor. A forward-set diode is connected between the battery of the smart door lock and the power pin of the clock chip. An energy storage capacitor is connected in series between the power pin of the clock chip and the ground, and the decoupling capacitor is connected in parallel with the energy storage capacitor.

[0102] Preferably, the smart door lock automatic time synchronization device also includes:

[0103] The clock circuit effect judgment module is used to detect the characteristic value of the temporary storage space in the clock chip in real time; when the characteristic value changes, it is judged that the clock circuit has failed; when the characteristic value does not change, it is judged that the clock circuit has not failed.

[0104] Preferably, the smart door lock automatic time synchronization device also includes:

[0105] The broadcast module is used to package the manufacturer information and time information of the smart door lock into a second Bluetooth broadcast message when the clock circuit is not invalid; broadcast the second Bluetooth broadcast message, and the second Bluetooth broadcast message is used to automatically calibrate the time of one or more smart door locks within a preset space range.

[0106] Preferably, the door opening history record represents all door opening time information of the smart door lock when the clock circuit is not invalid, and the estimated time calibration module includes:

[0107] A judgment unit, configured to judge whether there is a door opening behavior in the same time period of each day within a preset number of days in the door opening history record of the smart door lock;

[0108] The estimation unit is used to estimate the door opening time of the smart door lock after the clock circuit fails based on the door opening time in the same time period of each day within a preset number of days if there is a door opening behavior, so as to obtain the estimated door opening time.

[0109] Preferably, the estimating unit estimates the door opening time of the smart door lock after the clock circuit fails in the following manner, including:

[0110]

[0111] Among them, T1 represents the estimated door opening time, T i Indicates the door opening time within the same time period of each day within the preset number of days, and m represents the preset number of days.

[0112] Preferably, the estimated timing module includes:

[0113] A time difference determination unit, used to obtain the time difference between the door opening time of the smart door lock and the current time after the clock circuit fails;

[0114] The automatic time calibration unit is used to automatically calibrate the smart door lock based on the time difference and the estimated door opening time, and obtain the current actual time used to calibrate the smart door lock.

[0115] Example 3

[0116] The present invention also provides a computer device, such as Figure 6 As shown, it includes a memory and a processor, the memory stores a computer program that can be run on the processor, and when the processor executes the computer program, it implements the automatic time synchronization method of the smart door lock provided by the various embodiments mentioned above.

[0117] The present invention also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the automatic time synchronization method for the smart door lock provided by the various embodiments described above is implemented.

[0118] It will be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0119] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0120] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.

[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0122] Obviously, the above embodiments are merely examples for clarity of explanation and are not intended to limit the implementation methods. Those skilled in the art will readily appreciate that other variations or modifications based on the above descriptions are possible. It is not necessary and impossible to enumerate all implementation methods here. Obvious variations or modifications arising therefrom remain within the scope of protection of the present invention.

Claims

1. A method for automatic time synchronization of a smart door lock, characterized in that: include: Automatically calibrate the time of the smart door lock through the clock circuit; When the clock circuit fails, searching for a first Bluetooth broadcast message according to a door opening action of a user; The first Bluetooth broadcast message is a Bluetooth broadcast message that matches the manufacturer information of the smart door lock; If a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched, the smart door lock is automatically timed according to the time information contained in the first Bluetooth broadcast message; If the first Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be searched, the door opening history record is used to estimate the door opening time of the smart door lock after the clock circuit fails; and the smart door lock is automatically calibrated according to the estimated door opening time.

2. The automatic time synchronization method for smart door locks according to claim 1, characterized in that: The clock circuit includes a clock chip, a diode, an energy storage capacitor and a decoupling capacitor. The forward-set diode is connected between the battery of the smart door lock and the power pin of the clock chip. The energy storage capacitor is connected in series between the power pin of the clock chip and the ground, and the decoupling capacitor is connected in parallel with the energy storage capacitor.

3. The automatic time synchronization method for smart door locks according to claim 2, characterized in that: When the clock circuit fails, before searching for the first Bluetooth broadcast message according to the user's door opening action, the method further includes: Real-time detection of characteristic values ​​of the temporary storage space in the clock chip; When the characteristic value changes, it is determined that the clock circuit has failed; When the characteristic value does not change, it is determined that the clock circuit is not failed.

4. The automatic time synchronization method for smart door locks according to any one of claims 1 to 3, characterized in that: The method further comprises: When the clock circuit is not invalid, packaging the manufacturer information and time information of the smart door lock into a second Bluetooth broadcast message; The second Bluetooth broadcast message is broadcasted, and the second Bluetooth broadcast message is used for automatic time calibration of one or more smart door locks within a preset space range.

5. The automatic time synchronization method for smart door locks according to claim 1, characterized in that: The door opening history record represents the door opening time information within a preset time range of the smart door lock when the clock circuit is not invalid; The method of estimating the door opening time of the smart door lock after the clock circuit fails by using the door opening history record includes: Determine whether there is any door opening behavior in the door opening history record of the smart door lock within the same time period of each day within a preset number of days; If the door opening behavior exists, the door opening time of the smart door lock after the clock circuit fails is estimated based on the door opening time in the same time period of each day within the preset number of days to obtain the estimated door opening time.

6. The automatic time synchronization method for smart door locks according to claim 5, characterized in that: The method of estimating the door opening time of the smart door lock after the clock circuit fails based on the door opening time within the same time period of each day within the preset number of days to obtain the estimated door opening time includes: Among them, T1 represents the estimated door opening time, T i Indicates the door opening time within the same time period of each day within the preset number of days, and m represents the preset number of days.

7. The automatic time synchronization method for smart door locks according to claim 6, characterized in that: The automatically calibrating the smart door lock according to the estimated door opening time includes: Obtain the time difference between the opening time of the smart door lock and the current time after the clock circuit fails; The smart door lock is automatically calibrated based on the time difference and the estimated door opening time to obtain the current actual time used to calibrate the smart door lock.

8. An automatic time-setting device for smart door locks, characterized in that: include: Clock calibration module, used to automatically calibrate the smart door lock through the clock circuit; a message search module, configured to search for a first Bluetooth broadcast message based on a door opening action of a user when the clock circuit fails; The first Bluetooth broadcast message is a Bluetooth broadcast message that matches the manufacturer information of the smart door lock; A message time calibration module, configured to automatically calibrate the time of the smart door lock according to the time information contained in the first Bluetooth broadcast message if a first Bluetooth broadcast message matching the manufacturer information of the smart door lock is successfully searched; The estimated time synchronization module is used to estimate the opening time of the smart door lock after the clock circuit fails by using the door opening history record if the first Bluetooth broadcast message matching the manufacturer information of the smart door lock cannot be searched; and automatically synchronize the time of the smart door lock according to the estimated door opening time.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the smart door lock automatic time synchronization method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the automatic time synchronization method for a smart door lock according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Time management system and method of intelligent door lock, and gateway

    CN109547247A

  • Time synchronization method and device based on Internet of Things, computer and storage medium

    CN111865462A