CN112950813A - Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium - Google Patents

Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium Download PDF

Info

Publication number
CN112950813A
CN112950813A CN201911170478.8A CN201911170478A CN112950813A CN 112950813 A CN112950813 A CN 112950813A CN 201911170478 A CN201911170478 A CN 201911170478A CN 112950813 A CN112950813 A CN 112950813A
Authority
CN
China
Prior art keywords
unlocking
key
intelligent lock
lock body
unlocking instruction
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.)
Pending
Application number
CN201911170478.8A
Other languages
Chinese (zh)
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.)
Ninebot Beijing Technology Co Ltd
Ninebot Changzhou Technology Co Ltd
Original Assignee
Ninebot Beijing Technology Co Ltd
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 Ninebot Beijing Technology Co Ltd filed Critical Ninebot Beijing Technology Co Ltd
Priority to CN201911170478.8A priority Critical patent/CN112950813A/en
Publication of CN112950813A publication Critical patent/CN112950813A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B62LAND VEHICLES FOR TRAVELLING OTHERWISE THAN ON RAILS
    • B62HCYCLE STANDS; SUPPORTS OR HOLDERS FOR PARKING OR STORING CYCLES; APPLIANCES PREVENTING OR INDICATING UNAUTHORIZED USE OR THEFT OF CYCLES; LOCKS INTEGRAL WITH CYCLES; DEVICES FOR LEARNING TO RIDE CYCLES
    • B62H5/00Appliances preventing or indicating unauthorised use or theft of cycles; Locks integral with cycles
    • EFIXED CONSTRUCTIONS
    • E05LOCKS; KEYS; WINDOW OR DOOR FITTINGS; SAFES
    • E05BLOCKS; ACCESSORIES THEREFOR; HANDCUFFS
    • E05B49/00Electric permutation locks; Circuits therefor ; Mechanical aspects of electronic locks; Mechanical keys therefor
    • 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/00571Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated by interacting with a central unit
    • 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/00817Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys where the code of the lock can be programmed
    • 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

Abstract

The invention discloses an intelligent lock device, a scooter, an intelligent lock body control method and a storage medium of the intelligent lock device, wherein the intelligent lock device comprises an Internet of things module, a main control drive plate and an intelligent lock body, wherein the Internet of things module is used for receiving an unlocking instruction and identity information of an unlocking instruction sender, and sending the unlocking instruction to the main control drive plate when the identity information of the unlocking instruction sender is verified to be valid; the master control drive board is used for generating a first key according to the characteristic information of the intelligent lock body and encrypting the first key and an unlocking instruction according to an encryption algorithm to generate an unlocking control signal; the intelligent lock body is used for generating a second secret key according to the characteristic information, decrypting the unlocking control signal to obtain an unlocking instruction and the first secret key, and executing unlocking action according to the unlocking instruction when the first secret key is determined to be correct according to the second secret key. The intelligent lock device and the control method thereof can improve the data transmission safety, reduce the probability of battery theft and improve the safety.

Description

Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium
Technical Field
The invention relates to the technical field of vehicles, in particular to an intelligent lock device, a scooter comprising the intelligent lock device, an intelligent lock body control method of the scooter and a computer storage medium.
Background
At present, most of lithium batteries in electric scooter on the market lack anti-theft protection devices, and are easy to steal. A small number of electric scooter adopts simple and easy electromagnetic lock, and this kind of lock realizes the unblock action through the mode that makes the coil circular telegram produce the suction force, because lock body and control panel part are stolen easily. A small number of electric scooters adopt an integrated lock with a single chip microcomputer inside, but the lock is simple in function and easy to crack and steal.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, an object of the present invention is to provide an intelligent lock device, which can reduce the possibility of the intelligent lock being cracked.
The second purpose of the invention is to provide a scooter.
The third purpose of the invention is to provide an intelligent lock body control method.
It is a fourth object of the invention to provide a non-transitory computer storage medium.
In order to achieve the above object, an intelligent lock device according to an embodiment of the first aspect of the present invention includes an internet of things module, a main control drive board, and an intelligent lock body: the internet of things module is used for receiving unlocking information, wherein the unlocking information comprises an unlocking instruction and identity information of an unlocking instruction sender, and the unlocking instruction is sent to the master control drive plate when the identity information of the unlocking instruction sender is valid; the main control drive board is connected with the Internet of things module and used for generating a first secret key according to the characteristic information of the intelligent lock body and encrypting the first secret key and the unlocking instruction according to an encryption algorithm so as to generate an unlocking control signal carrying the first secret key and the unlocking instruction; and the intelligent lock body is connected with the main control drive plate and used for generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and executing unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key.
According to the intelligent lock device provided by the embodiment of the invention, remote control can be realized by arranging the Internet of things module, the Internet of things module firstly identifies the identity of the unlocking instruction sender, the unlocking instruction is sent to the main control drive plate when the identity of the sender is legal, the main control drive plate encrypts the unlocking instruction through an encryption algorithm, namely data transmission is carried out by cipher text driving, and through identity verification and encryption sending, the data security can be improved, the theft probability is reduced, and the security is improved.
In some embodiments, the master control drive board is configured to, when generating the unlocking control signal, obtain chip identity information and a user identification code of the smart lock body, generate a first key according to the chip identity information and the user identification code according to an encryption rule, encrypt the first key and the unlocking instruction according to an encryption algorithm, generate an unlocking control signal carrying the unlocking instruction and the first key, and send the unlocking control signal to the smart lock body as message data. The intelligent lock body generates a second key according to the chip identity information and the user identification code, decrypts the unlocking control signal after receiving message data of the unlocking control signal to obtain the first key and the unlocking instruction, and executes unlocking action according to the unlocking instruction when the first key is matched with the second key.
In some embodiments, the encryption algorithm between the master control drive plate and the intelligent lock body adopts a TEA encryption algorithm, and the algorithm is simple, high in safety and strong in tolerance resistance.
In some embodiments, the message data includes a random number, which can ensure that ciphertexts transmitted each time are different, and increase the difficulty of cracking.
In some embodiments, the internet of things module is further configured to receive firmware upgrade information of the intelligent lock body, so as to update the user identification code and the encryption rule of the intelligent lock body, thereby performing upgrade at irregular time and improving security.
In some embodiments, the intelligent lock body is further used for feeding back the state information of the lock body to the master control driving plate.
In some embodiments, the smart lock body and the master driver board employ different encryption rules.
In some embodiments, the smart lock body communicates with the main control driver board through an I2C (Inter-Integrated Circuit) interface, and the main control driver board communicates with the internet of things module through a UART (Universal Asynchronous Receiver/Transmitter) interface.
In order to achieve the above object, the scooter according to the second aspect of the present invention comprises a scooter body, a power battery and the intelligent lock device.
According to the scooter provided by the embodiment of the invention, the intelligent lock device is adopted, so that the probability of stealing the power battery can be reduced, and the safety is improved.
In some embodiments, the scooter comprises: the battery compartment is formed on the chassis and is opened upwards, and a first clamping part is arranged at one end of the battery compartment; the power battery is detachably arranged in the battery cabin; the intelligent lock body is arranged at the other end of the battery cabin; the footboard, the one end of footboard is provided with second joint portion and the other end is provided with locking cooperation portion, wherein, second joint portion joint is in the first joint portion and rotatable, the intelligent lock body selectively locks and unblock locking cooperation portion.
In order to achieve the above object, an intelligent lock body control method according to a third aspect of the present invention is applied to a scooter, and includes: receiving unlocking information, wherein the unlocking information comprises an unlocking instruction and identity information of an unlocking instruction sender; verifying whether the identity information of the unlocking instruction sender is valid; if the key is valid, generating a first key by the characteristic information of the intelligent lock body, and encrypting the first key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the unlocking instruction and the first key; and generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and executing unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key.
According to the intelligent lock body control method provided by the embodiment of the invention, the identity of the unlocking instruction sender is identified, the unlocking instruction is encrypted through the encryption algorithm to generate the unlocking control signal, the intelligent lock body is controlled to execute the unlocking action according to the unlocking control signal, namely, the data transmission is encrypted, the data security can be improved, and the intelligent lock body cannot be unlocked according to illegal unlocking data, so that the theft probability can be reduced, and the security is improved.
In some embodiments, the generating a first key according to the characteristic information of the smart lock body, and encrypting the first key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the unlocking instruction and the first key includes: acquiring chip identity information and a user identification code of the intelligent lock body; generating a first key according to the chip identity information and the user identification code and an encryption rule; and encrypting the first secret key and the unlocking instruction according to the encryption algorithm to generate an unlocking control signal carrying the first secret key and the unlocking instruction, and sending the unlocking control signal to the intelligent lock body as message data.
In some embodiments, generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and controlling the smart lock body to perform an unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key, includes: generating a second key according to the chip identity information and the user identification code; after receiving the message data of the unlocking control signal, decrypting the unlocking control signal to obtain the first secret key and the unlocking instruction; and when the first secret key is matched with the second secret key, unlocking action is executed according to the unlocking instruction.
In some embodiments, encrypting the first key and the unlock instruction according to the encryption algorithm comprises: and encrypting the first secret key and the unlocking instruction by using a TEA encryption algorithm, so that the data transmission safety is improved.
In some embodiments, the message data includes a random number, which can ensure that the ciphertexts transmitted each time are different, thereby improving the security.
In some embodiments, the smart lock body control method further comprises: receiving firmware upgrading information of the intelligent lock body; and updating the user identification code and the encryption rule of the intelligent lock body according to the firmware upgrading information, so that the intelligent lock body can be upgraded irregularly and the safety is improved.
The fourth aspect of the present invention also provides a non-transitory computer storage medium, on which a computer program is stored, where the computer program is executed to implement the intelligent lock body control method.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a block diagram of an intelligent lock device according to one embodiment of the invention;
FIG. 2 is a block diagram of an intelligent lock device according to another embodiment of the invention;
FIG. 3 is a block diagram of a scooter according to one embodiment of the present invention;
figure 4 is a flow diagram of a smart lock body control method according to one embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below, the embodiments described with reference to the drawings being illustrative, and the embodiments of the present invention will be described in detail below.
An intelligent lock device according to an embodiment of the invention is described below with reference to fig. 1 and 2.
Fig. 1 is a block diagram of an intelligent lock device according to an embodiment of the present invention, and as shown in fig. 1, an intelligent lock device 1 according to an embodiment of the present invention includes an internet of things module 10, a master driver board 20, and an intelligent lock body 30.
Wherein, thing networking module 10 is used for receiving the information of unblanking, and wherein the information of unblanking includes the identity information of instruction of unblanking and the instruction sender of unblanking, for example, can send the instruction of unblanking through intelligent terminal such as cell-phone APP, and the server sends the instruction of unblanking after receiving this instruction and gives the thing networking module 10 of corresponding vehicle, and thing networking module 10 can be the equipment that has the data communication function such as wifi module, lora communication module etc.. The internet of things module 10 receives the unlocking information, verifies the identity information of the unlocking instruction sender, and when the identity information is valid, for example, when the identity information is matched with the pre-stored identity information of a legal unlocking person, the unlocking instruction sender is considered to be not authorized to unlock, and when the identity information of the unlocking instruction sender is verified to be valid, the unlocking instruction is sent to the main control drive board 20.
The main control drive board 20 is connected to the internet of things module 10, and is configured to generate a first key according to characteristic information of the smart lock body, encrypt the first key and the unlocking instruction according to an encryption algorithm, generate an unlocking control signal carrying the first key and the unlocking instruction, and send the unlocking control signal to the smart lock body 30. The characteristic information of the smart lock body 30 may include information that can identify the identity of the smart lock body 30, and includes inherent information and preset information, and in some embodiments, the characteristic information may include chip identity information and a set user identification code, and the user identification code may be a distinguishing number, a symbol, and the like defined for a user to distinguish a legitimate user. The basic process of data encryption is to process the original plaintext file or data according to some algorithm to make it become an unreadable segment of code, usually called "ciphertext", so that it can only display the original content after inputting the corresponding key, and the purpose of protecting the data from being stolen and read by the illegal person is achieved through such a way. For example, the encryption algorithm may employ one or more of a symmetric encryption algorithm, an asymmetric encryption algorithm, a Hash algorithm, and the like. In the embodiment of the invention, the unlocking instruction is encrypted by the main control drive board 20 by using an encryption algorithm and is transmitted to the intelligent lock body 30 in a ciphertext mode, so that the data security can be improved, and the probability of being stolen can be reduced.
The intelligent lock body 30 is connected with the main control drive board 20 and is configured to generate a second key according to the characteristic information of the intelligent lock body, decrypt the unlocking control signal to obtain an unlocking instruction and the first key, and execute an unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key, where a decryption algorithm of the intelligent lock body 30 is matched with an algorithm for encrypting the first key in the main control drive board 20. Specifically, when receiving the request of the master control driver board 20, the smart lock body 30 sends its own feature information to the master control driver board 20, and generates a key according to its own feature information, where the key is matched with the key generated by the master control driver board 20 according to the feature information, for example, the two are consistent or complementary or satisfy other matching principles. After receiving the ciphertext of the unlocking control signal, the smart lock body 30 decrypts the ciphertext to obtain the first key and the unlocking instruction, if the second key is matched with the first key, the correct first key is obtained, the unlocking action is executed according to the unlocking instruction, and when the first key is incorrect, the unlocking is refused, so that the vehicle battery is prevented from being stolen due to malicious unlocking, and the safety is improved.
Further, in the embodiment of the present invention, data between the intelligent lock body 30 and the main control driving board 20 is encrypted and then transmitted in a ciphertext manner, so as to improve security. Specifically, after receiving the unlocking instruction, the main control drive board 20 sends a request to the intelligent lock body 30, the intelligent lock body 30 transmits the chip identity information and the user identification code to the main control drive board 20, and the main control drive board 20 generates a first key according to an encryption rule by using the chip identity information and the user identification code, where the key is a parameter that is input in an algorithm for converting a plaintext into a ciphertext or converting the ciphertext into the plaintext, and the encryption rule may be set as a relationship rule between an addition, subtraction, multiplication and division algorithm or other set symbols. Further, the main control drive board 20 encrypts the unlocking instruction and the first key according to an encryption algorithm to generate an unlocking control signal carrying the unlocking instruction and the first key, and sends the unlocking control signal to the smart lock body 30 as message data, the smart lock body 30 decrypts the message data plaintext after receiving the message data plaintext to obtain the unlocking instruction and the first key, and compares the first key with a second key generated according to the chip identity information of the first key and the user identification code, when the first key is consistent with the second key, it is determined whether the first key is correct, that is, the unlocking user is legal, otherwise, it is determined that the first key is incorrect, and the unlocking action is executed according to the unlocking instruction only when the first key is correct. Because the characteristic information of each intelligent lock body 30 is different, the first secret keys are different, and the data communication adopts ciphertext transmission, so that the safety of the intelligent lock body can be ensured.
In some embodiments, the plaintext message data transmitted by the main control driving board 20 to the intelligent lock body 30 includes random numbers, that is, variable and uncertain values each time, so as to ensure that ciphertexts transmitted each time are different, increase the difficulty of cracking the message, and further improve the security.
In some embodiments, the encryption rule used by the master control driving board 20 to generate the first key is different from the encryption rule used by the smart lock body 30 to generate the second key, which may further improve the information security.
In some embodiments, the encryption algorithm between the main control drive board 20 and the intelligent lock body 30 adopts a TEA encryption algorithm, and cipher text transmission is adopted, and the intelligent lock body 30 and the main control drive board may adopt different encryption rules, that is, different encryption rules may be used for uplink and downlink of data, so as to improve data security. The TEA encryption algorithm is a block cipher algorithm, and the plaintext cipher text block is 64 bits, and the key length is 128 bits. The TEA algorithm uses an ever increasing Delta value as a change so that the encryption is different for each round, the number of iterations of the encryption algorithm can vary, and its reliability is guaranteed by the number of encryption rounds rather than the complexity of the algorithm. Therefore, the TEA encryption algorithm is simple in algorithm, strong in differential analysis resistance, high in encryption speed and high in safety, and accordingly the safety of data transmission can be improved.
In an embodiment, as shown in fig. 2, the intelligent lock body 30 communicates with the main control driver board 20 through an I2C interface, and the main control driver board 20 communicates with the internet of things module 10 through a UART interface. The intelligent lock body 30 can comprise a lock control panel 31, a direct current speed reducing motor 32, a motor position switch 33 and a bolt state switch 34, and after the mobile phone APP terminal sends an unlocking instruction, the server receives the unlocking instruction and sends the unlocking instruction to the Internet of things module 10 of the corresponding vehicle; the internet of things module 10 receives the unlocking instruction and then issues the unlocking instruction to the main control drive board 20; the main control driving board 20 sends an unlocking instruction to the intelligent lock body 30 after receiving the unlocking instruction; finally, after receiving the lock state information, the intelligent lock body 30 controls the dc geared motor 40 to operate, performs an unlocking action, and feeds back the lock state information to the main control driving board 20, for example, feeds back the motor position detected by the motor position switch 33 and the lock tongue state detected by the lock tongue state switch 34.
Further, the internet of things module 10 may be further configured to receive firmware upgrade information of the smart lock body 30, so as to update the user identification code and the encryption rule of the smart lock body 30. Specifically, the internet of things module 10 may periodically send a firmware upgrade request, after receiving the firmware upgrade request, the server issues firmware upgrade information corresponding to the intelligent lock device to the internet of things module 10 corresponding to the vehicle, the internet of things module 10 sends the firmware upgrade information to the main control drive board 20, the main control drive board 20 encrypts the firmware upgrade information and then issues the encrypted firmware upgrade information to the intelligent lock body 30, the intelligent lock body 30 may decrypt the encrypted firmware upgrade information to obtain new firmware upgrade information, and then may update the user identification code and the encryption rule thereof, and upgrade other functions, etc., thereby implementing remote upgrade of the firmware function thereof, may aperiodically change the encryption key and the user identification code thereof, and improve security.
Based on the above embodiment of the intelligent lock device, a scooter according to a second aspect of the present invention is described below.
Fig. 3 is a block diagram of a scooter according to an embodiment of the present invention, and as shown in fig. 3, the scooter 100 includes a scooter body 2, a power battery 3 and the intelligent lock device 1 of the above embodiment, wherein the structure and operation of the intelligent lock device 1 can refer to the description of the above embodiment. The intelligent lock device 1 locks the power battery 3, and unlocking, irregular firmware upgrading and the like are realized through data encryption transmission and remote control, so that the safety can be improved, the probability of stealing the power battery 3 is reduced, and the safety is improved.
According to the scooter 100 of the embodiment of the invention, the intelligent lock device 1 of the embodiment is adopted, so that the possibility of stealing the power battery 3 can be reduced, and the safety is improved.
Specifically, electric scooter still includes: the battery compartment is formed on the chassis and is opened upwards, and a first clamping part is arranged at one end of the battery compartment; the power battery is detachably arranged in the battery cabin; the intelligent lock body is arranged at the other end of the battery cabin; the intelligent lock comprises a pedal, a first clamping part and a second clamping part, wherein one end of the pedal is provided with the first clamping part, the other end of the pedal is provided with a locking matching part, the first clamping part is clamped in the first clamping part and can rotate, and the intelligent lock body selectively locks and unlocks the locking matching part; so as to lock the pedal and the power battery by using the intelligent lock.
The following describes a smart lock body control method proposed according to an embodiment of the third aspect of the present invention with reference to the accompanying drawings.
Fig. 4 is a flowchart of an intelligent lock body control method according to an embodiment of the present invention, and as shown in fig. 4, the intelligent lock body control method according to the embodiment of the present invention at least includes steps S1-S3, each of which is detailed as follows.
And S1, receiving unlocking information, wherein the unlocking information comprises an unlocking instruction and identity information of an unlocking instruction sender.
For example, an internet of things module can be arranged, after the intelligent terminal sends an unlocking instruction, the server issues the unlocking instruction to the internet of things module of the corresponding vehicle, and remote unlocking instruction sending is achieved.
And S2, verifying whether the identity information of the unlocking instruction sender is valid.
For example, when the identity information of the unlocking instruction sender is matched with the pre-stored identity information of a legal unlocking person, the unlocking instruction sender is considered to be valid, otherwise, the unlocking instruction sender is considered to have no authority to unlock, the unlocking instruction is refused to be issued, and the unlocking information is returned to be received; and when the identity information of the unlocking instruction sender is verified to be valid, the unlocking instruction is sent to the main control drive board, and the step S3 is executed.
And S3, generating a first key according to the characteristic information of the intelligent lock body, and encrypting the unlocking instruction and the first key according to an encryption algorithm to generate an unlocking control signal carrying the first key and the unlocking instruction.
The basic process of data encryption is to process the original plaintext file or data according to some algorithm to make it an unreadable segment of code, usually called "ciphertext", so that it can only display the original content after inputting the corresponding key, and the purpose of protecting the data from being stolen and read by an illegal person is achieved through such a way. For example, the encryption algorithm may include a symmetric encryption algorithm, an asymmetric encryption algorithm, and a Hash algorithm. In the embodiment of the invention, the unlocking instruction is encrypted through the encryption algorithm and transmitted in a ciphertext mode, so that the data security can be improved, and the probability of being stolen can be reduced.
And S4, generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain an unlocking instruction and the first key, and controlling the intelligent lock body to execute an unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key.
Specifically, after the intelligent lock body receives the ciphertext of the unlocking control signal, the ciphertext is decrypted to obtain a first secret key and an unlocking instruction, the first secret key and a second secret key are matched, for example, when the first secret key and the second secret key are consistent or complementary, if the first secret key and the second secret key are obtained, the correct first secret key is obtained, the unlocking action is executed according to the unlocking instruction, and if the first secret key is incorrect, the unlocking is refused, so that the vehicle battery is prevented from being stolen due to malicious unlocking, and the safety is improved.
According to the intelligent lock body control method provided by the embodiment of the invention, the unlocking instruction sender is subjected to identity verification and is encrypted by the encryption algorithm to generate the unlocking control signal, the intelligent lock body is controlled to execute the unlocking action according to the unlocking control signal, namely, data transmission is encrypted, so that the data security can be improved, and the intelligent lock body cannot be unlocked according to illegal unlocking data, so that the theft probability can be reduced, and the security is improved.
Further, in the embodiment of the invention, data between the intelligent lock body and the main control drive plate is encrypted and then transmitted in a ciphertext mode, so that the safety is improved. Specifically, after receiving an unlocking instruction, the main control drive board sends a request to the intelligent lock body, the intelligent lock body encrypts characteristic information such as chip identity information and user identification information and then uploads the encrypted characteristic information to the main control drive board, and the main control drive board acquires the chip identity information and the user identification code of the intelligent lock body; generating a first key according to the chip identity information and the user identification code and an encryption rule; and encrypting the first key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the first key and the unlocking instruction, and sending the unlocking control signal to the intelligent lock body as message data. The intelligent lock body generates a second secret key according to the chip identity information and the user identification code of the intelligent lock body, decrypts the plaintext of the message data of the unlocking control signal according to a corresponding decryption algorithm after receiving the message data of the unlocking control signal, obtains a first secret key and an unlocking instruction, identifies the first secret key, and identifies whether the first secret key is correct or not according to the second secret key; if the first secret key is matched with the second secret key, the first secret key is considered to be correct, the unlocking action is executed according to the unlocking instruction, namely, the unlocking action is executed according to the unlocking instruction only when the first secret key is correct. Because the feature information of each intelligent lock body is different, the first secret keys are different, and the data communication adopts ciphertext transmission, so that the safety of the intelligent lock body can be ensured.
In some embodiments, the plaintext message data transmitted by the main control drive board to the intelligent lock body comprises random numbers, namely variable and uncertain numerical values each time, so that different ciphertexts transmitted each time are ensured, the difficulty of cracking the message is increased, and the safety is further improved.
In some embodiments, the TEA encryption algorithm is used for encrypting the first key and the unlocking instruction, and ciphertext transmission is used, so that different keys can be used for the intelligent lock body and the main control drive plate, and the data security is improved. The TEA encryption algorithm is a block cipher algorithm, and the plaintext cipher text block is 64 bits, and the key length is 128 bits. The TEA algorithm uses an ever increasing Delta value as a change so that the encryption is different for each round, the number of iterations of the encryption algorithm can vary, and its reliability is guaranteed by the number of encryption rounds rather than the complexity of the algorithm. Therefore, the TEA encryption algorithm is simple in algorithm, strong in differential analysis resistance, high in encryption speed and high in safety, and accordingly the safety of data transmission can be improved.
Further, the intelligent lock body control method of the embodiment of the invention may further include: receiving firmware upgrading information of the intelligent lock body; and updating the user identification code and the encryption rule of the intelligent lock body according to the firmware upgrading information. Specifically, the intelligent lock body can periodically send a firmware upgrading request, the server sends firmware information corresponding to the intelligent lock body to the internet of things module of the corresponding vehicle after receiving the firmware upgrading request, or the server sends the firmware upgrading information to the internet of things module periodically, and then the internet of things module sends the firmware upgrading information to the main control drive board and the intelligent lock body, so that the firmware function of the intelligent lock body is upgraded remotely, the user identification code and the encryption rule of the intelligent lock body can be changed irregularly, and the safety is improved.
The fourth aspect of the present invention also provides a non-transitory computer storage medium, on which a computer program is stored, where the computer program is executed to implement the intelligent lock body control method of the above embodiments.
It should be noted that in the description of this specification, any process or method description in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and that the scope of the preferred embodiments of the present invention includes additional implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an illustrative embodiment," "an example," "a specific example," or "some examples" or the like mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example.
While embodiments of the invention have been shown and described, it will be understood by those of ordinary skill in the art that: various changes, modifications, substitutions and alterations can be made to the embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the claims and their equivalents.

Claims (17)

1. An intelligent lock device is characterized by comprising an Internet of things module, a master control drive plate and an intelligent lock body;
the Internet of things module is used for receiving unlocking information, wherein the unlocking information comprises an unlocking instruction and identity information of an unlocking instruction sender, and the unlocking instruction is sent to the main control drive board when the identity information of the unlocking instruction sender is verified to be valid;
the main control drive board is connected with the Internet of things module and used for generating a first secret key according to the characteristic information of the intelligent lock body and encrypting the first secret key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the unlocking instruction and the first secret key;
and the intelligent lock body is connected with the main control drive plate and used for generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and executing unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key.
2. The intelligent lock arrangement according to claim 1,
the master control drive board is used for acquiring chip identity information and a user identification code of the intelligent lock body when generating the unlocking control signal, generating the first key according to the chip identity information and the user identification code and an encryption rule, encrypting the first key and the unlocking instruction according to an encryption algorithm, generating an unlocking control signal carrying the unlocking instruction and the first key, and sending the unlocking control signal to the intelligent lock body in the form of message data;
the intelligent lock body generates a second key according to the chip identity information and the user identification code, decrypts the unlocking control signal after receiving message data of the unlocking control signal to obtain the first key and the unlocking instruction, and executes unlocking action according to the unlocking instruction when the first key is matched with the second key.
3. The smart lock device of claim 2, wherein the encryption algorithm between the master driver board and the smart lock body is a TEA encryption algorithm.
4. The intelligent locking device of claim 2 wherein the message data comprises a random number.
5. The intelligent lock arrangement according to claim 2,
the internet of things module is further used for receiving firmware upgrading information of the intelligent lock body so as to update the user identification code and the encryption rule of the intelligent lock body.
6. The intelligent lock device as in claim 1, wherein the intelligent lock body is further configured to feed back lock body status information to the master driver board.
7. The intelligent lock device as claimed in claim 6, wherein the intelligent lock body and the master driver board employ different encryption rules.
8. The intelligent lock device as claimed in claim 1, wherein the intelligent lock body communicates with the main control driving board through an I2C interface, and the main control driving board communicates with the internet of things module through a UART interface.
9. A scooter, comprising a body, a power battery and an intelligent lock device according to any one of claims 1-8.
10. The scooter of claim 9, wherein the scooter comprises:
the battery compartment is formed on the chassis and is opened upwards, and a first clamping part is arranged at one end of the battery compartment; the power battery is detachably arranged in the battery cabin; the intelligent lock body is arranged at the other end of the battery cabin; the footboard, the one end of footboard is provided with second joint portion and the other end is provided with locking cooperation portion, wherein, second joint portion joint is in the first joint portion and rotatable, the intelligent lock body selectively locks and unblock locking cooperation portion.
11. An intelligent lock body control method is used for a scooter and is characterized by comprising the following steps:
receiving unlocking information, wherein the unlocking information comprises an unlocking instruction and identity information of an unlocking instruction sender;
verifying whether the identity information of the unlocking instruction sender is valid;
if the key is valid, generating a first key according to the characteristic information of the intelligent lock body, and encrypting the first key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the first key and the unlocking instruction;
and generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and controlling the intelligent lock body to execute an unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key.
12. The smart lock control method of claim 11, wherein generating a first key according to the characteristic information of the smart lock, and encrypting the first key and the unlocking instruction according to an encryption algorithm to generate an unlocking control signal carrying the unlocking instruction and the first key comprises:
acquiring chip identity information and a user identification code of the intelligent lock body;
generating a first key according to the chip identity information and the user identification code and an encryption rule;
and encrypting the first secret key and the unlocking instruction according to the encryption algorithm to generate the unlocking control signal carrying the first secret key and the unlocking instruction, and sending the unlocking control signal as message data.
13. The intelligent lock body control method according to claim 12, wherein generating a second key according to the characteristic information, decrypting the unlocking control signal to obtain the unlocking instruction and the first key, and controlling the intelligent lock body to perform an unlocking action according to the unlocking instruction when the first key is determined to be correct according to the second key comprises:
generating a second key according to the chip identity information and the user identification code;
after receiving the message data of the unlocking control signal, decrypting the unlocking control signal to obtain the first secret key and the unlocking instruction;
and when the first secret key is matched with the second secret key, unlocking action is executed according to the unlocking instruction.
14. The smart lock body control method of claim 12, wherein encrypting the first key and the unlock instruction according to the encryption algorithm comprises:
and encrypting the first secret key and the unlocking instruction by using a TEA encryption algorithm.
15. A smart lock body control method as recited in claim 12, wherein the message data includes a random number.
16. The smart lock control method of claim 12, further comprising:
receiving firmware upgrading information of the intelligent lock body;
and updating the user identification code and the encryption rule of the intelligent lock body according to the firmware upgrading information.
17. A non-transitory computer storage medium having stored thereon a computer program that, when executed, implements the smart lock body control method of any of claims 11-16.
CN201911170478.8A 2019-11-26 2019-11-26 Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium Pending CN112950813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911170478.8A CN112950813A (en) 2019-11-26 2019-11-26 Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911170478.8A CN112950813A (en) 2019-11-26 2019-11-26 Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium

Publications (1)

Publication Number Publication Date
CN112950813A true CN112950813A (en) 2021-06-11

Family

ID=76225210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911170478.8A Pending CN112950813A (en) 2019-11-26 2019-11-26 Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium

Country Status (1)

Country Link
CN (1) CN112950813A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113870460A (en) * 2021-09-08 2021-12-31 深圳市凯迪仕智能科技有限公司 Intelligent lock body and intelligent lock
CN114866241A (en) * 2022-07-06 2022-08-05 深圳华大北斗科技股份有限公司 Communication encryption method and device of SE chip and storage medium
CN115050140A (en) * 2022-06-08 2022-09-13 杭州野乐科技有限公司 Unlocking method, device and equipment of shared bicycle and storage medium
CN116074826A (en) * 2023-03-07 2023-05-05 深圳市好盈科技股份有限公司 Communication data encryption and decryption method and device applied to electric scooter

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101153910A (en) * 2006-09-29 2008-04-02 凹凸科技(中国)有限公司 Method and system for safe transmission of GPS locating information and GPS receiver
CN102092362A (en) * 2009-12-09 2011-06-15 本田技研工业株式会社 Antitheft apparatus for equipment with prime mover
CN103927802A (en) * 2014-04-18 2014-07-16 深圳市威富安防有限公司 Door lock control method and system
CN103927809A (en) * 2014-04-30 2014-07-16 常州市思索数码科技有限公司 Intelligent electronic lock management system and method
CN104112306A (en) * 2014-05-21 2014-10-22 福建三鑫隆新材料技术开发股份有限公司 Remote-authorization unlocking method of passive labeled electronic lock
CN104282061A (en) * 2014-08-21 2015-01-14 厦门华数电力科技有限公司 Safety intelligent lock system and unlocking and locking methods thereof
CN104680630A (en) * 2014-12-29 2015-06-03 深圳市进林科技有限公司 Method and system for controlling door locks
CN104778773A (en) * 2015-04-16 2015-07-15 绿锌网络科技(上海)有限公司 System and method for controlling entrance guard by mobile phone
CN105869246A (en) * 2016-04-13 2016-08-17 上海斐讯数据通信技术有限公司 Intelligent unlocking system and method thereof
CN105989643A (en) * 2015-02-03 2016-10-05 吉林省施泰信息技术股份有限公司 Communication encryption method used for electronic lock, electronic lock apparatus and system thereof
KR101699817B1 (en) * 2015-07-23 2017-01-25 (주)초이스밸류 Lock state control mothod of safety apparatus using protection apparatus and user device
CN107705391A (en) * 2016-08-08 2018-02-16 同方锐安科技有限公司 A kind of high safety, expansible access controller
CN108171830A (en) * 2017-12-21 2018-06-15 广东汇泰龙科技有限公司 A kind of hardware encryption method unlocked based on contactless card, system and intelligent cloud lock
CN109243018A (en) * 2018-08-23 2019-01-18 杭州立为科技有限公司 Automatic encryption method, smart lock and storage medium between intelligent lock control system module
CN109300201A (en) * 2018-06-14 2019-02-01 北京玛泰科技有限公司 A kind of intelligent and safe lock and its encryption system and encryption method
CN110163998A (en) * 2018-02-14 2019-08-23 中城智慧科技有限公司 A kind of intelligent door lock application method of intelligent door lock system and offline authentication
CN209670565U (en) * 2018-11-12 2019-11-22 上海共佰克智能科技有限公司 Safety lock device and Segway Human Transporter

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101153910A (en) * 2006-09-29 2008-04-02 凹凸科技(中国)有限公司 Method and system for safe transmission of GPS locating information and GPS receiver
CN102092362A (en) * 2009-12-09 2011-06-15 本田技研工业株式会社 Antitheft apparatus for equipment with prime mover
CN103927802A (en) * 2014-04-18 2014-07-16 深圳市威富安防有限公司 Door lock control method and system
CN103927809A (en) * 2014-04-30 2014-07-16 常州市思索数码科技有限公司 Intelligent electronic lock management system and method
CN104112306A (en) * 2014-05-21 2014-10-22 福建三鑫隆新材料技术开发股份有限公司 Remote-authorization unlocking method of passive labeled electronic lock
CN104282061A (en) * 2014-08-21 2015-01-14 厦门华数电力科技有限公司 Safety intelligent lock system and unlocking and locking methods thereof
CN104680630A (en) * 2014-12-29 2015-06-03 深圳市进林科技有限公司 Method and system for controlling door locks
CN105989643A (en) * 2015-02-03 2016-10-05 吉林省施泰信息技术股份有限公司 Communication encryption method used for electronic lock, electronic lock apparatus and system thereof
CN104778773A (en) * 2015-04-16 2015-07-15 绿锌网络科技(上海)有限公司 System and method for controlling entrance guard by mobile phone
KR101699817B1 (en) * 2015-07-23 2017-01-25 (주)초이스밸류 Lock state control mothod of safety apparatus using protection apparatus and user device
CN105869246A (en) * 2016-04-13 2016-08-17 上海斐讯数据通信技术有限公司 Intelligent unlocking system and method thereof
CN107705391A (en) * 2016-08-08 2018-02-16 同方锐安科技有限公司 A kind of high safety, expansible access controller
CN108171830A (en) * 2017-12-21 2018-06-15 广东汇泰龙科技有限公司 A kind of hardware encryption method unlocked based on contactless card, system and intelligent cloud lock
CN110163998A (en) * 2018-02-14 2019-08-23 中城智慧科技有限公司 A kind of intelligent door lock application method of intelligent door lock system and offline authentication
CN109300201A (en) * 2018-06-14 2019-02-01 北京玛泰科技有限公司 A kind of intelligent and safe lock and its encryption system and encryption method
CN109243018A (en) * 2018-08-23 2019-01-18 杭州立为科技有限公司 Automatic encryption method, smart lock and storage medium between intelligent lock control system module
CN209670565U (en) * 2018-11-12 2019-11-22 上海共佰克智能科技有限公司 Safety lock device and Segway Human Transporter

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113870460A (en) * 2021-09-08 2021-12-31 深圳市凯迪仕智能科技有限公司 Intelligent lock body and intelligent lock
CN115050140A (en) * 2022-06-08 2022-09-13 杭州野乐科技有限公司 Unlocking method, device and equipment of shared bicycle and storage medium
CN114866241A (en) * 2022-07-06 2022-08-05 深圳华大北斗科技股份有限公司 Communication encryption method and device of SE chip and storage medium
CN114866241B (en) * 2022-07-06 2022-10-21 深圳华大北斗科技股份有限公司 Communication encryption method and device of SE chip and storage medium
CN116074826A (en) * 2023-03-07 2023-05-05 深圳市好盈科技股份有限公司 Communication data encryption and decryption method and device applied to electric scooter

Similar Documents

Publication Publication Date Title
CN112950813A (en) Intelligent lock device, scooter, intelligent lock body control method thereof and storage medium
CN108698563B (en) Secure smartphone-based access and start authorization system for vehicles
CN109862040B (en) Security authentication method and authentication system
CN108111998B (en) Wireless unlocking method and system
CN105976466B (en) Automobile entrance guard door opening method
US7961076B2 (en) Methods and apparatuses for remote control of vehicle devices and vehicle lock-out notification
CN106302379B (en) Authentication method, system and device for vehicle-mounted electric appliance
JP6036638B2 (en) Electronic key system, in-vehicle device, and portable device
US20150045013A1 (en) Multi-level vehicle remote start authentication method & system
CN101014075B (en) Anti-theft system and method realized by mobile terminal
CN112669491B (en) Vehicle digital key distribution management method and device
US20140016781A1 (en) Motor vehicle control unit having a cryptographic device
CN102259636B (en) Anti-theft method and system for automobiles
CN105187442A (en) Vehicle authorization method, device, vehicle-mounted terminal, terminal and system
CN109035519B (en) Biological feature recognition device and method
CN109649332A (en) Vehicle shared system
CN115314253B (en) Data processing method, device, system, equipment and working machine
CN105383443B (en) A kind of motor vehicle can position automatic alarm intelligent burglary-resisting system
CN104527576A (en) WIFI (Wireless Fidelity) type automobile starting control method and mobile terminal
CN112572343B (en) Anti-theft authentication method, device and storage medium applied to vehicle
CN115361230B (en) In-vehicle safety information communication method, system and medium of vehicle-mounted Ethernet
CN104554143A (en) Car starting control method and mobile terminal
CN107749795B (en) Automobile remote control method based on rolling code secondary encryption
JP5393717B2 (en) Electronic key device
CN116155579A (en) Secure communication method, system, storage medium and vehicle

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210611

RJ01 Rejection of invention patent application after publication