Door lock password generation request processing method, smart door lock, door body and readable medium

By verifying the network status in the smart door lock, caching the online password generated by the server when the network is normal, and generating an offline password when the network is abnormal, the password mismatch problem caused by the asynchronous time between the smart door lock and the server is solved. Reduced the frequency of lockpicking failures.

CN118097823BActive Publication Date: 2024-09-17CHONGQING LUXIANGJIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410173890.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-02-07
Publication Date
2024-09-17
Estimated Expiration
2044-02-07

AI Technical Summary

Technical Problem

When the time on the smart door lock side and the server side are asynchronous, the generated door lock passwords do not match, resulting in frequent unlocking failures for users.

Method used

After receiving the door lock password generation request, the network status is verified. If the network is normal, an online password generation request is sent to the server and the received online password is cached; if the network is abnormal, an offline password is generated based on the password generation time and time granularity. And store it in the local password pool.

Benefits of technology

It reduces the frequency of unlocking failures caused by password mismatches, ensuring that even when the smart door lock side and the server side are asynchronous in time, the door lock password obtained by the user is consistent with the actual password, reducing unlocking failures caused by password mismatches.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118097823B
    Figure CN118097823B
Patent Text Reader

Abstract

The embodiments of the present disclosure disclose a door lock password generation request processing method, a smart door lock, a door body and a readable medium. A specific implementation of the method includes: in response to receiving a door lock password generation request corresponding to a target smart door lock sent by a target terminal, verifying the network status of the current network to obtain a network status verification result; in response to determining that the network status verification result indicates that the current network is normal, sending an online password generation request to the target server to receive each online password; caching each received online password; in response to determining that the network status verification result indicates that the current network is abnormal, generating each offline password according to the password generation time and time granularity; storing each offline password in a local password pool. This implementation can reduce the frequency of unlocking failures due to door lock password mismatches.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a method for processing door lock password generation requests, a smart door lock, a door body, and a readable medium. Background Art

[0002] With the continuous development of the Internet of Things and artificial intelligence, smart homes have gradually replaced traditional furniture and become popular. Among them, smart door locks are the most widely used. Common ways to generate passwords for smart door locks include users setting passwords themselves or having the door lock terminal generate passwords. At present, when the door lock terminal generates passwords and the user obtains the generated door lock password, the method usually adopted is: the server and the smart door lock end agree on a set of identical offline password generation algorithms that rely on time synchronization, and both ends generate multiple door lock passwords at intervals of a preset time period, and then the user obtains the door lock password from the server.

[0003] However, when using the above method to generate and obtain the door lock password, the following technical problems often occur: when the smart door lock and the server are asynchronous in time, the door lock passwords generated at both ends are often different, and the door lock password obtained by the user from the server cannot match the door lock password generated by the smart door lock, resulting in frequent failures in user unlocking. Summary of the invention

[0004] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0005] Some embodiments of the present disclosure propose a door lock password generation request processing method, a smart door lock, a door body and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.

[0006] In a first aspect, some embodiments of the present disclosure provide a method for processing a door lock password generation request, the method comprising: in response to receiving a door lock password generation request sent by a target terminal, performing network status verification on the current network to obtain a network status verification result, wherein the door lock password generation request includes a password generation time, a time granularity, and target communication information; in response to determining that the network status verification result indicates that the current network is normal, sending an online password generation request to a target server to receive each online password; caching each received online password; in response to determining that the network status verification result indicates that the current network is abnormal, generating each offline password according to the password generation time and the time granularity; and storing each offline password in a local password pool.

[0007] In a second aspect, some embodiments of the present disclosure provide a smart door lock, comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by one or more processors, the one or more processors implement the method described in any implementation method of the above-mentioned first aspect.

[0008] In a third aspect, some embodiments of the present disclosure provide a door body, comprising: a door body and a smart door lock as described in any implementation of the second aspect, wherein the smart door lock is arranged on the door body.

[0009] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.

[0010] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the frequency of unlocking failures caused by mismatching door lock passwords can be reduced through the door lock password generation request processing method of some embodiments of the present disclosure. Specifically, the reason for the frequent user unlocking failures is that when the time of the smart door lock end and the server end is asynchronous, the door lock passwords generated at both ends are often different, and the door lock password obtained by the user from the server end cannot match the door lock password generated by the smart door lock end, resulting in frequent user unlocking failures. Based on this, the door lock password generation request processing method of some embodiments of the present disclosure, first, in response to receiving the door lock password generation request sent by the target terminal, the network status of the current network is verified to obtain the network status verification result. Among them, the door lock password generation request includes the password generation time, time granularity and target communication information. Then, in response to determining that the network status verification result indicates that the current network is normal, an online password generation request is sent to the target server to receive each online password. Therefore, when the network status is normal, the door lock password can be uniformly generated by the target server and the generated online passwords can be used as each door lock password. Afterwards, the received online passwords are cached. Thus, each door lock password generated by the target server can be cached locally on the smart door lock side. Then, in response to determining that the network status verification result indicates that the current network is abnormal, each offline password is generated according to the password generation time and the time granularity. Finally, each offline password is stored in the local password pool. Thus, by giving priority to the online password generation method, the frequency of the door lock password obtained by the user not matching the actual door lock password can be reduced. Even when the smart door lock side is asynchronous with the server side, as long as the network status is normal, the door lock password obtained by the user is consistent with the actual door lock password, thereby reducing the frequency of users failing to unlock the door due to password mismatch. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.

[0012] Figure 1 is a schematic diagram of an application scenario of a door lock password generation request processing method in some embodiments of the present disclosure;

[0013] Figure 2 is a flow chart of some embodiments of a method for processing a door lock password generation request according to the present disclosure;

[0014] Figure 3 It is a schematic diagram of the structure of electronic components of a smart door lock suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION

[0015] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0016] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0017] It should be noted that the concepts such as "first" and "second" mentioned in the present disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0018] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0019] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0020] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.

[0021] Figure 1It is a schematic diagram of an application scenario of a door lock password generation request processing method of some embodiments of the present disclosure.

[0022] exist Figure 1 In the application scenario, first, the smart door lock 101 with a communication function can establish a communication connection with the mobile terminal 102 in response to receiving a call request from the mobile terminal 102, and extract communication information from the call request as the target communication information. The call request may refer to a telephone call request. Then, the smart door lock 101 can collect the audio of the mobile terminal user as the audio signal to be tested through the established communication connection. After that, the smart door lock 101 can perform text conversion processing on the collected audio signal to be tested to obtain audio text information. Then, in response to determining that the audio text information meets the preset keyword condition, the smart door lock 101 can perform the following processing verification steps: the first step, in response to determining that there is authorized communication information corresponding to the target communication information in the pre-constructed authorized communication information set, the smart door lock terminal 101 can perform the following steps: the first sub-step, selecting the visitor voiceprint feature information corresponding to the target communication information from the pre-constructed visitor voiceprint feature information set as the target voiceprint feature information. Among them, the authorized communication information in the authorized communication information set corresponds to the visitor voiceprint feature information in the visitor voiceprint feature information set. The second sub-step is to generate the voiceprint feature information to be tested based on the pre-trained voiceprint feature extraction model and the above-mentioned audio signal to be tested. The third sub-step is to generate the visitor voiceprint verification result based on the above-mentioned voiceprint feature information to be tested and the above-mentioned target voiceprint feature information. The fourth sub-step is to send an authorization access notification to the target terminal 103. Among them, the above-mentioned authorization access notification includes the above-mentioned target communication information and the above-mentioned visitor voiceprint verification result. After the target terminal user confirms the authorization access notification received by the above-mentioned target terminal 103, the above-mentioned target terminal 103 can send a door lock password generation request to the above-mentioned smart door lock terminal 101. Then, in response to receiving the door lock password generation request sent by the above-mentioned target terminal 103, the above-mentioned smart door lock terminal 101 can perform network status verification on the network 104 to obtain a network status verification result. Among them, the above-mentioned door lock password generation request can include the password generation time, time granularity and target communication information. Afterwards, in response to determining that the network status verification result indicates that the network 104 is normal, the smart door lock terminal 101 may send an online password generation request to the target server 105 to receive each online password generated by the target server 105. Then, the smart door lock terminal 101 may cache each received online password. Secondly, in response to determining that the network status verification result indicates that the network 104 is abnormal, the smart door lock 101 may generate each offline password based on the password generation time and the time granularity. Finally, the smart door lock 101 may store each offline password in a local password pool.

[0023] Continue to refer Figure 2 , shows a process 200 of some embodiments of the door lock password generation request processing method according to the present disclosure. The door lock password generation request processing method includes the following steps:

[0024] Step 201, in response to receiving a door lock password generation request sent by a target terminal, verifying the network status of the current network to obtain a network status verification result.

[0025] In some embodiments, the above execution entity ( Figure 1 The smart door lock 101 in the embodiment can verify the network status of the current network in response to receiving a door lock password generation request sent by the target terminal, and obtain a network status verification result. Among them, the door lock password generation request may include the password generation time, time granularity and target communication information. The door lock password generation request may be a request for the execution subject to generate a door lock password. The password generation time may be the time when the door lock password generation request is initiated. The time granularity may represent the unit time of the valid time corresponding to the generated door lock password and the generation frequency of the offline password. For example, the time granularity is "hours", which may represent the determination of the valid time of the corresponding door lock password in hours, and may also represent the generation frequency of the offline password as once per hour. The target terminal ( Figure 1 The target terminal 103 in the figure can be a terminal device bound to the above-mentioned smart door lock. The above-mentioned target terminal can include but is not limited to smart phones and smart watches. The above-mentioned target communication information can be a mobile terminal ( Figure 1 The mobile terminal 102 in the example may be a smart phone. In practice, the execution subject may use a Ping command and the IP address of the target server to send a ping message to the target server ( Figure 1 The target server 105 in the example sends a data packet and receives the returned information to verify the current network. Then, the execution subject may determine the returned information as the network status verification result. The returned information may include response time and packet loss rate.

[0026] Optionally, in response to receiving the door lock password generation request sent by the target terminal, before performing network status verification on the current network and obtaining the network status verification result, the above-mentioned execution subject may further perform the following steps:

[0027] The first step is to establish a communication connection with the mobile terminal that issued the call request in response to receiving the call request, and extract communication information from the call request as target communication information. The call request may be a telephone call request. The communication information extracted from the call request may be the telephone number of the mobile terminal.

[0028] The second step is to collect the audio signal to be tested through the established communication connection. The audio signal to be tested may be a user voice signal of the mobile terminal user. In practice, the execution subject, i.e., the smart door lock, may collect the user voice signal of the mobile terminal user as the audio signal to be tested through an audio collection device (e.g., a recorder) included in the smart door lock. The audio collection device may be a device for audio collection.

[0029] The third step is to convert the collected audio signal to be tested into text to obtain audio-text information. The audio-text information may be the text of the audio signal to be tested. In practice, the execution entity may input the audio signal to be tested into a pre-trained audio-text conversion model to obtain the audio-text information. As an example, the audio-text conversion model may be a Transformer model or a WaveNet model.

[0030] In the fourth step, in response to determining that the audio text information meets the preset keyword condition, the following verification processing steps are performed:

[0031] The first sub-step is, in response to determining that the authorized communication information corresponding to the target communication information exists in the pre-built authorized communication information set, executing the following steps:

[0032] Sub-step 1: Select the visitor voiceprint feature information corresponding to the target communication information from the pre-constructed visitor voiceprint feature information set as the target voiceprint feature information. Among them, the authorized communication information in the authorized communication information set corresponds to the visitor voiceprint feature information in the visitor voiceprint feature information set. The authorized communication information set may be composed of the communication information of each user with the target authority. The communication information may be a phone number. The target authority may be the authority to request the door lock password from the smart door lock terminal. The visitor voiceprint feature information set may be composed of the voiceprint feature information of each user with the target authority. The voiceprint feature information may be a voiceprint feature vector. The authorized communication information corresponding to the target communication information in the authorized communication information set may be the same authorized communication information as the target communication information. The keyword condition may be that the audio text information includes at least one preset keyword in the preset keyword set. For example, the preset keyword set may be ("password", "send password"). In practice, first, the execution subject may determine the authorized communication information corresponding to the target communication information as the target authorized communication information. Then, the execution entity may determine the visitor voiceprint feature information corresponding to the target authorized communication information in the visitor voiceprint feature information set as the target voiceprint feature information.

[0033] Sub-step 2: Generate the voiceprint feature information to be tested according to the preset voiceprint feature extraction model and the above-mentioned audio signal to be tested. The above-mentioned voiceprint feature extraction model can be a neural network model that takes the audio signal as input and takes the voiceprint feature information as output. The above-mentioned voiceprint feature information can be a voiceprint feature vector.

[0034] Sub-step three, generating a visitor voiceprint verification result according to the voiceprint feature information to be tested and the target voiceprint feature information. The visitor voiceprint verification result can be a Boolean type variable. For example, when the visitor voiceprint verification result is "TRUE", it can be represented that the voiceprint verification is passed, that is, the user corresponding to the voiceprint feature information to be tested and the user corresponding to the target voiceprint feature information are the same user. When the visitor voiceprint verification result is "FALSE", it can be represented that the voiceprint verification is not passed, that is, the user corresponding to the voiceprint feature information to be tested and the user corresponding to the target voiceprint feature information are not the same user. In practice, the execution subject can determine the voiceprint similarity between the voiceprint feature information to be tested and the target voiceprint feature information through a similarity algorithm. Then, in response to determining that the voiceprint similarity is greater than or equal to a preset similarity threshold, the execution subject can generate a visitor voiceprint verification result indicating that the verification is passed. Finally, in response to determining that the voiceprint similarity is less than the preset similarity threshold, the execution subject can generate a visitor voiceprint verification result indicating that the verification is not passed. For example, the voiceprint similarity may be 0.85, the preset similarity threshold may be 0.8, and the voiceprint similarity is greater than or equal to the preset similarity threshold, and the generated visitor voiceprint verification result may be “TRUE”. As an example, the similarity algorithm may be a cosine similarity algorithm.

[0035] Sub-step 4: sending an authorization access notification to the target terminal. The authorization access notification may include the target communication information and the visitor voiceprint verification result. The authorization access notification may be a notification for prompting the target terminal user that an authorized visitor is requesting a door lock password.

[0036] Optionally, before the above-mentioned response to receiving the door lock password generation request sent by the target terminal, the network status verification of the current network is performed, and the network status verification result is obtained, the above-mentioned execution subject may also respond to determining that there is no authorized communication information corresponding to the above-mentioned target communication information in the above-mentioned authorized communication information set, and send an unauthorized access notification to the above-mentioned target terminal. The above-mentioned unauthorized access notification may include the above-mentioned target communication information and the above-mentioned audio signal to be tested. The above-mentioned unauthorized access notification may be a notification for prompting the user of the above-mentioned target terminal that an unauthorized visitor is requesting a door lock password.

[0037] In some optional implementations of some embodiments, the execution subject may generate the voiceprint feature information to be tested according to the pre-trained voiceprint feature extraction model and the audio signal to be tested through the following steps:

[0038] The first step is to perform signal conversion on the audio signal to be tested to obtain a converted audio signal. In practice, the execution subject may convert the audio signal to be tested from an analog signal to a digital signal through an A / D converter to obtain a converted audio signal.

[0039] The second step is to enhance the converted audio signal to obtain an enhanced audio signal. In practice, the execution subject may enhance the converted audio signal through a filter to obtain an enhanced audio signal. As an example, the filter may be a high-pass filter.

[0040] The third step is to divide the enhanced audio signal into frames according to the preset frame length to obtain an audio signal sequence. In practice, the execution subject may divide the enhanced audio signal into frames according to the preset frame length to obtain an audio signal sequence.

[0041] The fourth step is to perform windowing processing on each audio signal in the above audio signal sequence to obtain a windowed audio signal sequence. In practice, the above execution subject can perform windowing processing on each audio signal in the above audio signal sequence by a window function to obtain a windowed audio signal sequence. As an example, the above window function can be a Hamming window function.

[0042] The fifth step is to reorder the target number of times for each windowed audio signal in the windowed audio signal sequence to obtain each disordered windowed audio signal group. The target number of times is the same as the number of windowed audio signals in the windowed audio signal sequence. In practice, the execution subject can randomly order the target number of times for each windowed audio signal in the windowed audio signal sequence to disrupt the order of each windowed audio signal in the windowed audio signal sequence to obtain each disordered windowed audio signal group.

[0043] In the sixth step, each obtained random windowed audio signal group is input into the coarse-grained voiceprint feature extraction model included in the voiceprint feature extraction model to obtain each coarse-grained voiceprint feature information. The voiceprint feature extraction model may include a coarse-grained voiceprint feature extraction model, a fine-grained voiceprint feature extraction model and a voiceprint feature fusion layer. The coarse-grained voiceprint feature model may be a neural network model for processing time series data. As an example, the coarse-grained voiceprint feature extraction model may be a Bi-LSTM (Bidirectional Long Short-Term Memory Networks) model, a deep recurrent neural network or a Transformer neural network. In practice, for each random windowed audio signal group in each obtained random windowed audio signal group, the execution entity may input the random windowed audio signal group into the coarse-grained voiceprint feature extraction model to obtain coarse-grained voiceprint feature information.

[0044] In the seventh step, the windowed audio signal sequence is input into the fine-grained voiceprint feature extraction model to obtain fine-grained voiceprint feature information. The fine-grained voiceprint feature extraction model may have the same network structure as the coarse-grained voiceprint feature extraction model.

[0045] In the eighth step, the obtained coarse-grained voiceprint feature information and the above-mentioned fine-grained voiceprint feature information are input into the above-mentioned voiceprint feature fusion layer to obtain the voiceprint feature information to be tested. The above-mentioned voiceprint feature fusion layer may be a network for feature fusion. As an example, the above-mentioned voiceprint feature fusion layer may be a multi-head attention mechanism layer. Thus, the fine-grained voiceprint feature information of the above-mentioned voiceprint feature fusion layer can be used to learn the detailed information of each coarse-grained voiceprint feature information to strengthen the voiceprint feature, supplement the voiceprint features that may be lost due to the local optimum due to time sequence dependence, and output the voiceprint feature vector obtained after fusion as the voiceprint feature information to be tested.

[0046] The above-mentioned first to sixth steps, as an inventive point of an embodiment of the present disclosure, can solve the technical problem that "when performing voiceprint recognition on a user, since the acquired audio signal is short and has a time sequence, the model often falls into a local optimum due to time sequence dependence, thereby reducing the representation ability of the voiceprint feature, resulting in a waste of computing power and an increase in time cost". The factors that lead to the waste of computing power and the increase in time cost are often as follows: when performing voiceprint recognition on a user, since the acquired audio signal is short and has a time sequence, the model often falls into a local optimum due to time sequence dependence, thereby reducing the representation ability of the voiceprint feature, resulting in a waste of computing power and an increase in time cost. If the above-mentioned factors are solved, the effect of reducing the waste of computing power resources and reducing the increase in time cost can be achieved. In order to achieve this effect, the present disclosure introduces a random windowed audio signal group and a voiceprint feature extraction model. First, the preprocessing of the audio signal to be tested can be achieved through signal conversion, signal enhancement, signal frame segmentation and windowing processing to obtain a windowed audio signal sequence to reduce the redundant information in the above-mentioned audio signal to be tested. Then, each windowed audio signal in the above-mentioned windowed audio signal sequence can be reordered for a target number of times to obtain each disordered windowed audio signal group. Afterwards, each coarse-grained voiceprint feature vector can be extracted from each disordered windowed audio signal group by the coarse-grained voiceprint feature extraction model included in the above-mentioned voiceprint feature extraction model. Secondly, the voiceprint features of the above-mentioned windowed audio signal sequence can be extracted as fine-grained voiceprint feature information by the fine-grained voiceprint feature extraction model included in the voiceprint feature extraction model. In practice, the change of the order of the audio signal changes the fact that the above-mentioned windowed audio signal sequence originates from the same voiceprint individual, so the above-mentioned disordered windowed audio signal groups are the same as the voiceprint features contained in the above-mentioned windowed audio signal sequence. Therefore, by combining the above-mentioned windowed audio signal sequence in a disordered manner, while increasing the amount of data, the temporal dependence of the model due to the receptive field limitation of the convolution kernel can be reduced, and the additional computing power load caused by blindly expanding the receptive field of the convolution kernel can be avoided, thereby reducing the probability of the model falling into a local optimum due to temporal dependence, and obtaining each coarse-grained voiceprint feature vector without losing detail information. Finally, the above-mentioned coarse-grained voiceprint feature vectors and the above-mentioned fine-grained voiceprint feature information can be input into the voiceprint feature fusion layer included in the above-mentioned voiceprint feature model to obtain the fused voiceprint feature vector as the voiceprint feature information to be tested. Thus, the feature learning of each coarse-grained voiceprint feature information can be carried out through the fine-grained voiceprint feature information, reducing the probability of the model falling into a local optimum due to time sequence dependence, thereby improving the final voiceprint feature representation capability while reducing the waste of computing power and the increase in time overhead.

[0047] Step 202: in response to determining that the network status verification result indicates that the current network is normal, an online password generation request is sent to a target server to receive various online passwords.

[0048] In some embodiments, the execution subject may send an online password generation request to the target server in response to determining that the network status verification result indicates that the current network is normal, so as to receive various online passwords. The online password generation request may be a request for causing the target server to generate various online passwords. The online password may be a door lock password generated by the target server when the network is normal. In practice, the execution subject may determine that the network status verification result indicates that the current network is normal by determining that the packet loss rate included in the network status verification result is less than a preset packet loss rate threshold and the response time does not exceed a preset response time threshold.

[0049] Optionally, each of the online passwords may be generated by the target server through the following steps:

[0050] The first step is to obtain the target server device key and the target server registration key in response to receiving the online password generation request. The online password generation request includes the online password generation time and the effective time granularity. The online password time can be the password generation time. The effective time granularity can be the time granularity included in the door lock password generation request received by the smart door lock.

[0051] The second step is to generate an online password timestamp based on the online password generation time and the effective time granularity. In practice, first, the target server may adjust the online password generation time forward to the corresponding hourly time according to the unit time represented by the effective time granularity. Then, the target server may generate a timestamp of the hourly time through a built-in function (e.g., the Time.time() function in Python). For example, the effective time granularity may be "hours", the online password generation time may be "2023-10-11-09:57", and the adjusted hourly time may be "2023-10-11-09:00", and the generated online password timestamp may be "1675983600". As an example, the online password timestamp may be a UNIX timestamp.

[0052] The third step is to generate an online password digest based on the online password timestamp, the target server device key and the target server registration key. In practice, first, the target server can sequentially concatenate the online password timestamp, the target server device key and the target server registration key to obtain a concatenated string. Then, the target server can encrypt the obtained concatenated string through an encryption algorithm to obtain an online password digest. As an example, the encryption algorithm can be a SHA256 algorithm or an MD5 algorithm.

[0053] In the fourth step, the online password digest is divided according to the preset online password group length to obtain each online password group. In practice, the target server can divide the online password digest in sequence according to the preset online password group length so that the lengths of each online password group obtained after the division are the same, thereby obtaining each online password group.

[0054] Step 5: For each of the obtained online password groups, generate an online password corresponding to the online password group. In practice, first, the target server may perform a modulus operation on the online password group according to the modulus corresponding to the preset online password length to obtain an online intermediate password. Secondly, in response to determining that the length of the obtained online intermediate password is equal to the preset online password length, the target server may determine the online intermediate password as the online password corresponding to the online password group. Afterwards, in response to determining that the length of the obtained online intermediate password is less than the preset online password length, the target server may insert a first target number of preset padding characters before the online intermediate password to update the online intermediate password and determine the updated online intermediate password as the online password. The first target number may be the difference between the preset online password length and the online intermediate password length. For example, the online password group may be "0x82E28AA7", the preset online password length may be 6 bits, and the modulus corresponding to the preset online password length may be "100000". The preset padding character may be "0". The online intermediate password obtained by performing a modulo operation on the online password group may be "28087". The final online password may be "028087". Finally, the target server may insert an online password identifier before the determined online password to update the online password. The online password identifier may indicate that the corresponding password is an online password. As an example, the online password identifier may be "*".

[0055] Step 203: cache each received online password.

[0056] In some embodiments, the execution subject may cache each received online password. In practice, the execution subject may cache each received online password in a storage device included in the smart door lock to cache each received online password.

[0057] Step 204 , in response to determining that the network status verification result indicates that the current network is abnormal, generating each offline password according to the password generation time and the time granularity.

[0058] In some embodiments, the execution subject may generate various offline passwords according to the password generation time and time granularity in response to determining that the network status verification result represents the current network abnormality. The offline password may be a door lock password generated without a network connection. In practice, the execution subject may determine that the network status verification result represents the current network abnormality by determining that the packet loss rate included in the network status verification result is greater than or equal to a preset packet loss rate threshold or the response time is greater than or equal to a preset response time threshold.

[0059] In some optional implementations of some embodiments, the execution subject may generate each offline password according to the password generation time and time granularity through the following steps:

[0060] The first step is to obtain the device key and the device registration key. The device key and the device registration key may be the device key of the smart door lock and the device registration key of the smart door lock, respectively. In practice, the execution subject may obtain the device key and the device registration key from a storage device.

[0061] The second step is to generate an offline password timestamp according to the password generation time and the time granularity. In practice, first, the execution subject may adjust the password generation time forward to the corresponding hourly time according to the unit time represented by the time granularity. Then, the execution subject may generate an offline password timestamp corresponding to the hourly time through a built-in function (e.g., the time.time() function in Python). As an example, the offline password timestamp may be a UNIX timestamp.

[0062] The third step is to generate an offline password summary based on the device key, the device registration key and the offline password timestamp. In practice, first, the execution subject can sequentially concatenate the offline password timestamp, the device key and the device registration key to obtain a concatenated string. Then, the execution subject can encrypt the obtained concatenated string through an encryption algorithm to obtain an offline password summary. As an example, the encryption algorithm can be a SHA256 algorithm or an MD5 algorithm.

[0063] The fourth step is to divide the offline password summary according to the preset offline password group length to obtain an offline password group sequence. In practice, the target server can sequentially divide the offline password summary according to the preset offline password group length to obtain an offline password group sequence. The lengths of the offline password groups in the offline password group sequence are equal.

[0064] Step 5: For each offline cipher group in the above offline cipher group sequence, perform the following steps:

[0065] The first sub-step is to generate the offline password group identification information corresponding to the offline password group according to the password generation time and the time granularity. In practice, first, the execution subject can determine the serial number of the offline password group in the offline password group sequence. Then, the execution subject can determine the time distance from the password generation time to the preset target time based on the time granularity. For example, the time granularity can be "hours", the current time is "2023-10-11-09:58", and the preset target time can be "2023-01-01-00:00", then the determined time distance can be the number of hours between the password generation time and the preset target time. Afterwards, the execution subject can determine the product of the time distance and the preset multiple as the intermediate value. Finally, the execution subject can determine the sum of the intermediate value and the serial number as the offline password group identification information corresponding to the offline password group.

[0066] The second sub-step is to generate an offline password according to the offline password group identification information and the offline password group. In practice, first, the execution subject may perform a modulus operation on the offline password group according to the modulus corresponding to the preset offline password length to obtain an offline intermediate password. Secondly, in response to determining that the length of the obtained offline intermediate password is equal to the preset offline password length, the execution subject may concatenate the offline password group identification information and the offline intermediate password, and may determine the string obtained after the concatenation as the offline password. Finally, in response to determining that the length of the obtained offline intermediate password is less than the preset offline password length, the execution subject may insert a second target number of preset padding characters before the intermediate password to update the offline intermediate password. The second target number may be the difference between the preset offline password length and the offline intermediate password length. Finally, the execution subject may concatenate the offline password group identification information and the updated offline intermediate password, and may determine the string obtained after the concatenation as the offline password.

[0067] Step 205: Store each offline password in a local password pool.

[0068] In some embodiments, the above execution entity may store each offline password in a local password pool.

[0069] Optionally, the above execution entity may further perform the following steps:

[0070] In the first step, the following diffusion processing steps are performed based on the above device key:

[0071] The first sub-step is to transcode the device key to obtain a character sequence. In practice, the execution subject can convert each character in the device key into a preset base through a preset character table to obtain a character sequence. As an example, the preset character table can be but not limited to: an ASCII character table, a Unicode character table, or a UTF-8 encoding table. The preset base can be hexadecimal. For example, the device key can be "A5b7R9x2D", and the character sequence obtained after hexadecimal encoding according to the ASCII character table can be (41, 35, 62, 37, 52, 39, 78, 32, 44).

[0072] The second sub-step is to shuffle the character sequence to obtain a shuffled character sequence. In practice, the execution subject may randomly sort the character sequence to shuffle the order of the characters in the character sequence to obtain a shuffled character sequence.

[0073] The third sub-step is to perform a preset number of substitutions on the scrambled character sequence to obtain a replaced character sequence. In practice, the execution subject may perform a preset number of substitutions on the scrambled character sequence through a substituter to obtain a replaced character sequence. As an example, the substituter may be an S-box (Substitution-box) substituter.

[0074] The fourth sub-step is to decode the replaced character sequence to obtain a decoding matrix. In practice, first, the execution subject can decode each replaced character in the replaced character sequence into a binary code to obtain each binary code string. Then, the execution subject can use each binary code character included in each binary code string obtained as a row element in the decoding matrix, and perform row splicing on each row matrix element in the order of the replaced character sequence to obtain a decoding matrix.

[0075] The fifth sub-step is to perform obfuscation processing on the decoding matrix to obtain an obfuscated decoding matrix. In practice, the above-mentioned execution subject can perform the following obfuscation steps on the above-mentioned decoding matrix: First, the above-mentioned execution subject can perform a random number of 1 or 0 processing on each element in the above-mentioned decoding matrix to update the above-mentioned decoding matrix. Then, the first random number and the second random number can be generated by a random number generator, and the matrix row corresponding to the above-mentioned first random number in the updated decoding matrix is ​​shifted in a preset direction, and the displacement amount can be the second random number. For example, the total number of rows in the above-mentioned decoding matrix can be 9, and the first random number can be 13. Then, the matrix row corresponding to the above-mentioned first random number in the updated decoding matrix can be the matrix row corresponding to the value obtained after the first random number is modulo the total number of rows, that is, 13%9=4 (4th row). As an example, the above-mentioned random number generator can be a chaotic pseudo-random number generator.

[0076] The sixth sub-step is to encode the obfuscation decoding matrix to obtain an obfuscation code sequence. In practice, the execution subject may treat each row of elements in the obfuscation decoding matrix as a binary string, and encode it in the preset base to generate an obfuscation code to obtain an obfuscation code sequence. For example, a row of elements in the obfuscation decoding matrix may be (0, 1, 1, 0, 1, 0, 1, 1), and the obfuscation code obtained after hexadecimal encoding may be "6B".

[0077] The seventh sub-step is to perform reverse code processing on the obfuscated coding sequence to obtain an obfuscated character sequence. In practice, the execution subject may convert each obfuscated code of the obfuscated coding sequence into an obfuscated character through the preset character table to obtain an obfuscated character sequence. For example, the obfuscated code may be "6B" and the corresponding obfuscated character may be "k".

[0078] The eighth sub-step is to generate a diffusion device key according to the obfuscated character sequence. In practice, the execution subject may concatenate the obfuscated characters in the obfuscated character sequence to obtain the diffusion device key.

[0079] The ninth sub-step is, in response to determining that the execution times of the diffusion processing step are less than or equal to the target execution times, executing the diffusion processing step again. As an example, the target execution times may be 100.

[0080] In the second step, the diffusion processing step is performed on the device registration key to obtain each diffusion device registration key. Thus, each diffusion device registration key can be generated through the diffusion processing step.

[0081] The third step is to store the above-mentioned device registration keys and the above-mentioned diffusion device registration keys in the storage device where the above-mentioned device keys and the above-mentioned diffusion device keys are located.

[0082] The above-mentioned first to third steps, as an inventive point of an embodiment of the present invention, can solve the technical problem that "the smart door lock end usually relies on the device key and the device registration key when generating an offline password, and the device key and the device registration key are often directly stored in a local storage device, so there is a risk of being directly stolen, which reduces the security of the smart door lock". The factors that lead to reduced door lock security are often as follows: When the smart door lock end generates an offline password, it usually relies on the device key and the device registration key, and the device key and the device registration key are often directly stored in a local storage device, so there is a risk of being directly stolen, which reduces the security of the smart door lock. If the above factors are solved, the effect of improving the security of the door lock can be achieved. In order to achieve this effect, the present invention introduces each diffusion device key and each diffusion device registration key. First, the device key and the device registration key of the smart door lock end can be password diffused multiple times and a large number of random events can be introduced in the password diffusion process to generate confusing each diffusion device key and each diffusion device registration key. Then, each of the above diffusion device keys and each of the above diffusion device registration keys can be stored in the storage device where the device key and the device registration key are located. Thus, each of the diffusion device keys and each of the diffusion device registration keys can be added to the local storage device as noise data. Even if the key data in the local storage device is stolen, it is difficult for the thief to directly determine the correct device key among the numerous diffusion device keys, and it is even more difficult to find the device registration key corresponding to the above correct device key from the numerous diffusion device registration keys, thereby reducing the risk of key data being directly stolen, thereby improving the security of the smart door lock.

[0083] Optionally, the above execution entity may further perform the following steps:

[0084] The first step is to receive the password entered by the user as the password to be verified.

[0085] The second step is to perform a type check on the password to be verified to generate a password type check result. The password type check result can characterize the password type of the password to be verified. In practice, the execution entity can determine the password type of the password to be verified by determining whether a preset online password identifier is included before the password to be verified. The password type check result can be a text label. For example, when the password type check result is "1", it can be characterized that the password type of the password to be verified is an offline password, that is, the online password identifier is not included before the password to be verified. When the password type check result is "2", it can be characterized that the password type of the password to be verified is an online password, that is, the online password identifier is included before the password to be verified.

[0086] In the third step, in response to determining that the password type verification result indicates that the password to be verified is an online password, the following online password verification steps are performed:

[0087] In the first sub-step, each online password is obtained from the online password pool corresponding to the target server as each verification online password and each password validity time corresponding to each verification online password. The password validity time corresponding to the online password may be a deadline, which indicates that the corresponding password is a deadline for a valid password. The password validity time corresponding to the online password may be determined by the target server through the validity time granularity, the online password generation time and a preset number. In practice, the target server may add the time represented by the multiplication of the preset number and the time granularity to the online password generation time as the validity time. For example, the online password generation time corresponding to an online password may be "2023-10-11-09:58", the validity time granularity may be "hours", and the preset number may be "1". Then the password validity time corresponding to the online password may be "2023-10-11-10:58".

[0088] In the second sub-step, in response to determining that there is a verified online password that meets the online password matching condition among the obtained verified online passwords, the verified online password that meets the online password matching condition is verified for validity according to the first target password validity time, and a password verification result is obtained. The first target password validity time may be the password validity time corresponding to the verified online password that meets the online password matching condition. The online password matching condition may be that the verified online password is the same as the password to be verified. The password verification result may be a Boolean type variable. For example, when the password verification result is "TRUE", it may indicate that the verified online password that meets the online password matching condition has passed the validity verification, that is, the time when the user inputs the password to be verified does not exceed the first target password validity time. When the password verification result is "FALSE", it may indicate that the verified online password that meets the online password matching condition has not passed the validity verification, that is, the time when the user inputs the password to be verified exceeds the second target password validity time.

[0089] In the fourth step, in response to determining that the password type verification result indicates that the password to be verified is an offline password, each offline password is obtained from the local password pool as each verification offline password and each password validity time corresponding to each verification offline password. The password validity time corresponding to the verification offline password may be a deadline. The password validity time corresponding to the offline password may be determined by the execution subject through the validity time granularity, the password generation time and the preset number.

[0090] In the fifth step, in response to determining that there is a verification offline password that meets the offline password matching condition among the obtained verification offline passwords, the verification offline password that meets the above-mentioned offline password matching condition is verified for validity according to the second target password validity time, and a password verification result is obtained. Among them, the above-mentioned second target password validity time may be the password validity time corresponding to the verification offline password that meets the above-mentioned offline password matching condition. The above-mentioned offline password matching condition may be that the verification offline password is the same as the above-mentioned password to be verified. In practice, first, the above-mentioned execution subject may determine the time when the user inputs the above-mentioned password to be verified as the input time. Then, the above-mentioned execution subject may perform validity verification by comparing the input time with the above-mentioned second target password validity time to obtain the password verification result. The above-mentioned password verification result may be a Boolean type variable. When the above-mentioned password verification result is "TRUE", it can be represented that the verification offline password that meets the above-mentioned offline password matching condition has passed the above-mentioned validity verification, that is, the above-mentioned input time does not exceed the above-mentioned second target password validity time. When the above-mentioned password verification result is "FALSE", it can be represented that the verification offline password that meets the above-mentioned offline password matching condition has not passed the validity verification, that is, the above-mentioned input time exceeds the above-mentioned second target password validity time.

[0091] Step 6: In response to determining that the password verification result indicates that the password verification is successful, performing an unlocking operation. In practice, in response to determining that the password verification result indicates that the password verification is successful, the smart door lock may perform an unlocking operation.

[0092] The above-mentioned embodiments of the present disclosure have the following beneficial effects: the frequency of unlocking failures caused by mismatching door lock passwords can be reduced through the door lock password generation request processing method of some embodiments of the present disclosure. Specifically, the reason for the frequent user unlocking failures is that when the time of the smart door lock end and the server end is asynchronous, the door lock passwords generated at both ends are often different, and the door lock password obtained by the user from the server end cannot match the door lock password generated by the smart door lock end, resulting in frequent user unlocking failures. Based on this, the door lock password generation request processing method of some embodiments of the present disclosure, first, in response to receiving the door lock password generation request sent by the target terminal, the network status of the current network is verified to obtain the network status verification result. Among them, the door lock password generation request includes the password generation time, time granularity and target communication information. Then, in response to determining that the network status verification result indicates that the current network is normal, an online password generation request is sent to the target server to receive each online password. Therefore, when the network status is normal, the door lock password can be uniformly generated by the target server and the generated online passwords can be used as each door lock password. Afterwards, the received online passwords are cached. Thus, each door lock password generated by the target server can be cached locally on the smart door lock side. Then, in response to determining that the network status verification result indicates that the current network is abnormal, each offline password is generated according to the password generation time and the time granularity. Finally, each offline password is stored in the local password pool. Thus, by giving priority to the online password generation method, the frequency of the door lock password obtained by the user not matching the actual door lock password can be reduced. Even when the smart door lock side is asynchronous with the server side, as long as the network status is normal, the door lock password obtained by the user is consistent with the actual door lock password, thereby reducing the frequency of users failing to unlock the door due to password mismatch.

[0093] Reference below Figure 3 , which shows a smart door lock 300 (such as Figure 1 Schematic diagram of the structure of the electronic components of the smart door lock 101). Figure 3 The electronic components of the smart door lock shown are merely examples and should not bring any limitations to the functions and scope of use of the embodiments of the present disclosure.

[0094] like Figure 3As shown, the smart door lock 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 to a random access memory (RAM) 303. In RAM 303, various programs and data required for the operation of the smart door lock 300 are also stored. The processing device 301, ROM 302, and RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0095] Typically, the following devices may be connected to the I / O interface 305: an input device 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 308 including, for example, a magnetic tape, a hard disk, etc.; a door lock assembly ( Figure 3 (not shown); communication device 309. The communication device 309 can allow the smart door lock 300 to communicate with other devices wirelessly or by wire to exchange data. Figure 3 The smart door lock 300 with various devices is shown, but it should be understood that it is not required to implement or have all the devices shown. More or fewer devices can be implemented or have alternatively. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0096] Optionally, the above-mentioned smart door lock may further include: a communication device ( Figure 3 The communication device can allow the smart door lock 300 to receive a call request from a mobile terminal; the audio collection device ( Figure 3 The audio acquisition device is used to acquire the audio signal to be tested.

[0097] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0098] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0099] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0100] The computer-readable medium may be included in the smart door lock; or it may exist independently without being assembled into the smart door lock. The computer-readable medium carries one or more programs. When the one or more programs are executed by the smart door lock, the smart door lock: in response to receiving a door lock password generation request sent by the target terminal, performs network status verification on the current network to obtain a network status verification result, wherein the door lock password generation request includes password generation time, time granularity and target communication information; in response to determining that the network status verification result indicates that the current network is normal, sends an online password generation request to the target server to receive each online password; caches each received online password; in response to determining that the network status verification result indicates that the current network is abnormal, generates each offline password according to the password generation time and the time granularity; and stores each offline password in a local password pool.

[0101] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0102] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0103] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0104] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure.

Claims

1. A door lock password generation request processing method, applied to a smart door lock, comprising: In response to receiving a door lock password generation request sent by a target terminal, verifying the network status of the current network to obtain a network status verification result, wherein the door lock password generation request includes a password generation time, a time granularity, and target communication information; In response to determining that the network status verification result indicates that the current network is normal, sending an online password generation request to a target server to receive each online password; Cache each received online password; In response to determining that the network status verification result indicates that the current network is abnormal, generating each offline password according to the password generation time and the time granularity; Storing each offline password in a local password pool; Receive the password entered by the user as the password to be verified; Performing a type check on the password to be verified to generate a password type check result; In response to determining that the password type verification result indicates that the password to be verified is an online password, performing the following online password verification steps: Acquire each online password from the online password pool corresponding to the target server as each verification online password and each password validity period corresponding to each verification online password; In response to determining that there is a verification online password that meets the online password matching condition among the obtained verification online passwords, verify the validity of the verification online password that meets the online password matching condition according to a first target password validity time to obtain a password verification result, wherein the first target password validity time is the password validity time corresponding to the verification online password that meets the online password matching condition; In response to determining that the password type verification result indicates that the password to be verified is an offline password, obtaining each offline password from the local password pool as each verification offline password and each password validity time corresponding to each verification offline password; In response to determining that there is a verification offline password that meets the offline password matching condition among the obtained verification offline passwords, verifying the validity of the verification offline password that meets the offline password matching condition according to the second target password validity time, and obtaining a password verification result, wherein the second target password validity time is the password validity time corresponding to the verification offline password that meets the offline password matching condition; In response to determining that the password verification result indicates that the password verification is successful, an unlocking operation is performed.

2. The method according to claim 1, wherein: Before the step of performing network status verification on the current network in response to receiving the door lock password generation request sent by the target terminal and obtaining the network status verification result, the method further includes: In response to receiving a call request, establishing a communication connection with a mobile terminal that issued the call request, and extracting communication information from the call request as target communication information; collecting the audio signal to be tested through the established communication connection; Performing text conversion processing on the collected audio signal to be tested to obtain audio text information; In response to determining that the audio text information meets the preset keyword condition, the following processing verification steps are performed: In response to determining that the pre-built authorized communication information set contains authorized communication information corresponding to the target communication information, the following steps are performed: Selecting visitor voiceprint feature information corresponding to the target communication information from a pre-constructed visitor voiceprint feature information set as the target voiceprint feature information, wherein the authorized communication information in the authorized communication information set corresponds to the visitor voiceprint feature information in the visitor voiceprint feature information set; Generating the voiceprint feature information to be tested according to the pre-trained voiceprint feature extraction model and the audio signal to be tested; Generate a visitor voiceprint verification result according to the voiceprint feature information to be tested and the target voiceprint feature information; Sending an authorized access notification to the target terminal, wherein the authorized access notification includes the target communication information and the visitor voiceprint verification result.

3. The method according to claim 2, wherein: Before the step of performing network status verification on the current network in response to receiving the door lock password generation request sent by the target terminal and obtaining the network status verification result, the method further includes: In response to determining that the authorized communication information corresponding to the target communication information does not exist in the authorized communication information set, an unauthorized access notification is sent to the target terminal, wherein the unauthorized access notification includes the target communication information and the audio signal to be tested.

4. The method according to claim 3, wherein: Each online password is generated by the target server through the following steps: In response to receiving the online password generation request, obtaining a target server device key and a target server registration key, wherein the online password generation request includes an online password generation time and a validity time granularity; Generate an online password timestamp according to the online password generation time and the effective time granularity; generating an online password digest according to the online password timestamp, the target server device key and the target server registration key; Dividing the online password summary according to a preset online password group length to obtain various online password groups; For each of the obtained online password groups, an online password corresponding to the online password group is generated.

5. The method according to claim 4, wherein: Generating each offline password according to the password generation time and the time granularity includes: Get the device key and device registration key; Generate an offline password timestamp according to the password generation time and the time granularity; Generate an offline password digest according to the device key, the device registration key and the offline password timestamp; Dividing the offline password summary according to a preset offline password group length to obtain an offline password group sequence; For each offline cipher group in the offline cipher group sequence, perform the following steps: Generate offline password group identification information corresponding to the offline password group according to the password generation time and the time granularity; An offline password is generated according to the offline password group identification information and the offline password group.

6. A smart door lock, comprising: one or more processors; Door lock assembly; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.

7. The smart door lock according to claim 6, wherein: The smart door lock comprises: A communication device for receiving a call request from a mobile terminal; The audio acquisition device is used to acquire the audio signal to be tested.

8. A door body, comprising: A door body and a smart door lock as described in any one of claims 6-7, wherein the smart door lock is arranged on the door body.

9. A computer readable medium having a computer program stored thereon, wherein: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.