Intelligent lock data migration method and device, computer equipment and storage medium

During the process of smart door lock data migration, communication connection between the old smart lock, the target application and the new smart lock is established, and the key and data to be migrated are transmitted separately, the problem of low security in smart door lock data migration is solved, and high-security local data migration is achieved.

CN120050652APending Publication Date: 2025-05-27DESSMANN CHINA MACHINERY & ELECTRONICS +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510080770.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-17
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

The existing smart door lock data migration methods pose a risk of smart door lock data leakage, resulting in low security of data migration.

Method used

By establishing a communication connection between the old smart lock and the target application, upload the key to encrypt the data to be migrated; establishing a pairing connection between the old smart lock and the new smart lock, transmitting the data to be migrated after the key is encrypted to the new smart lock; in response to the transmission of the data to be migrated, the key is sent to the new smart lock through the target application for the new smart lock to decrypt the encrypted data to be migrated.

Benefits of technology

Data migration based on local transmission is realized to avoid data leakage of smart door locks and improve the security of data migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120050652A_ABST
    Figure CN120050652A_ABST
Patent Text Reader

Abstract

The invention relates to an intelligent lock data migration method and device, computer equipment and a storage medium, and the intelligent lock data migration method comprises the steps: building communication connection between an old intelligent lock and a target application program, and uploading a secret key for encrypting to-be-migrated data to the target application program; establishing a pairing connection between the old intelligent lock and the new intelligent lock, and transmitting the to-be-migrated data encrypted by the secret key to the new intelligent lock; and in response to completion of the to-be-migrated data transmission, issuing the key to the new intelligent lock through the target application program, so that the new intelligent lock decrypts the encrypted to-be-migrated data. Through the data migration method and device, the problem that the security of data migration is relatively low due to the risk of data leakage of the intelligent door lock is solved, data migration based on local transmission is realized, data leakage of the intelligent door lock is avoided, and the security of data migration is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technologies, and in particular, to a method, device, computer device, and storage medium for migrating smart lock data. Background Art

[0002] As an important part of the smart home system, the smart door lock combines the physical protection function of the traditional door lock with modern electronic information technology. It can be unlocked in various ways such as password, fingerprint, face recognition, and remote control via an application program, and has the characteristics of convenience, security, and intelligence. In recent years, it has developed rapidly. When a user replaces the old smart door lock with a new one, it is usually necessary to migrate the old door lock data to the new door lock to avoid resetting the unlocking permissions on the new door lock, etc., and to ensure the security, convenience, and efficient management during the door lock replacement.

[0003] In the existing data migration method, the old door lock data is transmitted to the new smart door lock through a third-party platform. However, the smart door lock data includes biometric information such as user fingerprints or faces, and there is a risk of leakage of smart door lock data in the above method, resulting in low security of data migration.

[0004] In view of the problem that there is a risk of leakage of smart door lock data in the related technology, resulting in low security of data migration, no effective solution has been proposed yet. Summary of the Invention

[0005] In this embodiment, a method, device, computer device, and storage medium for migrating smart lock data are provided to solve the problem that there is a risk of leakage of smart door lock data in the related technology, resulting in low security of data migration.

[0006] In a first aspect, in this embodiment, a method for migrating smart lock data is provided, and the method includes:

[0007] Establish a communication connection between the old smart lock and the target application program, and upload the key for encrypting the data to be migrated to the target application program;

[0008] Establish a pairing connection between the old smart lock and the new smart lock, and transmit the data to be migrated encrypted with the key to the new smart lock;

[0009] In response to the completion of the transmission of the data to be migrated, the key is sent to the new smart lock through the target application program for the new smart lock to decrypt the encrypted data to be migrated.

[0010] In some of these embodiments, the uploading the key for encrypting the data to be migrated to the target application program includes:

[0011] Generate a data migration instruction for the old smart lock in response to the communication connection between the old smart lock and the target application;

[0012] Send the data migration instruction to the old smart lock; the data migration instruction is used to instruct the old smart lock to generate the key for encrypting the data to be migrated;

[0013] Upload the key to the target application.

[0014] In some embodiments, the establishing the pairing connection between the old smart lock and the new smart lock includes:

[0015] In response to the completion of the key upload, control the old smart lock to enter the data migration mode;

[0016] In the data migration mode, search for the new smart lock that matches the old smart lock based on the target pairing number;

[0017] Pair the matching new smart lock with the old smart lock.

[0018] In some embodiments, the searching for the new smart lock that matches the old smart lock based on the target pairing number includes:

[0019] Control the old smart lock to enter the main mode; the main mode is used to instruct the old smart lock to search for the new smart lock in the pairing connection mode;

[0020] Perform handshake communication between the new smart lock in the pairing connection mode and the old smart lock;

[0021] When it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, determine that the new smart lock matches the old smart lock.

[0022] In some embodiments, the determining that the new smart lock matches the old smart lock when it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock includes:

[0023] Display the target pairing number generated by the old smart lock in the first display area;

[0024] When the pairing number displayed by the new smart lock in the second display area is the same as the target pairing number in the first display area, determine that the new smart lock matches the old smart lock; the display area is the numeric keypad area of the smart lock.

[0025] In some of these embodiments, transmitting the data to be migrated after encrypting the key to the new smart lock includes:

[0026] Determine the distance information between the old smart lock and the new smart lock;

[0027] Determine the target transmission power of the old smart lock according to the distance information;

[0028] Transmit the data to be migrated after encrypting the key to the new smart lock at the target transmission power.

[0029] In some of these embodiments, in response to the completion of the transmission of the data to be migrated, sending the key to the new smart lock through the target application includes:

[0030] In response to the completion of the transmission of the data to be migrated, send the binding information of the new smart lock to the old smart lock;

[0031] Upload the binding information to the target application for the target application to bind to the new smart lock;

[0032] In response to the completion of the binding between the target application and the new smart lock, send the key to the new smart lock through the target application.

[0033] In a second aspect, in this embodiment, a smart lock data migration device is provided, and the device includes:

[0034] An upload module, configured to establish a communication connection between the old smart lock and the target application, and upload the key used to encrypt the data to be migrated to the target application;

[0035] A migration module, configured to establish a pairing connection between the old smart lock and the new smart lock, and transmit the data to be migrated after encrypting the key to the new smart lock;

[0036] A decryption module, configured to, in response to the completion of the transmission of the data to be migrated, send the key to the new smart lock through the target application for the new smart lock to decrypt the encrypted data to be migrated.

[0037] In a third aspect, in this embodiment, a computer device is provided, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, it implements the smart lock data migration method described in the first aspect above.

[0038] Fourthly, in this embodiment, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the intelligent lock data migration method described in the first aspect above is implemented.

[0039] Compared with the related art, the intelligent lock data migration method, device, computer device and storage medium provided in this embodiment establish a communication connection between the old intelligent lock and the target application program, upload the key for encrypting the data to be migrated to the target application program; establish a pairing connection between the old intelligent lock and the new intelligent lock, and transmit the data to be migrated encrypted by the key to the new intelligent lock; in response to the completion of the transmission of the data to be migrated, the key is sent to the new intelligent lock through the target application program for the new intelligent lock to decrypt the encrypted data to be migrated, solving the problem of the risk of intelligent door lock data leakage and low security of data migration, realizing data migration based on local transmission, avoiding intelligent door lock data leakage, and improving the security of data migration.

[0040] Details of one or more embodiments of the present application are set forth in the following drawings and description to make other features, objects, and advantages of the present application more concise and understandable. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application, and constitute a part of the present application. The illustrative embodiments and descriptions thereof of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the drawings:

[0042] Figure 1 is a hardware structure block diagram of a terminal device for the intelligent lock data migration method provided in an embodiment of the present application;

[0043] Figure 2 is a flowchart of the intelligent lock data migration method provided in an embodiment of the present application;

[0044] Figure 3 is a schematic diagram of data transmission provided in an embodiment of the present application;

[0045] Figure 4 is a flowchart of the key upload method provided in an embodiment of the present application;

[0046] Figure 5 is a flowchart of the intelligent lock data migration method provided in a preferred embodiment of the present application;

[0047] Figure 6 is a structure block diagram of the intelligent lock data migration device provided in an embodiment of the present application.

[0048] In the figure: 102, a processor; 104, a memory; 106, a transmission device; 108, an input / output device; 10, an upload module; 20, a migration module; 30, a decryption module. Detailed implementation manners

[0049] To more clearly understand the purpose, technical solution, and advantages of the present application, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments.

[0050] Unless otherwise defined, the technical terms or scientific terms involved in the present application shall have the general meanings understood by those with ordinary skills in the technical field to which the present application belongs. In the present application, words such as "a", "one", "a kind of", "the", "these", etc. do not indicate a limitation in quantity, and they can be singular or plural. The terms "including", "comprising", "having" and any variants thereof involved in the present application are intended to cover non-exclusive inclusion; for example, a process, method, system, product or device including a series of steps or modules (units) is not limited to the listed steps or modules (units), but may include unlisted steps or modules (units), or may include other steps or modules (units) inherent in these processes, methods, products or devices. The terms "connected", "coupled", etc. involved in the present application do not limit to physical or mechanical connections, but may include electrical connections, whether directly or indirectly connected. The "multiple" involved in the present application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships can exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, and B exists alone. Usually, the character " / " indicates that the objects associated before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in the present application only distinguish similar objects and do not represent a specific sorting for the objects.

[0051] The method embodiment provided in this embodiment can be executed on a terminal, a computer, or a similar computing device. For example, running on a terminal, Figure 1 is the hardware structure block diagram of the terminal of the intelligent lock data migration method in this embodiment. As Figure 1 shown, the terminal may include one or more ( Figure 1 only one is shown in Figure 1 the figure) processors 102 and a memory 104 for storing data. Among them, the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a field programmable gate array FPGA. The above terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those of ordinary skill in the art can understand that Figure 1 the structure shown is only schematic and does not limit the structure of the above terminal. For example, the terminal may further include moreFigure 1 more or fewer components as shown, or having a different configuration from that Figure 1 shown.

[0052] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the intelligent lock data migration method in this embodiment. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, implements the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memories. In some instances, the memory 104 may further include a memory remotely provided with respect to the processor 102, and these remote memories can be connected to the terminal through a network. Examples of the above network include but are not limited to the Internet, enterprise intranet, local area network, mobile communication network, and combinations thereof.

[0053] The transmission device 106 is used to receive or send data via a network. The above network includes a wireless network provided by a communication provider of the terminal. In one instance, the transmission device 106 includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus can communicate with the Internet. In one instance, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0054] In this embodiment, an intelligent lock data migration method is provided. Figure 2 is a flowchart of the intelligent lock data migration method in this embodiment, as Figure 2 shown, and the process includes the following steps:

[0055] Step S210, establish a communication connection between the old intelligent lock and the target application program, and upload the key for encrypting the data to be migrated to the target application program;

[0056] Step S220, establish a pairing connection between the old intelligent lock and the new intelligent lock, and transmit the data to be migrated encrypted with the key to the new intelligent lock;

[0057] Step S230, in response to the completion of the transmission of the data to be migrated, send the key to the new intelligent lock through the target application program for the new intelligent lock to decrypt the encrypted data to be migrated.

[0058] Specifically, select smart lock data migration in the target application, select the corresponding old smart lock, and establish a communication connection between the old smart lock and the target application. The connection methods include but are not limited to Bluetooth, wireless communication (Wi-Fi), and near field communication (NFC) to initiate the data migration process. When the communication connection between the old smart lock and the target application is completed, the target application generates a data migration instruction for the old smart lock and sends the data migration instruction to the old smart lock. In this embodiment, the target application can be an application on platforms such as a computer, a mobile device, or the cloud. As Figure 3 shown, when the old smart lock receives the data migration instruction, it generates a key for encrypting the data to be migrated, uploads the key to the target application, and after the key upload is completed, the old smart lock enters the data migration mode.

[0059] Further, switch the wireless connection of the old smart lock to the master mode, and the old smart lock actively searches for surrounding slave devices to search for a new smart lock in the paired connection mode. At the same time, a target pairing number is randomly generated and displayed in the first display area of the old smart lock. Perform handshake communication between the old smart lock and the new smart lock in the paired connection mode around the old smart lock. The new smart lock will display the pairing number of the old smart lock in its second display area. If the pairing number displayed by the new smart lock is the same as the target pairing number generated by the old smart lock, it indicates that the new smart lock and the old smart lock match, and at this time, a pairing connection is established between the old smart lock and the new smart lock. Among them, the display area can be a preset function area such as the numeric keypad area or the dynamic display screen of the smart lock.

[0060] After the pairing connection between the old smart lock and the new smart lock is successful, determine the distance information between the old smart lock and the new smart lock, and adjust the transmission power of the old smart lock according to the distance information to determine the target transmission power of the old smart lock, reduce the risk of data being sniffed during transmission, and wirelessly transmit the data to be migrated encrypted with the key to the new smart lock at the target transmission power. It can be understood that in actual applications, the old smart lock and the new smart lock can be placed close to each other. By reducing the transmission power of the old smart lock, the risk of transmitted data being captured in the air can be effectively reduced, and then combined with encrypted transmission to improve the security of data transmission. Among them, the data to be migrated includes but is not limited to user information, unlocking record data, and system setting information, such as user permissions, user fingerprints, user face features, timestamp of each unlocking, and unlocking method, etc.

[0061] After that, when the new smart lock receives the encrypted data to be migrated, it stores the encrypted data to be migrated. After the transmission of the data to be migrated is completed, the new smart lock transmits its own binding information to the old smart lock. The binding information is used for the target application to bind to the new smart lock. At the same time, after the transmission of the data to be migrated is completed, the old smart lock switches from the master mode to the slave mode, automatically connects to the target application, and uploads the received binding information to the target application for the target application to bind to the new smart lock, so that the new smart lock is directly bound to the smart lock binding list in the target application. After the target application and the new smart lock are bound, the target application issues the key to the new smart lock. The new smart lock decrypts the encrypted data to be migrated with the received key and applies the decoded data to complete the data migration.

[0062] It should be noted that in this embodiment, the data to be migrated and the key for encrypting the data to be migrated are transmitted separately, and the data to be migrated does not need to be uploaded to a third-party platform, avoiding the leakage of sensitive information such as the user's daily lock opening and closing records and biometric data in the data to be migrated, thereby ensuring the encryption security of the data and effectively implementing the security policy based on localization of sensitive data.

[0063] In the existing data migration method, the data of the old door lock is transmitted to the new smart door lock through a third-party platform. However, the smart door lock data contains biometric information such as the user's fingerprint or face. The above method has the risk of leakage of smart door lock data, resulting in low security of data migration.

[0064] Compared with the prior art, in this application, a communication connection is established between the old smart lock and the target application, and the key for encrypting the data to be migrated is uploaded to the target application; a pairing connection is established between the old smart lock and the new smart lock, and the encrypted data to be migrated is transmitted to the new smart lock; in response to the completion of the transmission of the data to be migrated, the target application issues the key to the new smart lock for the new smart lock to decrypt the encrypted data to be migrated. Based on this, by transmitting the data to be migrated and the key for encrypting the data to be migrated separately and only transmitting the data to be migrated between the old smart lock and the new smart lock, avoiding uploading the data to be migrated to a third-party platform, the problem of low security of data migration caused by the risk of leakage of smart door lock data is solved, realizing data migration based on local transmission, avoiding leakage of smart door lock data, and improving the security of data migration.

[0065] In some of these embodiments, as Figure 4 shown, uploading the key for encrypting the data to be migrated to the target application in step S210 includes the following steps:

[0066] Step S211: Generate a data migration instruction for the old smart lock in response to the communication connection between the old smart lock and the target application;

[0067] Step S212: Send the data migration instruction to the old smart lock; the data migration instruction is used to instruct the old smart lock to generate a key for encrypting the data to be migrated;

[0068] Step S213: Upload the key to the target application.

[0069] Specifically, after the connection between the old smart lock and the target application is completed, generate a data migration instruction for the old smart lock and send the data migration instruction to the old smart lock. When the old smart lock receives the data migration instruction, it generates a key for encrypting the data to be migrated. Among them, the connection methods between the old smart lock and the target application include but are not limited to Bluetooth, wireless communication, and near-field communication.

[0070] Furthermore, upload the key for encrypting the data to be migrated to the target application. It should be noted that the key types include symmetric keys, asymmetric keys, etc., and the key for encrypting the data to be migrated has a time limit and will be automatically destroyed after a preset duration. For example, after 10 minutes of preset, the key will be automatically destroyed.

[0071] Through this embodiment, in response to the communication connection between the old smart lock and the target application, generate a data migration instruction for the old smart lock, send the data migration instruction to the old smart lock to instruct the old smart lock to generate a key for encrypting the data to be migrated, and then upload the key to the target application to achieve the separate transmission of the key and the data to be migrated.

[0072] In some of these embodiments, establishing the pairing connection between the old smart lock and the new smart lock in step S220 includes the following steps:

[0073] Step S221: Control the old smart lock to enter the data migration mode in response to the completion of key upload;

[0074] Step S222: Search for a new smart lock that matches the old smart lock based on the target pairing number in the data migration mode;

[0075] Step S223: Pair and connect the matching new smart lock with the old smart lock.

[0076] Specifically, when the key is uploaded to the target application, the old smart lock enters the data migration mode. In the data migration mode, switch the wireless connection of the old smart lock to the master mode, enable the old smart lock to actively search for peripheral slave devices, and randomly generate a target pairing number in the first display area of the old smart lock for display.

[0077] It can be understood that the new smart lock to be paired and connected will enter the pairing and connection mode to perform handshake communication with the old smart lock. Based on this, the old smart lock searches for new smart locks in the pairing and connection mode in the vicinity, performs handshake communication between the new smart locks in the pairing and connection mode and the old smart lock, and at the same time, the new smart lock will display the pairing number of the old smart lock in its second display area to confirm whether the pairing number displayed by the new smart lock is the same as the target pairing number of the old smart lock. If the pairing number displayed by the new smart lock is the same as the target pairing number of the old smart lock, it indicates that the currently searched new smart lock matches the old smart lock, and the matching new smart lock and old smart lock will be paired and connected.

[0078] It should be noted that in addition to using the pairing number for pairing verification, this embodiment can also adopt methods such as pairing verification based on geographical location information and pairing verification using the unique identifier of the device, which are not limited herein.

[0079] Through this embodiment, in response to the completion of key upload, the old smart lock is controlled to enter the data migration mode. In the data migration mode, a new smart lock matching the old smart lock is searched based on the target pairing number, and the matching new smart lock and old smart lock are paired and connected to achieve accurate pairing of the new and old smart locks.

[0080] In some of these embodiments, searching for a new smart lock matching the old smart lock based on the target pairing number in step S222 includes the following steps:

[0081] Control the old smart lock to enter the master mode; the master mode is used to instruct the old smart lock to search for new smart locks in the pairing and connection mode;

[0082] Perform handshake communication between the new smart lock in the pairing and connection mode and the old smart lock;

[0083] When it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, it is determined that the new smart lock matches the old smart lock.

[0084] Specifically, switch the wireless connection of the old smart lock to the master mode. At this time, the old smart lock actively searches for slave devices in the vicinity to search for new smart locks in the pairing and connection mode, and performs handshake communication between the new smart locks in the pairing and connection mode in the search results and the old smart lock.

[0085] Further, during the search process, the old smart lock displays the randomly generated target pairing number in its first display area. When the new smart lock conducts a handshake communication with the old smart lock, the new smart lock will display the pairing number of the old smart lock in its second display area to confirm whether the pairing number displayed by the new smart lock is the same as the target pairing number generated by the old smart lock. Among them, when the pairing number displayed by the new smart lock is the same as the target pairing number of the old smart lock, it indicates that the currently searched new smart lock matches the old smart lock, and then a pairing connection is established between the new smart lock and the old smart lock. The connection methods include but are not limited to Bluetooth and wireless communication.

[0086] Through this embodiment, the old smart lock is controlled to enter the master mode. The master mode is used to instruct the old smart lock to search for new smart locks in the pairing connection mode, conduct handshake communication between the new smart locks in the pairing connection mode and the old smart lock, and when it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, it is determined that the new smart lock matches the old smart lock, thereby achieving accurate pairing of the new and old smart locks.

[0087] In some of these embodiments, when it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, determining that the new smart lock matches the old smart lock includes the following steps:

[0088] Display the target pairing number generated by the old smart lock in the first display area;

[0089] When the pairing number displayed by the new smart lock in the second display area is the same as the target pairing number in the first display area, determine that the new smart lock matches the old smart lock; the display area is the numeric keypad area of the smart lock.

[0090] Specifically, when the old smart lock actively searches for peripheral slave devices, the randomly generated target pairing number is displayed in the first display area of the old smart lock. When the new smart lock in the pairing connection mode conducts handshake communication with the old smart lock, the new smart lock will display the pairing number of the old smart lock in its second display area for the user to confirm whether the pairing numbers displayed by the new smart lock and the old smart lock are the same. When the pairing numbers displayed by the new smart lock and the old smart lock are the same, it is confirmed that the current new smart lock matches the old smart lock, and then a connection can be made to establish a pairing connection between the new smart lock and the old smart lock.

[0091] It should be noted that the display area of the above smart lock can be set according to actual needs. The display area includes but is not limited to the numeric keypad area, dynamic display screen, or other preset function areas of the smart lock, and is not limited here.

[0092] In this embodiment, the target pairing number generated by the old smart lock is displayed in the first display area. When the pairing number displayed in the second display area of the new smart lock is the same as the target pairing number in the first display area, it is determined that the new smart lock matches the old smart lock, so that the user can quickly verify the pairing situation, which helps the accurate pairing of the old and new smart locks.

[0093] In some of these embodiments, transmitting the data to be migrated after encrypting the key to the new smart lock in step S220 includes the following steps:

[0094] Determine the distance information between the old smart lock and the new smart lock;

[0095] Determine the target transmission power of the old smart lock according to the distance information;

[0096] Transmit the data to be migrated after encrypting the key to the new smart lock at the target transmission power.

[0097] Specifically, determine the distance information between the old smart lock and the new smart lock, adjust the transmission power of the old smart lock according to the distance information to obtain the target transmission power of the old smart lock, and wirelessly transmit the data to be migrated after encrypting the key to the new smart lock at the adjusted target transmission power. Among them, the distance information between the old smart lock and the new smart lock can be located and calculated by the received signal strength indication (RSSI), or the old and new smart locks are connected to the same wireless network, and the distance information between the old smart lock and the new smart lock is calculated by analyzing the signal strengths of the new smart lock and the old smart lock, which is not limited here.

[0098] It should be noted that wireless communication is transmitted through the space field, and there is a risk of being captured in the air during the transmission process. Adjusting the transmission power of the old smart lock according to the distance information between the old and new smart locks is aimed at reducing the target transmission power of the old smart lock when the distance between the old smart lock and the new smart lock is relatively close. Based on this, in practical applications, the old smart lock and the new smart lock for the data to be migrated are placed close to each other, so as to effectively reduce the risk of the transmitted data being captured in the air.

[0099] Through this embodiment, determine the distance information between the old smart lock and the new smart lock, determine the target transmission power of the old smart lock according to the distance information, and transmit the data to be migrated after encrypting the key to the new smart lock at the target transmission power, so as to further improve the security of data transmission.

[0100] In some of these embodiments, in response to the completion of the transmission of the data to be migrated in step S230, sending the key to the new smart lock through the target application program includes the following steps:

[0101] Step S231: In response to the completion of the transmission of the data to be migrated, send the binding information of the new smart lock to the old smart lock;

[0102] Step S232: Upload the binding information to the target application for the target application to bind with the new smart lock;

[0103] Step S233: In response to the completion of the binding between the target application and the new smart lock, send the key to the new smart lock through the target application.

[0104] Specifically, when the transmission of the data to be migrated between the old and new smart locks is completed, send the binding information of the new smart lock to the old smart lock. This binding information is used for the target application to bind with the new smart lock. At the same time, the old smart lock will switch from the main mode to the slave mode and automatically connect to the target application.

[0105] Furthermore, upload the received binding information to the target application for the target application to bind with the new smart lock. According to the binding information, directly add the new smart lock to the smart lock binding list in the target application to complete the binding of the new lock. After the binding between the target application and the new smart lock is completed, send the key to the new smart lock through the target application. The new smart lock decrypts the encrypted data to be migrated with the received key and applies the decoded data to complete the data migration, ensuring security, convenience, and efficient management when replacing the door lock.

[0106] Through this embodiment, in response to the completion of the transmission of the data to be migrated, send the binding information of the new smart lock to the old smart lock and upload the binding information to the target application for the target application to bind with the new smart lock. In response to the completion of the binding between the target application and the new smart lock, send the key to the new smart lock through the target application, thereby realizing the separate transmission of the data to be migrated and the key used to encrypt the data to be migrated, ensuring the encryption security of the data.

[0107] The following describes and illustrates this embodiment through preferred embodiments.

[0108] Figure 5 is the flowchart of the smart lock data migration method of this preferred embodiment. As Figure 5 shown, the smart lock data migration method includes the following steps:

[0109] Step S510: In response to the communication connection between the old smart lock and the target application, generate a data migration instruction for the old smart lock;

[0110] Step S520: Send the data migration instruction to the old smart lock. The data migration instruction is used to instruct the old smart lock to generate a key for encrypting the data to be migrated and upload the key to the target application;

[0111] Step S530, in response to the completion of the key upload, control the old smart lock to enter the data migration mode, and when paired and connected with the new smart lock, switch the wireless connection of the old smart lock to the master mode; the master mode is used to instruct the old smart lock to search for the new smart lock in the paired connection mode.

[0112] Step S540, perform handshake communication between the new smart lock in the paired connection mode and the old smart lock. When it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, it is determined that the new smart lock and the old smart lock match.

[0113] Step S550, transmit the data to be migrated encrypted with the key to the matching new smart lock, and in response to the completion of the transmission of the data to be migrated, issue the key to the new smart lock through the target application program for the new smart lock to decrypt the encrypted data to be migrated.

[0114] Through this embodiment, in response to the communication connection between the old smart lock and the target application program, a data migration instruction for the old smart lock is generated and issued to the old smart lock. The data migration instruction is used to instruct the old smart lock to generate a key for encrypting the data to be migrated and upload the key to the target application program.

[0115] Furthermore, in response to the completion of the key upload, control the old smart lock to enter the data migration mode. When paired and connected with the new smart lock, switch the wireless connection of the old smart lock to the master mode. The master mode is used to instruct the old smart lock to search for the new smart lock in the paired connection mode. Perform handshake communication between the new smart lock in the paired connection mode and the old smart lock. When it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, it is determined that the new smart lock and the old smart lock match. Transmit the data to be migrated encrypted with the key to the matching new smart lock, and in response to the completion of the transmission of the data to be migrated, issue the key to the new smart lock through the target application program for the new smart lock to decrypt the encrypted data to be migrated. This solves the problem of the risk of data leakage of the smart door lock, resulting in low security of data migration, realizes data migration based on local transmission, avoids data leakage of the smart door lock, and at the same time realizes the separate transmission of the data to be migrated and the key, improving the encryption security of the data.

[0116] It should be noted that the steps shown in the above process or the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0117] In this embodiment, an intelligent lock data migration device is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated here. The following terms "module", "unit", "sub-unit", etc. can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.

[0118] Figure 6 is the structural block diagram of the intelligent lock data migration device of this embodiment. As Figure 6 shown, the device includes:

[0119] An upload module 10, which is used to establish a communication connection between the old intelligent lock and the target application, and upload the key for encrypting the data to be migrated to the target application;

[0120] A migration module 20, which is used to establish a pairing connection between the old intelligent lock and the new intelligent lock, and transmit the data to be migrated encrypted with the key to the new intelligent lock;

[0121] A decryption module 30, which is used to, in response to the completion of the transmission of the data to be migrated, send the key to the new intelligent lock through the target application for the new intelligent lock to decrypt the encrypted data to be migrated.

[0122] Through the device provided in this embodiment, a communication connection between the old intelligent lock and the target application is established, the key for encrypting the data to be migrated is uploaded to the target application; a pairing connection between the old intelligent lock and the new intelligent lock is established, and the data to be migrated encrypted with the key is transmitted to the new intelligent lock; in response to the completion of the transmission of the data to be migrated, the key is sent to the new intelligent lock through the target application for the new intelligent lock to decrypt the encrypted data to be migrated, solving the problem that there is a risk of intelligent door lock data leakage, resulting in low security of data migration, realizing data migration based on local transmission, avoiding intelligent door lock data leakage, and improving the security of data migration.

[0123] In some of these embodiments, the upload module 10 is further used to, in response to the communication connection between the old intelligent lock and the target application, generate a data migration instruction for the old intelligent lock; send the data migration instruction to the old intelligent lock; the data migration instruction is used to instruct the old intelligent lock to generate a key for encrypting the data to be migrated; and upload the key to the target application.

[0124] In some of these embodiments, the migration module 20 is further used to, in response to the completion of the key upload, control the old intelligent lock to enter the data migration mode; in the data migration mode, search for a new intelligent lock that matches the old intelligent lock based on the target pairing number; and pair and connect the matching new intelligent lock with the old intelligent lock.

[0125] In some of these embodiments, the migration module 20 is further configured to control the old smart lock to enter the main mode; the main mode is used to instruct the old smart lock to search for a new smart lock in the pairing connection mode; perform handshake communication between the new smart lock in the pairing connection mode and the old smart lock; when it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, determine that the new smart lock and the old smart lock match.

[0126] In some of these embodiments, the migration module 20 is further configured to display the target pairing number generated by the old smart lock in the first display area; when the pairing number displayed by the new smart lock in the second display area is the same as the target pairing number in the first display area, determine that the new smart lock and the old smart lock match; the display area is the numeric keypad area of the smart lock.

[0127] In some of these embodiments, the migration module 20 is further configured to determine the distance information between the old smart lock and the new smart lock; according to the distance information, determine the target transmission power of the old smart lock; transmit the data to be migrated after being encrypted with the key to the new smart lock at the target transmission power.

[0128] In some of these embodiments, the decryption module 30 is further configured to, in response to the completion of the transmission of the data to be migrated, send the binding information of the new smart lock to the old smart lock; upload the binding information to the target application for the target application to bind with the new smart lock; in response to the completion of the binding between the target application and the new smart lock, send the key to the new smart lock through the target application.

[0129] It should be noted that the above-mentioned various modules can be functional modules or program modules, and can be implemented either by software or by hardware. For the modules implemented by hardware, the above-mentioned various modules can be located in the same processor; or the above-mentioned various modules can also be located in different processors in any combined form.

[0130] In this embodiment, a computer device is further provided, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0131] Optionally, the above computer device may further include a transmission device and input / output devices, wherein the transmission device is connected to the above processor, and the input / output devices are connected to the above processor.

[0132] Optionally, in this embodiment, the above processor may be configured to execute the following steps through the computer program:

[0133] S1. Establish a communication connection between the old smart lock and the target application, and upload the key used to encrypt the data to be migrated to the target application;

[0134] S2. Establish a pairing connection between the old smart lock and the new smart lock, and transmit the data to be migrated encrypted with the key to the new smart lock;

[0135] S3. In response to the completion of the transmission of the data to be migrated, send the key to the new smart lock through the target application for the new smart lock to decrypt the encrypted data to be migrated.

[0136] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated in this embodiment.

[0137] In addition, in combination with the smart lock data migration method provided in the above embodiments, a storage medium can also be provided in this embodiment to implement it. A computer program is stored on the storage medium; when the computer program is executed by a processor, any one of the smart lock data migration methods in the above embodiments is implemented.

[0138] It should be understood that the specific embodiments described here are only used to explain this application, rather than to limit it. According to the embodiments provided in this application, all other embodiments obtained by those of ordinary skill in the art without creative work belong to the protection scope of this application.

[0139] Obviously, the drawings are only some examples or embodiments of this application. For those of ordinary skill in the art, this application can also be applied to other similar situations according to these drawings without creative work. In addition, it can be understood that although the work done during the development process here may be complex and time-consuming, for those of ordinary skill in the art, some design, manufacturing, or production changes based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient disclosure of this application.

[0140] The term "embodiment" in this application means that the specific features, structures, or characteristics described in combination with the embodiment can be included in at least one embodiment of this application. The phrase appears in various positions in the specification does not necessarily mean the same embodiment, nor does it mean being independent or alternative to other embodiments and mutually exclusive. Those of ordinary skill in the art can clearly or implicitly understand that the embodiments described in this application can be combined with other embodiments without conflict.

[0141] The above-described embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the scope of patent protection. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims

1. A smart lock data migration method, characterized in that: The method comprises: Establishing a communication connection between the old smart lock and the target application, and uploading a key used to encrypt the data to be migrated to the target application; Establishing a pairing connection between the old smart lock and the new smart lock, and transmitting the key-encrypted data to be migrated to the new smart lock; In response to the completion of the transmission of the data to be migrated, the key is sent to the new smart lock through the target application so that the new smart lock can decrypt the encrypted data to be migrated.

2. The smart lock data migration method according to claim 1, characterized in that: The step of uploading the key used for encrypting the data to be migrated to the target application comprises: In response to the communication connection between the old smart lock and the target application, generating a data migration instruction for the old smart lock; Sending the data migration instruction to the old smart lock; the data migration instruction is used to instruct the old smart lock to generate the key for encrypting the data to be migrated; Upload the key to the target application.

3. The smart lock data migration method according to claim 1, characterized in that: The establishing of a pairing connection between the old smart lock and the new smart lock includes: In response to completion of the key upload, controlling the old smart lock to enter a data migration mode; In the data migration mode, searching for the new smart lock that matches the old smart lock based on the target pairing number; Pair and connect the matching new smart lock with the old smart lock.

4. The smart lock data migration method according to claim 3, characterized in that: The searching for the new smart lock matching the old smart lock based on the target pairing number includes: Control the old smart lock to enter the master mode; the master mode is used to instruct the old smart lock to search for the new smart lock in the pairing connection mode; Perform handshake communication between the new smart lock in pairing connection mode and the old smart lock; When it is detected that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock, it is determined that the new smart lock matches the old smart lock.

5. The smart lock data migration method according to claim 4, characterized in that: The determining that the new smart lock matches the old smart lock when detecting that the pairing number of the new smart lock is the same as the target pairing number generated by the old smart lock includes: Displaying the target pairing number generated by the old smart lock in the first display area; When the pairing number displayed by the new smart lock in the second display area is the same as the target pairing number in the first display area, it is determined that the new smart lock matches the old smart lock; the display area is the numeric keypad area of ​​the smart lock.

6. The smart lock data migration method according to claim 1, characterized in that: The step of transmitting the data to be migrated after being encrypted by the key to the new smart lock comprises: Determine the distance information between the old smart lock and the new smart lock; Determining a target transmission power of the old smart lock according to the distance information; The data to be migrated encrypted by the key is transmitted to the new smart lock at the target transmission power.

7. The smart lock data migration method according to claim 1, characterized in that: In response to the completion of the transmission of the data to be migrated, sending the key to the new smart lock through the target application comprises: In response to the completion of the transmission of the data to be migrated, sending the binding information of the new smart lock to the old smart lock; Uploading the binding information to the target application so that the target application can be bound to the new smart lock; In response to the target application being bound to the new smart lock, the key is sent to the new smart lock through the target application.

8. A smart lock data migration device, characterized in that: The device comprises: An upload module, used to establish a communication connection between the old smart lock and the target application, and upload a key used to encrypt the data to be migrated to the target application; A migration module, used to establish a pairing connection between the old smart lock and the new smart lock, and transmit the key-encrypted data to be migrated to the new smart lock; The decryption module is used to send the key to the new smart lock through the target application in response to the completion of the transmission of the data to be migrated, so that the new smart lock can decrypt the encrypted data to be migrated.

9. A computer device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps of the smart lock data migration method described in any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the smart lock data migration method described in any one of claims 1 to 7 are implemented.