CN108055235A - A kind of control method of smart lock, relevant device and system - Google Patents

A kind of control method of smart lock, relevant device and system Download PDF

Info

Publication number
CN108055235A
CN108055235A CN201711057311.1A CN201711057311A CN108055235A CN 108055235 A CN108055235 A CN 108055235A CN 201711057311 A CN201711057311 A CN 201711057311A CN 108055235 A CN108055235 A CN 108055235A
Authority
CN
China
Prior art keywords
mobile terminal
smart lock
random number
unlocking
unlocking cipher
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711057311.1A
Other languages
Chinese (zh)
Other versions
CN108055235B (en
Inventor
刘政林
龚明杨
姚旭宁
闵闰
陈晓飞
郑朝霞
童乔凌
邹雪城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201711057311.1A priority Critical patent/CN108055235B/en
Publication of CN108055235A publication Critical patent/CN108055235A/en
Application granted granted Critical
Publication of CN108055235B publication Critical patent/CN108055235B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/06Network architectures or network communication protocols for network security for supporting key management in a packet data network
    • H04L63/067Network architectures or network communication protocols for network security for supporting key management in a packet data network using one-time keys

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Lock And Its Accessories (AREA)
  • Telephone Function (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The invention discloses a kind of control method of smart lock, relevant device and system, including:The identification information of acquisition for mobile terminal smart lock, and the identification information is sent to cloud server end, so that cloud server end obtains the first key information corresponding with the identification information;Mobile terminal receives the first key information sent by cloud server end, and send certification instruction to smart lock, with by smart lock mobile terminal authentication is passed through it is rear, the first random number is sent to mobile terminal, and by first the first unlocking cipher of generating random number, wherein, the certification instructs to verify the legitimacy of mobile terminal;Mobile terminal, to carry out unlocking operation to smart lock by the second unlocking cipher, and when the first unlocking cipher is matched with the second unlocking cipher, completes unlocking operation according to the second unlocking cipher of identification information, first key information and the first generating random number smart lock.The secure communication requirement of cloud server end, smart lock, mobile terminal can be met by the present invention.

Description

A kind of control method of smart lock, relevant device and system
Technical field
The invention belongs to smart lock management domain, more particularly, to a kind of control method of smart lock, relevant device and System.
Background technology
Intelligent lock system is made of Cloud Server, smart lock, cell phone application end, the communication between three have wireless mode into Capable, on-air radio communication channel has monitored possibility, and then is cracked, and causes the unlocking of non-security certification.Existing majority intelligence Energy lock system has that some security attacks or safety open shut flow excessively complexity and can not be applied to the nothing of low cost The line communications field.
The content of the invention
For the disadvantages described above or Improvement requirement of the prior art, the present invention provides a kind of control method of smart lock, phases Close equipment and system, thus solve that existing intelligent lock system security is relatively low or safety open to shut process excessively complicated and cause Cost it is higher the technical issues of.
To achieve the above object, one side according to the invention provides a kind of control method of smart lock, including:
The identification information of acquisition for mobile terminal smart lock, and the identification information is sent to cloud server end, so that described Cloud server end obtains the first key information corresponding with the identification information;
The first key information that mobile terminal reception is sent by the cloud server end, and to the smart lock Certification instruction is sent, by rear, first is being sent to the mobile terminal to the mobile terminal authentication by the smart lock Random number, and by first unlocking cipher of the first generating random number, wherein, the certification instruction is described mobile whole for verifying The legitimacy at end;
The mobile terminal is according to the identification information, the first key information and the first generating random number institute The second unlocking cipher of smart lock is stated, to carry out unlocking operation to the smart lock by second unlocking cipher, and by described Smart lock completes unlocking operation when first unlocking cipher is matched with second unlocking cipher.
Preferably, the data to be transmitted between the mobile terminal and the cloud server end is added by the second key information It is transmitted after close, wherein, second key information is the key corresponding with the identification information of the mobile terminal;
Data to be transmitted between the mobile terminal and the smart lock is encrypted laggard by the first key information Row transmission.
Preferably, the mobile terminal is according to the identification information, the first key information and described first random Number generates the second unlocking cipher of the smart lock, including:
The mobile terminal is according to the identification information, the first key information and the first generating random number institute The first secret value of the first random number is stated, and extracts several from first secret value and is opened as the second of the smart lock Lock cipher.
Preferably, the method further includes:
First secret value of first random number is obtained new unlocking with unlocking instruction exclusive or and referred to by the mobile terminal Order, and the secret value of the new unlocking instruction is generated, the secret value of the new unlocking instruction is sent to the smart lock, with It is realized and unlocked by the smart lock.
Preferably, the method further includes:
What the mobile terminal reception smart lock was sent has shut instruction, generates the second random number, and described in generation Second secret value of the second random number, while second random number is sent to the smart lock, to be generated by the smart lock 3rd secret value of second random number;
The mobile terminal receives the 3rd secret value that the smart lock is sent, and judge the 3rd secret value with Whether second secret value matches, if matching, output shuts successful information, if mismatching, output shuts failure information.
Other side according to the invention provides a kind of control method of smart lock, including:
Smart lock receive mobile terminal send certification instruction, and as described in the certification command verification mobile terminal conjunction Method;
If the mobile terminal is legal, the first random number is generated by the smart lock, and generates first random number The first secret value, extract several the first unlocking ciphers as the smart lock from first secret value, at the same to The mobile terminal sends first random number, with intelligent according to first generating random number as the mobile terminal Second unlocking cipher of lock;
The smart lock receives unlocking instruction, and complete when second unlocking cipher is matched with first unlocking cipher Into unlocking operation, wherein, the unlocking instruction includes second unlocking cipher.
Preferably, carried out after the data to be transmitted between the mobile terminal and the smart lock is encrypted by key information Transmission, wherein, the key information be is obtained by the mobile terminal from cloud server end with the mark of smart lock letter Cease corresponding key information.
Preferably, the method further includes:
The smart lock has shut instruction after detecting and shutting, to mobile terminal transmission, with by the movement Terminal is receiving second random number of generation after shutting instruction, and generates the second secret value of second random number;
The smart lock receives second random number that the mobile terminal is sent, and generates second random number 3rd secret value, while the 3rd secret value is sent to the mobile terminal, with by the mobile terminal according to the described 3rd The matching relationship of secret value and second secret value is judged shutting state.
Other side according to the invention provides a kind of mobile terminal, including:
Acquisition module, for obtaining the identification information of smart lock;
First sending module, for sending the identification information to cloud server end, so that the cloud server end obtains The first key information corresponding with the identification information;
First receiving module, for receiving the first key information sent by the cloud server end;
Second sending module, for the smart lock send certification instruction, with by the smart lock to the movement Terminal authentication sends the first random number by rear, to the mobile terminal, and it is close to be unlocked by first generating random number first Code, wherein, the certification instructs to verify the legitimacy of the mobile terminal;
Encrypting module, for according to the identification information, the first key information and first generating random number Second unlocking cipher of the smart lock, to carry out unlocking operation to the smart lock by second unlocking cipher, and by institute Smart lock is stated when first unlocking cipher is matched with second unlocking cipher, completes unlocking operation.
It is another aspect of this invention to provide that a kind of smart lock is provided, including:
First receiving module, for receiving the certification instruction of mobile terminal transmission;
Authentication module, for the legitimacy of the mobile terminal as described in the certification command verification;
Encrypting module, for when the mobile terminal is legal, generating the first random number, and generating first random number The first secret value, several the first unlocking ciphers as the smart lock are extracted from first secret value;
Sending module, for sending first random number to the mobile terminal, with by the mobile terminal according to institute State the second unlocking cipher of smart lock described in the first generating random number;
Second receiving module, for receiving unlocking instruction, wherein, it is close that the unlocking instruction includes second unlocking Code;
Unlocking module, for completing unlocking operation when second unlocking cipher is matched with first unlocking cipher.
Other side according to the invention provides a kind of control system of smart lock, including:Mobile terminal, intelligence Lock and cloud server end;
The mobile terminal, for obtaining the identification information of the smart lock, and to described in cloud server end transmission The identification information of smart lock;
The cloud server end for receiving the identification information of the smart lock, is obtained and believed with the mark of the smart lock Corresponding first key information is ceased, and the first key information is sent to the mobile terminal;
The mobile terminal is additionally operable to receive the first key information, and sends certification instruction to the smart lock;
The smart lock, for receiving certification instruction, and to the mobile terminal authentication by rear, to the shifting Dynamic terminal sends the first random number, and by first unlocking cipher of the first generating random number, wherein, the certification instruction is used for Verify the legitimacy of the mobile terminal;
The mobile terminal is additionally operable to according to the identification information, the first key information and described first at random Number generates the second unlocking cipher of the smart lock, to carry out unlocking operation to the smart lock by second unlocking cipher;
The smart lock is additionally operable to when first unlocking cipher is matched with second unlocking cipher, completes to unlock Operation.
In general, by the above technical scheme conceived by the present invention compared with prior art, it can obtain down and show Beneficial effect:
Pass through the controlling mechanism in the present invention, it is desirable that unlocking cipher is independently generated in smart lock and mobile terminal, in intelligence Content of Communication between lock, server end and mobile terminal does not include the encrypted cipher text of unlocking cipher or unlocking cipher. It can ensure process safety, prevent malicious attacker from monitoring the communication between smart lock, mobile terminal, cloud server end.
Description of the drawings
Fig. 1 is a kind of flow diagram of the control method of smart lock disclosed by the embodiments of the present invention;
Fig. 2 is the flow diagram of the control method of another smart lock disclosed by the embodiments of the present invention;
Fig. 3 is that the flow of method for unlocking involved in a kind of control method of smart lock disclosed by the embodiments of the present invention is illustrated Figure;
Fig. 4 is the flow signal that mode is shut involved in a kind of control method of smart lock disclosed by the embodiments of the present invention Figure;
Fig. 5 is a kind of structure diagram of the control system of smart lock disclosed by the embodiments of the present invention.
Specific embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.As long as in addition, technical characteristic involved in the various embodiments of the present invention described below Conflict is not formed each other to can be combined with each other.
Term " first " and " second " in description and claims of this specification and above-mentioned attached drawing etc. are for area Not different objects, not for description particular order.In addition, term " comprising " and their any deformations, it is intended that covering Non-exclusive includes.Such as it contains process, method, system, product or the equipment of series of steps or unit and is not limited to The step of having listed or unit, but optionally further include the step of not listing or unit or optionally further include for this The intrinsic other steps of processes, method, product or equipment or unit a bit.
Control method, relevant device and the system of a kind of smart lock of the present invention, including smart lock, Cloud Server End, mobile terminal.Cloud server end stores the key of each smart lock and the corresponding key of mobile terminal.It is mobile whole using During end controls smart lock, process safety is ensured by the controlling mechanism in the present invention, prevents malicious attack Person monitors the communication between smart lock, mobile terminal, cloud server end, identifies the user of malice, and the behavior of malicious user includes But it is not limited to:No record is unlocked, and eavesdrops other people passwords and unlocks, has record but without charging etc..And present invention also proposes intelligence Unlocking cipher generation method is locked, process require that unlocking cipher is independently generated in smart lock, cloud server end, mobile terminal, Content of Communication between smart lock, server end, mobile terminal does not include the encrypted cipher text of unlocking cipher or unlocking cipher.
In the embodiment of the present invention, mobile terminal includes operation Android operation system, iOS operating systems, Windows behaviour Make system or the mobile terminal of other operating systems, for example, mobile phone, tablet computer, personal digital assistant (Personal Digital Assistant, PDA) and all kinds of shiftings such as mobile internet device (Mobile Internet Device, MID) Dynamic terminal, the embodiment of the present invention are subsequently not repeated.
In embodiments of the present invention, each smart lock has unique identification information UID1, each UID1 to correspond to one group Key KUID, UID1 and key K are preserved in smart lockUID, the key K that uses in smart lockUIDIt is write when manufacturing, together When cloud server end back up it is a set of, K is not stored in mobile terminalUID;Each mobile terminal has UID2 in user's registration With a sub-key KAPP, UID2 and corresponding KAPPA set of copy is also preserved in cloud server end;The K of mobile terminalAPPWith Family registration is issued using the APP stages by cloud server end.Communication between three is added using the key management mechanism in the present invention It is wirelessly transferred after close;Smart lock unlocking cipher by wireless transmission, is not generated by smart lock and each motor synchronizing of mobile terminal, Unlocking cipher is solved by wireless eavesdropping problem.
Intelligent lock system in the present invention is made of smart lock, mobile terminal and cloud server end, is all adopted between three Wirelessly interactive communication.Presently disclosed method describes the mutual authentication process of smart lock and mobile terminal, the two it Between interactive communication mode can be the wireless modes such as bluetooth, Zigbee and ISO14443, specifically using which kind of wireless mode The embodiment of the present invention does not do uniqueness restriction.
Presently disclosed method describes the communication process of cloud server end and mobile terminal, interactive communication between the two Mode can be the wireless modes such as GPRS, 3G, 4G, 5G, Nb-iot and LoRA, specifically real using which kind of wireless mode present invention It applies example and does not do uniqueness restriction.
Encryption Algorithm of the present invention can be DES, 3DES, AES-128, AES-196, AES-256, SM4, SHA- 1st, SHA-256, SM3, RSA1024, RSA2048, ECC192, ECC256, SM2, it is specifically real using which kind of wireless mode present invention It applies example and does not do uniqueness restriction.
In embodiments of the present invention, mobile terminal is K with the key used during cloud server end encryption and decryptionAPP;Mobile terminal It is K with the key used during smart lock encryption and decryptionUID;Cloud server end is K with the key used during smart lock encryption and decryptionUID
It is as shown in Figure 1 a kind of flow diagram of the control method of smart lock disclosed by the embodiments of the present invention, in Fig. 1 institutes In the method shown, comprise the following steps:
S1:The identification information of acquisition for mobile terminal smart lock, and the identification information is sent to cloud server end, so that cloud takes Business device end obtains the first key information corresponding with the identification information;
Optionally, mobile terminal can be obtained by the Quick Response Code scanned on smart lock the smart lock identification information or Person obtains the identification information of smart lock by the model of smart lock from internet, specifically using which kind of mode embodiment of the present invention Uniqueness restriction is not done.
S2:Mobile terminal receives the first key information sent by cloud server end, and sends certification instruction to smart lock, , by rear, the first random number is being sent to mobile terminal to mobile terminal authentication by smart lock, and by the first generating random number First unlocking cipher, wherein, certification instructs to verify the legitimacy of mobile terminal;
S3:Mobile terminal is according to the second of the identification information, first key information and the first generating random number smart lock Unlocking cipher, to carry out unlocking operation to smart lock by the second unlocking cipher, and by smart lock in the first unlocking cipher and second When unlocking cipher matches, unlocking operation is completed.
As an alternative embodiment, mobile terminal obtains the mark letter of smart lock in the Quick Response Code of scanning smart lock After breath, it can also be taken by the way that the identification information of smart lock, the identification information of mobile terminal itself and unlocking instruction are sent to cloud It is engaged in device end, issuing unlocking instruction by cloud server end and unlocking to smart lock, while is sent to after unlocking information is encrypted mobile whole End.
In embodiments of the present invention, unlocking mode can be:User be manually entered in smart lock the second unlocking cipher or Person's mobile terminal sends unlocking instruction to modes such as smart lock auto-unlockings, specifically which kind of mode present invention not to do uniqueness using It limits.
Wherein, mobile terminal transmission unlocking instruction is to the mode process of smart lock auto-unlocking:
First secret value of the first random number and unlocking instruction exclusive or are obtained new unlocking instruction by mobile terminal, and are generated The secret value of new unlocking instruction sends the secret value of new unlocking instruction to smart lock, is unlocked with being realized by smart lock.
In embodiments of the present invention, mobile terminal is given birth to according to the identification information, first key information and the first random number Into the second unlocking cipher of smart lock, including:
Mobile terminal is according to the first of the identification information, first key information and first the first random number of generating random number Secret value, and several the second unlocking ciphers as smart lock are extracted from the first secret value.
In embodiments of the present invention, the data to be transmitted between mobile terminal and cloud server end passes through the second key information It is transmitted after encryption, wherein, the second key information is the key corresponding with the identification information of mobile terminal;Mobile terminal and intelligence Data to be transmitted between locking is transmitted after being encrypted by first key information.
In embodiments of the present invention, the above method further includes:
Mobile terminal receives the instruction that shut of smart lock transmission, the second random number of generation, and generates the second random number Second secret value, while the second random number is sent to smart lock, to generate the 3rd secret value of the second random number by smart lock;
Mobile terminal receives the 3rd secret value that smart lock is sent, and judge the 3rd secret value and the second secret value whether Match somebody with somebody, if matching, output shuts successful information, if mismatching, output shuts failure information.
As an alternative embodiment, smart lock is sent to Cloud Server after can also having shut information encryption End;After being decrypted by cloud server end, record shuts information, and is sent to mobile terminal after shutting information encryption.
In embodiments of the present invention, after unlocking or shutting, switch lock information is sent from mobile terminal to cloud server end, Switch lock information is recorded by cloud server end.
The flow diagram of the control method of another smart lock disclosed by the embodiments of the present invention is illustrated in figure 2, in Fig. 2 Comprise the following steps in shown method:
A1:Smart lock receives the certification instruction that mobile terminal is sent, and by the legitimacy of certification command verification mobile terminal;
A2:If mobile terminal is legal, the first random number is generated by smart lock, and generates the first encryption of the first random number Value, extracts several the first unlocking ciphers as smart lock from the first secret value, at the same to mobile terminal transmission first with Machine number, with the second unlocking cipher by mobile terminal according to the first generating random number smart lock;
Smart lock receives unlocking instruction, and completes unlocking operation when the second unlocking cipher is matched with the first unlocking cipher, Wherein, unlocking instruction includes second unlocking cipher.
In embodiments of the present invention, the above method further includes:
Smart lock has shut instruction after detecting and shutting, to mobile terminal transmission, to receive pass by mobile terminal The second random number of generation after lock instruction, and generate the second secret value of the second random number;
Smart lock receives the second random number that mobile terminal is sent, and generates the 3rd secret value of the second random number, simultaneously To mobile terminal send the 3rd secret value, with by mobile terminal according to the matching relationship of the 3rd secret value and the second secret value to pass Lock status is judged.
In another aspect of this invention, a kind of mobile terminal is provided, including:
Acquisition module, for obtaining the identification information of smart lock;
First sending module, for sending the identification information to cloud server end, so that cloud server end obtains and the mark Know the corresponding first key information of information;
First receiving module, for receiving the first key information sent by cloud server end;
Second sending module, for sending certification instruction to smart lock, to be passed through by smart lock to mobile terminal authentication Afterwards, the first random number is sent to mobile terminal, and by first the first unlocking cipher of generating random number, wherein, certification instruction is used for Verify the legitimacy of mobile terminal;
Encrypting module, for according to the identification information, first key information and the first generating random number smart lock Two unlocking ciphers, to carry out unlocking operation to smart lock by the second unlocking cipher, and by smart lock in the first unlocking cipher and the When two unlocking ciphers match, unlocking operation is completed.
In another aspect of this invention, a kind of smart lock is provided, including:
First receiving module, for receiving the certification instruction of mobile terminal transmission;
Authentication module, for by the legitimacy of certification command verification mobile terminal;
Encrypting module for when mobile terminal is legal, generating the first random number, and generates the first of the first random number and adds Close value extracts several the first unlocking ciphers as smart lock from the first secret value;
Sending module, for mobile terminal send the first random number, with by mobile terminal according to the first generating random number Second unlocking cipher of smart lock;
Second receiving module, for receiving unlocking instruction, wherein, unlocking instruction includes the second unlocking cipher;
Unlocking module, for completing unlocking operation when the second unlocking cipher is matched with the first unlocking cipher.
The present invention is described in detail with reference to the accompanying drawings and embodiments.
It is illustrated in figure 3 the flow of method for unlocking involved in a kind of control method of smart lock disclosed by the embodiments of the present invention Schematic diagram;Specially:
1st, when user unlocks, using the Quick Response Code on mobile scanning terminal smart lock, the UID1 of smart lock is obtained, it is mobile Terminal is sent to cloud server end after UID1 is encrypted by encryption/decryption module module1;After Cloud Server decryption, UID1 is corresponded to Key (KUID) by returning to mobile terminal after encryption/decryption module module1 encryptions;KUIDIt is placed in the memory of mobile terminal, UID1 information and corresponding K are restarted or disposed after shutting to mobile phoneUID
2nd, mobile terminal sends certification director data frame by interface and is given to smart lock, and certification instruction is specific numeric data code Stream;
3rd, after smart lock receives certification instruction, one group of random number R ng1 is returned to mobile terminal;Call Encryption Algorithm simultaneously Module module2 calculates message authentication code algorithm (Message Authentication Code, MAC) value of Rng1, obtains Mac1;Unlocking cipher Key1 of the partial data as this smart lock is extracted from Mac1;
4th, after mobile terminal receives random number R ng1, enciphering algorithm module module2 is called to calculate the MAC value of Rng1, is obtained To Mac2, unlocking cipher Key2 of the partial data as this smart lock is extracted from Mac2, Key2 is equal with Key1, and Key2 is used In this unlocking, unlocking mode includes but not limited to:User unlocks or moves after showing unlocking cipher input Key2 by mobile phone Dynamic terminal sends unlocking instruction to smart lock auto-unlocking etc.;
Wherein, mobile terminal sends unlocking instruction process and is automatically:MAC in step 4 and unlocking instruction exclusive or are obtained newly Unlocking instruction CCMD, encrypting module is called, generates CCMDSecret value (MACCMD), by MACCMDSmart lock realization is sent to open Lock;
5th, unlocking condition and smart lock are corresponded to the UID2 of UID1 and mobile terminal in itself and are added by module1 by mobile terminal Cloud server end is sent to after close, records unlocking information;
The flow of mode is shut involved in the control method for being illustrated in figure 4 a kind of smart lock disclosed by the embodiments of the present invention Schematic diagram;Specially:
1st, smart lock user shuts lock manually;
2nd, smart lock transmission has shut instruction to mobile terminal;
3rd, mobile terminal sends random number R ng2 to smart lock;Enciphering algorithm module module2 is called simultaneously, calculates Rng2 MAC value, obtain Mac3;
4th, after smart lock receives Rng2, enciphering algorithm module module2 is called, the MAC value of Rng2 is calculated, obtains Mac4, Mac4 is sent to mobile terminal;
5th, after mobile terminal receives Mac4, Mac4 is compared compared with Mac3, if it is not the same, then terminating two-way authentication Journey, mobile terminal are provided to shut and unsuccessfully identified;If Mac4 is identical with Mac3, shows that smart lock shuts success, and will shut Information and corresponding UID are sent to cloud server end.
A kind of structure diagram of the control system of smart lock disclosed by the embodiments of the present invention is illustrated in figure 5, including:It moves Dynamic terminal, smart lock and cloud server end;
Wherein, mobile terminal for obtaining the identification information of smart lock, and sends to cloud server end the mark of smart lock Information;
Cloud server end for receiving the identification information of smart lock, obtains first corresponding with the identification information of smart lock Key information, and send first key information to mobile terminal;
Mobile terminal is additionally operable to receive first key information, and sends certification instruction to smart lock;
Smart lock, for receive certification instruction, and to mobile terminal authentication by rear, to mobile terminal send first with Machine number, and by first the first unlocking cipher of generating random number, wherein, certification instructs to verify the legitimacy of mobile terminal;
Mobile terminal is additionally operable to according to identification information, first key information and the first generating random number smart lock Two unlocking ciphers, to carry out unlocking operation to smart lock by the second unlocking cipher;
Smart lock is additionally operable to when the first unlocking cipher is matched with the second unlocking cipher, completes unlocking operation.
As it will be easily appreciated by one skilled in the art that the foregoing is merely illustrative of the preferred embodiments of the present invention, not to The limitation present invention, all any modification, equivalent and improvement made within the spirit and principles of the invention etc., should all include Within protection scope of the present invention.

Claims (10)

1. a kind of control method of smart lock, which is characterized in that including:
The identification information of acquisition for mobile terminal smart lock, and the identification information is sent to cloud server end, so that the cloud takes Business device end obtains the first key information corresponding with the identification information;
The first key information that the mobile terminal reception is sent by the cloud server end, and sent to the smart lock Certification instructs, by rear, it is random to send first to the mobile terminal to the mobile terminal authentication by the smart lock Number, and by first unlocking cipher of the first generating random number, wherein, the certification instructs to verify the mobile terminal Legitimacy;
Mobile terminal intelligence according to the identification information, the first key information and first generating random number The second unlocking cipher that can be locked, to carry out unlocking operation to the smart lock by second unlocking cipher, and by the intelligence Lock completes unlocking operation when first unlocking cipher is matched with second unlocking cipher.
2. it according to the method described in claim 1, it is characterized in that, is treated between the mobile terminal and the cloud server end Transmission data are transmitted after being encrypted by the second key information, wherein, second key information is and the mobile terminal Key corresponding to identification information;
Data to be transmitted between the mobile terminal and the smart lock is passed after being encrypted by the first key information It is defeated.
3. according to the method described in claim 1, it is characterized in that, the mobile terminal is according to the identification information, described Second unlocking cipher of smart lock described in one key information and first generating random number, including:
The mobile terminal is according to the identification information, the first key information and first generating random number First secret value of one random number, and extract from first secret value several unlock as the second of the smart lock it is close Code.
4. according to the method described in claims 1 to 3 any one, which is characterized in that the method further includes:
The mobile terminal receives the instruction that shut of the smart lock transmission, the second random number of generation, and generates described second Second secret value of random number, while second random number is sent to the smart lock, with as described in smart lock generation 3rd secret value of the second random number;
The mobile terminal receives the 3rd secret value that the smart lock is sent, and judge the 3rd secret value with it is described Whether the second secret value matches, if matching, output shuts successful information, if mismatching, output shuts failure information.
5. a kind of control method of smart lock, which is characterized in that including:
Smart lock receive mobile terminal send certification instruction, and as described in the certification command verification mobile terminal it is legal Property;
If the mobile terminal is legal, the first random number is generated by the smart lock, and generates the of first random number One secret value, extracts several the first unlocking ciphers as the smart lock from first secret value, while to described Mobile terminal sends first random number, with as the mobile terminal according to first generating random number smart lock Second unlocking cipher;
The smart lock receives unlocking instruction, and completes to open when second unlocking cipher is matched with first unlocking cipher Lock operation, wherein, the unlocking instruction includes second unlocking cipher.
It is 6. according to the method described in claim 5, it is characterized in that, to be transmitted between the mobile terminal and the smart lock Data are transmitted after being encrypted by key information, wherein, the key information is from cloud server end by the mobile terminal The key information corresponding with the identification information of the smart lock obtained.
7. method according to claim 5 or 6, which is characterized in that the method further includes:
The smart lock has shut instruction after detecting and shutting, to mobile terminal transmission, with by the mobile terminal Second random number of generation after shutting instruction is being received, and is generating the second secret value of second random number;
The smart lock receives second random number that the mobile terminal is sent, and generates the 3rd of second random number the Secret value, while the 3rd secret value is sent to the mobile terminal, to be encrypted by the mobile terminal according to the described 3rd Value and the matching relationship of second secret value are judged shutting state.
8. a kind of mobile terminal, which is characterized in that including:
Acquisition module, for obtaining the identification information of smart lock;
First sending module, for sending the identification information to cloud server end, so that the cloud server end obtains and institute State first key information corresponding to identification information;
First receiving module, for receiving the first key information sent by the cloud server end;
Second sending module, for the smart lock send certification instruction, with by the smart lock to the mobile terminal Certification sends the first random number by rear, to the mobile terminal, and by first unlocking cipher of the first generating random number, In, the certification instructs to verify the legitimacy of the mobile terminal;
Encrypting module, for according to the identification information, the first key information and first generating random number Second unlocking cipher of smart lock, to carry out unlocking operation to the smart lock by second unlocking cipher, and by the intelligence It can lock when first unlocking cipher is matched with second unlocking cipher, complete unlocking operation.
9. a kind of smart lock, which is characterized in that including:
First receiving module, for receiving the certification instruction of mobile terminal transmission;
Authentication module, for the legitimacy of the mobile terminal as described in the certification command verification;
Encrypting module for when the mobile terminal is legal, generates the first random number, and generates the of first random number One secret value extracts several the first unlocking ciphers as the smart lock from first secret value;
Sending module, for sending first random number to the mobile terminal, with by the mobile terminal according to described the Second unlocking cipher of smart lock described in one generating random number;
Second receiving module, for receiving unlocking instruction, wherein, the unlocking instruction includes second unlocking cipher;
Unlocking module, for completing unlocking operation when second unlocking cipher is matched with first unlocking cipher.
10. a kind of control system of smart lock, which is characterized in that including:Mobile terminal, smart lock and cloud server end;
The mobile terminal for obtaining the identification information of the smart lock, and sends the intelligence to the cloud server end The identification information of lock;
The cloud server end for receiving the identification information of the smart lock, obtains the identification information pair with the smart lock The first key information answered, and send the first key information to the mobile terminal;
The mobile terminal is additionally operable to receive the first key information, and sends certification instruction to the smart lock;
The smart lock, for receiving certification instruction, and to the mobile terminal authentication by rear, to it is described it is mobile eventually End sends the first random number, and by first unlocking cipher of the first generating random number, wherein, the certification instructs to verify The legitimacy of the mobile terminal;
The mobile terminal is additionally operable to be given birth to according to the identification information, the first key information and first random number Into the second unlocking cipher of the smart lock, to carry out unlocking operation to the smart lock by second unlocking cipher;
The smart lock is additionally operable to when first unlocking cipher is matched with second unlocking cipher, completes unlocking operation.
CN201711057311.1A 2017-11-01 2017-11-01 Control method of intelligent lock, related equipment and system Expired - Fee Related CN108055235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711057311.1A CN108055235B (en) 2017-11-01 2017-11-01 Control method of intelligent lock, related equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711057311.1A CN108055235B (en) 2017-11-01 2017-11-01 Control method of intelligent lock, related equipment and system

Publications (2)

Publication Number Publication Date
CN108055235A true CN108055235A (en) 2018-05-18
CN108055235B CN108055235B (en) 2020-09-18

Family

ID=62119816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711057311.1A Expired - Fee Related CN108055235B (en) 2017-11-01 2017-11-01 Control method of intelligent lock, related equipment and system

Country Status (1)

Country Link
CN (1) CN108055235B (en)

Cited By (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107978047A (en) * 2017-12-04 2018-05-01 北京深思数盾科技股份有限公司 Use the methods, devices and systems of password unlocking
CN109035500A (en) * 2018-07-02 2018-12-18 深圳市沃特沃德股份有限公司 Open the method and APP client of intelligent door lock
CN109243018A (en) * 2018-08-23 2019-01-18 杭州立为科技有限公司 Automatic encryption method, smart lock and storage medium between intelligent lock control system module
CN109448197A (en) * 2018-12-18 2019-03-08 杭州高锦科技有限公司 A kind of cloud intelligent lock system and key management method based on multi-enciphering mode
CN109872436A (en) * 2019-03-20 2019-06-11 苏州迈瑞微电子有限公司 A kind of control method of smart lock, device, system and storage medium
CN110379057A (en) * 2019-07-17 2019-10-25 中山臣家智能科技有限公司 Smart lock initial method, smart lock and its initialization confirmation code generating method
CN110766524A (en) * 2019-10-25 2020-02-07 浙江大华技术股份有限公司 Online booking self-service check-in method and storage device
CN111047744A (en) * 2019-12-28 2020-04-21 北京深思数盾科技股份有限公司 Digital unlocking method and device, electronic door lock and storage medium
WO2020088623A1 (en) * 2018-10-31 2020-05-07 云丁网络技术(北京)有限公司 Intelligent device control method and system
CN111277350A (en) * 2018-12-04 2020-06-12 李舒云 Clock management method, clock acquisition method, terminal and storage medium
CN111275852A (en) * 2018-12-04 2020-06-12 李舒云 Lock terminal management method, system, shared object and storage medium
CN111355680A (en) * 2018-12-04 2020-06-30 李舒云 Key distribution method, key receiving method, electronic terminal and storage medium
CN111401086A (en) * 2018-12-29 2020-07-10 天津朗波微电子有限公司 NFC mobile phone terminal anti-counterfeiting traceability system with bidirectional encryption authentication
CN111508108A (en) * 2020-03-20 2020-08-07 中能瑞通(北京)科技有限公司 Encryption system and decryption system for intelligent lock data communication
CN112037382A (en) * 2020-09-08 2020-12-04 北京紫光安芯科技有限公司 Door lock control system and method and intelligent door lock
CN112053476A (en) * 2020-09-08 2020-12-08 四川铁集共联科技股份有限公司 Encryption method and system based on intelligent lock and mobile phone terminal
CN112348998A (en) * 2020-07-24 2021-02-09 深圳Tcl新技术有限公司 Method and device for generating one-time password, intelligent door lock and storage medium
CN112466010A (en) * 2020-11-26 2021-03-09 汤泽金 Intelligent rescue door lock
CN112950817A (en) * 2021-01-28 2021-06-11 深圳市凯迪仕智能科技有限公司 Encryption communication method of split type intelligent lock and split type intelligent lock
CN113282945A (en) * 2021-06-29 2021-08-20 珠海优特物联科技有限公司 Intelligent lock authority management method and device, electronic equipment and storage medium
CN113282944A (en) * 2021-06-29 2021-08-20 珠海优特物联科技有限公司 Intelligent lock unlocking method and device, electronic equipment and storage medium
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device
CN113850938A (en) * 2021-09-28 2021-12-28 深圳Tcl新技术有限公司 Intelligent door lock control method and device, storage medium and electronic equipment
CN114244509A (en) * 2021-12-17 2022-03-25 北京国泰网信科技有限公司 Method for carrying out SM2 one-time pad bidirectional authentication unlocking by using mobile terminal
CN114267103A (en) * 2021-12-06 2022-04-01 深圳供电局有限公司 Management system and method for intelligent lock of power supply equipment
CN114299645A (en) * 2022-01-12 2022-04-08 初蓝物联科技(上海)有限公司 Encryption communication method for padlock of Internet of things
CN114299643A (en) * 2021-12-24 2022-04-08 北京纬百科技有限公司 Door lock management method and device, storage medium and electronic equipment
CN114448727A (en) * 2022-04-02 2022-05-06 中国信息通信研究院 Information processing method and system based on industrial internet identification analysis system
CN116527258A (en) * 2023-06-30 2023-08-01 深圳市旭子科技有限公司 Unlocking method, device, equipment and storage medium of coded lock
CN116527409A (en) * 2023-07-05 2023-08-01 深圳市旭子科技有限公司 Internet of things lock-based network access identity recognition method and system
CN116543485A (en) * 2023-06-15 2023-08-04 智慧云联信息技术(北京)有限公司 Emergency help seeking method, system, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102392561A (en) * 2011-09-08 2012-03-28 珠海汇金科技有限公司 Wireless dynamic code lock and control method thereof
CN104282062A (en) * 2014-08-21 2015-01-14 厦门华数电力科技有限公司 Locking and unlocking method based on safe and intelligent lock system
CN104583028A (en) * 2012-08-30 2015-04-29 德克萨斯仪器股份有限公司 One-way key fob and vehicle pairing
CN105635089A (en) * 2014-11-28 2016-06-01 珠海汇金科技股份有限公司 Authentication method, unlocking method and unlocking system for dynamic password lock
CN106780917A (en) * 2017-01-11 2017-05-31 上海共佰克智能科技有限公司 The control method and system of lock

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102392561A (en) * 2011-09-08 2012-03-28 珠海汇金科技有限公司 Wireless dynamic code lock and control method thereof
CN104583028A (en) * 2012-08-30 2015-04-29 德克萨斯仪器股份有限公司 One-way key fob and vehicle pairing
CN104282062A (en) * 2014-08-21 2015-01-14 厦门华数电力科技有限公司 Locking and unlocking method based on safe and intelligent lock system
CN105635089A (en) * 2014-11-28 2016-06-01 珠海汇金科技股份有限公司 Authentication method, unlocking method and unlocking system for dynamic password lock
CN106780917A (en) * 2017-01-11 2017-05-31 上海共佰克智能科技有限公司 The control method and system of lock

Cited By (41)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107978047B (en) * 2017-12-04 2019-05-07 北京深思数盾科技股份有限公司 Use the methods, devices and systems of password unlocking
CN107978047A (en) * 2017-12-04 2018-05-01 北京深思数盾科技股份有限公司 Use the methods, devices and systems of password unlocking
CN109035500A (en) * 2018-07-02 2018-12-18 深圳市沃特沃德股份有限公司 Open the method and APP client of intelligent door lock
CN109243018A (en) * 2018-08-23 2019-01-18 杭州立为科技有限公司 Automatic encryption method, smart lock and storage medium between intelligent lock control system module
WO2020088623A1 (en) * 2018-10-31 2020-05-07 云丁网络技术(北京)有限公司 Intelligent device control method and system
CN111275852A (en) * 2018-12-04 2020-06-12 李舒云 Lock terminal management method, system, shared object and storage medium
CN111355680B (en) * 2018-12-04 2022-10-21 李舒云 Key distribution method, key receiving method, electronic terminal and storage medium
CN111355680A (en) * 2018-12-04 2020-06-30 李舒云 Key distribution method, key receiving method, electronic terminal and storage medium
CN111277350A (en) * 2018-12-04 2020-06-12 李舒云 Clock management method, clock acquisition method, terminal and storage medium
CN109448197A (en) * 2018-12-18 2019-03-08 杭州高锦科技有限公司 A kind of cloud intelligent lock system and key management method based on multi-enciphering mode
CN111401086A (en) * 2018-12-29 2020-07-10 天津朗波微电子有限公司 NFC mobile phone terminal anti-counterfeiting traceability system with bidirectional encryption authentication
CN109872436A (en) * 2019-03-20 2019-06-11 苏州迈瑞微电子有限公司 A kind of control method of smart lock, device, system and storage medium
CN110379057A (en) * 2019-07-17 2019-10-25 中山臣家智能科技有限公司 Smart lock initial method, smart lock and its initialization confirmation code generating method
CN110379057B (en) * 2019-07-17 2021-10-01 广东臣家智能科技股份有限公司 Intelligent lock initialization method, intelligent lock and initialization confirmation code generation method thereof
CN110766524A (en) * 2019-10-25 2020-02-07 浙江大华技术股份有限公司 Online booking self-service check-in method and storage device
CN110766524B (en) * 2019-10-25 2022-09-06 浙江大华技术股份有限公司 Online booking self-service check-in method and storage device
CN111047744A (en) * 2019-12-28 2020-04-21 北京深思数盾科技股份有限公司 Digital unlocking method and device, electronic door lock and storage medium
CN111508108A (en) * 2020-03-20 2020-08-07 中能瑞通(北京)科技有限公司 Encryption system and decryption system for intelligent lock data communication
CN112348998A (en) * 2020-07-24 2021-02-09 深圳Tcl新技术有限公司 Method and device for generating one-time password, intelligent door lock and storage medium
CN112348998B (en) * 2020-07-24 2024-03-12 深圳Tcl新技术有限公司 Method and device for generating one-time password, intelligent door lock and storage medium
CN112037382A (en) * 2020-09-08 2020-12-04 北京紫光安芯科技有限公司 Door lock control system and method and intelligent door lock
CN112053476A (en) * 2020-09-08 2020-12-08 四川铁集共联科技股份有限公司 Encryption method and system based on intelligent lock and mobile phone terminal
CN112466010B (en) * 2020-11-26 2022-06-17 汤泽金 Intelligent rescue door lock
CN112466010A (en) * 2020-11-26 2021-03-09 汤泽金 Intelligent rescue door lock
CN112950817A (en) * 2021-01-28 2021-06-11 深圳市凯迪仕智能科技有限公司 Encryption communication method of split type intelligent lock and split type intelligent lock
CN113516811A (en) * 2021-04-23 2021-10-19 摩拜(北京)信息技术有限公司 Article using method and device
CN113282944A (en) * 2021-06-29 2021-08-20 珠海优特物联科技有限公司 Intelligent lock unlocking method and device, electronic equipment and storage medium
CN113282945A (en) * 2021-06-29 2021-08-20 珠海优特物联科技有限公司 Intelligent lock authority management method and device, electronic equipment and storage medium
CN113282944B (en) * 2021-06-29 2023-03-10 珠海优特电力科技股份有限公司 Intelligent lock unlocking method and device, electronic equipment and storage medium
CN113850938A (en) * 2021-09-28 2021-12-28 深圳Tcl新技术有限公司 Intelligent door lock control method and device, storage medium and electronic equipment
CN114267103A (en) * 2021-12-06 2022-04-01 深圳供电局有限公司 Management system and method for intelligent lock of power supply equipment
CN114244509A (en) * 2021-12-17 2022-03-25 北京国泰网信科技有限公司 Method for carrying out SM2 one-time pad bidirectional authentication unlocking by using mobile terminal
CN114299643B (en) * 2021-12-24 2023-11-14 北京纬百科技有限公司 Door lock management method and device, storage medium and electronic equipment
CN114299643A (en) * 2021-12-24 2022-04-08 北京纬百科技有限公司 Door lock management method and device, storage medium and electronic equipment
CN114299645A (en) * 2022-01-12 2022-04-08 初蓝物联科技(上海)有限公司 Encryption communication method for padlock of Internet of things
CN114448727A (en) * 2022-04-02 2022-05-06 中国信息通信研究院 Information processing method and system based on industrial internet identification analysis system
CN116543485A (en) * 2023-06-15 2023-08-04 智慧云联信息技术(北京)有限公司 Emergency help seeking method, system, electronic equipment and storage medium
CN116527258B (en) * 2023-06-30 2023-09-22 深圳市旭子科技有限公司 Unlocking method, device, equipment and storage medium of coded lock
CN116527258A (en) * 2023-06-30 2023-08-01 深圳市旭子科技有限公司 Unlocking method, device, equipment and storage medium of coded lock
CN116527409A (en) * 2023-07-05 2023-08-01 深圳市旭子科技有限公司 Internet of things lock-based network access identity recognition method and system
CN116527409B (en) * 2023-07-05 2023-10-20 深圳市旭子科技有限公司 Internet of things lock-based network access identity recognition method and system

Also Published As

Publication number Publication date
CN108055235B (en) 2020-09-18

Similar Documents

Publication Publication Date Title
CN108055235A (en) A kind of control method of smart lock, relevant device and system
CN107959686B (en) A kind of Internet of Things security certification system and authentication method
US5144667A (en) Method of secure remote access
CN107038777A (en) A kind of safety communicating method and its intelligent door lock system based on intelligent door lock system
JP2883243B2 (en) Remote party authentication / encryption key distribution method
CN101350724B (en) Encrypting method base on biology characteristic information
US10477402B2 (en) One-way key fob and vehicle pairing
EP1882346B1 (en) Communication protocol and electronic communication system, in particular authentication control system, as well as corresponding method
CN106161032A (en) A kind of identity authentication method and device
CN104796265A (en) Internet-of-things identity authentication method based on Bluetooth communication access
CN106506149B (en) Key generation method and system between a kind of TBOX terminal and TSP platform
CN108171831A (en) A kind of bidirectional safe authentication method based on NFC mobile phone and smart lock
CN107154847A (en) Towards the method for generating cipher code, verification method and its smart machine of offline environment
CN110322600B (en) Control method of electronic lock and electronic lock
CN101895881B (en) Method for realizing GBA secret key and pluggable equipment of terminal
CN106789024A (en) A kind of remote de-locking method, device and system
CN110738764A (en) Security control system and method based on intelligent lock
CN110098925A (en) Based on unsymmetrical key pond to and random number quantum communications service station cryptographic key negotiation method and system
CN109961542A (en) A kind of entrance guard device, verifying device, verifying system and its verification method
CN107046524A (en) It is a kind of based on ultrasonic wave use intelligent entrance guard method and system
CN114401087B (en) Passive lock identity authentication and key agreement system based on state cryptographic algorithm
CN110113153A (en) NFC secret key updating method, terminal and system
CN107749795A (en) A kind of vehicle remote control method of the secondary encryption based on rolling code
CN102984157A (en) Information encryption method based on human faces
CN113593088A (en) Intelligent unlocking method, intelligent lock, mobile terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200918