Methods, devices, equipment, and storage media for obtaining passwords

By sending password groups through the server and optimizing door lock communication using broadcast mode, the problem of complexity and time-consuming temporary password updates for large numbers of door locks is solved, achieving a more efficient password update process.

CN116631100BActive Publication Date: 2026-01-30GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310509619.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-06
Publication Date
2026-01-30
Estimated Expiration
2043-05-06

AI Technical Summary

Technical Problem

In scenarios such as hotels and apartments, existing technologies for temporarily updating passwords for a large number of door locks are complex, time-consuming, and have a high failure rate.

Method used

The password group is sent by the server. The first lock parses it and sends a temporary password in broadcast mode. The second lock obtains the password through short-range communication, optimizing the communication process to shorten the update time.

Benefits of technology

It improves the efficiency and success rate of password updates, and reduces operation time and failure rate, especially when temporary passwords need to be assigned to multiple rooms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116631100B_ABST
    Figure CN116631100B_ABST
Patent Text Reader

Abstract

This application provides a method, apparatus, device, and storage medium for obtaining a password. The method involves a first door lock obtaining a password group sent by a server; parsing the password group to obtain a temporary password; and activating a broadcast mode within a preset time period. A second door lock searches within a preset range for a broadcast from the first door lock. If a broadcast from the first door lock is present and a connection is established between the second and first door locks, the second door lock sends a password retrieval request to the first door lock. The first door lock then broadcasts the temporary password to the second door lock. This optimizes the communication process for updating door lock passwords and shortens the password update time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart door lock technology, and in particular to a method, apparatus, device and storage medium for obtaining a password. Background Technology

[0002] With the increasing prevalence of the Internet of Things (IoT), IoT-based password locks are appearing in various residential scenarios with high foot traffic. Utilizing wireless communication technology, these locks allow for password updates and time limits, catering to different users' needs at different times. However, due to their specific nature, high-power operation is not feasible. Therefore, the communication methods and modes of these locks are designed with power consumption in mind. Locks based on NB-IoT modules are one such solution.

[0003] In hotel and apartment settings, there are situations where temporary passwords need to be assigned to entire floors or buildings. For example, cleaning staff or lock maintenance personnel may need to assign a temporary password to a specific range of rooms to enable certain operations. Due to the communication limitations of door locks, updating temporary passwords for a large number of locks becomes a technical challenge. To address this issue, related technologies offer the following solutions: fixed temporary passwords are uniformly assigned. Users of these passwords manually trigger communication between the lock and the server to obtain password updates. Once updated, the lock is opened using the temporary password to access the corresponding services. While these solutions can uniformly assign temporary passwords to a specific range of locks, they suffer from operational complexity and time consumption. Each lock's communication with the server to update its password takes time, and there is a certain failure rate requiring re-runs. Summary of the Invention

[0004] To address the aforementioned problems, this application provides a method, apparatus, device, and storage medium for obtaining passwords, which can shorten password update time by optimizing the communication process for updating passwords.

[0005] This application provides a password acquisition method, including:

[0006] Obtain the password group sent by the server, wherein the password group includes: a temporary password;

[0007] The password group is parsed to obtain the temporary password;

[0008] The broadcast mode is activated within a preset time period so that the second door lock can obtain the temporary password based on the broadcast mode.

[0009] In some embodiments, the cipher set further includes: a temporary cipher range, and parsing the cipher set to obtain the temporary cipher includes:

[0010] The cipher group is parsed to obtain the range of temporary ciphers;

[0011] The range of the temporary password is compared with the first lock marking information of the first lock to determine whether the position of the first lock is within the range of the temporary password, wherein the first lock marking information is used to characterize the position of the first lock;

[0012] If the location represented by the first door lock indicator information is within the range of the temporary password, then obtain the temporary password.

[0013] In some embodiments, the broadcast mode includes: Bluetooth broadcast mode.

[0014] In some embodiments, the method further includes:

[0015] If a connection is established with the second door lock and a password retrieval request is received from the second door lock, it is determined whether to send the temporary password to the second door lock based on the authentication information and the second door lock identification information in the password retrieval request.

[0016] If it is necessary to send the temporary password to the second door lock, then send the temporary password to the second door lock.

[0017] In some embodiments, determining whether to send the temporary password to the second lock based on the authentication information and the second lock identifier information in the password acquisition request includes:

[0018] Based on the authentication information, it is determined whether the second door lock has communication permission to communicate with the first door lock. If the second door lock does not have the communication permission, it is determined not to send the temporary password to the second door lock.

[0019] If the second door lock has the communication permission, determine whether the location represented by the second door lock's indicator information is within the range of the temporary password, and then determine whether to send the temporary password to the second door lock. If the location represented by the second door lock's indicator information is not within the range of the temporary password, determine not to send the temporary password to the second door lock; if the location represented by the second door lock's indicator information is within the range of the temporary password, determine to send the temporary password to the second door lock.

[0020] This application provides a method for obtaining a password, applied to a second door lock, including:

[0021] Search for a broadcast indicating whether the first door lock exists within a preset range;

[0022] If a broadcast of the first lock is present and a connection is established with the first lock, a password retrieval request is sent to the first lock, so that the first lock determines whether to send a temporary password to the second lock based on the authentication information and the second lock identification information in the password retrieval request;

[0023] Upon receiving the temporary password sent by the first door lock, the password is stored.

[0024] In some embodiments, the method further includes:

[0025] In the absence of a broadcast from the first door lock, a password retrieval request is sent to the server to obtain a temporary password.

[0026] This application provides a password acquisition device, comprising:

[0027] The acquisition module is used to acquire a password group sent by the server, wherein the password group includes: a temporary password;

[0028] A parsing module is used to parse the password group to obtain the temporary password;

[0029] The broadcast module is used to open the broadcast mode within a preset time period so that the second door lock can obtain the temporary password based on the broadcast mode.

[0030] This application provides a password acquisition device, comprising:

[0031] The search module is used to search within a preset range for the presence of a broadcast indicating whether the first door lock exists.

[0032] The sending module is used to send a password retrieval request to the first door lock when there is a broadcast of the first door lock and a connection is established with the first door lock, so that the first door lock determines whether to send a temporary password to the second door lock based on the authentication information and the second door lock flag information in the password retrieval request;

[0033] The storage module is used to store the temporary password when it receives the temporary password sent by the first door lock.

[0034] This application provides an electronic device, including a memory and a processor. The memory stores a computer program, which, when executed by the processor, performs a password acquisition method as described in any of the above embodiments.

[0035] This application provides a door lock, including the electronic device described above.

[0036] This application provides a door lock communication system, including: a server and the door locks described above, wherein the door locks include a first door lock and a second door lock, the server is communicatively connected to the first door lock, and the first door lock is communicatively connected to the second door lock.

[0037] This application provides a computer-readable storage medium storing a computer program that can be executed by one or more processors and can be used to implement the password acquisition method described above.

[0038] This application provides a method, apparatus, device, and storage medium for obtaining a password. After obtaining a temporary password through a first door lock, the temporary password is broadcast and sent to a second door lock. By optimizing the communication process for updating the password, the password update time can be shortened. Attached Figure Description

[0039] The present application will be described in more detail below based on embodiments and with reference to the accompanying drawings.

[0040] Figure 1 A schematic diagram illustrating the implementation flow of a password acquisition method provided in an embodiment of this application;

[0041] Figure 2 A schematic diagram illustrating the implementation flow of a password acquisition method provided in an embodiment of this application;

[0042] Figure 3 A schematic diagram illustrating the implementation flow of a password acquisition method provided in an embodiment of this application;

[0043] Figure 4 A schematic diagram illustrating the implementation flow of a password acquisition method provided in an embodiment of this application;

[0044] Figure 5 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application.

[0045] In the accompanying drawings, the same parts are referred to by the same reference numerals, and the drawings are not drawn to scale. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0048] If the application documents contain similar descriptions such as "first, second, third", the following explanation shall be added: In the following description, the terms "first, second, third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first, second, third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.

[0049] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.

[0050] Based on the problems existing in related technologies, this application provides a password acquisition method. The method is applied to electronic devices, such as computers and mobile terminals. The mobile terminal may include mobile phones, tablets, etc. In some embodiments, the electronic device may be a controller for a first door lock. The password acquisition method provided by this application can be applied to scenarios where a temporary password needs to be assigned to rooms within a preset range. For example, it can be a scenario where temporary passwords need to be assigned to rooms on an entire floor or in an apartment building, such as in a hotel or apartment complex. In this application embodiment, the door lock is applied to a door lock communication system, which includes a server and door locks. The door locks include a first door lock and a second door lock. The server is communicatively connected to the first door lock, and the first door lock can communicate with the second door lock. The server sends a temporary password to the first door lock, which broadcasts the password. The second door lock can obtain the temporary password through the broadcast. The function implemented by the password acquisition method provided by this application can be achieved by the processor of the electronic device calling program code, whereby the program code can be stored in a computer storage medium.

[0051] This application provides a method for obtaining a password. Figure 1 This is a schematic diagram illustrating the implementation flow of a password acquisition method provided in an embodiment of this application, as shown below. Figure 1 As shown, it includes:

[0052] Step S101: Obtain the password group sent by the server, wherein the password group includes: a temporary password.

[0053] In this embodiment of the application, the electronic device has cloud platform communication capabilities and the ability to transmit data. The electronic device can send a password update request to the server, thereby causing the server to send the password set to the electronic device.

[0054] In this embodiment, the temporary password is a password with an expiration date. The password group can be considered as a message carrying information related to the password.

[0055] In some embodiments, the cipher set further includes: a temporary cipher flag and a zero-time cipher range.

[0056] In this embodiment of the application, the temporary password range is used to limit the effective range of the password. For example, the temporary password range can be the entire building, a floor, etc.

[0057] Step S102: Parse the password group to obtain the temporary password.

[0058] In this embodiment of the application, the cipher set can be analyzed to obtain a temporary cipher.

[0059] Step S103: Activate the broadcast mode within a preset time period so that the second door lock can obtain the temporary password based on the broadcast mode.

[0060] In this embodiment of the application, the broadcast mode is a short-range communication broadcast mode. For example, the broadcast mode may be a Bluetooth broadcast mode.

[0061] In this embodiment of the application, by enabling Bluetooth broadcast mode, the second door lock can be connected to send a temporary password to the second door lock.

[0062] This application provides a method for obtaining a password. After obtaining a temporary password, the first door lock broadcasts the temporary password to the second door lock. By optimizing the communication process for updating the password, the password update time can be shortened.

[0063] In some embodiments, step S102 can be implemented by the following steps:

[0064] Step S1021: Parse the cipher group to obtain the range of temporary ciphers.

[0065] Step S1022: Compare the temporary password range with the first door lock marking information of the first door lock to determine whether the position of the first door lock is within the temporary password range, wherein the first door lock marking information is used to characterize the position of the first door lock.

[0066] Following the example above, we can determine whether the location of the first door lock is on the corresponding floor.

[0067] Step S1023: If the position represented by the first door lock indicator information is within the range of the temporary password, obtain the temporary password.

[0068] The password acquisition method provided in this application can reduce password update errors and improve the password update success rate by verifying the range of temporary passwords.

[0069] In some embodiments, after step S103, the method further includes:

[0070] Step S104: If a connection is established with the second door lock and a password retrieval request is received from the second door lock, determine whether to send the temporary password to the second door lock based on the authentication information and the second door lock flag information in the password retrieval request.

[0071] In this embodiment of the application, the second door lock can establish a connection with the first door lock, so that the second door lock sends a password retrieval request to the first door lock.

[0072] In this embodiment, based on the authentication information, it is determined whether the second lock has communication permission to communicate with the first lock. If the second lock does not have the communication permission, it is determined not to send a temporary password to the second lock. If the second lock has the communication permission, it is determined whether the position represented by the second lock's indicator information is within the range of the temporary password, to determine whether to send the temporary password to the second lock. If the position represented by the second lock's indicator information is not within the range of the temporary password, it is determined not to send a temporary password to the second lock. If the position represented by the second lock's indicator information is within the range of the temporary password, it is determined to send the temporary password to the second lock.

[0073] Step S105: If it is necessary to send the temporary password to the second door lock, send the temporary password to the second door lock.

[0074] In this embodiment of the application, a temporary password can be sent to the second lock through the connection between the first lock and the second lock.

[0075] Based on the aforementioned password acquisition method, this application provides another password acquisition method. This method is applied to a second door lock and to an electronic device, such as a computer or mobile terminal. The mobile terminal may include a mobile phone or tablet computer. In some embodiments, the electronic device may be a controller for the second door lock. It should be noted that the functions performed by the first and second door locks can be integrated into a single door lock. Due to the different acquisition methods, the passwords obtained will be named differently. The password acquisition method provided in this application... Figure 2 A method for obtaining a password provided in this application includes:

[0076] Step S201: Search within a preset range for a broadcast from the first door lock.

[0077] In this embodiment, the second door lock can activate the search broadcast function. The second door lock uses the same type of communication module as the first door lock, which can be a wireless communication module, for example, a Bluetooth communication module.

[0078] In step S202, if there is a broadcast of the first door lock and a connection is established with the first door lock, a password retrieval request is sent to the first door lock, so that the first door lock determines whether to send the temporary password to the second door lock based on the authentication information and the second door lock flag information in the password retrieval request.

[0079] In this embodiment of the application, when the first door lock sends a password retrieval request, the password retrieval request carries authentication information and second door lock identification information.

[0080] In this embodiment of the application, after receiving a password retrieval request, the first lock obtains authentication information and second lock identification information. It uses the authentication information to determine whether the second lock has communication permissions and uses the second lock identification information to determine whether the temporary password needs to be updated. If it is confirmed that the second lock needs to update the temporary password, the temporary password is returned to the second lock.

[0081] Step S203: If the temporary password sent by the first door lock is obtained, the password is stored.

[0082] The password acquisition method provided in this application embodiment involves updating the temporary password of the first door lock. After the first door lock is updated, it will be in broadcast mode for a certain period of time. When updating the temporary password of the second door lock, the second door lock will first check if the first door lock is in broadcast mode, and preferably communicate with the first door lock to obtain the temporary password. Compared with requesting the server, Bluetooth-based short-range communication between door locks has faster communication efficiency and higher communication success rate. In scenarios where cleaners, repairmen, etc. need to update the temporary passwords of rooms within a certain range in sequence, it can save them time when updating the temporary passwords of door locks.

[0083] Based on the foregoing embodiments, this application further provides a method for obtaining a password, wherein the method is applied to a first door lock. Figure 3 A flowchart illustrating a password acquisition method provided in this application embodiment is shown below. Figure 3 As shown, the method includes:

[0084] S100, the first door lock retrieves the password from the server.

[0085] In this embodiment, the first door lock is a temporary password door lock to be updated, capable of communicating with the cloud platform and transmitting data. The first door lock sends a password update request to the server. The server receives the request, obtains the latest password group corresponding to the first door lock, and returns it to the first door lock. The password group includes a temporary password flag and temporary password content. In some embodiments, the password group also includes a temporary password range, which can be a building or floor flag used to distinguish the valid range of the password.

[0086] S200: First door lock decodes password group, obtains temporary password, and opens broadcast mode.

[0087] In this embodiment, the first door lock analyzes the password group, obtains a temporary password, and simultaneously opens a broadcast mode. The broadcast mode is a short-range communication broadcast mode. As a preferred embodiment, the first door lock opens a Bluetooth broadcast mode and waits for other door locks to connect.

[0088] Using the password acquisition method provided in this application embodiment, the first door lock obtains a temporary password and opens the broadcast mode, allowing other door locks to obtain the latest temporary password through the first door lock.

[0089] Based on the foregoing embodiments, this application further provides a method for obtaining a password. Figure 4 This is a schematic diagram illustrating the implementation process of a password acquisition method provided in an embodiment of this application, as shown below. Figure 4 As shown, the method is applied to a second door lock, and the method includes:

[0090] C100, the second door lock is broadcasting a request to the first door lock to obtain a temporary password.

[0091] In this embodiment, the second door lock searches for the broadcast of the first door lock. The second door lock and the first door lock use the same type of communication module. After the second door lock detects the broadcast of the first door lock, it establishes a connection with the first door lock and requests to obtain a temporary password. The request includes authentication information and door lock identification information. The door lock identification information includes location-specific information such as the building and floor to which the door lock belongs.

[0092] C200. The first door lock receives the request, authenticates the temporary password permission, and sends the temporary password. Specifically, the first door lock receives and parses the request, obtains authentication information and door lock identification information, uses the authentication information to determine whether the second door lock has communication permission, uses the door lock identification information to determine whether the temporary password needs to be updated, and if it is confirmed that the second door lock needs to update the temporary password, then the temporary password is returned to the second door lock.

[0093] C300, the second door lock stores the temporary password; specifically, the second door lock obtains the temporary password and saves it.

[0094] Through the above implementation method, after the temporary password of the first door lock is updated, the first door lock will be in broadcast mode for a certain period of time. When updating the temporary password of the second door lock at this time, the second door lock will first check whether the first door lock is in broadcast mode, and preferably communicate with the first door lock to obtain the temporary password. Compared with requesting the server, Bluetooth-based short-range communication between door locks has faster communication efficiency and higher communication success rate. In scenarios where cleaners, maintenance workers, etc. need to update the temporary passwords of rooms within a certain range in sequence, it can save them time when updating the temporary passwords of door locks.

[0095] Based on the foregoing embodiments, this application provides a password acquisition device. The various modules and units included in the device can be implemented by a processor in a computer device; of course, they can also be implemented by specific logic circuits. In the implementation process, the processor can be a central processing unit (CPU), a microprocessor unit (MPU), a digital signal processor (DSP), or a field programmable gate array (FPGA), etc.

[0096] This application provides a password acquisition device, comprising:

[0097] The acquisition module is used to acquire a password group sent by the server, wherein the password group includes: a temporary password;

[0098] A parsing module is used to parse the password group to obtain the temporary password;

[0099] The broadcast module is used to open the broadcast mode within a preset time period so that the second door lock can obtain the temporary password based on the broadcast mode.

[0100] In some embodiments, the cipher set further includes: a temporary cipher range, and parsing the cipher set to obtain the temporary cipher includes:

[0101] The cipher group is parsed to obtain the range of temporary ciphers;

[0102] The range of the temporary password is compared with the first lock marking information of the first lock to determine whether the position of the first lock is within the range of the temporary password, wherein the first lock marking information is used to characterize the position of the first lock;

[0103] If the location represented by the first door lock indicator information is within the range of the temporary password, then obtain the temporary password.

[0104] In some embodiments, the broadcast mode includes: Bluetooth broadcast mode.

[0105] In some embodiments, the password acquisition device is further used for:

[0106] If a connection is established with the second door lock and a password retrieval request is received from the second door lock, it is determined whether to send the temporary password to the second door lock based on the authentication information and the second door lock identification information in the password retrieval request.

[0107] If it is necessary to send the temporary password to the second door lock, then send the temporary password to the second door lock.

[0108] In some embodiments, determining whether to send the temporary password to the second lock based on the authentication information and the second lock identifier information in the password acquisition request includes:

[0109] Based on the authentication information, it is determined whether the second door lock has communication permission to communicate with the first door lock. If the second door lock does not have the communication permission, it is determined not to send the temporary password to the second door lock.

[0110] If the second door lock has the communication permission, determine whether the location represented by the second door lock's indicator information is within the range of the temporary password, and then determine whether to send the temporary password to the second door lock. If the location represented by the second door lock's indicator information is not within the range of the temporary password, determine not to send the temporary password to the second door lock; if the location represented by the second door lock's indicator information is within the range of the temporary password, determine to send the temporary password to the second door lock.

[0111] This application embodiment further provides a password acquisition device, including:

[0112] The search module is used to search within a preset range for the presence of a broadcast indicating whether the first door lock exists.

[0113] The sending module is used to send a password retrieval request to the first door lock when there is a broadcast of the first door lock and a connection is established with the first door lock, so that the first door lock determines whether to send a temporary password to the second door lock based on the authentication information and the second door lock flag information in the password retrieval request;

[0114] The storage module is used to store the temporary password when it receives the temporary password sent by the first door lock.

[0115] In some embodiments, the password acquisition device is further used for:

[0116] In the absence of a broadcast from the first door lock, a password retrieval request is sent to the server to obtain a temporary password.

[0117] It should be noted that, in the embodiments of this application, if the above-described password acquisition method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.

[0118] Accordingly, this application provides a computer-readable storage medium storing a computer program thereon, characterized in that the computer program, when executed by a processor, implements the steps in the password acquisition method provided in the above embodiments.

[0119] This application provides an electronic device; Figure 5 This is a schematic diagram of the composition structure of the electronic device provided in the embodiments of this application, such as... Figure 5 As shown, the electronic device 500 includes: a processor 501, at least one communication bus 502, a user interface 503, at least one external communication interface 504, and a memory 505. The communication bus 502 is configured to enable communication between these components. The user interface 503 may include a control panel, and the external communication interface 504 may include standard wired and wireless interfaces. The processor 501 is configured to execute a program for obtaining a password stored in the memory, to implement the steps in the password acquisition method provided in the above embodiment.

[0120] The descriptions of the above embodiments of the electronic devices and storage media are similar to those of the above method embodiments, and have similar beneficial effects. For technical details not disclosed in the embodiments of the computer devices and storage media of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0121] Based on the foregoing embodiments, this application further provides a door lock communication system, including: a server, a first door lock, and a second door lock, wherein the server includes:

[0122] The processing module is responsible for handling requests from the door lock and returning the corresponding request results;

[0123] The storage module is responsible for the door lock information, such as the password corresponding to the door lock and the password's validity period;

[0124] The sending module is responsible for communicating with the door lock;

[0125] The first and second door locks include:

[0126] The analysis module is responsible for analyzing the server's results.

[0127] The storage module is responsible for storing door lock-related information, such as the password and its validity period.

[0128] The communication module is responsible for communicating with the server and the door lock.

[0129] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0130] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.

[0131] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0132] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the controlled or discussed components can be through some interfaces, and the indirect coupling or communication connection between devices or units can be electrical, mechanical, or other forms.

[0133] The units described above as separate components may or may not be physically separate. The components controlled by the units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.

[0134] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.

[0135] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.

[0136] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a controller to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0137] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method of obtaining a password, characterized by, The application is applied to a first door lock, comprising: Obtaining a password group sent by a server, wherein the password group comprises a temporary password; Parsing the password group to obtain the temporary password; The password group further comprises a temporary password range, and the parsing of the password group to obtain the temporary password comprises: Parsing the password group to obtain the temporary password range; Comparing the temporary password range with first door lock sign information of the first door lock to determine whether a position represented by the first door lock sign information is within the temporary password range, wherein the first door lock sign information represents the position of the first door lock; In a case where the position represented by the first door lock sign information is within the temporary password range, obtaining the temporary password and opening a broadcast mode within a preset time length to enable a second door lock to obtain the temporary password based on the broadcast mode; The method further comprises: In a case where a connection with the second door lock is established and a password obtaining request sent by the second door lock is obtained, determining whether to send the temporary password to the second door lock based on authentication information in the password obtaining request and second door lock sign information; In a case where the temporary password needs to be sent to the second door lock, sending the temporary password to the second door lock; The determination of whether to send the temporary password to the second door lock based on the authentication information in the password obtaining request and the second door lock sign information comprises: Determining whether the second door lock has a communication permission with the first door lock based on the authentication information, wherein in a case where the second door lock does not have the communication permission, it is determined not to send the temporary password to the second door lock; In a case where the second door lock has the communication permission, determining whether a position represented by the second door lock sign information is within the temporary password range to determine whether to send the temporary password to the second door lock, wherein in a case where the position represented by the second door lock sign information is not within the temporary password range, it is determined not to send the temporary password to the second door lock; and in a case where the position represented by the second door lock sign information is within the temporary password range, it is determined to send the temporary password to the second door lock.

2. The method of claim 1, wherein, The broadcast mode comprises a Bluetooth broadcast mode.

3. A method of obtaining a password, characterized by, The application is applied to a second door lock, comprising: Searching whether there is a broadcast of a first door lock within a preset range, wherein the first door lock obtains a temporary password from a server by the method according to any one of claims 1-2; In a case where there is the broadcast of the first door lock and a connection with the first door lock is established, sending a password obtaining request to the first door lock to enable the first door lock to determine whether to send the temporary password to the second door lock based on authentication information in the password obtaining request and second door lock sign information; In a case where the temporary password sent by the first door lock is obtained, storing the temporary password.

4. The method of claim 3, wherein, The method further comprises: In a case where there is no broadcast of the first door lock, sending a password obtaining request to the server to obtain a temporary password from the server.

5. An apparatus for obtaining a password, characterized by comprising: The application comprises: An obtaining module, configured to obtain a password group sent by a server, wherein the password group comprises a temporary password; The analyzing module is configured to analyze the password group to obtain the temporary password; The password group further comprises a temporary password range, and the analyzing the password group to obtain the temporary password comprises: analyzing the password group to obtain the temporary password range; comparing the temporary password range with first door lock sign information of the first door lock to determine whether a position represented by the first door lock sign information is within the temporary password range, wherein the first door lock sign information is used to represent the position of the first door lock; obtaining the temporary password in a case where the position represented by the first door lock sign information is within the temporary password range; The broadcasting module is configured to open a broadcasting mode for a preset time length to enable the second door lock to obtain the temporary password based on the broadcasting mode. The obtaining device is further configured to, in a case where a connection with the second door lock is established and a password obtaining request sent by the second door lock is obtained, determine whether to send the temporary password to the second door lock based on authentication information in the password obtaining request and second door lock sign information. In a case where the temporary password needs to be sent to the second door lock, the temporary password is sent to the second door lock. The determination whether to send the temporary password to the second door lock based on the authentication information in the password obtaining request and the second door lock sign information comprises: determining whether the second door lock has a communication permission with the first door lock based on the authentication information, wherein in a case where the second door lock does not have the communication permission, it is determined not to send the temporary password to the second door lock. In a case where the second door lock has the communication permission, it is determined whether a position represented by the second door lock sign information is within the temporary password range to determine whether to send the temporary password to the second door lock, wherein in a case where the position represented by the second door lock sign information is not within the temporary password range, it is determined not to send the temporary password to the second door lock; and in a case where the position represented by the second door lock sign information is within the temporary password range, it is determined to send the temporary password to the second door lock.

6. An apparatus for obtaining a password, characterized by comprising: adapted to the method of any one of claims 3-4, comprising: The searching module is configured to search whether there is a broadcast of the first door lock within a preset range. The sending module is configured to, in a case where there is a broadcast of the first door lock and a connection with the first door lock is established, send a password obtaining request to the first door lock to enable the first door lock to determine whether to send a temporary password to the second door lock based on authentication information in the password obtaining request and second door lock sign information. The storage module is configured to, in a case where the temporary password sent by the first door lock is obtained, store the temporary password.

7. An electronic device, comprising: The electronic device comprises a memory and a processor, and a computer program is stored in the memory and executed by the processor to perform the password obtaining method of any one of claims 1-4.

8. A door lock characterized by comprising: The electronic device of claim 7.

9. A door lock communication system characterized by comprising: comprising: The server and the door lock of claim 8, wherein the door lock comprises a first door lock and a second door lock, the server is communicatively connected with the first door lock, and the first door lock is capable of being communicatively connected with the second door lock.

10. A storage medium, characterized by The computer program stored in the storage medium can be executed by one or more processors and can be used to implement the password acquisition method according to any one of claims 1 to 4.

Citation Information

Patent Citations

  • Lock control system

    CN212647545U