Code Lock Control via Pre-stored Code Pairs
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing code lock control methods for borrowed bicycles require network communication, leading to high costs for service providers due to the need for network communication modules and associated fees.
Innovation Solution
A method and device that control a code lock by parsing unlock requests, acquiring and sending unlock codes without network communication, allowing users to unlock and lock code locks using a pre-stored code pair sequence, reducing costs by eliminating the need for network communication functions.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the code lock has network communication function to feed back current state, then the service provider can monitor lock status, but the cost increases due to network communication module and fees
Solution Approach 1:
The patent extracts the network communication function from the code lock device itself and relocates it to the service provider's server. The code lock only retains the basic locking/unlocking function with local state storage, while the server handles all network communication, state tracking, and code pair management. This separation eliminates the need for expensive network modules in each code lock while maintaining full state feedback capability.
Solution Approach 2:
The patent introduces the service provider's server as an intermediary between the user and the code lock. The server acts as a mediator that receives unlock requests from users, manages code pairs, and communicates with code locks only when necessary. This intermediary approach allows centralized state management without requiring network communication capabilities in each individual code lock device.
2Device complexity
If the code lock uses pre-stored code pair sequence without network communication, then the cost is reduced, but the state feedback capability must be maintained through alternative means
Solution Approach 1:
The patent implements preliminary action by pre-storing multiple code pairs in both the service provider's server and the code lock device before any locking operation. Each code pair consists of an unlock code and a corresponding feedback code. When the code lock needs to report its state, it simply displays the pre-prepared feedback code, eliminating the need for active network communication while ensuring accurate state information is available.
Solution Approach 2:
The patent establishes a feedback mechanism where the code lock stores both unlock codes and their corresponding feedback codes locally. After a user unlocks the lock using an unlock code, the system automatically provides the corresponding feedback code to the user, who then submits it to the server to confirm the locking state. This closed-loop feedback system ensures accurate state tracking without requiring continuous network communication from the code lock itself.
Data Source
AI summary
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.


