[summary of the invention]
Based on this, be necessary to provide a kind of coded lock control method based on radio communication that can reduce the memory cipher burden and need not manually to input password.
A kind of coded lock control method based on radio communication is used for coded lock being unblanked and locking control by the secret key terminal at the coding lock system that comprises secret key terminal and coded lock, may further comprise the steps:
Coded lock upgrades according to predetermined period and pre-defined algorithm and secret key is opened in storage;
The secret key terminal sends unblank checking request and the secret key of unblanking to coded lock, and the described secret key of unblanking is upgraded according to described predetermined period and pre-defined algorithm;
Described coded lock responds the described checking request of unblanking, and reads described unlatching secret key, and the described secret key of unblanking is compared with the unlatching secret key, judges whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
Preferably, also comprise:
The secret key terminal is initiated synchronization request to coded lock, and cycle and coded lock that request is upgraded the secret key of unblanking with the secret key terminal upgrade the cycle synchronisation of opening secret key;
Coded lock responds described synchronization request, and sets up synchronous communication with the secret key terminal and be connected.
Preferably, described coded lock responds described synchronization request, and sets up the synchronous communication step of connecting with the secret key terminal and specifically comprise:
Coded lock sends the time threshold of internal timer to the secret key terminal;
The secret key terminal is set the time threshold of secret key terminal inner timer according to the time threshold of the internal timer of coded lock, connects thereby finish synchronous communication.
Preferably, described coded lock control method based on radio communication also comprises:
Described coded lock is under the time threshold of internal timer drives, generate new unlatching secret key according to described pre-defined algorithm, described secret key terminal synchronizes ground generates the unblank secret key corresponding with coded lock according to the described pre-defined algorithm corresponding with coded lock under the time threshold of internal timer drives.
Preferably, described coded lock control method based on radio communication also comprises:
The secret key terminal sends initialization request to coded lock;
Coded lock sends current unlatching secret key and secret key generate pattern identification code to the secret key terminal after receiving described initialization request;
Secret key was opened in storage after described secret key terminal received described unlatching secret key and secret key generate pattern identification code, and according to secret key generate pattern identification code select with coded lock in corresponding pre-defined algorithm, and the memory address that will open secret key is recorded in the address search table of pre-defined algorithm of correspondence;
Preferably, secret key was opened in storage after described secret key terminal received described unlatching secret key and secret key generate pattern identification code, and according to secret key generate pattern identification code select with coded lock in corresponding pre-defined algorithm, and the step that the memory address that will open secret key is recorded in the address search table of pre-defined algorithm of correspondence comprises:
The memory address that described secret key terminal will be opened secret key sends to the secret key generate pattern and activates the unit;
Described secret key generate pattern activates the unit and selects the pre-defined algorithm corresponding with coded lock according to secret key generate pattern identification code, and memory address is recorded in the corresponding address search table of pre-defined algorithm.
Preferably, described coded lock control method based on radio communication also comprises:
After the described pre-defined algorithm corresponding with coded lock generates the new secret key of unblanking, the described new secret key of unblanking covers the old unlatching secret key of this address correspondence in the described secret key memory cell according to the address of recording in the described corresponding address search table of pre-defined algorithm corresponding with coded lock.
Preferably, described secret key terminal has multiple pre-defined algorithm, a kind of corresponding in the multiple pre-defined algorithm in the pre-defined algorithm in the described coded lock and the secret key terminal.
Preferably, described coded lock control method based on radio communication also comprises: transmit secret key according to transmitting the secret key request between described secret key terminal and the secret key terminal.
In addition, also be necessary to provide a kind of coded lock control system based on radio communication that can reduce the memory cipher burden and need not manually to input password.
A kind of coded lock control system based on radio communication is used for coded lock being unblanked and locking control by the secret key terminal at the coding lock system that comprises secret key terminal and coded lock, comprises coded lock and secret key terminal,
Described coded lock is used for upgrading and storage unlatching secret key according to predetermined period and pre-defined algorithm;
Described secret key terminal is used for sending unblank checking request and the secret key of unblanking to coded lock, and the described secret key of unblanking is upgraded according to described predetermined period and pre-defined algorithm;
Described coded lock also for responding the described checking request of unblanking, reads described unlatching secret key, and the described secret key of unblanking is compared with the unlatching secret key, judges whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
Preferably, described secret key terminal also is used for initiating synchronization request to coded lock, and cycle and coded lock that request is upgraded the secret key of unblanking with the secret key terminal upgrade the cycle synchronisation of opening secret key;
Described coded lock is used for the described synchronization request of response, and sets up synchronous communication with the secret key terminal and be connected.
Preferably, described coded lock also is used for sending to the secret key terminal time threshold of internal timer;
Described secret key terminal also is used for setting the time threshold of secret key terminal inner timer according to the time threshold of the internal timer of coded lock, connects thereby finish synchronous communication.
Preferably, described coded lock is under the time threshold of internal timer drives, generate new unlatching secret key according to described pre-defined algorithm, described secret key terminal synchronizes ground generates the unblank secret key corresponding with coded lock according to the described pre-defined algorithm corresponding with coded lock under the time threshold of internal timer drives.
Preferably, described coded lock comprises coded lock transceiver module, coded lock secret key generation module, coded lock timer and access control module, described coded lock transceiver module is connected with coded lock secret key generation module and access control module, and described coded lock secret key generation module is connected with the coded lock timer;
Described secret key terminal comprises secret key terminal transceiver module, secret key terminal secret key generation module, secret key terminal timer, described secret key terminal transceiver module is connected with secret key terminal secret key generation module, and described coded lock secret key generation module is connected with secret key terminal timer;
Described secret key terminal transceiver module is used for sending initialization request to coded lock;
Described coded lock transceiver module is used for receiving described initialization request and sends current unlatching secret key and secret key generate pattern identification code to the secret key terminal;
Described secret key terminal transceiver module is used for receiving described unlatching secret key and secret key generate pattern identification code;
Secret key was opened in storage after described secret key terminal received described unlatching secret key and secret key generate pattern identification code, and according to secret key generate pattern identification code select with coded lock in corresponding pre-defined algorithm, and the memory address that will open secret key is recorded in the address search table of pre-defined algorithm of correspondence;
Described secret key terminal timer is used for setting the time threshold that synchronously drives the secret key terminal, described secret key terminal synchronizes ground generates new the unblank secret key corresponding with coded lock according to the described pre-defined algorithm corresponding with coded lock under the time threshold of internal timer drives;
Described secret key terminal transceiver module also is used for sending the secret key of unblanking of unblanking to verify request and current generation to coded lock;
Described access control module basis is unblanked to verify and is asked the secret key of unblanking is compared with the unlatching secret key, judges whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
Preferably, described secret key terminal secret key generation module comprises that secret key memory cell, secret key generation unit and secret key generate pattern activate the unit; Described secret key generate pattern activates the unit and is connected with described secret key memory cell, and described secret key memory cell is connected with the secret key generation unit, and described secret key terminal timer activates the unit with the secret key generate pattern and is connected;
Described secret key memory cell is used for storage and opens secret key, and the memory address that described secret key generation unit will be opened secret key sends to the secret key generate pattern and activates the unit;
Described secret key generate pattern activates the unit and is used for selecting the pre-defined algorithm corresponding with coded lock according to secret key generate pattern identification code, and memory address is recorded in the corresponding address search table of pre-defined algorithm;
Described secret key generation unit is used for when internal timer reaches threshold value, generates the new secret key of unblanking with activating the pre-defined algorithm corresponding with coded lock;
After the described pre-defined algorithm corresponding with coded lock generates the new secret key of unblanking, the described new secret key of unblanking covers the old unlatching secret key of this address correspondence in the described secret key memory cell according to the address of recording in the described corresponding address search table of pre-defined algorithm corresponding with coded lock;
Described coded lock secret key generation module comprises coded lock memory cell, coded lock secret key generation unit, described coded lock memory cell is connected with the coded lock transceiver module, and described coded lock secret key generation unit is connected with coded lock memory cell and coded lock timer simultaneously;
Described coded lock secret key generation unit is used for generating new unlatching secret key according to described pre-defined algorithm under the time threshold of internal timer drives;
Described coded lock memory module is used for the described unlatching secret key of storage.
Above-mentioned coded lock control method based on radio communication can make coded lock and secret key terminal form pairing initialized the time, make the secret key terminal can obtain unlatching secret key and the secret key generating algorithm of coded lock, thereby under can driving at the time threshold of internal timer, coded lock and secret key terminal synchronizes are upgraded and are opened secret key, realization can arrange upgrades secret key temporally synchronously automatically between secret key terminal and coded lock, need not user's manual operation.Safety and the convenience of coded lock have been improved.
[specific embodiment]
As shown in Figure 1, be the coded lock control method flow diagram based on radio communication of an embodiment.The method of present embodiment is used for coded lock being unblanked and locking control by the secret key terminal at the coding lock system that comprises secret key terminal and coded lock, specifically may further comprise the steps:
Step S110, coded lock upgrades according to predetermined period and pre-defined algorithm and secret key is opened in storage.
Coded lock is the mechanical lock with control module, and control module is unblanked the unlatching secret key of secret key and coded lock storage inside when consistent in checking, and the indication mechanical lock is unblanked.Stored pre-defined algorithm in the control module, and the time that pre-defined algorithm generate to be opened secret key preset, namely coded lock can upgrade the unlatching secret key with pre-defined algorithm by predetermined period.Pre-defined algorithm is the secret key generating algorithm, is to generate the mode of opening secret key, and pre-defined algorithm can generate different unlatching secret keys.In unlatching secret key cycle rise time that predetermined period arranges for the user, for example, it is 24 hours that the user arranges predetermined period, and pre-defined algorithm was then just generating new unlatching secret key every 24 hours so.
The secret key terminal is equivalent to open the key of coded lock.After setting up synchronous communication between secret key terminal palpus and the coded lock, the secret key terminal can generate the secret key of unblanking according to the pre-defined algorithm corresponding with coded lock, and the secret key of unblanking is that the secret key terminal is used for opening coded lock, and pre-defined algorithm is the secret key generating algorithm.Because the pre-defined algorithm in the coded lock is fixed, be benchmark with the predetermined period in the coded lock simultaneously, the condition that makes the secret key terminal can open coded lock is: consistent in the pre-defined algorithm of secret key terminal and the coded lock, and predetermined period and coded lock are synchronous.
The step that secret key terminal and coded lock are set up synchronous communication is specially following two steps:
1. the secret key terminal is initiated synchronization request to coded lock, and cycle and coded lock that request is upgraded the secret key of unblanking with the secret key terminal upgrade the cycle synchronisation of opening secret key.
2. coded lock responds described synchronization request, and sets up synchronous communication with the secret key terminal and be connected.
In the above-mentioned step of setting up synchronous communication, the secret key terminal sends synchronization request namely asks coded lock to send the predetermined period of coded lock to the secret key terminal.The predetermined period that coded lock response synchronization request is about in the coded lock sends to the secret key terminal, thereby coded lock is consistent with the predetermined period of secret key terminal, namely sets up synchronous communication and connects.
In the present embodiment, coded lock responds described synchronization request, and sets up the synchronous communication step of connecting with the secret key terminal and specifically comprise:
1. coded lock sends the time threshold of internal timer to the secret key terminal.
2. the secret key terminal is set the time threshold of secret key terminal inner timer according to the time threshold of the internal timer of coded lock, connects thereby finish synchronous communication.
The time threshold of coded lock internal timer is predetermined period, and the coded lock internal timer carries out timing according to predetermined period, reaches with predetermined period in timing to be worth when identical, namely reaches time threshold, and the pre-defined algorithm in the coded lock then generates new unlatching secret key.
After coded lock sends to the secret key terminal with the time threshold of internal timer, the secret key terminal changes to the time threshold of internal timer consistent with the internal timer of coded lock, therefore, the secret key terminal is consistent with the predetermined period of coded lock, it is consistent with the Time And Frequency of opening secret key namely to generate the secret key of unblanking, and connects thereby finish synchronous communication.
In the present embodiment, coded lock is under the time threshold of internal timer drives, according to the new unlatching secret key of predetermined generation, described secret key terminal synchronizes ground generates new the unblank secret key corresponding with coded lock according to the described pre-defined algorithm corresponding with coded lock under the time threshold of internal timer drives.Concrete steps are: the time of the internal timer of coded lock is activated pre-defined algorithm and generates new unlatching secret key when reaching threshold value.
The time threshold of the internal timer of secret key terminal is corresponding with the threshold value of coded lock, when reaching threshold value, generates new unlatching secret key with activating the pre-defined algorithm corresponding with coded lock.
In the present embodiment, coded lock has unique and identical pre-defined algorithm with the secret key terminal, thereby only predetermined period need be made as unanimity and synchronously, just can realize that the secret key of unblanking that unlatching secret key that coded lock generates and secret key terminal generate is consistent constantly.
In a further embodiment, the secret key terminal can be stored multiple different pre-defined algorithm, and each pre-defined algorithm can correspond to the unique pre-defined algorithm that has in the coded lock.And generally, the cycle of each pre-defined algorithm renewal secret key is inequality.Because the update cycle difference of different pre-defined algorithm, so corresponding in the secret key terminal have several timers, be connected with corresponding secret key generation unit respectively.Has only a kind of pre-defined algorithm in the coded lock, therefore, coded lock only need send to the secret key terminal with the secret key generate pattern identification code of pre-defined algorithm, inform that the used algorithm of secret key terminal unlatching secret key is which kind of algorithm in the secret key terminal, corresponding in the coded lock have only a timer, synchronous with timer corresponding in the secret key terminal.Coded lock is by sending secret key generate pattern identification code, make that the pre-defined algorithm in the secret key terminal is identical with pre-defined algorithm in the coded lock, simultaneously, update time again can be synchronous, generate the effect of identical secret key simultaneously so can realize coded lock and secret key terminal, accomplish that secret key regularly upgrades operation automation, transparent fully to the user, the safety that has improved coded lock.
Between secret key terminal and coded lock, set up communicate by letter after, the secret key terminal sends initialization request to coded lock, request definite with coded lock in consistent pre-defined algorithm, thereby all consistent with coded lock with pre-defined algorithm in predetermined period, thus coded lock is controlled.
Coded lock sends current unlatching secret key and secret key generate pattern identification code to the secret key terminal after receiving initialization request.
Coded lock sends to the secret key terminal with current unlatching secret key and the secret key generate pattern identification code that is stored in the coded lock after receiving initialization request.Current unlatching secret key is the secret key of unblanking that the authentication password interlocking is received, secret key generate pattern identification code is used for identifying pre-defined algorithm, in coded lock, pre-defined algorithm in the secret key generate pattern identification code uniquely tagged coded lock, but in the secret key terminal, stored multiple algorithm, therefore, have only when consistent in the secret key generate pattern identification code of the algorithm in the secret key terminal and the coded lock, this secret key terminal can be controlled and open this coded lock.
Secret key was opened in storage after the secret key terminal received described unlatching secret key and secret key generate pattern identification code, and according to secret key generate pattern identification code select with coded lock in corresponding pre-defined algorithm, and the memory address that will open secret key is recorded in the address search table of corresponding pre-defined algorithm and is specially: select the pre-defined algorithm corresponding with coded lock according to secret key generate pattern identification code, namely have with coded lock in the algorithm of identical secret key generate pattern identification code, and the memory address that will open secret key is recorded in the corresponding address search table of pre-defined algorithm.
Open the address that the secret key correspondence the secret key memory cell, namely open the memory address of secret key.Open the content correspondence of secret key and the data that the secret key memory cell is stored.Stored some pre-defined algorithms in the secret key terminal, every kind of pre-defined algorithm all has an address search table, has recorded in the address search table and has adopted this pre-defined algorithm to carry out the secret key memory address that secret key is upgraded in the secret key memory cell.When pre-defined algorithm generated new secret key, the secret key generation unit override corresponding secret key in the secret key memory cell with new secret key according to the memory address in the look-up table of address.
In the present embodiment, after the secret key terminal receives and opens secret key and secret key generate pattern identification code, with current unlatching secret key storage, simultaneously this secret key is sent to the secret key generate pattern in memory address and activate the unit, the secret key generate pattern activates the unit and comes down to a multi channel selecting module, it is according to the secret key generate pattern identification code from coded lock, select a path corresponding with current unlatching secret key, be connected with the corresponding pre-defined algorithm of coded lock in this path and the secret key generation unit, be recorded in the corresponding address search table of pre-defined algorithm by the memory address of this path with current unlatching secret key then.
Step S120, the secret key terminal sends unblank checking request and the secret key of unblanking to coded lock, and the described secret key of unblanking is upgraded according to described predetermined period and pre-defined algorithm.
The secret key terminal need send unblank checking request and the secret key of unblanking to coded lock when unblanking, the secret key of wherein unblanking is upgraded according to predetermined period and pre-defined algorithm.Stored the pre-defined algorithm corresponding with coded lock in the secret key terminal, pre-defined algorithm also is to upgrade by predetermined period.Pre-defined algorithm in the secret key terminal also upgrades by predetermined period, will generate the secret key of unblanking.Be connected owing to set up synchronous communication between coded lock and the secret key terminal, therefore, under the cycle situation identical with algorithm, can generate corresponding unblank secret key and unlatching secret key synchronously.
Step S130, coded lock respond the described checking request of unblanking, and read described unlatching secret key, and the described secret key of unblanking is compared with the unlatching secret key, judge whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
After coded lock and secret key terminal established a communications link, the secret key terminal sent the checking request of unblanking to coded lock, sent the secret key of unblanking that is stored in the secret key terminal simultaneously.Coded lock receives after the checking request of unblanking from the secret key terminal, and makes response---and namely from the coded lock memory cell, read current unlatching secret key, compare with secret key from the secret key terminal then.If two secret key unanimities then send the index signal of unblanking to the access control module, drive unlocking mechanism and unblank; If two secret keys are inconsistent, then send miscue information to the secret key terminal.
In the present embodiment, described secret key terminal has multiple pre-defined algorithm, a kind of corresponding in the multiple pre-defined algorithm in the pre-defined algorithm in the described coded lock and the secret key terminal.Have only a kind of pre-defined algorithm in the coded lock, and have multiple pre-defined algorithm in the secret key terminal, therefore, just can control this coded lock as long as have with the coded lock corresponding algorithm in the secret key terminal, thereby a secret key terminal can be controlled a plurality of coded locks.
In the present embodiment, transmit the secret key of unblanking according to transmitting the secret key request between secret key terminal and the secret key terminal.Be to set up communication between the secret key terminal, the secret key of unblanking of storing in the secret key terminal sent to other secret key terminal.Owing to the pre-defined algorithm that does not have in the secret key terminal that receives the secret key of unblanking in the coded lock corresponding with the secret key of unblanking, therefore, receiving the secret key terminal of opening secret key can not upgrade the unlatching secret key synchronously with coded lock.
Based on above-mentioned all embodiment, the operating process of coded lock control method is as follows: carry out initialization between coded lock and the secret key terminal, be that coded lock will pass to the secret key terminal with information and the secret key generate pattern identification code of opening secret key, the secret key terminal is by preserving the unlatching secret key and selecting to generate the pre-defined algorithm of opening secret key according to secret key generate pattern identification code and realize initialization procedure.After finishing initialization between coded lock and the secret key terminal, coded lock is namely set up complete synchronous communication with the secret key terminal, and the secret key terminal can be controlled unlocking coded lock and locking.
Coded lock and secret key terminal are in initialized process, and information and secret key generate pattern identification code that coded lock will be opened secret key pass to the secret key terminal.The secret key terminal is selected corresponding pre-defined algorithm according to secret key generate pattern identification code, and will open secret key and store and memory address is recorded in the corresponding address search table of pre-defined algorithm.
After stating operation in realization, coded lock and secret key terminal can generate new unlatching secret key according to pre-defined algorithm under the driving of the time threshold of internal timer.The pre-defined algorithm of coded lock generation unlatching secret key is identical with a kind of pre-defined algorithm in the secret key terminal, and therefore, when identical in the time, pre-defined algorithm generates identical unlatching secret key.
In the present embodiment, the information transmission between coded lock and the secret key terminal is finished by radiofrequency signal.
In the present embodiment, shown in Fig. 2 a and Fig. 2 b, for control the structural representation of system based on the coded lock of radio communication.
Coded lock control system's bag coded lock 20 and secret key terminal 30.
Coded lock 20 is used for upgrading and storage unlatching secret key according to predetermined period and pre-defined algorithm.
Secret key terminal 30 is used for sending unblank checking request and the secret key of unblanking to coded lock 20, and the described secret key of unblanking is upgraded according to described predetermined period and pre-defined algorithm.
Coded lock 20 also for responding the described checking request of unblanking, reads described unlatching secret key, and the described secret key of unblanking is compared with the unlatching secret key, judges whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
In the present embodiment, secret key terminal 30 also is used for initiating synchronization request to coded lock 20, and cycle and coded lock 20 that request is upgraded the secret key of unblanking with secret key terminal 30 upgrade the cycle synchronisation of opening secret key.
Coded lock 20 is used for the described synchronization request of response, and sets up synchronous communication with secret key terminal 30 and be connected.
In the present embodiment, coded lock 20 also is used for sending to secret key terminal 30 time threshold of internal timer.
Secret key terminal 30 also is used for setting the time threshold of secret key terminal 30 internal timers according to the time threshold of the internal timer of coded lock 20, connects thereby finish synchronous communication.
In the present embodiment, coded lock 20 is under the time threshold of internal timer drives, generate new unlatching secret key according to described pre-defined algorithm, secret key terminal 30 synchronously under the time threshold of internal timer drives, pre-defined algorithm generation with coded lock corresponding the unblank secret key corresponding according to described and coded lock 20.
Shown in Fig. 2 a, coded lock 20 comprises coded lock transceiver module 210, coded lock secret key generation module 220, coded lock timer 230 and access control module 240.Coded lock transceiver module 210 is connected with coded lock secret key generation module 220 and access control module 240, and coded lock secret key generation module 220 is connected with coded lock timer 230.
Shown in Fig. 2 b, secret key terminal 30 comprises secret key terminal transceiver module 310, secret key terminal secret key generation module 320, secret key terminal timer 330.Secret key terminal transceiver module 310 is connected with secret key terminal secret key generation module 320, and coded lock secret key generation module 320 is connected with secret key terminal timer 330.
Secret key terminal transceiver module 310 is used for sending initialization request to coded lock 20.
Coded lock transceiver module 210 is used for receiving the initialization request that secret key terminal 30 sends to coded lock 20, and sends current unlatching secret key and secret key generate pattern identification code according to described initialization request to secret key terminal 30.
Secret key terminal transceiver module 310 is used for receiving described unlatching secret key and secret key generate pattern identification code.
In the present embodiment, transmit information by radiofrequency signal between coded lock transceiver module 210 and the secret key terminal transceiver module 310.
Secret key terminal secret key generation module 320 is used for storage and opens secret key, and according to secret key generate pattern identification code select with coded lock 20 in corresponding pre-defined algorithm, and the memory address that will open secret key is recorded in the address search table of pre-defined algorithm of correspondence.
Coded lock timer 230 is used for setting the time threshold that drives coded lock 20, and coded lock secret key generation module 220 is used for coded lock 20 under the time threshold of internal timer drives, and generates new unlatching secret key according to pre-defined algorithm.
Secret key terminal timer 330 is used for setting the time threshold that synchronously drives secret key terminal 30, secret key terminal 30 generates new the unblank secret key corresponding with coded lock according to the pre-defined algorithm corresponding with coded lock 20 synchronously under the time threshold of internal timer drives.
In the present embodiment, secret key terminal secret key generation module 320 comprises that secret key memory cell 322, secret key generation unit 324 and secret key generate pattern activate unit 326.Secret key memory cell 322, secret key generate pattern activate unit 326 and are connected with secret key generation unit 324, and secret key terminal timer 330 activates unit 326 with the secret key generate pattern and is connected.
Secret key memory cell 322 is used for storage and opens secret key, and secret key generation unit 324 will be opened the secret key memory address and send to secret key generate pattern activation unit 326.
The secret key generate pattern activates unit 326 and is used for selecting the pre-defined algorithm corresponding with coded lock 20 according to secret key generate pattern identification code, and memory address is recorded in the corresponding address search table of pre-defined algorithm.
Secret key generation unit 324 is used for when internal timer reaches threshold value, will activate the new unlatching secret key of the pre-defined algorithm generation corresponding with coded lock 20.
In the present embodiment, secret key memory cell 322 is used for the described pre-defined algorithm generation new unlatching secret key corresponding with coded lock 20 of storage, and lock recording address in the corresponding address search table according to described and coded lock 20 corresponding pre-defined algorithms, described new unlatching secret key is covered the old secret key that is in corresponding address in the secret key memory cell 322.
In the present embodiment, coded lock secret key generation module 220 comprises coded lock memory cell 222 and coded lock secret key generation unit 224.Coded lock memory cell 222 is connected with coded lock secret key generation unit 224, and coded lock secret key generation unit 224 is connected with coded lock timer 230.
Coded lock secret key generation unit 224 is used for generating new unlatching secret key according to pre-defined algorithm under the time threshold of internal timer drives.
Coded lock memory cell 222 is used for the described unlatching secret key of storage.
Secret key terminal transceiver module 310 also is used for sending the unlatching secret key of unblanking to verify request and current generation to coded lock 20.
Access control module 240 bases are unblanked to verify and are asked the secret key of unblanking is compared with the unlatching secret key, judge whether the described secret key of unblanking is consistent with the unlatching secret key, if then drive unlocking mechanism and unblank.
Above-mentioned coded lock control system comprises coded lock 20 and secret key terminal 30.Coded lock 20 has identical pre-defined algorithm with secret key terminal 30, when the time threshold of the timer of setting is identical, can generate identical unlatching secret key simultaneously, therefore can realize the renewal automatically synchronously of the unlatching secret key between coded lock and the secret key terminal.
Based on above-described embodiment, as shown in Figure 3, be the structural representation of unblanking between coded lock and the secret key terminal.Set up between coded lock 20 and the secret key terminal 30 communicate by letter after, secret key terminal 30 can send the request unblanked to coded lock 20 by secret key terminal transceiver module 310, and transmission simultaneously is stored in the secret key of unblanking of secret key memory cell 322, after coded lock 20 receives the request unblanked and the secret key of unblanking by coded lock transceiver module 210, coded lock 20 is compared the unlatching secret key of storage in the coded lock memory cell 222 and the secret key of unblanking of reception, and comparison result sent to access control module 240, access control module 240 sends the order of unblanking or not unblanking according to comparison result, wherein, compare and successfully then send unlock command, the comparison failure is sending the order of not unblanking.
As shown in Figure 4, be the mutual schematic diagram of the secret key between the secret key terminal.After finishing initialization between secret key terminal 30 and the coded lock 20, stored the unblank secret key corresponding with coded lock 20 in the secret key terminal 30.Can transmit the unlatching secret key between the secret key terminal 30.For example, the secret key terminal sends the secret key request of transmitting by secret key terminal transceiver module 310 to another secret key terminal, and another secret key terminal receives the unlatching secret key that will be stored in the secret key memory cell 322 after the secret key transmission request and passes to request secret key terminal.To open secret key after the request secret key terminal reception unlatching secret key is stored in the secret key memory cell 322.
Above-mentioned coded lock control method based on radio communication can make coded lock and secret key terminal form pairing initialized the time, make the secret key terminal can obtain unlatching secret key and the pre-defined algorithm of coded lock, thereby under can driving at the time threshold of internal timer, coded lock and secret key terminal synchronizes are upgraded and are opened secret key, realization can arrange upgrades secret key temporally synchronously automatically between secret key terminal and coded lock, need not user's manual operation.Safety and the convenience of coded lock have been improved.
The above embodiment has only expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to claim of the present invention.Should be pointed out that for the person of ordinary skill of the art without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.