Intelligent door lock calibration control method and device, equipment and medium
By integrating lock body and door status calibration into a continuous automated process, and using sensors to perceive the status of the bolt and door body, the process fragmentation and user subjective judgment problems of smart lock calibration methods are solved, achieving efficient and reliable calibration results.
Patent Information
- Application Number
- CN202511928586.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-19
- Publication Date
- 2026-02-13
AI Technical Summary
Existing smart lock calibration methods lack consistency and automated verification capabilities, resulting in fragmented operation processes and reliance on users' subjective judgment, which affects installation success rate and user experience.
By using intelligent door lock calibration control methods and devices, lock body calibration and door status calibration are integrated into a continuous automated process. Sensors are used to sense the status of the latch and door body, generate and display calibration results, and achieve closed-loop verification.
It significantly simplifies the operation process, improves the accuracy and reliability of calibration results, enhances product safety and user experience, and ensures that the calibration effect reflects the true physical state of the door.
Smart Images

Figure CN121519794A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of intelligent control, and in particular to an intelligent door lock calibration control method, apparatus, equipment, and medium. Background Technology
[0002] In the field of smart lock installation and debugging, ensuring precise alignment between the lock's mechanical structure and the door's physical state is crucial for its proper functioning. Currently, the commonly used calibration methods primarily rely on a step-by-step operation model. Specifically, one common approach is for the user to first trigger an independent lock body self-test process via an application. After the lock body completes the internal motor zero-position and travel calibration, the user then manually enters another independent door status confirmation stage, where they perform the opening and closing actions and subjectively judge whether the door is properly closed. Another approach relies entirely on the user's repeated manual operation, gradually setting parameters according to the application's prompts.
[0003] These traditional methods have inherent limitations in their technical principles, leading to a series of problems that urgently need to be addressed. Because lock calibration and door status confirmation are designed as two separate and sequentially ordered operational stages, users must passively wait for the previous step to be completely completed before starting the next, causing interruptions and fragmentations in the operational process. More importantly, the crucial judgment of whether the door is truly closed relies entirely on the user's subjective observation and confirmation, lacking an objective, automatically executed detection and verification mechanism. This strong reliance on human judgment makes it highly susceptible to user error or misjudgment, resulting in the door being in a partially closed state (e.g., a half-closed position), which can trigger false alarms or malfunctions in the lock's actuator.
[0004] Therefore, the core problem with existing technologies lies in the lack of consistency and automated verification capabilities in the calibration process, failing to form a complete closed loop. This directly impacts the installation success rate of smart locks and the end-user experience. Summary of the Invention
[0005] The primary objective of this application is to address at least one of the aforementioned problems by providing a smart door lock calibration control method, apparatus, device, and medium.
[0006] To achieve the various objectives of this application, the following technical solution is adopted: A smart door lock calibration control method provided for one of the purposes of this application includes the following steps: In response to a lock calibration command triggered by the calibration control interface, a lock body calibration signal is sent to the smart lock to drive the smart lock to complete the lock body calibration process and return the first calibration result; When the first calibration result is successfully characterized, the gate state calibration guidance information is displayed and the gate state calibration control is activated. In response to the door status calibration command triggered by the door status calibration control, a user door closing operation guidance process is triggered, and a door status calibration signal is sent to the smart door lock to drive the smart door lock to implement the door status calibration process corresponding to the user door closing operation and return the corresponding second calibration result. The calibration control interface displays notification information corresponding to the second calibration result.
[0007] A smart door lock calibration control device, proposed to meet one of the purposes of this application, is a smart door lock calibration control method, comprising: The lock body calibration module is configured to respond to a lock calibration command triggered by the calibration control interface, send a lock body calibration signal to the smart lock, drive the smart lock to complete the lock body calibration process and return the first calibration result; The interface activation module is set to display gate state calibration guidance information and activate the gate state calibration control when the first calibration result characterization is successful. The door calibration module is configured to respond to the door status calibration command triggered by the door status calibration control, trigger the user door closing operation guidance process, and send a door status calibration signal to the smart door lock to drive the smart door lock to implement the door status calibration process corresponding to the user door closing operation and return the corresponding second calibration result. The information display module is configured to display notification information corresponding to the second calibration result on the calibration control interface.
[0008] In another aspect, a computer device provided for one of the purposes of this application includes a controller, the controller including a processor and a memory, the processor calling and running a computer program in the memory to perform the steps of the smart door lock calibration control method.
[0009] In another aspect, a computer-readable storage medium is provided to suit another purpose of this application, which stores in the form of computer-readable instructions a computer program implemented according to the smart door lock calibration control method, which, when called by a computer, executes the steps included in the corresponding method.
[0010] Compared with traditional technologies, this application has significant advantages, including but not limited to: First, by integrating lock body calibration and door status calibration into a continuous process uniformly guided by the application, the problem of process fragmentation in the traditional step-by-step calibration method is effectively overcome. It achieves a seamless connection from triggering lock body calibration to completing door status confirmation. Users do not need to manually switch or wait between different operation stages, which significantly simplifies the operation steps, lowers the user's understanding and operation threshold, and improves the overall efficiency of installation and debugging.
[0011] Secondly, by having the smart lock automatically complete the calibration process via an application and ultimately receive the returned calibration results for information notification, this application reduces reliance on user subjective judgment. The execution of the calibration process and the determination of the results are both completed autonomously by the application, avoiding calibration errors caused by improper human operation or misjudgment, thereby significantly improving the accuracy and reliability of the calibration results.
[0012] Furthermore, this application introduces a closed-loop verification mechanism. The door status calibration process is directly linked to the user's actual door-closing operation, and the final status is confirmed by the second calibration result returned by the smart lock. This allows the calibration effect to directly reflect the true physical state of the door, effectively verifying the calibration results and ensuring the functional effectiveness of the smart lock in actual use after calibration, thereby enhancing product security and user experience. Attached Figure Description
[0013] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart illustrating a typical embodiment of the smart door lock calibration control method of this application; Figure 2 This is a schematic block diagram of the intelligent door lock calibration control device of this application; Figure 3 This is a schematic diagram of the structure of a computer device used in this application. Detailed Implementation
[0014] This application provides a smart door lock calibration control method that can be deployed in typical application environments that include user terminal equipment and smart door locks. The user terminal equipment can be a smartphone, tablet, or dedicated controller—devices with computing and display capabilities—and its built-in application provides a graphical user interface. The smart door lock, as the actuator, is typically installed on the door and contains the necessary electrical structure to achieve intelligent control.
[0015] The electrical structure of a smart door lock mainly includes a control unit, a motor drive module, a sensor array, and a communication module. The control unit, as the processing core, is responsible for executing control logic and data processing. The motor drive module receives commands from the control unit and drives the motor in both forward and reverse directions, thereby extending or retracting the bolt to complete the locking and unlocking actions. The sensor array provides the system with state awareness capabilities; motion sensors detect motor speed, position, or travel, while inertial sensors sense the door's own motion state and attitude changes. The communication module is responsible for establishing a two-way data link with the user's terminal device, using common wireless communication protocols such as Bluetooth, Wi-Fi, or mobile networks to achieve reliable transmission of commands and data.
[0016] The key to achieving calibration for smart door locks lies in the accurate perception and judgment of the mechanical state of the lock body and the physical state of the door. This goal relies on the collection and analysis of two types of key data: first, motor operation data reflecting the working state of the bolt actuator; and second, door operation data reflecting the movement and stillness of the door.
[0017] The lock body calibration process, corresponding to the determination of the first calibration result, is based on monitoring the characteristics of the motor during its self-test movement. Specifically, the control unit of the smart lock drives the motor to execute a specific self-test stroke, such as moving from the initial position to the mechanical limit point. During this process, specific sensors continuously collect the motor's operating parameters. A typical implementation uses a high-precision angle sensor, such as an absolute magnetic encoder, to obtain the absolute angular position of the motor shaft or its directly driven components in real time. This position information can uniquely determine the instantaneous and precise position of the bolt during its movement stroke. Simultaneously, a current sensor connected in series in the motor power supply circuit samples the motor's operating current in real time. This current value directly reflects the load borne by the motor when driving the bolt. The control unit combines the synchronously collected angle and current data into process data and analyzes this data (e.g., determining whether the motor successfully reaches the preset zero position or stroke end point, and whether the current characteristics at that position are normal) to ultimately determine whether the mechanical calibration inside the lock body is successful, thereby generating the first calibration result.
[0018] Besides using high-precision angle sensors for continuous position tracking, lock body calibration can also be performed based on the principle of discrete position detection. For example, Hall effect sensors, photoelectric sensors, and other detection elements can be placed at specific angular positions on the motor turntable or transmission mechanism. When the motor rotates and drives the coaxial magnet past these preset points, the Hall effect sensor will output a corresponding level transition signal. By identifying this series of discrete position signals and combining them with load changes monitored by the current sensor, the control unit can also determine whether the motor has traversed key calibration points (such as the zero position and the end of the stroke), thereby completing the stroke calibration and calibration status determination of the bolt actuator.
[0019] The door status calibration process, which corresponds to the determination of the second calibration result, focuses on sensing the door's movement and final state. When a user performs an opening or closing action, the smart lock needs to determine whether the door is stably in the closed position. This can be achieved through built-in inertial sensors (such as gyroscopes and / or accelerometers). Gyroscopes can accurately sense the angular velocity of the door's rotation around its axis, thus determining whether the door is in a dynamic process of opening or closing, or has reached a stationary state; accelerometers can detect the linear motion of the door leaf (such as slight impact vibrations at the end of closing) and the tilt angle (relative to the direction of gravity) when static. The control unit integrates this inertial sensor data to intelligently identify the state of "the door is closed and stationary." To further verify the effectiveness of the calibration, the locking action can be automatically triggered after determining that the door is closed. At this time, the locking result can be verified again by monitoring motor operation data (such as whether the bolt extends smoothly or whether it is blocked due to the door not being closed tightly). Finally, the second calibration result is generated by combining the door status sensing result and the automatic locking verification result.
[0020] It is evident that the integrated calibration capability of smart door locks is essentially based on the collaborative processing of two information flows: motor operation data and door operation data. By controlling the movement and state of the mechanical mechanism through a sensor array inside the lock body, and sensing the physical behavior of the door through inertial sensors on the door, these two aspects are organically combined in a coherent process. This is supplemented by final automatic action verification, thereby achieving full-state calibration and confirmation from the lock body itself to the door environment.
[0021] The innovation of the smart lock calibration control method protected in this application lies in its ability to enable the aforementioned smart lock calibration process. This method can be implemented in the form of a computer program. This computer program can be installed and run on the aforementioned user terminal device, and works collaboratively with the smart lock by calling the device's processing resources and communication interfaces. The user initiates calibration commands through the application interface on the terminal device, and the program logic controls the entire interaction process with the smart lock, including command issuance, status monitoring, data reception, and result display. The communication connection between the terminal device and the smart lock can flexibly select any feasible communication protocol based on the actual application scenario to ensure the effective transmission of commands and data.
[0022] The specific embodiments of the method of this application will be described in detail below with reference to the accompanying drawings. These embodiments are intended to clearly illustrate the technical content of this application and enable those skilled in the art to understand and implement it. It should be noted that, based on the core methodological concept disclosed in this application, those skilled in the art can derive other specific implementations without creative effort, and these variations should all be considered to fall within the protection scope sought by this application.
[0023] Please see Figure 1 In some embodiments, the smart door lock calibration control method of this application can be implemented as an application program that can run on the processor of a computer device, such as a user terminal device. The method includes: Step S3100: In response to the lock calibration command triggered by the calibration control interface, send a lock body calibration signal to the smart lock to drive the smart lock to complete the lock body calibration process and return the first calibration result; Users can initiate calibration requests through the calibration control interface on their terminal devices, such as their smartphones. User actions on this interface, such as clicking a virtual button or touching a graphical element, trigger a lock calibration command. This command is captured by the application logic running on the terminal device, which then sends the corresponding lock body calibration signal to the target smart lock via an established communication link, such as Bluetooth or Wi-Fi. This signal acts as a start command, driving the smart lock to begin its internal lock body calibration process.
[0024] During the lock body calibration process, after receiving the lock body calibration signal, the control unit of the smart lock autonomously drives its motor to perform a self-test movement. During this process, the smart lock uses its built-in sensors to continuously collect data reflecting the operating status of the motor and bolt actuator, i.e., motor operating data. This data is used to evaluate the calibration status of the lock body's mechanical structure and ultimately generates a first calibration result characterizing the result of this calibration operation, which is then returned to the application on the terminal device.
[0025] The specific content and generation method of the first calibration result vary across different implementation levels. In one embodiment, the smart lock side can perform relatively basic data processing, and the returned first calibration result may be motor zero-position calibration data obtained after preliminary processing of the collected motor operating data. This type of data serves as the basis for subsequent judgments but does not yet constitute a final success or failure decision. After receiving this type of data, the terminal device's application needs to further analyze it, such as determining whether the zero-position calibration data falls within a preset valid range, thereby ultimately determining whether the lock body calibration was successful.
[0026] In another embodiment, the smart lock can have stronger local processing capabilities. In this implementation, the smart lock's control unit not only collects motor operating data but also executes complete judgment logic based on this data. For example, the control unit determines whether the motor has successfully reached a preset zero position or completed a predetermined stroke calibration based on the motor operating data. Accordingly, the smart lock directly generates a first calibration result that clearly indicates success or failure, such as a data packet containing a "success" or "failure" status code, and returns it to the terminal device. Upon receiving this result, the application can directly read its status for subsequent processes.
[0027] Step S3200: When the first calibration result is successfully characterized, display the gate state calibration guidance information and activate the gate state calibration control; When the terminal device's application receives the first calibration result from the smart lock and determines that the result indicates successful lock body calibration, the application automatically updates the display content of the calibration control interface and enters the preparation stage for door status calibration. At this time, the application will display dedicated door status calibration guidance information on the interface. This guidance information aims to clearly explain to the user the next steps to be performed, and its form can be text prompts, graphic animations, or playable instructional videos. For example, the interface can display a concise text prompting the user to perform the door opening and closing operation next, possibly accompanied by diagrams or animations demonstrating the correct operation method. In one embodiment, the guidance information can be integrated into a short instructional video, which the user can click to play to watch the complete operation demonstration.
[0028] While or after displaying the guidance information, the application can show or activate a door status calibration control on the interface. This control typically appears as a visual interactive element, such as a virtual button, with a label that may read "Start Door Status Calibration" or similar text. Activating this control makes it responsive, allowing the user to interact with it. This ensures that the user actively proceeds to the next calibration step only after confirming that they have understood the guidance information, following a clearly guided user interaction logic.
[0029] This step aims to achieve a smooth and automatic transition between the lock body calibration and door status calibration stages, changing the fragmented operation mode of traditional solutions that require users to manually switch between different functional modules. By automatically determining the success result of the preceding steps and dynamically guiding users to the entry point of subsequent steps through the application, the user operation process is greatly simplified, the user's cognitive burden is reduced, and thus the overall consistency of the calibration process and the user experience are improved. Only when the first calibration result indicates success will the door status calibration guidance information and controls be triggered and activated. This itself constitutes a conditional logic to ensure the sequentiality and correctness of the calibration process.
[0030] In another embodiment, if the first calibration result fails, the application can display an error message to guide the user to check the lock body installation or retry the lock body calibration, without entering the door status calibration stage.
[0031] Step S3300: Respond to the door status calibration command triggered by the door status calibration control, trigger the user door closing operation guidance process, and send a door status calibration signal to the smart door lock to drive the smart door lock to implement the door status calibration process corresponding to the user door closing operation and return the corresponding second calibration result. When a user triggers a door status calibration command through the door status calibration control interface, the application guides the user through subsequent operations. First, the application can trigger a door-closing operation guidance process, specifically by displaying clear operation prompts on the calibration control interface. These prompts can include a combination of graphical animations and text descriptions, such as a dynamic demonstration of opening and closing the door, accompanied by the text "Please open the door, then close it and remain still." In one embodiment, the application can simultaneously start a countdown timer of a preset duration, such as 30 seconds, and clearly display the countdown on the interface, thus providing the user with a clear time window for operation and creating a sense of urgency to encourage the user to complete the action within the specified time.
[0032] Simultaneously with the trigger interface guidance, the application can send a door status calibration signal to the smart lock via the established communication link. This signal drives the smart lock to initiate its internal door status calibration process. In one embodiment, this door status calibration signal can carry a preset duration parameter, allowing the smart lock to set the timeout period for its internal monitoring process based on this parameter, thereby achieving coordination with the application's countdown timer. Upon receiving this signal, the smart lock's control unit enters the door status monitoring ready state.
[0033] The door status calibration process focuses on enabling the smart lock to perceive and judge the user's door-closing operation. In this process, the smart lock utilizes its built-in inertial sensors, typically gyroscopes and / or accelerometers, to continuously monitor door movement data generated by the user's actions. Gyroscopes can accurately sense changes in the angular velocity of the door's rotation around its hinges, thus determining whether the door is moving or stationary; accelerometers can detect the linear acceleration of the door, such as the slight impact signal generated when the door hits the door frame at the moment of closing. By comprehensively analyzing this inertial sensor data, the control unit can intelligently identify whether the door has completed the closing action and reached a stable closed state.
[0034] Once the door is determined to be stably closed, the door status calibration process enters the crucial automatic verification stage. The control unit automatically drives the motor to perform locking actions, such as extending the latch. During this locking process, the control unit simultaneously detects motor operation data generated during the locking process using motion sensors, such as Hall effect sensors or encoders to detect motor speed or position. The control unit then combines the door operation data and motor motion data to make a final judgment. If the locking action is executed successfully, for example, the latch is fully extended and the motor operating current is within the normal range, a second calibration result indicating successful door status calibration is generated; if locking fails, for example, due to the door not being fully closed causing latch obstruction or an abnormal increase in motor current, a corresponding result indicating failure is generated. Finally, the smart lock returns this second calibration result to the application.
[0035] In another embodiment, the smart door lock may also submit the motor operation data and door operation data generated in the door status calibration process as the second calibration result to the terminal device, and the terminal device shall implement the judgment logic to determine whether the second calibration result represents success or failure.
[0036] Step S3400: Display the notification information corresponding to the second calibration result on the calibration control interface.
[0037] Upon receiving the second calibration result, the application displays a corresponding notification on the calibration control interface. The content of the notification is closely related to the specific result, aiming to clearly convey the calibration status to the user and provide subsequent guidance. In one embodiment, when the second calibration result indicates successful door calibration and automatic locking, a first type of notification is displayed to indicate overall calibration success, such as a text prompt "Calibration complete, please use." In another embodiment, when the second calibration result indicates successful door calibration but automatic locking fails, a second type of notification is displayed to indicate that the door may be partially ajar or blocked, guiding the user to check the door. If the second calibration result indicates failed door calibration or a timeout occurs due to the user not completing the operation within the countdown, a third type of notification is displayed to indicate improper user operation or incomplete operation, guiding the user to re-perform the door-closing operation. Through this differentiated information feedback, the system can guide users to perform targeted processing, greatly improving user experience and problem-solving efficiency.
[0038] The intelligent door lock calibration control method provided in this application has made significant progress in multiple technical dimensions compared with traditional technical solutions. Its beneficial effects are mainly reflected in the following aspects.
[0039] Firstly, this application fundamentally solves the problem of process fragmentation inherent in traditional step-by-step calibration methods by integrating lock body calibration and door status calibration into a continuous automated process uniformly guided by an application. Traditional methods require users to manually switch between different operation stages; for example, after completing the lock body self-test, users must manually find and activate the door status confirmation function, which is cumbersome and prone to interruption. In contrast, this application's embodiment achieves seamless integration between steps through application logic control: once the lock body calibration is successfully completed, the application automatically displays door status calibration guidance information and activates the corresponding controls, allowing users to simply follow the sequence. This integrated process design significantly simplifies user operation steps, lowers the barrier to understanding and operation, makes the entire installation and debugging process smoother, and effectively improves overall efficiency.
[0040] Secondly, this application significantly reduces reliance on user subjective judgment, enhancing the objectivity of the calibration process and the reliability of the results. In traditional solutions, the crucial judgment of whether the door is truly closed tightly often relies on the user's visual observation and subjective confirmation, which is prone to errors due to individual differences or improper operation. This application, however, utilizes the inertial sensors (such as gyroscopes and accelerometers) built into the smart lock to automatically sense the door's movement trajectory and stationary state, and verifies the locking action by analyzing motor operating data. The execution of the calibration process and the determination of the state are both completed autonomously by the system, avoiding misjudgments caused by human factors, thereby significantly improving the accuracy and consistency of the calibration results and laying a solid foundation for the stable operation of the smart lock.
[0041] Furthermore, this application introduces a closed-loop verification mechanism to ensure an effective correspondence between calibration results and actual usage conditions. Traditional technologies lack a final verification method for calibration results. This application, after determining that the door is closed via sensors, does not simply end the process but automatically drives the motor to perform the locking action and monitors the execution of this action in real time. If locking is successful, it proves that the door status calibration is effective; if locking fails due to reasons such as the door not being closed tightly, it can be accurately identified and reported. This closed-loop design allows the calibration effect to directly reflect the door's true physical state, effectively avoiding the embarrassing situation of successful calibration but inability to actually lock, thus enhancing product security and user experience.
[0042] Furthermore, this application provides an intelligent and differentiated feedback and handling mechanism when encountering anomalies during the calibration process. Traditional solutions often only provide a general failure message when a failure occurs. However, the embodiments of this application can display corresponding, clearly guiding notification information on the interface based on the specific content of the second calibration result, such as different scenarios like successful door status calibration but failed locking, or door status calibration timeout. This allows users to quickly understand the problem and take targeted measures, such as checking if the door is ajar or re-operating, greatly improving the efficiency of troubleshooting and user satisfaction.
[0043] Based on any embodiment of the method in this application, in response to a door status calibration command triggered by the door status calibration control, a user door closing operation guidance process is triggered, and a door status calibration signal is sent to the smart door lock, including: Step S3110: In response to the door status calibration command, send door status calibration information to the smart door lock. The control signal carries a preset duration for controlling the smart door lock to wait for the user to close the door. When the application running on the user's terminal device captures the door status calibration command triggered by the door status calibration control, it generates and sends a corresponding door status calibration signal to the smart lock. This signal is transmitted through an established communication link between the terminal device and the smart lock, such as a Bluetooth connection or a wireless LAN connection.
[0044] The door status calibration signal serves to notify the smart lock to initiate its internal door status calibration process and configure necessary parameters. A key implementation method is reflected in the control information carried by this signal. Specifically, the control signal carries a preset duration parameter for controlling the smart lock to wait for the user to close the door. This preset duration defines the upper limit of the time window during which the system expects the user to complete the door opening and closing operation.
[0045] The specific value of the preset duration can be set according to the actual application scenario and user experience requirements. For example, a corresponding input box can be provided in the calibration control interface of the terminal device for users to personalize the preset duration. In one embodiment, the preset duration can be set to 30 seconds, which provides sufficient operation time for most users while avoiding inefficiency caused by excessive waiting. After receiving the door status calibration signal, the control unit of the smart door lock parses the preset duration and uses it as an important timing benchmark for the door status monitoring stage. For example, the smart door lock can start an internal timer corresponding to the preset duration. If valid door operation data or status judgment is not successfully collected within this duration, timeout processing logic can be triggered.
[0046] Setting a preset duration ensures that the waiting timeout judgment on the smart lock side and the countdown prompt to the user on the application side remain synchronized, providing a unified time frame for the entire door status calibration process and avoiding potential misjudgments or process asynchrony issues caused by inconsistent timeout settings at both ends.
[0047] Step S3120: Start the countdown timer corresponding to the preset duration on the calibration control interface to enter the user door closing operation waiting period; Simultaneously or immediately after sending a door status calibration signal carrying a preset duration to the smart lock, the application starts a countdown timer corresponding to the preset duration on the calibration control interface and displays a clear countdown prompt to the user. The purpose is to establish a clear waiting period for the user to close the door, providing visual time guidance. The countdown timer can be presented in various forms, including but not limited to displaying a continuously decreasing digital timer on the interface, such as decreasing second by second from 30 seconds to 0, or using a gradually shortening progress bar to visually indicate the remaining time. In one embodiment, the start of the countdown timer and the transmission of the door status calibration signal are synchronized to ensure that the internal timer started by the smart lock according to the preset duration is logically aligned with the countdown prompt on the user interface.
[0048] By starting a countdown timer, a clear and limited operation time window is set for the user. This helps to encourage the user to complete the required door opening and closing actions within the specified time, preventing the user from operating slowly due to the lack of time constraints, thereby improving the efficiency of the overall calibration process.
[0049] Step S3130: Listen to and receive the second calibration result returned by the smart door lock within an additional time range greater than the preset time.
[0050] After the countdown timer starts, the application enters a state of listening to and receiving the second calibration result returned by the smart lock. In this embodiment, this listening process is not strictly limited to ending the moment the countdown timer reaches zero, but can be set to an additional duration range slightly longer than the preset duration as the listening window. The setting of the additional duration takes into account practical factors such as command transmission, data processing, and network latency, providing a certain time buffer for the smart lock to return results, so as to avoid the application ending the listening prematurely due to slight timing differences and missing valid results. In one embodiment, the additional duration can be a fixed value, for example, adding 5 seconds to the preset duration of 30 seconds, so that the total listening duration reaches 35 seconds. In another embodiment, the additional duration can also be dynamically adjusted according to the network conditions, for example, appropriately extending the listening window when poor quality of the current communication link is detected.
[0051] Within the extended timeframe, the application continuously monitors communication data from the smart lock. If a second calibration result is successfully received from the smart lock within this timeframe, the application immediately stops monitoring and performs subsequent processing based on the received result, such as displaying relevant notification information on the calibration control interface. If no valid second calibration result is received within the extended timeframe, the application can determine that the door status calibration process has failed due to communication timeout or other anomalies. In this case, the application can display a corresponding timeout failure message on the calibration control interface, guiding the user to check the network connection or retry the calibration.
[0052] The above embodiments organically combine signal transmission with preset duration, countdown guidance from the user interface, and listening reception with fault tolerance mechanisms to construct a collaborative and robust time control system. This system effectively ensures the timing consistency between the application and the smart lock in the door status calibration process, avoiding process interruptions or misjudgments that may be caused by asynchronous timeout judgments at both ends. At the same time, the design of additional duration enhances the adaptability to the inherent latency in the actual communication environment. Thus, while improving the automation and continuity of the calibration process, it further ensures the reliability of process execution and the smoothness of user experience.
[0053] Based on any embodiment of the method in this application, after sending a lock body calibration signal to the smart lock in response to a lock body calibration control triggered by the lock body calibration control in the calibration control interface, the method includes: Step S4110: The control unit of the smart door lock responds to the lock body calibration signal and drives its motor to perform a self-test movement to achieve zero-position calibration; When the control unit of the smart lock receives a lock body calibration signal from the user terminal device through its communication module, the control unit responds to this signal and initiates the lock body calibration process. During this process, the smart lock's motor is driven to perform a preset self-test motion based on the signal. The purpose of the self-test motion is to achieve zero-position calibration of the motor or its driven bolt actuator. The zero position is a critical mechanical reference point, typically corresponding to the bolt being fully retracted (unlocked state) or beginning to extend. Accurate zero-position calibration is fundamental to ensuring the precision of subsequent bolt travel control.
[0054] The control unit of the smart lock outputs control signals to the motor through its integrated motor drive circuit, such as pulse width modulation signals with a specific duty cycle or specific direction and speed commands, causing the motor to start rotating. The motor converts the rotational motion into the linear motion of the latch through a transmission mechanism (such as a gearbox). In one embodiment, the self-test motion can be implemented by driving the latch from its current position to the fully retracted position until it reaches the mechanical limit point, which is defined as the mechanical zero position. In another embodiment, if the lock body design allows, the self-test motion can also include a complete stroke, i.e., moving from the current position to the fully extended position and then back to the fully retracted position, and finding and recording a characteristic position point as the zero position during the process.
[0055] During self-testing, the control unit can precisely control the motor's trajectory. In one implementation, the control unit can use open-loop control, driving the motor for a fixed distance according to a preset time or number of pulses. In a more precise implementation, the control unit can employ a closed-loop control strategy, adjusting the motor's movement based on real-time sensor data. For example, it can control the motor to run at a constant torque until it encounters mechanical resistance (stalling), at which point the position can be determined as zero. In yet another embodiment, based on data generated by an absolute magnetic encoder and current sensor, combined with prior empirical data or models, it can be determined whether the motor has reached mechanical zero, thus achieving calibration.
[0056] Step S4120: The control unit of the smart door lock detects the motor operation data generated during the self-test motion of the motor through the motion sensor; During the self-test motion of the motor to perform zero-position calibration, the control unit of the smart lock simultaneously detects and collects motor operation data through motion sensors. Motor operation data is a set of key parameters reflecting the motion state of the motor and its driven mechanical components; its specific content varies depending on the type of motion sensor used and the required calibration accuracy.
[0057] In one embodiment, the motion sensor may include a sensor for detecting the rotational position or angle of the motor, such as an absolute magnetic encoder. In this embodiment, the motor operating data mainly includes the real-time angular position data of the motor. The absolute magnetic encoder can continuously output a digital signal representing the absolute angle of the motor shaft. By reading this signal, the control unit can obtain the precise position of the motor at any moment during the entire self-test motion stroke. Simultaneously, the motor operating data may also include real-time operating current data collected by a current sensor connected in series in the motor power supply circuit. This current data directly reflects the magnitude of the resistance that the motor needs to overcome when driving the load (i.e., the latch and its transmission mechanism).
[0058] In another implementation, the motion sensor can be a Hall sensor. In this embodiment, the motor operating data is mainly represented as a series of pulse signals or level transition signals output by the Hall sensor. The Hall sensor typically works in conjunction with a magnet mounted on the motor shaft or transmission components; when the magnet passes the sensor, the sensor generates a change in electrical signal. By configuring multiple Hall sensors at key locations (such as the zero point or the end of the stroke), or by counting the number of pulses generated by a single sensor, the control unit can indirectly infer the relative position of the motor or whether it has reached a preset calibration point. Similarly, in this embodiment, current data collected by a current sensor can also be incorporated as part of the motor operating data to help determine whether the motor has encountered mechanical obstruction (stall).
[0059] Step S4130: The control unit of the smart door lock determines whether the motor has successfully reached the zero position based on the motor operation data, generates the corresponding first calibration result and returns it.
[0060] The control unit determines whether the motor has successfully reached the zero position based on the detected motor operating data and generates a corresponding first calibration result accordingly. The judgment logic depends on the specific motor operating data. In embodiments using an absolute magnetic encoder and a current sensor, the control unit can analyze whether the angle position data reaches a preset zero-position angle threshold, and simultaneously combine the current data to determine whether the current exhibits the expected characteristic change (e.g., a slight increase in current due to slight mechanical contact) when approaching or reaching the threshold position, thereby comprehensively determining that the zero-position calibration is successful. If the angle reaches the predetermined value and the current characteristics are normal, a first calibration result indicating success is generated; if the angle is not reached or the current is abnormal (e.g., continuously excessively high current indicating stall), a first calibration result indicating failure is generated.
[0061] In embodiments employing Hall effect sensors and current sensors, the control unit determines whether the motor has reached the zero position by monitoring whether it receives a valid trigger signal from the Hall effect sensor set to the zero point. Simultaneously, it combines this with current data to confirm whether the motor operated normally at or before the trigger signal was generated. For example, if the control unit drives the motor towards the zero position and receives a trigger signal from the zero-position Hall effect sensor, and the current data does not show any abnormal stall during the same period, the motor is determined to have successfully reached the zero position, generating a successful first calibration result. Conversely, if no trigger signal is received within the expected time, or if the current data is abnormal when the signal is received, the calibration is considered a failure.
[0062] Finally, the generated first calibration result is returned by the smart lock's control unit to the user's terminal device application via the communication module. This result can be a simple success or failure status indicator, or it can contain more detailed diagnostic information, such as failure reason codes, for the application to provide subsequent interface prompts or log recordings.
[0063] The above embodiments organically integrate the response to lock body calibration commands, the precise drive of motor self-test motion, the real-time detection of motor operation data, and the zero-position arrival judgment based on multi-source data fusion. This constructs a highly reliable lock body calibration mechanism that is autonomously completed on the smart door lock side. This mechanism not only realizes the automated and precise calibration of the mechanical zero position of the lock body, replacing the crude method that relies on manual intervention and subjective judgment, but also significantly improves the accuracy and consistency of calibration results through objective analysis of sensor data. Thus, it provides a solid and reliable initial state guarantee for the smooth progress of the entire integrated calibration process from the hardware level, effectively solving the problems of insufficient accuracy and poor reliability in the lock body self-calibration link of traditional solutions.
[0064] Based on any embodiment of the method in this application, after responding to a door status calibration command triggered by the door status calibration control, triggering a user door closing operation guidance process, and sending a door status calibration signal to the smart door lock, the process includes: Step S4310: The control unit of the smart door lock responds to the door status calibration signal and detects the door operation data generated by the user's door closing operation through the inertial sensor; After the smart lock's control unit responds to the door status calibration signal, it initiates the door status monitoring process. This process uses built-in inertial sensors to detect door operation data generated by the user's closing action. Door operation data refers to a series of parameters reflecting the door's own motion state and physical posture; its specific content depends on the type of inertial sensor used and its configuration.
[0065] In one embodiment, the inertial sensor may include a gyroscope. A gyroscope can accurately measure the angular velocity of the door rotating about its hinge. When a user pushes or pulls the door, the gyroscope can detect changes in the rotational angular velocity during the opening or closing process. By analyzing the angular velocity data, such as the process of the angular velocity changing from zero to a non-zero value and then returning to zero, the control unit can determine whether the door has opened or closed and the intensity of the movement. In another embodiment, the inertial sensor may include an accelerometer. An accelerometer can sense changes in the door's acceleration in a straight line, including gravitational acceleration. At the moment the door closes, the impact between the door and the door frame generates a brief, characteristic impact acceleration signal; simultaneously, when the door is stationary, the accelerometer provides information on the tilt angle of the door relative to the direction of gravity, which helps determine whether the door is in a vertically closed state. Yet another embodiment uses both a gyroscope and an accelerometer, combining their data through a sensor fusion algorithm to more reliably determine the door's trajectory and final stationary state.
[0066] The control unit continuously reads the outputs of these inertial sensors at a certain sampling frequency and performs necessary processing on the raw data, such as filtering to eliminate noise interference and integral calculations to convert angular velocity into angular change. The processed data constitutes the door operation data used to determine the door's state. This data is temporarily stored in the control unit's memory, providing real-time and objective sensing basis for subsequent steps to determine whether the door has reached a stable closed state.
[0067] Step S4320: The control unit of the smart door lock determines whether the door has reached a stable closed state based on the door operation data. When the door reaches the closed state, the control unit drives the motor to lock the door and drives the motion sensor to detect the motor operation data generated during the door locking process. The control unit of the smart lock continuously analyzes the detected door operation data and determines whether the door has reached a stable closed state based on preset judgment logic. This judgment logic may include analyzing the angular velocity data output by the gyroscope. When the angular velocity returns to near zero after a period of non-zero value and remains there for a preset duration, such as two seconds, and accelerometer data confirms that the door panel has no significant linear acceleration, the door can be determined to be stationary. Furthermore, the control unit can combine this with static tilt angle data provided by the accelerometer to confirm that the door panel's posture matches the expected angle after closing, thus comprehensively determining that the door has reached a stable closed state.
[0068] When the control unit determines that the door is stably closed, it automatically drives the motor to perform the locking action. The locking action typically involves controlling the motor to rotate, which in turn drives the bolt from a retracted state to an extended state via a transmission mechanism, until the bolt engages with the strike plate on the door frame to achieve mechanical locking. During this locking process, the control unit simultaneously drives motion sensors to detect and collect the resulting motor operation data.
[0069] The specific content of the motor operation data depends on the type of motion sensor used. In one embodiment, if the motion sensor is an absolute magnetic encoder, the motor operation data mainly includes real-time angular position data of the motor during the extension of the latch. This angular position data accurately reflects the extension stroke of the latch. Simultaneously, the motor operation data also includes real-time operating current data collected by a current sensor, which reflects the resistance encountered during the latch extension process. In another embodiment, if the motion sensor is a Hall sensor, the motor operation data may be represented as pulse signals related to the latch movement position or trigger signals at specific locations, combined with the real-time operating current data collected by the current sensor. The control unit ensures that the acquisition of motor operation data is synchronized with the execution of the locking action, providing crucial process data for subsequent identification of whether the door is locked.
[0070] Step S4330: The control unit of the smart door lock identifies whether the door is in a locked state based on the door operation data and / or the motor motion data, generates the corresponding second calibration result, and returns it.
[0071] After completing the acquisition of door operation data and the execution of the motor locking action, the control unit of the smart door lock enters the final state recognition stage, that is, based on the acquired door operation data and motor motion data, it comprehensively judges whether the door is successfully locked and generates a second calibration result accordingly.
[0072] The control unit's identification of whether a door is locked can be a multi-factor comprehensive analysis process. In one embodiment, the identification process can primarily rely on motor motion data. The control unit determines whether locking has been successfully completed by analyzing the motor motion data detected by the motion sensor during the locking action. For example, when the motion sensor is an absolute magnetic encoder, the control unit checks whether the motor's angular position data has reached the preset angle value corresponding to the fully extended bolt position. Simultaneously, the control unit analyzes the real-time operating current data collected by the current sensor to confirm whether the current exhibits the expected peak characteristics during the bolt extension process, especially near the end of the stroke, and whether this peak value is within the normal range, and whether the current subsequently drops back to a lower holding current. If the angular position reaches the predetermined value and the current change characteristics conform to the normal locking mode, the door is identified as being locked.
[0073] In another embodiment, the identification process can combine door movement data and motor motion data for cross-verification. The control unit first uses door movement data (such as the conclusion that the door is stably closed as determined by the gyroscope and accelerometer) as a prerequisite for executing the locking action. Subsequently, after the drive motor performs the locking, the analysis of the motor motion data is used for final confirmation. For example, even if the motor motion data shows that the latch has extended to the correct position, if the door movement data subsequently indicates that the door has moved again (such as the gyroscope detecting a change in angular velocity), it may be judged that the locking state is unstable or the door has been reopened. Conversely, if the door remains stationary and the motor motion data is normal, the confidence level of the successful locking judgment is enhanced.
[0074] In another embodiment, the identification logic can also handle abnormal situations. If the control unit determines that the locking action has failed based on the motor motion data, for example, if the real-time operating current is abnormally high and exceeds the safety threshold during the locking process of the drive motor, indicating that the latch may be blocked (stalled) due to the door not being closed tightly or the presence of foreign objects, then even if the door operation data has previously determined that the door is closed, the control unit will still identify the door as not being in a valid locked state.
[0075] Based on the judgment result of the above recognition logic, the control unit generates a corresponding second calibration result. If the door is successfully identified as locked, a second calibration result indicating successful door state calibration is generated. If the door is not identified as locked, such as a failed locking action or an abnormal door state after locking, a corresponding result indicating door state calibration failure is generated. Furthermore, for cases where the second calibration result indicates failure, specific failure type information can be added. This second calibration result is ultimately returned by the smart lock's control unit to the user terminal device's application via the communication module, providing the application with a clear calibration conclusion for subsequent interface prompts.
[0076] The above embodiments, by leveraging the ability of smart locks to identify the second calibration results, not only achieve an objective and accurate judgment of the physical state of the door leaf, completely replacing the unreliable method that relies on subjective confirmation by the user, but also directly link the calibration effect with the effectiveness of the actual locking function through the automatic locking action and its real-time verification. Thus, while ensuring the automation and accuracy of the door state calibration process itself, it further endows it with the key ability to truly reflect the final performance of the smart lock, effectively solving the fundamental defect of traditional solutions that cannot perform closed-loop verification of calibration results.
[0077] Based on any embodiment of the method in this application, after sending a lock body calibration signal to the smart lock in response to a lock body calibration control triggered by the lock body calibration control in the calibration control interface, the method includes: Step S5110: Receive the first calibration result returned by the smart door lock during the lock body calibration process. The first calibration result is the motor zero-position calibration data generated based on the motor operation data detected by its motion sensor. After the user terminal device's application sends a lock body calibration signal to the smart lock, the application enters a state of waiting and receiving data returned by the smart lock. The data ultimately received by the application is the first calibration result returned by the smart lock after performing its internal lock body calibration process. Unlike the previous embodiment, in this embodiment, the first calibration result is not a simple success or failure conclusion, but rather motor zero-position calibration data generated by the smart lock based on the motor operation data detected by its motion sensor during the motor's self-test movement, after preliminary processing.
[0078] Motor zero-position calibration data is a type of intermediate data used to characterize the zero-position calibration status of a motor or latch actuator. Its specific form and content depend on the type of motion sensor used in the smart lock and its data processing strategy. In one embodiment, if the smart lock uses an absolute magnetic encoder as the primary position sensor, the motor operating data may include a continuous sequence of absolute angular positions of the motor shaft throughout its self-test motion. The smart lock's control unit may return this angular sequence, or key feature points extracted from it (such as the starting angle, ending angle, and total angle of movement), as motor zero-position calibration data. Simultaneously, the motor operating data may also include real-time operating current data collected by a current sensor. The smart lock may encapsulate current data, or current characteristic values associated with a specific angular position (such as the instantaneous current value when reaching a preset zero-position angle), within the motor zero-position calibration data.
[0079] In another embodiment, if the smart lock uses a Hall sensor for position detection, the motor operation data can be represented as a sequence of Hall sensor trigger events recorded during the self-test movement. For example, it could record the Hall sensor pulse count or timestamp corresponding to when the motor passes a preset zero-position marker. These event sequences, or the relative position information calculated from them, can constitute part of the motor zero-position calibration data. Similarly, current sensor data collected synchronously with this movement process may also be integrated into it.
[0080] Therefore, the first calibration result received by the application in this step is essentially a data packet containing the original or primary characteristics of the lock body calibration process. It serves as the objective basis for subsequent final success or failure determination, rather than a conclusion itself. The application needs to receive and parse this motor zero-position calibration data to prepare for the final decision in the next step.
[0081] Step S5120: Based on the motor zero-position calibration data, determine whether the motor zero-position calibration was successful, and correspondingly determine whether the first calibration result indicates success.
[0082] Upon receiving the motor zero-position calibration data from the smart door lock, the application takes on the responsibility of final analysis and judgment. Based on this data, it determines whether the motor's zero-position calibration was successful and accordingly determines whether the first calibration result indicates success. The judgment logic is executed by an algorithm or rule base implemented within the application, the specific method depending on the content contained in the motor zero-position calibration data.
[0083] In one embodiment, if the received motor zero-position calibration data includes angular position information generated based on an absolute magnetic encoder, such as the final absolute angle value reached by the motor during self-test motion, the application compares this angle value with a preset, valid zero-position angle range. This preset range can be determined according to the mechanical design parameters of the door lock, such as the theoretical angle range of the motor shaft when the latch is fully retracted. If the measured angle value falls within the preset range, the angle condition is preliminarily determined to be met. Simultaneously, the application checks for current characteristic information that may be included in the motor zero-position calibration data, such as the instantaneous current value when reaching the angular position. The application compares this current value with a preset normal current threshold. If the current value does not exceed the threshold, it indicates that the motor movement is smooth and there is no stall, and the current condition is determined to be normal. If both the angle and current meet expectations, the application determines that the motor zero-position calibration is successful, and thus determines that the first calibration result is successful. If the angle value exceeds the valid range, or the current value is abnormally high, the zero-position calibration is determined to fail, and the first calibration result fails.
[0084] In another embodiment, if the received motor zero-position calibration data mainly includes Hall sensor-based event information, such as whether the motor triggered a Hall sensor signal representing zero position within a expected time, the application's judgment logic focuses on verifying the occurrence of this event. The application checks whether the data contains a valid zero-position Hall sensor trigger record, such as a specific flag being set or a valid timestamp being recorded. Simultaneously, the application can analyze the synchronously recorded current information in the data to confirm whether the motor operating current is at a normal level and without sustained excessive current during the time period near the trigger event. If the application confirms that a valid zero-position trigger signal has been received and the associated current data is normal, the motor's zero-position calibration is determined to be successful, corresponding to a successful first calibration result. If no valid trigger signal is detected, or although a signal is detected but the current data is abnormal, the zero-position calibration is determined to have failed.
[0085] After the application completes its judgment, it treats this internal judgment result as the final conclusion on whether the first calibration result represents success, and uses it to control the direction of subsequent processes. For example, if the judgment is successful based on the motor zero-position calibration data, the application will proceed to the step of displaying door status calibration guidance information and activating the door status calibration control; if the judgment fails, it can display a prompt indicating that the lock body calibration has failed on the calibration control interface, guiding the user to perform the corresponding checks.
[0086] The above embodiments clearly delineate and coordinate the responsibilities of the smart lock side in collecting and encapsulating raw calibration data with those of the user terminal device side in performing complex analysis and judgment. This constructs a distributed processing architecture, which allows the lock body calibration judgment logic to be flexibly deployed on terminal devices with richer computing resources. This not only reduces the rigid requirements on the local processing capabilities of the smart lock, which is conducive to optimizing product costs, but also allows the updating and iteration of calibration algorithms and judgment rules to be carried out independently of the lock hardware. This greatly improves the flexibility, maintainability, and long-term evolvability of the calibration system, thereby providing a solid technical foundation for product differentiation and continuous optimization while achieving the core goal of accurate calibration.
[0087] Based on any embodiment of the method in this application, after responding to a door status calibration command triggered by the door status calibration control, triggering a user door closing operation guidance process, and sending a door status calibration signal to the smart door lock, the process includes: Step S5310: Receive the second calibration result returned by the smart door lock, wherein the second calibration result includes door operation data detected by the inertial sensor of the smart door lock, and / or includes motor motion data detected by the motion sensor when performing the locking action; After the user terminal device's application sends a door status calibration signal to the smart lock and triggers the user's door-closing operation guidance process, the application enters a state of waiting and receiving data returned by the smart lock. The data ultimately received by the application is the second calibration result returned by the smart lock after completing its internal door status calibration process. Unlike some of the aforementioned embodiments, in this embodiment, the second calibration result is not a direct final conclusion of whether the door status calibration was successful or failed, but rather includes raw or preliminary data used to support the application in making a final judgment.
[0088] Specifically, the data content included in the second calibration result can vary depending on the configuration and design of the smart lock. In one embodiment, the second calibration result includes door operation data detected by the inertial sensors built into the smart lock. The door operation data reflects the door's motion state and stationary posture during the user's closing operation. For example, it may include a sequence of door rotational angular velocities collected by a gyroscope, and linear acceleration data collected by an accelerometer (including the impact signal generated by the door closing and tilt angle information when stationary). This data records the complete dynamic process of the door from motion to rest.
[0089] In another embodiment, the second calibration result includes motor motion data detected by motion sensors during the automatic locking action. The motor motion data reflects the execution of the locking action, and its specific content depends on the type of motion sensor. For example, if an absolute magnetic encoder is used, the motor motion data may include a real-time angular position sequence during the extension of the latch by the motor; if a Hall sensor is used, it may include pulse signals related to the latch's movement position or trigger event records at specific locations. Simultaneously, the motor motion data typically also includes real-time operating current data acquired by a current sensor, which reflects the resistance encountered during the latch's extension.
[0090] In another embodiment, the second calibration result may simultaneously include the aforementioned door operation data and motor motion data, providing the application with a more comprehensive basis for judgment. Therefore, the second calibration result received by the application in this step is essentially a data set that carries key process information from both the door status perception and automatic locking verification stages. The application needs to receive and parse this data in order to perform the final status judgment in subsequent steps.
[0091] Step S5320: Based on the door operation data, determine whether the door has reached a stable closed state, and / or based on the motor motion data, determine whether the locking action has been successfully executed; After receiving the second calibration result from the smart lock, the application on the user terminal device takes on the final analysis and judgment responsibility, and independently evaluates the door status and locking action based on the data contained in the second calibration result.
[0092] The application first parses the second calibration result, extracting the door operation data and / or motor motion data contained therein. Then, the application executes its built-in judgment logic. The specific implementation path of the judgment logic depends on the data content provided by the second calibration result. In one embodiment, if the second calibration result contains door operation data, the application focuses on analyzing this data to determine whether the door has reached a stable closed state. For example, the application can process the angular velocity sequence provided by the gyroscope, detecting whether the angular velocity changes from a non-zero state and remains close to zero for a preset duration (e.g., two seconds) to determine whether the door is stationary. Simultaneously, the application can combine accelerometer data to verify whether the tilt angle of the door when stationary meets expectations and check for characteristic acceleration pulses indicating a closing impact in the data, thereby comprehensively concluding that the door has been stably closed.
[0093] In another embodiment, if the second calibration result includes motor motion data, the application focuses on analyzing this data to determine whether the locking action was successfully executed. For example, when the motor motion data includes an angular position sequence provided by an absolute magnetic encoder, the application checks whether the final angle value in the sequence has reached a preset target position angle representing the fully extended bolt. Simultaneously, the application analyzes real-time operating current data provided by a current sensor, checking whether a significant peak occurs in the current during bolt extension, especially near the end of the stroke, and whether this peak is within the normal range, followed by a drop in the current to a lower holding current level. If the angular position reaches the target and the current change characteristics conform to a successful locking pattern, the application determines that the locking action was successfully executed. If the motor motion data is primarily based on Hall sensor event logs, the application verifies whether a specific Hall sensor trigger signal indicating that the bolt is in position has been received and correlates this with a check of the current data for normality.
[0094] In another embodiment, if the second calibration result includes both door operation data and motor motion data, the application can execute more comprehensive cross-validation logic. The application first determines whether the door has been stably closed based on the door operation data, and then determines whether the locking action was successful based on the motor motion data. Only when both conditions are met does the application make a final positive judgment.
[0095] Step S5330: When the door reaches a stable closed state and the locking action is successful, the second calibration result is determined to be successful; otherwise, the characterization fails.
[0096] Based on the execution result of the above judgment logic, the application ultimately determines the overall state represented by the second calibration result. Specifically, when the application determines, based on available data, that the door has reached a stable closed state and the locking action has been successfully executed, the second calibration result is considered successful. Conversely, if data analysis determines that the door has not reached a stable closed state, or the locking action has failed, or neither of these conditions is met, the second calibration result is considered a failure. This final conclusion will be used by the application to control subsequent user interface prompts, such as displaying calibration success information or guiding the user to check for problems.
[0097] The above embodiments decouple and coordinate the responsibilities of the smart lock side in accurately collecting door operation data and motor motion data with the responsibilities of the user terminal device side in performing complex multi-source data fusion judgments. This constructs a new data-driven decision-making architecture. This architecture not only places the final judgment logic of door status calibration on the application side with stronger computing and updating capabilities, thereby improving the flexibility and evolvability of the judgment algorithm, but also ensures the objectivity and high reliability of the calibration conclusion by requiring the application to perform comprehensive analysis based on objective sensor data, namely door operation data and motor motion data, and strictly follow the judgment criteria of satisfying both stable door closure and successful locking action. This effectively avoids the risk of misjudgment based on single information, thereby further improving the accuracy and anti-interference capability of the entire door status calibration process on the basis of achieving automated calibration.
[0098] Based on any embodiment of the method in this application, the notification information corresponding to the second calibration result is displayed on the calibration control interface, including: Step S3410: When the second calibration result indicates that the door state calibration is successful and automatic locking is successful, display the first type of notification information to indicate that the overall calibration is successful; When the second calibration result indicates that the door status calibration is successful and automatic locking is successful, the application displays a first type of notification message to indicate overall calibration success. This signifies that the entire integrated calibration process has been successfully completed, and the door lock is in a usable, ready state. The purpose of this first type of notification message is to provide the user with confirmation of success and guidance to begin use. In one embodiment, this message may be concisely displayed as a text prompt such as "Calibration complete, please use," possibly accompanied by an icon representing success, such as a checkmark. This type of information aims to provide the user with clear positive feedback and guide them to end the calibration process and begin normal use of the smart door lock.
[0099] Step S3420: When the second calibration result indicates that the door status calibration is successful but automatic locking fails, a second type of notification information is displayed to indicate that the door may be partially ajar or blocked and to guide the user to check the door. When the second calibration result indicates that the door status calibration was successful but automatic locking failed, the application displays a second type of notification message to indicate that the door may be partially ajar or blocked and to guide the user to check the door. This status indicates that the door is in a stable closed state based on inertial sensor data, but in the subsequent automatic locking verification process, analysis of motor motion data reveals that the locking action failed to complete successfully.
[0100] A typical scenario is that the real-time operating current in the motor motion data shows an abnormally high and persistently high reading during the extension of the latch, possibly accompanied by the motor's angle position data failing to reach the preset fully extended latch position. This indicates that the latch has encountered an obstruction in its movement path. Such obstruction often stems from the door not being fully closed and remaining ajar, or from foreign objects blocking the latch path. Therefore, the second type of notification message needs to clearly convey this specific problem to the user. Its content can include prompts such as "The door may not be closed properly or the latch may be obstructed; please check if the door is fully closed and remove any obstructions," accompanied by appropriate warning icons. The purpose of this information is to guide the user to specifically check the physical condition of the door, rather than providing a general message of failure.
[0101] Step S3430: When the second calibration result indicates that the door status calibration has failed or has failed due to exceeding a preset time, a third type of notification information is displayed to indicate that the user has operated improperly or has not completed the operation and to guide the user to re-perform the door closing operation.
[0102] When the second calibration result indicates a door status calibration failure or failure due to exceeding a preset time, the application displays a third type of notification message to indicate improper user operation or incomplete operation and guide the user to re-perform the door closing operation. Door status calibration failure typically means that the door leaf has failed to reach a stable closed state based on the received door operation data. For example, inertial sensor data may show that the door leaf was constantly in motion during the monitoring period, or that a stationary period and impact signal consistent with closing characteristics were not detected. Failure due to exceeding the preset time usually means that a valid second calibration result was not received within the specified waiting time, or that the door operation data indicates that the user did not complete a valid door closing action within the specified time. Both situations point to a problem in the user's operation. Therefore, the content of the third type of notification message aims to guide the user to correctly perform the operation again. Its prompts may include text instructions such as "Please reopen the door and ensure that the door remains stationary after it is fully closed," and may be accompanied by an operational animation. The purpose of this information is to guide the user to correct their operation and provide clear guidance for the next calibration attempt.
[0103] The above embodiments accurately map the different technical states represented by the second calibration results with highly specific user prompts, constructing an intelligent feedback guidance closed loop. This closed loop can not only convey the overall calibration conclusion to the user, but also provide distinct and clearly instructive differentiated processing solutions based on the specific technical reasons for failure, such as successful door status perception but failed lock verification, or failure of door status perception itself and timeout. This upgrades the traditional one-way result notification to a two-way diagnostic and guidance interaction, greatly improving the user's processing efficiency and operational accuracy when facing calibration anomalies. It effectively solves the user confusion and repeated trial and error problems caused by the general feedback information of traditional technologies, and significantly optimizes the end-user experience.
[0104] Please see Figure 2 This invention provides a smart lock calibration control device to meet one of the purposes of this application. It is a functional embodiment of the smart lock calibration control method of this application. The device includes a lock body calibration module 3100, an interface activation module 3200, a door body calibration module 3300, and an information display module 3400. The lock body calibration module 3100 is configured to respond to a lock calibration command triggered by the calibration control interface, sending a lock body calibration signal to the smart lock to drive the smart lock to complete the lock body calibration process and return a first calibration result. The interface activation module 3200 is configured to display door status calibration guidance information and activate the door status calibration control when the first calibration result indicates success. The door body calibration module 3300 is configured to respond to a door status calibration command triggered by the door status calibration control, triggering a user door closing operation guidance process and sending a door status calibration signal to the smart lock to drive the smart lock to implement the door status calibration process corresponding to the user door closing operation and return a corresponding second calibration result. The information display module 3400 is configured to display notification information corresponding to the second calibration result on the calibration control interface.
[0105] Based on any embodiment of the device in this application, the lock body calibration module 3100 includes: a first control module, configured to respond to the door status calibration command and send door status calibration information to the smart lock, wherein the control signal carries a preset duration for controlling the smart lock to wait for the user to close the door; a door closing waiting module, configured to start a countdown timer corresponding to the preset duration on the calibration control interface to enter the user door closing operation waiting period; and a first result module, configured to listen to and receive the second calibration result returned by the smart lock within an additional duration greater than the preset duration.
[0106] Based on any embodiment of the device in this application, following the lock body calibration module 3100, the device further includes: a self-test drive module, configured to drive the motor of the smart lock to perform a self-test movement in response to the lock body calibration signal to achieve zero-position calibration; a self-test detection module, configured to detect the motor operation data generated during the self-test movement of the motor by the control unit of the smart lock through a motion sensor; and a first return module, configured to determine whether the motor has successfully reached the zero position based on the motor operation data, generate a corresponding first calibration result, and return it.
[0107] Based on any embodiment of the device in this application, following the door calibration module 3300, this device further includes: a door closing detection module, configured to have the control unit of the smart lock respond to the door state calibration signal and detect door operation data generated by the user's door closing operation using an inertial sensor; a closing drive module, configured to have the control unit of the smart lock determine whether the door has reached a stable closed state based on the door operation data, and when the closed state is reached, drive the motor to perform locking, and drive a motion sensor to detect motor operation data generated during the locking process; and a second return module, configured to have the control unit of the smart lock identify whether the door is in a locked state based on the door operation data and / or the motor motion data, generate a corresponding second calibration result, and return it.
[0108] Based on any embodiment of the device in this application, following the lock body calibration module 3100, the device further includes: a first receiving module, configured to receive a first calibration result returned by the smart door lock during the lock body calibration process, wherein the first calibration result is motor zero-position calibration data generated based on motor operating data detected by its motion sensor; and a first determining module, configured to determine whether the zero-position calibration of the motor is successful based on the motor zero-position calibration data, and correspondingly determine whether the first calibration result indicates success.
[0109] Based on any embodiment of the device in this application, following the door calibration module 3300, the device further includes: a second receiving module, configured to receive a second calibration result returned by the smart door lock, wherein the second calibration result includes door operation data detected by the inertial sensor of the smart door lock, and / or includes motor motion data detected by the motion sensor when performing the locking action; a result determination module, configured to determine whether the door has reached a stable closed state based on the door operation data, and / or determine whether the locking action has been successfully executed based on the motor motion data; and a second determination module, configured to determine that the second calibration result represents success when the door has reached a stable closed state and the locking action is successful, otherwise it represents failure.
[0110] Based on any embodiment of the device in this application, the information display module 3400 includes: a first type of notification module, configured to display first type of notification information indicating overall calibration success when the second calibration result indicates successful door state calibration and successful automatic locking; a second type of notification module, configured to display second type of notification information indicating that the door may be partially ajar or blocked and guiding the user to check the door when the second calibration result indicates successful door state calibration but automatic locking fails; and a third type of notification module, configured to display third type of notification information indicating improper user operation or incomplete operation and guiding the user to re-perform the door closing operation when the second calibration result indicates failed door state calibration or fails due to exceeding a preset time.
[0111] To address the aforementioned technical problems, embodiments of this application also provide a computer device. For example... Figure 3 The diagram shows the internal structure of a computer device. This computer device includes a processor, a computer-readable storage medium, a memory, a network interface, and various communication components connected via a system bus. The computer-readable storage medium stores an operating system, a database, and computer-readable instructions. The database may store control information sequences. When the processor executes the computer-readable instructions, it enables the processor to implement a smart door lock calibration control method. The processor provides computing and control capabilities, supporting the operation of the entire computer device. The memory stores computer-readable instructions, which, when executed by the processor, enable the processor to execute the smart door lock calibration control method of this application. The network interface of the computer device is used for communication with a terminal. Those skilled in the art will understand that… Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0112] In this embodiment, the processor is used to execute... Figure 2 The system contains the specific functions of each module and its sub-modules, and the memory stores the program code and various data required to execute these modules or sub-modules. A network interface is used for data transmission between the user terminal and the server. In this embodiment, the memory stores the program code and data required to execute all modules / sub-modules in the intelligent door lock calibration control device of this application, and the server can call the server's program code and data to execute the functions of all sub-modules.
[0113] This application also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the smart door lock calibration control method of any embodiment of this application.
[0114] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. This computer program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. The aforementioned storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
[0115] Those skilled in the art will understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, modified, combined, or deleted. Furthermore, other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, modified, rearranged, decomposed, combined, or deleted. Furthermore, steps, measures, and solutions in the prior art that are similar to those in the open-source operations, methods, and processes of this application can also be alternated, modified, rearranged, decomposed, combined, or deleted.
[0116] The above description is only a partial embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A smart door lock calibration control method, characterized in that, include: In response to a lock calibration command triggered by the calibration control interface, a lock body calibration signal is sent to the smart lock to drive the smart lock to complete the lock body calibration process and return the first calibration result; When the first calibration result is successfully characterized, the gate state calibration guidance information is displayed and the gate state calibration control is activated. In response to the door status calibration command triggered by the door status calibration control, a user door closing operation guidance process is triggered, and a door status calibration signal is sent to the smart door lock to drive the smart door lock to implement the door status calibration process corresponding to the user door closing operation and return the corresponding second calibration result. The calibration control interface displays notification information corresponding to the second calibration result.
2. The intelligent door lock calibration control method according to claim 1, characterized in that, In response to a door status calibration command triggered by the door status calibration control, a user door closing operation guidance process is initiated, and a door status calibration signal is sent to the smart door lock, including: In response to the door status calibration command, door status calibration information is sent to the smart door lock. This control signal carries a preset duration for controlling the smart door lock to wait for the user to close the door. Start the countdown timer corresponding to the preset duration on the calibration control interface to enter the user's door closing operation waiting period; Listen to and receive the second calibration result returned by the smart door lock within an additional time range greater than the preset time.
3. The intelligent door lock calibration control method according to claim 1, characterized in that, After responding to the lock calibration command triggered by the lock body calibration control in the calibration control interface and sending a lock body calibration signal to the smart lock, the process includes: The control unit of the smart door lock responds to the lock body calibration signal and drives its motor to perform a self-test movement to achieve zero-position calibration; The control unit of the smart door lock detects the motor operation data generated during the self-test motion of the motor through a motion sensor; The control unit of the smart door lock determines whether the motor has successfully reached the zero position based on the motor operation data, generates the corresponding first calibration result, and returns it.
4. The intelligent door lock calibration control method according to claim 1, characterized in that, In response to a door status calibration command triggered by the door status calibration control, after initiating a user door closing operation guidance process and sending a door status calibration signal to the smart lock, the process includes: The control unit of the smart door lock responds to the door status calibration signal and detects door operation data generated by the user's door closing operation through an inertial sensor; The control unit of the smart door lock determines whether the door has reached a stable closed state based on the door's operating data. When the door reaches the closed state, it drives the motor to lock the door and drives the motion sensor to detect the motor's operating data generated during the locking process. The control unit of the smart door lock identifies whether the door is locked based on the door operation data and / or the motor motion data, generates a corresponding second calibration result, and returns it.
5. The intelligent door lock calibration control method according to claim 1, characterized in that, In response to a lock calibration command triggered by the lock body calibration control in the calibration control interface, after sending a lock body calibration signal to the smart lock, the process includes: The system receives the first calibration result returned by the smart door lock during the lock body calibration process. The first calibration result is the motor zero-position calibration data generated based on the motor operation data detected by its motion sensor. Based on the motor zero-position calibration data, determine whether the motor zero-position calibration was successful, and correspondingly determine whether the first calibration result indicates success.
6. The intelligent door lock calibration control method according to claim 1, characterized in that, In response to a door status calibration command triggered by the door status calibration control, after initiating a user door closing operation guidance process and sending a door status calibration signal to the smart lock, the process includes: The system receives a second calibration result returned by the smart door lock, wherein the second calibration result includes door operation data detected by the inertial sensor of the smart door lock, and / or includes motor motion data detected by the motion sensor when performing the locking action; Based on the door operation data, determine whether the door has reached a stable closed state, and / or based on the motor motion data, determine whether the locking action has been successfully executed; When the door reaches a stable closed state and the locking action is successful, the second calibration result is determined to be successful; otherwise, the calibration fails.
7. The intelligent door lock calibration control method according to any one of claims 1 to 6, characterized in that, The calibration control interface displays notification information corresponding to the second calibration result, including: When the second calibration result indicates that the door state calibration is successful and automatic locking is successful, a first type of notification information is displayed to indicate that the overall calibration is successful. When the second calibration result indicates that the door status calibration is successful but automatic locking fails, a second type of notification information is displayed to indicate that the door may be ajar or blocked and to guide the user to check the door. When the second calibration result indicates that the door status calibration has failed or has failed due to exceeding a preset time, a third type of notification information is displayed to indicate that the user has operated improperly or has not completed the operation and to guide the user to re-perform the door closing operation.
8. A smart door lock calibration control device, characterized in that, include: The lock body calibration module is configured to respond to a lock calibration command triggered by the calibration control interface, send a lock body calibration signal to the smart lock, drive the smart lock to complete the lock body calibration process and return the first calibration result; The interface activation module is set to display gate state calibration guidance information and activate the gate state calibration control when the first calibration result characterization is successful. The door calibration module is configured to respond to the door status calibration command triggered by the door status calibration control, trigger the user door closing operation guidance process, and send a door status calibration signal to the smart door lock to drive the smart door lock to implement the door status calibration process corresponding to the user door closing operation and return the corresponding second calibration result. The information display module is configured to display notification information corresponding to the second calibration result on the calibration control interface.
9. A computer device comprising a controller, the controller including a processor and a memory, characterized in that, The processor invokes and runs a computer program in the memory to perform the steps of the smart door lock calibration control method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, It stores, in the form of computer-readable instructions, a computer program implemented according to any one of claims 1 to 7, which, when invoked by a computer, performs the steps included in the corresponding method.