Intelligent door lock control method, system and related device

By using a linear Hall sensor and an AD sampler to calculate the knob angle in a smart door lock, the problem of inaccurate knob angle identification in existing technologies is solved, enabling accurate identification of knob angle and status judgment.

CN116146047BActive Publication Date: 2026-02-24SHENZHEN KAADAS INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310227391.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-28
Publication Date
2026-02-24
Estimated Expiration
2043-02-28

AI Technical Summary

Technical Problem

Existing smart door locks cannot accurately identify the angle value of the knob, resulting in an inability to accurately determine the door lock status.

Method used

The system employs two linear Hall effect sensors and an AD sampler combined with a processor to acquire voltage values ​​during knob rotation and calculate the target rotation angle of the knob using a formula.

Benefits of technology

It achieves precise recognition of the knob angle, improving the accuracy of smart door lock status recognition and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116146047B_ABST
    Figure CN116146047B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a kind of intelligent door lock control method, system and related device, it is applied to intelligent door lock switch control system, this system includes: knob, first linear hall sensor and second linear hall sensor respectively arranged in the horizontal direction both ends of the knob, AD sampler, processor, the processor is connected first linear hall sensor and second linear hall sensor respectively by AD sampler, one end edge of the knob is provided with magnet;The knob is used to realize the function of opening lock or locking, the method comprises: in the rotation process of the knob, the first voltage value of the first linear hall sensor and the second voltage value of the second linear hall sensor are acquired by the AD sampler;According to the first voltage value and the second voltage value, the target rotation angle of the knob is determined. The angle value of the knob can be accurately identified by the embodiment of the application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart door lock technology, specifically to a smart door lock control method, system, and related devices. Background Technology

[0002] In practical applications, American Standard deadbolt locks have a rotary switch for manual opening and closing. Smart locks need to recognize the rotation angle of the rotary switch to determine the lock's status. However, currently, it is impossible to accurately detect the rotary switch's angle value, thus making it impossible to accurately identify the lock's status. Therefore, the problem of how to accurately identify the rotary switch's angle value urgently needs to be solved. Summary of the Invention

[0003] This application provides an intelligent door lock control method, system, and related device that can accurately identify the angle value of the knob.

[0004] The first aspect of this application provides a smart door lock control method applied to a smart door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in a horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to perform unlocking or locking functions. The method includes:

[0005] During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained by the AD sampler.

[0006] The target rotation angle of the knob is determined based on the first voltage value and the second voltage value.

[0007] A second aspect of this application provides an intelligent door lock control system, which includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at two horizontal ends of the knob, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to perform unlocking or locking functions.

[0008] The AD sampler is used to acquire the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor during the rotation of the knob;

[0009] The processor is configured to determine the target rotation angle of the knob based on the first voltage value and the second voltage value.

[0010] A third aspect of this application provides an intelligent door lock control device for use in an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in a horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to perform unlocking or locking functions. The device includes: a data acquisition unit and a determination unit, wherein...

[0011] The acquisition unit is used to acquire the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor through the AD sampler during the rotation of the knob.

[0012] The determining unit is used to determine the target rotation angle of the knob based on the first voltage value and the second voltage value.

[0013] Fourthly, embodiments of this application provide a smart door lock, including a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the steps in the second aspect of embodiments of this application.

[0014] Fifthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to execute instructions for some or all of the steps described in the first aspect of embodiments of this application.

[0015] Sixthly, embodiments of this application provide a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps described in the first aspect of embodiments of this application. The computer program product may be a software installation package.

[0016] Implementing the embodiments of this application has the following beneficial effects:

[0017] As can be seen, the intelligent door lock control method, system, and related devices described in the embodiments of this application are applied to an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one end edge of the knob. The knob is used to realize the unlocking or locking function. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler. The target rotation angle of the knob is determined according to the first voltage value and the second voltage value. In this way, during the rotation of the knob, the change in magnetic flux between the magnet and the two linear Hall sensors can be converted into a voltage value by using the two linear Hall sensors. The corresponding rotation angle is determined by using the voltage value, thereby achieving accurate identification of the knob's angle value. Attached Figure Description

[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0019] Figure 1 This is a schematic diagram of the structure of an intelligent door lock control system provided in an embodiment of this application;

[0020] Figure 2 This is a flowchart illustrating an intelligent door lock control method provided in an embodiment of this application;

[0021] Figure 3 This is a schematic diagram illustrating the status of a smart door lock provided in an embodiment of this application;

[0022] Figure 4 This is a schematic diagram illustrating the status of another smart door lock provided in an embodiment of this application;

[0023] Figure 5 This is a schematic diagram illustrating the status of another smart door lock provided in an embodiment of this application;

[0024] Figure 6 This is a schematic diagram illustrating the status of another smart door lock provided in an embodiment of this application;

[0025] Figure 7 This is a flowchart illustrating another smart door lock control method provided in an embodiment of this application;

[0026] Figure 8This is a schematic diagram of the structure of a smart door lock provided in an embodiment of this application;

[0027] Figure 9 This is a block diagram of the functional units of an intelligent door lock control device provided in an embodiment of this application. Detailed Implementation

[0028] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0029] The terms "first," "second," "third," and "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products, or apparatuses.

[0030] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0031] In related technologies, smart door lock knobs typically use tactile switches, optocoupler sensors, or Hall effect sensors for status detection to determine the on / off state of the knob. Placing a tactile switch in a specific location can accurately identify the knob's position, but it has drawbacks such as large space occupation, easy damage to physical contact, and only showing the on / off state. Placing an optocoupler sensor in a specific location can accurately identify the knob's position, but it also has drawbacks such as large sensor space occupation, high standby power consumption, and only showing the on / off state. Hall effect sensors can only roughly detect the knob's state, have a large false positive rate, and cannot accurately detect the knob's angle value.

[0032] To address the shortcomings of related technologies, please refer to Figure 1 , Figure 1This is a schematic diagram of a smart door lock control system provided in an embodiment of this application. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to realize the unlocking or locking function.

[0033] Based on this intelligent door lock control system, the following functions can be achieved:

[0034] During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained by the AD sampler.

[0035] The target rotation angle of the knob is determined based on the first voltage value and the second voltage value.

[0036] The processor may include a microprocessor.

[0037] Optionally, the system also has the following functions:

[0038] To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value U of the first Hall sensor. 1Max and minimum value U 1Min Obtain the maximum value U of the second Hall sensor. 2Max and minimum value U 2Min ;

[0039] The following parameters are determined using the following formula:

[0040]

[0041]

[0042]

[0043]

[0044] Wherein, k1 represents the first voltage proportional coefficient, k2 represents the second voltage proportional coefficient; a1 represents the first offset value, and a2 represents the second offset value.

[0045] Optionally, the system further includes: a switch Hall sensor, the switch Hall sensor being disposed in the vertical direction of the knob; the switch Hall sensor being connected to the processor, the switch Hall sensor being used to implement a wake-up function.

[0046] Optionally, the system further includes a motor connected to the processor, the motor being used to drive the knob to rotate.

[0047] Optionally, the system also has the following functions:

[0048] Determine the target prompt information corresponding to the target rotation angle;

[0049] Perform the prompting operation corresponding to the target prompt information.

[0050] Therefore, during the rotation of the knob, the system can use two linear Hall sensors to convert the change in magnetic flux between the magnet and the two linear Hall sensors into a voltage value, and use the voltage value to determine the corresponding rotation angle, thereby achieving accurate identification of the knob's angle value.

[0051] like Figure 2 As shown, Figure 2 This is a flowchart illustrating a smart door lock control method provided in an embodiment of this application. The smart door lock control method described in this embodiment is applied to a smart door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to implement the unlocking or locking function. The smart door lock control method may include the following steps:

[0052] 201. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler.

[0053] In this embodiment of the application, the AD sampler can convert the analog signal collected by the first linear Hall sensor into a digital voltage value, and convert the analog signal collected by the second linear Hall sensor into a digital voltage value.

[0054] In practice, during the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor can be acquired synchronously through the AD sampler.

[0055] The processor may include a microprocessor.

[0056] 202. Determine the target rotation angle of the knob based on the first voltage value and the second voltage value.

[0057] In practice, since the voltage values ​​collected by the two linear Hall sensors are linearly related to the cosine of the rotation angle, the target rotation angle of the knob can be determined based on the first and second voltage values.

[0058] Optionally, the above step of determining the target rotation angle of the knob based on the first voltage value and the second voltage value can be implemented in the following manner:

[0059] The target rotation angle is determined using the following formula:

[0060] U1=k1 cosβ+a1

[0061] U2=k2 cos(180°-β)+a2

[0062] Wherein, U1 represents the first voltage value, U2 represents the second voltage value; k1 represents the first voltage proportionality coefficient of the first Hall sensor, k2 represents the second voltage proportionality coefficient of the second Hall sensor; a1 represents the first offset value of the first Hall sensor, a2 represents the second offset value of the second Hall sensor; β represents the target rotation angle.

[0063] In this embodiment, two linear Hall sensors can be placed at both ends of the knob in the horizontal direction, and the linear Hall sensors are connected to the analog-to-digital converter of the microprocessor.

[0064] In practice, when the knob rotates, the voltage values ​​collected by the two linear Hall sensors are linearly correlated with the cosine of the rotation angle; the voltage values ​​of the linear Hall sensors and the angle b between the knob (magnet) and the horizontal plane have the following relationship:

[0065] U1=k1 cosβ+a1

[0066] U2=k2 cos(180°-β)+a2

[0067] Wherein, U1 represents the first voltage value, U2 represents the second voltage value, and the unit is volt; k1 represents the first voltage proportional coefficient of the first Hall sensor, k2 represents the second voltage proportional coefficient of the second Hall sensor, and the unit is volt; a1 represents the first offset value of the first Hall sensor, a2 represents the second offset value of the second Hall sensor, and the unit is volt; β represents the target rotation angle.

[0068] Optionally, the following steps may also be included:

[0069] A1. Perform a single unlocking and closing operation on the smart door lock, specifically by performing one left-opening and one right-opening unlocking action to obtain the maximum value U of the first Hall sensor. 1Max and minimum value U1Min Obtain the maximum value U of the second Hall sensor. 2Max and minimum value U 2Min ;

[0070] A2. Determine the following parameters according to the following formula:

[0071]

[0072]

[0073]

[0074]

[0075] Wherein, k1 represents the first voltage proportional coefficient, k2 represents the second voltage proportional coefficient; a1 represents the first offset value, and a2 represents the second offset value.

[0076] In practical applications, the following data can be measured throughout the entire lock opening and closing process:

[0077] When β = 0°

[0078] U1 Max =k1cos(0°)+a1

[0079] U1 Min =k1cos(180°)+a1

[0080] When β = 180°

[0081] U2 Min =k2cos(180°)+a2

[0082] U2 Max =k2cos(0°)+a2

[0083] In specific implementation, such as Figures 3-5 As shown, these represent three states: unlocked, locked / right-open, and locked / left-open. During production, the entire lock-on / off process is adapted once. This process involves performing one unlocking and one right-opening lock-on action, as shown below. Figure 6 As shown, throughout the process, the values ​​of U1 and U2 within the range of angle [0, 180°] of b will be collected, and the values ​​of k1, k2, a1, and a2 will be calculated:

[0084]

[0085]

[0086]

[0087]

[0088] Furthermore, based on the knob position calculation, the knob rotation angle can be calculated using the values ​​of K1, K2, a1, a2 tested during production and the real-time measured values ​​of U1, U2.

[0089] Optionally, the system further includes: a switch Hall sensor, the switch Hall sensor being disposed in the vertical direction of the knob; the switch Hall sensor being connected to the processor, the switch Hall sensor being used to implement a wake-up function.

[0090] In this embodiment, the Hall sensor can be placed vertically to the knob, and its signal output is directly connected to the microprocessor input port. The ultra-low power Hall sensor can significantly reduce the power consumption of the door lock during standby. The Hall sensor's recognition angle is α, which can be positively correlated with the magnet size or the magnitude of the magnetic flux.

[0091] In practice, when the knob is manually rotated or driven by the motor, the state of the Hall sensor will change. When the knob (magnet) moves into or out of the angle recognition range of the switch Hall sensor, the state will also change. This state can indirectly correspond to the open / closed state of the door lock.

[0092] Optionally, the system further includes a motor connected to the processor, the motor being used to drive the knob to rotate.

[0093] In this embodiment, the motor can also drive the knob to rotate.

[0094] Optionally, the following steps may also be included:

[0095] B1. Determine the target prompt information corresponding to the target rotation angle;

[0096] B2. Perform the prompting operation corresponding to the target prompt information.

[0097] In this embodiment of the application, the prompt information may include at least one of the following: prompt method, door lock status, reminder to the user to open / close the door, etc., which are not limited here. The prompt method may include at least one of the following: voice prompt, vibration prompt, video prompt, etc., which are not limited here.

[0098] In practice, the target prompt information corresponding to the target rotation angle can be determined. Specifically, according to the preset mapping relationship between rotation angle and prompt information, the target prompt information corresponding to the target rotation angle is determined, and then the prompt operation corresponding to the target prompt information is executed, thereby helping to improve user experience and security.

[0099] As can be seen, the intelligent door lock control method described in the embodiments of this application is applied to an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one end edge of the knob. The knob is used to realize the unlocking or locking function. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler. The target rotation angle of the knob is determined according to the first voltage value and the second voltage value. In this way, during the rotation of the knob, the change in magnetic flux between the magnet and the two linear Hall sensors can be converted into a voltage value by using the two linear Hall sensors. The corresponding rotation angle is determined by using the voltage value, thereby achieving accurate identification of the knob's angle value.

[0100] Consistent with the above, such as Figure 7 As shown, Figure 7 This is a flowchart illustrating a smart door lock control method provided in an embodiment of this application. The smart door lock control method described in this embodiment is applied to a smart door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to implement the unlocking or locking function. The smart door lock control method may include the following steps:

[0101] 701. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler.

[0102] 702. Determine the target rotation angle of the knob based on the first voltage value and the second voltage value.

[0103] 703. Determine the target prompt information corresponding to the target rotation angle.

[0104] 704. Perform the prompting operation corresponding to the target prompt information.

[0105] The specific descriptions of steps 701-704 above can be found as follows: Figure 2 The description of the intelligent door lock control method will not be repeated here.

[0106] As can be seen, the intelligent door lock control method described in this application embodiment is applied to an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one end edge of the knob. The knob is used to realize the unlocking or locking function. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler. The target rotation angle of the knob is determined according to the first voltage value and the second voltage value. The target prompt information corresponding to the target rotation angle is determined, and the prompt operation corresponding to the target prompt information is executed. In this way, during the rotation of the knob, the change in magnetic flux between the magnet and the two linear Hall sensors can be converted into a voltage value by using the two linear Hall sensors. The corresponding rotation angle can be determined by using the voltage value, thereby realizing accurate identification of the knob angle value and performing corresponding prompt operations to ensure security.

[0107] Consistent with the above embodiments, please refer to Figure 8 , Figure 8 This is a schematic diagram of a smart door lock according to an embodiment of this application. As shown in the figure, the smart door lock includes a processor, a memory, a communication interface, and one or more programs. The one or more programs are stored in the memory and configured to be executed by the processor, and are applied to a smart door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and the processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to realize the unlocking or locking function. In this embodiment of the application, the program includes instructions for performing the following steps:

[0108] During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained by the AD sampler.

[0109] The target rotation angle of the knob is determined based on the first voltage value and the second voltage value.

[0110] Optionally, in determining the target rotation angle of the knob based on the first voltage value and the second voltage value, the above procedure includes instructions for performing the following steps:

[0111] The target rotation angle is determined using the following formula:

[0112] U1=k1 cosβ+a1

[0113] U2=k2 cos(180°-β)+a2

[0114] Wherein, U1 represents the first voltage value, U2 represents the second voltage value; k1 represents the first voltage proportionality coefficient of the first Hall sensor, k2 represents the second voltage proportionality coefficient of the second Hall sensor; a1 represents the first offset value of the first Hall sensor, a2 represents the second offset value of the second Hall sensor; β represents the target rotation angle.

[0115] Optionally, the above procedure may also include instructions for performing the following steps:

[0116] To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value U of the first Hall sensor. 1Max and minimum value U 1Min Obtain the maximum value U of the second Hall sensor. 2Max and minimum value U 2Min ;

[0117] The following parameters are determined using the following formula:

[0118]

[0119]

[0120]

[0121]

[0122] Wherein, k1 represents the first voltage proportional coefficient, k2 represents the second voltage proportional coefficient; a1 represents the first offset value, and a2 represents the second offset value.

[0123] Optionally, the system further includes: a switch Hall sensor, the switch Hall sensor being disposed in the vertical direction of the knob; the switch Hall sensor being connected to the processor, the switch Hall sensor being used to implement a wake-up function.

[0124] Optionally, the system further includes a motor connected to the processor, the motor being used to drive the knob to rotate.

[0125] Optionally, the above procedure may also include instructions for performing the following steps:

[0126] Determine the target prompt information corresponding to the target rotation angle;

[0127] Perform the prompting operation corresponding to the target prompt information.

[0128] As can be seen, the electronic device described in the embodiments of this application is applied to an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one end edge of the knob. The knob is used to realize the unlocking or locking function. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler. The target rotation angle of the knob is determined according to the first voltage value and the second voltage value. In this way, during the rotation of the knob, the change in magnetic flux between the magnet and the two linear Hall sensors can be converted into a voltage value by using the two linear Hall sensors. The corresponding rotation angle is determined by using the voltage value, thereby achieving accurate identification of the knob's angle value.

[0129] Figure 9 This is a functional unit block diagram of an intelligent door lock control device 900 involved in the embodiments of this application. The intelligent door lock control device 900 is applied to an intelligent door lock switch control system, which includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to realize the unlocking or locking function. The device 900 includes: a data acquisition unit 901 and a determination unit 902, wherein...

[0130] The acquisition unit 901 is used to acquire the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor through the AD sampler during the rotation of the knob.

[0131] The determining unit 902 is used to determine the target rotation angle of the knob based on the first voltage value and the second voltage value.

[0132] Optionally, in determining the target rotation angle of the knob based on the first voltage value and the second voltage value, the determining unit 902 is specifically used for:

[0133] The target rotation angle is determined using the following formula:

[0134] U1=k1 cosβ+a1

[0135] U2=k2 cos(180°-β)+a2

[0136] Wherein, U1 represents the first voltage value, U2 represents the second voltage value; k1 represents the first voltage proportionality coefficient of the first Hall sensor, k2 represents the second voltage proportionality coefficient of the second Hall sensor; a1 represents the first offset value of the first Hall sensor, a2 represents the second offset value of the second Hall sensor; β represents the target rotation angle.

[0137] Optionally, the device 900 is further specifically used for:

[0138] To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value U of the first Hall sensor. 1Max and minimum value U 1Min Obtain the maximum value U of the second Hall sensor. 2Max and minimum value U 2Min ;

[0139] The following parameters are determined using the following formula:

[0140]

[0141]

[0142]

[0143]

[0144] Wherein, k1 represents the first voltage proportional coefficient, k2 represents the second voltage proportional coefficient; a1 represents the first offset value, and a2 represents the second offset value.

[0145] Optionally, the system further includes: a switch Hall sensor, the switch Hall sensor being disposed in the vertical direction of the knob; the switch Hall sensor being connected to the processor, the switch Hall sensor being used to implement a wake-up function.

[0146] Optionally, the system further includes a motor connected to the processor, the motor being used to drive the knob to rotate.

[0147] Optionally, the device 900 is further specifically used for:

[0148] Determine the target prompt information corresponding to the target rotation angle;

[0149] Perform the prompting operation corresponding to the target prompt information.

[0150] As can be seen, the intelligent door lock control device described in the embodiments of this application is applied to an intelligent door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one end edge of the knob. The knob is used to realize the unlocking or locking function. During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are obtained through the AD sampler. The target rotation angle of the knob is determined according to the first voltage value and the second voltage value. In this way, during the rotation of the knob, the change in magnetic flux between the magnet and the two linear Hall sensors can be converted into a voltage value by using the two linear Hall sensors. The corresponding rotation angle is determined by using the voltage value, thereby achieving accurate identification of the knob's angle value.

[0151] It is understood that the functions of each program module of the smart door lock control device in this embodiment can be specifically implemented according to the methods in the above method embodiments. The specific implementation process can be referred to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0152] This application also provides a computer storage medium storing a computer program for electronic data interchange, which causes a computer to perform some or all of the steps of any of the methods described in the above method embodiments, wherein the computer includes a smart lock.

[0153] This application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product can be a software installation package, and the computer includes a smart door lock.

[0154] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

[0155] In the above embodiments, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0156] In the several embodiments provided in this application, it should be understood that the disclosed apparatus can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical or other forms.

[0157] The units described above as separate components may or may not be physically separate. The 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 the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0158] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0159] If the integrated units described above are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage device (CMD). Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a memory and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned memory includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.

[0160] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0161] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.

Claims

1. A smart door lock control method, characterized in that, An application is made in a smart door lock switch control system. The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at both ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to perform unlocking or locking functions. The method includes: During the rotation of the knob, the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor are acquired by the AD sampler; the first voltage value acquired by the first linear Hall sensor is linearly correlated with the cosine value of the rotation angle; the second voltage value acquired by the second linear Hall sensor is linearly correlated with the cosine value of the rotation angle. The target rotation angle of the knob is determined based on the first voltage value and the second voltage value; The step of determining the target rotation angle of the knob based on the first voltage value and the second voltage value includes: The target rotation angle is determined using the following formula: in, This represents the first voltage value. This indicates the second voltage value; This represents the first voltage proportionality coefficient of the first linear Hall sensor. This represents the second voltage proportionality coefficient of the second linear Hall sensor; This represents the first offset value of the first linear Hall sensor. This represents the second offset value of the second linear Hall sensor; Indicates the target rotation angle; The method further includes: To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value of the first linear Hall sensor. and minimum value Obtain the maximum value of the second linear Hall sensor. and minimum value ; The following parameters are determined using the following formula: in, This represents the first voltage proportionality coefficient. This represents the second voltage proportionality coefficient; This represents the first offset value. This represents the second offset value.

2. The method according to claim 1, characterized in that, The system further includes: a switch Hall sensor, which is disposed in the vertical direction of the knob; the switch Hall sensor is connected to the processor and is used to implement a wake-up function.

3. The method according to claim 1 or 2, characterized in that, The system also includes a motor connected to the processor, the motor being used to drive the knob to rotate.

4. The method according to claim 1, characterized in that, The method further includes: Determine the target prompt information corresponding to the target rotation angle; Perform the prompting operation corresponding to the target prompt information.

5. An intelligent door lock switch control system, characterized in that, The system includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at opposite ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to perform unlocking or locking functions. The AD sampler is used to acquire a first voltage value of the first linear Hall sensor and a second voltage value of the second linear Hall sensor during the rotation of the knob; the first voltage value acquired by the first linear Hall sensor is linearly correlated with the cosine value of the rotation angle; the second voltage value acquired by the second linear Hall sensor is linearly correlated with the cosine value of the rotation angle. The processor is configured to determine the target rotation angle of the knob based on the first voltage value and the second voltage value; Specifically, in determining the target rotation angle of the knob based on the first voltage value and the second voltage value, the processor is configured to: The target rotation angle is determined using the following formula: in, This represents the first voltage value. This indicates the second voltage value; This represents the first voltage proportionality coefficient of the first linear Hall sensor. This represents the second voltage proportionality coefficient of the second linear Hall sensor; This represents the first offset value of the first linear Hall sensor. This represents the second offset value of the second linear Hall sensor; Indicates the target rotation angle; Specifically, the processor is also used for: To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value of the first linear Hall sensor. and minimum value Obtain the maximum value of the second linear Hall sensor. and minimum value ; The following parameters are determined using the following formula: in, This represents the first voltage proportionality coefficient. This represents the second voltage proportionality coefficient; This represents the first offset value. This represents the second offset value.

6. A smart door lock control device, characterized in that, This system, applied to an intelligent door lock switch control system, includes: a knob, a first linear Hall sensor and a second linear Hall sensor respectively disposed at opposite ends of the knob in the horizontal direction, an AD sampler, and a processor. The processor is connected to the first linear Hall sensor and the second linear Hall sensor respectively through the AD sampler. A magnet is disposed on one edge of the knob. The knob is used to unlock or lock the door. The device includes: a data acquisition unit and a determination unit. The acquisition unit is used to acquire the first voltage value of the first linear Hall sensor and the second voltage value of the second linear Hall sensor through the AD sampler during the rotation of the knob; the first voltage value acquired by the first linear Hall sensor is linearly correlated with the cosine value of the rotation angle; the second voltage value acquired by the second linear Hall sensor is linearly correlated with the cosine value of the rotation angle. The determining unit is configured to determine the target rotation angle of the knob based on the first voltage value and the second voltage value; The step of determining the target rotation angle of the knob based on the first voltage value and the second voltage value includes: The target rotation angle is determined using the following formula: in, This represents the first voltage value. This indicates the second voltage value; This represents the first voltage proportionality coefficient of the first linear Hall sensor. This represents the second voltage proportionality coefficient of the second linear Hall sensor; This represents the first offset value of the first linear Hall sensor. This represents the second offset value of the second linear Hall sensor; Indicates the target rotation angle; The device is also specifically used for: To perform a single unlocking and closing operation on the smart door lock, specifically, perform one left-opening and one right-opening unlocking action to obtain the maximum value of the first linear Hall sensor. and minimum value Obtain the maximum value of the second linear Hall sensor. and minimum value ; The following parameters are determined using the following formula: in, This represents the first voltage proportionality coefficient. This represents the second voltage proportionality coefficient; This represents the first offset value. This represents the second offset value.

7. A computer-readable storage medium, characterized in that, A computer program for storing electronic data interchange is provided, wherein the computer program causes a computer to perform the method as described in any one of claims 1-4.

Citation Information

Patent Citations

  • Angle measurement system based on linear Hall sensors and angle measurement method

    CN106500584A

  • Lock cylinder transmission shaft resetting system of intelligent door lock and method

    CN113153005A