Devices and methods for controlling smart lock
AssigneeYunding Network Technology (Beijing) Co., Ltd.
InventorsTao Li, Binghui Peng, Qi Yi, Kai Zhang, Wenfeng Li
Life of this patent
Estimating the term…
Abstract
The present disclosure discloses a method for controlling a smart lock. The method includes obtaining a control request for a smart lock, wherein the control request carries ciphertext information; decrypting the ciphertext information in response to the control request; and controlling the smart lock to perform a target operation based on a decrypted control request.
Claims22
A method for controlling a smart lock, implemented on a computing device having at least one processor and at least one storage medium, the method comprising:
- obtaining a control request for a smart lock, wherein the control request carries ciphertext information, wherein the ciphertext information is obtained by performing at least one of following encryption operations on at least part of the control request:
- a symmetric encryption algorithm and an asymmetric encryption algorithm;
- decrypting the ciphertext information in response to the control request;
- controlling the smart lock to perform a target operation based on a decrypted control request;
- and
- obtaining state information, wherein the state information reflects a state of the smart lock and/or a door body on which the smart lock is installed before and/or after the target operation, the smart lock includes a third sensor, and the third sensor is configured to detect a retraction angle of a driving part of the smart lock, wherein the driving part is configured to drive a movement of the square shaft of the smart lock body, and the obtaining the state information of the smart lock further includes:
- obtaining third collected data of the third sensor;
- determining the retraction angle of the driving part based on the third collected data;
- controlling the driving part to stop rotating when the retraction angle of the driving part meets a preset angle threshold;
- and
- controlling the driving part to keep retracting to reach the preset angle threshold when the retraction angle of the driving part does not meet the preset angle threshold.
A device for controlling a smart lock, comprising:
- a first obtaining unit configured to obtain a control request for a smart lock, wherein the control request carries ciphertext information;
- a decryption unit configured to decrypt the ciphertext information in response to the control request;
- an execution unit configured to control the smart lock to perform a target operation based on a decrypted control request;
- a second obtaining unit configured to obtain state information, wherein the state information reflects a state of the smart lock and/or a door body on which the smart lock is installed before and/or after the target operation;
- a control unit, the smart lock includes a third sensor, the third sensor is configured to detect a retraction angle of a driving part of the smart lock, wherein the driving part is configured to drive a movement of the square shaft of the smart lock body;
- the second obtaining unit is configured to:
- obtain third collected data of the third sensor;
- and
- determine a retraction angle of the driving part based on the third collected data;
- the control unit is configured to:
- control the driving part stop rotating when the retraction angle of the driving part meets a preset angle threshold;
- and
- control the driving part keep retracting to reach the preset angle threshold when the retraction angle of the driving part does not meet the preset angle threshold;
- a wireless interaction unit configured to receive a wireless signal of a target terminal device, wherein the target terminal device is a terminal device that establishes a wireless connection with the smart lock, determine whether a preset condition is met based on the wireless signal of the target terminal device, and instruct the target terminal device to send the control request for the smart lock when the preset condition is met.
A device for controlling a smart lock, comprising:
- a third obtaining unit configured to obtain a remote control instruction, wherein the remote control instruction is generated by a terminal device in response to a remote target operation input by a user;
- and obtain a smart lock identifier corresponding to the remote control instruction;
- a request generation unit configured to generate a control request for a smart lock carrying ciphertext information;
- a first transmission unit configured to send the control request to the smart lock corresponding to the smart lock identifier;
- a determination unit configured to determine whether a terminal device meets a preset wireless signal transmission condition;
- a wireless transmission unit configured to send a wireless signal to a smart lock if the preset wireless signal transmission condition is met so that when the smart lock determines that the preset condition is met based on a wireless signal, instructing the terminal device to send a control request for the smart lock;
- a second transmission unit configured to send the control request for the smart lock to the smart lock so that the smart lock controls the smart lock to perform a target operation based on the control request for the smart lock;
- a second obtaining unit configured to obtain state information, wherein the state information reflects a state of the smart lock and/or a door body on which the smart lock is installed before and/or after the target operation;
- and
- a control unit, the smart lock includes a third sensor, the third sensor is configured to detect a retraction angle of a driving part of the smart lock, wherein the driving part is configured to drive a movement of the square shaft of the smart lock body;
- wherein the second obtaining unit is further configured to:
- obtain third collected data of the third sensor;
- and
- determine a retraction angle of the driving part based on the third collected data;
- the control unit is configured to:
- control the driving part stop rotating when the retraction angle of the driving part meets a preset angle threshold;
- and
- control the driving part keep retracting to reach the preset angle threshold when the retraction angle of the driving part does not meet the preset angle threshold.
A non-transitory computer-readable storage medium, comprising instructions that, when executed by at least one processor, direct the at least processor to perform a method for controlling a smart lock, the method comprising:
- obtaining a control request for a smart lock, wherein the control request carries ciphertext information;
- decrypting the ciphertext information in response to the control request;
- controlling the smart lock to perform a target operation based on a decrypted control request;
- and
- obtaining state information, wherein the state information reflects a state of the smart lock and/or a door body on which the smart lock is installed before and/or after the target operation, the smart lock includes a third sensor, and the third sensor is configured to detect a retraction angle of a driving part of the smart lock, wherein the driving part is configured to drive a movement of the square shaft of the smart lock body, and the obtaining the state information of the smart lock further includes:
- obtaining third collected data of the third sensor;
- determining the retraction angle of the driving part based on the third collected data;
- controlling the driving part to stop rotating when the retraction angle of the driving part meets a preset angle threshold;
- and
- controlling the driving part to keep retracting to reach the preset angle threshold when the retraction angle of the driving part does not meet the preset angle threshold.
Dependencies are inferred from the claim text.