A smart lock command operation method, system, smart lock and computer equipment

By employing distributed key management and multiple encryption/decryption mechanisms, the problem of public key leakage in smart locks is solved, improving the data communication security of smart locks and ensuring the security of important functions.

CN118587801BActive Publication Date: 2024-11-22DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411054295.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-02
Publication Date
2024-11-22
Estimated Expiration
2044-08-02

AI Technical Summary

Technical Problem

In existing smart locks, the public key is easily intercepted during wireless transmission, leading to leakage. Furthermore, storing it on a single mobile phone or server makes it vulnerable to malicious attacks, posing a risk of public key loss or leakage and affecting lock security.

Method used

The smart lock business adopts distributed key management and is divided into level 1 and level 2 security levels. Data is encrypted and decrypted by using the identifiers and decryption serial numbers of the controller unit and encryption unit, and multiple encryption and decryption serial numbers to ensure the security of the public key.

Benefits of technology

Even if the public key is leaked, it will only affect the normal functions of the Level 2 security business, greatly improving the security of door lock data communication and ensuring that important functions are not attacked.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587801B_ABST
    Figure CN118587801B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of smart electronic locks, and discloses a smart lock instruction operation method, system, smart lock and computer equipment. The business server designed by the present invention stores a controller unit identifier and a corresponding first public key, and the security server stores a second public key corresponding to the encryption unit identifier. The first private key and the second private key are stored in the encryption unit, and the keys are distributedly managed, and the smart lock business is divided into a primary or secondary security level. The primary security level business has high security, a long data link, and a long execution time, and security can be guaranteed first. The secondary security level business is fast and convenient, and instructions can be issued quickly under certain confidentiality measures. Even if the public key is leaked, it only affects the conventional functions of the secondary security level business, and the important functions of the door lock will not be attacked, which greatly improves the security of the door lock data communication.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart electronic locks, and in particular to a smart lock instruction operation method, system, smart lock and computer equipment. Background Art

[0002] Generally, door locks are equipped with encryption chips to ensure data security and communication security. When the user registers and binds the door lock, the encryption chip generates a root key pair. The private key is stored inside the encryption chip and cannot be read out. The public key can be transmitted to the mobile phone or server via Bluetooth or WIFI for subsequent communication data encryption.

[0003] When the administrator user registers and binds at home, the process of transmitting the public key is wireless, so there is still a possibility of being monitored and intercepted, which may lead to public key leakage and door lock attack. In addition, the public key is stored on a single mobile phone or server, which may be maliciously attacked and cause the public key to be lost or leaked. Summary of the invention

[0004] In view of this, the present invention provides a smart lock command operation method, system, smart lock and computer device to solve the possible problems of public key leakage, door lock attack, and public key storage on a single mobile phone or server, which may be maliciously attacked and cause the public key loss or leakage.

[0005] In a first aspect, the present invention provides a smart lock instruction operation method, which is applied to a controller unit of a smart lock, wherein the smart lock at least includes a controller unit and an encryption unit, and the method includes: responding to instruction level information sent by a mobile terminal, identifying the controller unit based on the instruction level information, or sending the controller unit identifier and the encryption unit identifier to a business server through a mobile terminal, wherein the instruction level information is the mobile terminal's response to a user's operation instruction for the smart lock, and sending the operation instruction to the business server, which determines the instruction level for the smart lock operation and then sends it through the mobile terminal; responding to encrypted instruction data sent by the business server through the mobile terminal, sending the encrypted instruction data to the business server; The encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier, or the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier are sent to the encryption unit for decryption; the corresponding instruction operation is performed based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is parsed by the encryption unit to the first decryption sequence number, or the first decryption sequence number and the second decryption sequence number, and the encrypted instruction data is decrypted using the first private key, or the first private key and the second private key; the encryption unit is used to generate a key pair, and stores the first private key corresponding to the first decryption sequence number and the second private key corresponding to the second decryption sequence number.

[0006] The smart lock instruction operation method provided by the present invention is that the business server stores the controller unit identification and the corresponding first public key, the security server stores the second public key corresponding to the encryption unit identification, the first private key and the second private key are stored in the encryption unit, the keys are distributedly managed, and the smart lock business is divided into primary or secondary security levels. The primary security level business has high security, a long data link, and a long execution time, and security can be guaranteed first. The secondary security level business is fast and convenient, and instructions can be issued quickly with certain confidentiality measures. Even if the public key is leaked, it only affects the regular functions of the secondary security level business, and the important functions of the door lock will not be attacked, which greatly improves the security of the door lock data communication.

[0007] In an optional embodiment, in response to the instruction level information sent by the mobile terminal indicating that the instruction level is a preset second-level security level, the controller unit identifier is sent to the business server through the mobile terminal, or, in response to the instruction level information sent by the mobile terminal indicating that the instruction level is a preset first-level security level, the controller unit identifier and the encryption unit identifier are sent to the business server through the mobile terminal, and the first-level security level is higher than the second-level security level.

[0008] In the second aspect, the present invention provides a smart lock instruction operation method, which is applied to a business server, and the business server stores a controller unit identifier and a corresponding first public key. The method includes: in response to the user's operation instruction for the smart lock sent by the mobile terminal, determining the instruction level for the smart lock operation, and sending the instruction level information to the controller unit through the mobile terminal; in response to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypting the instruction data using the first public key, and sending the encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit sends the encrypted instruction data and the first decryption serial number corresponding to the controller unit identifier to the encryption unit for decryption, and performs the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is the first decryption serial number parsed by the encryption unit, and the encrypted instruction data is encrypted using the first private key. The instruction data is obtained by decrypting the instruction data, or, in response to the controller unit identifier and the encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, the instruction data is encrypted once using the first public key, and the security server is controlled to use the second public key to perform a second encryption on the once encrypted instruction data, and the second encrypted instruction data is sent to the controller unit through the mobile terminal, so that the controller unit sends the second encrypted instruction data and the first decryption serial number corresponding to the controller unit identifier and the second decryption serial number corresponding to the encryption unit identifier to the encryption unit for decryption, and performs the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is obtained by parsing the first decryption serial number and the second decryption serial number by the encryption unit, and decrypting the second encrypted instruction data using the first private key and the second private key, and the security server stores the encryption unit identifier and the corresponding second public key.

[0009] In an optional embodiment, the control security server uses a second public key to perform a second encryption on the instruction data that has been encrypted once, including: sending the encryption unit identifier and the instruction data that has been encrypted once to the security server, so that the security server uses the encryption unit identifier corresponding to the second public key to perform a second encryption on the instruction data that has been encrypted once, and sends the second encrypted instruction data to the business server.

[0010] In the third aspect, the present invention provides a smart lock instruction operation method, which is applied to a security server, and the security server stores an encryption unit identifier and a corresponding second public key. The method includes: in response to the encryption unit identifier and the once-encrypted instruction data sent by the business server, using the encryption unit identifier corresponding to the second public key to perform a second encryption on the once-encrypted instruction data, and sending the second-encrypted instruction data to the business server, so that the business server sends the second-encrypted instruction data to the controller unit via a mobile terminal, the controller unit sends the second-encrypted instruction data and the first decryption number corresponding to the controller unit identifier and the second decryption number corresponding to the encryption unit identifier to the encryption unit for decryption, and performs the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is obtained by parsing the first decryption number and the second decryption number by the encryption unit, and decrypting the second-encrypted instruction data using the first private key and the second private key.

[0011] In a fourth aspect, the present invention provides a smart lock instruction operating system, the system comprising: a controller unit, a mobile terminal, an encryption unit, a business server and a security server, the encryption unit is used to generate a key pair, and stores a first private key corresponding to a first decryption sequence number and a second private key corresponding to a second decryption sequence number, the business server stores a controller unit identifier and a corresponding first public key, the security server stores an encryption unit identifier and a corresponding second public key, the controller unit stores a first decryption sequence number corresponding to the controller unit identifier and a second decryption sequence number corresponding to the encryption unit, the first private key and the first public key are a key pair, the second private key and the second public key are a key pair, wherein the mobile terminal responds to the user's operation instruction for the smart lock, sends the operation instruction to the business server, and the business server determines the instruction level for the smart lock operation and sends it to the controller unit through the mobile terminal; the controller unit responds to the instruction level information sent by the mobile terminal, and based on the instruction level information, sends the controller unit identifier, or sends the controller unit identifier and the encryption unit identifier to the business server through the mobile terminal; the business server responds to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, using the first public key. The controller unit encrypts the instruction data using a first public key, and sends the encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit performs the corresponding instruction operation based on the encrypted instruction data, or, in response to the controller unit identifier and the encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypts the instruction data once using a first public key, and controls the security server to perform secondary encryption on the once encrypted instruction data using a second public key, and sends the secondary encrypted instruction data to the controller unit through the mobile terminal; the controller unit responds to the encrypted instruction data sent by the business server through the mobile terminal, and sends the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier, or the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier to the encryption unit; the encryption unit parses the first decryption sequence number, or parses the first decryption sequence number and the second decryption sequence number, decrypts the encrypted instruction data using the first private key, or the first private key and the second private key, and sends the decrypted instruction data to the controller unit; the controller unit performs the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit.

[0012] The smart lock command operating system provided by the present invention is designed to store a controller unit identifier and a corresponding first public key in a business server, and a security server stores a second public key corresponding to the encryption unit identifier. The first private key and the second private key are stored in the encryption unit, and the keys are distributedly managed, and the smart lock service is divided into primary or secondary security levels. The primary security level service has a high degree of security, a long data link, and a long execution time, and security can be guaranteed first. The secondary security level service is fast and convenient, and instructions can be issued quickly with certain confidentiality measures. Even if the public key is leaked, it only affects the regular functions of the secondary security level service, and the important functions of the door lock will not be attacked, which greatly improves the security of the door lock data communication.

[0013] In an optional implementation, the second private key and the second public key are generated by an encryption unit during the production phase of the smart lock, the second private key is stored in the encryption unit, and the second private key is stored in a security server.

[0014] In the present invention, during the production stage of the smart lock, the encryption unit generates a key pair in advance, and stores the second private key in the encryption unit in advance, and stores the encryption unit identifier and the second public key together in advance in the security server. There is no key air communication, and it has a high security level, which can be used to perform encryption and decryption of first-level security level services.

[0015] In an optional embodiment, the first private key and the first public key are generated by the encryption unit when the user registers and binds the smart lock, and the first private key is stored in the encryption unit, and the first public key is stored in the business server through the controller unit and the mobile terminal transmission; if it is detected that the first public key is leaked, the controller unit re-registers and binds, and the encryption unit generates a new first private key and a new first public key, and the new first private key is updated and stored in the encryption unit, and the new first public key is sent to the business server through the controller unit and the mobile terminal transmission for update and storage.

[0016] The first private key and the first public key of the embodiment of the present invention are randomly generated when the user registers and binds the smart lock, and the first public key is stored in the business server. It has basic encryption functions and ensures data security during use. The corresponding first public key is retrieved through the controller unit identifier to perform encryption services.

[0017] In a fifth aspect, the present invention provides a smart lock, which includes a controller unit and an encryption unit. The controller unit includes a memory and a processor. The memory and the processor are communicatively connected to each other. Computer instructions are stored in the memory. The processor executes the smart lock instruction operation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0018] In a sixth aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the computer instructions to thereby execute the smart lock instruction operation method of the second aspect or any corresponding embodiment thereof, or execute the smart lock instruction operation method of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0020] Figure 1 is a structural block diagram of a smart lock instruction operating system according to an embodiment of the present invention;

[0021] Figure 2 is a diagram showing an example structure of a smart lock instruction operating system according to an embodiment of the present invention;

[0022] Figure 3 is an example flow chart of the smart lock command operation corresponding to the second level security level according to an embodiment of the present invention;

[0023] Figure 4 is an example flow chart of the smart lock instruction operation corresponding to the first-level security level according to an embodiment of the present invention;

[0024] Figure 5 is an interactive schematic diagram of a smart lock instruction operating system according to an embodiment of the present invention;

[0025] Figure 6 is a structural block diagram of a smart lock according to an embodiment of the present invention;

[0026] Figure 7 is a structural block diagram of a smart lock instruction operation device according to an embodiment of the present invention;

[0027] Figure 8 is a structural block diagram of another smart lock instruction operation device according to an embodiment of the present invention;

[0028] Fig. 9 is a structural block diagram of another smart lock command operation device according to an embodiment of the present invention;

[0029] Fig.10 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0030] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0031] An embodiment of the present invention provides a smart lock instruction operating system, wherein, Figure 1 As shown, the smart lock instruction operating system includes a controller unit 1, a mobile terminal 2, an encryption unit 3, a business server 4 and a security server 5, wherein the smart lock includes an encryption unit and a controller unit, the encryption unit can be an encryption chip in the smart lock, which can be used as a slave device of an integrated circuit bus (Inter-Integrated Circuit, IIC) to communicate with the controller unit as an IIC master device, the encryption unit has a key security storage function and a key pair generation function, which is used to generate a key pair based on business needs and store the private key in the key pair, the private key cannot be read out after being stored in the encryption unit, and can only be accessed through the decryption sequence number corresponding to the private key, so that the encryption unit uses the private key to decrypt the encrypted data, the encryption unit identifier can be a name or number created by a user or manufacturer for the encryption unit, or it can be a corresponding unique identification code (Universally Unique Identifier, UUID1), just as an example, Figure 2 As shown, the encryption unit in the embodiment of the present invention can generate key pairs for the business server and the security server respectively, such as generating KEY1 and KEY1_P key pairs for the business server, wherein KEY1 is the first private key, which is stored in the encryption unit, and the corresponding decryption serial number may be S1, and KEY1_P is the first public key, which can be stored together with the controller unit identifier UUID2 in the business server; the encryption unit can generate KEY2 and KEY2_P key pairs for the security server, wherein KEY2 is the second private key, which is stored in the encryption unit, and the corresponding decryption serial number may be S2, and KEY2_P is the second public key, which can be stored together with the UUID1 of the encryption unit in the security server, just as an example.

[0032] The controller unit of the smart lock is used to execute business processes such as opening and closing the smart lock and user management, and has communication functions. When the controller unit is a Bluetooth chip, it has a corresponding Bluetooth communication function. As an example only, the controller unit can store its corresponding unique identification code UUID2 as the controller unit identifier, which cannot be changed. It can also store the first decryption number S1 corresponding to the controller unit identifier and the second decryption number S2 corresponding to the encryption unit identifier. Subsequently, based on the controller unit identifier and / or encryption unit identifier sent to the business server, the encrypted instruction data and the first decryption number S1 corresponding to the controller unit identifier and / or the second decryption number S2 corresponding to the encryption unit can be sent to the encryption unit, so that the encryption unit can decrypt based on the decryption number using the corresponding public key. This is an example only.

[0033] The mobile terminal can be a mobile phone APP terminal or a smart lock operation terminal. As a user operation terminal, it can perform human-computer interaction functions such as user management, mobile phone door opening, function setting, and door lock event reception. As a communication hub, the controller unit can send identification and other data to the business server through the mobile terminal, and the business server can send the encrypted command data to the controller unit through the mobile terminal. This is just an example. The mobile terminal only acts as a carrier of the human-computer interaction interface and message forwarding in the business process, and there is no substantial security risk.

[0034] Specifically, the second private key and the second public key are generated by the encryption unit during the production stage of the smart lock, the second private key is stored in the encryption unit, and the second public key is stored in the security server.

[0035] In the embodiment of the present invention, a key pair can be generated in advance by the encryption unit during the production stage of the smart lock, and the second private key can be stored in the encryption unit in advance, and the encryption unit identifier and the second public key can be stored in advance in the security server. There is one corresponding key pair for one encryption unit, and the key cannot be obtained. There is no key communication in the air. It can only be encrypted by the encryption unit identifier and decrypted by the S2 decryption sequence number. It has a high security level and can be used to perform encryption and decryption of first-level security level services.

[0036] Specifically, the first private key and the first public key are generated by the encryption unit when the user registers and binds the smart lock. The first private key is stored in the encryption unit, and the first public key is stored in the business server through the controller unit and the mobile terminal. If it is detected that the first public key has been leaked, the controller unit re-registers and binds, and the encryption unit generates a new first private key and a new first public key. The new first private key is updated and stored in the encryption unit, and the new first public key is sent to the business server through the controller unit and the mobile terminal for update and storage.

[0037] The first private key and the first public key of the embodiment of the present invention are randomly generated when the user registers and binds the smart lock, and the first public key is stored in the business server. It has basic encryption functions and ensures data security during use. The corresponding first public key is retrieved through the controller unit identifier to perform encryption services.

[0038] If it is detected that the first public key is leaked during the transmission process, such as being leaked by a third-party Bluetooth tool through malicious packet capture, a new first private key and first public key can be randomly generated again when the controller unit is re-registered and bound, and the new first private key is updated and stored in the encryption unit. The new first public key is sent to the business server through the controller unit and the mobile terminal for update and storage, as an example only.

[0039] Specifically, the mobile terminal responds to the user's operation instruction for the smart lock, and sends the operation instruction to the business server. The business server determines the instruction level for the smart lock operation and sends it to the controller unit through the mobile terminal; the controller unit responds to the instruction level information sent by the mobile terminal, and based on the instruction level information, sends the controller unit identifier, or sends the controller unit identifier and the encryption unit identifier to the business server through the mobile terminal; the business server responds to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypts the instruction data using the first public key, and sends the encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit performs the corresponding instruction operation based on the encrypted instruction data, or responds to the controller unit identifier and the encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal. The command data is encrypted once by using a first public key, and the security server is controlled to perform a second encryption on the once encrypted command data by using a second public key, and the second encrypted command data is sent to the controller unit through the mobile terminal; the controller unit responds to the encrypted command data sent by the business server through the mobile terminal, and sends the encrypted command data and the first decryption serial number corresponding to the controller unit identifier, or the encrypted command data and the first decryption serial number corresponding to the controller unit identifier and the second decryption serial number corresponding to the encryption unit identifier to the encryption unit; the encryption unit parses the first decryption serial number, or the first decryption serial number and the second decryption serial number, decrypts the encrypted command data by using a first private key, or the first private key and the second private key, and sends the decrypted command data to the controller unit; the controller unit executes the corresponding command operation based on the decrypted command data sent by the encryption unit.

[0040] The mobile terminal of the embodiment of the present invention pre-stores a database in which different operating instructions correspond to different security levels. For example, after the mobile terminal responds to the user's operating instructions for the smart lock, it can determine the security level or category of the instructions for operating the smart lock, and send the determined security level or category to the business server. The business server can then set the security level higher than the level division threshold as a high security level based on a preset level division threshold, and then send the high security level information to the controller unit, and the controller unit sends the controller unit identifier and the encryption unit identifier to the business server through the mobile terminal. The business server sets the security level lower than the level division threshold as a low security level, and then sends the low security level information to the controller unit, and the controller unit sends the controller unit identifier to the business server through the mobile terminal. This is just an example.

[0041] Specifically, when the controller unit responds to the instruction level information sent by the mobile terminal that the instruction level is a preset second-level security level, the controller unit can send the controller unit identifier to the business server through the mobile terminal, or, in response to the instruction level information sent by the mobile terminal that the instruction level is a preset first-level security level, the controller unit identifier and the encryption unit identifier are sent to the business server through the mobile terminal, and the first-level security level is higher than the second-level security level.

[0042] After the mobile terminal of an embodiment of the present invention responds to the user's operation instruction to the smart lock, it can send the category of the operation instruction to the business server. The business server can pre-classify each operation instruction category into a first-level security level or a second-level security level. For example, operations such as volume adjustment, alarm setting, and mode setting can correspond to second-level security level instructions, and operations such as user management and opening the door with a mobile phone can correspond to first-level security level services. The first-level security level is higher than the second-level security level. The business server determines the instruction level information based on the operation instruction sent by the mobile terminal, and sends the determined instruction level information to the controller unit through the mobile terminal.

[0043] The controller unit can collect corresponding identification based on the instruction level information, for example, responding to the instruction level information as the second level security level, such as Figure 3As shown, the controller unit can directly send its own controller unit identifier UUID2 to the business server through the mobile terminal via Bluetooth communication. The business server encrypts the instruction data based on the first public key KEY1_P corresponding to UUID2 to obtain the encrypted instruction data ENC (KEY1_P+DATA), and sends the encrypted instruction data to the controller unit through the mobile terminal. The controller unit sends the corresponding first decryption serial number S1 and the encrypted instruction data ENC (KEY1_P+DATA) to the encryption unit based on the controller unit identifier sent to the business server. The encryption unit parses the first decryption serial number, decrypts the encrypted instruction data using the first private key KEY1 corresponding to the first decryption serial number, obtains the decrypted instruction data DEC (DATA), and sends the decrypted instruction data to the controller unit. The controller unit executes the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit. This is just an example.

[0044] like Figure 4 As shown, if the controller unit responds to the instruction level information as the first security level, the controller unit can obtain the encryption unit identification UUID1, and send UUID1 and its own identification UUID2 to the business server via Bluetooth through the mobile terminal. The business server retrieves the corresponding first public key KEY1_P based on the controller unit identification, and can use the first public key to encrypt the instruction data once. After the encryption is completed once, the business server can also determine whether there is an encryption unit identification in the identification information sent by the controller unit. If there is an encryption unit identification, the security server can be controlled to perform a second encryption on the once encrypted instruction data based on the second public key corresponding to the encryption unit identification. The specific method of controlling the security server is not limited. The encryption instruction can be sent directly to the security server, and the security server can perform a second encryption on the once encrypted instruction data based on the encryption instruction. This is just an example.

[0045] Specifically, the control security server uses the second public key to perform a second encryption on the instruction data that has been encrypted once, including: sending the encryption unit identifier and the instruction data that has been encrypted once to the security server, so that the security server uses the encryption unit identifier corresponding to the second public key to perform a second encryption on the instruction data that has been encrypted once, and sends the second encrypted instruction data to the business server.

[0046] like Figure 4As shown, the business server of the embodiment of the present invention can package the encryption unit identifier UUID1 and the once encrypted instruction data ENC (KEY1_P, DATA) together and send them to the security server. After the security server responds to the UUID1 identifier, it can retrieve the second public key KEY2_P based on UUID1, and can use the second public key to perform a second encryption on the once encrypted instruction data to obtain the second encrypted instruction data ENC (KEY2_P, ENC (KEY1_P, DATA)), and can feed back the second encrypted instruction data to the business server, and the business server can transmit the second encrypted instruction data to the controller unit through the mobile terminal. The controller unit may package the first decryption number S1 corresponding to the controller unit identifier and the second decryption number S2 corresponding to the encryption unit identifier with the twice-encrypted data and send them to the encryption unit. The encryption unit may first parse the second decryption number, use the second private key corresponding to the second decryption number to decrypt the twice-encrypted data once, and then parse the first decryption number, use the first private key corresponding to the first decryption number to decrypt the data twice, and then obtain the decrypted instruction data DEC (DATA), and send the decrypted instruction data to the controller unit. The controller unit executes the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit. This is only an example and is not limited to this.

[0047] The smart lock command operating system provided by the present invention is designed to store a controller unit identifier and a corresponding first public key in a business server, and a security server stores a second public key corresponding to the encryption unit identifier. The first private key and the second private key are stored in the encryption unit, and the keys are distributedly managed, and the smart lock service is divided into primary or secondary security levels. The primary security level service has a high degree of security, a long data link, and a long execution time, and security can be guaranteed first. The secondary security level service is fast and convenient, and instructions can be issued quickly with certain confidentiality measures. Even if the public key is leaked, it only affects the regular functions of the secondary security level service, and the important functions of the door lock will not be attacked, which greatly improves the security of the door lock data communication.

[0048] The embodiment of the present invention also provides a smart lock instruction operation method, which is applied to Figure 1 The controller unit, business server and security server shown in FIG. Figure 5 As shown, the controller unit 1 is used to execute steps S101 to S103, the service server 4 is used to execute steps S201 to S202, the security server 5 is used to execute step S301, and the encryption unit 3 is used to execute step S401.

[0049] Step S101, in response to the instruction level information sent by the mobile terminal, the controller unit identifier is sent to the business server based on the instruction level information, or the controller unit identifier and the encryption unit identifier are sent to the business server through the mobile terminal, wherein the instruction level information is the mobile terminal's response to the user's operation instruction for the smart lock, and the operation instruction is sent to the business server, and the business server determines the instruction level for the smart lock operation and then sends it through the mobile terminal.

[0050] Step S201, in response to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, the instruction data is encrypted using the first public key, or, in response to the controller unit identifier and encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, the instruction data is encrypted once using the first public key, and the encrypted instruction data and encryption unit identifier are sent to the security server.

[0051] Step S301: re-encrypt the once-encrypted instruction data using the second public key corresponding to the encryption unit, and send the re-encrypted instruction data to the service server.

[0052] Step S202, sending the encrypted instruction data to the controller unit through the mobile terminal, or sending the twice-encrypted instruction data to the controller unit through the mobile terminal.

[0053] Step S102, in response to the encrypted instruction data sent by the business server through the mobile terminal, the encrypted instruction data and the first decryption number corresponding to the controller unit identifier, or the encrypted instruction data and the first decryption number corresponding to the controller unit identifier and the second decryption number corresponding to the encryption unit identifier are sent to the encryption unit.

[0054] Step S401, parse the first decryption serial number, or parse the first decryption serial number and the second decryption serial number, use the first private key, or use the first private key and the second private key to decrypt the encrypted instruction data, and send the decrypted instruction data to the controller unit.

[0055] Step S103: executing a corresponding instruction operation based on the decrypted instruction data.

[0056] The business server of the embodiment of the present invention can pre-classify each operation instruction into the first-level security level or the second-level security level. After the mobile terminal responds to the user's operation instruction to the smart lock, the mobile terminal sends the operation instruction to the business server. The business server determines the instruction level based on the operation instruction, and sends the instruction level information to the controller unit through the mobile terminal. If the controller unit receives the first-level security level information sent by the mobile terminal, the controller unit identifier and the encryption unit identifier can be sent to the business server through the mobile terminal. If the controller unit receives the second-level level information sent by the mobile terminal, the controller unit identifier can be sent to the business server through the mobile terminal. This is just an example.

[0057] The controller unit can collect corresponding identifiers based on the instruction level information. For example, in response to the instruction level information being a second-level security level, the controller unit can directly send its own UUID2 identifier to the business server via the mobile terminal via Bluetooth communication. The business server encrypts the instruction data based on the first public key KEY1_P corresponding to UUID2 to obtain encrypted instruction data ENC (KEY1_P+DATA), and sends the encrypted instruction data to the controller unit via the mobile terminal. The controller unit sends the corresponding first decryption serial number S1 and the encrypted instruction data ENC (KEY1_P+DATA) to the encryption unit based on the controller unit identifier sent to the business server. The encryption unit parses the first decryption serial number, and uses the first private key KEY1 corresponding to the first decryption serial number to decrypt the encrypted instruction data to obtain decrypted instruction data DEC (DATA), and sends the decrypted instruction data to the controller unit. The controller unit executes the corresponding instruction operation based on the decrypted instruction data, as an example only.

[0058] If the controller unit responds to the instruction level information as the first security level, the controller unit can obtain the encryption unit identifier UUID1, and send UUID1 and its own identifier UUID2 to the business server via Bluetooth through the mobile terminal. The business server retrieves the corresponding first public key KEY1_P based on the controller unit identifier, and can use the first public key to encrypt the instruction data once. After the encryption is completed, the business server can also determine whether there is an encryption unit identifier in the identification information sent by the controller unit. If there is an encryption unit identifier, the business server can package the encryption unit identifier UUID1 and the once encrypted instruction data ENC (KEY1_P, DATA) together and send them to the security server. After the security server responds to the UUID1 identifier, it can retrieve the second public key KEY2_P based on UUID1, and can use the second public key to perform a second encryption on the once encrypted instruction data to obtain the second encrypted instruction data ENC (KEY1_P, DATA). 2_P,ENC(KEY1_P,DATA)), and the twice-encrypted instruction data can be fed back to the business server, and the business server can transmit the twice-encrypted instruction data to the controller unit through the mobile terminal, and the controller unit can package the first decryption serial number S1 corresponding to the controller unit identifier and the second decryption serial number S2 corresponding to the encryption unit identifier with the twice-encrypted data and send them to the encryption unit, the encryption unit can first parse the second decryption serial number, use the second private key corresponding to the second decryption serial number to decrypt the twice-encrypted data once, and then parse the first decryption serial number, use the first private key corresponding to the first decryption serial number to decrypt the data twice, and then obtain the decrypted instruction data DEC (DATA), and send the decrypted instruction data to the controller unit, the controller unit performs the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, which is only used as an example and is not limited. For detailed description, please refer to the above embodiment, which will not be repeated here.

[0059] The embodiment of the present invention also provides a smart lock, such as Figure 6 As shown, the smart lock includes a controller unit and an encryption unit, wherein the controller unit includes a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the smart lock instruction operation method described in the above embodiment by executing the computer instructions. For detailed description, please refer to the above embodiment, which will not be repeated here.

[0060] In this embodiment, a smart lock instruction operation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0061] This embodiment provides a smart lock instruction operation device, such as Figure 7 As shown, a controller unit applied to a smart lock, the smart lock at least includes a controller unit and an encryption unit, including: an identification sending module 701, used to respond to the instruction level information sent by the mobile terminal, identify the controller unit based on the instruction level information, or send the controller unit identification and the encryption unit identification to the business server through the mobile terminal, the instruction level information is the mobile terminal responding to the user's operation instruction for the smart lock, sending the operation instruction to the business server, and the business server determines the instruction level for the smart lock operation and then sends it through the mobile terminal; a decryption sequence number sending module 702, used to respond to the encrypted instruction data sent by the business server through the mobile terminal, and send the encrypted instruction data and the controller unit identification to the business server; The first decryption sequence number corresponding to the controller unit identifier, or the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier are sent to the encryption unit for decryption; the instruction operation module 703 is used to perform the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is obtained by parsing the first decryption sequence number by the encryption unit, or parsing the first decryption sequence number and the second decryption sequence number, using the first private key, or using the first private key and the second private key to decrypt the encrypted instruction data, the encryption unit is used to generate a key pair, and stores the first private key corresponding to the first decryption sequence number and the second private key corresponding to the second decryption sequence number.

[0062] In some optional embodiments, in response to the instruction level information sent by the mobile terminal indicating that the instruction level is a preset second-level security level, the controller unit identifier is sent to the business server through the mobile terminal, or, in response to the instruction level information sent by the mobile terminal indicating that the instruction level is a preset first-level security level, the controller unit identifier and the encryption unit identifier are sent to the business server through the mobile terminal, and the first-level security level is higher than the second-level security level.

[0063] This embodiment provides a smart lock instruction operation device, such as Figure 8As shown, it is applied to a business server, and the business server stores a controller unit identifier and a corresponding first public key, including: an instruction level determination module 801, which responds to the user's operation instruction for the smart lock sent by the mobile terminal, determines the instruction level for the smart lock operation, and sends the instruction level information to the controller unit through the mobile terminal; a first encryption module 802, which is used to respond to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypt the instruction data using the first public key, and send the encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit sends the encrypted instruction data and the first decryption serial number corresponding to the controller unit identifier to the encryption unit for decryption, and executes the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is the first decryption serial number parsed by the encryption unit, and the encrypted instruction data is encrypted using the first private key The decrypted result is obtained, or the control encryption module 803 is used to respond to the controller unit identifier and the encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, use the first public key to encrypt the instruction data once, and control the security server to use the second public key to perform a second encryption on the once encrypted instruction data, and send the second encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit sends the second encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier to the encryption unit for decryption, and execute the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, the decrypted instruction data is the first decryption sequence number and the second decryption sequence number of the encryption unit, and is obtained by decrypting the second encrypted instruction data using the first private key and the second private key, and the security server stores the encryption unit identifier and the corresponding second public key.

[0064] In some optional embodiments, the control encryption module 803 includes: an encryption instruction sending unit, used to send an encryption unit identifier and the once-encrypted instruction data to a security server, so that the security server uses the encryption unit identifier corresponding to the second public key to re-encrypt the once-encrypted instruction data, and sends the re-encrypted instruction data to the business server.

[0065] This embodiment provides a smart lock instruction operation device, such as Fig. 9As shown, it is applied to a security server, and the security server stores an encryption unit identifier and a corresponding second public key, including: a secondary encryption module 901, which is used to respond to the encryption unit identifier and the once-encrypted instruction data sent by the business server, and use the encryption unit identifier corresponding to the second public key to perform secondary encryption on the once-encrypted instruction data, and send the secondary encrypted instruction data to the business server, so that the business server sends the secondary encrypted instruction data to the controller unit through the mobile terminal, and the controller unit sends the secondary encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier to the encryption unit for decryption, and executes the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit, and the decrypted instruction data is obtained by parsing the first decryption sequence number and the second decryption sequence number of the encryption unit, and decrypting the secondary encrypted instruction data using the first private key and the second private key.

[0066] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0067] The smart lock instruction operation device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above-mentioned functions.

[0068] The embodiment of the present invention also provides a computer device having the above Figure 8 or Fig. 9 The smart lock command operating device shown.

[0069] See also Fig.10 , Fig.10 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Fig.10As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Fig.10 A processor 10 is taken as an example.

[0070] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0071] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0072] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0073] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0074] The computer device also includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30 and the output device 40 may be connected via a bus or other means. Fig.10 The example of connecting through bus is taken in the following.

[0075] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0076] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0077] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A smart lock command operation method, characterized in that: A controller unit applied to a smart lock, the smart lock comprising at least a controller unit and an encryption unit, the method comprising: In response to the command level information sent by the mobile terminal, when the command level is a preset second-level security level, the controller unit identifier is sent to the business server, or, in response to the command level information sent by the mobile terminal, when the command level is a preset first-level security level, the controller unit identifier and the encryption unit identifier are sent to the business server through the mobile terminal, the first-level security level is higher than the second-level security level, the command level information is the mobile terminal responding to the user's operation instruction for the smart lock, sending the operation instruction to the business server, and the business server determines the instruction level for the smart lock operation and then sends it to the controller unit through the mobile terminal; In response to the encrypted instruction data sent by the business server through the mobile terminal, when the instruction level is the preset second-level security level, the encrypted instruction data and the first decryption serial number corresponding to the controller unit identifier are sent to the encryption unit for decryption, or when the instruction level is the preset first-level security level, the encrypted instruction data and the first decryption serial number corresponding to the controller unit identifier and the second decryption serial number corresponding to the encryption unit identifier are sent to the encryption unit for decryption, The encrypted instruction data is obtained by encrypting the instruction data using the first public key in response to the controller unit identifier and encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal when the instruction level is the preset second-level security level, or, when the instruction level is the preset first-level security level, the business server responds to the controller unit identifier and encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypts the instruction data once using the first public key, and controls the security server to perform a second encryption on the once-encrypted instruction data, the business server stores the controller unit identifier and the corresponding first public key, and the security server stores the encryption unit identifier and the corresponding second public key; The corresponding instruction operation is performed based on the decrypted instruction data sent by the encryption unit, and the decrypted instruction data is obtained by the encryption unit parsing the first decryption serial number when the instruction level is a preset second-level security level, and using the first private key to decrypt the encrypted instruction data, or by the encryption unit parsing the first decryption serial number and the second decryption serial number when the instruction level is a preset first-level security level, and using the first private key and the second private key to decrypt the encrypted instruction data. The encryption unit is used to generate a key pair and stores a first private key corresponding to the first decryption serial number and a second private key corresponding to the second decryption serial number.

2. A smart lock instruction operating system, characterized in that: The system includes: a controller unit, a mobile terminal, an encryption unit, a business server and a security server, wherein the encryption unit is used to generate a key pair and stores a first private key corresponding to a first decryption sequence number and a second private key corresponding to a second decryption sequence number, the business server stores a controller unit identifier and a corresponding first public key, the security server stores an encryption unit identifier and a corresponding second public key, the controller unit stores a first decryption sequence number corresponding to the controller unit identifier and a second decryption sequence number corresponding to the encryption unit, the first private key and the first public key are a key pair, and the second private key and the second public key are a key pair, wherein, The mobile terminal responds to the user's operation instruction for the smart lock and sends the operation instruction to the service server, which determines the instruction level for the smart lock operation and sends it to the controller unit through the mobile terminal; The controller unit sends the controller unit identifier to the service server in response to the command level information sent by the mobile terminal indicating that the command level is a preset second-level security level, or sends the controller unit identifier and the encryption unit identifier to the service server through the mobile terminal in response to the command level information sent by the mobile terminal indicating that the command level is a preset first-level security level, wherein the first-level security level is higher than the second-level security level; When the instruction level is a preset secondary security level, the business server responds to the controller unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypts the instruction data using the first public key, and sends the encrypted instruction data to the controller unit through the mobile terminal, so that the controller unit performs the corresponding instruction operation based on the encrypted instruction data, or, when the instruction level is a preset primary security level, the business server responds to the controller unit identifier and the encryption unit identifier sent by the controller unit through the mobile terminal and the instruction data generated based on the operation instruction sent by the mobile terminal, encrypts the instruction data once using the first public key, controls the security server to perform secondary encryption on the once-encrypted instruction data using the second public key, and sends the secondary-encrypted instruction data to the controller unit through the mobile terminal; The controller unit responds to the encrypted instruction data sent by the business server through the mobile terminal, and when the instruction level is a preset second-level security level, sends the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier to the encryption unit, or when the instruction level is a preset first-level security level, sends the encrypted instruction data and the first decryption sequence number corresponding to the controller unit identifier and the second decryption sequence number corresponding to the encryption unit identifier to the encryption unit; When the instruction level is a preset second-level security level, the encryption unit parses the first decryption serial number, decrypts the encrypted instruction data using the first private key, and sends the decrypted instruction data to the controller unit, or, when the instruction level is a preset first-level security level, the encryption unit parses the first decryption serial number and the second decryption serial number, decrypts the encrypted instruction data using the first private key and the second private key, and sends the decrypted instruction data to the controller unit; The controller unit executes the corresponding instruction operation based on the decrypted instruction data sent by the encryption unit.

3. The system according to claim 2, characterized in that The second private key and the second public key are generated by the encryption unit during the production stage of the smart lock, the second private key is stored in the encryption unit, and the second public key is stored in the security server.

4. The system according to claim 2, characterized in that The first private key and the first public key are generated by the encryption unit when the user registers and binds the smart lock. The first private key is stored in the encryption unit, and the first public key is transmitted and stored in the business server through the controller unit and the mobile terminal. If it is detected that the first public key is leaked, the controller unit re-registers and binds, and the encryption unit generates a new first private key and a new first public key. The new first private key is updated and stored in the encryption unit, and the new first public key is sent to the business server through the controller unit and the mobile terminal for update and storage.

5. A smart lock, characterized in that: It includes a controller unit and an encryption unit. The controller unit includes a memory and a processor. The memory and the processor are communicatively connected to each other. Computer instructions are stored in the memory. The processor executes the smart lock instruction operation method described in claim 1 by executing the computer instructions.

6. A computer device comprising: The memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the smart lock instruction operation method described in claim 1 above by executing the computer instructions.