Remote password processing method and device

By remotely generating and managing remote passwords generated by random numbers and timestamps for smart door locks, the problem of temporary passwords requiring close-range communication connections in existing technologies is solved, enabling flexible setting and reuse, and improving user experience and security.

CN119131933BActive Publication Date: 2025-10-28HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing smart door locks require a short-range communication connection to set temporary passwords when the homeowner is not in the local area, resulting in poor operation convenience and low flexibility. They cannot be reused and have a fixed validity period, which restricts the user's movement.

Method used

A remote password processing method is adopted, which generates a remote password by generating a random number and a timestamp through a second device. The validity period can be set and reused, and password changes and deletions are supported. The parameter information is synchronized by the server to avoid close-range communication.

Benefits of technology

It improves the ease and flexibility of user operation, enhances the security and reliability of remote passwords, and reduces the limitations of user operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119131933B_ABST
    Figure CN119131933B_ABST
Patent Text Reader

Abstract

This application provides a remote password processing method and device, relating to the field of communication technology. The method includes: a second device detecting a first operation input in a password creation interface and displaying a first remote password; the second device 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 following: a valid start time, a valid end time, or a valid duration. Then, the second device detects a second operation related to the first remote password and sends first parameter information corresponding to the first remote password to a server. The first parameter information is sent by the server to the first device, enabling the first device to obtain the first remote password based on the first parameter information and perform an unlocking operation based on the first remote password within the validity period. The second device does not need to establish a short-range communication connection with the first device each time to set a remote password, improving the convenience of user operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a remote cryptographic processing method and device. Background Technology

[0002] Smart locks are now widely used in many places. Users can use the corresponding application to set a frequently used unlocking password for the smart lock.

[0003] Typically, when the homeowner of a smart lock is not in the local area and a visitor needs to unlock it, the homeowner can remotely set a temporary password for the smart lock, allowing visitors to open it using that password. However, setting a temporary password requires the user to establish a Bluetooth connection between their mobile phone and the smart lock. This results in significant limitations and poor ease of use during the use of smart locks. Summary of the Invention

[0004] This application provides a remote password processing method and device that allows for remote password setting of devices without requiring a short-range communication connection. Furthermore, the set remote password can be reused within its validity period, providing users with a smooth user experience.

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

[0006] A first aspect provides a remote password processing method applied to a second device. The method includes: the second device detecting a first operation input in a password creation interface, displaying a first remote password, the first remote password being generated by a random number and a timestamp, the timestamp representing the time the first remote password was generated. Next, the second device detects a setting operation for the validity period of the first remote password, determining the validity period of the first remote password, the setting operation being used to set at least two of the following: a valid start time, a valid end time, or a valid duration. Then, the second device detects a second operation for the first remote password, sending first parameter information corresponding to the first remote password to a server. The first parameter information includes a random number, a timestamp, and a validity period; the first parameter information is sent from the server to the first device, causing the first device to obtain the first remote password based on the first parameter information and perform an unlocking operation based on the first remote password within the validity period.

[0007] In other words, the second device can set the first remote password without establishing a short-range communication connection with the first device. Furthermore, this remote password can be reused within its validity period, the length of which is not fixed. Users can use the second device to view and remotely set the first remote password, and can also reuse the first remote password to unlock the first device within its validity period. This avoids the limitations imposed by using the first device and improves user convenience.

[0008] In one possible implementation of the first aspect, the method further includes: a second device detecting a third operation input in a device management interface, displaying identification information of m successfully created remote passwords, where m is an integer not less than 1. Next, the second device detects an operation to modify a second remote password among the m successfully created remote passwords, and sends the modified second parameter information corresponding to the modified second remote password to a server. The modification includes deleting the second remote password or editing its validity period. The second parameter information is sent by the server to the first device, enabling the first device to modify the stored second remote password according to the second parameter information. Then, the second device receives first indication information from the server, indicating successful modification of the second remote password.

[0009] As can be seen, the second device can change the successfully created remote password and synchronize the changed parameter information to the first device to maintain the consistency of information between the two devices. This embodiment of the application supports changing successfully set remote passwords, deleting successfully set remote passwords, and modifying the validity period of successfully set remote passwords, thus improving the user's operation process for remote passwords and enhancing user efficiency.

[0010] In one possible implementation of the first aspect, the method further includes: a second device detecting a third operation input in a device management interface, displaying identification information corresponding to m successfully created remote passwords based on m parameter information, where the m parameter information includes the parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1. Next, the second device detects an operation to modify a second remote password among the m successfully created remote passwords, and sends modification information corresponding to the second remote password to a server; wherein the modification information is sent by the server to the first device, causing the first device to modify the second remote password according to the modification information. The modification includes deleting the second remote password or editing the validity period of the second remote password.

[0011] Then, the second device can receive n parameter information from the server and update the displayed identification information based on the n parameter information. The n parameter information includes the second parameter information corresponding to the change of the second remote password by the first device, where n is an integer not less than 1.

[0012] As can be seen, upon detecting the third operation, the second device can display the identifier information of the successfully created remote password. Next, 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. Thus, the first device can change the successfully created remote password according to the change processing information. It is understood that the change processing information may include the change result corresponding to the successfully created remote password or the corresponding change processing instruction. The second device can also receive the changed parameter information sent by the server and update the displayed identifier information according to the changed parameter information.

[0013] In other words, 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 from the first device to maintain consistency of information between the two devices. This embodiment of the application supports changing successfully set remote passwords, allowing for the deletion of successfully set remote passwords and modification of their validity period, thus improving the user's operation process for remote passwords and enhancing the user experience.

[0014] In one possible implementation of the first aspect, the method further includes: the second device can send a first request to the first device if a short-range communication connection has been established with the first device. The second device can also receive a key sent by the first device in response to the first request.

[0015] As can be seen, the second device can obtain the key after establishing a short-range communication connection with the first device. The key is used by the second and first devices to encrypt and / or decrypt data during transmission. The second device can obtain the key from the first device and, based on the key, obtain a random number used to generate the first remote password. In other words, since the transmission of data between the second and first devices involves user privacy data, using the key to encrypt and transmit user data improves the security of user privacy data transmission.

[0016] In one possible implementation of the first aspect, during the process of detecting the first operation and displaying 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, which is generated by the first device using a key, and includes an encrypted first random number and a second random number; the latest first encrypted data includes the encrypted data obtained by the first device after performing the unlocking operation by updating the first encrypted data.

[0017] Next, the second device can receive the latest first encrypted data sent by the server, decrypt the first encrypted data using the key, and obtain a first random number and a second random number. The random number generated most recently between the first and second random numbers is determined as the random number used to generate the first remote password. Then, the second device can generate the first remote password based on the random number and the timestamp, and display the first remote password on the password creation interface.

[0018] As can be seen, during the generation of 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 generated most recently from the first encrypted data. It then generates the first remote password based on this random number and a timestamp. If the same random number is used to generate the corresponding remote password each time, the generated remote passwords will have high similarity, resulting in low communication security. By selecting 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 updating the first encrypted data after the first device performs the unlocking operation. The latest first encrypted data obtained by the second device changes with the number of unlocking operations. In other words, the random number used to generate the remote password is also updated. This avoids high similarity between generated remote passwords and improves the communication security of the remote password.

[0020] In one possible implementation of the first aspect, during the process of generating the first remote password based on a random number and a timestamp, the second device may send a third request to the server. Then, the second device receives the timestamp from the server's response to the third request and generates the first remote password based on the random number and the timestamp.

[0021] As can be seen, during the generation of the first remote password, the second device can synchronize time with the server and obtain a timestamp, which represents the generation time of the first remote password. The second device can then generate the first remote password using a random number and the timestamp. This avoids generating remote passwords with high similarity and improves communication security.

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

[0023] As can be seen, the first device can receive the first parameter information corresponding to the first remote password sent by the server. Then, based on the first remote password, the first device performs an unlocking operation within the validity period. The first remote password is generated from the random number and timestamp in the first parameter information. The first device can set its first remote password without establishing a close-range communication connection with the second device. The first device can repeatedly perform the operation based on the first remote password within the validity period. This improves the user's operation process for remote passwords and enhances user efficiency.

[0024] In one possible implementation of the second aspect, the method further includes: after successfully registering with the server, the first device generates a first random number and a second random number. The first and second random numbers are then encrypted using a key to obtain first encrypted data. The first device then saves the first encrypted data and sends it to the server.

[0025] Furthermore, after performing the unlocking operation, the first device can update the first encrypted data and send the latest first encrypted data to the server. The latest first encrypted data includes a second random number and a third random number encrypted using a key.

[0026] As can be seen, after successfully registering with the server, the first device encrypts a first random number and a second random number to obtain the first encrypted data. This first encrypted data is then synchronized to the server. By setting two random numbers in the first encrypted data, the second device can subsequently choose between the two random numbers and generate a first remote password based on the selected random number. This avoids generating remote passwords with high similarity, which would result in lower communication security.

[0027] Furthermore, 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 this embodiment of the application can employ a double random number update mechanism, retaining the random number generated later in the encrypted data and adding a newly generated random number. In this way, a remote password is generated based on the latest first encrypted data each time, improving the reliability and stability of the remote password.

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

[0029] As can be seen, the first device can send a key to the second device after establishing a short-range communication connection. The key is used by the second and first devices to encrypt and / or decrypt data during transmission. The first device can send the key to the second device, enabling the second device to decrypt received encrypted data based on the key. For example, the second device can obtain a random number used to generate a first remote password based on the key. Thus, since the transmission of data between the second and first devices involves user privacy data, encrypting the user data using the key improves the security of user privacy data transmission.

[0030] In one possible implementation of the second aspect, the method further includes: a first device acquiring second parameter information, the second parameter information corresponding to a second remote password; the second remote password being a successfully created remote password. Then, the first device can, based on the second parameter information, change the second remote password and send first indication information to the server, the first indication information indicating successful change of the second remote password.

[0031] As can be seen, the second parameter information corresponds to the information after the second remote password has been modified. The first device can modify 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 indicating successful modification to the server to ensure consistency with the information in the second device. This application embodiment supports modifying successfully set remote passwords, can delete successfully set remote passwords, and can modify the validity period of successfully set remote passwords, thus improving the user's operation process for remote passwords and enhancing user efficiency.

[0032] In one possible implementation of the second aspect, the method further includes: the first device can obtain m parameter information and change processing information corresponding to the second remote password, wherein the m parameter information includes the parameter information of each of the m successfully created remote passwords, and the second remote password is the successfully created remote password.

[0033] Next, the first device can modify the second parameter information corresponding to the second remote password among the m parameter information based on the modification processing information corresponding to the second remote password, obtaining n parameter information, where n is an integer not less than 1, including the modified second parameter information. Then, the first device sends the n parameter information to the server.

[0034] As can be seen, the first device can modify a successfully created remote password based on the modification information corresponding to that password. It is understood that the modification information can include the modification result or the corresponding modification instruction for the successfully created remote password. The first device can then send the modified result to the server for subsequent synchronization to the second device. This provides users with the ability to modify successfully created remote passwords, improving the user's remote password operation process and increasing operational efficiency.

[0035] In one possible implementation of the second aspect, the method further includes: a first device acquiring m parameter information, the m parameter information including parameter information for each of the m successfully created remote passwords. Then, the first device updates the m parameter information based on preset rules and the first parameter information to obtain j parameter information. The j parameter information is then sent to the server. Here, the j parameter information includes the first parameter information, and j is an integer not less than 1.

[0036] The preset rules include: if the random number of the first parameter information is the same as 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 effective duration of the first parameter information is less than or equal to the preset duration, then the first parameter information is added 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] As can be seen, the first device can update the parameter information of a successfully created remote password according to 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 duration, 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, this application embodiment can avoid adding invalid parameter information (such as parameter information that does not correspond to a password associated with the first device) to the parameter information of the successfully created remote password. This improves the reliability and security of the remote password setting process and enhances the user experience.

[0040] In one possible implementation of the second aspect, the method further includes: the first device can detect an input operation that triggers entry into the 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, during the process of sending the fourth request to the server, the first device also includes: outputting a retrieval prompt message, which is used to indicate that it is retrieving parameter information corresponding to the successfully created remote password.

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

[0043] As can be seen, the first device can detect when a user triggers the input operation to enter remote password mode and retrieve the parameter information corresponding to the successfully created remote password from the server. During the retrieval process, it provides prompts to the user. If the first device fails to retrieve the parameter information corresponding to the successfully created remote password, it can also provide a connection prompt to the user, indicating that the first device has not established a communication connection with the server. This provides users with more user-friendly functionality and improves the interactivity between the user and the first device.

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

[0045] Specifically, during the unlocking operation based on the door lock password and the first remote password within the validity period, the first device can obtain the unlocking time, which is the time when the door lock password was entered. Next, based on the unlocking time, the first device can determine f third-order parameters from j parameter information whose validity period includes the unlocking time, where f is less than or equal to j. Then, the first device generates f unlocking passwords based on the random numbers and timestamps corresponding to the f third-order parameters. If one of the f unlocking passwords matches the door lock password, the unlocking operation is performed. The password matching the door lock password is the first remote password.

[0046] As can be seen, during the unlocking operation based on the first remote password within its validity period, the first device can first filter the parameter information corresponding to the successfully created remote password based on the unlocking time, selecting at least one parameter information whose validity period includes the unlocking time. Then, based on the random number and timestamp from the selected parameter information, at least one unlocking password is generated. If at least one of the unlocking passwords matches the door lock password, the unlocking operation is performed. It is understood that the matching password is the first remote password. The first remote password does not need to be transmitted between devices; instead, it is generated through random numbers and timestamps, improving the reliability and security of the unlocking operation process.

[0047] The third aspect provides a remote password processing method applied to a server, the method comprising: the server receiving first parameter information corresponding to a first remote password sent by a second device.

[0048] 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. The timestamp is used to characterize 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. The setting operation is used to set at least two of the following: the valid start time, the valid end time, or the valid duration of the validity period.

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

[0050] As can be seen, 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 can perform the unlocking operation based on 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 remotely set the remote password for the first device without transmitting the generated remote password. This improves the security of the remote password and enhances the user experience.

[0051] In one possible implementation of the third aspect, the method further includes: a server receiving first encrypted data sent by a first device, the first encrypted data being obtained by encrypting a first random number and a second random number based on a key; the first random number and the second random number being generated by the first device.

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

[0053] As can be seen, the server can save the first encrypted data sent by the first device and subsequently synchronize it to the second device, so that the second device can generate a first remote password based on the random number generated most recently in the first encrypted data. In this embodiment, by selecting from two random numbers, the high similarity of each generated remote password is avoided, thus improving the communication security of the remote password.

[0054] Furthermore, after the first device performs the unlocking operation, the server continuously receives and saves the latest encrypted data sent by the first device. It can be seen that this embodiment employs a double random number update mechanism, retaining the random number generated later in the encrypted data and adding a newly generated random number. In this way, a remote password is generated based on the latest encrypted data each time, improving the reliability and stability of the remote password.

[0055] The fourth aspect provides an apparatus including a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores a program including instructions that, when executed by the processor, cause the apparatus to perform the remote cryptographic processing method of the first aspect described above.

[0056] The fifth aspect provides an apparatus including a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores a program including instructions that, when executed by the processor, cause the apparatus to perform the remote cryptographic processing method of the second aspect described above.

[0057] The sixth aspect provides a server, which includes a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores a program, which includes instructions that, when executed by the processor, cause the server to perform the remote cryptographic processing method of the third aspect described above.

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

[0059] Eighthly, a readable storage medium is provided, which stores instructions that, when executed on a device, enable the device to perform the remote cryptographic processing method as described in the first aspect, or the remote cryptographic processing method as described in the second aspect, or the remote cryptographic processing method as described in the third aspect. Attached Figure Description

[0060] Figure 1 This application provides a schematic diagram of the structure of a communication system according to 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 this application;

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

[0063] Figure 4 This application provides a schematic diagram of an interface for adding a device.

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

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

[0066] Figure 7 A schematic diagram of a first cryptographic interface provided in an embodiment of this application;

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

[0068] Figure 9 An interactive schematic diagram of a remote password generation process provided for an embodiment of this application;

[0069] Figure 10 This application provides a schematic diagram of an interface for first information.

[0070] Figure 11This is a schematic diagram of an interface for providing second information, as provided in an embodiment of this application.

[0071] Figure 12 A schematic diagram of a second cryptographic interface provided in an embodiment of this application;

[0072] Figure 13 This is a schematic diagram of an interface for changing parameter information provided in an embodiment of this application;

[0073] Figure 14 An interactive schematic diagram of a password unlocking process provided in an embodiment of this application;

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

[0075] Figure 16 This is a schematic diagram of the structure of a device provided in an embodiment of this application. Detailed Implementation

[0076] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single 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, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" are not necessarily different. Meanwhile, in the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is being used as an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of terms such as "exemplary" or "for example" is intended to present related concepts in a concrete manner for ease of understanding.

[0077] Furthermore, the network architecture and business scenarios described in the embodiments of this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided in the embodiments of this application. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.

[0078] Smart locks are widely used in many places. These locks offer users various unlocking methods, a smart peephole function, voice prompts, and low battery alerts. Users can also interact with the smart lock via devices such as smartphones. For example, users can bind the smart lock, set passwords, and view the outside view through the smart lock's app.

[0079] Typically, users can set a long-term password for the smart lock using the corresponding application. If the homeowner is not located locally and a visitor needs to unlock the lock, the homeowner can remotely set a temporary password for the smart lock, which the visitor can then use to unlock it. For ease of description, the application corresponding to the smart lock will be referred to as the lock application from now on.

[0080] Specifically, when the door lock application is bound to and synchronized with the smart lock, both the application and the smart lock can use the same password generation algorithm and store the same preset parameters. During smart lock usage, the homeowner can activate the door lock application's function to generate a temporary password. The application generates a temporary password based on the password generation algorithm and preset parameters. The homeowner then shares this temporary password with visitors, who enter it on the smart lock. The smart lock uses the temporary password to inversely solve for the preset parameters and matches them against the lock; if a match is found, the lock unlocks.

[0081] However, temporary passwords typically have a fixed validity period and cannot be reused. For example, they are valid for 30 minutes and are one-time passwords. Furthermore, once created, temporary passwords cannot be deleted or modified. This restricts the actions of both the homeowner and visitors. For instance, visitors can only visit within 30 minutes. Or, if a visitor cannot visit within 30 minutes, the homeowner must set a new temporary password. Consequently, users face limitations in using smart locks, experiencing low flexibility and poor ease of operation.

[0082] Furthermore, during the matching process with preset parameters, smart locks also attempt to compare the user's frequently used password (habitual password). Similarly, when unlocking based on a habitual password, the smart lock compares the habitual password with the preset parameters, resulting in a longer unlocking time. This, in turn, reduces the user experience.

[0083] As mentioned above, currently, smart locks can only be remotely set with a one-time temporary password. In scenarios where the homeowner is not located near the smart lock, such as in rented properties or when visitors arrive, the homeowner, tenant, and visitor all need to perform cumbersome operations, and their movements are restricted. This results in a poor user experience for smart lock users.

[0084] Based on the above, this application provides a remote password processing method and device. In this method, a second device can display a first remote password by inputting a first operation in a password creation interface. The first remote password is generated by a random number and a timestamp, where the timestamp represents the time the first remote password was generated. Next, the second device can also detect a setting operation for the validity period of the first remote password, determine the validity period of the first remote password, and set at least two of the following: a valid start time, a valid end time, or a valid duration.

[0085] The second device can then detect the second operation targeting 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 the first remote password based on the random number and 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 length of the validity period is not fixed. Furthermore, the second device can also edit the validity period of the first remote password and delete the first remote password.

[0086] For example, in a rental property scenario, if the homeowner is not near the property and is far from the smart lock, the homeowner can use their mobile phone to create and generate a remote password for the smart lock and share this password with the tenant. The mobile phone then synchronizes the parameters of the remote password to the server and the smart lock. The tenant can then unlock the smart lock using the shared remote password. Furthermore, the homeowner can edit the expiration date of the remote password and delete any created remote passwords at any time.

[0087] As can be seen, this application embodiment supports users in setting remote passwords for smart locks, and these remote passwords can be reused within their validity period. It also supports users in setting the validity period of the remote password arbitrarily, with the corresponding time length being variable. This avoids significant limitations during the use of smart locks and improves the convenience of user operation.

[0088] The remote cryptographic processing method provided in this application can be applied to communication systems. See [link / reference] Figure 1The communication system provided in this application includes a first device 101 (e.g., a user's smart door lock), a second device 102 (e.g., a user's mobile phone) and a server 103.

[0089] In some embodiments, a wireless communication connection can be established between the first device 101 and the second device 102. For example, the wireless communication connection includes, but is not limited to, short-range wireless communication connections such as Bluetooth, near-field communication, or wireless local area network (WLAN) communication. In one implementation, a Bluetooth communication connection can be established between the first device 101 and the second device 102, whereby the second device 102 can generate a remote password and send the parameter information corresponding to the remote password to the first device 101 using the 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 communication services between the first device 101 and the second device 102 to complete communication between the devices. In one possible implementation, the second device 102 can also send parameter information corresponding to the remote password to the first device 101 via the server. The server 103 can be implemented as a server cluster consisting of multiple servers, or as a single server.

[0091] It should be noted that the above communication system may not have a server 103, and this application embodiment does not specifically limit this.

[0092] The wireless communication technologies used to establish wireless communication connections include, but are not limited to, at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (e.g., classic Bluetooth or Bluetooth Low Energy (BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM), and infrared (IR).

[0093] In some embodiments of this application, users can use their mobile phones to set one or more remote passwords for a smart lock. The validity period of this remote password is set by the user and can be modified. Successfully created remote passwords can also be deleted. Specifically, after the smart 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 both the server and the smart lock. Similarly, the mobile phone can also send change processing information corresponding to the remote password to both the server and the smart lock.

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

[0095] It is understood that the first device in this application example may be a smart security device such as a smart door lock and a smart password lock, and the second device may include a smartphone, tablet computer, personal computer (PC), personal digital assistant (PDA), smartwatch, netbook, wearable device, augmented reality (AR) device, virtual reality (VR) device, in-vehicle device, smart screen, smart car, smart speaker, robot, etc. This application does not impose any special restrictions on the specific form of the first device and the second device.

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

[0097] The communication system provided in this application embodiment may further include a time server 104 (Network Time Protocol, NTP). The NTP server is used to provide accurate network time for 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 a time server 104; the function of synchronizing network time can be integrated into server 103. Alternatively, server 103 may include the time server 104 and a server cluster.

[0099] The communication system provided in this application embodiment may also include a third device 105 (such as a router) in addition to the first device 101 and the second device 102. Communication connections can be established between the first device 101 and the second device 102, and between the first device 101 and the server 103, by the third device 105. The third device 105 can provide network access services to devices connected to it.

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

[0101] The first device 101 and the second device 102 in the embodiments of this application can be implemented using different or the same devices. For example, the first device 101 in the embodiments of this application can be implemented using... Figure 2 It is implemented using the hardware architecture described in the document.

[0102] The following describes the smart door lock involved in the embodiments of this application.

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

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

[0105] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the smart lock. In other embodiments of this application, the smart lock may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0106] Processor 210 may include one or more processing units, such as application processors, modem processors, graphics processors, image signal processors, controllers, memory, video codecs, digital signal processors, baseband processors, and / or neural network processors. These different processing units may be independent devices or integrated into one or more processors.

[0107] The controller can serve as the central nervous system and command center of a smart lock. Based on instruction operation codes and timing signals, the controller generates operation control signals to control the fetching and execution of instructions.

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

[0109] The following uses 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 examples, and describes in detail the technical solution provided by the example in this application with reference to the accompanying drawings.

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

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

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

[0113] In some embodiments of this application, after installing a smart lock, the user can use a mobile application to Bluetooth-bind and register the smart lock. It is understood that after installation, the mobile phone needs to pair with the smart lock via Bluetooth and control the smart lock to perform the registration operation.

[0114] It should be noted that both the mobile phone and the smart door lock must have Bluetooth and WLAN connectivity enabled before Bluetooth pairing and device registration to facilitate the process.

[0115] For example, users can add a smart door lock to their mobile phone's smart living application to complete the Bluetooth binding and device registration process. Figure 4 This is a schematic diagram of an interface for adding a device, provided as an embodiment of this application. Figure 4 As shown in (A) of this application, it is a front view of a mobile phone provided in an embodiment of this application. The mobile phone's display screen shows a smart living application icon 400, which the user can click on to access other applications. Figure 4As shown in (B), in response to a click on the smart living application icon, the mobile phone displays the user interface of the smart living application. The user interface may include pre-configured scene names, home devices, and their corresponding status information. For example, home devices and their corresponding status information include the TV in the living room (online), the TV in the master bedroom (online), and the stereo in the master bedroom (offline). Pre-configured scene names include the "coming home" scene, the "sleep" scene, and the "leaving home" scene. The user interface may also include icons of the configured devices.

[0116] It is understandable that the configured device can be a device associated with a user account. Users need to log in to their corresponding user account in the Smart Life app. Furthermore, the pre-configured device needs to be bound to the user account to complete the configuration. If the user is not logged into the Smart Life app, they need to log in to their corresponding user account and enter their username and password.

[0117] See also Figure 4 In section (B), users can also click the "+" icon on the user interface to add devices and create scenes with a single click. For example, ... Figure 4 As shown in (C), after the user clicks the "+" icon, the phone responds by displaying a drop-down menu on the screen. The drop-down menu includes an Add Device control 401, a Share Device control 402, a Create Scene control 403, and a Connect to a Third-Party Platform control 404. The user can click the pre-configured Add Device control 401 in the drop-down menu to trigger entry into the Add Device interface. Figure 4 As shown in (D), the mobile phone responds to the user's click on the Add Device control 401 and displays the Add Device interface.

[0118] Specifically, in response to the user's click on the Add Device control 401, the mobile phone sends a scan request. This scan request is used to scan for smart locks near the mobile phone whose Bluetooth is in a connectable state. The scan request may include the mobile phone's Bluetooth address. During the mobile phone's search for nearby smart locks, the smart lock can send broadcast data packets. Specifically, the smart lock can send broadcast data packets through its internal Bluetooth module. This broadcast data packet can be used by the smart lock to announce to nearby devices that its Bluetooth is in a connectable state. The broadcast data packet may contain the smart lock's Bluetooth address. When the mobile phone receives the broadcast data packet from the smart lock, it displays the corresponding information of the smart lock in the Add Device interface.

[0119] See also Figure 4In section (D), the device addition interface includes the device name, connection control 405, rescan control, manual addition control for manual addition method, and QR code addition control for QR code addition method. For example, a user can click the connection control 405 corresponding to the smart lock to perform Bluetooth pairing. In response to the user's click on the connection control 405, the mobile phone displays the corresponding connection interface and sends a Bluetooth pairing request to the smart lock corresponding to the connection control 405 to achieve Bluetooth pairing with the smart lock.

[0120] Continue to see Figure 5 In section (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 step control 503. The WLAN name display box 501a displays the WLAN name, the WLAN password display box 501b displays the WLAN password, and the pairing code display box 502 displays the pairing code to be used for Bluetooth pairing. For example, the pairing code is 123456. The user can select the correct WLAN name, enter the correct WLAN password, and obtain the pairing code.

[0121] In some embodiments of this application, the smart lock can receive a Bluetooth pairing request sent by a mobile phone and display a prompt interface. In one possible implementation, see [link to implementation details]. Figure 6 In step (A), the prompt interface 601 can display the pairing code to be entered. Once the user enters the correct pairing code, the smart lock, upon receiving the correct pairing code, will pair with the mobile phone via Bluetooth.

[0122] In another possible implementation, see Figure 6 In section (B), the prompt interface may include a prompt message 602, a confirmation control 603, and a cancellation control 604. The prompt message 602 prompts whether the user is sure they want to pair the smart lock with the mobile phone via Bluetooth. The confirmation control 603 confirms the pairing, and the cancellation control 604 rejects the pairing. The smart lock then responds to the user's action on the confirmation control 603 and pairs with the mobile phone via Bluetooth. This application embodiment does not limit the specific implementation process of pairing the mobile phone and smart lock via Bluetooth.

[0123] Continue to see Figure 5 In step (B), the user needs to select the WLAN name and enter the corresponding WLAN password in the connection interface, and enter the pairing code in the pairing code input box. Then, the user can check the box indicating that pairing code input is complete and click the next button (503) to trigger the phone to send a connection command.

[0124] In some embodiments of this application, the mobile phone, in response to the user's click operation on the next control, sends a connection command to the smart lock. Based on the connection command, the smart lock sends a registration request to the server. The server then receives the registration request from the smart lock, establishes a communication connection with the smart lock, and sends a first notification message to the smart lock, which notifies that registration has been successful.

[0125] During the process of establishing a communication connection with the server, the smart lock can establish a communication connection via a router. The router can provide network access services for devices connected to it; that is, a mobile phone and a smart lock can connect to the same network (like a home WLAN) through a router. The mobile phone and smart lock can also connect to the server via a router. It should be noted that data transmitted between the mobile phone and the smart lock via WLAN communication can be relayed to the other end through a router, or it can be transmitted without a router.

[0126] Understandable. Figures 4-6 This is merely an example of Bluetooth pairing and device registration between a mobile phone and a smart lock provided in this application, and should not be construed as limiting this application.

[0127] The mobile phone and smart lock can also establish a communication connection through other methods. Furthermore, the embodiments of this application are not limited to establishing a communication connection between the smart lock and the server through a router, nor are they limited to establishing a communication connection between the mobile phone, smart lock, and server through a router. The mobile phone and smart lock can also access the server through other types of network access devices. Moreover, the mobile phone and smart lock are not limited to the aforementioned WLAN communication connection; they can also transmit data through other high-bandwidth communication connections.

[0128] In some embodiments of this application, after successfully registering with the server, the smart lock generates a first random number and a second random number. The first and second random numbers are then encrypted using a key to obtain first encrypted data. The smart lock then sends the first encrypted data to the server. The first encrypted data includes the encrypted first and second random numbers.

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

[0130] In one feasible approach, the smart lock can confirm successful registration upon receiving a first notification from the server. After successful registration, the smart lock generates a first random number and a second random number, and encrypts both random numbers using a key to obtain first encrypted data.

[0131] In another possible implementation, the server can generate a first random number and a second random number, and send both to the smart lock. The smart lock then encrypts the first and second random numbers based on a key to obtain the first encrypted data.

[0132] It should be noted that the random number can be generated by the smart lock or by other devices. Furthermore, the random number in this embodiment includes, but is not limited to, integers, and can also be other numeric types (such as negative numbers, decimals, and fractions). The length of the random number can be 6 bits, 48 ​​bits, 128 bits, or other values. This embodiment does not specifically limit the device used to generate the random number, the type of random number, or the number of random numbers encrypted in the encrypted data.

[0133] In some embodiments of this application, the first random number and the second random number have a temporal order, with the first random number being generated earlier than the second random number. The first and second random numbers may each have their own first identifier and second identifier, which are used to determine the temporal order of each random number. It is conceivable that the first encrypted random number is also generated earlier than the second encrypted random number.

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

[0135] For example, the first identifier can be a first time identifier such as 12.33, and the second identifier can be a second time identifier such as 12.34. In this way, the time order between two random numbers can be determined based on the time of the first time identifier and the second time identifier.

[0136] For 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. Here, 0 can be used to represent the position of the random number that occurs earlier in time, and 1 can be used to represent the position of the random number that occurs later in time. In this way, the temporal order between two random numbers can be determined based on the first and second position identifiers. It should be noted that this application does not limit the implementation form of the identifiers or the implementation form of the temporal relationship between different random numbers.

[0137] S302. When the mobile phone establishes a short-range communication connection with the smart door lock, it obtains the key.

[0138] In some embodiments of this application, the mobile phone and the smart lock can successfully bind via Bluetooth to establish a Bluetooth communication connection. This Bluetooth communication connection can be used for data interaction between the mobile phone and the smart lock (such as fingerprint data, facial data, and password-related data). When exchanging data using this Bluetooth communication connection, the mobile phone and the smart lock can encrypt this data using an agreed-upon key. The mobile phone can obtain the key after establishing a communication connection with the smart lock.

[0139] In one possible implementation, after detecting the initial establishment of a Bluetooth communication connection with the smart lock, the mobile phone can send a first request to the smart lock to obtain a key. This key is used by the mobile phone and the smart lock to encrypt and / or decrypt data during transmission. The smart lock then sends the key back to the mobile phone based on the first request.

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

[0141] One scenario for establishing an initial Bluetooth connection between a mobile phone and a smart lock is after successful registration, where the smart lock records the user's biometric information. In other words, after the user completes the Bluetooth pairing and device registration process with their mobile phone and smart lock, they can control the phone to establish an initial Bluetooth connection and record their biometric information on the smart lock's side. This biometric information can include fingerprints, retinal images, voiceprints, and facial images. After this initial Bluetooth connection is established, the mobile phone can obtain the key.

[0142] In some embodiments of this application, the mobile phone and smart door lock may change the aforementioned key periodically or irregularly.

[0143] In one feasible approach, the smart lock can periodically change its key, using the new key to encrypt random numbers. After changing the key, if the smart lock detects a Bluetooth connection with a mobile phone, it will send the new key to the phone. For example, the smart lock could change its key monthly, and after each key change, it would send the new key to the phone whenever a Bluetooth connection is established. Understandably, after changing the key, the smart lock can also re-encrypt the random numbers and send the updated encrypted data to the server.

[0144] In another possible approach, the mobile phone can periodically send a first request to the smart lock to obtain an updated key after detecting a Bluetooth communication connection with the smart lock. For example, the mobile phone can send a first request to the smart lock to obtain an updated key every time it detects a Bluetooth communication connection with the smart lock.

[0145] It should be noted that the communication connection between the mobile phone and the smart lock in this application embodiment 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. Furthermore, this application embodiment does not limit the specific implementation method of the agreed key between the mobile phone and the smart lock for encrypting data using the key.

[0146] As can be seen, since the data exchanged between the mobile phone and the smart lock involves user privacy data, the embodiments of this application use 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 phone detects the first operation and displays the first remote password.

[0148] In some embodiments of this application, users can use the remote password function of a smart lock in a smart living application to create a remote password for the smart lock even when they are not near it.

[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. This fifth request requests the server to return m parameter information corresponding to the smart lock. Upon receiving the fifth request from the mobile phone, the server sends the m parameter information back to the mobile phone. The mobile phone then obtains the m parameter information and displays the identification information corresponding to the m successfully created remote passwords. It should be noted that the m parameter information on the server comes from the smart lock. The identification information corresponding to the successfully created remote passwords may include the password identifier and the password validity period.

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

[0151] In some embodiments of this application, the user may be using the remote password function of the smart lock before. In such cases, it is conceivable that the user has previously created at least one remote password. Thus, the mobile phone sends a fifth request to the server, which then locates and sends the successfully created remote password back to the mobile phone.

[0152] In some embodiments of this application, the user may be using the remote password function of the smart lock for the first time. In such a scenario, it is conceivable that the user has never created a remote password before.

[0153] In one possible implementation, the mobile phone sends a fifth request to the server. If the server detects that the fifth request has been 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 there is currently no successfully created remote password.

[0154] In another possible implementation, the mobile phone sends a fifth request to the server. If the server detects that no remote password has been successfully created, it sends a second notification message to the mobile phone. The mobile phone can then display the first password interface based on the second notification message.

[0155] The following is combined with Figure 7 Examples are provided for the first password interface when a user enters the interface for the first time or when they enter it for the second time.

[0156] In scenarios where the user is not using the remote password function for the first time, see [link / reference]. Figure 7 In section (A), users can use the remote password function in the smart lock's device management interface. The device management interface includes the smart lock's corresponding device icon, device status, functional areas, and a record area. The functional areas include user management controls, remote password controls, power management controls, and other functional controls. Users can click the remote password control to trigger access to the first password interface. The mobile phone detects the user's click on the password control and displays the first password interface.

[0157] Figure 7 (B) in the diagram is a schematic of a first cryptographic interface provided in an embodiment of this application. Figure 1 See also Figure 7 In section (B), the first password interface includes a first control corresponding to a successfully created remote password and a second control corresponding to creating a new 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. Users can click on the second control to trigger the password creation interface, thus creating a remote password.

[0158] In the scenario where a user is using the remote password function for the first time, see [link / reference]. Figure 7 In section (C), the first password interface includes a second control for creating a remote password. Users can also click on this second control to trigger the password creation interface and create a remote password.

[0159] In some embodiments of this application, a user can trigger the entry into a password creation interface from the first password interface, thereby creating 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 (A) The password creation interface includes a generation control, a password display box, a password validity period setting area, and a password save control. The generation control triggers the generation of a remote password after user input. The password display box shows the generated remote password. The password validity period setting area allows users to set the start time, end time, and duration of the valid password. The password save control saves the settings parameters. This allows users to obtain the remote password from the password creation interface and arbitrarily set its validity period.

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

[0162] Specifically, the phone detects the user's first input in the password creation interface and displays the first remote password.

[0163] The following will combine Figure 9 The specific process of generating the first remote password on a mobile phone is illustrated by example.

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

[0165] S901: The mobile phone detects the first operation and sends a second request to the server. 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 a third-party request.

[0170] S906: The mobile phone determines the most recently generated random number from the first and second random numbers as the final random number. Based on the random number and the timestamp, it generates and displays the first remote password on the password creation interface.

[0171] In some embodiments of this 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, the mobile phone can decrypt it using the key obtained from the smart lock, and also needs to synchronize the time with the server. Then, the mobile phone selects the most recent random number from the first encrypted data and the synchronized timestamp, and uses a password generation algorithm to generate a first remote password.

[0172] The timestamp can include year, month, day, hour, minute, and second information. The timestamp format can be ordered sequentially by year, month, day, hour, minute, and second. Furthermore, the length of the generated first remote password can be a preset length. For example, the preset length can be 6, 8, 10, 12, or 24 characters.

[0173] In some embodiments of this application, after the mobile phone generates the first remote password, it can display the first remote password in the password creation interface. Users can view the first remote password in the password creation interface and share it with others after obtaining it.

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

[0175] S304. The mobile phone detects an operation to set 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 targeting the first remote password and sends the first parameter information corresponding to the first remote password to the server.

[0177] Accordingly, the server can store the first parameter information of the first remote password.

[0178] S306. After the server detects that a communication connection has been established with the smart lock, it sends the first parameter information of the first remote password to the smart lock.

[0179] In some embodiments of this application, the mobile phone detects a setting operation for the validity period of a 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 following: a valid start time, a valid end time, or a valid duration.

[0180] After obtaining the initial remote password, the user can set its validity period. In the password validity period setting area of ​​the password creation interface, the user can enter at least two of the following: valid start time, valid end time, or valid duration. Then, the user can click the password save control to save the initial parameters of the initial remote password and complete the process of creating the remote password.

[0181] In one possible implementation, the mobile phone, upon detecting a second operation by the user on the password saving control, sends the first parameter information corresponding to the first remote password to the server.

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

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

[0184] For another example, users can 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 of ​​the password creation interface. The mobile phone can automatically calculate the validity end time as 04 / 10 15:00 based on the entered validity start time and validity period. In this way, the first parameter information includes a random number of 0.5, a timestamp of 13.20, a validity start time of 04 / 03 12:00, and a validity end time of 04 / 10 12:00.

[0185] In some embodiments of this 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. Furthermore, after detecting the establishment of a communication connection with the smart lock, the server sends the first parameter information of the first remote password to the smart lock. In this way, the mobile phone can synchronize the first parameter information of the first remote password to the smart lock via the server, making it convenient for users to unlock the smart lock using the first remote password in the future.

[0186] In one possible implementation, the first parameter information may further include a password identifier corresponding to the first remote password. For example, this could be a password name and a password ID corresponding to the first remote password. The password name can be an automatically generated password name by the operating system or a user-defined password name. The password ID can be a password sequence number corresponding to the first remote password. This application does not specifically limit the password name and password ID.

[0187] It should be noted that the first, second, and third operations described above can be the same or different operations. These operations may include long press, single click, double click, pressure-sensitive operation, and voice operation, etc. This application does not specifically limit the specific implementation of the first, second, and third operations.

[0188] In summary, the embodiments of this application can support the remote creation of remote passwords for smart locks. These remote passwords are generated by the mobile phone, eliminating the need for user input and server-side generation. Furthermore, the remote passwords are not transmitted between multiple devices and are not passed to the smart lock via a server, thus improving security. Users do not need to share their preferred unlocking passwords, and can also allow others, such as visitors or tenants, to unlock the smart lock using the created remote password.

[0189] Furthermore, this application embodiment also supports setting the validity period of the remote password, which can be reused within the validity period. In the scenario of renting a house, the homeowner only needs to create the remote password once, and the tenant can open the smart door lock at any time within the validity period. Thus, while ensuring the security of the remote password, it simplifies the user's operation, eliminating the need for additional hardware devices to realize the remote password creation process, thereby improving the user's usability and user experience.

[0190] In some embodiments of this application, after the mobile phone obtains m parameter information, it can also detect the quantity of m.

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

[0192] For example, 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, which 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 can output a first message if the number of 'm' is greater than or equal to a preset number. The first message indicates that the number of remote passwords created has exceeded the limit.

[0194] For example, the preset quantity 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 quantity. The mobile phone can output the first information.

[0195] See Figure 10 The first message indicates that the number of remote passwords has exceeded the limit. This first message also corresponds to a first prompt control, which can display the text "Too many passwords, please delete infrequently used passwords".

[0196] As can be seen, during the process of a user creating a remote password for a smart 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 indicate that the limit has been exceeded. If the number of remote passwords does not exceed the limit, the process of creating subsequent remote passwords can continue.

[0197] Understandably, if a smart lock has many remote passwords set, the likelihood of those passwords being cracked increases progressively.

[0198] Therefore, this application embodiment improves the security of smart locks by limiting the number of remote passwords that can be created. It should be noted that this application embodiment supports setting multiple remote passwords for smart locks, without specifying a particular preset number.

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

[0200] In some embodiments of this application, the smart lock acquires m parameter information and updates the m parameter information according to the first parameter information and a 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 can be understood that j can be greater than m.

[0201] In one feasible approach, the smart lock can add the first parameter information to m parameter information based on preset rules. These m parameter information includes the parameter information for each of the m successfully created remote passwords. In other words, the smart lock can pre-check the received first parameter information and, if it meets the preset rules, add it to the m parameter information.

[0202] The preset rules may include making the random number of the first parameter information a random number in the first encrypted data. If the random number of the first parameter information is the same as the random number in the first encrypted data, the smart lock will add the first parameter information to the m parameter information.

[0203] For example, 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 lock can add the first parameter information to the m parameter information to update the successfully created remote password.

[0204] It's conceivable that if the random number in the first parameter information doesn't match the random number stored in the smart lock's local encrypted data, it means the remote password corresponding to the first parameter information wasn't generated by the random number synchronized from the smart lock to the server. In other words, the first remote password has no connection to the smart lock and is therefore invalid. Consequently, this first parameter information is discarded.

[0205] The preset rules may also include a validity period for the first parameter information that is less than or equal to a preset duration. If the validity period for the first parameter information is less than or equal to the preset duration, the smart lock will add the first parameter information to the m parameter information.

[0206] For example, 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 lock can add the first parameter information to the m parameter information to update the successfully created remote password.

[0207] The preset rules can also include m being less than or equal to a preset quantity.

[0208] For example, 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". As can be seen, m is 3 and less than the preset number. Thus, the smart lock can add the first parameter information to the m parameter information to update the successfully created remote passwords.

[0209] In some embodiments of this application, the smart lock 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 has not been successfully created.

[0210] In one possible implementation, the mobile phone can output the second information based on the third notification information. The second information is used to indicate that the remote password was not created successfully. See also... Figure 11 The second message also corresponds to a second prompt control, which can be implemented as the text "Remote password not created successfully".

[0211] In another possible implementation, the phone can continue displaying the first password screen based on a third notification. Understandably, the first password screen does not include the initial parameter information created by the user.

[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 the identification information of j successfully created remote passwords based on j parameter information.

[0215] In some embodiments of this 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 lock can send a first refresh command, j parameter information, and first encrypted data to the server. The first refresh command instructs the server to update the stored m parameter information and the first encrypted data.

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

[0218] In one possible implementation, the server can send a second refresh instruction and j parameter information to the mobile phone. The second refresh instruction is used to instruct the mobile phone to update the saved m parameter information.

[0219] Then, the mobile phone can display a second password interface based on j parameter information. The second password interface is a refreshed version of the first password interface, and includes the updated, successfully created remote password, which in turn includes the first parameter information.

[0220] For example, after a user clicks the password save control on the remote password creation interface, a second password interface is triggered. See also... Figure 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:00 05 / 03, Password 3 12:00 05 / 10-15:00 05 / 12, and Password 4 12:00 05 / 15-15:00 05 / 16.

[0221] It is understandable that the second password interface is a refreshed version of the first password interface, and it includes the first parameter information of the first remote password successfully created by the user. After saving the first parameter information, the user can view the successfully created first remote password through the displayed second password interface.

[0222] As can be seen, users can view historical passwords, i.e., the currently successfully created remote passwords, during the remote password creation process. Furthermore, after the current remote password is successfully created, users can view updated parameter information, which includes both historical passwords and the parameters corresponding to the currently created remote password. The remote password creation process in this embodiment is simple, supporting users to remotely create unlocking passwords for smart locks, allowing for quick and flexible control of the smart lock and improving the user experience.

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

[0224] In one feasible approach, the mobile phone can send the change processing information corresponding to the second remote password to the server in response to the change processing operation of the second remote password, where the second remote password is the remote password that has been successfully created.

[0225] Upon detecting a communication connection established with the smart lock, the server sends the change processing information corresponding to the second remote password to the smart lock. The smart lock receives the change processing information and modifies the second parameter information corresponding to the second remote password among the m parameter information, obtaining n parameter information. These n parameter information include the second parameter information corresponding to the changed second remote password, where n is an integer not less than 1.

[0226] The smart lock then sends n parameters to the server, which in turn sends these n parameters to the mobile phone. The mobile phone can also receive the n parameters from the server and display the identifiers corresponding to the n successfully created remote passwords. Understandably, users can delete successfully created remote passwords or modify their expiration dates. Therefore, n can be less than or equal to m.

[0227] In scenarios involving changes to the validity period of a 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 lock. The smart lock checks if there is a password identifier corresponding to the second remote password. If there is a password identifier corresponding to the second remote password, it updates the second parameter information corresponding to the second remote password based on the effective start time and effective end time of the change.

[0229] For example, see Figure 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". Users can click on any remote password identifier to trigger the corresponding password creation interface. For example, if the phone detects a click on the identifier for the second remote password (Password 3), it displays the password creation interface for that second remote password.

[0230] See Figure 13 In section (B), the user can edit the password validity period in the password creation interface. For example, the validity period of password 3 can be changed to 15:00 05 / 10-15:00 05 / 18. The mobile phone detects the editing operation on the validity period of 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 a 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. The change processing information includes the password identifier corresponding to the second remote password.

[0232] The server sends the change processing information for the second remote password to the smart lock. Based on this information, the smart lock deletes the second parameter information corresponding to the password identifier. It's conceivable that the change processing information could also include a change result or a change processing instruction for the second parameter information. For example, a change result indicates that the second parameter information has been deleted, while a change processing instruction instructs the deletion of the second parameter information.

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

[0234] In another possible implementation, the mobile phone can also detect the operation of changing the second remote password and send the corresponding second parameter information after the second remote password change to the server. The server then sends the second parameter information to the smart lock. The smart lock changes the stored second remote password according to the second parameter information. After successfully changing the second remote password, the smart lock sends a first indication message to the server. The server then sends the first indication message to the mobile phone, which indicates that the second remote password change was successful.

[0235] In other words, 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 can be the same. After successfully creating the first remote password, the user can also change it.

[0237] As can be seen, this application embodiment supports editing the password of a successfully created remote access password. A successfully created remote access password can be deleted, and its validity period can be changed. In a housing rental scenario, the corresponding remote access password immediately expires upon the expiration of the rental period, and the homeowner can delete the expired remote access password. Alternatively, if the tenant moves out early or the rental period is extended, the homeowner can flexibly adapt the remote access password according to the tenant's usage needs.

[0238] In other words, homeowners no longer need to frequently create remote passwords based on usage scenarios. They can repeatedly change the expiration date of remote passwords without altering the password itself. This simplifies the process for users to manage remote passwords in different scenarios and improves user efficiency.

[0239] Based on the above, users can remotely create remote passwords for smart locks and remotely edit previously created remote passwords. In some embodiments of this application, users can also create and edit remote passwords for smart locks near the smart lock itself.

[0240] When a user is near a smart lock, their mobile phone can establish a Bluetooth connection with the lock. The phone can then exchange data directly with the lock via Bluetooth without going through a server. For example, the phone can send parameters corresponding to a remote password directly to the smart lock via Bluetooth. The data exchanged between the phone and the smart lock includes, but is not limited to, parameter information, and may also include other data such as remote password change processing information. Specific data details are provided above and will not be repeated here.

[0241] As can be seen, in a rental property scenario, users can remotely create a password for the smart lock to allow tenants to enter the property. Users can also set a remote password for the smart lock locally. This allows users to set the remote password anytime, anywhere, improving the practicality of the smart lock and enhancing the user experience.

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

[0243] Figure 14 This is an interactive schematic diagram illustrating a password unlocking process according to an embodiment of this application, such as... Figure 14 As shown, the password unlocking process may include the following steps S1401-S1405.

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

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

[0246] Understandably, in a rental property scenario, the homeowner can typically enter their frequently used unlocking code directly on the numeric keypad. Since the homeowner's default unlocking code differs from the tenant's remote password, the tenant can trigger the smart lock to enter remote password mode, indicating that the homeowner's remote password is required to unlock the door. For example, see... Figure 15 Visitors can enter "2" and "√" keys on the numeric keypad of the smart lock to trigger access to the remote password mode.

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

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

[0249] In some embodiments of this application, the smart lock may output a retrieval prompt message during the process of sending a fourth request to the server. The retrieval prompt message indicates that it is retrieving parameter information corresponding to a successfully created remote password.

[0250] The prompt information can include one or more of the following: text prompts, voice prompts, and video prompts.

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

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

[0253] As can be seen, the smart lock in this embodiment can enter remote password mode by detecting key combination input, accurately determining the user's intent. The smart lock can also establish a communication connection with the server after triggering entry into remote password mode.

[0254] It is understandable that smart locks may not need to establish a communication connection with the server in other usage scenarios (unlocking scenarios that do not use remote passwords, such as fingerprint unlocking and facial recognition unlocking). Therefore, the embodiments of this application can avoid increasing device power consumption by frequently establishing communication connections with the server, and do not affect the unlocking performance of digital passwords.

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

[0256] After obtaining the parameter information corresponding to the successfully created remote password, the smart lock then outputs a password hint message. This hint message prompts the user to enter the smart lock's password.

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

[0258] In some embodiments of this application, the smart lock outputs a connection prompt message when it fails to obtain the parameter information corresponding to a successfully created remote password. The connection prompt message indicates that the smart lock has not established a communication connection with the server. It is understood that the smart lock may not be able to obtain an updated remote password if it has not established a communication connection with the server. Therefore, the smart lock can output a connection prompt message to remind the user to check the communication connection status of the smart lock.

[0259] The connection prompts can include one or more of the following: text prompts, voice prompts, and video prompts. For example, a smart lock can control a buzzer to output a connection prompt such as "Synchronization failed. Please ensure the smart lock is properly connected to the network and try again."

[0260] S1403: The smart lock detects the user's input and obtains the 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 this application, the smart lock can detect user input and obtain the lock password. After the tenant triggers the smart lock to enter remote password mode, they can unlock it using a first remote password.

[0263] Based on the above, the homeowner can generate a first remote password via their mobile phone and share it with the tenant. The tenant can then unlock the door using this shared password. For example, the tenant enters "156852" on the numeric keypad of the smart lock. The smart lock then receives this input and obtains the password as "156852".

[0264] Then, in one possible implementation, the door lock password can be matched with j parameter information. If the door lock password matches the j parameter information, the door lock password is determined to be correct, and the unlocking operation is performed.

[0265] Specifically, the smart lock acquires the unlocking time, which is the time when the door lock password is entered. Next, based on the unlocking time, the smart lock determines f third-order parameters from j parameters, where f is less than or equal to j, whose validity period includes the unlocking time. Then, based on the random numbers and timestamps corresponding to the f third-order parameters, the smart lock generates f unlocking passwords. If any of the f unlocking passwords matches the door lock password, the unlocking operation is performed. This matching 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 this application, the encrypted data is updated after each successful unlocking, and the updated encrypted data is synchronized to the server.

[0268] Specifically, the smart lock updates the first encrypted data, which includes a second random number and a third random number encrypted with a key. The updated first encrypted data is generated by the smart lock encrypting the second and third random numbers using the key. The second and third random numbers are generated sequentially, with the second random number being generated earlier than the third. This allows the mobile phone to subsequently use the third random number from the updated first encrypted data to generate a new remote password.

[0269] Understandably, if the smart lock does not update the first encrypted data, the server will continuously store the first encrypted data, namely the encrypted first random number and the second random number. The mobile phone will always use the same random number, i.e., the second random number, to generate the corresponding remote password. This results in highly similar remote passwords and low communication security. This embodiment of the application improves communication security by updating the encrypted data, allowing the mobile phone to generate a new remote password based on the updated encrypted data.

[0270] Furthermore, embodiments of this application can employ a dual random number update mechanism, retaining the random number generated later in the encrypted data and adding a newly generated random number. The updated encrypted data can also be synchronized to the server.

[0271] Thus, even if synchronizing the updated first encrypted data to the server fails, the smart lock saves the updated first encrypted data (including the second and third random numbers), while the server saves the first encrypted data (including the first and second random numbers). When the mobile phone generates a new remote password, it uses the second random number from the first encrypted data on the server and synchronizes the parameter information, including the second random number, to the smart lock. Based on preset rules, the smart lock determines that the second random number corresponding to the first parameter information is the random number from the updated first encrypted data, thus enabling updates to the already saved parameter information.

[0272] Without the aforementioned dual-random update mechanism, if synchronizing the updated first encrypted data to the server fails—for example, if the updated first encrypted data includes encrypted third and fourth random numbers—the smart lock will determine that the second random number corresponding to the first parameter information is not a random number in the updated first encrypted data, and therefore will not update the saved parameter information. This application embodiment improves the reliability and stability of remote passwords by employing a dual-random number update mechanism.

[0273] It should be noted that the mobile phone receives the latest first encrypted data when displaying the remote password. When a user creates their first remote password, the latest first encrypted data received by the phone includes both encrypted first and second random numbers. However, when a user creates a remote password for the first time, the latest first encrypted data received by the phone includes the encrypted data obtained after updating the first encrypted data following the smart lock's unlocking operation.

[0274] In some embodiments of this application, the smart lock can also generate an unlocking record after each unlocking. The unlocking record refers to a record of when a user wakes up the smart lock to unlock it, and may include the wake-up method, unlocking time, and corresponding account information. For example, if a user wakes up the smart lock at 9:00 AM using a remote password, the smart lock can save the unlocking method (fingerprint unlocking), unlocking time, and user's corresponding account information to generate a record. The smart lock can also send the unlocking record to a server. The unlocking record may include the unlocking method, unlocking time, and corresponding account information.

[0275] In some embodiments of this application, if the smart lock determines that the lock password is incorrect and does not open the lock if the password does not match the j parameter information, it can also determine whether to continue displaying the input area based on the number of incorrect password attempts.

[0276] Specifically, if the number of incorrect password attempts exceeds a first threshold, the smart lock will turn off the input area display for a preset time. If the number of incorrect password attempts is less than or equal to the first threshold, the smart lock will continue to display the input area.

[0277] For example, the first threshold is 5, and the preset duration is 30 minutes. If the number of incorrect password attempts exceeds 5, the smart lock will close the display input area within 30 minutes to lock the numeric input area.

[0278] In some embodiments of this application, the aforementioned remote password processing method allows different users, such as different renters, to use the same smart lock at different times. Alternatively, it can allow a homeowner and at least one corresponding visitor with the homeowner's permission to use the same smart lock at different times, thereby achieving shared unlocking permissions. Or, it can allow the car rental company's management terminal and at least one car rental user to use the same smart lock at different times.

[0279] Furthermore, smart door locks are not limited to installation in home doors; they can also be installed in office doors, vehicle doors, and safe doors. Of course, the remote password processing method of this application is not limited to door locks; it can also be applied to other types of smart locks. This application does not specifically limit this application; for specific remote password processing methods, please refer to the above embodiments, which will not be repeated here.

[0280] This application also provides a device, which can be either the aforementioned smart door lock or the aforementioned mobile phone. Figure 16 As shown, the device may include one or more processors 1010, memory 1020 and communication interface 1030.

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

[0282] The communication interface 1030 is used for data transmission with other devices. The memory 1020 stores a program. The program includes instructions that, when executed by the processor 1010, cause the device to perform the methods described in this embodiment.

[0283] The processor 1010 may be a processor or controller, such as a central processing unit (CPU), a general-purpose 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 can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The bus 1040 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 16 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0285] This application also provides a communication system, which 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 embodiments. In one possible implementation, the communication system may further include an NTP server and a router.

[0286] This application also provides a readable storage medium storing a program. When the processor executes the program, the device executes the relevant method steps in the above method embodiments.

[0287] This application also provides a program product that, when run on a device, causes the device to execute the relevant method steps described in the above method embodiments.

[0288] The smart door locks, smart storage devices, storage media, or program products provided in this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods provided above, and will not be repeated here.

[0289] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A remote cryptographic processing method, characterized in that, Applied to a second device, the method includes: Upon detecting the first operation entered in the password creation interface, a first remote password is displayed. 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. A setting operation for the validity period of the first remote password is detected, and the validity period of the first remote password is determined. The setting operation is used to set at least two of the validity start time, validity end time, or validity duration of the validity period. Upon detecting a second operation targeting the first remote password, the server sends first parameter information corresponding to the first remote password to the server. The first parameter information includes the random number, the timestamp, and the validity period. The server sends the first parameter information to the first device, enabling the first device to obtain the first remote password based on the first parameter information and perform an unlocking operation based on the first remote password within the validity period.

2. The method according to claim 1, characterized in that, The method further includes: Upon detecting a third operation entered in the device management interface, display the identification information of m successfully created remote passwords, where m is an integer not less than 1; An operation was detected that a change was performed on the second remote password among the m successfully created remote passwords. The change process included deleting the second remote password or editing the validity period of the second remote password. The second parameter information corresponding to the second remote password after the second remote password is changed is sent to the server. The second parameter information is then sent by the server to the first device so that the first device can change the stored second remote password according to the second parameter information. Receive a first indication message from the server, the first indication message being used to indicate successful processing of the second remote password change.

3. The method according to claim 1, characterized in that, The method further includes: Upon detecting a third operation input in the device management interface, the system displays the identification information corresponding to m successfully created remote passwords based on m parameter information. The m parameter information includes the parameter information of each of the m successfully created remote passwords, where m is an integer not less than 1. An operation was detected that a change was performed on the second remote password among m successfully created remote passwords. The change process included deleting the second remote password or editing the validity period of the second remote password. The change processing information corresponding to the second remote password is sent 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 the second parameter information corresponding to the first device after changing the second remote password, where n is an integer not less than 1; The displayed identification information is updated based on the n parameter information.

4. The method according to any one of claims 1-3, characterized in that, The method further includes: If a short-range communication connection is established with the first device, a first request is sent to the first device; Receive the key sent by the first device in response to the first request.

5. The method according to claim 4, characterized in that, The detection of the first operation and the display of the first remote password include: Upon detecting the first operation, a second request is sent 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 the key. The first encrypted data includes a first random number and a second random number after encryption. The latest first encrypted data includes the encrypted data obtained by the first device after performing the unlocking operation and updating the first encrypted data. Receive the latest first encrypted data sent by the server, and decrypt the first encrypted data using the key to obtain the first random number and the second random number; The random number generated most recently among the first and second random numbers is determined as the random number. The first remote password is generated based on the random number and the timestamp, and then displayed on the password creation interface.

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

7. A remote cryptographic processing method, characterized in that, Applied to a first device, the method includes: Receive the 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. The timestamp is used to characterize the time when the first remote password was generated. The validity period is determined by the second device detecting a setting operation for the validity period of the first remote password. The setting operation is used to set at least two of the following: the validity start time, the validity end time, or the validity duration of the validity period. Based on the first remote password, an unlocking operation is performed within the validity period. 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 includes: After successfully registering with the server, a first random number and a second random number are generated; The first random number and the second random number are encrypted using the key to obtain the first encrypted data; Save the first encrypted data and send the first encrypted data to the server.

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

10. The method according to claim 8 or 9, characterized in that, The method further includes: In the event that a short-range communication connection has been established with the second device, a first request is received; In response to the first request, the key is sent to the second device.

11. The method according to any one of claims 7-9, characterized in that, The method further includes: Obtain the second parameter information, which corresponds to the second remote password; the second remote password is the successfully created remote password. Based on the second parameter information, change the second remote password. The first instruction information is sent to the server, and the first instruction information is used to indicate that the second remote password has been successfully changed.

12. The method according to any one of claims 7-9, characterized in that, The method further includes: Obtain m parameter information and change processing information corresponding to the second remote password. The m parameter information includes the parameter information of each of the m successfully created remote passwords, and the second remote password is the successfully created remote password. Based on the change processing information corresponding to the second remote password, the second parameter information corresponding to the second remote password in the m parameter information is changed to obtain n parameter information, the n parameter information including the changed second parameter information, 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 includes: Obtain m parameter information, including the parameter information of each of the m successfully created remote passwords; Based on the preset rules 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; Send the j parameter information to the server; The preset rule includes adding the first parameter information to the m parameter information if the random number of the first parameter information is a random number in the first encrypted data; 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 effective duration of the first parameter information is less than or equal to the preset duration, then the first parameter information is added to the m parameter information; And / or, if m is less than or equal to a preset number, then the first parameter information is added to the m parameter information.

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

15. The method according to claim 14, characterized in that, The step of performing the unlocking operation within the validity period based on the door lock password and the first remote password includes: Obtain the unlocking time, where the unlocking time is the time when the door lock password is entered; Based on the unlocking time, it is determined that among the j parameter information, the validity period includes f third parameter information of the unlocking time, where f is less than or equal to j; Based on the random numbers and timestamps corresponding to the f third parameter information, generate f unlocking passwords; If one of the f unlocking passwords matches the door lock password, the unlocking operation is performed, and the password that matches the door lock password is the first remote password.

16. The method according to claim 14 or 15, characterized in that, Sending the fourth request to the server further includes: Output a retrieval prompt message, which indicates that the system is retrieving parameter information corresponding to the successfully created remote password. The method further includes: After sending the fourth request to the server, if 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 indicate that the first device has not established a communication connection with the server.

17. An electronic device, characterized in that, The electronic device includes a memory and one or more processors; the memory is coupled to the processors; wherein the memory stores a program that, when executed by the processor, causes the electronic device to perform the remote cryptographic processing method as described in any one of claims 1-6, or the remote cryptographic 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