Smart lock configuration method and apparatus, smart lock, and storage medium
By reading the stored information in the configuration card and generating the configuration information of the target smart lock according to preset rules, the problem of wasting multiple IC cards is solved, and the continuous configuration of multiple smart locks is realized, saving resources and improving configuration efficiency and security.
Patent Information
- Application Number
- CN202211430031.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-15
- Publication Date
- 2026-02-10
- Estimated Expiration
- 2042-11-15
AI Technical Summary
In the existing technology, configuring multiple smart locks requires the creation of multiple IC cards, which leads to a waste of resources.
By reading the stored information in the configuration card, including the floor and room information of the previously configured smart lock and the preset rule information, the floor and room information of the target smart lock is generated, and the target smart lock is configured based on this information, so as to realize the continuous configuration of multiple smart locks.
This allows multiple smart locks to be configured using a single configuration card, saving IC card resources, improving configuration efficiency and accuracy, and enhancing security.
Smart Images

Figure CN116665345B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a smart lock configuration method, device, smart lock, and storage medium. Background Technology
[0002] With the development and popularization of smart locks, their application scenarios have shifted from residential homes and long-term rental apartments to hotels, short-term rental homestays, and other different application scenarios. However, this has also placed higher demands on the configuration of smart locks.
[0003] Currently, when configuring smart locks without a network connection, the common practice is to use one integrated circuit (IC) card to configure one smart lock. That is, an IC card containing configuration instructions and information is used to write configuration information to the smart lock to activate it and put it into use.
[0004] However, in the above methods, when faced with a large number of smart locks to be configured, it is often necessary to customize multiple IC cards to store different configuration information in order to configure different smart locks. This requires the production of multiple IC cards at once, resulting in a waste of IC card resources. Summary of the Invention
[0005] This invention provides a smart lock configuration method, device, smart lock, and storage medium to solve the defect of IC card resource waste when configuring smart locks in the prior art, and to achieve the goal of saving IC card resources.
[0006] This invention provides a smart lock configuration method, applied to a target smart lock, the method comprising:
[0007] Read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock.
[0008] Based on the first configuration information and the preset rule information, second configuration information is generated, and the second configuration information includes the second floor information and the second room information corresponding to the target smart lock;
[0009] Configure the target smart lock according to the second configuration information.
[0010] According to a smart lock configuration method provided by the present invention, the stored information further includes a first value, which is obtained by updating a second value after the previous configured smart lock has been successfully configured; the second value is a value included in the stored information corresponding to the previous configured smart lock; the preset rule information includes the number of rooms corresponding to each floor.
[0011] The step of generating second configuration information based on the first configuration information and preset rule information includes:
[0012] The second room information is determined based on the first room information, the first value, and the number of rooms corresponding to each floor;
[0013] The second floor information is determined based on the first floor information, the first value, and the number of rooms corresponding to each floor.
[0014] According to a smart lock configuration method provided by the present invention, configuring the target smart lock according to the second configuration information includes:
[0015] Output the second configuration information;
[0016] Upon receiving a confirmation command, the target smart lock is configured. The confirmation command is an instruction entered by the user when they confirm that the second configuration information is correct.
[0017] According to a smart lock configuration method provided by the present invention, after configuring the target smart lock, the method further includes:
[0018] Update the first value, and write the updated first value and the second configuration information into the configuration card.
[0019] According to a smart lock configuration method provided by the present invention, the stored information further includes an expiration time;
[0020] The step of generating second configuration information based on the first configuration information and preset rule information includes:
[0021] If the failure time is greater than the current time, the second configuration information is generated based on the first configuration information and the preset rule information.
[0022] According to a smart lock configuration method provided by the present invention, after outputting the second configuration information, the method further includes:
[0023] If the confirmation instruction is not received within a preset time period, a prompt message is output to remind the user that the target smart lock configuration has failed.
[0024] The present invention also provides a smart lock configuration device, the device comprising:
[0025] The reading module is used to read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock.
[0026] The generation module is used to generate second configuration information based on the first configuration information and preset rule information. The second configuration information includes the second floor information and the second room information corresponding to the target smart lock.
[0027] The configuration module is used to configure the target smart lock according to the second configuration information.
[0028] The present invention also provides a smart lock, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the smart lock configuration method as described above.
[0029] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the smart lock configuration method as described above.
[0030] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the smart lock configuration method as described above.
[0031] The smart lock configuration method, device, smart lock, and storage medium provided by this invention read first configuration information stored in a configuration card, which includes first floor information and first room information corresponding to a previously configured smart lock, as well as preset rule information. Based on the first configuration information and the preset rule information, second configuration information, including second floor information and second room information corresponding to the target smart lock, is generated. The target smart lock can then be configured based on this second configuration information. Therefore, this invention can generate configuration information for the next smart lock to be configured based on the configuration information of a previously configured smart lock and the preset rule information. Using the same method, configuration information for multiple smart locks to be configured can be obtained, allowing multiple smart locks to be configured continuously using the same configuration card. This achieves the goal of configuring multiple smart locks continuously with one configuration card, thereby saving configuration card resources. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0033] Figure 1 This is one of the flowcharts illustrating the smart lock configuration method provided in this embodiment of the invention;
[0034] Figure 2 This is a second flowchart illustrating the smart lock configuration method provided in this embodiment of the invention;
[0035] Figure 3 This is a schematic diagram of the structure of the smart lock configuration device provided in an embodiment of the present invention;
[0036] Figure 4 This is a structural schematic diagram of the smart lock provided by the present invention. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0038] Intelligent locks are locks that differ from traditional mechanical locks in that they are more intelligent in terms of user or personnel identification, security, and management. As the first line of defense in intelligent security, they are widely used in important places such as hotels, school dormitories, and residential communities to improve the safety and convenience of users or personnel.
[0039] In the actual use of smart locks, pre-configuring the smart lock is the first and crucial step to use it correctly. However, in the process of configuring a batch of smart locks, users or implementers need to use the same number of IC cards to configure all batches of smart locks, which can easily lead to a waste of IC card resources.
[0040] Based on this, this invention proposes a smart lock configuration method that, building upon the existing method of configuring one smart lock with one IC card, enables the configuration of multiple smart locks using a single configuration card with regularly variable configuration information parameters. This expands the effective range of the configuration card, reducing the number of cards used and thus conserving configuration card resources. Specifically, the method reads the stored information in the configuration card to obtain the first floor and first room information corresponding to the previously configured smart lock. Using this information, it generates the second floor and second room information corresponding to the target smart lock to be configured. This second floor and second room information is then written to the target smart lock to achieve configuration. This allows for the configuration of multiple smart locks with a single configuration card, avoiding the need to create multiple configuration cards and conserving configuration card resources.
[0041] The following is combined Figures 1-2 This invention describes a smart lock configuration method provided by an embodiment of the invention. This method is applicable to configuring multiple smart locks. The method can be executed by a smart lock configuration device, which can be installed on the smart lock. The smart lock configuration device has the function of reading information from the configuration card and a write-back mechanism.
[0042] Figure 1 This is one of the flowcharts illustrating the smart lock configuration method provided in this embodiment of the invention, such as... Figure 1 As shown, the method may include:
[0043] Step 101: Read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and first room information corresponding to the previously configured smart lock.
[0044] For example, the first room information may include a room number or other identification information used to identify the room, and the first floor information may include a floor number or other identification information used to identify the floor.
[0045] The configuration card can be a customized configuration card or a commonly used IC card. The configuration card stores first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock. The preset rule information includes the number of rooms corresponding to each floor.
[0046] For example, when configuring smart locks for rooms in different buildings, the first configuration information may also include the first building number information corresponding to the previously configured smart lock. Similarly, the preset rule information includes not only the number of rooms corresponding to each floor, but also the number of floors corresponding to each building.
[0047] It should be understood that the aforementioned stored information is encrypted into fixed-length bytes using a fixed key and stored in a preset sector of the configuration card for easy reading by the smart lock.
[0048] Specifically, the smart lock mentioned in this application embodiment has read / write functionality. When a user or implementer swipes a configuration card in the sensing area of the smart lock, the smart lock responds to the swipe operation, causing the read / write device inside the smart lock to read the stored information in the configuration card, decrypt the data using a key, and then parse the decrypted data to obtain the stored information in the configuration card.
[0049] Step 102: Generate second configuration information based on the first configuration information and the preset rule information. The second configuration information includes the second floor information and the second room information corresponding to the target smart lock.
[0050] The preset rule information may include the number of rooms corresponding to each floor, or the number of floors corresponding to each building.
[0051] Specifically, after obtaining the first configuration information and preset rule information through step 101, the smart lock configuration device can process the first floor information and first room information in the first configuration information through the preset rule information to generate the second floor information and second room information corresponding to the target smart lock. The target smart lock is the smart lock that needs to be configured.
[0052] Furthermore, after generating the second configuration information, the user or implementer can be prompted to confirm the second configuration information by means of looping voice broadcast or screen display to confirm whether the second configuration information is correct.
[0053] It should be noted that before configuring the first smart lock, the initial configuration information stored in the configuration card consists of initial floor information and initial room information. This initial floor information and initial room information can correspond to the information of the first smart lock, allowing the first smart lock to be configured based on this initial floor information and initial room information. After configuration is complete, when configuring the second smart lock, the second smart lock will generate its corresponding second floor information and second room information based on the first smart lock's initial configuration information.
[0054] Step 103: Configure the target smart lock according to the second configuration information.
[0055] Specifically, after obtaining the second configuration information, it can be determined whether the second configuration information is correct. If the second configuration information is determined to be correct, it can be written into the configuration area of the target smart lock to complete the configuration of the target smart lock.
[0056] In practical applications, to ensure that users can promptly learn about the configuration status of the target smart lock, the configuration results can be output via voice broadcast or screen display after configuration is completed, thereby improving the user experience.
[0057] The smart lock configuration method provided in this embodiment of the invention
[0058] By reading the first configuration information stored in the configuration card, which includes the first floor information and the first room information corresponding to the previously configured smart lock, as well as preset rule information, and generating second configuration information including the second floor information and the second room information corresponding to the target smart lock based on the first configuration information and the preset rule information, the target smart lock can be configured based on the second configuration information. Therefore, this embodiment of the invention can generate the configuration information of the next smart lock to be configured based on the configuration information of the previously configured smart lock and the preset rule information. Using the same method, the configuration information of multiple smart locks to be configured can be obtained, thus allowing multiple smart locks to be configured continuously using the same configuration card, achieving the goal of configuring multiple smart locks continuously with one configuration card, thereby saving configuration card resources.
[0059] The following section provides a detailed explanation of how the second configuration information is generated based on the first configuration information and the preset rule information in step 102 above.
[0060] For example, the above-mentioned storage information also includes a first value, which is obtained by updating the second value after the previous configured smart lock is successfully configured; the second value is the value included in the storage information corresponding to the previous configured smart lock; the preset rule information includes the number of rooms corresponding to each floor.
[0061] When generating the second configuration information based on the first configuration information and the preset rule information, the second room information can be determined based on the first room information, the first value and the number of rooms corresponding to each floor, and the second floor information can be determined based on the first floor information, the first value and the number of rooms corresponding to each floor.
[0062] Specifically, before configuring the first smart lock, an initial value is stored in the configuration card, which can be 0. After configuring the first smart lock, this initial value can be updated, for example, to 1, and the updated value is stored in the configuration card. It should be understood that when configuring the second smart lock, the second smart lock will read the updated value (the first value) from the configuration card and determine the second configuration information based on this first value. After the second smart lock is configured, the first value will be updated again, for example, to 2, and this updated value will be stored in the configuration card. This allows the third smart lock to determine its own configuration information based on this updated value, and so on, thus determining the configuration information for all smart locks that need to be configured.
[0063] After obtaining the first configuration information and preset rule information, the smart lock configuration device analyzes the first configuration information and preset rule information to obtain the first floor information, the first room information, the first value, and the number of rooms corresponding to each floor. The second room information is obtained by calculating the first room information, the first value, and the number of rooms corresponding to each floor. Similarly, the second floor information can also be calculated based on the first floor information, the first value, and the number of rooms corresponding to each floor.
[0064] For example, taking the first room information as the first room number and the second room information as the second room number, the second room number = the first room number + the first value % the number of rooms corresponding to each floor. Similarly, taking the first floor information as the first floor number and the second floor information as the second floor number, Where % represents the remainder. This indicates rounding down to the nearest integer.
[0065] For example, taking the preset rule information including 4 rooms per floor, and the obtained first configuration information including 102 as an example, where 1 represents the first floor information and 2 represents the first room information, assuming the first value is 1, the second room information can be determined as 2 + 1%4 = 3, that is, the second room information is 3. Similarly, the second floor information is... Therefore, the determined second configuration information can be 103.
[0066] Based on the above description, if the smart locks corresponding to consecutive room numbers are configured, the second value can be updated by adding 1. If the smart locks corresponding to every other room are configured, for example, only the smart locks with odd or even room numbers are configured, the second value can be updated by adding 2, and so on.
[0067] In this embodiment, when the stored information includes a first value, the second room information can be determined based on the first room information, the first value, and the number of rooms corresponding to each floor, and the second floor information can be determined based on the first floor information, the first value, and the number of rooms corresponding to each floor. Thus, based on the dynamically updated first value, the second configuration information corresponding to the target smart lock that needs to be configured can be generated quickly and accurately based on the first configuration information corresponding to the previously configured smart lock in a simpler way.
[0068] For example, in Figure 1 Based on the illustrated embodiment, in order to further improve the accuracy of the target smart lock configuration, when configuring the target smart lock according to the second configuration information, the process includes: outputting the second configuration information; and configuring the target smart lock upon receiving a confirmation instruction, wherein the confirmation instruction is an instruction input by the user or implementer when confirming that the second configuration information is correct.
[0069] The confirmation command can be issued by the user by pressing a button on the target smart lock or touching the touch screen, or by swiping the configuration card again within a fixed time. There is no specific limitation on the method of issuing the confirmation command.
[0070] Specifically, after generating the second configuration information, the target smart lock can output this information via sound or text display to prompt the user or implementation personnel to confirm it. This facilitates comparison between the user and the house number, thus preventing configuration errors. Furthermore, once the user confirms the second configuration information is correct, they can send a confirmation command to the target smart lock, for example, by swiping the configuration card again. In this way, the target smart lock can write the second configuration information into the configuration area of the configuration card, thereby activating the target smart lock configuration and completing the configuration process.
[0071] Furthermore, after the target smart lock is configured, the user can be notified that the target smart lock has been successfully configured via voice announcement or text display.
[0072] In this embodiment, by verifying the output second configuration information, the target smart lock is configured only if the second configuration information is correct, thus avoiding incorrect configuration of the target smart lock and improving the accuracy of the target smart lock configuration.
[0073] Additionally, if no confirmation command is received within a preset time after the target smart lock outputs the second configuration information, a prompt message will be output to remind the user or implementer that the target smart lock configuration has failed.
[0074] The preset duration can be 5 seconds, 10 seconds, etc., and can be set and adjusted by the user or implementer according to the actual situation. No specific limitation is made here.
[0075] Specifically, after the second configuration information is output, if the user or implementer finds that the second configuration information is incorrect when confirming it, they can wait for a preset time, such as 5 seconds, or press a preset button on the target smart lock. If the target smart lock does not receive a confirmation command to confirm the correctness of the second configuration information within the preset time, such as not detecting the configuration card again within 5 seconds, or receiving other commands instead of confirmation commands, the target smart lock will automatically interrupt the configuration and output a configuration failure prompt message through voice broadcast or screen display. The prompt message may specifically be "Smart lock configuration failed!", etc.
[0076] In this embodiment, after the second configuration information is output, if no confirmation instruction is received within a preset time period, a prompt message is output to indicate that the target smart lock configuration has failed. This allows the user or implementer to end the configuration in advance if the target smart lock configuration fails, reducing unnecessary subsequent configuration operations and thereby improving the configuration efficiency and user experience of the smart lock.
[0077] Furthermore, based on the above embodiments, in order to achieve more efficient smart lock configuration, after configuring the target smart lock, the method further includes: updating the first value, and writing the updated first value and the second configuration information into the configuration card.
[0078] Specifically, after the user sends a confirmation command by swiping the smart card again, the target smart lock can confirm that the generated second configuration information is correct. At this point, to facilitate the configuration of the next smart lock, the first value in the stored information will be updated, such as by incrementing it by 1. The updated first value and the user-confirmed second configuration information will then be written into the configuration card. For example, the updated first value and second configuration information can be written into the configuration card by encrypting them into a fixed-byte length, providing a basis for generating the corresponding configuration information for the next smart lock.
[0079] It should be noted that when the stored information includes building numbers, if the target smart lock determines that the second room information and the second floor information in the second configuration information have reached the preset values, it means that the current configuration of the entire building has been completed. At this time, the building numbers in the stored information will be updated, such as by incrementing the building number by one, and the first value will be initialized to the initial value. The second room information, the second floor information, and the first value will also be initialized to the initial values. In this way, the configuration will start from the room corresponding to the updated building number in the next configuration.
[0080] In this embodiment, after the target smart lock is configured, the first value is updated, and the updated first value and second configuration information are written into the configuration card to provide a basis for generating the configuration information of the next smart lock. This allows the configuration card to continuously configure multiple smart locks, which not only saves configuration card resources but also improves the configuration efficiency of smart locks.
[0081] Based on any of the above embodiments, in order to improve the security of the target smart lock configuration, the stored information also includes the failure time; when generating the second configuration information according to the first configuration information and the preset rule information, the second configuration information can be generated according to the first configuration information and the preset rule information when the failure time is greater than the current time.
[0082] The expiration time can be understood as the final deadline for the smart lock to be configured effectively. Once this deadline is exceeded, the smart lock for that room will be unable to be configured. For example, this expiration time can be preset by the user or the implementer.
[0083] Specifically, if the preset failure time is later than the current time, it indicates that the target smart lock is in a valid configuration period. At this time, second configuration information can be generated based on the first configuration information and preset rule information. Further, if the failure time is less than or equal to the current time, it indicates that the target smart lock is in an invalid configuration period. At this time, the target smart lock can be locked. Further, to improve security, a camera can be activated to capture a face and issue a voice warning to alert the user of unauthorized configuration.
[0084] In this embodiment, by setting an expiration time in the stored information, and generating second configuration information based on the first configuration information and preset rule information when the expiration time is greater than the current time, the target smart lock can only be configured within the valid configuration period, thus avoiding illegal tampering with the configuration information of the target smart lock and improving the security of the target smart lock configuration.
[0085] The following example illustrates the configuration process of a smart lock, using an IC card as the configuration card, the room number as the room information, and the floor number as the floor information. Figure 2 This is a second flowchart illustrating the smart lock configuration method provided in an embodiment of the present invention, as shown below. Figure 2 As shown, the method includes:
[0086] Step 201: Encrypt the first building number, first floor, first room number, number of rooms corresponding to each floor, first value, and expiration time preset in the IC card into a fixed byte length information using a fixed key and store it in the preset sector of the IC card.
[0087] Step 202: The smart lock reads the stored information in the preset sector of the IC card, decrypts the data using a key, and then parses the decrypted data to obtain the first building number, the first floor, the first room number, the number of rooms corresponding to each floor, the first value, and the expiration time.
[0088] Step 203: Determine whether the failure time is greater than the current time.
[0089] Specifically, if the failure time is greater than the current time, then proceed to step 2041; otherwise, proceed to step 2042.
[0090] Step 2041: The smart lock begins generating the second floor number (first floor number) and second floor of the current room. The second room number is generated by combining the first room number with the first value and the number of rooms on each floor, and the information is then read aloud.
[0091] Step 2042: Voice broadcast: IC card invalid.
[0092] Step 205: Check if there is another card swipe within 5 seconds.
[0093] Specifically, if a card swipe is detected again within 5 seconds, proceed to step 2061; otherwise, proceed to step 2062.
[0094] Step 2061: Write the previously generated second building number, second floor, and second room number into the configuration area of the smart lock, and announce the successful configuration via voice. On this basis, increment the first value by one, and write the updated first value and the previously generated information into the IC card in a way that encrypts the information into a fixed-byte length.
[0095] Step 2062: Voice broadcast configuration failed.
[0096] The specific implementation methods and technical principles of each of the above steps can be referred to the relevant descriptions in the foregoing embodiments, and will not be repeated here.
[0097] In this embodiment, the smart lock reads the first building number, first floor, first room number, number of rooms corresponding to each floor, first value, and expiration time from the IC card. Based on the comparison between the expiration time and the current time of the smart lock, it ensures that the current configuration is in a valid configuration period, thereby preventing unauthorized tampering with the configuration information of the smart lock and improving the security of the smart lock configuration.
[0098] Furthermore, if the failure time is later than the current time, the smart lock generates a second building number, second floor number, and second room number. After this information is generated, it checks if the information is read from the IC card within 5 seconds to ensure the accuracy of the generated information. Then, the previously generated second building number, second floor number, and second room number are written into the configuration area of the current smart lock to achieve the current smart lock configuration. Thus, this embodiment of the invention can generate the current smart lock configuration information based on an IC card storing the configuration information of the previous smart lock. Using the same method, configuration information for multiple smart locks can be obtained, and then based on this configuration information, continuous configuration of multiple smart locks can be achieved, thus achieving the goal of continuously configuring multiple smart locks with a single IC card, thereby saving IC card resources.
[0099] Furthermore, after configuring the current smart lock, the first value is incremented by one to update it. The updated first value and second configuration information are then written to the IC card, providing a basis for the configuration information of the next smart lock. This allows one IC card to be used to configure multiple smart locks consecutively, saving IC card resources and improving the configuration efficiency of smart locks.
[0100] The following describes the smart lock configuration device provided in the embodiments of the present invention. The smart lock configuration device described below can be referred to in correspondence with the smart lock configuration method described above.
[0101] Figure 3 This is a schematic diagram of the structure of the smart lock configuration device provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the device includes:
[0102] The reading module 310 is used to read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock.
[0103] The generation module 320 is used to generate second configuration information based on the first configuration information and preset rule information. The second configuration information includes the second floor information and the second room information corresponding to the target smart lock.
[0104] Configuration module 330 is used to configure the target smart lock according to the second configuration information.
[0105] The smart lock configuration device provided in this embodiment of the invention reads first configuration information stored in the configuration card, including first floor information and first room information corresponding to the previously configured smart lock, as well as preset rule information, through the reading module 310. Based on the first configuration information and the preset rule information, the generation module 320 generates second configuration information including second floor information and second room information corresponding to the target smart lock. Then, based on this second configuration information, the configuration module 330 configures the target smart lock. Therefore, this embodiment of the invention can generate configuration information for the next smart lock to be configured based on a configuration card storing the configuration information of the previously configured smart lock and preset rules. Using the same method, configuration information for multiple smart locks to be configured can be obtained, and thus, based on this configuration information, multiple smart locks can be continuously configured, achieving the goal of continuously configuring multiple smart locks with one configuration card, thereby saving IC card resources.
[0106] Optionally, the stored information also includes a first value, which is obtained by updating the second value after the previous configured smart lock is successfully configured; the second value is the value included in the stored information corresponding to the previous configured smart lock; the preset rule information includes the number of rooms corresponding to each floor.
[0107] Module 320 is specifically used for:
[0108] Based on the first room information, the first value, and the number of rooms corresponding to each floor, determine the second room information;
[0109] Based on the information of the first floor, the first value, and the number of rooms corresponding to each floor, the information of the second floor is determined.
[0110] Optionally, the configuration module 330 is specifically used for:
[0111] Output the second configuration information;
[0112] Upon receiving a confirmation command, the target smart lock is configured. The confirmation command is the command entered by the user or implementer when confirming that the second configuration information is correct.
[0113] Optionally, the device further includes:
[0114] The update module is used to update the first value;
[0115] The write module is used to write the updated first value and second configuration information to the configuration card.
[0116] Optionally, the stored information also includes the failure time. The generation module 320 is specifically used for:
[0117] If the failure time is later than the current time, generate second configuration information based on the first configuration information and the preset rule information.
[0118] Optionally, the device further includes:
[0119] The output module is used to output a prompt message if no confirmation instruction is received within a preset time. The prompt message is used to remind the user or implementer that the target smart lock configuration has failed.
[0120] The apparatus of this embodiment can be used to execute the method of any embodiment in the smart lock configuration device side method embodiment. Its specific implementation process and technical effects are similar to those in the smart lock configuration device side method embodiment. For details, please refer to the detailed description in the smart lock configuration device side method embodiment, which will not be repeated here.
[0121] Figure 4 An example is a schematic diagram of the physical structure of a smart lock, such as... Figure 4 As shown, the smart lock may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440. The processor 410, communication interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logical instructions in the memory 430 to execute a smart lock configuration method. This method includes: reading stored information in a configuration card, the stored information including first configuration information and preset rule information. The first configuration information includes first floor information and first room information corresponding to a previously configured smart lock; generating second configuration information based on the first configuration information and preset rule information, the second configuration information including second floor information and second room information corresponding to the target smart lock; and configuring the target smart lock according to the second configuration information.
[0122] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, or the part that contributes to the prior art, or a part of the technical solution, 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 steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0123] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the smart lock configuration method provided by the above methods. The method includes: reading storage information in a configuration card, the storage information including first configuration information and preset rule information, the first configuration information including first floor information and first room information corresponding to a previously configured smart lock; generating second configuration information according to the first configuration information and preset rule information, the second configuration information including second floor information and second room information corresponding to a target smart lock; and configuring the target smart lock according to the second configuration information.
[0124] In another aspect, the present invention also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements a smart lock configuration method provided by the above methods. The method includes: reading storage information in a configuration card, the storage information including first configuration information and preset rule information, the first configuration information including first floor information and first room information corresponding to a previously configured smart lock; generating second configuration information according to the first configuration information and the preset rule information, the second configuration information including second floor information and second room information corresponding to a target smart lock; and configuring the target smart lock according to the second configuration information.
[0125] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0126] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A smart lock configuration method, characterized in that, Applied to a target smart lock, the method includes: Read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock. Based on the first configuration information and the preset rule information, second configuration information is generated, and the second configuration information includes the second floor information and the second room information corresponding to the target smart lock; Configure the target smart lock according to the second configuration information; The stored information also includes a first value, which is obtained by updating the second value after the previous configured smart lock is successfully configured; the second value is the value included in the stored information corresponding to the previous configured smart lock; the preset rule information includes the number of rooms corresponding to each floor; The step of generating second configuration information based on the first configuration information and preset rule information includes: The second room information is determined based on the first room information, the first value, and the number of rooms corresponding to each floor; The second floor information is determined based on the first floor information, the first value, and the number of rooms corresponding to each floor; After configuring the target smart lock, the method further includes: Update the first value, and write the updated first value and the second configuration information into the configuration card.
2. The smart lock configuration method according to claim 1, characterized in that, The step of configuring the target smart lock according to the second configuration information includes: Output the second configuration information; Upon receiving a confirmation command, the target smart lock is configured. The confirmation command is an instruction entered by the user when they confirm that the second configuration information is correct.
3. The smart lock configuration method according to claim 1 or 2, characterized in that, The stored information also includes the time of failure; The step of generating second configuration information based on the first configuration information and preset rule information includes: If the failure time is greater than the current time, the second configuration information is generated based on the first configuration information and the preset rule information.
4. The smart lock configuration method according to claim 2, characterized in that, After outputting the second configuration information, the method further includes: If the confirmation instruction is not received within a preset time period, a prompt message is output to remind the user that the target smart lock configuration has failed.
5. A smart lock configuration device, characterized in that, The device includes: The reading module is used to read the stored information in the configuration card. The stored information includes first configuration information and preset rule information. The first configuration information includes the first floor information and the first room information corresponding to the previously configured smart lock. The generation module is used to generate second configuration information based on the first configuration information and preset rule information. The second configuration information includes the second floor information and the second room information corresponding to the target smart lock. A configuration module is used to configure the target smart lock according to the second configuration information; The stored information also includes a first value, which is obtained by updating the second value after the previous configured smart lock is successfully configured; the second value is the value included in the stored information corresponding to the previous configured smart lock; the preset rule information includes the number of rooms corresponding to each floor; The step of generating second configuration information based on the first configuration information and preset rule information includes: The second room information is determined based on the first room information, the first value, and the number of rooms corresponding to each floor; The second floor information is determined based on the first floor information, the first value, and the number of rooms corresponding to each floor; After configuring the target smart lock, the first value is updated, and the updated first value and the second configuration information are written to the configuration card.
6. A smart lock, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the smart lock configuration method as described in any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the smart lock configuration method as described in any one of claims 1 to 4.
8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the smart lock configuration method as described in any one of claims 1 to 4.
Citation Information
Patent Citations
Comprehensive management type intelligent card computer door lock
CN1259614A