Door lock control method and device, door lock, computer equipment and storage medium

By acquiring the acceleration data and angle data of the target door, combined with the preset range, accurately identifying the moving state of the door and controlling the lock of the door lock, the problem that the smart door lock cannot accurately identify the moving state of the door is improved and the accuracy of the door lock control is improved sex.

CN119091527APending Publication Date: 2024-12-06SHENZHEN LUMIUNITED TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411092974.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-12-06

AI Technical Summary

Technical Problem

The smart door lock cannot accurately identify the door's moving state, resulting in insufficient accuracy of door lock control.

Method used

By acquiring the acceleration data of the target door during movement and determining the current position information based on the preset range, if the target position information is satisfied, the door lock is controlled to perform locking. The method includes using an acceleration sensor and an angle sensor, combining acceleration data and angle data, to determine the motion state and position of the door to accurately identify the moving state of the door.

Benefits of technology

The accuracy of door lock control is improved, and the situation where the displacement and actual movement distance of the smart door lock during movement is large, and it is impossible to accurately identify the door moving state.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119091527A_ABST
    Figure CN119091527A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a door lock control method and device, a door lock, equipment and a storage medium, and the method comprises the steps that in response to a moving signal of a target door, acceleration data of the target door in the moving process is obtained; determining current position information of the target door according to the acceleration data and a preset range; and if the current position information meets the target position information, a door lock on the target door is controlled to execute locking. The situation that the moving state of the door cannot be accurately recognized due to the fact that the error between the displacement, calculated by the intelligent door lock, of the door in the moving process and the actual moving distance of the door is large can be avoided, and therefore the accuracy of door lock control is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of door lock control technology, and in particular to a door lock control method, device, door lock, computer equipment and storage medium. Background Art

[0002] With the development of Internet of Things technology, smart door locks are widely used in more and more families. Smart door locks refer to locks that are improved on the basis of traditional mechanical locks and are more intelligent and simple in terms of user security, identification, and management. Smart door locks are the executive components of smart door locks. Smart door locks are mainly used in smart homes, smart hotels, smart buildings and other systems. They can control the locking of smart doors by judging the movement status of the door. However, how to accurately identify the movement status of the door is an urgent problem to be solved in this field. Summary of the invention

[0003] Based on this, it is necessary to provide a door lock control method, device, computer equipment and storage medium to address the above technical problems, which can solve the problem that smart door locks cannot accurately identify the movement status of the door.

[0004] The present application provides a door lock control method, the method comprising:

[0005] In response to a movement signal of a target door, acquiring acceleration data of the target door during movement;

[0006] Determining the current position information of the target door according to the acceleration data and a preset range;

[0007] If the current location information satisfies the target location information, the door lock on the target door is controlled to be locked.

[0008] Accordingly, the present application provides a door lock control device, the device comprising:

[0009] An acquisition module, for acquiring acceleration data of the target door during movement in response to a movement signal of the target door;

[0010] A first determination module, used to determine the current position information of the target door according to the acceleration data and a preset range;

[0011] The control module is used to control the door lock on the target door to lock if the current position information meets the target position information.

[0012] In some embodiments of the present application, the first determining module includes:

[0013] An acquisition submodule, used for acquiring the acceleration value of the target door within a preset time period based on the acceleration data;

[0014] A first determination submodule, configured to determine the motion state of the target door according to the acceleration value within the preset time period and a first preset range;

[0015] The second determining submodule is used to determine the current position information of the target door based on the motion state of the target door.

[0016] In some embodiments of the present application, the second determining submodule includes:

[0017] The first determining unit is configured to determine that the motion state of the target door is a stationary state if the acceleration values ​​of the target door within the preset time period are all within the first preset range.

[0018] In some embodiments of the present application, the door lock control device further includes a second determination module, and the second determination module is specifically used to:

[0019] Determining the acceleration change rate of the target door during the movement based on the acceleration data;

[0020] Determining whether the target door collides according to the acceleration change rate and a second preset range;

[0021] The acquiring the acceleration value of the target door within a preset time period based on the acceleration data includes:

[0022] If it is determined that the target door collides, acquiring the acceleration value of the target door within a preset time period after the collision time point based on the acceleration data;

[0023] In some embodiments of the present application, the second determining submodule includes:

[0024] The second determining unit is configured to determine that the current position information of the target door satisfies the target position information if it is determined that the target door collides and the motion state of the target door after the collision is a stationary state.

[0025] In some embodiments of the present application, the second determining submodule includes:

[0026] an acquisition unit, configured to acquire angle data of the target door when the motion state of the target door is a stationary state, and calculate a current moving angle of the target door according to the angle data;

[0027] The third determining unit is configured to determine whether the current position information of the target door satisfies the target position information if the current moving angle of the target door satisfies a preset angle.

[0028] In some embodiments of the present application, the door lock includes an acceleration sensor and an angle sensor, the movement signal of the target door includes a lock tongue retraction signal and a door body movement signal, and the acquisition module includes:

[0029] an acquisition submodule, configured to wake up the acceleration sensor in response to the bolt retraction signal, and acquire acceleration data measured by the acceleration sensor;

[0030] A third determination submodule, configured to determine a movement signal of the target door according to the acceleration data;

[0031] The wake-up submodule is used to wake up the angle sensor in response to the door movement signal and obtain the angle data measured by the angle sensor.

[0032] A door lock, comprising:

[0033] an acceleration sensor, the acceleration sensor being used to detect acceleration data of a target door where the door lock is located; and

[0034] A controller is connected to the acceleration sensor, and is used to obtain acceleration data of the target door during movement, and determine the current position information of the target door based on the acceleration data and a preset range; if the current position information meets the target position information, the door lock is controlled to be locked.

[0035] In some embodiments of the present application, the door lock also includes an angle sensor, which is connected to the acceleration sensor or the controller, and the angle sensor is used to detect the angle data of the target door where the door lock is located; the controller is used to wake up the acceleration sensor when a lock tongue retraction signal is received, and the acceleration sensor is used to wake up the angle sensor when the target door is detected to be moving.

[0036] In some embodiments of the present application, the angle sensor is a three-axis gyroscope.

[0037] A computer device includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the door lock control method in each embodiment of the present application when executing the computer program.

[0038] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the door lock control method in each embodiment of the present application.

[0039] A computer program product or a computer program, wherein the computer program product or the computer program comprises computer instructions, wherein the computer instructions are stored in a computer-readable storage medium; a processor of the computer device reads the computer instructions from the computer-readable storage medium, and when the processor executes the computer instructions, the steps of the door lock control method in each embodiment of the present application are implemented.

[0040] The present application provides a door lock control method, device, door lock, computer equipment and storage medium, which respond to the movement signal of the target door, obtain the acceleration data of the target door during the movement process; determine the current position information of the target door according to the acceleration data and a preset range; if the current position information meets the target position information, control the door lock on the target door to execute locking. In the door lock control scheme provided by the present application, the current position information of the target door is determined by the acceleration data of the target door during the movement process and the preset range, and when the current position information meets the target position information, the door lock of the target door is controlled to execute locking, which can more accurately identify the current position information of the target door, avoid the situation where the displacement of the door calculated by the smart door lock during the movement process is large and the actual movement distance of the door is large, and the movement state of the door cannot be accurately identified, thereby improving the accuracy of the door lock control. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0042] Figure 1 An application environment diagram of a door lock control method in an embodiment;

[0043] Figure 2 A schematic diagram of the internal structure of a gateway in an embodiment;

[0044] Figure 3 A schematic diagram of the internal structure of a door lock in one embodiment;

[0045] Figure 4 A schematic diagram of a flow chart of a door lock control method in one embodiment;

[0046] Figure 5 is a curve diagram of acceleration variation when a door collides in one embodiment;

[0047] Figure 6 is a curve diagram of acceleration variation when the door does not collide in another embodiment;

[0048] Figure 7 A schematic top view of an inertial measurement sensor installation in one embodiment;

[0049] Figure 8 A schematic front view of an inertial measurement sensor installation in one embodiment;

[0050] Fig. 9 A schematic diagram of a process for determining that a target door is at a door closing point in one embodiment;

[0051] Fig.10 A schematic diagram of a flow chart for determining that a target door is at a door closing point in yet another embodiment;

[0052] Fig.11 is a structural block diagram of a door lock control device in one embodiment;

[0053] Fig.12 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0054] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] The door lock control method provided in this application can be applied to Figure 1 In the application environment shown. Figure 1 A door lock control system is provided, which includes a smart device 10, a gateway 20 communicatively connected to the smart device 10, a router 30, a server 40, and a terminal 50.

[0056] The smart device 10 accesses the gateway 20 in the door lock control system, and communicates with the gateway 20 through its own configured communication module, and is then controlled by the gateway 20. In one embodiment, the smart device 10 accesses the gateway 20 through a local area network path or a wide area network path, and is deployed in the gateway 20. The local area network may include ZIGBEE or Bluetooth, and the wide area network may include 2G / 3G / 4G / 5G / WIFI, etc.

[0057] The gateway 20 establishes a network connection with the terminal 50 or the server 40 through the router 30. In one embodiment, the gateway 20 and the terminal 50 may establish a network connection through a local area network or a wide area network path. The network connection interacts with the terminal 50, so that the user can control the smart device 10 connected to the gateway 20 to perform corresponding actions through the terminal 50.

[0058] The terminal 50 may be a smart phone, a laptop, a personal computer, a tablet computer, a smart control panel or other electronic devices that can be connected to a network, which is not limited here. The server 40 may be implemented as an independent server or a server cluster composed of multiple servers.

[0059] Figure 2 is a hardware structure block diagram of a gateway according to an exemplary embodiment. This gateway is suitable for Figure 1 The implementation environment shown.

[0060] It should be noted that the gateway is only an example adapted to the present application and cannot be considered to provide any limitation on the scope of use of the present application. The gateway cannot be interpreted as requiring dependence on or having Figure 2 One or more components of the exemplary gateway 200 shown in FIG.

[0061] The hardware structure of the gateway 200 may vary greatly due to different configurations or performances, such as Figure 2 As shown, the gateway 200 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .

[0062] The power supply 210 is used to provide working voltage for each hardware device on the gateway 200. The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel conversion interface 233, at least one input-output interface 235 and at least one USB interface 237, etc., for communicating with external devices.

[0063] The memory 250 is a carrier for storing resources, which can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include an operating system 251, an application 253 or data 255, etc. The storage method can be temporary storage or permanent storage. Among them, the operating system 251 is used to manage and control the hardware devices and application 253 on the gateway 200 to enable the central processor 270 to calculate and process the massive data 255. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, FreeRTOS, etc. The application 253 is a computer program that completes at least one specific task based on the operating system 251, which can include at least one module ( Figure 2 (not shown in the figure), each module may respectively include a series of computer-readable instructions for the gateway 200. The data 255 may be photos, pictures, etc. stored in a disk.

[0064] The central processing unit 270 may include one or more processors and is configured to communicate with the memory 250 via a bus for computing and processing the mass data 255 in the memory 250 .

[0065] In this application, the smart device 10 may be a door lock 11, such as Figure 4 As shown, the door lock 11 includes:

[0066] An acceleration sensor 12, the acceleration sensor 12 is used to detect acceleration data of a target door where the door lock 11 is located; and

[0067] The controller 14 is connected to the acceleration sensor 12, and is used to obtain the acceleration data of the target door during movement, and determine the current position information of the target door according to the acceleration data and a preset range; if the current position information meets the target position information, the door lock is controlled to be locked.

[0068] The acceleration sensor may be a uniaxial acceleration sensor or a triaxial acceleration sensor, such as an accelerometer. The acceleration sensor has at least one axis installed perpendicular to the target door, so as to measure the acceleration of the target door during movement through the axis, thereby obtaining acceleration data.

[0069] After the controller obtains acceleration data through the acceleration sensor, if it detects that the acceleration data meets the preset range, it determines that the target door is at the closing point, otherwise the target door is at a non-closing point; when the controller determines that the target door is at the closing point, the door lock is controlled to lock.

[0070] In an optional embodiment, the door lock also includes an angle sensor 13, which is connected to the acceleration sensor 12 or the controller 14, and the angle sensor 13 is used to detect the angle data of the target door where the door lock 11 is located; the controller 14 is used to wake up the acceleration sensor 12 when a lock tongue retraction signal is received, and the acceleration sensor 12 is used to wake up the angle sensor 13 when the movement of the target door is detected.

[0071] The angle sensor may be a single-axis angle sensor or a three-axis angle sensor, such as a gyroscope. The angle sensor has at least one axis installed perpendicular to the target door, so as to integrate the angular velocity generated by the target door during movement through the axis to obtain angle data.

[0072] In the initial state, the angle sensor 13 and the acceleration sensor 12 are both in a dormant state to save power consumption. When the bolt of the door lock of the target door retracts, the controller receives a bolt retraction signal and wakes up the acceleration sensor, so that the acceleration sensor wakes up the angle sensor when detecting the movement of the target door to integrate the angular velocity generated by the target door during the movement, thereby obtaining angle data.

[0073] In an optional embodiment, the angle sensor is a three-axis gyroscope.

[0074] A three-axis gyroscope is a sensor that can measure angular velocity on three orthogonal axes (usually X, Y, and Z). In the present application, any one axis of the gyroscope is installed perpendicular to the target door, so that the angular velocity generated by the target door during movement can be integrated through the axis to obtain angle data.

[0075] Angle sensors and accelerometers can be stacked together with their corresponding axes coincident or aligned, improving the performance of the angle sensors and accelerometers, simplifying design and data processing, while reducing costs and improving reliability.

[0076] During actual door lock control, the acceleration data of the target door during movement is obtained through an accelerometer in response to the movement signal of the target door; then, the current position information of the target door is determined based on the acceleration data and a preset range; finally, if the current position information meets the target position information, the door lock on the target door is controlled to be locked.

[0077] In the door lock control scheme provided in the present application, the current position information of the target door is determined by the acceleration data of the target door during movement and a preset range, and when the current position information meets the target position information, the door lock of the target door is controlled to execute locking. The current position information of the target door can be identified more accurately, avoiding the situation where the displacement of the door calculated by the smart door lock during movement is significantly different from the actual moving distance of the door, and the movement state of the door cannot be accurately identified, thereby improving the accuracy of door lock control.

[0078] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software instructions. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.

[0079] It should be noted that the order of description of the following embodiments is not intended to limit the priority order of the embodiments.

[0080] The present application provides a door lock control method, including: in response to a movement signal of a target door, obtaining acceleration data of the target door during movement; determining the current position information of the target door based on the acceleration data and a preset range; if the current position information meets the target position information, controlling the door lock on the target door to execute locking.

[0081] See also Figure 4 , provides a door lock control method, which is described by taking the method applied to an electronic device (or a computer device, etc.) as an example. The electronic device (or a computer device, etc.) may specifically be Figure 1 The terminals, gateways, servers, intelligent devices, etc. in the system specifically include the following steps:

[0082] S101 . In response to a movement signal of a target door, acquiring acceleration data of the target door during movement.

[0083] Among them, the movement signal of the target door is a signal generated when the target door moves, for example, it can be a movement signal of the door lock bolt on the target door, or it can be a movement signal of the door body of the target door. The movement signal can be obtained by a displacement sensor installed on the target door, which can be a digital signal (such as 0 or 1), an analog signal (such as a voltage signal), a pulse signal, etc. The acceleration data is the data obtained by measuring the acceleration of the target door by an acceleration sensor (such as an accelerometer) installed on the target door during the movement of the target door. The acceleration data can specifically include the acceleration data of each axis in the accelerometer or the acceleration data of a specific axis. The acceleration data can include acceleration and / or acceleration change rate. Among them, the acceleration data of a specific axis refers to the single axis of the acceleration sensor, which is an axis in the same direction as the movement direction of the target door. In the present application, the acceleration data of the single axis can be used to analyze and determine the door state (movement, stillness or collision). Specifically, any axis of the acceleration sensor can be installed perpendicular to the target door. When the target door moves, the change in the single axis in the same direction as the target door's movement is the most obvious acceleration that best fits the motion characteristics. Therefore, using the change in single-axis acceleration data can more accurately determine the door state and reduce computing costs.

[0084] Exemplarily, when the target door moves, the terminal receives a movement signal from a displacement sensor installed on the target door, and then starts the acceleration sensor to measure acceleration data generated by the target door during the movement.

[0085] Optionally, the acceleration sensor may be a uniaxial acceleration sensor, and when the uniaxial sensor is mounted on the target door, the axis of the uniaxial sensor may be mounted perpendicular to the target door. Based on this, when the target door moves, the axis of the uniaxial sensor is in the same direction of movement as the target door, and the change in the acceleration data of the axis is the most obvious acceleration that best conforms to the motion characteristics, so the change in the acceleration data of the axis can more accurately determine the door state and reduce the calculation cost.

[0086] Optionally, the acceleration sensor can also be a three-axis acceleration sensor, which includes an X-axis, a Y-axis and a Z-axis on the XYZ plane. According to the target door with different door opening methods, for example, a rolling door, a door that opens and closes up and down, a door that opens and closes left and right, etc., any one of the X-axis, Y-axis and Z-axis can be selected to be installed perpendicular to the target door or parallel to the movement direction of the target door. Based on this, when the target door moves, the change of the acceleration data of the single axis with the same movement direction as the target door is the most obvious, and the acceleration that best conforms to the motion characteristics, so the change of the acceleration data of the single axis can more accurately judge the door state, and when calculating, only the acceleration data of the single axis is selected for calculation, which can also reduce the calculation cost. It should be particularly noted that the X-axis, Y-axis or Z-axis of the three-axis acceleration sensor is installed perpendicular to the target door, which conforms to the welding of the circuit board of the three-axis acceleration sensor in the door lock. That is, the X-axis, Y-axis or Z-axis of the three-axis acceleration sensor is welded perpendicular to the circuit board, and the circuit board is also installed vertically or parallel to the inside of the door lock, and the door lock is installed parallel to the door surface of the target door. Finally, the three-axis acceleration sensor has an X-axis, Y-axis or Z-axis perpendicular to the door surface relative to the target door. For conventional swing doors, when opening and closing the door, the axis perpendicular to the door surface in the three-axis acceleration sensor will cause changes in acceleration data due to the opening and closing of the door, and the changes in acceleration data can intuitively represent the movement characteristics when opening and closing the door.

[0087] S102: Determine the current position information of the target door according to the acceleration data and a preset range.

[0088] The preset range may be a numerical variation range of acceleration data used to determine the current position information of the target door. The preset range may be a first preset range related to acceleration, or a second preset range related to the acceleration change rate. The current position information refers to the position of the target door at the current time point, which may be a door closing point or a door non-closing point.

[0089] Exemplarily, the preset range is the acceleration variation interval of the acceleration data representing the target door at the door closing point. Assuming the preset range is (a, b), the acceleration of the current acceleration data detected in the preset time period is c. If c belongs to the preset range, the current position information is the position of the target door as the door closing point. If c does not belong to the preset range, the current position information is the position of the target door as the door non-door closing point. The door closing point represents the closed position of the door, and the non-door closing point represents any position other than the door closing point during the door opening and closing process.

[0090] S103: If the current location information satisfies the target location information, the door lock on the target door is controlled to be locked.

[0091] The target location information refers to the location at the current time point as the closing point.

[0092] Exemplarily, when it is determined that the position at the current time point is a door closing point, the door lock or the terminal can generate an automatic locking command to control the door lock of the target door to lock according to the automatic locking command.

[0093] In one embodiment, whether the target door is stationary can be determined based on the change in data from the accelerometer. Therefore, according to the acceleration data and the preset range, determining the current position information of the target door includes:

[0094] Acquiring an acceleration value of the target door within a preset time period based on the acceleration data;

[0095] Determining the motion state of the target door according to the acceleration value within the preset time period and the first preset range;

[0096] The current position information of the target door is determined based on the motion state of the target door.

[0097] The first preset range may be a range for determining whether the target door is stationary, and is a numerical range related to acceleration. When the acceleration value within the preset time period satisfies the first preset range, the motion state of the target door is determined to be stationary, otherwise, the motion state of the target door is motion. The acceleration value of the target door within the preset time period represents the acceleration value continuously detected by the target door within the preset time period. The preset time period may be a preset time window, which may be limited according to the actual application scenario and is not specifically limited here. For example, the time window may be a continuous number of seconds.

[0098] Optionally, the first preset range may be a static threshold. If the axis of the acceleration sensor that is not completely perpendicular to the target door is the X-axis and there is a certain deviation, the acceleration value in the direction of the X-axis is decomposed and calculated to obtain a vertical acceleration component and a parallel acceleration component, and the vertical acceleration component is taken as the acceleration value. If the acceleration value within the preset time period belongs to the static threshold, it is considered that the motion state of the target door is static.

[0099] In this embodiment, the door state of the target door is determined according to the change of acceleration data, which can avoid the situation where the integral error of the acceleration sensor causes inaccurate judgment result of the door state.

[0100] In one embodiment, during the actual use of the acceleration sensor, if the acceleration data actually detected (such as the acceleration value) continuously satisfies the first preset range within a preset time period (such as 3 seconds), the acceleration sensor is considered to be in a stationary state, that is, the motion state of the target door is stationary. Therefore, according to the acceleration value within the preset time period and the first preset range, the motion state of the target door is determined, including:

[0101] If the acceleration values ​​of the target door within the preset time period are all within the first preset range, it is determined that the motion state of the target door is a stationary state.

[0102] Optionally, the process of determining the first preset range is: first, collecting a preset amount of acceleration data generated by the door lock of the target door when the target door is stationary; then, calculating the acceleration mean α and standard deviation β of the door lock when it is stationary based on the acceleration data when the door is stationary; finally, determining the first preset range as (α±β) based on the acceleration mean α and standard deviation β.

[0103] Exemplarily, assuming that the first preset range is (α±β) and the preset time period is 4 seconds, if the target door is in the process of opening and closing the door, the acceleration value detected at 11:25:11 on June 6, 2024, the acceleration value at 11:25:12 on June 6, 2024, the acceleration value at 11:25:13 on June 6, 2024, and the acceleration value at 11:25:14 on June 6, 2024 all belong to (α±β), then the motion state of the target door is determined to be a stationary state.

[0104] In this embodiment, the door state can be more accurately judged based on the change in acceleration value within the constraint of the first preset range, which can avoid a large error between the displacement of the door during movement and the actual moving distance of the door, and the inability to accurately identify the moving state of the door, thereby more accurately controlling the target door to execute locking.

[0105] In one embodiment, when people close the door, the door will move with the force, and the door will collide with the door frame at the moment of closing. The transformation of the acceleration data generated by the collision between the door and the door frame is different from the acceleration data during the door opening and closing movement. Based on this, it can be judged whether the target door has a closing action. If the closing action has occurred and the target door remains stationary afterwards, then it can be judged that the current position information is the closing point after the target door moves, and then the terminal or door lock gives an automatic locking command. Therefore, before the step of obtaining the acceleration value of the target door within a preset time period based on the acceleration data, it includes:

[0106] Determining the acceleration change rate of the target door during the movement based on the acceleration data;

[0107] Determining whether the target door collides according to the acceleration change rate and a second preset range;

[0108] The acquiring the acceleration value of the target door within a preset time period based on the acceleration data includes:

[0109] If it is determined that the target door collides, acquiring the acceleration value of the target door within a preset time period after the collision time point based on the acceleration data;

[0110] The determining the current position information of the target door based on the motion state of the target door comprises:

[0111] If it is determined that the target door collides and the movement state of the target door after the collision is a stationary state, it is determined that the current position information of the target door satisfies the target position information.

[0112] The acceleration change rate is the product of the acceleration value output by the acceleration sensor and the acceleration value occurring within a unit time (such as 1 second), indicating the speed change amount of the target door occurring within the unit time. The second preset range may be the range of the value change of the acceleration data used to determine whether the target door has collided. The second preset range may be determined based on historical experience data of collisions occurring when closing the door, and is not specifically limited here. The collision time point is the time point when the target door collides with the door frame.

[0113] Specifically, by calculating the acceleration value generated by the target door during the movement, the acceleration change rate of the target door during the movement is obtained. When it is detected that the acceleration change rate exceeds the second preset range, it is determined that the target door has collided, and the acceleration value of the target door within a preset time period after the time point corresponding to the collision is obtained. If the acceleration value within the preset time period satisfies the above-mentioned first preset range, it is determined that the target has collided and the motion state of the target door is a stationary state, thereby determining that the current position information of the target door satisfies the target position information.

[0114] like Figures 5 and 6 As shown, the horizontal axis is the time parameter, and the vertical axis is the acceleration change rate. When the door is closed without collision, the lower limit of the acceleration change rate between 309 seconds and 419 seconds is 230, and the upper limit is 430. When the door is closed and collides with the door frame, the upper limit of the acceleration change rate between 106 seconds and 120 seconds is 640, and the lower limit is -400. It can be seen that after the target door collides, the acceleration change rate changes greatly in a short time (millisecond level). Based on this, when people close the door, it is determined that the acceleration change rate of the target door during the movement exceeds the preset second range, and it is judged that the target door collides with the door frame.

[0115] In this embodiment, since the transformation of acceleration data generated by the collision between the door and the door frame is different from the acceleration data during the door opening and closing movement, the door state of the target door can be judged more accurately based on the acceleration change rate, thereby accurately determining whether the target is at the door closing point. This can avoid a large error between the displacement of the door during movement and the actual moving distance of the door, and the inability to accurately identify the movement state of the door, thereby more accurately controlling the target door to execute locking.

[0116] In one embodiment, when people close the door with a light movement, the target door will not collide with the door frame, which will lead to missed detection; or when the target door collides with other obstacles during the door opening and closing process, the pseudo door closing point cannot be distinguished, resulting in false detection. In order to avoid the above missed detection and false detection, when the target door is stationary, the current position information of the target door is determined as the door closing point in combination with the angle of the target door. Based on this, the current position information of the target door is determined based on the motion state of the target door, including:

[0117] When the movement state of the target door is a stationary state, acquiring angle data of the target door, and calculating a current moving angle of the target door according to the angle data;

[0118] If the current moving angle of the target door satisfies the preset angle, it is determined that the current position information of the target door satisfies the target position information.

[0119] The angle data is the angular velocity obtained by the angle sensor during the movement of the target door. The current moving angle of the target door can be obtained by integrating the angular velocity over time.

[0120] Specifically, when the target door starts to move from the door closing point and stops moving, the terminal obtains the angle data of the target door through the angle sensor and integrates the angle data to obtain the current moving angle; if the current moving angle meets the preset angle, it means that the target door has returned to the door closing point, that is, it is determined that the current position information meets the target position information; if the current moving angle does not meet the preset angle, it means that the target door stops at any angle that is not the door closing point during the door opening and closing process. Among them, the angular velocity can be integrated according to the following formula (1) to obtain the current moving angle θ(t):

[0121]

[0122] Where θ(t) is the angle at time t, θ0 is the initial angle, ω(τ) is the angular velocity at time τ, t0 is the start time of the integration, and t1 is the end time of the integration.

[0123] Exemplarily, assuming that the preset angle is 0, when the target door starts to move from the door closing point and stops moving, the angular velocity is integrated and the current moving angle is 0, which means that the target has returned to the door closing point; similarly, when the target door starts to move from the door closing point and stops moving, the current moving angle obtained by integrating the angular velocity is not 0, which means that the target door stops at a certain angle other than the door closing point during the opening and closing process.

[0124] In this embodiment, the acceleration data and the angle data can be combined to more accurately determine whether the target door is at the closing point, which can avoid a large error between the displacement of the door during movement and the actual movement distance of the door, and the inability to accurately identify the movement state of the door, thereby more accurately controlling the target door to execute locking.

[0125] In one embodiment, the door lock includes an acceleration sensor and an angle sensor, and the movement signal of the target door includes a bolt retraction signal and a door movement signal. Since the power consumption of the angular velocity sensor is much greater than that of the acceleration sensor, the equipment installed on the door is generally not powered for a long time. For energy consumption considerations, the acceleration sensor with low power consumption can be used to wake up the angular velocity sensor when needed, and keep the angular velocity sensor dormant when it is not needed. It should be noted that before the bolt of the door lock is retracted, the acceleration sensor is also in a dormant state. Based on this, the acceleration data of the target door during movement is obtained in response to the movement signal of the target door, including:

[0126] In response to the bolt retraction signal, waking up the acceleration sensor and acquiring acceleration data measured by the acceleration sensor;

[0127] determining a movement signal of the target door according to the acceleration data;

[0128] In response to the door movement signal, the angle sensor is awakened, and angle data measured by the angle sensor is acquired.

[0129] The bolt retraction signal is a signal indicating that the bolt has been retracted from the locking position into the target door. The bolt retraction signal may be an electronic signal, a mechanical signal, an optical signal, an acoustic signal, or the like.

[0130] Specifically, when the lock tongue of the door lock retracts, the electronic device responds to the lock tongue retraction signal of the door lock and wakes up the acceleration sensor. At this time, the angle sensor is still in sleep mode. When the acceleration data measured by the acceleration sensor determines that the target door is moving, a movement signal of the target door is generated, and the angle sensor is woken up according to the movement signal of the target door, and the angle data measured by the angle sensor is obtained.

[0131] In order to better illustrate the angle sensor wake-up process, the following takes a door opening and closing process as an example:

[0132] First, when the user opens the door lock of the target door, the lock tongue of the door lock bounces back, the acceleration sensor starts, and the acceleration sensor starts to obtain the acceleration data of the target door to determine the movement signal of the target door according to the acceleration data; secondly, when the user pushes the door open, the acceleration sensor will immediately recognize that the target door has moved when the target door starts to move, and wake up the angle sensor. After the angle sensor is woken up, it starts to obtain angle data to determine the current movement angle of the target door according to the angle data; finally, after the user walks out and returns the door to the closing point, if it is detected that the acceleration data within the preset time period meets the first preset range and the current movement angle is determined to be 0 according to the angle data, the electronic device generates an automatic locking signal, so that the door lock pops out the lock tongue according to the automatic locking signal to complete the automatic locking. After the automatic locking is completed at the closing point, the acceleration sensor and the angle sensor both enter sleep mode.

[0133] In this embodiment, the angle sensor is awakened after the movement signal of the target door is determined by the acceleration sensor, so that the power consumption of the door lock can be reduced and the power supply time of the door lock can be extended.

[0134] In one embodiment, the door lock may include an inertial measurement unit, which is a 6-axis sensor. The 6-axis sensor includes a 3-axis gyroscope (i.e., an angle sensor) and a 3-axis accelerometer (i.e., an acceleration sensor). The 3 axes represent the 3 coordinate axes in the XYZ plane corresponding to the Cartesian coordinate system. The 3-axis gyroscope measures the angular velocity on each axis in units of ° / s, which represents the degree change that occurs per second. The angular velocity output by a certain axis of the gyroscope * unit time = the angle change that occurs in the axis of the gyroscope in the unit time. The 3-axis accelerometer measures the acceleration that occurs in each axis. When the accelerometer is stationary or in uniform linear motion, the sum of the accelerations of the three axes of the accelerometer is the magnitude of the acceleration of gravity, which is approximately 9.8m / s 2 The acceleration output by a certain axis of the accelerometer * unit time = the velocity change of the axis of the accelerometer per unit time. The acceleration output by a certain axis of the accelerometer * unit time * unit time = the velocity change of the axis of the accelerometer per unit time * unit time = the displacement change of the axis of the accelerometer per unit time.

[0135] The three-axis gyroscope and the three-axis accelerometer inside the inertial measurement sensor are stacked together, that is, the x-axis of the three-axis gyroscope coincides with the x-axis of the three-axis accelerometer, the y-axis of the three-axis gyroscope coincides with the y-axis of the three-axis accelerometer, and the z-axis of the three-axis gyroscope coincides with the z-axis of the three-axis accelerometer. Based on this, any one of the x-axis, y-axis or z-axis in the inertial measurement sensor can be installed perpendicular to the running direction of the target door. It should be noted that generally, the inertial measurement sensor is welded with any one of the x-axis, y-axis or z-axis perpendicular to the circuit board, and the circuit board is also installed vertically or parallel to the inside of the door lock, the door lock is installed parallel to the target door, and the inertial measurement sensor has an x-axis, y-axis or z-axis perpendicular to the door surface relative to the target door. Therefore, this installation method is consistent with the welding of the inertial measurement sensor on the circuit board in the door lock. When the door is opened or closed, the acceleration data and angle data measured by the axis perpendicular to the door surface in the inertial measurement sensor will change with the opening and closing of the door, and most intuitively represent the movement characteristics of the opening and closing of the door.

[0136] Since the three-axis accelerometer and the three-axis gyroscope are stacked inside the inertial sensor, the inertial sensor installed on the target door is different from other linear motion devices. The movement of the target door is close to the arc motion with a known radius, and the movement direction is along the tangent direction of the arc. Therefore, if any axis of the inertial measurement sensor is installed at a perpendicular angle to the target door, only one axis is needed to detect the door state of the target door, such as Figures 7 and 8 As shown, the y-axis can be used to determine the acceleration data and angle data of the target door during movement.

[0137] It should be noted that when the target door is not completely perpendicular to the x-axis, y-axis or z-axis of the inertial measurement sensor and there is a certain deviation, the acceleration data obtained from the x-axis, y-axis or z-axis can be decomposed into components perpendicular to and parallel to the target door, so that the component perpendicular to the target door can be processed. In addition, since the inertial measurement sensor includes three axes, it can be adapted to various types of target doors, such as doors that can be pushed and pulled to open left and right, and doors that can be opened up and down, to detect the door state of the target door.

[0138] The present application also provides an application scenario, and the application scenario applies the above-mentioned door lock control method. Specifically, the application of the door lock control method in the application scenario is as follows:

[0139] like Fig. 9 As shown, when the user opens or closes the door, the lock tongue of the door lock of the target door retracts and generates a lock tongue retraction signal. The lock tongue retraction signal wakes up the accelerometer, and obtains the acceleration data measured by the accelerometer. According to the acceleration data, it is determined whether the target door has collided; if a collision has occurred, it is determined whether the target door is stationary; if the target door is stationary, it is determined that the target door is currently at the door closing point, and the door can be locked. If it is determined according to the acceleration data that the target door has not collided, the accelerometer can enter the sleep mode and wait for the user to make the next door movement (such as closing the door); if the target door is not stationary (the user moves the target door back and forth at a non-door closing point), it continues to determine whether the target door has changed according to the acceleration data.

[0140] In this embodiment, the moving state of the target door is determined based on the change in acceleration data, which can avoid a large error between the displacement of the door during movement and the actual moving distance of the door, and the inability to accurately identify the moving state of the door, thereby more accurately controlling the target door to execute locking.

[0141] The present application also provides an application scenario, and the application scenario applies the above-mentioned door lock control method. Specifically, the application of the door lock control method in the application scenario is as follows:

[0142] like Fig.10 As shown, when the user opens or closes the door, the lock tongue of the door lock of the target door retracts and generates a lock tongue retraction signal, the lock tongue retraction signal wakes up the accelerometer, and the accelerometer wakes up the gyroscope when receiving the movement signal of the door, and the gyroscope starts to integrate along the movement direction of the target door to obtain angle data, and judges whether the target door is stationary according to the acceleration data; if it is stationary, it is determined whether the integrated angle of the gyroscope is 0 based on the angle data, if it is 0, it is determined that the target door is at the closing point, if it is not 0, the accelerometer and the gyroscope enter sleep mode, waiting for the user to close the door next time; if the target door is not stationary, it continues to judge whether the target door is stationary according to the acceleration data.

[0143] In this embodiment, the moving state of the target door is determined based on the combination of acceleration data and angle data, which can avoid a large error between the displacement of the door during movement and the actual moving distance of the door, and the inability to accurately identify the moving state of the door, thereby more accurately controlling the target door to execute locking.

[0144] In one embodiment, Fig.11 As shown, a door lock control device is provided, including: an acquisition module 301, a first determination module 302 and a control module 303, wherein:

[0145] An acquisition module 301 is used to acquire acceleration data of the target door during movement in response to a movement signal of the target door;

[0146] A first determination module 302, configured to determine the current position information of the target door according to the acceleration data and a preset range;

[0147] The control module 303 is used to control the door lock on the target door to lock if the current location information meets the target location information.

[0148] In an embodiment, in response to a movement signal of a target door, the acceleration data of the target door during movement is obtained; based on the acceleration data and a preset range, the current position information of the target door is determined; if the current position information meets the target position information, the door lock on the target door is controlled to be locked. In the door lock control scheme provided in the present application, the current position information of the target door is determined by the acceleration data of the target door during movement and a preset range, and when the current position information meets the target position information, the door lock of the target door is controlled to be locked, which can more accurately identify the current position information of the target door, avoid the situation where the displacement of the door calculated by the smart door lock during movement is large in error with the actual movement distance of the door, and cannot accurately identify the movement state of the door, thereby improving the accuracy of the door lock control.

[0149] In some embodiments of the present application, the first determining module 302 includes:

[0150] An acquisition submodule, used for acquiring the acceleration value of the target door within a preset time period based on the acceleration data;

[0151] A first determination submodule, configured to determine the motion state of the target door according to the acceleration value within the preset time period and a first preset range;

[0152] The second determining submodule is used to determine the current position information of the target door based on the motion state of the target door.

[0153] In some embodiments of the present application, the second determining submodule includes:

[0154] The first determining unit is configured to determine that the motion state of the target door is a stationary state if the acceleration values ​​of the target door within the preset time period are all within the first preset range.

[0155] In some embodiments of the present application, the door lock control device further includes a second determination module, and the second determination module is specifically used to:

[0156] Determining the acceleration change rate of the target door during the movement based on the acceleration data;

[0157] Determining whether the target door collides according to the acceleration change rate and a second preset range;

[0158] The acquiring the acceleration value of the target door within a preset time period based on the acceleration data includes:

[0159] If it is determined that the target door collides, acquiring the acceleration value of the target door within a preset time period after the collision time point based on the acceleration data;

[0160] In some embodiments of the present application, the second determining submodule includes:

[0161] The second determining unit is configured to determine that the current position information of the target door satisfies the target position information if it is determined that the target door collides and the motion state of the target door after the collision is a stationary state.

[0162] In some embodiments of the present application, the second determining submodule includes:

[0163] an acquisition unit, configured to acquire angle data of the target door when the motion state of the target door is a stationary state, and calculate a current moving angle of the target door according to the angle data;

[0164] The third determining unit is configured to determine whether the current position information of the target door satisfies the target position information if the current moving angle of the target door satisfies a preset angle.

[0165] In some embodiments of the present application, the door lock includes an acceleration sensor and an angle sensor, the movement signal of the target door includes a lock tongue retraction signal and a door body movement signal, and the acquisition module 301 includes:

[0166] An acquisition submodule, used for waking up the acceleration sensor in response to a bolt retraction signal, and acquiring acceleration data measured by the acceleration sensor;

[0167] A third determination submodule, configured to determine a movement signal of the target door according to the acceleration data;

[0168] The wake-up submodule is used to wake up the angle sensor in response to the door movement signal and obtain the angle data measured by the angle sensor.

[0169] For the specific definition of the door lock control device, please refer to the definition of the door lock control method above, which will not be repeated here. Each module in the above-mentioned door lock control device can be implemented in whole or in part by software, hardware and their combination. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0170] In one embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as follows: Fig.12 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an intention recognition method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or it can be a computer device.

[0171] Those skilled in the art will understand that Fig.12 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0172] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0173] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0174] In one embodiment, a computer program product or computer program is provided, the computer program product or computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps in the above-mentioned method embodiments.

[0175] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0177] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the patent application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent application shall be subject to the attached claims.

Claims

1. A door lock control method, characterized in that: include: In response to a movement signal of a target door, acquiring acceleration data of the target door during movement; Determining the current position information of the target door according to the acceleration data and a preset range; If the current location information satisfies the target location information, the door lock on the target door is controlled to be locked.

2. The door lock control method according to claim 1, characterized in that: Determining the current position information of the target door according to the acceleration data and the preset range includes: Acquiring an acceleration value of the target door within a preset time period based on the acceleration data; Determining the motion state of the target door according to the acceleration value within the preset time period and the first preset range; The current position information of the target door is determined based on the motion state of the target door.

3. The door lock control method according to claim 2, characterized in that: The step of determining the motion state of the target door according to the acceleration value within the preset time period and the first preset range includes: If the acceleration values ​​of the target door within the preset time period are all within the first preset range, it is determined that the motion state of the target door is a stationary state.

4. The door lock control method according to claim 2 or 3, characterized in that: Before the step of acquiring the acceleration value of the target door within a preset time period based on the acceleration data, the method includes: Determining the acceleration change rate of the target door during the movement based on the acceleration data; Determining whether the target door collides according to the acceleration change rate and a second preset range; The acquiring the acceleration value of the target door within a preset time period based on the acceleration data includes: If it is determined that the target door collides, acquiring the acceleration value of the target door within a preset time period after the collision time point based on the acceleration data; The determining the current position information of the target door based on the motion state of the target door comprises: If it is determined that the target door collides and the movement state of the target door after the collision is a stationary state, it is determined that the current position information of the target door satisfies the target position information.

5. The door lock control method according to claim 2 or 3, characterized in that: The determining the current position information of the target door based on the motion state of the target door comprises: Based on the movement state of the target door being a stationary state, acquiring angle data of the target door, and calculating a current moving angle of the target door according to the angle data; If the current moving angle of the target door satisfies the preset angle, it is determined that the current position information of the target door satisfies the target position information.

6. The door lock control method according to claim 5, characterized in that: The door lock includes an acceleration sensor and an angle sensor, the movement signal of the target door includes a bolt retraction signal and a door body movement signal, and the step of obtaining acceleration data of the target door during movement in response to the movement signal of the target door includes: In response to the bolt retraction signal, waking up the acceleration sensor and acquiring acceleration data measured by the acceleration sensor; determining a movement signal of the target door according to the acceleration data; In response to the door movement signal, the angle sensor is awakened, and the angle data measured by the angle sensor is acquired.

7. A door lock, characterized in that: The door lock comprises: an acceleration sensor, the acceleration sensor being used to detect acceleration data of a target door where the door lock is located; and A controller is connected to the acceleration sensor, and is used to obtain acceleration data of the target door during movement, and determine the current position information of the target door based on the acceleration data and a preset range; if the current position information meets the target position information, the door lock is controlled to be locked.

8. The door lock according to claim 7, characterized in that: The door lock also includes an angle sensor, which is connected to the acceleration sensor or the controller, and is used to detect angle data of a target door where the door lock is located; the controller is used to wake up the acceleration sensor when a lock tongue retraction signal is received, and the acceleration sensor is used to wake up the angle sensor when movement of the target door is detected.

9. The door lock according to claim 7, characterized in that: The angle sensor is a three-axis gyroscope.

10. A door lock control device, characterized in that: The device comprises: An acquisition module, for acquiring acceleration data of the target door during movement in response to a movement signal of the target door; A first determination module, used to determine the current position information of the target door according to the acceleration data and a preset range; The control module is used to control the door lock on the target door to lock if the current position information meets the target position information.

11. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the door lock control method according to any one of claims 1 to 6 are implemented.

12. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the door lock control method according to any one of claims 1 to 6 are implemented.

13. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the door lock control method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Protective door lock state monitoring device

    CN121451795A