Remote password processing method and device

By remotely generating and synchronizing the remote password of the smart door lock, the problem of poor convenience in setting the temporary password of the smart door lock is solved, and the reuse and flexible management of passwords are realized, improving user experience and security.

CN119131933AActive Publication Date: 2024-12-13HUAWEI TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202310695016.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-12
Publication Date
2024-12-13
Estimated Expiration
2043-06-12

AI Technical Summary

Technical Problem

In the scenario where the existing smart door lock is not local and the visitor needs to unlock the lock, when setting a temporary password, the mobile phone needs to establish a Bluetooth communication connection between the smart door lock, resulting in poor operation convenience and great limitations, and the temporary password cannot be reused, and the validity period is Fixed, limiting user flexibility.

Method used

Using the remote password processing method, the second device detects input operation to generate a random number and a timestamp to generate a remote password, and the server synchronizes the parameter information to the first device. The user does not need to establish a close communication connection, and the remote password can be reused within the validity period. , and supports modification and deletion.

Benefits of technology

It improves the convenience and flexibility of user operations, avoids limitations during the use of smart door locks, enhances the security and reliability of remote passwords, and simplifies user operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131933A_ABST
    Figure CN119131933A_ABST
Patent Text Reader

Abstract

The invention provides a remote password processing method and equipment, and relates to the technical field of communication. The method comprises the steps that a second device can detect a first operation input in a password creating interface, and a first remote password is displayed; the second device detects a setting operation for the validity period of the first remote password and determines the validity period of the first remote password, and the setting operation is used for setting at least two of the valid starting time, the valid ending time or the valid duration of the validity period. Then, the second device detects a second operation for the first remote password and sends first parameter information corresponding to the first remote password to the server; the first parameter information is sent to the first equipment by the server, so that the first equipment obtains the first remote password according to the first parameter information and executes unlocking operation according to the first remote password within the period of validity. The second equipment does not need to establish short-distance communication connection with the first equipment every time for remote password setting, so that the convenience of user operation is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a remote password processing method and device. Background Art

[0002] At present, many places use smart door locks. Users can use the corresponding application of the smart door lock to set the unlocking password that they are used to for a long time.

[0003] Usually, when the owner of the smart door lock is not in the local area and the visitor needs to unlock the door, the owner can remotely set a temporary password corresponding to the smart door lock so that the visitor can open the smart door lock with the temporary password. However, when setting the temporary password, the user needs to establish a Bluetooth communication connection between the mobile phone and the smart door lock before setting it. As a result, the use of the smart door lock is greatly limited and the operation convenience is poor. Summary of the invention

[0004] The embodiment of the present application provides a remote password processing method and device, which can remotely set the remote password corresponding to the device without using a short-distance communication connection. In addition, the set remote password can be reused within the validity period, providing users with a smooth use process and improving the user experience.

[0005] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:

[0006] The first aspect provides a remote password processing method, which is applied to a second device, and the method includes: the second device detects a first operation input in the password creation interface, and displays a first remote password, the first remote password is generated by a random number and a timestamp, and the timestamp is used to characterize the time when the first remote password is generated. Then, the second device detects a setting operation for the validity period of the first remote password, and determines the validity period of the first remote password. The setting operation is used to set at least two of the effective start time, effective end time or effective duration of the validity period. Then, the second device detects a second operation for the first remote password, and sends the first parameter information corresponding to the first remote password to the server. The first parameter information includes a random number, a timestamp and a validity period; the first parameter information is sent by the server to the first device, so that the first device obtains the first remote password according to the first parameter information and performs an unlocking operation according to the first remote password within the validity period.

[0007] That is to say, the second device can set the first remote password without establishing a short-range communication connection with the first device. And the remote password can be reused within the validity period, and the length of time corresponding to the validity period is not fixed. The user can use the second device to view the first remote password and remotely set the first remote password, and can also reuse the first remote password to open the first device within the password validity period. Avoiding large limitations in the use of the first device and improving the convenience of user operation.

[0008] In an implementable manner of the first aspect, the method further includes: the second device detects a third operation input in the device management interface, and displays identification information of m successfully created remote passwords, where m is an integer not less than 1. Then, the second device detects an operation of changing the second remote password among the m successfully created remote passwords, and sends the second parameter information corresponding to the second remote password after the change to the server. The change includes deleting the second remote password or editing the validity period of the second remote password, and the second parameter information is sent by the server to the first device so that the first device changes the saved second remote password according to the second parameter information. Then, the second device receives the first indication information from the server, and the first indication information is used to indicate the successful change of the second remote password.

[0009] It can be seen that the second device can change the remote password that has been successfully created, and synchronize the parameter information after the change to the first device to maintain the consistency of the information in the two devices. The embodiment of the present application can support the change of the successfully set remote password, can delete the successfully set remote password, and can also modify the validity period of the successfully set remote password, which improves the user's operation process for the remote password and improves the user's operation efficiency.

[0010] In an implementable manner of the first aspect, the method further includes: the second device detects a third operation input in the device management interface, and displays identification information corresponding to m successfully created remote passwords according to m parameter information, wherein the m parameter information includes parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1. Then, the second device detects an operation of performing a change process on the second remote password among the m successfully created remote passwords, and sends change processing information corresponding to the second remote password to the server; wherein the change processing information is sent by the server to the first device, so that the first device performs a change process on the second remote password according to the change processing information. The change process includes deleting the second remote password or editing the validity period of the second remote password.

[0011] Then, the second device may receive n parameter information from the server and update the displayed identification information according to the n parameter information, wherein the n parameter information includes the second parameter information corresponding to the second remote password after the first device changes the second remote password, and n is an integer not less than 1.

[0012] It can be seen that when the second device detects the third operation, it can display the identification information of the successfully created remote password. Then, the second device can detect the operation of changing the successfully created remote password, and send the change processing information corresponding to the successfully created remote password to the first device via the server. In this way, the first device can change the successfully created remote password according to the change processing information. It can be understood that the change processing information may include the change result or the corresponding change processing instruction corresponding to the successfully created remote password. The second device can also receive the parameter information after the change processing sent by the server, and update the displayed identification information according to the parameter information after the change processing.

[0013] That is to say, the second device can synchronize the change processing information corresponding to the successfully created remote password to the first device, instructing the first device to perform the change processing. The second device then receives the change result after the first device performs the change processing to maintain the consistency of the information in the two devices. The embodiment of the present application can support the change of the successfully set remote password, can delete the successfully set remote password, and can also modify the validity period of the successfully set remote password, which improves the user's operation process for the remote password and enhances the user's experience.

[0014] In an implementation manner of the first aspect, the method further includes: the second device may send a first request to the first device when establishing a short-range communication connection with the first device, and the second device may also receive a key sent by the first device in response to the first request.

[0015] It can be seen that the second device can obtain the key when establishing a short-distance communication connection with the first device. The key is used for the second device and the first device to encrypt and / or decrypt data when transmitting data. The second device can obtain the key from the first device and obtain a random number for generating the first remote password based on the key. In other words, since the second device and the first device involve user privacy data when transmitting data, the user data is encrypted and transmitted using the key, thereby improving the security of user privacy data transmission.

[0016] In an implementation method of the first aspect, when the second device detects the first operation and displays the first remote password, the second device can detect the first operation and send a second request to the server; the second request is used to obtain the latest first encrypted data, the first encrypted data is generated by the first device using a key, and the first encrypted data includes the encrypted first random number and the second random number; the latest first encrypted data includes the encrypted data obtained by updating the first encrypted data after the first device performs the unlocking operation.

[0017] Next, the second device can receive the latest first encrypted data sent by the server, and use the key to decrypt the first encrypted data to obtain the first random number and the second random number. The random number with the latest generation time among the first random number and the second random number is determined as the random number used to generate the first remote password. Then, the second device can generate the first remote password according to the random number and the timestamp and display the first remote password on the password creation interface.

[0018] It can be seen that in the process of generating the first remote password, the second device can obtain the latest first encrypted data from the server, and use the key to obtain the random number with the latest generation time in the first encrypted data. And generate the first remote password based on the random number and the timestamp. If the same random number is used to generate the corresponding remote password each time, the generated remote password has a high similarity and low communication security. By choosing between two random numbers, the security of the remote password can be improved.

[0019] Furthermore, the latest first encrypted data includes the encrypted data obtained by the first device updating the first encrypted data after performing the unlocking operation. The latest first encrypted data obtained by the second device changes with the number of unlocking times. In other words, the random number used to generate the remote password will also be updated and changed. This avoids a high degree of similarity in the remote password generated each time, thereby improving the communication security of the remote password.

[0020] In an implementation of the first aspect, when the second device generates the first remote password according to the random number and the timestamp, the second device may send a third request to the server. Then, the second device receives the timestamp sent by the server in response to the third request, and generates the first remote password according to the random number and the timestamp.

[0021] It can be seen that in the process of generating the first remote password, the second device can perform time synchronization from the server side and obtain a timestamp, which is used to represent the generation time of the first remote password. Then the second device can generate the first remote password through a random number and a timestamp. This avoids high similarity of the generated remote passwords and improves communication security.

[0022] The second aspect provides a remote password processing method, which is applied to a first device, and the method includes: the first device receives first parameter information corresponding to a first remote password sent by a server; wherein the first parameter information includes a random number, a timestamp and a validity period corresponding to the remote password, and the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the validity period of the first remote password, and the setting operation is used to set at least two of the effective start time, the effective end time or the effective duration of the validity period; then the first device performs an unlocking operation within the validity period based on the first remote password, and the first remote password is generated by a random number and a timestamp.

[0023] It can be seen that the first device can receive the first parameter information corresponding to the first remote password sent by the server. Then the first device performs the unlocking operation within the validity period based on the first remote password, and the first remote password is generated by the random number and timestamp in the first parameter information. The first device can set the first remote password of the first device without establishing a short-range communication connection with the second device. The first device can repeat the operation based on the first remote password within the validity period. The user's operation process for the remote password is improved, and the user's operation efficiency is improved.

[0024] In an implementation of the second aspect, the method further includes: after the first device successfully registers with the server, generating a first random number and a second random number. And encrypting the first random number and the second random number based on the key to obtain first encrypted data. Then the first device saves the first encrypted data and sends the first encrypted data to the server.

[0025] After the first device performs the unlocking operation, it can update the first encrypted data and send the latest first encrypted data to the server, wherein the latest first encrypted data includes the second random number and the third random number encrypted by the key.

[0026] It can be seen that after the first device successfully registers with the server, it will encrypt the first random number and the second random number to obtain the first encrypted data. And synchronize the first encrypted data to the server. In this way, by setting two random numbers in the first encrypted data, the second device can subsequently choose between the two random numbers and generate the first remote password based on the selected random number. Avoid the generated remote passwords with high similarity and low communication security.

[0027] And after the first device performs the unlocking operation, it can update the first encrypted data and send the latest first encrypted data to the server. It can be seen that the embodiment of the present application can adopt a double random number update mechanism, retaining the random number with a later generation time in the encrypted data and adding a newly generated random number. In this way, the remote password is generated based on the latest first encrypted data each time, which improves the reliability and stability of the remote password.

[0028] In an implementation manner of the second aspect, the method further includes: when the first device establishes a short-range communication connection with the second device, receiving the first request, and sending the key to the second device in response to the first request.

[0029] It can be seen that the first device can send a key to the second device when establishing a short-distance communication connection with the second device. The key is used for the second device and the first device to encrypt and / or decrypt data when transmitting data. The first device can send the key to the second device so that the second device decrypts the received encrypted data based on the key. For example, the second device can obtain a random number for generating a first remote password based on the key. In this way, since the second device and the first device involve user privacy data when transmitting data, the key is used to encrypt and transmit the user data, thereby improving the security of user privacy data transmission.

[0030] In an implementation manner of the second aspect, the method further includes: the first device obtains second parameter information, the second parameter information corresponds to a second remote password; the second remote password is a remote password that has been successfully created. Then, the first device can change the second remote password according to the second parameter information, and send first indication information to the server, the first indication information is used to indicate that the second remote password has been successfully changed.

[0031] It can be seen that the second parameter information is the corresponding information after the second remote password is changed. The first device can change the second remote password according to the second parameter information corresponding to the second remote password. The first device can also send a first indication information used to characterize the success of the change process to the server, so as to facilitate the subsequent consistency with the information in the second device. The embodiment of the present application can support the change of a successfully set remote password, can delete a successfully set remote password, and can also modify the validity period of a successfully set remote password, thereby improving the user's operation process for the remote password and improving the user's operation efficiency.

[0032] In an implementation manner of the second aspect, the method also includes: the first device can obtain m parameter information and change processing information corresponding to the second remote password, the m parameter information including parameter information of m successfully created remote passwords, and the second remote password is a successfully created remote password.

[0033] Next, the first device may perform change processing on the second parameter information corresponding to the second remote password in the m parameter information according to the change processing information corresponding to the second remote password, and obtain n parameter information, where the n parameter information includes the second parameter information after the change processing, and n is an integer not less than 1. Then, the first device sends the n parameter information to the server.

[0034] It can be seen that the first device can change the successfully created remote password according to the change processing information corresponding to the successfully created remote password. It can be understood that the change processing information may include the change result or the corresponding change processing instruction corresponding to the successfully created remote password. Then, the first device can also send the change result after the change processing to the server, so as to facilitate subsequent synchronization to the second device via the server. It can provide users with the function of changing the successfully created remote password, improve the user's operation process for the remote password, and improve the user's operation efficiency.

[0035] In an implementation manner of the second aspect, the method further includes: the first device may obtain m parameter information, the m parameter information including parameter information of each of the m successfully created remote passwords. Then, the first device may update the m parameter information based on a preset rule and the first parameter information to obtain j parameter information. And the j parameter information is sent to the server. Among them, the j parameter information includes the first parameter information, and j is an integer not less than 1.

[0036] The preset rule includes if the random number of the first parameter information is the random number in the first encrypted data, then the first parameter information is added to the m parameter information; the first encrypted data is obtained by encrypting the first random number and the second random number based on the key after the first device successfully registers with the server; the first random number and the second random number are generated by the first device;

[0037] and / or, if the validity period of the first parameter information is less than or equal to the preset period, adding the first parameter information to the m parameter information;

[0038] And / or, if m is less than or equal to a preset number, the first parameter information is added to the m parameter information.

[0039] It can be seen that the first device can update the parameter information of the successfully created remote password according to the preset rules and the first parameter information of the newly created first remote password. If the random number of the first parameter information is a random number in the first encrypted data, or the validity period of the first parameter information is less than or equal to the preset period, or the number of parameter information of the successfully created remote password is less than or equal to the preset number, it means that the first device can add the newly created first parameter information to the parameter information of the successfully created remote password. That is, the first remote password is successfully created remotely. By setting preset rules, the embodiment of the present application can avoid adding invalid parameter information (such as parameter information corresponding to a password not associated with the first device) to the parameter information of the successfully created remote password. The reliability and security of the remote password setting process are improved, and the user experience is enhanced.

[0040] In an implementation manner of the second aspect, the method further includes: the first device may detect an input operation that triggers entry into a remote password mode, send a fourth request to the server, and receive j parameter information sent by the server in response to the fourth request.

[0041] Furthermore, when the first device sends the fourth request to the server, the process further includes: outputting acquisition prompt information, where the acquisition prompt information is used to prompt that parameter information corresponding to the successfully created remote password is being acquired.

[0042] After sending the fourth request to the server, the first device outputs connection prompt information when the parameter information corresponding to the successfully created remote password is not received; the connection prompt information is used to prompt that the first device has not established a communication connection with the server.

[0043] It can be seen that after the first device detects the input operation of the user triggering the remote password mode, it can obtain the parameter information corresponding to the successfully created remote password from the server. And in the process of obtaining, the user is given an acquisition prompt. If the first device does not obtain the parameter information corresponding to the successfully created remote password, it can also give the user a connection prompt to prompt the user that the first device has not established a communication connection with the server. It can provide users with more humane functions and improve the interactivity between users and the first device.

[0044] In an implementation of the second aspect, the first device can detect a user input and obtain the input door lock password during the process of performing an unlocking operation based on the first remote password within the validity period. Then, the first device performs an unlocking operation based on the door lock password and the first remote password within the validity period.

[0045] Specifically, the first device can obtain the unlocking time during the process of performing the unlocking operation based on the door lock password and the first remote password within the validity period, and the unlocking time is the time when the door lock password is input. Then, the first device can determine, based on the unlocking time, the f third parameter information whose validity period includes the unlocking time among the j parameter information, where f is less than or equal to j. Then, the first device generates f unlocking passwords based on the random number and timestamp corresponding to the f third parameter information. And when there is a password consistent with the door lock password among the f unlocking passwords, the unlocking operation is performed. Among them, the password consistent with the door lock password is the first remote password.

[0046] It can be seen that when the first device performs an unlocking operation based on the first remote password within the validity period, it can first filter the parameter information corresponding to the successfully created remote password based on the unlocking time, and filter out at least one parameter information whose validity period includes the unlocking time. Then, at least one unlocking password is generated based on the random number and timestamp in the at least one parameter information filtered out. In the case that there is a password consistent with the door lock password in at least one unlocking password, the unlocking operation is performed. It can be understood that the consistent password is the first remote password. The first remote password does not need to be transmitted between devices, but is generated through random numbers and timestamps, thereby improving the reliability and security of the unlocking operation process.

[0047] A third aspect provides a remote password processing method, which is applied to a server. The method includes: the server receives first parameter information corresponding to a first remote password sent by a second device.

[0048] Among them, the first parameter information includes a random number, a timestamp and a validity period. The first remote password is generated by the second device based on the random number and the timestamp, and the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the password validity period, and the setting operation is used to set at least two of the effective start time, effective end time or effective duration of the validity period.

[0049] Next, the server may send the first parameter information to the first device, so that the first device performs an unlocking operation according to the first remote password within the validity period, where the first remote password is generated by a random number and a timestamp.

[0050] It can be seen that the second device can remotely generate and display the first remote password, and send the first parameter information corresponding to the first remote password to the server. The server can synchronize the first parameter information corresponding to the first remote password to the first device, so that the first device performs an unlocking operation according to the first remote password within the validity period. It can be seen that the first parameter information includes a random number, a timestamp and a validity period. The server can implement the process of remotely setting the remote password corresponding to the first device without transmitting the generated remote password. In addition, the security of the remote password is improved and the user experience is enhanced.

[0051] In an implementation manner of the third aspect, the method also includes: the server receives first encrypted data sent by the first device, the first encrypted data is obtained by encrypting the first random number and the second random number based on the key; the first random number and the second random number are generated by the first device.

[0052] After the first device performs the unlocking operation, the server receives the latest first encrypted data sent by the first device and saves the latest first encrypted data, wherein the latest first encrypted data includes the second random number and the third random number encrypted by the key.

[0053] It can be seen that the server can save the first encrypted data sent by the first device, and can also synchronize it to the second device later, so that the second device generates the first remote password based on the random number with the latest generation time in the first encrypted data. In the embodiment of the present application, by selecting from the double random numbers, the remote password generated each time is avoided to have a high similarity, thereby improving the communication security of the remote password.

[0054] And after the first device performs the unlocking operation, the server will continue to receive and save the latest first encrypted data sent by the first device. It can be seen that the embodiment of the present application can adopt a double random number update mechanism, retaining the random number with a later generation time in the encrypted data and adding a newly generated random number. In this way, the remote password will be generated based on the latest first encrypted data each time, which improves the reliability and stability of the remote password.

[0055] The fourth aspect provides a device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program includes instructions, and when the instructions are executed by the processor, the device executes the remote password processing method as described in the first aspect above.

[0056] The fifth aspect provides a device, which includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program includes instructions, and when the instructions are executed by the processor, the device executes the remote password processing method as described in the second aspect above.

[0057] The sixth aspect provides a server, which includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program includes instructions, and when the instructions are executed by the processor, the server executes the remote password processing method as described in the third aspect above.

[0058] In a seventh aspect, a communication system is provided, the communication system comprising the device provided in the fourth aspect, the device provided in the fifth aspect, and the server provided in the sixth aspect.

[0059] In an eighth aspect, a readable storage medium is provided, in which instructions are stored. When the instructions are executed on a device, the device can execute the remote password processing method of the first aspect, or the remote password processing method of the second aspect, or the remote password processing method of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 A schematic diagram of the structure of a communication system provided in an embodiment of the present application;

[0061] Figure 2 A schematic diagram of the hardware structure of a smart door lock provided in an embodiment of the present application;

[0062] Figure 3 An interactive schematic diagram of a remote password processing method provided in an embodiment of the present application;

[0063] Figure 4 A schematic diagram of an interface for adding a device provided in an embodiment of the present application;

[0064] Figure 5 A schematic diagram of a connection interface provided in an embodiment of the present application;

[0065] Figure 6 A schematic diagram of a prompt interface provided in an embodiment of the present application;

[0066] Figure 7 A schematic diagram of a first password interface provided in an embodiment of the present application;

[0067] Figure 8 A schematic diagram of a password creation interface provided in an embodiment of the present application;

[0068] Fig. 9 An interactive schematic diagram of a remote password generation process provided by an embodiment of the present application;

[0069] Fig.10 A schematic diagram of an interface of first information provided in an embodiment of the present application;

[0070] Fig.11A schematic diagram of an interface of second information provided in an embodiment of the present application;

[0071] Fig.12 A schematic diagram of a second password interface provided in an embodiment of the present application;

[0072] Fig.13 A schematic diagram of an interface for changing parameter information provided in an embodiment of the present application;

[0073] Fig.14 An interactive schematic diagram of a password unlocking process provided in an embodiment of the present application;

[0074] Fig.15 A schematic diagram of an interface of a smart door lock provided in an embodiment of the present application;

[0075] Fig.16 A schematic diagram of the structure of a device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0076] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship, for example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B, which can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. And, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish the same items or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not necessarily limit the differences. At the same time, in the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design solutions. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0077] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. A person of ordinary skill in the art can appreciate that with the evolution of the network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.

[0078] Smart door locks are used in many places. Among them, smart door locks can provide users with a variety of different unlocking methods, smart cat-eye functions, voice prompts, and low-battery reminders. Users can also interact with smart door locks through devices such as mobile phones. For example, users can bind smart door locks, set passwords, and view the screen outside the door through the smart door lock application in the device.

[0079] Usually, users can use the application corresponding to the smart door lock to set a long-term valid password for the smart door lock. If the owner of the smart door lock is not local and a visitor needs to unlock the door, the owner can remotely set a temporary password for the smart door lock so that the visitor can use the temporary password to unlock the smart door lock. For the convenience of description, the application corresponding to the smart door lock is referred to as the door lock application.

[0080] Specifically, when the door lock application is bound to the smart door lock and the time is synchronized, the door lock application and the smart door lock can use the same password generation algorithm and store the same preset parameters. In the process of using the smart door lock, the owner can start the function of the door lock application to generate a temporary password. The door lock application generates a temporary password based on the password generation algorithm and preset parameters. The owner then shares the temporary password with the visitor, and the visitor enters the temporary password on the smart door lock side. The smart door lock obtains the preset parameters based on the inverse solution of the temporary password, matches the preset parameters, and unlocks the door after the match is successful.

[0081] However, the validity period of a temporary password is generally fixed and cannot be reused. For example, it is valid for 30 minutes, and the temporary password is a one-time password. And once a temporary password is created, it cannot be deleted or modified. In this way, there are restrictions on the actions of both the homeowner and the visitor. For example, a visitor can only visit within 30 minutes. For another example, if the visitor cannot visit within 30 minutes, the homeowner needs to set a temporary password again. As a result, users have certain limitations in the use of smart door locks, and the flexibility is low and the operation convenience is poor.

[0082] In addition, when the smart door lock matches the preset parameters, it will also try to compare it with the password that the user has been accustomed to using for a long time (common password). Similarly, when the smart door lock unlocks based on the common password, it will also compare the common password with the preset parameters, resulting in a longer unlocking time, thereby reducing the user's experience.

[0083] From the above content, we can know that currently, smart door locks can only set a one-time temporary password remotely. When the owner is not in the local scene of the smart door lock, such as renting a house or visiting a guest, the owner, tenant and visitor need to perform cumbersome operations and their actions are restricted. This leads to a poor experience for users of smart door locks.

[0084] Based on the above content, the embodiment of the present application provides a remote password processing method and device, in which the second device can display the first remote password by a first operation input in the password creation interface. The first remote password is generated by a random number and a timestamp, and the timestamp is used to characterize the time when the first remote password was generated. Then, the second device can also detect a setting operation for the validity period of the first remote password and determine the validity period of the first remote password, and the setting operation is used to set at least two of the effective start time, effective end time or effective duration of the validity period.

[0085] The second device can then detect the second operation for the first remote password, and send the first parameter information corresponding to the first remote password to the server, so that the server synchronizes the first parameter information to the first device. The first parameter information includes a random number, a timestamp, and a validity period. The first device can generate a first remote password based on the random number and the timestamp, and perform subsequent unlocking operations based on the first remote password within the validity period. The first remote password can be reused within the validity period, and the time length corresponding to the validity period is not fixed. Furthermore, the second device can also edit the validity period corresponding to the first remote password and delete the first remote password.

[0086] For example, in the scenario of renting a house, if the owner is not near the house, that is, far away from the smart door lock, the owner can use the mobile phone to create and generate the remote password corresponding to the smart door lock, and share the remote password with the tenant. The mobile phone synchronizes the parameter information corresponding to the remote password to the server and the smart door lock. In this way, the tenant can unlock the smart door lock with the shared remote password. In addition, the owner can also edit the validity period of the remote password and delete the successfully created remote password anytime and anywhere.

[0087] It can be seen that the embodiment of the present application supports the user to remotely set the remote password of the smart door lock, and the remote password can be reused within the validity period. At the same time, it also supports the user to arbitrarily set the validity period of the remote password, and the length of time corresponding to the validity period is not fixed. Avoid the limitations in the use of the smart door lock and improve the convenience of user operation.

[0088] The remote password processing method provided in this application can be applied to communication systems. Figure 1A communication system provided in an embodiment of the present application includes a first device 101 (eg, a user's smart door lock), a second device 102 (eg, a user's mobile phone) and a server 103.

[0089] In some embodiments, a wireless communication connection may be established between the first device 101 and the second device 102. For example, the wireless communication connection includes but is not limited to a short-range wireless communication connection such as a Bluetooth communication connection, a near-field communication connection, or a wireless local area network communication connection. In one achievable manner, a Bluetooth communication connection may be established between the first device 101 and the second device 102, and the second device 102 may generate a remote password and send parameter information corresponding to the remote password to the first device 101 using a Bluetooth communication channel.

[0090] The first device 101 and the second device 102 also establish a communication connection with the server 103. The server 103 can be used to support the communication service between the first device 101 and the second device 102 to complete the communication between the devices. In an implementable manner, the second device 102 can also send parameter information corresponding to the remote password to the first device 101 via the server. Among them, the server 103 can be implemented by a server cluster composed of multiple servers, or it can be implemented by a single server.

[0091] It should be noted that the above communication system may not be provided with the server 103, and the embodiments of the present application do not specifically limit this.

[0092] Among them, the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or bluetooth low energy (BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM) and infrared (IR), etc.

[0093] In some embodiments of the present application, the user can use a mobile phone to set one or more remote passwords for the smart door lock. The validity period of the remote password is set by the user, and the validity period can be modified. The successfully created remote password also supports deletion. Specifically, after the smart door lock establishes a communication connection with the server, the mobile phone can send the parameter information corresponding to the remote password set by the user to the server and the smart door lock. Similarly, the mobile phone can also send the change processing information corresponding to the remote password to the server and the smart door lock.

[0094] In some embodiments of the present application, the number of the second device 102 may be one or more. For example, the second device 102 may also be a tablet computer used by a user, and the user may also use the tablet computer to remotely set one or more remote passwords of the smart door lock.

[0095] It can be understood that the first device in the example of the present application can be, for example, smart security devices such as smart door locks and smart password locks, and the second device can include, for example, smart phones, tablet computers, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, wearable devices, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart screens, smart cars, smart speakers, robots, etc. The present application does not impose any special restrictions on the specific forms of the first device and the second device.

[0096] Furthermore, the operating systems installed in the first device 101 and the second device 102 include but are not limited to Or other operating systems. This application does not limit the specific type of device or the type of operating system when an operating system is installed.

[0097] A communication system provided in an embodiment of the present application may also include a time server 104 (Network Time Protocol, NTP), and the NTP server is used to provide accurate network time to the first device 101 and the second device 102, that is, to serve as an accurate time source for the first device 101 and the second device 102.

[0098] It should be noted that the above communication system may not include the time server 104, and the function of synchronizing the network time may be integrated in the server 103. Alternatively, the server 103 may include the time server 104 and a server cluster.

[0099] The communication system provided in the embodiment of the present application may further include a third device 105 (such as a router) in addition to the first device 101 and the second device 102. The third device 105 may establish a communication connection between the first device 101 and the second device 102 and between the first device 101 and the server 103, and the third device 105 may provide network access services for devices connected to it.

[0100] It should be noted that the communication system provided in the embodiment of the present application includes but is not limited to the interaction between the above five devices, and can also be a device interacting with multiple devices. Those skilled in the art can determine the type and quantity of the device according to actual needs, and these designs do not exceed the protection scope of the embodiment of the present application.

[0101] The first device 101 and the second device 102 in the embodiment of the present application can be implemented by different / same devices. For example, the first device 101 in the embodiment of the present application can be implemented by Figure 2 It is implemented by the hardware structure in.

[0102] The following introduces the smart door lock involved in the embodiments of the present application.

[0103] Figure 2 A schematic diagram of the hardware structure of a smart door lock is shown.

[0104] The smart door lock may include a processor 210, an internal memory 220, a charging management module, a power management module, a battery, an antenna, a wireless communication module, a speaker, a sensor module, buttons, an indicator, a camera, and a display screen.

[0105] It is understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the smart door lock. In other embodiments of the present application, the smart door lock may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0106] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a memory, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor, etc. Among them, different processing units may be independent devices or integrated into one or more processors.

[0107] Among them, the controller can be the nerve center and command center of the smart door lock. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.

[0108] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0109] The following takes the first device 101 as a smart door lock used by the user, the second device 102 as a mobile phone used by the user, and the third device 105 as a router as an example, and describes in detail the technical solution provided by the example of this application in conjunction with the accompanying drawings.

[0110] Figure 3 This is an interactive schematic diagram of a remote password processing method shown in an embodiment of the present application, such as Figure 3 As shown, the method may include the following steps S300-S310.

[0111] S300: The smart door lock performs a registration operation.

[0112] S301. After successfully registering with the server, the smart door lock sends first encrypted data to the server, where the first encrypted data includes an encrypted first random number and a second random number.

[0113] In some embodiments of the present application, after the user installs the smart door lock, the user can use the application in the mobile phone to perform Bluetooth binding and device registration on the smart door lock. It is understandable that after the smart door lock is installed, the mobile phone needs to perform Bluetooth pairing with the smart door lock and control the smart door lock to perform the registration operation.

[0114] It should be noted that both the mobile phone and the smart door lock have their Bluetooth connection function and wireless local area network (WLAN) connection function enabled before Bluetooth binding and device registration to facilitate the Bluetooth binding and device registration process.

[0115] For example, the user can add a smart door lock in the smart life application of the mobile phone to implement the Bluetooth binding and device registration process. Figure 4 This is a schematic diagram of an interface for adding a device provided in an embodiment of the present application. Figure 4 As shown in (A) of FIG. 1 , it is a front view of a mobile phone provided in an embodiment of the present application. A smart life application icon 400 is displayed on the display screen of the mobile phone. The user can click on the smart life application icon 400. Figure 4As shown in (B) in the figure, in response to a click operation on the smart life application icon, the mobile phone displays the user interface of the smart life application, and the user interface may include pre-configured scene names, home devices, and corresponding status information. For example, the home devices and corresponding status information include the TV in the living room (online), the TV in the master bedroom (online), and the audio in the master bedroom (offline). The pre-configured scene names include home scene, sleep scene, and going out scene. The user interface may also include icons of configured devices.

[0116] It is understandable that the configured device can be a device associated with a user account. The user needs to log in to the corresponding user account in the smart life application. And the user's pre-configured device needs to be bound to the user account to complete the configuration. If the user has not logged in to the smart life application, he needs to log in to the corresponding user account and enter the user name and password.

[0117] Continue to see Figure 4 In (B), users can also click the "+" icon on the user interface to add devices and create scenes with one click. Figure 4 As shown in (C) in the figure, after the user clicks the "+" icon, the mobile phone controls the display screen to display a drop-down menu in response to the user's click operation. The drop-down menu includes an add device control 401, a share device control 402, a create scene control 403, and a connect third-party platform control 404. The user can click the pre-configured add device control 401 in the drop-down menu to trigger the add device interface. Figure 4 As shown in (D) in FIG. 8 , in response to the user clicking the add device control 401 , the mobile phone displays an add device interface.

[0118] Specifically, the mobile phone sends a scan request in response to the user's click operation on the add device control 401. The scan request is used to scan smart door locks whose Bluetooth is in a connectable state near the mobile phone. The scan request may include the Bluetooth address of the mobile phone. In the process of the mobile phone searching for nearby smart door locks, the smart door lock can send a broadcast data packet. Among them, the smart door lock can send a broadcast data packet through the internal Bluetooth module. The broadcast data packet can be used for the smart door lock to broadcast its own Bluetooth to nearby devices that it is in a connectable state. The broadcast data packet may include the Bluetooth address of the smart door lock. When the mobile phone receives a broadcast data packet from the smart door lock, the corresponding information of the smart door lock is displayed in the add device interface.

[0119] Continue to see Figure 4In (D), the device adding interface includes the device name of the device to be added and the connection control 405, the rescan control, the manual adding control corresponding to the manual adding method, and the scan code adding control corresponding to the scan code adding method. For example, the user can click the connection control 405 corresponding to the smart door lock to perform Bluetooth binding. In this way, in response to the user's click operation on the connection control 405, the mobile phone displays the corresponding connection interface and sends a Bluetooth binding request to the smart door lock corresponding to the connection control 405, so as to achieve Bluetooth binding with the smart door lock.

[0120] Continue to see Figure 5 In (A), the connection interface includes a WLAN name display box 501a, a WLAN password display box 501b, a pairing code display box 502, and a next control 503. The WLAN name display box 501a is used to display the WLAN name, the WLAN password display box 501b is used to display the WLAN password, and the pairing code display box 502 is used to display the pairing code to be bound to Bluetooth. For example, the pairing code is 123456. The user can select the correct WLAN name and enter the correct WLAN password and obtain the pairing code.

[0121] In some embodiments of the present application, the smart door lock can receive a Bluetooth binding request sent by a mobile phone and display a prompt interface. Figure 6 In (A), the prompt interface 601 can display the pairing code to be entered. The user enters the correct pairing code, and the smart door lock performs Bluetooth binding with the mobile phone in response to receiving the correct pairing code.

[0122] In another possible implementation, see Figure 6 In (B), the prompt interface may include prompt information 602, a confirmation control 603, and a cancel control 604. The prompt information 602 is used to prompt whether to confirm the Bluetooth binding of the smart door lock and the mobile phone, the confirmation control 603 is used to confirm the Bluetooth binding of the smart door lock and the mobile phone, and the cancel control 604 is used to refuse the Bluetooth binding of the smart door lock and the mobile phone. Then, the smart door lock responds to the user operation acting on the confirmation control 603 and performs Bluetooth binding with the mobile phone. The embodiment of the present application does not limit the specific implementation process of Bluetooth binding between the mobile phone and the smart door lock.

[0123] Continue to see Figure 5 In (B), the user needs to select a WLAN name in the connection interface and enter the corresponding WLAN password, and enter the pairing code in the pairing code input box. Then, the user can check that the pairing code input has been completed, and click the next control 503 to trigger the mobile phone to send a connection instruction.

[0124] In some embodiments of the present application, the mobile phone sends a connection instruction to the smart door lock in response to the user's click operation on the next control. The smart door lock sends a registration request to the server based on the connection instruction. The server then receives the registration request sent by the smart door lock, establishes a communication connection with the smart door lock, and sends a first notification message to the smart door lock, where the first notification message is used to notify that the registration has been successful.

[0125] When establishing a communication connection with the server, the smart door lock can establish a communication connection via a router. The router can provide network access services for devices connected to it, that is, the mobile phone and the smart door lock can access the same network (such as a home WLAN) through a router connection. The mobile phone and the smart door lock can also be connected to the server through a router connection. It should be noted that the data transmitted by the mobile phone and the smart door lock through the WLAN communication connection can be transferred to the other end through the router, or it can be transferred without passing through the router.

[0126] Understandably, Figure 4-Figure 6 This is only an example of Bluetooth binding and device registration between a mobile phone and a smart door lock provided in this application and should not constitute a limitation on this application.

[0127] The mobile phone and the smart door lock can also establish a communication connection through other methods. At the same time, the embodiments of the present application are not limited to realizing the communication connection between the smart door lock and the server through a router, nor are they limited to realizing the communication connection between the mobile phone, the smart door lock and the server through a router. The mobile phone and the smart door lock can also access the server through other types of network access devices. And the mobile phone and the smart door lock are not limited to the above-mentioned WLAN communication connection. The mobile phone and the smart door lock can also transmit data through other high-bandwidth communication connections.

[0128] In some embodiments of the present application, after successfully registering with the server, the smart door lock generates a first random number and a second random number. The first random number and the second random number are encrypted based on the key to obtain first encrypted data. Then the smart door lock sends the first encrypted data to the server. The first encrypted data includes the encrypted first random number and the second random number.

[0129] After generating the first encrypted data, the smart door lock can save the first encrypted data locally. Correspondingly, after receiving the first encrypted data sent by the smart door lock, the server can also save the first encrypted data.

[0130] In one practicable manner, the smart door lock can determine that the registration is successful upon receiving the first notification information sent by the server. Then, after successfully registering with the server, the smart door lock generates a first random number and a second random number, and encrypts the first random number and the second random number based on the key to obtain first encrypted data.

[0131] In another achievable manner, the server may also generate a first random number and a second random number, and send the first random number and the second random number to the smart door lock. The smart door lock then encrypts the first random number and the second random number based on the key to obtain first encrypted data.

[0132] It should be noted that the random number can be generated by the smart door lock or by other devices. And the random numbers in the embodiments of the present application include but are not limited to integers, and can also be other digital types (such as negative numbers, decimals, and fractions). The length of the random number can be 6 bits, 48 ​​bits, 128 bits or other. The embodiments of the present application do not specifically limit the random number generation device, the type of random number, and the number of random numbers encrypted in the encrypted data.

[0133] In some embodiments of the present application, the first random number and the second random number have a time sequence, and the generation time of the first random number is earlier than the generation time of the second random number. The first random number and the second random number may correspond to their own first identifier and second identifier, respectively, and the identifier is used to determine the time sequence between each random number. It is conceivable that the generation time of the first encrypted random number is also earlier than the generation time of the second encrypted random number.

[0134] The identifier may include a location identifier or a time identifier.

[0135] Exemplarily, the first identifier may be a first time identifier such as 12.33, and the second identifier may be a second time identifier 12.34. In this way, the time sequence between the two random numbers can be determined according to the time of the first time identifier and the second time identifier.

[0136] As another example, the first identifier can be a first position identifier such as 0, and the second identifier can be a second position identifier such as 1. Among them, 0 can be used to represent the random number position that comes first in time, and 1 can be used to represent the random number position that comes later in time. In this way, the time sequence between the two random numbers can be determined based on the first position identifier and the second position identifier. It should be noted that this application does not limit the implementation form of the identifier and the implementation form of the time relationship between different random numbers.

[0137] S302. The mobile phone obtains the key when a short-range communication connection is established with the smart door lock.

[0138] In some embodiments of the present application, the mobile phone and the smart door lock can successfully bind Bluetooth and establish a Bluetooth communication connection. The Bluetooth communication connection can be used for the mobile phone and the smart door lock to exchange data (such as fingerprint data, face data, and password-related data, etc.). Among them, when the mobile phone and the smart door lock use the Bluetooth communication connection to exchange data, they can use the agreed key to encrypt these data. The mobile phone can obtain the key after establishing a communication connection with the smart door lock.

[0139] In one possible implementation, after detecting that a Bluetooth communication connection is established with the smart door lock for the first time, the mobile phone can send a first request to the smart door lock, where the first request is used to obtain a key. The key is used for the mobile phone and the smart door lock to encrypt and / or decrypt data when transmitting data. Then, the smart door lock sends the key to the mobile phone based on the first request.

[0140] In another possible implementation, the smart door lock can also directly send the key to the mobile phone after detecting that a Bluetooth communication connection is established with the mobile phone for the first time.

[0141] Among them, the scenario in which the mobile phone establishes a Bluetooth communication connection with the smart door lock for the first time can be the scenario in which the smart door lock enters the user's biometric information after the smart door lock is successfully registered. That is to say, after the user uses the mobile phone and the smart door lock to realize the Bluetooth binding and device registration process, the user can control the mobile phone and the smart door lock to establish the first Bluetooth communication connection and enter his own biometric information on the smart door lock side. Among them, the biometric information can include fingerprint information, retinal information, voiceprint information, and facial image information. In this way, the mobile phone can obtain the key after establishing the Bluetooth communication connection with the smart door lock for the first time.

[0142] In some embodiments of the present application, the mobile phone and the smart door lock may replace the above-mentioned keys regularly or irregularly.

[0143] In one feasible way, the smart door lock can periodically change the key and use the changed key to encrypt the random number. And after the smart door lock changes the key, if it detects that a Bluetooth communication connection is established with the mobile phone, the changed key will be sent to the mobile phone. For example, the smart door lock can change the key every month, and after changing the key, as long as it detects that a Bluetooth communication connection is established with the mobile phone, the changed key will be sent to the mobile phone. It is understandable that after changing the key, the smart door lock can also re-encrypt the random number and send the updated encrypted data to the server.

[0144] In another achievable manner, the mobile phone may also periodically send a first request to the smart door lock to obtain an updated key after detecting that a Bluetooth communication connection is established with the smart door lock. For example, the mobile phone may send a first request to the smart door lock to obtain an updated key each time it detects that a Bluetooth communication connection is established with the smart door lock.

[0145] It should be noted that the communication connection between the mobile phone and the smart door lock in the embodiment of the present application includes but is not limited to Bluetooth communication connection, and may also include wireless communication connections such as Wi-Fi communication connection, WLAN communication connection, frequency modulation (FM) communication connection, and near field communication (NFC) communication connection. In addition, the embodiment of the present application does not limit the specific implementation method of agreeing on a key between the mobile phone and the smart door lock and encrypting data using the key.

[0146] It can be seen that since the data interacting between the mobile phone and the smart door lock involves user privacy data, the embodiment of the present application uses a key to encrypt and transmit user data (such as random numbers in password-related data), which can improve the security of user privacy data transmission.

[0147] S303: The mobile phone detects the first operation and displays a first remote password.

[0148] In some embodiments of the present application, the user can use the remote password function of the smart door lock in the smart life application to create a remote password for the smart door lock even if he is not near the smart door lock.

[0149] Specifically, the mobile phone detects the third operation entered by the user in the device management interface and sends a fifth request to the server. The fifth request is used to request the server to return m parameter information corresponding to the smart door lock. The server receives the fifth request sent by the mobile phone and sends m parameter information to the mobile phone. Then, the mobile phone can obtain the m parameter information and display the identification information corresponding to the m successfully created remote passwords based on the m parameter information. It should be noted that the m parameter information in the server comes from the smart door lock. The identification information corresponding to the successfully created remote password may include a password identification and a password validity period.

[0150] The m parameter information includes parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1. The parameter information includes a remote password identifier, and at least two of a valid start time corresponding to the remote password, a valid end time corresponding to the remote password, or a valid duration corresponding to the remote password. The parameter information may also include a setting time corresponding to the remote password and / or a setting user identifier corresponding to the remote password.

[0151] In some embodiments of the present application, it is possible that this is not the first time for the user to use the remote password function of the smart door lock. In the scenario where this is not the first time for the user to use the remote password function, it is conceivable that the user has previously created at least one remote password. In this way, the mobile phone sends the fifth request to the server, and the server searches for and sends the successfully created remote password to the mobile phone.

[0152] In some embodiments of the present application, the user may use the remote password function of the smart door lock for the first time. In the scenario where the user uses the remote password function for the first time, it is conceivable that the user has never created a remote password before.

[0153] In one achievable manner, the mobile phone sends the fifth request to the server. If the server detects that the fifth request is received for the first time, it sends a second notification message to the mobile phone. The second notification message is used to notify the mobile phone that no remote password has been successfully created.

[0154] In another possible implementation, the mobile phone sends a fifth request to the server, and if the server detects that there is no successfully created remote password, it sends a second notification message to the mobile phone. Then, the mobile phone can display the first password interface according to the second notification message.

[0155] Combine the following Figure 7 The first password interface for a user to trigger entry for the first time and for a user to trigger entry for the non-first time is illustrated with examples.

[0156] If this is not the first time that a user uses the remote password function, see Figure 7 In (A), the user can use the remote password function in the device management interface of the smart door lock. The device management interface includes the device icon, device status, function area and record area corresponding to the smart door lock. Among them, the function area includes user management controls, remote password controls, power management controls and more function controls. The user can click the remote password control to trigger the first password interface. The mobile phone detects the user's click operation on the password control and displays the first password interface.

[0157] Figure 7 (B) is a schematic diagram of a first password interface provided in an embodiment of the present application. Figure 1 See also Figure 7 In (B), the first password interface includes a first control corresponding to the successfully created remote password and a second control corresponding to the creation of the remote password. For example, the first control may include: Password 1 09:00 04 / 16-12:00 04 / 20, Password 2 01:00 05 / 01-12:00 05 / 03, and Password 3 12:00 05 / 10-15:00 05 / 12. The user can click on the second control to trigger the password creation interface to create a remote password.

[0158] When the user uses the remote password function for the first time, see Figure 7 In (C), the first password interface includes a second control corresponding to creating a remote password. The user can also click the second control to trigger entering the password creation interface to create a remote password.

[0159] In some embodiments of the present application, the user can trigger to enter the password creation interface in the first password interface, and then create a new remote password. Specifically, the mobile phone detects the user's click operation on the second control and displays the password creation interface.

[0160] For example, see Figure 8 In (A), the password creation interface includes a generation control, a password display box, a password validity period setting area, and a password saving control. The generation control is used to trigger the generation of a remote password after the user inputs an operation. The password display box is used to display the generated remote password. The password validity period setting area is used to set the effective start time, effective end time, and effective duration corresponding to the remote password. The password saving control is used to save the setting parameter information for this time. In this way, the user can obtain the remote password in the password creation interface and can also set the validity period of the remote password arbitrarily.

[0161] In some embodiments of the present application, the user can obtain the pre-created remote password in the password creation interface. The user can click the generate control in the password creation interface to trigger the generation of the remote password.

[0162] Specifically, the mobile phone detects a first operation input by the user in the password creation interface and displays a first remote password.

[0163] The following will be combined Fig. 9 The specific process of generating the first remote password by the mobile phone is exemplified.

[0164] Fig. 9 This is an interactive schematic diagram of a remote password generation process shown in an embodiment of the present application, such as Fig. 9 As shown, the remote password generation process may include the following steps S901-S906.

[0165] S901. The mobile phone detects a first operation and sends a second request to a server, where the second request is used to obtain the latest first encrypted data from the server.

[0166] S902: Based on the second request, the server returns the latest first encrypted data to the mobile phone.

[0167] S903. The mobile phone decrypts the latest first encrypted data based on the key to obtain a first random number and a second random number.

[0168] S904. The mobile phone sends a third request to the server. The third request is used to obtain a timestamp from the server. The timestamp is used to represent the generation time of the first remote password.

[0169] S905. The server sends the timestamp to the mobile phone based on the third request.

[0170] S906: The mobile phone determines the random number generated the latest between the first random number and the second random number as the random number, and generates and displays a first remote password on the password creation interface based on the random number and the timestamp.

[0171] In some embodiments of the present application, after detecting the first operation, the mobile phone needs to obtain the first encrypted data from the server. Since the first encrypted data is encrypted data, the mobile phone can use the key obtained from the smart door lock to decrypt it, and it is also necessary to synchronize the time from the server. Then, the mobile phone selects the most recent random number and the synchronized timestamp in the first encrypted data, and generates the first remote password using the password generation algorithm.

[0172] The timestamp may include year, month, day, hour, minute, and second information. The timestamp format may be year, month, day, hour, minute, and second in sequence. In addition, the password length of the generated first remote password may be a preset length. For example, the preset length may be 6 digits, 8 digits, 10 digits, 12 digits, 24 digits, and the like.

[0173] In some embodiments of the present application, after the mobile phone generates the first remote password, the first remote password can be displayed in the password creation interface. The user can view the first remote password in the password creation interface, and after obtaining the first remote password, the first remote password can be shared with others.

[0174] Exemplarily, the mobile phone detects a user's click operation on the generation control and generates a first remote password. For example, based on the second random number 0.5 and the timestamp 13.20, the first remote password generated by the mobile phone may be: 156852. Then, see Figure 8 In (B), the mobile phone displays the generated first remote password in the password display area in the password creation interface.

[0175] S304: The mobile phone detects a setting operation for the validity period of the first remote password and determines the validity period of the first remote password.

[0176] S305: The mobile phone detects a second operation for the first remote password and sends first parameter information corresponding to the first remote password to the server.

[0177] Accordingly, the server may save the first parameter information of the first remote password.

[0178] S306. After detecting that a communication connection is established with the smart door lock, the server sends first parameter information of the first remote password to the smart door lock.

[0179] In some embodiments of the present application, the mobile phone detects a setting operation for the validity period of the first remote password and determines the validity period of the first remote password, wherein the setting operation is used to set at least two of the effective start time, effective end time or effective duration of the validity period.

[0180] After obtaining the first remote password, the user can set the validity period of the first remote password. The user can enter at least two of the valid start time, valid end time, or valid duration corresponding to the validity period in the password validity period setting area in the password creation interface. Then, the user can click the password save control to save the first parameter information of the first remote password and implement the process of creating the remote password this time.

[0181] In one achievable manner, upon detecting the user's second operation on the password saving control, the mobile phone sends first parameter information corresponding to the first remote password to the server.

[0182] The first parameter information includes a random number, a timestamp, and a validity period corresponding to the first remote password.

[0183] For example, see Figure 8 In (C), the user can enter the password validity start time as 04 / 03 12:00 and the valid end time as 04 / 10 15:00 in the password validity period setting area in the password creation interface. Then, the user clicks the password saving control, and the mobile phone detects the user's click operation on the password saving control and sends the first parameter information to the server. The first parameter information includes a random number 0.5, a timestamp 13.20, a valid start time as 04 / 03 12:00 and a valid end time as 04 / 10 15:00.

[0184] As another example, the user can also enter the password validity start time as 04 / 03 12:00 and the validity period as 7 days in the password validity period setting area in the password creation interface. The mobile phone can automatically calculate the valid end time as 04 / 10 15:00 based on the valid start time and valid period entered. In this way, the first parameter information includes a random number of 0.5, a timestamp of 13.20, a valid start time of 04 / 03 12:00 and a valid end time of 04 / 10 12:00.

[0185] In some embodiments of the present application, after receiving the first parameter information of the first remote password sent by the mobile phone, the server saves the first parameter information of the first remote password. And after detecting that a communication connection is established with the smart door lock, the first parameter information of the first remote password is sent to the smart door lock. In this way, the mobile phone can synchronize the first parameter information of the first remote password to the smart door lock via the server, so that subsequent users can use the first remote password to open the smart door lock.

[0186] In one implementable manner, the first parameter information may further include a password identifier corresponding to the first remote password. For example, a password name corresponding to the first remote password and a password ID corresponding to the first remote password. Among them, the password name corresponding to the first remote password may be a password name automatically generated by the operating system, or a password name custom-set by the user. The password ID corresponding to the first remote password may be a password serial number corresponding to the first remote password. The embodiments of the present application do not specifically limit the password name and the password ID.

[0187] It should be noted that the first operation, the second operation and the third operation may be the same operation or different operations. The above operations may include a long press operation, a single click operation, a double click operation, a pressure sensing operation and a voice operation. The embodiment of the present application does not specifically limit the specific implementation form of the first operation, the second operation and the third operation.

[0188] In summary, the embodiments of the present application can support remote creation of remote passwords corresponding to smart door locks. The remote password is generated by the mobile phone, and does not need to be entered by the user and does not need to be generated on the server side. At the same time, the remote password will not be transmitted between multiple devices, and will not be transmitted to the smart door lock via the server, thereby improving the security of the remote password. Users do not need to share the door opening passwords they have been accustomed to using for a long time, and can also allow others such as visitors or tenants to open the smart door lock through the created remote passwords.

[0189] In addition, the embodiments of the present application can also support setting the validity period corresponding to the remote password, and the remote password can be reused within the validity period. In the scenario of house rental, the owner only needs to create a remote password once, and the tenant can open the smart door lock at any time within the validity period. Therefore, while ensuring the security of the remote password, the user's operation is simplified, and there is no need to rely on additional hardware devices to implement the remote password creation process, thereby improving the user's practicality and usage experience.

[0190] In some embodiments of the present application, after obtaining m parameter information, the mobile phone may further detect the number of m.

[0191] The mobile phone may send the first parameter information corresponding to the first remote password to the server when m is less than a preset number.

[0192] Exemplarily, the preset number is 5. Successfully created remote passwords include "Password 1 09:00 04 / 16-12:00 04 / 20", "Password 2 01:00 05 / 01-12:00 05 / 03" and "Password 3 12:00 05 / 10-15:00 05 / 12". It can be seen that the number of parameter information is 3, and the number of parameter information is less than the preset number. The mobile phone can directly send the first parameter information corresponding to the first remote password to the server.

[0193] The mobile phone may output a first message when the number of m is greater than or equal to a preset number. The first message is used to prompt that the number of remote passwords to be created has exceeded the limit.

[0194] Exemplarily, the preset number is 5. Successfully created remote passwords include "Password 1 09:00 04 / 16-12:00 04 / 20", "Password 2 01:00 05 / 01-12:00 05 / 03", "Password 3 12:00 05 / 10-15:00 05 / 12", "Password 4 06:00 05 / 13-12:00 05 / 14" and "Password 5 12:00 05 / 15-15:00 05 / 16". It can be seen that the number of parameter information is 5, and the number of parameter information is greater than or equal to the preset number. The mobile phone can output the first information.

[0195] See also Fig.10 The first information is used to prompt that the number of remote passwords has exceeded the limit. The first information also corresponds to a first prompt control, which can be implemented as a text "There are too many passwords, please delete uncommon passwords".

[0196] It can be seen that in the process of the user creating a remote password for the smart door lock, the mobile phone can control the number of remote passwords created. Specifically, the mobile phone can detect the number of remote passwords. If the number of remote passwords exceeds the limit, a prompt message can be output to prompt that the number of remote passwords has exceeded the limit. If the number of remote passwords does not exceed the limit, the subsequent remote password creation process can continue.

[0197] It is understandable that if more remote passwords are set for a smart door lock, the possibility of the remote password being discovered will gradually increase.

[0198] Therefore, the embodiment of the present application can improve the security of the smart door lock by limiting the number of remote passwords that can be created. It should be noted that the embodiment of the present application supports setting multiple remote passwords for the smart door lock, and does not specifically limit the preset number.

[0199] S307: The smart door lock updates m parameter information according to the first parameter information.

[0200] In some embodiments of the present application, the smart door lock obtains m parameter information, and updates the m parameter information according to the first parameter information and the preset rule to obtain j parameter information; the j parameter information includes the first parameter information, and j is an integer not less than 1. It is understandable that j can be greater than m.

[0201] In one achievable manner, the smart door lock can add the first parameter information to m parameter information based on a preset rule, where the m parameter information includes parameter information of each of the m successfully created remote passwords. In other words, the smart door lock can detect the received first parameter information in advance, and add the first parameter information to the m parameter information if the first parameter information meets the preset rule.

[0202] The preset rule may include that the random number of the first parameter information is the random number in the first encrypted data. If the random number of the first parameter information is the random number in the first encrypted data, the smart door lock adds the first parameter information to the m parameter information.

[0203] Exemplarily, the random number of the first parameter information is the second random number. The first encrypted data includes the first random number and the second random number. It can be seen that the random number of the first parameter information is the random number in the first encrypted data. In this way, the smart door lock can add the first parameter information to the m parameter information to update the remote password that has been successfully created.

[0204] It is conceivable that if the random number of the first parameter information does not match the random number stored in the first encrypted data of the smart door lock, it means that the remote password corresponding to the first parameter information is not generated by the random number synchronized from the smart door lock to the server, that is, the first remote password has no association with the smart door lock and is an invalid password. Then the first parameter information is discarded.

[0205] The preset rule may further include that the effective time of the first parameter information is less than or equal to the preset time. If the effective time of the first parameter information is less than or equal to the preset time, the smart door lock adds the first parameter information to the m parameter information.

[0206] Exemplarily, the preset duration is 30 days, and the validity period of the first parameter information is: 12:00 04 / 10-15:00 05 / 08. It can be seen that the validity period of the first parameter information is less than or equal to the preset duration. In this way, the smart door lock can add the first parameter information to the m parameter information to update the remote password that has been successfully created.

[0207] The preset rule may further include that m is less than or equal to a preset number.

[0208] Exemplarily, the preset number is 5. The successfully created remote passwords include "Password 1 09:00 04 / 16-12:00 04 / 20", "Password 2 01:00 05 / 01-12:00 05 / 03" and "Password 3 12:00 05 / 10-15:00 05 / 12". It can be seen that m is 3 and is less than the preset number. In this way, the smart door lock can add the first parameter information to the m parameter information to update the successfully created remote password.

[0209] In some embodiments of the present application, the smart door lock side can detect the first parameter information. If it is determined that the first parameter information does not meet the preset rules, a third notification message can be sent to the mobile phone. The third notification message is used to notify that the first remote password corresponding to the first parameter information was not successfully created.

[0210] In an implementable manner, the mobile phone can output the second information based on the third notification information. The second information is used to prompt that the remote password has not been successfully created. Fig.11 The second information also corresponds to a second prompt control, and the second prompt control can be implemented as the text "The remote password was not created successfully".

[0211] In another possible implementation, the mobile phone can continue to display the first password interface based on the third notification information. It is understandable that the first password interface does not include the first parameter information created by the user this time.

[0212] S308. The smart door lock sends j parameter information and the first encrypted data to the server.

[0213] S309. The server sends j parameter information to the mobile phone.

[0214] S310. The mobile phone displays identification information of j successfully created remote passwords according to j parameter information.

[0215] In some embodiments of the present application, after updating m parameter information, the smart door lock sends the obtained j parameter information and the first encrypted data to the server.

[0216] In one possible implementation, the smart door lock may send a first refresh instruction, j parameter information and first encrypted data to a server. The first refresh instruction is used to instruct the server to update the stored m parameter information and first encrypted data.

[0217] Furthermore, the server receives the j parameter information and the first encrypted data and can send the j parameter information to the mobile phone.

[0218] In an implementable manner, the server may send a second refresh instruction and j pieces of parameter information to the mobile phone. The second refresh instruction is used to instruct the mobile phone to update the m pieces of parameter information that have been saved.

[0219] Then, the mobile phone can display a second password interface based on the j parameter information, wherein the second password interface is an interface after refreshing the first password interface, and the second password interface includes an updated remote password that has been successfully created, and the updated remote password that has been successfully created includes the first parameter information.

[0220] For example, after the user clicks the password save control on the remote password creation interface, it triggers entering the second password interface. Fig.12 For example, the first parameter information is: Password 4 12:00 05 / 15-15:00 05 / 16. Then, the second password interface includes a third control. For example, the third control may include: Password 1 09:00 04 / 16-12:00 04 / 20, Password 2 01:00 05 / 01-12:0005 / 03, Password 3 12:00 05 / 10-15:00 05 / 12 and Password 4 12:00 05 / 15-15:0005 / 16.

[0221] It is understandable that the second password interface is an interface after refreshing the first password interface, and the second password interface includes the first parameter information of the first remote password successfully created by the user this time. After saving the first parameter information, the user can view the successfully created first remote password through the displayed second password interface.

[0222] It can be seen that the user can view the historical password, that is, the currently successfully created remote password, during the process of creating a remote password. And after successfully creating the remote password this time, the updated parameter information can be viewed, and the updated parameter information includes the historical password and the parameter information corresponding to the remote password created this time. The process of creating a remote password in the embodiment of the present application is simple, and supports users to remotely create a door opening password for a smart door lock, so that users can quickly and flexibly control the smart door lock, thereby improving the user experience.

[0223] In some embodiments of the present application, a user can remotely edit a successfully created remote password. For example, a user can delete a successfully created remote password. For another example, a user can also modify the validity period of a successfully created remote password.

[0224] In one achievable manner, the mobile phone may send change processing information corresponding to the second remote password to the server for the change processing operation of the second remote password, where the second remote password is a remote password that has been successfully created.

[0225] When the server detects that a communication connection has been established with the smart door lock, the server sends the change processing information corresponding to the second remote password to the smart door lock. The smart door lock receives the change processing information, and performs change processing on the second parameter information corresponding to the second remote password in the m parameter information to obtain n parameter information. Among them, the n parameter information includes the second parameter information corresponding to the second remote password after the smart door lock performs the change processing, and n is an integer not less than 1.

[0226] Then, the smart door lock sends n parameter information to the server, so that the server sends n parameter information to the mobile phone. The mobile phone can also receive n parameter information from the server, and display the identification information corresponding to the n successfully created remote passwords according to the n parameter information. It is understandable that the user can delete the successfully created remote password or modify the validity period of the successfully created remote password. In this way, the above n can be less than or equal to m.

[0227] In the scenario of changing the validity period of the remote password, the change processing information may include the password identifier corresponding to the second remote password, the effective start time of the change, and the effective end time of the change.

[0228] The server sends the change processing information to the smart door lock, and the smart door lock searches for a password identifier corresponding to the second remote password. If there is a password identifier corresponding to the second remote password, the second parameter information corresponding to the second remote password is updated based on the effective start time and the effective end time of the change.

[0229] For example, see Fig.13 In (A), the first password interface includes "Password 1 09:00 04 / 16-12:00 04 / 20", "Password 2 01:00 05 / 01-12:00 05 / 03" and "Password 3 12:00 05 / 10-15:00 05 / 12". The user can click on the identification information of any remote password to trigger the entry into the corresponding password creation interface. For example, the mobile phone detects a click operation on the identification information corresponding to the second remote password (password 3) and displays the password creation interface corresponding to the second remote password.

[0230] See also Fig.13 In (B), the user can edit the password validity period in the password creation interface. For example, the validity period in password 3 is changed to 15:00 05 / 10-15:00 05 / 18. The mobile phone detects the editing operation on the validity period corresponding to the second remote password and sends the change processing information of the second remote password to the server. The change processing information includes password 3, 15:00 05 / 10 and 15:00 05 / 18.

[0231] In the scenario of deleting the remote password, the mobile phone can also detect the change processing operation for the second remote password, and send the change processing information of the second remote password to the server, wherein the change processing information includes the password identifier corresponding to the second remote password.

[0232] The server sends the change processing information of the second remote password to the smart door lock, and the smart door lock deletes the second parameter information corresponding to the password identifier according to the change processing information. It is conceivable that the change processing information may also include a change result corresponding to the second parameter information or a change processing instruction corresponding to the second parameter information. For example, the change result is used to indicate that the second parameter information has been deleted, and the change processing instruction is used to indicate that the second parameter information is deleted.

[0233] For example, see Fig.13 In (B), the user can click on the delete control in the password creation interface. For example, clicking on password 3 corresponds to the delete control in the password creation interface. The mobile phone detects the deletion operation for the second remote password and sends a change processing information to the server. The change processing information includes the password identifier "password 3".

[0234] In another achievable manner, the mobile phone can also detect the operation of changing the second remote password, and send the second parameter information corresponding to the second remote password after the change to the server. The server then sends the second parameter information to the smart door lock. The smart door lock changes the saved second remote password according to the second parameter information. After the smart door lock successfully changes the second remote password, it sends the first indication information to the server. The server then sends the first indication information to the mobile phone, and the first indication information is used to indicate that the second remote password has been successfully changed.

[0235] That is to say, the mobile phone can change the second remote password that has been successfully created, and synchronize the changed second parameter information to the first device to maintain the consistency of the second parameter information in the two devices.

[0236] It is understandable that the second remote password and the first remote password may be the same remote password. After successfully creating the first remote password, the user may also change the first remote password.

[0237] It can be seen that the embodiment of the present application supports editing of the successfully created remote password. The successfully created remote password can be deleted, and the validity period corresponding to the successfully created remote password can also be changed. In the scenario of house rental, after the lease period expires, the corresponding remote password will immediately become invalid, and the owner can delete the expired remote password. Alternatively, after the tenant checks out early or the lease period is extended, the owner can flexibly adapt the remote password according to the tenant's usage needs.

[0238] In other words, the householder does not need to frequently create remote passwords according to the usage scenario requirements, and can repeatedly modify the validity period of the remote password without changing the remote password. This simplifies the user's operation process for remote passwords in different usage scenarios and improves the user's operation efficiency.

[0239] Based on the above content, the user can remotely create a remote password for the smart door lock, and can also remotely edit the remote password that has been successfully created. In some embodiments of the present application, the user can also create a remote password for the smart door lock and edit the created remote password at the near end of the smart door lock.

[0240] When the user is near the smart door lock, the mobile phone can establish a Bluetooth communication connection with the smart door lock. The mobile phone can send data directly to the smart door lock via the Bluetooth communication channel instead of exchanging data with the smart door lock via the server. For example, the mobile phone can send the parameter information corresponding to the remote password directly to the smart door lock via the Bluetooth communication channel. The data exchanged between the mobile phone and the smart door lock includes but is not limited to parameter information, and may also include other data such as remote password change processing information. For specific data, please refer to the above content and will not be repeated here.

[0241] It can be seen that in the scenario of renting a house, the user can remotely create a remote password for the smart door lock to enable the tenant to enter the house. The user can also set the remote password of the smart door lock at the near end of the smart door lock. In this way, the user can set the remote password of the smart door lock anytime and anywhere, which improves the practicality of the smart door lock and enhances the user experience.

[0242] The above content exemplarily describes the process of creating a remote password and the process of modifying a successfully created remote password. The following will exemplarily describe the process of unlocking using a remote password.

[0243] Fig.14 This is an interactive schematic diagram of a password unlocking process shown in an embodiment of the present application, such as Fig.14 As shown, the password unlocking process may include the following steps S1401-S1405.

[0244] S1401: The smart door lock detects an input operation that triggers entering a remote password mode, and sends a fourth request to a server. The fourth request is used to obtain j parameter information from the server.

[0245] In some embodiments of the present application, the smart door lock can detect an input operation that triggers entering the remote password mode and send a fourth request to the server. The input operation that triggers entering the remote password mode may include a first input operation acting on an input area. For example, a click operation on a combination key in the numeric key area. In this way, the user can trigger entering the remote password mode by inputting a combination key in the numeric key area of ​​the smart door lock.

[0246] It is understandable that in the scenario of renting a house, the owner can usually directly enter the long-term unlocking password in the numeric keypad area. Since the long-term unlocking password used by the owner is different from the remote password used by the tenant, the tenant can trigger the smart door lock to enter the remote password mode to indicate that the remote password set by the owner is required to unlock the door. For example, see Fig.15 , the visitor enters the "2" and "√" keys in the digital button area of ​​the smart door lock to trigger entry into the remote password mode.

[0247] In this way, after receiving the first input operation acting on the input area, the smart door lock enters the remote password mode and obtains j parameter information from the server.

[0248] Among them, the input area can be a numeric keypad area in a smart door lock. The first input operation includes operations on at least two numeric keys. For example, a user can enter "2" and "√" keys in the numeric keypad area. For another example, a user can enter "3" and "√" keys in the numeric keypad area. For another example, a user can enter "2", "3" and "√" keys in the numeric keypad area. It should be noted that the first input operation can also include voice operations and gesture operations, etc., which are not specifically limited in this application.

[0249] In some embodiments of the present application, the smart door lock may also output acquisition prompt information during the process of sending the fourth request to the server. The acquisition prompt information is used to prompt that parameter information corresponding to the successfully created remote password is being acquired.

[0250] The acquired prompt information may include one or more of text prompt information, voice prompt information and video prompt information.

[0251] For example, a smart door lock can display a reminder interface, which includes a control for displaying an item corresponding to the reminder information, and the control can be implemented as the text "Synchronizing remote password, please wait".

[0252] For another example, the smart door lock may include a buzzer. The smart door lock may control the buzzer to emit a prompt tone such as "synchronizing the remote password, please wait".

[0253] It can be seen that the smart door lock of the embodiment of the present application can enter the remote password mode by detecting the combination key input, and accurately judge the user's usage intention. The smart door lock can also establish a communication connection with the server after triggering the remote password mode.

[0254] It is understandable that the smart door lock may not establish a communication connection with the server in other usage scenarios (unlocking scenarios that do not use remote passwords, such as fingerprint unlocking and face unlocking). Therefore, the embodiment of the present application can avoid frequently establishing communication connections with the server to increase device power consumption, and does not affect the unlocking performance of the digital password.

[0255] S1402. The server receives the fourth request sent by the smart door lock, and sends parameter information corresponding to the successfully created remote password to the smart door lock.

[0256] Then, after obtaining the parameter information corresponding to the successfully created remote password, the smart door lock outputs the password prompt information. The password prompt information is used to prompt the input of the door lock password of the smart door lock.

[0257] The password prompt information may also include one or more of text prompt information, voice prompt information, and video prompt information. For example, the smart door lock may control the buzzer to output a password prompt information such as "Please enter a 6-8 digit unlock password".

[0258] In some embodiments of the present application, the smart door lock outputs connection prompt information when the parameter information corresponding to the successfully created remote password is not obtained. The connection prompt information is used to prompt that the smart door lock has not established a communication connection with the server. It is understandable that the smart door lock may not be able to obtain an updated remote password if it has not established a communication connection with the server. In this way, the smart door lock can output connection prompt information to prompt the user to detect the communication connection status of the smart door lock.

[0259] The connection prompt information may also include one or more of text prompt information, voice prompt information, and video prompt information. For example, the smart door lock may control the buzzer to output a connection prompt information such as "Synchronization failed, please make sure that the smart door lock is connected to the network normally and try again."

[0260] S1403: The smart door lock detects the user's input and obtains the door lock password.

[0261] S1404: The smart door lock performs an unlocking operation within the validity period based on the first remote password and the door lock password.

[0262] In some embodiments of the present application, the smart door lock can detect the user's input and obtain the door lock password. After the tenant triggers the smart door lock to enter the remote password mode, the first remote password can be used to unlock the door.

[0263] Based on the above, the homeowner can generate a first remote password through a mobile phone and give the first remote password to the tenant. At this time, the tenant can use the first remote password shared by the homeowner to unlock the door. For example, the tenant enters "156852" in the digital key area of ​​the smart door lock. In this way, the smart door lock receives the user's input in the digital key area and obtains the door lock password "156852".

[0264] Then, in one implementable manner, the door lock password can be intelligently matched with j pieces of parameter information. When the door lock password matches the j pieces of parameter information, it is determined that the door lock password is correct and an unlocking operation is performed.

[0265] Specifically, the smart door lock obtains the unlocking time, which is the time when the door lock password is input. Then, based on the unlocking time, the smart door lock determines, among the j parameter information, f third parameter information whose validity period includes the unlocking time, where f is less than or equal to j. Then, the smart door lock generates f unlocking passwords based on the random number and timestamp corresponding to the f third parameter information. If there is a password consistent with the door lock password among the f unlocking passwords, the unlocking operation is performed. Among them, the password consistent with the door lock password is the first remote password.

[0266] S1405. After unlocking, the smart door lock updates the first encrypted data and sends the updated first encrypted data to the server.

[0267] In some embodiments of the present application, after each successful unlocking, the encrypted data is updated and the updated encrypted data is synchronized to the server.

[0268] Specifically, the smart door lock updates the first encrypted data, and the updated first encrypted data includes the second random number and the third random number encrypted by the key. The updated first encrypted data is generated by the smart door lock after encrypting the second random number and the third random number by the key. The second random number and the third random number have a time sequence, and the generation time of the second random number is earlier than the generation time of the third random number. In this way, the mobile phone can subsequently use the third random number in the updated first encrypted data to generate a new remote password.

[0269] It is understandable that if the smart door lock does not update the first encrypted data, the first encrypted data, i.e., the encrypted first random number and the second random number, will always be stored in the server. The mobile phone will use the same random number, i.e., the second random number, to generate the corresponding remote password each time. In this way, the generated remote passwords have a high degree of similarity and low communication security. The embodiment of the present application can improve the communication security of the remote password by updating the encrypted data so that the subsequent mobile phone can generate a new remote password based on the updated encrypted data.

[0270] In addition, the embodiment of the present application can adopt a double random number update mechanism, retain the random number generated later in the encrypted data, and add a newly generated random number. The updated encrypted data can also be synchronized to the server.

[0271] In this way, even if the synchronization of the updated first encrypted data to the server fails, the smart door lock saves the updated first encrypted data (the second random number and the third random number), and the server saves the first encrypted data (the first random number and the second random number). When the mobile phone generates a new remote password again, it will use the second random number in the first encrypted data in the server to generate it, and synchronize the parameter information including the second random number to the smart door lock. Based on the preset rules, the smart door lock determines that the second random number corresponding to the first parameter information is the random number in the updated first encrypted data, and can also update the saved parameter information.

[0272] If the above-mentioned double random update mechanism is not adopted, in the case of failure to synchronize the updated first encrypted data to the server. For example, the updated first encrypted data includes the encrypted third random number and the fourth random number. The smart door lock determines that the second random number corresponding to the first parameter information is not the random number in the updated first encrypted data, and thus the saved parameter information will not be updated. The embodiment of the present application improves the reliability and stability of the remote password by adopting the double random number update mechanism.

[0273] It should be noted that when the mobile phone displays the remote password, the latest first encrypted data is obtained. When the user creates the first remote password for the first time, the latest first encrypted data obtained by the mobile phone includes the encrypted first random number and the second random number. When the user creates the remote password for a non-first time, the latest first encrypted data obtained by the mobile phone includes the encrypted data obtained by updating the first encrypted data after the smart door lock performs the unlocking operation.

[0274] In some embodiments of the present application, the smart door lock can also generate an unlocking record after each unlocking. The unlocking record refers to the record of the user waking up the smart door lock to unlock, which may include the wake-up method, unlocking time, and the corresponding account information for waking up the smart door lock when unlocking. For example, the user wakes up the smart door lock with a remote password at 9 o'clock in the morning to unlock it. The smart door lock can save the fingerprint unlocking, unlocking time, and the corresponding account information of the user to generate a record. And the smart door lock can also send the unlocking record to the server. Among them, the unlocking record may include the unlocking method, unlocking time, and the corresponding account information for unlocking.

[0275] In some embodiments of the present application, when the door lock password does not match the j parameter information, the smart door lock determines that the door lock password is wrong and does not unlock the door lock. In addition, the smart door lock can determine whether to continue to display the input area based on the number of wrong door lock passwords.

[0276] Specifically, when the number of incorrect door lock passwords is greater than a first threshold, the smart door lock closes the display input area within a preset time period. When the number of incorrect door lock passwords is less than or equal to the first threshold, the smart door lock continues to display the input area.

[0277] For example, the first threshold is 5, and the preset time is 30 minutes. If the number of incorrect door lock passwords is greater than 5 times, the smart door lock closes the display input area within 30 minutes to lock the digital input area.

[0278] In some embodiments of the present application, the above remote password processing method can allow different users, such as different tenants, to use the same smart door lock at different times. Alternatively, a householder and at least one corresponding visitor with the householder's permission can use the same smart door lock at different times to achieve sharing of unlocking rights. Alternatively, a management terminal of a car rental company and at least one car rental user can use the same smart door lock at different times.

[0279] And the smart door lock is not limited to being installed in the door of the house, but can also be installed in the door of the office, the door of the car, and the door of the safe. Of course, the remote password processing method of the present application is not limited to being used in door locks, but can also be applied to other types of smart locks. The embodiments of the present application do not make specific limitations on this. For the specific remote password processing method, please refer to the above embodiments, which will not be repeated here.

[0280] The present application also provides a device, which can be the above-mentioned smart door lock or the above-mentioned mobile phone. Fig.16 As shown, the device may include one or more processors 1010 , a memory 1020 , and a communication interface 1030 .

[0281] The memory 1020 and the communication interface 1030 are coupled to the processor 1010. For example, the memory 1020, the communication interface 1030 and the processor 1010 may be coupled together via a bus 1040.

[0282] The communication interface 1030 is used to perform data transmission with other devices. The memory 1020 stores a program. The program includes instructions, and when the instructions are executed by the processor 1010, the device executes the method in the embodiment of the present application.

[0283] Among them, the processor 1010 can be a processor or a controller, for example, it can be a central processing unit (CPU), a general processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof.

[0284] The bus 1040 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1040 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0285] The embodiment of the present application also provides a communication system, the communication system includes a smart door lock, a server and a mobile phone; the communication system is used to execute the relevant method steps in the above method embodiment. In an implementable manner, the above communication system may also include an NTP server and a router.

[0286] An embodiment of the present application further provides a readable storage medium, in which a program is stored. When the above-mentioned processor executes the program, the device executes the relevant method steps in the above-mentioned method embodiment.

[0287] The embodiment of the present application also provides a program product, which, when executed on a device, enables the device to execute the relevant method steps in the above method embodiment.

[0288] The smart door lock, smart storage device, storage medium or program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.

[0289] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A remote password processing method, characterized in that: Applied to the second device, the method includes: Detecting a first operation input in the password creation interface, displaying a first remote password, where the first remote password is generated by a random number and a timestamp, where the timestamp is used to represent the time when the first remote password is generated; detecting a setting operation for the validity period of the first remote password, and determining the validity period of the first remote password, wherein the setting operation is used to set at least two of the effective start time, the effective end time, or the effective duration of the validity period; When a second operation for the first remote password is detected, first parameter information corresponding to the first remote password is sent to a server, where the first parameter information includes the random number, the timestamp, and the validity period; the first parameter information is sent by the server to the first device, so that the first device obtains the first remote password according to the first parameter information and performs an unlocking operation according to the first remote password within the validity period.

2. The method according to claim 1, characterized in that: The method further comprises: Detecting a third operation input in the device management interface, displaying identification information of m successfully created remote passwords, where m is an integer not less than 1; An operation of changing a second remote password among the m successfully created remote passwords is detected, wherein the change includes deleting the second remote password or editing the validity period of the second remote password; Sending second parameter information corresponding to the second remote password after the change is processed to the server, and the second parameter information is sent by the server to the first device, so that the first device changes the saved second remote password according to the second parameter information; Receive first indication information from the server, where the first indication information is used to indicate that the second remote password is successfully changed.

3. The method according to claim 1, characterized in that The method further comprises: Detecting a third operation input in the device management interface, displaying identification information corresponding to m successfully created remote passwords according to m parameter information, wherein the m parameter information includes parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1; An operation of changing a second remote password among the m successfully created remote passwords is detected, wherein the change includes deleting the second remote password or editing the validity period of the second remote password; Sending change processing information corresponding to the second remote password to the server; wherein the change processing information is sent by the server to the first device, so that the first device performs the change processing on the second remote password according to the change processing information; Receive n parameter information from the server, the n parameter information including second parameter information corresponding to the second remote password after the first device performs a change process, where n is an integer not less than 1; The displayed identification information is updated according to the n parameter information.

4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In case of establishing a short-range communication connection with the first device, sending a first request to the first device; A key is received, which is sent by the first device in response to the first request.

5. The method according to claim 4, characterized in that The detecting a first operation and displaying a first remote password comprises: Upon detecting the first operation, sending a second request to the server, the second request being used to obtain the latest first encrypted data, the first encrypted data being generated by the first device using the key, the first encrypted data comprising an encrypted first random number and a second random number, and the latest first encrypted data comprising encrypted data obtained by updating the first encrypted data after the first device performs an unlocking operation; receiving the latest first encrypted data sent by the server, and decrypting the first encrypted data using the key to obtain the first random number and the second random number; Determine the random number generated latest between the first random number and the second random number as the random number; The first remote password is generated according to the random number and the timestamp, and the first remote password is displayed on the password creation interface.

6. The method according to claim 5, characterized in that The step of generating the first remote password according to the random number and the timestamp includes: sending a third request to the server; receiving the timestamp sent by the server in response to the third request; The first remote password is generated according to the random number and the timestamp.

7. A remote password processing method, characterized in that: Applied to a first device, the method includes: Receive first parameter information corresponding to the first remote password sent by the server; The first parameter information includes a random number, a timestamp, and a validity period corresponding to the remote password, wherein the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the validity period of the first remote password, wherein the setting operation is used to set at least two of the effective start time, the effective end time, or the effective duration of the validity period; An unlocking operation is performed within the validity period based on the first remote password, where the first remote password is generated by the random number and the timestamp.

8. The method according to claim 7, characterized in that The method further comprises: After successfully registering with the server, generating a first random number and a second random number; Encrypting the first random number and the second random number based on a key to obtain first encrypted data; The first encrypted data is saved, and the first encrypted data is sent to the server.

9. The method according to claim 8, characterized in that The method further comprises: After the unlocking operation is performed, updating the first encrypted data; The updated first encrypted data is sent to the server, wherein the updated first encrypted data includes the second random number and the third random number encrypted by using the key.

10. The method according to claim 8 or 9, characterized in that: The method further comprises: receiving a first request while establishing a short-range communication connection with the second device; The key is sent to the second device in response to the first request.

11. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: Acquire second parameter information, where the second parameter information corresponds to a second remote password; the second remote password is a remote password that has been successfully created; According to the second parameter information, change and process the second remote password; Sending first indication information to the server, where the first indication information is used to indicate that the second remote password is successfully changed.

12. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: Obtaining change processing information corresponding to m parameter information and a second remote password, wherein the m parameter information includes parameter information of m remote passwords that have been successfully created, and the second remote password is a remote password that has been successfully created; According to the change processing information corresponding to the second remote password, change the second parameter information corresponding to the second remote password in the m parameter information to obtain n parameter information, wherein the n parameter information includes the second parameter information after the change processing, and n is an integer not less than 1; The n parameter information is sent to the server.

13. The method according to claim 7, characterized in that The method further comprises: Obtain m parameter information, wherein the m parameter information includes parameter information of respective m remote passwords that have been successfully created; Based on a preset rule and the first parameter information, the m parameter information is updated to obtain j parameter information; the j parameter information includes the first parameter information, and j is an integer not less than 1; Sending the j parameter information to the server; The preset rule includes: if the random number of the first parameter information is a random number in the first encrypted data, then the first parameter information is added to the m parameter information; the first encrypted data is obtained by encrypting the first random number and the second random number based on a key after the first device successfully registers with the server; the first random number and the second random number are generated by the first device; and / or, if the validity period of the first parameter information is less than or equal to a preset period, adding the first parameter information to the m parameter information; And / or, if the m is less than or equal to a preset number, the first parameter information is added to the m parameter information.

14. The method according to claim 13, characterized in that The method further comprises: detecting an input operation that triggers entering a remote password mode, and sending a fourth request to the server; receiving the j parameter information sent by the server in response to the fourth request; The performing the unlocking operation within the validity period based on the first remote password includes: Based on the user's input, get the door lock password; Based on the door lock password and the first remote password, an unlocking operation is performed within the validity period.

15. The method according to claim 14, characterized in that The performing the unlocking operation within the validity period based on the door lock password and the first remote password includes: Obtaining the unlocking time, where the unlocking time is the time when the door lock password is input; Based on the unlocking moment, determine, among the j pieces of parameter information, f pieces of third parameter information whose validity period includes the unlocking moment, where f is less than or equal to j; Generate f unlocking passwords based on the random numbers and timestamps corresponding to the f third parameter information; When there is a password consistent with the door lock password among the f unlocking passwords, an unlocking operation is performed, and the password consistent with the door lock password is the first remote password.

16. The method according to claim 14 or 15, characterized in that The sending of the fourth request to the server further includes: Output acquisition prompt information, wherein the acquisition prompt information is used to prompt that parameter information corresponding to the successfully created remote password is being acquired; The method further comprises: After sending the fourth request to the server, when the parameter information corresponding to the successfully created remote password is not received, a connection prompt message is output; the connection prompt message is used to prompt that the first device has not established a communication connection with the server.

17. A device, characterized in that The device includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and when the program is executed by the processor, the device executes the remote password processing method as described in any one of claims 1-6, or the remote password processing method as described in any one of claims 7-16.

Citation Information

Patent Citations

  • Audio intelligent lock capable of connecting to network and mobile phone terminal authorization unlocking method

    CN105513184A

  • Unlocking password processing method, door lock and foreground server

    CN106447863A

  • Wireless unlocking method and system

    CN108111998A

  • Equipment password generation and verification method, device and equipment, and storage medium

    CN110517389A

  • Reservation authorization method and device and reservation authorization verification method and device

    CN110689645A