IP Library Granted Patent US 10,679,439
Granted Patent B2
US 10,679,439 · App. 16/355,583 · Granted Jun 9, 2020

Method and device for controlling code lock

Inventor: Junfang Han (Beijing, CN)
Assignee: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
G07C9/00182G07C9/00174G07C9/00571G07C9/00896G07C2209/08G07F17/0057
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,679,439
App. No.
16/355,583
Granted
Jun 9, 2020
Kind
B2
Abstract

Disclosed are a method and a device for controlling a code lock. The method comprises: receiving an unlock request for a target code lock sent by a client; parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition; in response to determining that the unlock request satisfies the preset unlock condition, acquiring the current state of the target code lock; if the current state of the target code lock is a locked state, acquiring the unlock code of the current code pair for the target code lock, changing the current state of the target code lock to an unlocked state, and sending the acquired unlock code to the client; and in response to receiving the lock feedback code of the current code pair for the target code lock sent by the client, changing the current state of the target code lock to a locked state.

Claims (54)

1. A method for controlling a code lock, the method comprising:

receiving an unlock request for a target code lock sent by a client;

parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition;

acquiring a current state of the target code lock, in response to determining that the unlock request satisfies the preset unlock condition;

if the current state of the target code lock is a locked state, acquiring an unlock code of a current code pair for the target code lock, changing the current state of the target code lock to an unlocked state, and sending the acquired unlock code to the client, such that a user uses the unlock code received by the client to unlock the target code lock; and

changing the current state of the target code lock to the locked state, in response to receiving a lock feedback code of the current code pair for the target code lock sent by the client, the lock feedback code being displayed on the target code lock after the target code lock is locked.

2. The method according to claim 1 , wherein the method further comprises:

if the current state of the target code lock is the unlocked state, sending a prompt message to the client to prompt the client to send the lock feedback code displayed after the target code lock is locked.

3. The method according to claim 1 , wherein the acquiring an unlock code of a current code pair for the target code lock comprises:

acquiring a pre-stored code pair sequence built in the target code lock and a parameter for indicating the current code pair in the code pair sequence, and searching the code pair sequence for the unlock code of the current code pair indicated by the parameter.

4. The method according to claim 3 , wherein the method further comprises:

changing the code pair currently indicated by the parameter to a next code pair of the current code pair, after receiving the lock feedback code of the current code pair for the target code lock sent by the client.

5. The method according to claim 1 , wherein the unlock request comprises a user identifier; and

the parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition, comprises:

acquiring information of a user indicated by the user identifier to determine whether the user has an unlocking permission.

6. The method according to claim 1 , wherein the unlock request comprises an identifier of the target code lock; and

the parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition, comprises:

searching a pre-stored identifier of a code lock for the identifier of the target code lock to determine whether the identifier of the target code lock is pre-stored.

7. The method according to claim 1 , wherein the method further comprises:

sending an abnormity prompt message to the client, in response to determining that the unlock request does not satisfy the preset unlock condition.

8. The method according to claim 1 , wherein the method further comprises:

recording unlock time and lock time of the target code lock.

9. The method according to claim 8 , wherein the method further comprises:

when a duration of the target code lock in the unlocked state exceeds a duration threshold, sending a timeout prompt message to the client.

10. A device for controlling a code lock, the device comprising:

at least one processor; and

a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising:

receiving an unlock request for a target code lock sent by a client;

parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition;

acquiring a current state of the target code lock, in response to determining that the unlock request satisfies the preset unlock condition;

if the current state of the target code lock is a locked state, acquiring an unlock code of a current code pair for the target code lock, changing the current state of the target code lock to an unlocked state, and sending the acquired unlock code to the client, such that a user uses the unlock code received by the client to unlock the target code lock; and

changing the current state of the target code lock to the locked state, in response to receiving a lock feedback code of the current code pair for the target code lock sent by the client, the lock feedback code being displayed on the target code lock after the target code lock is locked.

11. The device according to claim 10 , wherein the operations further comprise:

if the current state of the target code lock is the unlocked state, sending a prompt message to the client to prompt the client to send the lock feedback code displayed after the target code lock is locked.

12. The device according to claim 10 , wherein the acquiring an unlock code of a current code pair for the target code lock comprises:

acquiring a pre-stored code pair sequence built in the target code lock and a parameter for indicating the current code pair in the code pair sequence, and searching the code pair sequence for the unlock code of the current code pair indicated by the parameter.

13. The device according to claim 12 , wherein the operations further comprise:

changing the code pair currently indicated by the parameter to a next code pair of the current code pair, after receiving the lock feedback code of the current code pair for the target code lock sent by the client.

14. The device according to claim 10 , wherein the unlock request comprises a user identifier; and the parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition, comprises:

acquiring information of a user indicated by the user identifier to determine whether the user has an unlocking permission.

15. The device according to claim 10 , wherein the unlock request comprises an identifier of the target code lock; and the parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition, comprises:

searching a pre-stored identifier of a code lock for the identifier of the target code lock to determine whether the identifier of the target code lock is pre-stored.

16. The device according to claim 10 , wherein the operations further comprise:

sending an abnormity prompt message to the client, in response to determining that the unlock request does not satisfy the preset unlock condition.

17. The device according to claim 10 , wherein the operations further comprise:

recording unlock time and lock time of the target code lock.

18. The device according to claim 17 , wherein the operations further comprise:

when a duration of the target code lock in the unlocked state exceeds a duration threshold, sending a timeout prompt message to the client.

19. A non-transitory computer storage medium, storing computer readable instructions executable by a processor, the computer readable instructions, when executed by the processor, cause the processor to perform operations, the operations comprising:

receiving an unlock request for a target code lock sent by a client;

parsing the unlock request to determine whether the unlock request satisfies a preset unlock condition;

acquiring a current state of the target code lock, in response to determining that the unlock request satisfies the preset unlock condition;

if the current state of the target code lock is a locked state, acquiring an unlock code of a current code pair for the target code lock, changing the current state of the target code lock to an unlocked state, and sending the acquired unlock code to the client, such that a user uses the unlock code received by the client to unlock the target code lock; and

changing the current state of the target code lock to the locked state, in response to receiving a lock feedback code of the current code pair for the target code lock sent by the client, the lock feedback code being displayed on the target code lock after the target code lock is locked.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 18, 2019
From: HAN, JUNFANG
To: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
Reel/Frame 048933/0555 →
Priority Claims (1)
CN 2016 1 1110548 · Dec 2, 2016 · national
Continuity (2)
Continuation PCTCN2017079717 · Apr 7, 2017
Related Publication 20190213814A1 · Jul 11, 2019
Cited By (1)
US 12,354,427