Remote password processing method, and device
By generating remote passwords with random numbers and timestamps, the problem of cumbersome operation in remote setting of smart door locks is solved, enabling flexible password setting and reuse, and improving user experience and security.
Patent Information
- Application Number
- PCT/CN2024/073711
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-12
- Filing Date
- 2024-01-23
- Publication Date
- 2024-12-19
AI Technical Summary
Existing smart door locks require establishing a Bluetooth communication connection with the device when setting temporary passwords remotely. This process is cumbersome and inconvenient. Furthermore, the temporary passwords have a fixed validity period and cannot be reused, resulting in significant limitations for users and a poor user experience.
By generating random numbers and timestamps to generate remote passwords, users can set them remotely and reuse them within their validity period. Passwords can be edited and deleted, and information can be synchronized with the server to avoid direct password transmission between devices.
It improves the convenience and flexibility of user operation, simplifies the process of setting remote passwords, enhances the security and effectiveness of passwords, and improves the user experience.
Smart Images

Figure CN2024073711_19122024_PF_FP_ABST
Abstract
Description
Remote password processing method and device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on June 12, 2023, with application number 202310695016.8 and application name “A Remote Password Processing Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of communication technology, and in particular to a remote password processing method and device. Background Art
[0003] Smart door locks are now used in many places. Users can use the corresponding application of the smart door lock to set the unlocking password that they are accustomed to using for a long time.
[0004] Typically, if the owner of a smart door lock is away and a visitor needs to unlock the door, the owner can remotely set a temporary password for the smart door lock, allowing the visitor to use the temporary password to unlock the smart door lock. However, setting the temporary password requires the user to establish a Bluetooth connection between their phone and the smart door lock. This, in turn, results in significant limitations and poor operational convenience during the use of smart door locks.
[0005] Summary of the Invention
[0006] The present invention provides a remote password processing method and device that can remotely set a remote password for a device without using a near-field communication connection. Furthermore, the set remote password can be reused within its validity period, providing users with a smooth user experience.
[0007] To achieve the above objectives, the embodiments of the present application adopt the following technical solutions:
[0008] In the first aspect, a remote password processing method is provided, which is applied to a second device, and the method includes: the second device detects a first operation entered in a password creation interface, and displays a first remote password, the first remote password is generated by a random number and a timestamp, and the timestamp is used to represent the time when the first remote password is generated. Then, the second device detects a setting operation for the validity period of the first remote password, and determines the validity period of the first remote password. The setting operation is used to set at least two of the valid start time, valid end time, or valid duration of the validity period. Then, the second device detects a second operation for the first remote password, and sends the first parameter information corresponding to the first remote password to the server. The first parameter information includes a random number, a timestamp, and a validity period; the first parameter information is sent by the server to the first device, so that the first device obtains the first remote password according to the first parameter information and performs an unlocking operation according to the first remote password within the validity period.
[0009] In other words, the second device can set the first remote password without establishing a near-field communication connection with the first device. Furthermore, the remote password can be reused within its validity period, which is not fixed. The user can use the second device to view and remotely set the first remote password, and can also reuse the first remote password to activate the first device within the password's validity period. This avoids significant limitations in the use of the first device and improves user convenience.
[0010] In an implementation of the first aspect, the method further includes: the second device detects a third operation input in the device management interface, and displays identification information of m successfully created remote passwords, where m is an integer not less than 1. Then, the second device detects an operation to change the second remote password among the m successfully created remote passwords, and sends the second parameter information corresponding to the change of the second remote password to the server. The change process includes deleting the second remote password or editing the validity period of the second remote password. The second parameter information is sent by the server to the first device, so that the first device changes the saved second remote password according to the second parameter information. Then, the second device receives the first indication information from the server, and the first indication information is used to indicate the successful change of the second remote password.
[0011] It can be seen that the second device can change the remote password that has been successfully created and synchronize the parameter information after the change to the first device to maintain the consistency of the information in the two devices. The embodiment of the present application can support changing the remote password that has been set successfully, deleting the remote password that has been set successfully, and modifying the validity period of the remote password that has been set successfully, thereby improving the user's operation process for the remote password and enhancing the user's operation efficiency.
[0012] In one implementation of the first aspect, the method further includes: the second device detecting a third operation entered in the device management interface, and displaying identification information corresponding to m successfully created remote passwords based on m parameter information, where the m parameter information includes parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1. Next, the second device detects an operation to change a second remote password among the m successfully created remote passwords, and sends change processing information corresponding to the second remote password to a server; wherein the change processing information is sent by the server to the first device, causing the first device to change the second remote password based on the change processing information. The change processing includes deleting the second remote password or editing the validity period of the second remote password.
[0013] Then, the second device may receive n parameter information from the server and update the displayed identification information according to the n parameter information, wherein the n parameter information includes the second parameter information corresponding to the second remote password changed by the first device, and n is an integer not less than 1.
[0014] It can be seen that when the second device detects the third operation, it can display the identification information of the successfully created remote password. Then, the second device can detect the operation of changing the successfully created remote password, and send the change processing information corresponding to the successfully created remote password to the first device via the server. In this way, the first device can change the successfully created remote password according to the change processing information. It can be understood that the change processing information may include the change result or the corresponding change processing instruction corresponding to the successfully created remote password. The second device can also receive the parameter information after the change processing sent by the server, and update the displayed identification information according to the parameter information after the change processing.
[0015] 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 after the first device performs the change processing to maintain the consistency of the information in the two devices. The embodiment of the present application can support the change of the successfully set remote password, and can delete the successfully set remote password and modify the validity period of the successfully set remote password, thereby improving the user's operation process for the remote password and enhancing the user experience.
[0016] In one implementation of the first aspect, the method further includes: the second device may send a first request to the first device when establishing a short-range communication connection with the first device, and the second device may also receive a key sent by the first device in response to the first request.
[0017] As can be seen, the second device can obtain the key when establishing a short-range communication connection with the first device. The key is used by the second device and the first device to encrypt and / or decrypt data during data 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 data transmitted between the second device and the first device involves user privacy data, the key is used to encrypt the user data for transmission, thereby improving the security of the user privacy data transmission.
[0018] In one implementation of the first aspect, when the second device detects the first operation and displays the first remote password, the second device can detect the first operation and send a second request to the server; the second request is used to obtain the latest first encrypted data, the first encrypted data is generated by the first device using a key, and the first encrypted data includes the encrypted first random number and the second random number; the latest first encrypted data includes the encrypted data obtained by the first device updating the first encrypted data after performing the unlocking operation.
[0019] The second device then receives the latest first encrypted data from the server and decrypts it using the key to obtain the first random number and the second random number. The second device then uses the random number generated later as the random number used to generate the first remote password. The second device then generates the first remote password based on the random number and timestamp and displays the first remote password on the password creation interface.
[0020] As can be seen, when generating the first remote password, the second device can obtain the latest first encrypted data from the server and use the key to obtain the most recently generated random number in the first encrypted data. The device then generates the first remote password based on this random number and the timestamp. If the same random number is used to generate the corresponding remote password each time, the generated remote passwords will be highly similar, resulting in lower communication security. By choosing between two random numbers, the security of the remote password can be improved.
[0021] Furthermore, the latest first encrypted data includes the encrypted data obtained by the first device after performing an unlock operation, by updating the first encrypted data. The latest first encrypted data obtained by the second device changes with the number of unlock operations. In other words, the random number used to generate the remote password is also updated and changed. This prevents high similarity between generated remote passwords and improves the communication security of the remote password.
[0022] In one implementation of the first aspect, while the second device is generating the first remote password based on the random number and the timestamp, the second device may send a third request to the server. The second device then receives the timestamp sent by the server in response to the third request and generates the first remote password based on the random number and the timestamp.
[0023] As can be seen, when generating the first remote password, the second device can synchronize time with the server and obtain a timestamp. This timestamp indicates the time when the first remote password was generated. The second device can then generate the first remote password using the random number and timestamp. This prevents high similarity in the generated remote passwords and improves communication security.
[0024] In a second aspect, a remote password processing method is provided, which is applied to a first device, and the method includes: the first device receives first parameter information corresponding to a first remote password sent by a server; wherein the first parameter information includes a random number, a timestamp and a validity period corresponding to the remote password, and the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the validity period of the first remote password, and the setting operation is used to set at least two of the effective start time, the effective end time or the effective duration of the validity period; then the first device performs an unlocking operation within the validity period based on the first remote password, and the first remote password is generated by the random number and the timestamp.
[0025] As can be seen, the first device can receive the first parameter information corresponding to the first remote password sent by the server. The first device then performs an unlocking operation within the validity period based on the first remote password, which is generated from the random number and timestamp in the first parameter information. The first device can set the first remote password of the first device without establishing a near-field communication connection with the second device. The first device can repeatedly perform operations based on the first remote password within the validity period. This improves the user's remote password operation process and enhances user efficiency.
[0026] In one implementation of the second aspect, the method further includes: after the first device successfully registers with the server, generating a first random number and a second random number. Encrypting the first random number and the second random number based on the key to obtain first encrypted data. The first device then stores the first encrypted data and sends the first encrypted data to the server.
[0027] After performing the unlocking operation, the first device may update the first encrypted data and send the latest first encrypted data to the server, wherein the latest first encrypted data includes the second random number and the third random number encrypted by the key.
[0028] As can be seen, after successfully registering with the server, the first device encrypts the first random number and the second random number to generate the first encrypted data. This data is then synchronized to the server. By setting two random numbers in the first encrypted data, the second device can subsequently select between the two random numbers and generate the first remote password based on the selected random number. This prevents the generated remote passwords from being highly similar, which in turn reduces communication security.
[0029] After performing the unlocking operation, the first device can update the first encrypted data and send the latest first encrypted data to the server. As can be seen, the embodiment of the present application can adopt a dual random number update mechanism, retaining the random number with a later generation time in the encrypted data and adding a newly generated random number. In this way, the remote password is always generated based on the latest first encrypted data, improving the reliability and stability of the remote password.
[0030] In an implementation manner of the second aspect, the method further includes: when the first device establishes a short-range communication connection with the second device, receiving the first request, and sending the key to the second device in response to the first request.
[0031] It can be seen that the first device can send a key to the second device when establishing a short-range communication connection with the second device. The key is used by the second device and the first device to encrypt and / or decrypt data when transmitting data. The first device can send the key to the second device so that the second device can decrypt the received encrypted data based on the key. For example, the second device can obtain a random number for generating the first remote password based on the key. In this way, since the second device and the first device involve user privacy data when transmitting data, the key is used to encrypt and transmit the user data, thereby improving the security of user privacy data transmission.
[0032] In one possible implementation of the second aspect, the method further includes: the first device obtaining second parameter information, where the second parameter information corresponds to a second remote password; the second remote password is a successfully created remote password. The first device may then change the second remote password based on the second parameter information and send first indication information to the server, where the first indication information indicates that the second remote password has been successfully changed.
[0033] It can be seen that the second parameter information is the corresponding information after the second remote password is changed. The first device can change the second remote password according to the second parameter information corresponding to the second remote password. The first device can also send a first indication information used to indicate the success of the change process to the server, so as to facilitate the subsequent consistency with the information in the second device. The embodiment of the present application can support the change of the successfully set remote password, can delete the successfully set remote password, and can also modify the validity period of the successfully set remote password, thereby improving the user's operation process for the remote password and improving the user's operation efficiency.
[0034] In an implementation manner of the second aspect, the method also includes: the first device can obtain m parameter information and change processing information corresponding to the second remote password, the m parameter information including the parameter information of m successfully created remote passwords, and the second remote password is a successfully created remote password.
[0035] Next, the first device may perform a change process on the second parameter information corresponding to the second remote password in the m parameter information according to the change process information corresponding to the second remote password, thereby obtaining n parameter information, where the n parameter information includes the second parameter information after the change process, and n is an integer not less than 1. The first device then sends the n parameter information to the server.
[0036] As can be seen, the first device can change the successfully created remote password based on the change processing information corresponding to the successfully created remote password. It is understandable that the change processing information may include the change result or the corresponding change processing instruction corresponding to the successfully created remote password. The first device can then send the change result after the change processing to the server for subsequent synchronization to the second device via the server. Providing users with the function of changing the successfully created remote password improves the user's operation process for the remote password and improves user operation efficiency.
[0037] In one implementation of the second aspect, the method further includes: the first device may obtain m parameter information, where the m parameter information includes parameter information of each of the m successfully created remote passwords. Then, the first device may update the m parameter information based on a preset rule and the first parameter information to obtain j parameter information. The j parameter information is then sent to the server. The j parameter information includes the first parameter information, and j is an integer not less than 1.
[0038] The preset rule includes: if the random number of the first parameter information is the random number in the first encrypted data, then the first parameter information is added to the m parameter information; the first encrypted data is obtained by encrypting the first random number and the second random number based on the key after the first device successfully registers with the server; the first random number and the second random number are generated by the first device;
[0039] and / or, if the validity period of the first parameter information is less than or equal to the preset period, adding the first parameter information to the m parameter information;
[0040] And / or, if m is less than or equal to a preset number, the first parameter information is added to the m parameter information.
[0041] It can be seen that the first device can update the parameter information of the successfully created remote password according to the preset rules and the first parameter information of the newly created first remote password. If the random number of the first parameter information is the random number in the first encrypted data, or the valid time of the first parameter information is less than or equal to the preset time, or the number of parameter information of the successfully created remote password is less than or equal to the preset number, it means that the first device can add the newly created first parameter information to the parameter information of the successfully created remote password. That is, the first remote password is successfully created remotely. By setting preset rules, the embodiment of the present application can avoid adding invalid parameter information (such as parameter information corresponding to a password not associated with the first device) to the parameter information of the successfully created remote password. The reliability and security of the remote password setting process are improved, and the user experience is enhanced.
[0042] In an implementation manner 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.
[0043] Furthermore, when the first device sends the fourth request to the server, the first device further includes: outputting acquisition prompt information, where the acquisition prompt information is used to prompt that parameter information corresponding to the successfully created remote password is being acquired.
[0044] After sending the fourth request to the server, if the first device does not receive parameter information corresponding to the successfully created remote password, it outputs connection prompt information; the connection prompt information is used to prompt that the first device has not established a communication connection with the server.
[0045] As can be seen, after the first device detects the user's input operation triggering the remote password mode, it can retrieve the parameter information corresponding to the successfully created remote password from the server. During the retrieval process, a prompt is provided to the user. If the first device fails to retrieve the parameter information corresponding to the successfully created remote password, a connection prompt may also be provided to the user, informing the user that the first device has not established a communication connection with the server. This can provide users with more user-friendly functions and improve the user's interactivity with the first device.
[0046] In one implementation of the second aspect, the first device may detect a user input during an unlocking operation based on the first remote password within a validity period and obtain the input door lock password. The first device may then perform the unlocking operation within the validity period based on the door lock password and the first remote password.
[0047] Specifically, when the first device performs an unlocking operation within the validity period based on the door lock password and the first remote password, it can obtain the unlocking time, which is the moment when the door lock password is entered. Next, based on the unlocking time, the first device can determine, among the j pieces of parameter information, f pieces of third parameter information whose validity period includes the unlocking time, where f is less than or equal to j. The first device then generates f unlocking passwords based on the random numbers and timestamps corresponding to the f pieces of third parameter information. If any of the f unlocking passwords matches the door lock password, the unlocking operation is performed. The password that matches the door lock password is the first remote password.
[0048] As can be seen, when the first device performs an unlocking operation based on the first remote password within its validity period, it can first filter the parameter information corresponding to the successfully created remote password based on the unlocking time, and filter out at least one parameter information whose validity period includes the unlocking time. Then, based on the random number and timestamp in the at least one filtered parameter information, at least one unlocking password is generated. If at least one unlocking password 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, but is instead generated using a random number and timestamp, thereby improving the reliability and security of the unlocking operation.
[0049] In a third aspect, a remote password processing method is provided, which is applied to a server. The method includes: the server receives first parameter information corresponding to a first remote password sent by a second device.
[0050] Among them, the first parameter information includes a random number, a timestamp and a validity period. The first remote password is generated by the second device based on the random number and the timestamp, and the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the password validity period, and the setting operation is used to set at least two of the effective start time, effective end time or effective duration of the validity period.
[0051] Next, the server may send the first parameter information to the first device, so that the first device performs an unlocking operation according to the first remote password within the validity period, where the first remote password is generated by a random number and a timestamp.
[0052] It can be seen that the second device can remotely generate and display the first remote password and send the first parameter information corresponding to the first remote password to the server. The server can synchronize the first parameter information corresponding to the first remote password to the first device, so that the first device performs an unlocking operation according to the first remote password within the validity period. It can be seen that the first parameter information includes a random number, a timestamp, and a validity period. The server can implement the process of remotely setting the remote password corresponding to the first device without transmitting the generated remote password. In this way, the security of the remote password is improved and the user experience is enhanced.
[0053] In an implementation manner of the third aspect, the method also includes: the server receives first encrypted data sent by the first device, the first encrypted data is obtained by encrypting the first random number and the second random number based on the key; the first random number and the second random number are generated by the first device.
[0054] After the first device performs the unlocking operation, the server receives the latest first encrypted data sent by the first device and saves the latest first encrypted data, wherein the latest first encrypted data includes the second random number and the third random number encrypted by the key.
[0055] 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 generates the first remote password based on the random number with the latest generation time in the first encrypted data. In the embodiment of the present application, by selecting between the two random numbers, the remote password generated each time is prevented from having a high degree of similarity, thereby improving the communication security of the remote password.
[0056] After the first device performs the unlocking operation, the server will continue to receive and store the latest first encrypted data sent by the first device. As can be seen, the embodiment of the present application can adopt a dual random number update mechanism, retaining the random number with a later generation time in the encrypted data and adding a newly generated random number. In this way, the remote password is always generated based on the latest first encrypted data, improving the reliability and stability of the remote password.
[0057] In a fourth aspect, a device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program comprises instructions, which, when executed by the processor, enable the device to execute the remote password processing method as described in the first aspect above.
[0058] In a fifth aspect, a device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program comprises instructions, which, when executed by the processor, enable the device to execute the remote password processing method as described in the second aspect above.
[0059] In the sixth aspect, a server is provided, which includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and the program includes instructions, and when the instructions are executed by the processor, the server executes the remote password processing method as described in the third aspect above.
[0060] In a seventh aspect, a communication system is provided, which includes the device provided in the fourth aspect, the device provided in the fifth aspect, and the server provided in the sixth aspect.
[0061] In an eighth aspect, a readable storage medium is provided, in which instructions are stored. When the instructions are executed on a device, the device can execute the remote password processing method of the first aspect, or the remote password processing method of the second aspect, or the remote password processing method of the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] FIG1 is a schematic diagram of the structure of a communication system provided in an embodiment of the present application;
[0063] FIG2 is a schematic diagram of the hardware structure of a smart door lock provided in an embodiment of the present application;
[0064] FIG3 is an interactive diagram of a remote password processing method provided in an embodiment of the present application;
[0065] FIG4 is a schematic diagram of an interface for adding a device provided in an embodiment of the present application;
[0066] FIG5 is a schematic diagram of a connection interface provided in an embodiment of the present application;
[0067] FIG6 is a schematic diagram of a prompt interface provided in an embodiment of the present application;
[0068] FIG7 is a schematic diagram of a first password interface provided in an embodiment of the present application;
[0069] FIG8 is a schematic diagram of a password creation interface provided in an embodiment of the present application;
[0070] FIG9 is an interactive diagram of a remote password generation process provided by an embodiment of the present application;
[0071] FIG10 is a schematic diagram of an interface of a first information provided in an embodiment of the present application;
[0072] FIG11 is a schematic diagram of an interface of a second information provided in an embodiment of the present application;
[0073] FIG12 is a schematic diagram of a second password interface provided in an embodiment of the present application;
[0074] FIG13 is a schematic diagram of an interface for changing parameter information provided in an embodiment of the present application;
[0075] FIG14 is an interactive diagram of a password unlocking process provided in an embodiment of the present application;
[0076] FIG15 is a schematic diagram of an interface of a smart door lock provided in an embodiment of the present application;
[0077] FIG16 is a schematic structural diagram of a device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. Among them, in the description of the present application, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B; "and / or" in the present application is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple. In addition, in order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit differences. At the same time, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a concrete way for easy understanding.
[0079] In addition, the network architecture and business scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Ordinary technicians in this field can know that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
[0080] Smart door locks are used in many places. These locks offer a variety of unlocking methods, smart peek features, voice prompts, and low-battery alerts. Users can also interact with smart door locks through devices like mobile phones. For example, users can use the smart door lock app on their device to bind the lock, set a password, and view the outside view.
[0081] Typically, users can use the smart door lock's corresponding application to set a permanent password for the smart door lock. If the owner of the smart door lock is not in the local area and a visitor needs to unlock the door, the owner can remotely set a temporary password for the smart door lock, which the visitor can use to unlock the smart door lock. For ease of description, the smart door lock application will be referred to as the door lock application.
[0082] Specifically, when the door lock app is bound to the smart door lock and time-synchronized, the door lock app and the smart door lock can use the same password generation algorithm and store the same preset parameters. When using the smart door lock, the homeowner can activate the door lock app's function to generate a temporary password. The door lock app generates a temporary password based on the password generation algorithm and preset parameters. The homeowner then shares the temporary password with a visitor, who enters it into the smart door lock. The smart door lock then inversely solves the temporary password to obtain the preset parameters, matches the preset parameters, and unlocks the door after a successful match.
[0083] However, temporary passwords are typically valid for a fixed period of time 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 places restrictions on the actions of both the homeowner and the visitor. For example, a visitor may only be able to visit within 30 minutes. For another example, if the visitor cannot visit within 30 minutes, the homeowner must set a temporary password again. Consequently, users face certain limitations when using smart door locks, with low flexibility and poor operational convenience.
[0084] Furthermore, when matching the preset parameters, the smart door lock will also try to compare it with the password that the user has been accustomed to using for a long time (usual password). Similarly, when unlocking the door based on the usual password, the smart door lock will also compare the usual password with the preset parameters, resulting in a longer unlocking time, thus reducing the user experience.
[0085] As can be seen from the above, currently, smart door locks can only remotely set a one-time temporary password. When the owner is not at the smart door lock, such as when renting a house or when a guest is visiting, the owner, tenant, and guest all need to perform cumbersome operations and face restrictions on their movements. This results in a poor user experience for smart door lock users.
[0086] Based on the above, embodiments of the present application provide a remote password processing method and device. In this method, a second device can display a first remote password upon a first operation entered in a password creation interface. The first remote password is generated from a random number and a timestamp, where the timestamp indicates the time when the first remote password was generated. Subsequently, the second device can also detect an operation to set the validity period of the first remote password and determine the validity period of the first remote password. 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.
[0087] The second device can then detect the second operation on 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 with the first device. The first parameter information includes a random number, a timestamp, and an expiration date. 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 expiration date. The first remote password can be reused within the expiration date, and the length of time corresponding to the expiration date is not fixed. Furthermore, the second device can also edit the expiration date corresponding to the first remote password and delete the first remote password.
[0088] For example, if the homeowner is away from the smart door lock in a rental apartment, they can use their phone to create a remote password for the smart door lock and share it with the tenant. The phone then synchronizes the corresponding parameters of the remote password to the server and the smart door lock. The tenant can then unlock the smart door lock using the shared remote password. Furthermore, the homeowner can edit the remote password's validity period and delete any successfully created remote password at any time.
[0089] As can be seen, the embodiments of the present application allow users to remotely set a remote password for the smart door lock, and this remote password can be reused within its validity period. It also allows users to arbitrarily set the validity period of the remote password, and the validity period corresponds to a variable length. This avoids significant limitations during the use of the smart door lock and improves user convenience.
[0090] The remote password processing method provided in this application can be applied to a communication system. Referring to Figure 1, a communication system provided in an embodiment of this application includes a first device 101 (such as a user's smart door lock), a second device 102 (such as a user's mobile phone) and a server 103.
[0091] In some embodiments, a wireless communication connection may be established between the first device 101 and the second device 102. For example, the wireless communication connection includes, but is not limited to, a short-range wireless communication connection such as a Bluetooth communication connection, a near-field communication connection, or a wireless local area network communication connection. In one implementation, a Bluetooth communication connection may be established between the first device 101 and the second device 102. The second device 102 may generate a remote password and send parameter information corresponding to the remote password to the first device 101 using the Bluetooth communication channel.
[0092] The first device 101 and the second device 102 also establish communication connections 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 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 it can be implemented as a single server.
[0093] It should be noted that the above communication system may not be provided with the server 103, and the embodiments of the present application do not specifically limit this.
[0094] Among them, the wireless communication technology for establishing a wireless communication connection includes but is not limited to at least one of the following: wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth low energy (BLE) Bluetooth), near field communication (NFC), Zigbee, frequency modulation (FM) and infrared (IR), etc.
[0095] In some embodiments of the present application, users can use their mobile phones to set one or more remote passwords for smart door locks. The validity period of the remote password is set by the user and can be modified. The successfully created remote password also supports deletion. Specifically, after the smart door lock establishes a communication connection with the server, the mobile phone can send the parameter information corresponding to the remote password set by the user to the server and the smart door lock. Similarly, the mobile phone can also send the change processing information corresponding to the remote password to the server and the smart door lock.
[0096] In some embodiments of the present application, the number of the second device 102 can be one or more. For example, the second device 102 can also be a tablet computer used by the user, and the user can also use the tablet computer to remotely set one or more remote passwords of the smart door lock.
[0097] It can be understood that the first device in the example of this application can be, for example, smart security devices such as smart door locks and smart password locks, and the second device can include, for example, smart phones, tablets, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, wearable devices, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart screens, smart cars, smart speakers, robots, etc. This application does not impose any special restrictions on the specific forms of the first device and the second device.
[0098] Furthermore, the operating systems installed on the first device 101 and the second device 102 include but are not limited to This application does not limit the specific type of device or the type of operating system if an operating system is installed.
[0099] A communication system provided in an embodiment of the present application may further include a time server 104 (Network Time Protocol, NTP), which is used to provide accurate network time to the first device 101 and the second device 102, that is, to serve as an accurate time source for the first device 101 and the second device 102.
[0100] It should be noted that the above communication system may not include the time server 104, and the function of synchronizing network time may be integrated into the server 103. Alternatively, the server 103 may include the time server 104 and a server cluster.
[0101] The communication system provided in the embodiment of the present application may further include a third device 105 (e.g., a router) in addition to the first device 101 and the second device 102. The third device 105 may establish a communication connection between the first device 101 and the second device 102, and between the first device 101 and the server 103. The third device 105 may provide network access services for devices connected to it.
[0102] It should be noted that the communication system provided in the embodiments of the present application includes, but is not limited to, interaction between the five devices described above, and may also include interaction between one device and multiple devices. Those skilled in the art may determine the type and number of devices based on actual needs, and such designs do not exceed the scope of protection of the embodiments of the present application.
[0103] The first device 101 and the second device 102 in the embodiment of the present application can be implemented by different / same devices. For example, the first device 101 in the embodiment of the present application can be implemented by the hardware structure shown in Figure 2.
[0104] The following introduces the smart door lock involved in the embodiments of the present application.
[0105] FIG2 shows a schematic diagram of the hardware structure of a smart door lock.
[0106] The smart door lock may include a processor 210, an internal memory 220, a charging management module, a power management module, a battery, an antenna, a wireless communication module, a speaker, a sensor module, buttons, an indicator, a camera, and a display screen.
[0107] It is understood that the structures illustrated in the embodiments of this application do not constitute specific limitations on the smart door lock. In other embodiments of this application, the smart door lock may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0108] The processor 210 may include one or more processing units. For example, the processor 210 may include an application processor, a modem processor, a graphics processor, an image signal processor, a controller, a memory, a video codec, a digital signal processor, a baseband processor, and / or a neural network processor. The different processing units may be independent devices or integrated into one or more processors.
[0109] The controller can be the nerve center and command center of the smart door lock. The controller can generate operation control signals based on instruction opcodes and timing signals to complete the control of instruction fetching and execution.
[0110] Processor 210 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 210 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 210. If processor 210 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 210 latency, and thus improves system efficiency.
[0111] Below, the technical solution provided by the example of this application is described in detail in combination with the accompanying drawings, taking the first device 101 as a smart door lock used by the user, the second device 102 as a mobile phone used by the user, and the third device 105 as a router as an example.
[0112] FIG3 is an interactive schematic diagram of a remote password processing method according to an embodiment of the present application. As shown in FIG3 , the method may include the following steps S300 - S310 .
[0113] S300: The smart door lock performs a registration operation.
[0114] S301. After successfully registering with the server, the smart door lock sends first encrypted data to the server. The first encrypted data includes an encrypted first random number and a second random number.
[0115] In some embodiments of the present application, after installing the smart door lock, the user can use the application on the mobile phone to perform Bluetooth binding and device registration on the smart door lock. It is understandable that after the smart door lock is installed, the mobile phone needs to perform Bluetooth pairing with the smart door lock and control the smart door lock to perform the registration operation.
[0116] It should be noted that both the mobile phone and the smart door lock have their Bluetooth connection function and wireless local area network (WLAN) connection function enabled before Bluetooth binding and device registration to facilitate the Bluetooth binding and device registration process.
[0117] Exemplarily, the user can add a smart door lock to the smart life application of the mobile phone to implement the Bluetooth binding and device registration process. Figure 4 is a schematic diagram of an interface for adding a device provided in an embodiment of the present application. As shown in (A) in Figure 4, it is a schematic diagram of the front of the mobile phone provided in an embodiment of the present application. A smart life application icon 400 is displayed on the display screen of the mobile phone. The user can click on the smart life application icon 400. As shown in (B) in Figure 4, the mobile phone responds to the click operation on the smart life application icon and displays the user interface of the smart life application. The user interface may include pre-configured scene names, devices in the home, and corresponding status information, etc. For example, the devices in the home and the corresponding status information include the TV in the living room (online), the TV in the master bedroom (online), and the audio in the master bedroom (offline), etc. The pre-configured scene names include home scene, sleep scene, and going out scene, etc. The user interface may also include icons of configured devices.
[0118] It is understood that the configured device can be a device associated with a user account. The user must log in to the corresponding user account in the Smart Life application. Furthermore, the user's pre-configured device must be bound to the user account to complete the configuration. If the user is not logged in to the Smart Life application, they must log in to the corresponding user account and enter their username and password.
[0119] Continuing to refer to (B) in Figure 4, the user can also click the "+" icon on the user interface to add devices and create scenes with one click. For example, as shown in (C) in Figure 4, after the user clicks the "+" icon, the mobile phone controls the display screen to display a drop-down menu in response to the user's click operation. The drop-down menu includes an add device control 401, a share device control 402, a create scene control 403, and a connect third-party platform control 404. The user can click on the pre-configured add device control 401 in the drop-down menu to trigger the entry into the add device interface. As shown in (D) in Figure 4, the mobile phone displays the add device interface in response to the user clicking the add device control 401.
[0120] Specifically, in response to the user clicking on the add device control 401, the mobile phone sends a scan request. The scan request is used to scan for smart door locks whose Bluetooth is in a connectable state near the mobile phone. The scan request may include the Bluetooth address of the mobile phone. While the mobile phone is searching for nearby smart door locks, the smart door lock may send a broadcast data packet. The smart door lock may send a broadcast data packet through its internal Bluetooth module. The broadcast data packet can be used by the smart door lock to broadcast to nearby devices that its Bluetooth is in a connectable state. The broadcast data packet may include the Bluetooth address of the smart door lock. When the mobile phone receives the broadcast data packet from the smart door lock, the corresponding information of the smart door lock is displayed in the add device interface.
[0121] Continuing with (D) in FIG4 , the add device interface includes the device name of the device to be added, a connection control 405, a rescan control, a manual add control corresponding to the manual add method, and a scan code add control corresponding to the scan code add method. For example, a user can click the connection control 405 corresponding to the smart door lock to perform Bluetooth binding. In this way, in response to the user's click on the connection control 405, the mobile phone displays the corresponding connection interface and sends a Bluetooth binding request to the smart door lock corresponding to the connection control 405 to achieve Bluetooth binding with the smart door lock.
[0122] Continuing with Figure 5 (A), the connection interface includes a WLAN name display box 501a, a WLAN password display box 501b, a pairing code display box 502, and a next control 503. WLAN name display box 501a displays the WLAN name, WLAN password display box 501b displays the WLAN password, and pairing code display box 502 displays the pairing code to be used for Bluetooth binding. For example, the pairing code is 123456. The user can select the correct WLAN name and enter the correct WLAN password to obtain the pairing code.
[0123] In some embodiments of the present application, the smart door lock can receive a Bluetooth binding request sent by a mobile phone and display a prompt interface. In one implementation, referring to FIG6 (A), the prompt interface 601 can display a pairing code to be entered. The user enters the correct pairing code, and the smart door lock responds by Bluetooth binding with the mobile phone.
[0124] In another possible implementation, referring to (B) in FIG6 , the prompt interface may include a prompt message 602, a confirmation control 603, and a cancel control 604. The prompt message 602 is used to prompt whether to confirm Bluetooth binding of the smart door lock and the mobile phone, the confirmation control 603 is used to confirm Bluetooth binding of the smart door lock and the mobile phone, and the cancel control 604 is used to reject Bluetooth binding of the smart door lock and the mobile phone. The smart door lock then performs Bluetooth binding with the mobile phone in response to the user operation on the confirmation control 603. The specific implementation process of Bluetooth binding between the mobile phone and the smart door lock is not limited in this embodiment of the application.
[0125] Continuing with (B) in FIG5 , the user needs to select a WLAN name and enter the corresponding WLAN password in the connection interface, and enter the pairing code in the pairing code input box. The user can then check the box that the pairing code input is complete and click the next control 503 to trigger the phone to send a connection instruction.
[0126] In some embodiments of the present application, in response to a user clicking a next control, the mobile phone sends a connection instruction to the smart door lock. Based on the connection instruction, the smart door lock sends a registration request to the server. The server then receives the registration request sent by the smart door lock, establishes a communication connection with the smart door lock, and sends a first notification message to the smart door lock, notifying the smart door lock of successful registration.
[0127] When establishing a communication connection with the server, the smart door lock can establish a communication connection via a router. The router can provide network access services for devices connected to it, that is, the mobile phone and the smart door lock can be connected to the same network (such as a home WLAN) through the router. The mobile phone and the smart door lock can also be connected to the server through the router. It should be noted that the data transmitted by the mobile phone and the smart door lock through the WLAN communication connection can be transferred to the other end through the router or without being transferred through the router.
[0128] It can be understood that Figures 4 to 6 are only an example of Bluetooth binding and device registration between a mobile phone and a smart door lock provided in this application, and should not constitute a limitation to this application.
[0129] The mobile phone and the smart door lock can also establish a communication connection through other methods. At the same time, the embodiments of the present application are not limited to achieving communication connection between the smart door lock and the server through a router, nor are they limited to achieving communication connection between the mobile phone, the smart door lock and the server through a router. The mobile phone and the smart door lock can also access the server through other types of network access devices. Moreover, the mobile phone and the smart door lock are not limited to the above-mentioned WLAN communication connection. The mobile phone and the smart door lock can also transmit data through other high-bandwidth communication connections.
[0130] In some embodiments of the present application, after successfully registering with a server, the smart door lock generates a first random number and a second random number. The first and second random numbers are encrypted using a key to generate first encrypted data. The smart door lock then sends the first encrypted data to the server. The first encrypted data includes the encrypted first and second random numbers.
[0131] After generating the first encrypted data, the smart door lock can save the first encrypted data locally. Correspondingly, after receiving the first encrypted data sent by the smart door lock, the server can also save the first encrypted data.
[0132] In one practicable embodiment, the smart door lock may determine that the registration is successful upon receiving the first notification message sent by the server. Then, after successfully registering with the server, the smart door lock generates a first random number and a second random number, and encrypts the first random number and the second random number based on the key to obtain first encrypted data.
[0133] In another possible implementation, the server may generate a first random number and a second random number, and send the first random number and the second random number to the smart door lock. The smart door lock then encrypts the first random number and the second random number based on the key to obtain first encrypted data.
[0134] It should be noted that the random number can be generated by the smart door lock or by other devices. In addition, the random numbers in the embodiments of the present application include but are 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. The embodiments of the present application do not specifically limit the random number generation device, the type of random number, and the number of random numbers encrypted in the encrypted data.
[0135] In some embodiments of the present application, the first random number and the second random number have a chronological order, and the generation time of the first random number is earlier than the generation time of the second random number. The first random number and the second random number may each have a first identifier and a second identifier, which are used to determine the chronological order between the random numbers. It is conceivable that the generation time of the first encrypted random number is also earlier than the generation time of the second encrypted random number.
[0136] The identifier may include a location identifier or a time identifier.
[0137] For example, the first identifier may be a first time identifier such as 12:33, and the second identifier may be a second time identifier 12:34. In this way, the time sequence between the two random numbers can be determined based on the time of the first time identifier and the second time identifier.
[0138] As another example, the first identifier can be a first position identifier such as 0, and the second identifier can be a second position identifier such as 1. Here, 0 can be used to represent a random number position that comes earlier in time, and 1 can be used to represent a random number position that comes later in time. In this way, the temporal sequence between two random numbers can be determined based on the first position identifier and the second position identifier. It should be noted that this application does not limit the implementation form of the identifiers or the implementation form of the temporal relationship between different random numbers.
[0139] S302. The mobile phone obtains the key when establishing a short-range communication connection with the smart door lock.
[0140] In some embodiments of the present application, a mobile phone and a smart door lock can successfully bind Bluetooth and establish a Bluetooth communication connection. This Bluetooth communication connection can be used for the mobile phone and the smart door lock to exchange data (such as fingerprint data, face data, and password-related data). When the mobile phone and the smart door lock use this Bluetooth communication connection to exchange data, they can use an agreed-upon key to encrypt this data. The mobile phone can obtain the key after establishing a communication connection with the smart door lock.
[0141] In one implementation, after detecting that a Bluetooth communication connection has been established with the smart door lock for the first time, the mobile phone can send a first request to the smart door lock. The first request is for obtaining a key. The key is used to encrypt and / or decrypt data when the mobile phone and the smart door lock are transmitting data. The smart door lock then sends the key to the mobile phone based on the first request.
[0142] In another possible implementation, the smart door lock can also directly send the key to the mobile phone after detecting that a Bluetooth communication connection is established with the mobile phone for the first time.
[0143] The scenario where a mobile phone establishes a Bluetooth communication connection with a smart door lock for the first time can be a scenario where the smart door lock enters the user's biometric information after the smart door lock is successfully registered. In other words, after the user uses the mobile phone and the smart door lock to complete the Bluetooth binding and device registration process, they can control the mobile phone and the smart door lock to establish the first Bluetooth communication connection and enter their own biometric information on the smart door lock side. The biometric information can include fingerprint information, retinal information, voiceprint information, and facial image information. In this way, the mobile phone can obtain the key after the first Bluetooth communication connection is established with the smart door lock.
[0144] In some embodiments of the present application, the mobile phone and the smart door lock can replace the above-mentioned keys regularly or irregularly.
[0145] In one possible implementation, the smart door lock can periodically change the key and use the changed key to encrypt the random number. Furthermore, after the smart door lock changes the key, if it detects that a Bluetooth communication connection has been established with a mobile phone, it will send the changed key to the mobile phone. For example, the smart door lock can change the key every month, and after the key is changed, as long as it detects that a Bluetooth communication connection has been established with a mobile phone, it will send the changed key to the mobile phone. It is understood that after the smart door lock changes the key, it can also re-encrypt the random number and send the updated encrypted data to the server.
[0146] In another achievable manner, the mobile phone may also periodically send a first request to the smart door lock to obtain an updated key after detecting that a Bluetooth communication connection has been established with the smart door lock. For example, the mobile phone may send a first request to the smart door lock to obtain an updated key each time it detects that a Bluetooth communication connection has been established with the smart door lock.
[0147] It should be noted that the communication connection between the mobile phone and the smart door lock in the embodiments of the present application includes, but is not limited to, a 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, the embodiments of the present application do not limit the specific implementation method for agreeing on a key between the mobile phone and the smart door lock and using the key to encrypt data.
[0148] It can be seen that since the data interacting between the mobile phone and the smart door lock involves user privacy data, the embodiment of the present application uses a key to encrypt and transmit user data (such as random numbers in password-related data), which can improve the security of user privacy data transmission.
[0149] S303: The mobile phone detects the first operation and displays the first remote password.
[0150] In some embodiments of the present application, the user can use the remote password function of the smart door lock in the smart life application to create a remote password for the smart door lock even if the user is not near the smart door lock.
[0151] Specifically, the mobile phone detects the third operation entered by the user in the device management interface and sends a fifth request to the server. The fifth request is used to request the server to return m parameter information corresponding to the smart door lock. The server receives the fifth request sent by the mobile phone and sends the m parameter information to the mobile phone. The mobile phone can then obtain the m parameter information and display the identification information corresponding to the m successfully created remote passwords based on the m parameter information. It should be noted that the m parameter information in the server comes from the smart door lock. The identification information corresponding to the successfully created remote password can include the password identifier and the password validity period.
[0152] The m pieces of parameter information include parameter information of each of the m successfully created remote passwords, where m is an integer not less than 1. The parameter information includes a remote password identifier, and at least two of a valid start time corresponding to the remote password, a valid end time corresponding to the remote password, or a valid duration corresponding to the remote password. The parameter information may further include a setting time corresponding to the remote password and / or a setting user identifier corresponding to the remote password.
[0153] In some embodiments of the present application, this may not be the first time a user is using the remote password function of a smart door lock. In this scenario, it is conceivable that the user has previously created at least one remote password. In this case, the mobile phone sends a fifth request to the server, which searches for and sends the successfully created remote password to the mobile phone.
[0154] In some embodiments of the present application, the user may be using the remote password function of the smart door lock for the first time. In the scenario where the user uses the remote password function for the first time, it is conceivable that the user has never created a remote password before.
[0155] In one implementation, the mobile phone sends a fifth request to the server. If the server detects that it is the first time to receive the fifth request, it sends a second notification message to the mobile phone. The second notification message is used to notify the mobile phone that no remote password has been successfully created.
[0156] 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. Then, the mobile phone can display the first password interface according to the second notification message.
[0157] The following describes the first password interface for a user to trigger entry for the first time and for a user to trigger entry for the non-first time with reference to FIG. 7 .
[0158] If this is not the first time the user is using the remote password function, as shown in Figure 7 (A), the user can use the remote password function in the device management interface of the smart door lock. The device management interface includes the device icon, device status, function area, and record area corresponding to the smart door lock. The function area includes user management controls, remote password controls, power management controls, and more function controls. The user can click the remote password control to trigger the first password interface. The phone detects the user's click on the password control and displays the first password interface.
[0159] (B) in Figure 7 is a schematic diagram of a first password interface provided in an embodiment of the present application. Referring to (B) in Figure 7, the first password interface includes a first control corresponding to a successfully created remote password and a second control corresponding to creating a remote password. For example, the first control may include: Password 1 09:00 04 / 16-12:00 04 / 20, Password 2 01:00 05 / 01-12:00 05 / 03, and Password 3 12:00 05 / 10-15:00 05 / 12. The user can click on the second control to trigger the password creation interface to create a remote password.
[0160] When the user uses the remote password function for the first time, as shown in Figure 7 (C), the first password interface includes a second control for creating a remote password. The user can also click on the second control to trigger the password creation interface to create a remote password.
[0161] In some embodiments of the present application, the user can trigger the creation of a password interface in the first password interface to create a new remote password. Specifically, the mobile phone detects the user's click operation on the second control and displays the creation of a password interface.
[0162] For example, referring to (A) in FIG8 , 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 is used to trigger the generation of a remote password after a user input operation. The password display box is used to display the generated remote password. The password validity period setting area is used to set the valid start time, valid end time, and valid duration corresponding to the remote password. The password save control is used to save the setting parameter information for this time. In this way, the user can obtain the remote password in the password creation interface and can also arbitrarily set the validity period of the remote password.
[0163] In some embodiments of the present application, the user can obtain the pre-created remote password in the password creation interface. The user can click the generate control in the password creation interface to trigger the generation of the remote password.
[0164] Specifically, the mobile phone detects a first operation input by the user in the password creation interface and displays the first remote password.
[0165] The specific process of generating the first remote password by the mobile phone will be exemplarily described below with reference to FIG. 9 .
[0166] FIG9 is an interactive schematic diagram of a remote password generation process shown in an embodiment of the present application. As shown in FIG9 , the remote password generation process may include the following steps S901 - S906 .
[0167] S901. The mobile phone detects a first operation and sends a second request to the server, where the second request is used to obtain the latest first encrypted data from the server.
[0168] S902: Based on the second request, the server returns the latest first encrypted data to the mobile phone.
[0169] 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.
[0170] 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.
[0171] S905. The server sends the timestamp to the mobile phone based on the third request.
[0172] S906: The mobile phone determines the random number generated later than the first random number and the second random number as the random number, and generates a first remote password based on the random number and the timestamp, and displays the first remote password on the password creation interface.
[0173] In some embodiments of the present application, after detecting the first operation, the mobile phone needs to obtain first encrypted data from the server. Because the first encrypted data is encrypted, the mobile phone can decrypt it using the key obtained from the smart door lock and also needs to synchronize the time with the server. The mobile phone then selects the most recent random number and synchronized timestamp in the first encrypted data and generates a first remote password using a password generation algorithm.
[0174] The timestamp may include year, month, day, hour, minute, and second information. The timestamp format may be arranged in the order of year, month, day, hour, minute, and second. Furthermore, the length of the generated first remote password may be a preset length. For example, the preset length may be 6 digits, 8 digits, 10 digits, 12 digits, or 24 digits.
[0175] In some embodiments of the present application, after the mobile phone generates the first remote password, the first remote password can be displayed in the password creation interface. The user can view the first remote password in the password creation interface and share the first remote password with others after obtaining the first remote password.
[0176] Exemplarily, the phone detects a user clicking on a generate control and generates a first remote password. For example, based on the second random number 0.5 and the timestamp 13:20, the generated first remote password may be 156852. Then, as shown in FIG8 (B), the phone displays the generated first remote password in the password display area of the password creation interface.
[0177] S304: The mobile phone detects the setting operation for the validity period of the first remote password and determines the validity period of the first remote password.
[0178] S305: The mobile phone detects a second operation for the first remote password and sends first parameter information corresponding to the first remote password to the server.
[0179] Accordingly, the server may save the first parameter information of the first remote password.
[0180] S306. After detecting that a communication connection is established with the smart door lock, the server sends first parameter information of the first remote password to the smart door lock.
[0181] In some embodiments of the present application, the mobile phone detects a setting operation for the validity period of the first remote password and determines the validity period of the first remote password, wherein the setting operation is used to set at least two of the validity start time, the validity end time, or the validity duration of the validity period.
[0182] After obtaining the first remote password, the user can set the validity period for the first remote password. In the password validity period setting area on the password creation interface, the user can enter at least two of the validity start time, validity end time, or validity duration corresponding to the validity period. The user can then click the password save control to save the first parameter information of the first remote password and complete the remote password creation process.
[0183] In one achievable manner, upon detecting the user's second operation on the password saving control, the mobile phone sends first parameter information corresponding to the first remote password to the server.
[0184] The first parameter information includes a random number, a timestamp, and a validity period corresponding to the first remote password.
[0185] For example, referring to (C) in Figure 8 , a user can enter a valid start time of 04 / 03 12:00 and a valid end time of 04 / 10 15:00 in the password validity period setting area of the password creation interface. The user then clicks the password save control. The mobile phone detects the user's click on the password save control and sends the first parameter information to the server. The first parameter information includes a random number of 0.5, a timestamp of 13:20, a valid start time of 04 / 03 12:00, and a valid end time of 04 / 10 15:00.
[0186] As another example, the user can also enter a valid start time of 04 / 03 12:00 and a valid duration of 7 days in the password creation interface's password validity period setting area. Based on the valid start time and valid duration entered, the phone can automatically calculate a valid end time of 04 / 10 15:00. Thus, the first parameter information includes a random number of 0.5, a timestamp of 13:20, a valid start time of 04 / 03 12:00, and a valid end time of 04 / 10 12:00.
[0187] In some embodiments of the present application, after receiving the first parameter information of the first remote password sent by the mobile phone, the server saves the first parameter information of the first remote password. Furthermore, after detecting that a communication connection has been established with the smart door lock, the server sends the first parameter information of the first remote password to the smart door lock. In this way, the mobile phone can synchronize the first parameter information of the first remote password with the smart door lock via the server, so that subsequent users can use the first remote password to open the smart door lock.
[0188] In one possible implementation, the first parameter information may further include a password identifier corresponding to the first remote password. For example, the password name corresponding to the first remote password and the password ID corresponding to the first remote password may be a password name automatically generated by the operating system or a password name customized by the user. The password ID corresponding to the first remote password may be a password serial number corresponding to the first remote password. The embodiments of the present application do not specifically limit the password name and password ID.
[0189] It should be noted that the first operation, the second operation, and the third operation may be the same operation or different operations. The above operations may include a long press operation, a single click operation, a double click operation, a pressure-sensitive operation, and a voice operation. The embodiments of the present application do not specifically limit the specific implementation form of the first operation, the second operation, and the third operation.
[0190] In summary, the embodiments of the present application can support the remote creation of a remote password corresponding to a smart door lock. This remote password is generated by the mobile phone, without the need for user input and without the need for server-side generation. At the same time, this remote password is not transmitted between multiple devices and is not transmitted to the smart door lock via the server, which improves the security of the remote password. Users do not need to share their long-standing door unlocking passwords, and can also allow others, such as visitors or tenants, to open the smart door lock using the remote password they create.
[0191] Furthermore, embodiments of the present application can also support setting a validity period for the remote password, which can be reused within the validity period. In a house rental scenario, the homeowner only needs to create a remote password once, and the tenant can open the smart door lock at any time within the validity period. This simplifies user operations while ensuring the security of the remote password, eliminating the need for additional hardware devices to create the remote password, and improving user practicality and user experience.
[0192] In some embodiments of the present application, after obtaining m parameter information, the mobile phone may further detect the number of m.
[0193] The mobile phone may send the first parameter information corresponding to the first remote password to the server when m is less than a preset number.
[0194] 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.
[0195] The mobile phone may output a first message when the number m is greater than or equal to a preset number. The first message is used to prompt that the number of remote passwords to be created has exceeded the limit.
[0196] 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," "Password 3 12:00 05 / 10-15:00 05 / 12," "Password 4 06:00 05 / 13-12:00 05 / 14," and "Password 5 12:00 05 / 15-15:00 05 / 16." It can be seen that the number of parameter information is 5, and the number of parameter information is greater than or equal to the preset number. The mobile phone can output the first information.
[0197] 10 , the first message is used to prompt that the number of remote passwords has exceeded the limit. The first message also corresponds to a first prompt control, which can be implemented as the text "There are too many passwords, please delete uncommon passwords."
[0198] As can be seen, when a user creates a remote password for a smart door lock, the mobile phone can control the number of remote passwords that can be 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 displayed to indicate that the limit has been exceeded. If the number of remote passwords does not exceed the limit, the subsequent remote password creation process can be continued.
[0199] It is understandable that if more remote passwords are set for a smart door lock, the possibility of the remote passwords being discovered will gradually increase.
[0200] Therefore, the embodiment of the present application can improve the security of the smart door lock by limiting the number of remote passwords that can be created. It should be noted that the embodiment of the present application supports setting multiple remote passwords for the smart door lock, and does not specifically limit the preset number.
[0201] S307. The smart door lock updates m parameter information according to the first parameter information.
[0202] In some embodiments of the present application, the smart door lock obtains m parameter information and updates the m parameter information according to the first parameter information and 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 is understandable that j can be greater than m.
[0203] In one achievable embodiment, the smart door lock can add the first parameter information to m parameter information based on a preset rule, where the m parameter information includes parameter information of each of the m successfully created remote passwords. In other words, the smart door lock can pre-detect the received first parameter information and, if the first parameter information meets the preset rule, add the first parameter information to the m parameter information.
[0204] The preset rule may include that the random number of the first parameter information is the random number in the first encrypted data. If the random number of the first parameter information is the random number in the first encrypted data, the smart door lock adds the first parameter information to the m parameter information.
[0205] Exemplarily, the random number in 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 in the first parameter information is the random number in the first encrypted data. In this way, the smart door lock can add the first parameter information to the m parameter information to update the successfully created remote password.
[0206] It is conceivable that if the random number in the first parameter information does not match the random number stored in the first encrypted data of the smart door lock, it means that the remote password corresponding to the first parameter information is not generated by the random number synchronized from the smart door lock to the server. In other words, the first remote password has no association with the smart door lock and is invalid. Therefore, the first parameter information is discarded.
[0207] The preset rule may further include that the validity period of the first parameter information is less than or equal to the preset period. If the validity period of the first parameter information is less than or equal to the preset period, the smart door lock adds the first parameter information to the m parameter information.
[0208] 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 door lock can add the first parameter information to the m parameter information to update the successfully created remote password.
[0209] The preset rule may further include m being less than or equal to a preset number.
[0210] 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, which is less than the preset number. Thus, the smart door lock can add the first parameter information to the m parameter information to update the successfully created remote password.
[0211] In some embodiments of the present application, the smart door lock side can detect the first parameter information. If it is determined that the first parameter information does not meet the preset rules, a third notification message can be sent to the mobile phone. The third notification message is used to notify that the first remote password corresponding to the first parameter information was not successfully created.
[0212] In one implementation, the mobile phone may output a second message based on the third notification message. The second message is used to indicate that the remote password was not successfully created. Referring to FIG. 11 , the second message also corresponds to a second prompt control, which may be implemented as the text "Remote password was not successfully created."
[0213] In another possible implementation, the mobile phone can continue to display the first password interface based on the third notification information. It is understandable that the first password interface does not include the first parameter information created by the user this time.
[0214] S308. The smart door lock sends j parameter information and the first encrypted data to the server.
[0215] S309. The server sends j parameter information to the mobile phone.
[0216] S310. The mobile phone displays identification information of j successfully created remote passwords according to the j parameter information.
[0217] In some embodiments of the present application, after updating m parameter information, the smart door lock sends the obtained j parameter information and the first encrypted data to the server.
[0218] In one implementation, the smart door lock may send a first refresh instruction, j pieces of parameter information, and first encrypted data to a server. The first refresh instruction is used to instruct the server to update the stored m pieces of parameter information and first encrypted data.
[0219] Furthermore, the server receives the j parameter information and the first encrypted data, and can send the j parameter information to the mobile phone.
[0220] In one implementation, the server may send a second refresh instruction and j pieces of parameter information to the mobile phone. The second refresh instruction is used to instruct the mobile phone to update the m pieces of parameter information that have been saved.
[0221] Then, the mobile phone can display a second password interface based on the j parameter information, wherein the second password interface is an interface after refreshing the first password interface, and the second password interface includes the updated remote password that has been successfully created, and the updated remote password that has been successfully created includes the first parameter information.
[0222] For example, after a user clicks the "Save Password" control on the remote password creation interface, the second password interface is triggered. Referring to 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.
[0223] It is understood that the second password interface is a refreshed interface of the first password interface, and the second password interface 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.
[0224] As can be seen, during the process of creating a remote password, the user can view the historical password, that is, the currently successfully created remote password. Furthermore, after successfully creating the remote password, the user can view the updated parameter information, which includes the parameter information corresponding to the historical password and the currently created remote password. The process of creating a remote password in the embodiment of the present application is simple, allowing users to remotely create the smart door lock's door opening password, allowing users to quickly and flexibly control the smart door lock, improving the user experience.
[0225] In some embodiments of the present application, a user can remotely edit a successfully created remote password. For example, a user can delete a successfully created remote password. For another example, a user can also modify the validity period of a successfully created remote password.
[0226] In one achievable manner, the mobile phone may send change processing information corresponding to the second remote password to the server for the change processing operation of the second remote password, where the second remote password is a remote password that has been successfully created.
[0227] Upon detecting that a communication connection has been established with the smart door lock, the server sends change processing information corresponding to the second remote password to the smart door lock. The smart door lock receives the change processing information and performs change processing on the second parameter information corresponding to the second remote password among the m parameter information, thereby obtaining n parameter information. The n parameter information includes the second parameter information corresponding to the second remote password after the smart door lock has performed the change processing, and n is an integer not less than 1.
[0228] The smart door lock then sends n parameter information to the server, which in turn sends n parameter information to the mobile phone. The mobile phone can also receive n parameter information from the server and, based on the n parameter information, display identification information corresponding to n successfully created remote passwords. It is understood that the user can delete a successfully created remote password or modify the validity period of a successfully created remote password. Thus, n can be less than or equal to m.
[0229] In the scenario of changing the validity period of the remote password, the change processing information may include the password identifier corresponding to the second remote password, the changed validity start time, and the changed validity end time.
[0230] The server sends the change processing information to the smart door lock, and the smart door lock searches for a password identifier corresponding to the second remote password. If a password identifier corresponding to the second remote password exists, the second parameter information corresponding to the second remote password is updated based on the effective start time and effective end time of the change.
[0231] For example, referring to (A) in FIG13 , the first password interface includes "Password 1 09:00 04 / 16-12:00 04 / 20," "Password 2 01:00 05 / 01-12:00 05 / 03," and "Password 3 12:00 05 / 10-15:00 05 / 12." The user can click on the identification information of any remote password to trigger the corresponding password creation interface. For example, if the phone detects a click on the identification information corresponding to the second remote password (Password 3), the password creation interface corresponding to the second remote password will be displayed.
[0232] As shown in Figure 13 (B), the user can edit the password validity period in the password creation interface. For example, the validity period in Password 3 can be changed to 15:00 05 / 10-15:00 05 / 18. The phone detects the edit operation on the validity period corresponding to the second remote password and sends a change processing message about the second remote password to the server. The change processing message includes Password 3, 15:00 05 / 10, and 15:00 05 / 18.
[0233] In the scenario of deleting the remote password, the mobile phone can also detect the change processing operation for the second remote password and send the change processing information of the second remote password to the server, wherein the change processing information includes the password identifier corresponding to the second remote password.
[0234] The server sends the change processing information of the second remote password to the smart door lock. The smart door lock deletes the second parameter information corresponding to the password identifier based on the change processing information. It is conceivable that the change processing information may also include a change result corresponding to the second parameter information or a change processing instruction corresponding to the second parameter information. For example, the change result is used to indicate that the second parameter information has been deleted, and the change processing instruction is used to instruct the deletion of the second parameter information.
[0235] For example, referring to (B) in FIG13 , 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 delete operation on the second remote password and sends a change processing information to the server. The change processing information includes the password identifier "Password 3."
[0236] In another possible implementation, the mobile phone can also detect an operation to change the second remote password and send second parameter information corresponding to the changed second remote password to the server. The server then sends the second parameter information to the smart door lock. The smart door lock changes the stored second remote password based on the second parameter information. After the second remote password is successfully changed, the smart door lock sends a first indication message to the server. The server then sends the first indication message to the mobile phone, indicating that the second remote password has been successfully changed.
[0237] That is, 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.
[0238] It is understandable that the second remote password and the first remote password can be the same remote password. After successfully creating the first remote password, the user can also change the first remote password.
[0239] As can be seen, the embodiments of the present application support editing of successfully created remote passwords. A successfully created remote password can be deleted, and the validity period corresponding to a successfully created remote password can be changed. In the scenario of a house rental, the corresponding remote password will immediately become invalid after the lease expires, and the homeowner can delete the expired remote password. Alternatively, if the tenant checks out early or the lease is extended, the homeowner can flexibly adapt the remote password according to the tenant's usage needs.
[0240] In other words, the householder does not need to frequently create remote passwords according to the usage scenario requirements. Instead, the householder can repeatedly modify the validity period of the remote password without changing the remote password. This simplifies the user's remote password operation process in different usage scenarios and improves user operation efficiency.
[0241] Based on the above content, the user can remotely create a remote password for the smart door lock, or remotely edit the remote password that has been successfully created. In some embodiments of the present application, the user can also create a remote password for the smart door lock and edit the created remote password at the near end of the smart door lock.
[0242] When a user is near a smart door lock, the phone can establish a Bluetooth communication connection with the smart door lock. Instead of interacting with the smart door lock through a server, the phone can send data directly to the smart door lock via the Bluetooth communication channel. For example, the phone can send parameter information corresponding to the remote password directly to the smart door lock via the Bluetooth communication channel. The data exchanged between the phone and the smart door lock includes, but is not limited to, parameter information and may also include other data such as remote password change processing information. The specific data can be found above and will not be repeated here.
[0243] As you can see, in a rental scenario, users can remotely create a smart door lock password to allow tenants to enter the house. Users can also set the remote password for the smart door lock locally. This allows users to set the remote password for the smart door lock anytime, anywhere, improving the practicality of the smart door lock and enhancing the user experience.
[0244] The above content exemplarily describes the process of creating a remote password and the process of modifying a successfully created remote password. The following exemplarily describes the process of unlocking the door using the remote password.
[0245] FIG14 is an interactive schematic diagram of a password unlocking process according to an embodiment of the present application. As shown in FIG14 , the password unlocking process may include the following steps S1401 - S1405 .
[0246] S1401: The smart door lock detects an input operation that triggers entry into a remote password mode and sends a fourth request to a server. The fourth request is used to obtain j parameter information from the server.
[0247] In some embodiments of the present application, the smart door 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 on an input area, such as a click on a key combination in the numeric keypad area. In this way, a user can trigger entry into remote password mode by inputting a key combination in the numeric keypad area of the smart door lock.
[0248] Understandably, in a rental scenario, the homeowner can typically enter a long-term unlocking code directly into the numeric keypad. Since the homeowner's long-term unlocking code is different from the tenant's remote code, the tenant can trigger the smart door lock to enter remote code mode, indicating that the homeowner's set remote code is required to unlock the door. For example, as shown in Figure 15, a visitor enters "2" and the "√" key into the numeric keypad of the smart door lock to trigger remote code mode.
[0249] In this way, after receiving the first input operation acting on the input area, the smart door lock enters the remote password mode and obtains j parameter information from the server.
[0250] Among them, the input area can be the numeric keypad area in the smart door lock. The first input operation includes operations on at least two numeric keys. For example, the user can enter the "2" and "√" keys in the numeric keypad area. For another example, the user can enter the "3" and "√" keys in the numeric keypad area. For another example, the user can enter the "2", "3" and "√" keys in the numeric keypad area. It should be noted that the first input operation can also include voice operations and gesture operations, etc., which are not specifically limited in this application.
[0251] In some embodiments of the present application, the smart door lock may further output an acquisition prompt message during the process of sending the fourth request to the server. The acquisition prompt message is used to prompt that parameter information corresponding to the successfully created remote password is being acquired.
[0252] The acquired prompt information may include one or more of text prompt information, voice prompt information, and video prompt information.
[0253] For example, a smart door lock can display a reminder interface, which includes a control for displaying an item corresponding to the reminder information. The control can be implemented as the text "Synchronizing remote password, please wait."
[0254] For another example, the smart door lock may include a buzzer. The smart door lock may control the buzzer to emit a prompt tone such as "synchronizing remote password, please wait".
[0255] As can be seen, the smart door lock of the embodiment of the present application can enter the remote password mode by detecting the combination key input, accurately judging the user's usage intention. The smart door lock can also establish a communication connection with the server after triggering the remote password mode.
[0256] It is understandable that the smart door lock does 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 unlocking). Therefore, the embodiment of the present application can avoid frequent communication connections with the server to increase device power consumption, and does not affect the unlocking performance of the digital password.
[0257] S1402. The server receives the fourth request sent by the smart door lock and sends parameter information corresponding to the successfully created remote password to the smart door lock.
[0258] After obtaining the parameter information corresponding to the successfully created remote password, the smart door lock outputs a password prompt. The password prompt is used to prompt the user to enter the smart door lock password.
[0259] The password prompt information may also include one or more of text prompt information, voice prompt information, and video prompt information. For example, the smart door lock may control the buzzer to output a password prompt information such as "Please enter a 6-8 digit unlock password."
[0260] In some embodiments of the present application, if the smart door lock fails to obtain parameter information corresponding to a successfully created remote password, it may output a connection prompt message. The connection prompt message is used to indicate that the smart door lock has not established a communication connection with the server. It is understood that the smart door lock may not be able to obtain an updated remote password if it has not established a communication connection with the server. In this way, the smart door lock can output a connection prompt message to prompt the user to check the communication connection status of the smart door lock.
[0261] The connection prompt information may also include one or more of text prompt information, voice prompt information, and video prompt information. For example, the smart door lock may control the buzzer to output a connection prompt message such as "Synchronization failed, please make sure the smart door lock is connected to the network normally and try again."
[0262] S1403: The smart door lock detects the user's input and obtains the door lock password.
[0263] S1404: The smart door lock performs an unlocking operation within the validity period based on the first remote password and the door lock password.
[0264] In some embodiments of the present application, the smart door lock can detect the user's input and obtain the door lock password. After the tenant triggers the smart door lock to enter the remote password mode, the tenant can use the first remote password to unlock the door.
[0265] Based on the above, the homeowner can generate a first remote password using their mobile phone and share it with the tenant. The tenant can then unlock the door using the first remote password shared by the homeowner. For example, the tenant can enter "156852" into the numeric keypad of the smart door lock. The smart door lock then receives the user's input and receives the lock password as "156852."
[0266] Then, in one possible implementation, the door lock password can be intelligently matched with j parameter information. When the door lock password matches the j parameter information, it is determined that the door lock password is correct and the unlocking operation is performed.
[0267] Specifically, the smart door lock obtains the unlocking time, which is the time when the door lock password is entered. Next, based on the unlocking time, the smart door lock determines, among the j pieces of parameter information, f third parameter information whose validity period includes the unlocking time, where f is less than or equal to j. Next, the smart door lock generates f unlocking passwords based on the random numbers and timestamps corresponding to the f third parameter information. If any of the f unlocking passwords matches the door lock password, the unlocking operation is performed. The password that matches the door lock password is the first remote password.
[0268] S1405. After unlocking, the smart door lock updates the first encrypted data and sends the updated first encrypted data to the server.
[0269] In some embodiments of the present application, after each successful unlocking, the encrypted data is updated and the updated encrypted data is synchronized to the server.
[0270] Specifically, the smart door lock updates the first encrypted data. The updated first encrypted data includes the second random number and the third random number encrypted using the key. The updated first encrypted data is generated by the smart door lock using the key to encrypt the second and third random numbers. The second and third random numbers are sequentially generated, with the second random number generated earlier than the third random number. This allows the mobile phone to subsequently use the third random number in the updated first encrypted data to generate a new remote password.
[0271] It is understandable that if the smart door lock does not update the first encrypted data, the first encrypted data, i.e., the encrypted first random number and the second random number, will always be stored in the server. The mobile phone will use the same random number, i.e., the second random number, to generate the corresponding remote password each time. In this way, the generated remote passwords are highly similar, but the communication security is low. The embodiments of the present application can improve the communication security of the remote password by updating the encrypted data so that the mobile phone can subsequently generate a new remote password based on the updated encrypted data.
[0272] Furthermore, the embodiment of the present application can adopt 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.
[0273] In this way, even if the synchronization of the updated first encrypted data to the server fails, the smart door lock saves the updated first encrypted data (the second random number and the third random number), and the server saves the first encrypted data (the first random number and the second random number). When the mobile phone generates a new remote password again, it will use the second random number in the first encrypted data on the server to generate it, and synchronize the parameter information including the second random number to the smart door lock. Based on the preset rules, the smart door lock determines that the second random number corresponding to the first parameter information is the random number in the updated first encrypted data, and can also update the saved parameter information.
[0274] If the dual random number update mechanism described above is not used, and synchronization of the updated first encrypted data to the server fails (for example, where the updated first encrypted data includes the encrypted third and fourth random numbers), the smart door lock determines that the second random number corresponding to the first parameter information is not the random number in the updated first encrypted data, and thus fails to update the saved parameter information. By adopting the dual random number update mechanism, the embodiments of the present application improve the reliability and stability of the remote password.
[0275] It should be noted that when the mobile phone displays the remote password, the latest first encrypted data is obtained. When a user creates the first remote password for the first time, the latest first encrypted data obtained by the mobile phone includes the encrypted first random number and second random number. If the user does not create the remote password for the first time, the latest first encrypted data obtained by the mobile phone includes the encrypted data obtained by updating the first encrypted data after the smart door lock performs the unlocking operation.
[0276] In some embodiments of the present application, the smart door lock can also generate an unlocking record after each unlocking. The unlocking record refers to the record of the user waking up the smart door lock to unlock, which can include the wake-up method, unlocking time, and the corresponding account information when unlocking. For example, the user wakes up the smart door lock with a remote password at 9 o'clock in the morning to unlock it. The smart door lock can save the unlocking method of the smart door lock as fingerprint unlocking, unlocking time, and the corresponding account information of the user to generate a record. The smart door lock can also send the unlocking record to the server. Among them, the unlocking record can include the unlocking method, unlocking time, and the corresponding account information of the unlocking.
[0277] In some embodiments of the present application, if the door lock password does not match the j parameter information, the smart door lock determines that the door lock password is incorrect and does not unlock the door. In addition, the smart door lock can determine whether to continue to display the input area based on the number of incorrect door lock password attempts.
[0278] Specifically, if the number of incorrect password attempts is greater than a first threshold, the smart door lock closes the display input area for a preset time period. If the number of incorrect password attempts is less than or equal to the first threshold, the smart door lock continues to display the input area.
[0279] For example, the first threshold is 5, and the preset time is 30 minutes. If the number of incorrect door lock passwords is greater than 5 times, the smart door lock will close the display input area within 30 minutes to lock the digital input area.
[0280] In some embodiments of the present application, the aforementioned remote password processing method allows different users, such as different tenants, to use the same smart door lock at different times. Alternatively, a homeowner and at least one permitted guest can use the same smart door lock at different times, thereby achieving shared unlocking permissions. Alternatively, a car rental company's management terminal and at least one car rental user can use the same smart door lock at different times.
[0281] Furthermore, smart door locks are not limited to being installed in home doors. They can also be installed in office doors, car doors, and safe doors. Of course, the remote password processing method of this application is not limited to being used in door locks, but can also be applied to other types of smart locks. This application does not specifically limit this. For the specific remote password processing method, please refer to the above embodiments and will not be described in detail here.
[0282] The embodiment of the present application further provides a device, which can be the above-mentioned smart door lock or the above-mentioned mobile phone. As shown in FIG16 , the device can include one or more processors 1010 , a memory 1020 and a communication interface 1030 .
[0283] The memory 1020 and the communication interface 1030 are coupled to the processor 1010. For example, the memory 1020, the communication interface 1030 and the processor 1010 may be coupled together via a bus 1040.
[0284] The communication interface 1030 is used to transmit data with other devices. The memory 1020 stores a program. The program includes instructions. When the instructions are executed by the processor 1010, the device executes the method in the embodiment of the present application.
[0285] Among them, the processor 1010 can be a processor or a controller, for example, it can be 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.
[0286] The bus 1040 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus 1040 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, FIG16 shows only one thick line, but this does not necessarily mean that there is only one bus or only one type of bus.
[0287] The present application also provides a communication system comprising a smart door lock, a server, and a mobile phone; the communication system is configured to execute the relevant method steps in the above method embodiment. In one implementation, the communication system may further comprise an NTP server and a router.
[0288] An embodiment of the present application further provides a readable storage medium, in which a program is stored. When the processor executes the program, the device executes the relevant method steps in the method embodiment.
[0289] The embodiment of the present application also provides a program product, which, when executed on a device, enables the device to execute the relevant method steps in the above method embodiment.
[0290] The smart door lock, smart storage device, storage medium or program product provided in this application is used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be repeated here.
[0291] The above content is only a specific embodiment of this application, but the scope of protection of this application is not limited to this. Any changes or replacements within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
Claims
1. A remote password processing method, characterized in that: Applied to the second device, the method includes: Detecting a first operation input in the password creation interface, displaying a first remote password, where the first remote password is generated by a random number and a timestamp, where the timestamp is used to represent the time when the first remote password is generated; detecting a setting operation for the validity period of the first remote password, and determining the validity period of the first remote password, wherein the setting operation is used to set at least two of the effective start time, the effective end time, or the effective duration of the validity period; When a second operation for the first remote password is detected, first parameter information corresponding to the first remote password is sent to a server, where the first parameter information includes the random number, the timestamp, and the validity period; the first parameter information is sent by the server to the first device, so that the first device obtains the first remote password according to the first parameter information and performs an unlocking operation according to the first remote password within the validity period.
2. The method according to claim 1, characterized in that The method further comprises: Detecting a third operation input in the device management interface, displaying identification information of m successfully created remote passwords, where m is an integer not less than 1; An operation of changing a second remote password among the m successfully created remote passwords is detected, wherein the change includes deleting the second remote password or editing the validity period of the second remote password; Sending second parameter information corresponding to the second remote password after the change is processed to the server, and the second parameter information is sent by the server to the first device, so that the first device changes the saved second remote password according to the second parameter information; Receive first indication information from the server, where the first indication information is used to indicate that the second remote password is successfully changed.
3. The method according to claim 1, characterized in that The method further comprises: Detecting a third operation input in the device management interface, displaying identification information corresponding to m successfully created remote passwords according to m parameter information, wherein the m parameter information includes parameter information of each of the m successfully created remote passwords, and m is an integer not less than 1; An operation of changing a second remote password among the m successfully created remote passwords is detected, wherein the change includes deleting the second remote password or editing the validity period of the second remote password; Sending change processing information corresponding to the second remote password to the server; wherein the change processing information is sent by the server to the first device, so that the first device performs the change processing on the second remote password according to the change processing information; Receive n parameter information from the server, the n parameter information including second parameter information corresponding to the second remote password after the first device performs a change process, where n is an integer not less than 1; The displayed identification information is updated according to the n parameter information.
4. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: In case of establishing a short-range communication connection with the first device, sending a first request to the first device; A key is received, which is sent by the first device in response to the first request.
5. The method according to claim 4, characterized in that The detecting a first operation and displaying a first remote password comprises: Upon detecting the first operation, sending a second request to the server, the second request being used to obtain the latest first encrypted data, the first encrypted data being generated by the first device using the key, the first encrypted data comprising an encrypted first random number and a second random number, and the latest first encrypted data comprising encrypted data obtained by updating the first encrypted data after the first device performs an unlocking operation; receiving the latest first encrypted data sent by the server, and decrypting the first encrypted data using the key to obtain the first random number and the second random number; Determine the random number generated latest between the first random number and the second random number as the random number; The first remote password is generated according to the random number and the timestamp, and the first remote password is displayed on the password creation interface.
6. The method according to claim 5, characterized in that The step of generating the first remote password according to the random number and the timestamp includes: sending a third request to the server; receiving the timestamp sent by the server in response to the third request; The first remote password is generated according to the random number and the timestamp.
7. A remote password processing method, characterized in that: Applied to a first device, the method includes: Receive first parameter information corresponding to the first remote password sent by the server; The first parameter information includes a random number, a timestamp, and a validity period corresponding to the remote password, wherein the timestamp is used to represent the time when the first remote password is generated; the validity period is determined by the second device detecting a setting operation for the validity period of the first remote password, wherein the setting operation is used to set at least two of the effective start time, the effective end time, or the effective duration of the validity period; An unlocking operation is performed within the validity period based on the first remote password, where the first remote password is generated by the random number and the timestamp.
8. The method according to claim 7, characterized in that The method further comprises: After successfully registering with the server, generating a first random number and a second random number; Encrypting the first random number and the second random number based on a key to obtain first encrypted data; The first encrypted data is saved, and the first encrypted data is sent to the server.
9. The method according to claim 8, characterized in that The method further comprises: After the unlocking operation is performed, updating the first encrypted data; The updated first encrypted data is sent to the server, wherein the updated first encrypted data includes the second random number and the third random number encrypted by using the key.
10. The method according to claim 8 or 9, characterized in that: The method further comprises: receiving a first request while establishing a short-range communication connection with the second device; The key is sent to the second device in response to the first request.
11. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: Acquire second parameter information, where the second parameter information corresponds to a second remote password; the second remote password is a remote password that has been successfully created; According to the second parameter information, change and process the second remote password; Sending first indication information to the server, where the first indication information is used to indicate that the second remote password is successfully changed.
12. The method according to any one of claims 7 to 10, characterized in that: The method further comprises: Obtaining change processing information corresponding to m parameter information and a second remote password, wherein the m parameter information includes parameter information of m remote passwords that have been successfully created, and the second remote password is a remote password that has been successfully created; According to the change processing information corresponding to the second remote password, change the second parameter information corresponding to the second remote password in the m parameter information to obtain n parameter information, wherein the n parameter information includes the second parameter information after the change processing, and n is an integer not less than 1; The n parameter information is sent to the server.
13. The method according to claim 7, characterized in that The method further comprises: Obtain m parameter information, wherein the m parameter information includes parameter information of respective m remote passwords that have been successfully created; Based on a preset rule and the first parameter information, the m parameter information is updated to obtain j parameter information; the j parameter information includes the first parameter information, and j is an integer not less than 1; Sending the j parameter information to the server; The preset rule includes: if the random number of the first parameter information is a random number in the first encrypted data, then the first parameter information is added to the m parameter information; the first encrypted data is obtained by encrypting the first random number and the second random number based on a key after the first device successfully registers with the server; the first random number and the second random number are generated by the first device; and / or, if the validity period of the first parameter information is less than or equal to a preset period, adding the first parameter information to the m parameter information; And / or, if the m is less than or equal to a preset number, the first parameter information is added to the m parameter information.
14. The method according to claim 13, characterized in that The method further comprises: detecting an input operation that triggers entering a remote password mode, and sending a fourth request to the server; receiving the j parameter information sent by the server in response to the fourth request; The performing the unlocking operation within the validity period based on the first remote password includes: Based on the user's input, get the door lock password; Based on the door lock password and the first remote password, an unlocking operation is performed within the validity period.
15. The method according to claim 14, characterized in that The performing the unlocking operation within the validity period based on the door lock password and the first remote password includes: Obtaining the unlocking time, where the unlocking time is the time when the door lock password is input; Based on the unlocking moment, determine, among the j pieces of parameter information, f pieces of third parameter information whose validity period includes the unlocking moment, where f is less than or equal to j; Generate f unlocking passwords based on the random numbers and timestamps corresponding to the f third parameter information; When there is a password consistent with the door lock password among the f unlocking passwords, an unlocking operation is performed, and the password consistent with the door lock password is the first remote password.
16. The method according to claim 14 or 15, characterized in that The sending of the fourth request to the server further includes: Output acquisition prompt information, wherein the acquisition prompt information is used to prompt that parameter information corresponding to the successfully created remote password is being acquired; The method further comprises: After sending the fourth request to the server, when the parameter information corresponding to the successfully created remote password is not received, a connection prompt message is output; the connection prompt message is used to prompt that the first device has not established a communication connection with the server.
17. A device, characterized in that The device includes a memory and one or more processors; the memory is coupled to the processor; wherein a program is stored in the memory, and when the program is executed by the processor, the device executes the remote password processing method as described in any one of claims 1-6, or the remote password processing method as described in any one of claims 7-16.
Citation Information
Patent Citations
Audio intelligent lock capable of connecting to network and mobile phone terminal authorization unlocking method
CN105513184A
Intelligent lock with remote password key
CN107016756A
Unlocking verification method, server, door lock, electronic equipment and storage medium
CN109272617A
Electronic lock safety management method, equipment and system
CN112330855A
Intelligent door lock control method, intelligent door lock and storage medium
CN112419549A
