Smart locks, their control methods and devices, and readable storage media
By acquiring historical parameters and duration of smart lock buttons, a random code is determined and the user is notified to press the button with the fewest pressing marks. This solves the problem that smart lock button residue is easily cracked, thus improving security and reliability.
Patent Information
- Application Number
- CN202410897850.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-07-05
AI Technical Summary
The keypads of existing smart locks have obvious key residue due to long-term use, making them easy for others to crack, which reduces security and reliability.
By acquiring the historical press parameter values and duration of each button, a random code is determined, and the smart lock is controlled to notify the user to press the button with fewer press marks, thus balancing the usage frequency and residue of each button.
This improves the security and reliability of smart locks, preventing key residue from being used to crack passwords.
Smart Images

Figure CN118629112B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart lock technology, and more specifically, to a smart lock, its control method and device, and a readable storage medium. Background Technology
[0002] With the development of smart lock technology, the application of smart locks is becoming increasingly widespread, and the number of users is also growing. Smart locks generally feature multiple unlocking methods, such as facial recognition, fingerprint unlocking, password unlocking, and proximity card unlocking.
[0003] Among them, biometric unlocking methods such as facial recognition and fingerprint unlocking have certain requirements for the users. For example, the success rate of biometric recognition is affected by factors such as faint fingerprints of the elderly and children, and insufficient height. For certain groups of people, password unlocking remains a frequently used unlocking method.
[0004] However, the input areas of smart lock keypads are generally fixed. As users use the smart lock more, more residue accumulates on frequently used keys, making the wear and tear more obvious. This makes it easy for others to crack the unlocking code based on the residue on the keys, reducing the security and reliability of the smart lock. Summary of the Invention
[0005] The present invention aims to solve at least one of the technical problems existing in the prior art or related art.
[0006] Therefore, the first aspect of the present invention is to provide a control method for a smart lock.
[0007] The second aspect of the present invention is to propose another control method for smart locks.
[0008] The third aspect of the present invention is to provide a control device for a smart lock.
[0009] A fourth aspect of the present invention is to provide another control device for a smart lock.
[0010] The fifth aspect of the present invention is to provide a smart lock.
[0011] The sixth aspect of the present invention is to propose another smart lock.
[0012] The seventh aspect of the present invention is to provide a readable storage medium.
[0013] In view of this, according to a first aspect of the present invention, a control method for a smart lock is proposed. The smart lock includes a keypad, which includes multiple keys. The control method includes: acquiring historical press parameter values and historical press durations for each key; determining a random code based on the historical press parameter values and historical press durations for each key, the random code including N key symbols, the N key symbols corresponding to N target keys among the multiple keys, where N is a positive integer greater than 1; and controlling the smart lock to notify the user to press the N target keys.
[0014] In the smart lock control method provided in the first aspect of the present invention, during the user's use of the smart lock, such as before or after the user enters a password, the smart lock control device acquires the historical pressing duration and historical pressing parameter values of each key. Further, based on the acquired historical pressing duration and historical pressing parameter values of each key, the smart lock control device determines a random code containing N key symbols. Here, N is an integer greater than 1, and the N key symbols in the random code correspond to the N target keys on the keypad. Based on this, the smart lock control device controls the smart lock to notify the user to press the aforementioned N target keys before or after entering a password. In this way, when the user uses the smart lock, based on the user's previous pressing history of each key, the device notifies the user to press keys with fewer previous pressing marks, thereby balancing the pressing marks on each key and making the residual marks on each key similar. This prevents others from using residual marks to crack the password, improving the security and reliability of the smart lock.
[0015] The control method for the smart lock according to the present invention may further include the following additional technical features:
[0016] In some technical solutions, optionally, the historical press parameter value of each key is obtained, including: when the smart lock includes a pressure sensor, determining the historical pressure value of each key based on the sum of the pressure values when each key is pressed each time; and / or when the keypad is a capacitive screen, determining the historical capacitance difference value of each key based on the sum of the capacitance differences generated when each key is pressed each time; and / or recording the number of times each key is pressed to obtain the historical press count of each key.
[0017] In this technical solution, when a pressure sensor is installed in the smart lock, the control device detects and records the pressure value of each key pressed by the user each time they enter a password. It then calculates the sum of the pressure values of each key pressed in the past to obtain the historical pressure value of each key. Furthermore, when the keypad is a capacitive touchscreen, the control device detects and records the capacitance difference generated each time the user presses a key, and then calculates the sum of the capacitance differences generated each time the user presses a key, obtaining the historical capacitance difference of each key. Further, when the keypad is not a capacitive touchscreen and no pressure sensor is installed in the smart lock, the control device records the number of times each key is pressed by the user each time they enter a password, and then calculates the sum of the number of times each key is pressed in the past to obtain the historical number of presses for each key. This ensures the accuracy and timeliness of determining the historical press parameter values, improves the accuracy of subsequent control of the smart lock based on the historical press parameter values, and enhances the security and reliability of the smart lock.
[0018] In some technical solutions, optionally, a random code is determined based on the historical press parameter value and historical press duration of each key, including: sorting multiple keys in ascending order of historical press parameter value; sorting keys with the same historical press parameter value in ascending order of historical press duration to obtain a first sequence list; and determining the key symbols of the first N keys in the first sequence list as random codes.
[0019] In this technical solution, the smart lock's control device sorts multiple keys on the keypad according to their historical press parameter values in ascending order. For keys with the same historical press parameter values, the control device further sorts them according to their historical press duration in ascending order, thus obtaining a first sequence list. Based on this, the control device selects the first N keys from the first sequence list and assigns the corresponding key symbols to the aforementioned random codes. By setting the N key symbols corresponding to the N keys with the lightest press marks as random codes, when a user presses the corresponding keys based on the random codes, the usage frequency of each key on the keypad becomes similar. This balances the press marks on each key, resulting in similar residue marks on each key, thus preventing unauthorized individuals from exploiting the varying degrees of residue on different keys to crack the unlocking code, thereby improving the security and reliability of the smart lock.
[0020] In some technical solutions, optionally, controlling the smart lock to notify the user to press N target buttons includes: if each button is equipped with an illuminant, controlling the illuminants corresponding to the N target buttons to operate, so as to highlight the N target buttons and prompt the user to press the N target buttons; and / or if the smart lock includes a display screen, controlling the display screen to display prompt information, the prompt information being used to prompt the user to press the N target buttons; and / or if the smart lock includes a speaker, controlling the speaker to play the prompt information; and / or if the smart lock and the user terminal establish communication, controlling the smart lock to send prompt information to the user terminal.
[0021] In this technical solution, when each key has a corresponding light-emitting element, the smart lock's control device controls the light-emitting elements corresponding to N target keys to highlight the N target keys, thereby prompting the user to press them. Furthermore, if the smart lock has a display screen, the control device controls the display screen to show prompt information, prompting the user to press the N target keys. Furthermore, if the smart lock has a speaker, the control device controls the speaker to play prompt information, prompting the user to press the N target keys. Furthermore, when the user terminal establishes communication with the smart lock, the control device controls the smart lock to send prompt information to the user terminal, prompting the user to press the N target keys. Thus, in addition to the user entering a password through the smart lock, depending on the type and specific structure of the smart lock, appropriate notification methods are used to notify the user to press the N target keys on the keypad that show the least pressure marks. This ensures that each key is used at a similar frequency, thus balancing the pressure marks on each key in the keypad. This results in similar residue marks on each key, preventing others from using the varying degrees of pressure on different keys to crack the lock's password and improving the security and reliability of the smart lock.
[0022] In some technical solutions, optionally, the keypad is a touch panel, with multiple keys corresponding to multiple touch areas of the touch panel. The touch areas are used to display key symbols. The control method also includes: sorting the multiple keys according to the password information stored in the smart lock to obtain a second sequence list; and adjusting the key symbols displayed in the multiple touch areas according to the first and second sequence lists.
[0023] In this technical solution, the keypad is a touch panel, with multiple keys corresponding to multiple touch areas on the panel. Different touch areas display different key symbols, and the smart lock also stores at least one password. Before the user enters the password through the smart lock, the control device can sort the multiple keys according to the at least one password, obtaining a second sequence table. The second sequence table indicates the frequency of each key symbol appearing in the at least one password. Based on this, before the user enters the password, the control device can adjust the key symbols displayed in the multiple touch areas according to the determined second and first sequence tables. This balances the pressing marks on each key, making the residue marks on each key similar, thus preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0024] According to a second aspect of the present invention, another control method for a smart lock is proposed. The smart lock includes a touch panel, and multiple touch areas of the touch panel correspond to multiple buttons. The touch areas are used to display button symbols. The control method includes: acquiring historical press parameter values and historical press durations for each touch area; sorting the multiple buttons according to the historical press parameter values and historical press durations to obtain a first sequence list; sorting the multiple buttons according to password information stored in the smart lock to obtain a second sequence list, wherein buttons with the same position in the first sequence list and the second sequence list correspond to each other; adjusting the button symbol displayed in the first touch area corresponding to the first button in the first sequence list to the button symbol displayed in the second touch area corresponding to the second button in the second sequence list, wherein the second button corresponds to the first button.
[0025] In the control method for a smart lock provided in the second aspect of the present invention, before the user enters a password through the smart lock, the control device of the smart lock acquires the historical pressing duration and historical pressing parameter values of each key, i.e., each touch area, by the user. Further, the control device of the smart lock sorts the multiple keys corresponding to multiple touch areas according to the acquired historical pressing duration and historical pressing parameter values of each touch area, obtaining a first sequence list. The first sequence list indicates the degree of pressure marks on the multiple touch areas corresponding to the multiple keys. Further, the control device of the smart lock can sort the multiple keys according to the order of frequency of occurrence of the key symbol corresponding to each key in the at least one password information, from highest to lowest, obtaining a second sequence list. The second sequence list indicates the frequency of occurrence of the key symbol corresponding to each key in the at least one password information, and the keys in the second sequence list correspond to the keys in the same position in the first sequence list. Based on this, before the user enters a password through the smart lock, the control device of the smart lock adjusts the key symbol displayed in the first touch area corresponding to the first key in the first sequence list to the key symbol displayed in the second touch area corresponding to the second key in the second sequence list. The first button corresponds to the second button. This design balances the pressure marks on each button, resulting in similar residue on each button. This prevents unauthorized individuals from using residue to crack the password, thus improving the security and reliability of the smart lock.
[0026] The control method for the smart lock according to the present invention may further include the following additional technical features:
[0027] In some technical solutions, optionally, multiple buttons are sorted according to historical press parameter values and historical press durations to obtain a first sequence list, including: sorting multiple buttons in ascending order of historical press parameter values; and sorting buttons with the same historical press parameter values in ascending order of historical press durations to obtain the first sequence list.
[0028] In this technical solution, the smart lock's control device sorts multiple buttons corresponding to multiple touch areas according to the historical press parameter values of each touch area in ascending order. For touch areas with the same historical press parameter values, the control device further sorts the buttons corresponding to the touch areas according to the historical press duration of each touch area in ascending order, thus obtaining a first sequence list. This ensures the accuracy of the first sequence list determination, improves the accuracy of subsequent control of the smart lock based on the first sequence list, and enhances the security and reliability of the smart lock.
[0029] Optionally, in some technical solutions, the smart lock also includes an image sensor. The image sensor is used to acquire user images and sort multiple keys according to the password information stored in the smart lock to obtain a second sequence list. This includes: identifying the user's identity based on the user image; selecting a target password from the password information based on the user's identity; and sorting the multiple keys according to the frequency of each key symbol in the target password from highest to lowest to obtain the second sequence list.
[0030] In this technical solution, the smart lock is also equipped with an image sensor to capture user images. Based on this, the smart lock's control device identifies the user using the captured image, and then, based on the identified user identity, determines the password the user is about to enter, selecting the target password corresponding to the user's identity from at least one password option. Further, the smart lock's control device sorts the multiple keys according to the frequency of their corresponding key symbols in the target password, from highest to lowest, to obtain a second sequence list. In this way, even when the smart lock stores a large amount of password information, it can accurately change the key symbols displayed in the touch area without traversing all password information, thus improving the smart lock's operating speed.
[0031] In some technical solutions, the control method may optionally include: determining a random code based on a first sequence list, the random code including N key symbols, where N is a positive integer greater than 1; and notifying the user to press the N touch areas corresponding to the N key symbols.
[0032] In this technical solution, after obtaining the aforementioned first sequence list, the smart lock's control device can further select the first N buttons in the first sequence list and determine the button symbols corresponding to these N buttons as random codes. Further, the smart lock's control device controls the smart lock's operation based on the determined random codes, notifying the user to press the N touch areas corresponding to the aforementioned N button symbols. In this way, in addition to the user entering the password through the smart lock, notifying the user to press the first N touch areas with lighter pressure marks balances the pressure marks on each touch area, making the residual marks left on each touch area similar. This prevents others from using the varying degrees of pressure on different touch areas to crack the unlocking password, thus improving the security and reliability of the smart lock.
[0033] According to a third aspect of the present invention, a control device for a smart lock is provided. The smart lock includes a keypad with multiple keys. The control device includes: a first acquisition unit for acquiring historical press parameter values and historical press durations for each key; a first processing unit for determining a random code based on the historical press parameter values and historical press durations for each key, the random code including N key symbols, the N key symbols corresponding to N target keys among the multiple keys, where N is a positive integer greater than 1; and a first control unit for controlling the smart lock to notify the user to press the N target keys.
[0034] The control device for a smart lock provided in the third aspect of this invention includes a first acquisition unit, a first processing unit, and a first control unit. During user operation of the smart lock, such as before or after the user enters a password, the first acquisition unit acquires the historical pressing duration and historical pressing parameter values of each key. Further, the first processing unit determines a random code containing N key symbols based on the acquired historical pressing duration and historical pressing parameter values of each key. Here, N is an integer greater than 1, and the N key symbols in the random code correspond to the N target keys on the keypad. Based on this, the first control unit controls the smart lock to notify the user to press the aforementioned N target keys before or after entering the password. In this way, when the user uses the smart lock, based on the user's past pressing history of each key, the system notifies the user to press keys with fewer previous pressing marks, thereby balancing the pressing marks on each key and making the residual marks on each key similar. This prevents others from using residual marks to crack the password, improving the security and reliability of the smart lock.
[0035] According to a fourth aspect of the present invention, another control device for a smart lock is provided. The smart lock includes a touch panel, and multiple touch areas of the touch panel correspond to multiple buttons. The touch areas are used to display button symbols. The control device includes: a second acquisition unit, used to acquire historical press parameter values and historical press durations for each touch area; a second processing unit, used to sort the multiple buttons according to the historical press parameter values and historical press durations to obtain a first sequence list; the second processing unit is further used to sort the multiple buttons according to password information stored in the smart lock to obtain a second sequence list, wherein buttons with the same position in the first sequence list and the second sequence list correspond to each other; the second processing unit is further used to adjust the button symbol displayed in the first touch area corresponding to the first button in the first sequence list to the button symbol displayed in the second touch area corresponding to the second button in the second sequence list, wherein the second button corresponds to the first button.
[0036] The control device for a smart lock provided in the fourth aspect of the present invention includes a second acquisition unit and a second processing unit. Before the user inputs a password through the smart lock, the second acquisition unit acquires the historical pressing duration and historical pressing parameter values of each key, i.e., each touch area. Further, the second processing unit sorts the multiple keys corresponding to the multiple touch areas according to the acquired historical pressing duration and historical pressing parameter values of each touch area to obtain a first sequence list. The first sequence list indicates the degree of pressure marks on the multiple touch areas corresponding to the multiple keys. Further, the second processing unit can sort the multiple keys according to the order of frequency of occurrence of the key symbol corresponding to each key in the at least one password information, from highest to lowest, to obtain the second sequence list. The second sequence list indicates the frequency of occurrence of the key symbol corresponding to each key in the at least one password information, and the keys in the second sequence list correspond to the keys in the first sequence list. Based on this, before the user enters the password through the smart lock, the second processing unit adjusts the key symbol displayed in the first touch area corresponding to the first key in the first sequence table to the key symbol displayed in the second touch area corresponding to the second key in the second sequence table. The first key and the second key correspond to each other. This balances the pressing marks on each key, making the residue marks on each key similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0037] According to a fifth aspect of the present invention, a smart lock is provided, comprising: a keypad including multiple keys; a pressure sensor connected to the keypad, the pressure sensor being used to detect the pressure value when each of the multiple keys is pressed; a processor being used to acquire the historical pressing duration of each key, and to determine the historical pressure value of each key based on the sum of the pressure values of each key being pressed each time; to determine a random code based on the historical pressure value and the historical pressing duration of each key, the random code including N key symbols, the N key symbols corresponding to N target keys among the multiple keys, where N is a positive integer greater than 1; and to control the smart lock to notify the user to press the N target keys.
[0038] Specifically, the smart lock provided in the fifth aspect of the present invention includes a keypad, a pressure sensor, and a processor. The keypad includes multiple keys, each corresponding to a different key symbol.
[0039] Furthermore, a pressure sensor is connected to the keypad, and the pressure sensor is used to detect the pressure value of each of the multiple keys each time it is pressed by the user.
[0040] Furthermore, during the operation of the smart lock, the processor acquires the historical press duration of each button, determines the historical pressure value of each button based on the sum of the pressure values of each button pressed each time, and determines a random code based on the historical pressure value and historical press duration of each button. The random code includes N button symbols, which correspond to N target buttons among multiple buttons, where N is a positive integer greater than 1. The processor then controls the smart lock to notify the user to press the N target buttons. In this way, when the user uses the smart lock, it can notify the user to press the buttons with fewer previous press marks based on the user's past press history. This balances the press marks on each button, making the residue marks on each button similar, thus preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0041] The smart lock according to the present invention may also have the following additional technical features:
[0042] In some technical solutions, optionally, the keypad is a touch panel, with multiple keys corresponding to multiple touch areas of the touch panel. The touch areas are used to display key symbols. A pressure sensor is specifically used to detect the pressure value when each touch area is pressed. The smart lock also includes: a memory connected to a processor, which stores password information; the processor is also used to: acquire the historical pressure value and historical press duration of each touch area; sort the multiple keys according to the historical pressure value and historical press duration to obtain a first sequence list; sort the multiple keys according to the password information to obtain a second sequence list, with keys of the same position in the first and second sequence lists corresponding to each other; and adjust the key symbol displayed in the first touch area corresponding to the first key in the first sequence list to the key symbol displayed in the second touch area corresponding to the second key in the second sequence list, with the second key corresponding to the first key.
[0043] In this technical solution, the aforementioned keypad can specifically be a touch panel, and the aforementioned multiple keys correspond to multiple touch areas on the touch panel. Different touch areas are used to display different key symbols, and the pressure sensor is specifically used to detect the pressure value of each touch area when it is pressed by the user each time.
[0044] Furthermore, the smart lock also includes a memory connected to the processor, which stores at least one password.
[0045] During the operation of the smart lock, the processor can also acquire the historical pressure value and historical press duration of each touch area; sort multiple buttons according to the historical pressure value and historical press duration to obtain a first sequence table; sort multiple buttons according to the password information to obtain a second sequence table, with buttons of the same position in the first and second sequence tables corresponding to each other; adjust the button symbol displayed in the first touch area corresponding to the first button in the first sequence table to the button symbol displayed in the second touch area corresponding to the second button in the second sequence table, so that the second button corresponds to the first button. This balances the press marks on each button, making the residue marks left on each button similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock. Furthermore, changing the button symbols displayed in the touch area ensures that the user touches different positions on the touch panel each time they enter the password, reducing the risk of password leakage and further improving the security and reliability of the smart lock. In addition, for smart locks using physical buttons, changing the button symbols displayed in the touch area ensures that each button is used at a similar frequency, thereby extending the lifespan of the smart lock.
[0046] In some technical solutions, the smart lock may optionally include an image sensor for capturing user images.
[0047] In this technical solution, the smart lock is also equipped with an image sensor, which is used to capture user images.
[0048] According to a sixth aspect of the present invention, another smart lock is proposed, comprising a processor and a memory, wherein the memory stores a program or instructions executable on the processor, and when the program or instructions are executed by the processor, implement the steps of the control method of the smart lock as described in any of the above-described technical solutions. Therefore, the smart lock proposed in the sixth aspect of the present invention possesses all the beneficial effects of the control method of the smart lock in any of the above-described technical solutions, which will not be elaborated further here.
[0049] According to a seventh aspect of the present invention, a readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the control method of the smart lock as described in any of the above-described technical solutions. Therefore, the readable storage medium proposed in the seventh aspect of the present invention possesses all the beneficial effects of the control method of the smart lock in any of the above-described technical solutions, and will not be elaborated further here.
[0050] Additional aspects and advantages of the invention will become apparent in the following description or may be learned by practice of the invention. Attached Figure Description
[0051] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which:
[0052] Figure 1 One of the flowcharts of the control method for a smart lock according to an embodiment of the present invention is shown;
[0053] Figure 2 A second schematic flowchart of the control method for a smart lock according to an embodiment of the present invention is shown;
[0054] Figure 3 The third schematic flowchart of the control method of the smart lock according to an embodiment of the present invention is shown;
[0055] Figure 4 The fourth flowchart illustrates the control method of the smart lock according to an embodiment of the present invention.
[0056] Figure 5 The fifth flowchart illustrates the control method of the smart lock according to an embodiment of the present invention;
[0057] Figure 6 One of the schematic diagrams illustrating the effect of the control method of the smart lock according to an embodiment of the present invention is shown;
[0058] Figure 7 This is a second schematic diagram illustrating the effect of the control method for the smart lock according to an embodiment of the present invention;
[0059] Figure 8 The third schematic diagram illustrates the effect of the control method of the smart lock according to an embodiment of the present invention;
[0060] Figure 9 The sixth schematic flowchart illustrates the control method of the smart lock according to an embodiment of the present invention;
[0061] Figure 10 This invention illustrates one of the structural block diagrams of the control device for a smart lock according to an embodiment of the present invention;
[0062] Figure 11 A second structural block diagram of the control device for the smart lock according to an embodiment of the present invention is shown;
[0063] Figure 12 One of the structural block diagrams of the smart lock according to an embodiment of the present invention is shown;
[0064] Figure 13 The second structural block diagram of the smart lock according to an embodiment of the present invention is shown. Detailed Implementation
[0065] To better understand the above-mentioned objectives, features, and advantages of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that, unless otherwise specified, the embodiments of the present invention and the features thereof can be combined with each other.
[0066] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and therefore the scope of protection of the invention is not limited to the specific embodiments disclosed below.
[0067] The following is combined Figures 1 to 13 The present application provides a detailed description of the smart lock, its control method and device, and the readable storage medium provided in the embodiments of this application through specific implementation methods and application scenarios.
[0068] In one embodiment of the present invention, such as Figure 1 As shown, a control method for a smart lock is proposed. The smart lock is equipped with a keypad, which includes multiple keys. Based on this, the control method specifically includes the following steps 102 to 106:
[0069] Step 102: Obtain the historical press parameter value and historical press duration for each button;
[0070] Step 104: Determine a random code based on the historical press parameter value and historical press duration of each button. The random code includes N button symbols, and the N button symbols correspond to N target buttons among multiple buttons.
[0071] Step 106: Control the smart lock to notify the user to press N target buttons;
[0072] Where N is a positive integer greater than 1.
[0073] The executing entity of the smart lock control method provided in this embodiment can be the smart lock itself, or it can be the control device of the smart lock, or it can be determined according to actual usage requirements, and no specific limitation is made here. In order to more clearly describe the smart lock control method provided in this embodiment, the following description takes the control device of the smart lock as the executing entity of the smart lock control method in this embodiment.
[0074] The smart lock control method provided in this embodiment is used to solve the problem that when a user uses a password to unlock a smart lock for a long time, others can use the residue left on the smart lock to crack the unlocking password.
[0075] The smart lock is equipped with a keypad, which includes multiple buttons, each corresponding to a different key symbol.
[0076] Based on this, in the smart lock control method provided in this embodiment, during the user's use of the smart lock, such as before or after the user enters a password, the smart lock control device acquires the historical pressing duration and historical pressing parameter values of each key. Further, the smart lock control device analyzes the user's past pressing behavior of each key based on the acquired historical pressing duration and historical pressing parameter values, determines the severity of the pressing marks on each key, and then determines a random code containing N key symbols based on the severity of the pressing marks on each key. Here, N is an integer greater than 1, and the N key symbols in the random code correspond to the N target keys on the keypad. Based on this, the smart lock control device controls the smart lock to notify the user to press the aforementioned N target keys before or after entering a password. In this way, when a user uses the smart lock, the system can notify the user to press the buttons with fewer previous press marks based on the user's past experience with each button. This balances the press marks on each button, making the residue marks on each button similar, thus preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0077] In the process of the smart lock's control device acquiring the user's historical pressing duration and historical pressing parameter values for each button, each time the user enters a password using the smart lock, the control device detects and records the pressing duration and pressing parameter values of each button pressed by the user, and then calculates the sum of the user's previous pressing durations for each button to obtain the historical pressing duration of each button, and calculates the sum of the user's previous pressing parameter values for each button to obtain the historical pressing parameter value of each button.
[0078] After calculating the historical press duration and historical press parameter values, during subsequent password input by the user using the smart lock, the historical press duration and historical press parameter values of each button are updated based on the actual press situation of each button.
[0079] Furthermore, the magnitude of the aforementioned pressing parameter values can be used to indicate the intensity and / or frequency of the user's pressing of the buttons. Depending on the type and specific construction of the smart lock, the aforementioned pressing parameter values include, but are not limited to: the pressure value of each button when pressed by the user, the capacitance difference generated when each button is pressed by the user, and the number of times each button is pressed by the user. Those skilled in the art can select the specific type of the aforementioned pressing parameter values according to the actual situation, and no specific limitations are imposed here.
[0080] Furthermore, the N key symbols in the aforementioned random code correspond to the N key symbols on the keypad that leave the lightest pressing marks. In other words, the aforementioned N target keys are the N keys on the keypad that leave the lightest pressing marks, meaning they are the N keys on the keypad that are used less frequently. Thus, in addition to the user entering the password through the smart lock, additionally instructing the user to press the N target keys on the keypad that leave the lightest pressing marks ensures that the usage frequency of each key is similar. This balances the pressing marks on each key on the keypad, making the residual marks left on each key similar, thereby preventing others from using the varying degrees of pressure on different keys to crack the unlocking password, and improving the security and reliability of the smart lock.
[0081] In some embodiments of the present invention, optionally, the step of obtaining the historical press parameter value of each button described above may specifically include the following steps 108, and / or 110, and / or 112:
[0082] Step 108: Determine the historical pressure value of each button based on the sum of the pressure values when each button is pressed each time;
[0083] Step 110: Determine the historical capacitance difference of each button based on the sum of the capacitance differences generated each time the button is pressed;
[0084] Step 112: Record the historical number of times each button has been pressed.
[0085] In this embodiment, when a pressure sensor is provided in the smart lock, the aforementioned pressing parameter value can specifically be the pressure value of each button when pressed by the user, and the aforementioned historical pressing parameter value can specifically be the historical pressure value of each button. Based on this, during the process of the smart lock's control device acquiring the user's historical pressing parameter value for each button, each time the user enters a password using the smart lock, the control device detects and records the pressure value of each button pressed by the user each time, and then calculates the sum of the user's previous pressure values for each button to obtain the historical pressure value of each button.
[0086] Furthermore, when the keypad is a capacitive touchscreen, the aforementioned pressing parameter value can specifically be the capacitance difference generated when each key is pressed by the user, and the aforementioned historical pressing parameter value can specifically be the historical capacitance difference of each key. Based on this, during the process of the smart lock's control device acquiring the user's historical pressing parameter value for each key, each time the user enters a password using the smart lock, the control device detects and records the capacitance difference generated each time the user presses each key, and then calculates the sum of the capacitance differences generated by the user's previous key presses to obtain the historical capacitance difference of each key.
[0087] Furthermore, when the keypad is not a capacitive touchscreen and the smart lock does not have a pressure sensor, the aforementioned press parameter value can specifically be the number of times each key is pressed by the user, and the aforementioned historical press parameter value can specifically be the historical number of times each key is pressed. Based on this, during the process of the smart lock's control device acquiring the user's historical press parameter value for each key, the control device records the number of times each key is pressed by the user each time the user enters a password using the smart lock, and then calculates the sum of the number of times the user has pressed each key in the past, thus obtaining the historical number of presses for each key.
[0088] Thus, each time a user enters a password using the smart lock, the system employs a corresponding detection method based on the lock's type and specific construction to detect and record the pressure parameter values of each button press in real time. This data is then used to sum the historical pressure parameter values for each button, resulting in a historical value for each button. This ensures the accuracy and timeliness of determining historical pressure parameter values, improving the accuracy of subsequent smart lock control based on these values and enhancing the lock's security and reliability.
[0089] In some embodiments of the present invention, optionally, the step of determining the random code based on the historical press parameter value and historical press duration of each key may specifically include the following steps 114 to 118:
[0090] Step 114: Sort the multiple buttons according to the historical press parameter values in ascending order;
[0091] Step 116: Sort the keys with the same historical press parameter value in ascending order of historical press duration to obtain the first sequence list;
[0092] Step 118: Determine the key symbols of the first N keys in the first sequence list as random codes.
[0093] In this embodiment, during the process of the smart lock's control device determining the random code based on the historical pressing duration and historical pressing parameter value of each key, specifically, the smart lock's control device sorts multiple keys in the keypad using the historical pressing parameter value of each key as a first factor and the historical pressing duration of each key as a second factor to obtain a first sequence list.
[0094] Specifically, the smart lock's control device sorts the keys on the keypad according to their historical press parameter values from smallest to largest. For keys with the same historical press parameter value, the control device further sorts them according to their historical press duration from smallest to largest, thus obtaining a first sequence list. This first sequence list indicates the degree of pressure left by the keys on the keypad; the key at the beginning of the first sequence list leaves the lightest pressure mark, and the key at the end leaves the heaviest. Based on this, the smart lock's control device selects the first N keys from the first sequence list and assigns their corresponding key symbols as the aforementioned random code. By setting the N key symbols corresponding to the N keys with the lightest pressure marks as random codes, when a user presses the corresponding key based on the random code, the usage frequency of each key on the keypad becomes similar, thus balancing the pressure marks and ensuring that the residue left on each key is similar. This prevents unauthorized individuals from exploiting the varying degrees of pressure on different keys to crack the unlocking code, improving the security and reliability of the smart lock.
[0095] Wherein, N is a positive integer, and those skilled in the art can set the specific value of N according to the actual situation, without making specific restrictions here.
[0096] For example, with the historical pressure parameter value for each key as the historical pressure value, N is set to 3. Using the historical pressure value of each key as the first factor and the historical press duration of each key as the second factor, multiple keys on the keypad are sorted to obtain a first sequence list, as shown in Table 1 below. In this case, N is 3, meaning the length of the random code is 3. The first three keys in the first sequence list are selected, and the three key symbols corresponding to these three keys are determined as the random code, resulting in the random code "506".
[0097] Table 1: First Sequence List
[0098] Historical pressure value 3N 5N 8N 8N 10N 10N 13N 15N 20N 20N Historical press duration 2S 6S 3S 4S 7S 9S 15S 8S 8S 10S button 5 0 6 1 2 9 8 3 7 4
[0099] In the first sequence list, N represents the unit of force "Newton" and S represents the unit of time "second".
[0100] In practical applications, the control device of a smart lock can also sort multiple keys on the keypad using the historical press duration of each key as the first factor and the historical press parameter value of each key as the second factor to obtain a first sequence list. That is, the control device can also sort multiple keys on the keypad in ascending order of historical press duration. For keys with the same historical press duration, the control device further sorts them in ascending order of historical press parameter value to obtain the first sequence list.
[0101] In some embodiments of the present invention, step 106 may optionally include steps 120, 122, 124, and 126 as described below:
[0102] Step 120: Control the light-emitting components corresponding to the N target buttons to work;
[0103] Step 122: Control the display screen to show the prompt message;
[0104] Step 124: Control the speaker to play a prompt message;
[0105] Step 126: Control the smart lock to send a prompt message to the user terminal;
[0106] The prompt message is used to guide the user to press N target buttons.
[0107] In this embodiment, during the process of the smart lock's control device instructing the user to press the aforementioned N target buttons, if each button is equipped with a corresponding light-emitting element, that is, if each button can provide light feedback independently, during the user's use of the smart lock, such as before or after the user enters the password, the smart lock's control device controls the light-emitting elements corresponding to the N target buttons to work, so as to highlight the N target buttons and prompt the user to press the aforementioned N target buttons.
[0108] Furthermore, when a display screen is provided on the smart lock, during the user's use of the smart lock, such as before or after the user enters the password, the control device of the smart lock controls the display screen to display prompt information, so as to prompt the user to press the aforementioned N target buttons.
[0109] Furthermore, if a speaker is installed inside the smart lock, during the user's use of the smart lock, such as before or after the user enters the password, the smart lock's control device controls the speaker to play a prompt message, so as to prompt the user to press the aforementioned N target buttons.
[0110] Furthermore, when the user terminal establishes communication with the smart lock, during the user's use of the smart lock, such as before or after the user enters the password, the smart lock's control device controls the smart lock to send a prompt message to the user terminal, so as to prompt the user to press the aforementioned N target buttons through the prompt message.
[0111] In this way, in addition to the user entering the password through the smart lock, based on the different types and specific structures of the smart lock, a corresponding notification method is used to instruct the user to press N additional target keys on the keypad that have the lightest pressing marks. This ensures that the usage frequency of each key is similar, thereby balancing the pressing marks on each key and making the residue marks left on each key similar. This prevents others from using the varying degrees of pressure on different keys to crack the unlocking password, thus improving the security and reliability of the smart lock.
[0112] For example, assuming the user password is "244295", the frequently used keys on the smart lock are "2", "4", "5", and "9", while the remaining keys, "0", "1", "3", "6", "7", and "8", are used less frequently. In this case, if the specific value of N is 3, the smart lock's control device can determine the random code as "168". Based on this, during the user's use of the smart lock, if... Figure 6 As shown, the control device of the smart lock, based on a determined random code, controls the smart lock to highlight the buttons "1", "6" and "8" corresponding to the random code.
[0113] In some embodiments of the present invention, optionally, the aforementioned keypad may specifically be a touch panel, with multiple keys corresponding to multiple touch areas on the touch panel, and different touch areas used to display different key symbols. The smart lock also stores password information. Based on this, the aforementioned control method may further include the following steps 128 and 130:
[0114] Step 128: Sort the multiple keys according to the password information to obtain the second sequence list;
[0115] Step 130: Adjust the button symbols displayed in multiple touch areas according to the first sequence table and the second sequence table.
[0116] In this embodiment, the keypad can be a touch panel, and the multiple keys correspond to multiple touch areas on the touch panel. Different touch areas are used to display different key symbols. The smart lock also stores at least one password.
[0117] Based on this, before the user enters the password through the smart lock, the control device of the smart lock can also sort multiple keys according to the above-mentioned at least one password information to obtain a second sequence table. The second sequence table indicates the frequency of the key symbol corresponding to each key appearing in the above-mentioned at least one password information; that is, the second sequence table reflects the probability of the user pressing each key, i.e., each touch area, subsequently. Based on this, before the user enters the password through the smart lock, the control device of the smart lock can adjust the key symbols displayed in the multiple touch areas according to the determined second sequence table and the first sequence table. This involves adjusting the key symbols displayed in touch areas with lighter historical press marks to those corresponding to touch areas with a higher probability of being pressed subsequently, and adjusting the key symbols displayed in touch areas with heavier historical press marks to those corresponding to touch areas with a lower probability of being pressed subsequently. Thus, by varying the intensity of historical pressure marks on each touch area and the likelihood of that area being pressed again, changing the button symbols displayed within those areas increases the likelihood of subsequent presses on touch areas with lighter historical pressure marks and decreases the likelihood of subsequent presses on touch areas with heavier historical pressure marks. This balances the pressure marks on each button, resulting in similar residue marks on each button, thereby preventing unauthorized individuals from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0118] Furthermore, by changing the key symbols displayed in the touch area, users can touch different positions on the keypad each time they enter a password, reducing the risk of password leakage and further improving the security and reliability of the smart lock.
[0119] Furthermore, for smart locks using physical buttons, changing the button symbols displayed in the touch area can ensure that each button is used at a similar frequency, thereby extending the lifespan of the smart lock. For example, assuming each button has a lifespan of 100,000 uses, if the same button is used every time, the smart lock's lifespan is 100,000 uses. However, by changing the button symbols displayed in the touch area, each button can be used more evenly, extending the smart lock's lifespan to (100,000 × number of buttons) uses.
[0120] The smart lock's control device can sort multiple buttons according to their frequency of appearance in at least one password information, from highest to lowest, that is, according to the probability of the user subsequently pressing each button (i.e., each touch area), to obtain the second sequence list. Based on this, buttons in the second sequence list and buttons in the same position in the first sequence list can correspond to each other. Specifically, during the process of the smart lock's control device changing the button symbols displayed in the touch area, the control device can adjust the button symbol displayed in the touch area corresponding to any button in the first sequence list to the button symbol displayed in the touch area corresponding to a button in the same position in the second sequence list.
[0121] For example, in the first sequence list, according to the order of the historical pressing marks of each key from lightest to heaviest, the multiple keys on the keypad are ordered as: "3", "9", "1", "0", "8", "4", "5", "7", "6", and "2". Further, the smart lock stores the password: 162758. That is, the frequently used keys on the smart lock are "1", "2", "5", "6", "7", and "8", while the less frequently used keys are "0", "3", "4", and "9". Based on this, in the second sequence list, according to the order of the frequency of the key symbol corresponding to each key in the above password from highest to lowest, the multiple keys on the keypad can be ordered as: "1", "2", "5", "6", "7", "8", "0", "3", "4", and "9". Based on this, before the user enters the password using the smart lock, such as... Figure 7 As shown, based on the second sequence list and the first sequence list, the key symbol displayed in the touch area corresponding to key "3" is adjusted from 3 to 1, the key symbol displayed in the touch area corresponding to key "9" is adjusted from 9 to 2, the key symbol displayed in the touch area corresponding to key "1" is adjusted from 1 to 5, the key symbol displayed in the touch area corresponding to key "0" is adjusted from 0 to 6, the key symbol displayed in the touch area corresponding to key "8" is adjusted from 8 to 7, the key symbol displayed in the touch area corresponding to key "4" is adjusted from 4 to 8, the key symbol displayed in the touch area corresponding to key "5" is adjusted from 5 to 0, the key symbol displayed in the touch area corresponding to key "7" is adjusted from 7 to 3, the key symbol displayed in the touch area corresponding to key "6" is adjusted from 6 to 4, and the key symbol displayed in the touch area corresponding to key "2" is adjusted from 2 to 9. In this way, after the user enters the password, the pressing marks on each key can be balanced, making the residue marks left on each key similar.
[0122] In summary, such as Figure 2As shown, the control method for the smart lock provided in this embodiment of the invention may specifically include the following steps 302 to 318:
[0123] Step 302: A button press has been detected.
[0124] Step 304: Record the pressure value and duration of the button being pressed;
[0125] Step 306: Determine the historical pressure value of the button based on the total pressure value of the button being pressed, and determine the historical pressing duration of the button based on the total pressing duration of the button being pressed.
[0126] Step 308: Determine if the user's current operation on the smart lock has ended. If yes, proceed to step 310; otherwise, proceed to step 302.
[0127] Step 310: The smart lock has been activated again.
[0128] Step 312: Sort all buttons in ascending order of historical pressure values;
[0129] Step 314: Sort the buttons with the same historical pressure value in ascending order of historical press duration to obtain the first sequence list;
[0130] Step 316: Select the key symbols corresponding to the first N keys in the first sequence list as random codes;
[0131] Step 318 prompts the user to press the N buttons corresponding to the random code.
[0132] In some embodiments of the present invention, optionally, such as Figure 3 As shown, another control method for a smart lock is proposed. The smart lock includes a touch panel, with multiple touch areas corresponding to multiple buttons. Different touch areas display different button symbols, and the smart lock also stores password information. Based on this, the control method specifically includes the following steps 202 to 208:
[0133] Step 202: Obtain the historical press duration and historical press parameter values for each touch area;
[0134] Step 204: Sort multiple buttons according to historical press duration and historical press parameter values to obtain the first sequence list;
[0135] Step 206: Sort the multiple keys according to the password information to obtain the second sequence list;
[0136] Step 208: Adjust the button symbol displayed in the first touch area corresponding to the first button in the first sequence table to the button symbol displayed in the second touch area corresponding to the second button in the second sequence table;
[0137] The second sequence table corresponds to the keys in the same position in the first sequence table, and the first key corresponds to the second key.
[0138] The executing entity of the smart lock control method provided in this embodiment can be the smart lock itself, or it can be the control device of the smart lock, or it can be determined according to actual usage requirements, and no specific limitation is made here. In order to more clearly describe the smart lock control method provided in this embodiment, the following description takes the control device of the smart lock as the executing entity of the smart lock control method in this embodiment.
[0139] The smart lock control method provided in this embodiment is used to solve the problem that when a user uses a password to unlock a smart lock for a long time, others can use the residue left on the smart lock to crack the unlocking password.
[0140] The smart lock is equipped with a touch panel, and multiple touch areas on the touch panel correspond to multiple buttons. Different touch areas are used to display different button symbols. The smart lock also stores at least one password.
[0141] Based on this, in the smart lock control method provided in this embodiment, before the user enters the password through the smart lock, the smart lock control device acquires the historical pressing duration and historical pressing parameter values of each button, i.e., each touch area. Further, the smart lock control device analyzes the user's past pressing behavior on each touch area based on the acquired historical pressing duration and historical pressing parameter values, determines the degree of pressure marks on each touch area, and then sorts the multiple buttons corresponding to multiple touch areas according to the degree of pressure marks on each touch area, obtaining a first sequence list. The first sequence list indicates the degree of pressure marks on the multiple touch areas corresponding to multiple buttons; the touch area corresponding to the button at the beginning of the first sequence list has the lightest pressure marks, and the touch area corresponding to the button at the end of the first sequence list has the heaviest pressure marks.
[0142] Furthermore, the control device of the smart lock can sort multiple buttons according to the order of frequency of occurrence of the button symbol corresponding to each button in the at least one password information, that is, according to the order of probability of the user subsequently pressing each button, i.e., each touch area, in descending order, to obtain the second sequence table. The second sequence table indicates the frequency of occurrence of the button symbol corresponding to each button in the at least one password information; that is, the second sequence table reflects the probability of the user subsequently pressing each button, i.e., each touch area. The button at the beginning of the second sequence table has the highest probability of being pressed subsequently, and the button at the end of the second sequence table has the lowest probability of being pressed subsequently. The buttons in the second sequence table correspond to the buttons in the same position in the first sequence table.
[0143] Based on this, before the user enters the password through the smart lock, the control device of the smart lock adjusts the key symbol displayed in the first touch area corresponding to the first key in the first sequence table to the key symbol displayed in the second touch area corresponding to the second key in the second sequence table. The first key corresponds to the second key. Thus, based on the intensity of historical pressure marks on each touch area and the probability of each touch area being pressed subsequently, the key symbols displayed in touch areas with lighter historical pressure marks are adjusted to those corresponding to touch areas with a higher probability of being pressed subsequently, and the key symbols displayed in touch areas with heavier historical pressure marks are adjusted to those corresponding to touch areas with a lower probability of being pressed subsequently. This increases the probability of touch areas with lighter historical pressure marks being pressed subsequently and decreases the probability of touch areas with heavier historical pressure marks being pressed subsequently. This balances the pressure marks on each key, making the residue marks left on each key similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0144] Furthermore, changing the button symbols displayed in the touch area allows users to touch different positions on the touch panel each time they enter a password, reducing the risk of password leakage and further improving the security and reliability of the smart lock.
[0145] Furthermore, for smart locks using physical buttons, changing the button symbols displayed in the touch area can ensure that each button is used at a similar frequency, thereby extending the lifespan of the smart lock. For example, assuming each button has a lifespan of 100,000 uses, if the same button is used every time, the smart lock's lifespan is 100,000 uses. However, by changing the button symbols displayed in the touch area, each button can be used more evenly, extending the smart lock's lifespan to (100,000 × number of buttons) uses.
[0146] In the process of the smart lock's control device acquiring the user's historical pressing duration and historical pressing parameter values for each button, i.e., each touch area, each time the user enters a password using the smart lock, the control device detects and records the pressing duration and pressing parameter values of each touch area pressed by the user. Then, it calculates the sum of the user's previous pressing durations for each touch area to obtain the historical pressing duration of each touch area, and calculates the sum of the user's previous pressing parameter values for each touch area to obtain the historical pressing parameter values of each touch area.
[0147] After calculating the historical press duration and historical press parameter values, during subsequent password input by the user using the smart lock, the historical press duration and historical press parameter values of each touch area are updated based on the actual press situation of each touch area by the user.
[0148] Furthermore, the magnitude of the aforementioned pressure parameter values can be used to indicate the pressure intensity and / or frequency of the user's press on the touch area. Depending on the type and specific construction of the smart lock, the aforementioned pressure parameter values include, but are not limited to: the pressure value when each touch area is pressed by the user, the capacitance difference generated when each touch area is pressed by the user, and the number of times each touch area is pressed by the user. Those skilled in the art can select the specific type of the aforementioned pressure parameter values according to actual circumstances, and no specific limitations are imposed here.
[0149] For example, the first sequence list is shown in Table 1 above. The smart lock stores the passwords "123456", "3344621", and "22224436". The control device of the smart lock sorts the multiple keys according to the frequency of occurrence of the key symbol corresponding to each key in the above passwords from highest to lowest, to obtain a second sequence list, as shown in Table 2 below. Based on this, before the user enters the password using the smart lock, such as... Figure 8As shown, based on the second sequence list and the first sequence list, the key symbol displayed in the touch area corresponding to key "5" is adjusted from 5 to 2; the key symbol displayed in the touch area corresponding to key "0" is adjusted from 0 to 4; the key symbol displayed in the touch area corresponding to key "6" is adjusted from 6 to 3; the key symbol displayed in the touch area corresponding to key "1" is adjusted from 1 to 6; the key symbol displayed in the touch area corresponding to key "2" is adjusted from 2 to 1; the key symbol displayed in the touch area corresponding to key "9" is adjusted from 9 to 5; the key symbol displayed in the touch area corresponding to key "8" is adjusted from 8 to 0; the key symbol displayed in the touch area corresponding to key "3" is adjusted from 3 to 7; the key symbol displayed in the touch area corresponding to key "7" is adjusted from 7 to 8; and the key symbol displayed in the touch area corresponding to key "4" is adjusted from 4 to 9. In this way, after the user enters the password, the pressing marks on each key can be balanced, resulting in similar residue marks on each key.
[0150] Table 2: Second Sequence List
[0151] Frequency of occurrence 6 5 4 3 2 1 0 0 0 0 button 2 4 3 6 1 5 0 7 8 9
[0152] In some embodiments of the present invention, optionally, such as Figure 4 As shown, step 204 above may specifically include steps 210 and 212 as follows:
[0153] Step 210: Sort the multiple buttons according to the historical press parameter values in ascending order;
[0154] Step 212: Sort the keys with the same historical press parameter value in ascending order of historical press duration to obtain the first sequence list.
[0155] In this embodiment, during the process of the smart lock's control device sorting multiple buttons according to the historical pressing duration and historical pressing parameter value of each touch area to obtain a first sequence list, the smart lock's control device sorts multiple buttons corresponding to multiple touch areas using the historical pressing parameter value of each touch area as a first factor and the historical pressing duration of each touch area as a second factor to obtain the first sequence list.
[0156] Specifically, the smart lock's control device sorts the buttons corresponding to multiple touch areas in ascending order of their historical press parameter values. For touch areas with the same historical press parameter values, the control device further sorts the buttons according to their historical press duration in ascending order, thus obtaining a first sequence list. This first sequence list indicates the degree of pressure applied to the touch areas corresponding to multiple buttons. The button at the beginning of the first sequence list corresponds to the lightest pressure, while the button at the end of the first sequence list corresponds to the heaviest pressure. This ensures the accuracy of the first sequence list, improves the accuracy of subsequent smart lock control based on the first sequence list, and enhances the security and reliability of the smart lock.
[0157] In practical applications, the smart lock control device can use the historical press duration of each touch area as the first factor and the historical press parameter value of each touch area as the second factor to sort the multiple buttons corresponding to multiple touch areas, thus obtaining a first sequence list. That is, the smart lock control device can also sort the multiple buttons corresponding to multiple touch areas in ascending order of historical press duration. For touch areas with the same historical press duration, the smart lock control device further sorts the buttons corresponding to the touch areas in ascending order of historical press parameter values, thereby obtaining the first sequence list.
[0158] In some embodiments of the present invention, optionally, the smart lock may also be equipped with an image sensor for acquiring user images, and based on this, such as Figure 5 As shown, step 206 above may specifically include steps 214 to 218 below:
[0159] Step 214: Identify the user's identity based on the user's image;
[0160] Step 216: Select the target password from the password information based on the user's identity;
[0161] Step 218: Sort the multiple keys according to the frequency of each key symbol in the target password from largest to smallest to obtain the second sequence list.
[0162] In this embodiment, the smart lock may also be equipped with an image sensor for capturing user images. Based on this, during the process of the smart lock's control device sorting multiple keys according to at least one password information stored in the smart lock to obtain the second sequence list, the control device identifies the user's identity through the captured user image. Then, based on the identified user identity, it judges the password the user is about to enter and selects the target password corresponding to the user's identity from the at least one password information. Further, the smart lock's control device sorts the multiple keys according to the frequency of occurrence of the key symbol corresponding to each key in the target password, from highest to lowest, to obtain the second sequence list. In this way, even when the smart lock stores a large amount of password information, it can accurately change the key symbols displayed in the touch area without traversing all password information, thus improving the smart lock's operating speed.
[0163] The image sensor mentioned above can be a radar sensor, a camera, etc. Those skilled in the art can select the specific type of image sensor according to the actual situation, and no specific restrictions are made here.
[0164] In some embodiments of the present invention, the control method may optionally include the following steps 220 and 222:
[0165] Step 220: Determine the random code according to the first sequence list. The random code includes N key symbols.
[0166] Step 222: Instruct the user to press the N touch areas corresponding to the N button symbols.
[0167] In this embodiment, since the first sequence list is used to indicate the degree of pressure marks on the multiple touch areas corresponding to multiple buttons, the touch area corresponding to the first button in the first sequence list has the lightest pressure mark, and the touch area corresponding to the last button in the first sequence list has the heaviest pressure mark. After obtaining the first sequence list, the control device of the smart lock can also select the first N buttons in the first sequence list and determine the button symbols corresponding to these N buttons as random codes. Further, the control device of the smart lock controls the operation of the smart lock based on the determined random codes to notify the user to press the N touch areas corresponding to the N button symbols. In this way, in addition to the user entering the password through the smart lock, the user is notified to press the first N touch areas with lighter pressure marks, which can balance the pressure marks of each touch area, making the residual marks left on each touch area similar, thereby preventing others from cracking the unlocking password by exploiting the degree of pressure marks on different touch areas, and improving the security and reliability of the smart lock.
[0168] Wherein, N is a positive integer, and those skilled in the art can set the specific value of N according to the actual situation, without making specific restrictions here.
[0169] Furthermore, depending on the type and specific structure of the smart lock, the control device of the smart lock can control the smart lock to use notification methods such as highlighting N touch areas, displaying prompt information on the screen, playing prompt information, and sending prompt information to the user terminal to notify the user to press the first N touch areas with lighter pressure marks. Those skilled in the art can choose the specific notification method of the smart lock according to the actual situation, and no specific restrictions are made here.
[0170] In summary, such as Figure 9 As shown, the control method for the smart lock provided in this embodiment of the invention may specifically include the following steps 402 to 418:
[0171] Step 402: A button press has been detected.
[0172] Step 404: Record the pressure value and duration of the button being pressed;
[0173] Step 406: Determine the historical pressure value of the button based on the total pressure value of the button being pressed, and determine the historical pressing duration of the button based on the total pressing duration of the button being pressed.
[0174] Step 408: Determine if the user's operation on the smart lock has ended. If yes, proceed to step 410; otherwise, proceed to step 402.
[0175] Step 410: The smart lock has been activated again.
[0176] Step 412: Sort all buttons in ascending order of historical pressure values;
[0177] Step 414: Sort the buttons with the same historical pressure value in ascending order of historical press duration to obtain the first sequence list;
[0178] Step 416: Sort all keys according to the frequency of occurrence of the numbers 0 to 9 in the password information already stored in the smart lock, from high to low, to obtain the second sequence list;
[0179] Step 418: Adjust the display position of the key symbols according to the first sequence table and the second sequence table.
[0180] In one embodiment of the present invention, a control device for a smart lock is also provided. For example... Figure 10 As shown, Figure 10A structural block diagram of a control device 500 for a smart lock according to an embodiment of the present invention is shown. The smart lock is equipped with a keypad, which includes multiple keys. Further, the control device 500 for the smart lock may specifically include a first acquisition unit 502, a first processing unit 504, and a first control unit 506.
[0181] The first acquisition unit 502 is used to acquire the historical press duration and historical press parameter value of each button.
[0182] The first processing unit 504 is used to determine a random code based on the historical press duration and historical press parameter value of each button. The random code includes N button symbols, where N is a positive integer greater than 1, and the N button symbols correspond to N target buttons among multiple buttons.
[0183] The first control unit 506 is used to control the smart lock to notify the user to press N target buttons.
[0184] The control device 500 for a smart lock provided in this embodiment of the invention is used to solve the problem that when a user uses a password to unlock a smart lock for a long time, others can use the residue left on the smart lock to crack the unlocking password.
[0185] The smart lock is equipped with a keypad, which includes multiple buttons, each corresponding to a different key symbol.
[0186] Specifically, the control device 500 for the smart lock provided by this invention includes a first acquisition unit 502, a first processing unit 504, and a first control unit 506. During user operation of the smart lock, such as before or after the user enters a password, the first acquisition unit 502 acquires the historical pressing duration and historical pressing parameter values of each key. Further, the first processing unit 504 analyzes the user's past key presses based on the acquired historical pressing duration and historical pressing parameter values, determines the severity of the pressing marks on each key, and then determines a random code containing N key symbols based on the severity of the pressing marks on each key. Here, N is an integer greater than 1, and the N key symbols in the random code correspond to the N target keys on the keypad. Based on this, the first control unit 506 controls the smart lock to notify the user to press the aforementioned N target keys before or after entering a password. In this way, when a user uses the smart lock, the system can notify the user to press the buttons with fewer previous press marks based on the user's past experience with each button. This balances the press marks on each button, making the residue marks on each button similar, thus preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0187] Specifically, during the process of the first acquisition unit 502 acquiring the user's historical pressing duration and historical pressing parameter value for each button, each time the user enters a password using the smart lock, the first acquisition unit 502 detects and records the pressing duration and pressing parameter value of each button pressed by the user, and then calculates the sum of the pressing duration of each button pressed by the user in the past to obtain the historical pressing duration of each button, and calculates the sum of the pressing parameter values of each button pressed by the user in the past to obtain the historical pressing parameter value of each button.
[0188] After calculating the historical press duration and historical press parameter values, during subsequent password input by the user using the smart lock, the historical press duration and historical press parameter values of each button are updated based on the actual press situation of each button.
[0189] Furthermore, the magnitude of the aforementioned pressing parameter values can be used to indicate the intensity and / or frequency of the user's pressing of the buttons. Depending on the type and specific construction of the smart lock, the aforementioned pressing parameter values include, but are not limited to: the pressure value of each button when pressed by the user, the capacitance difference generated when each button is pressed by the user, and the number of times each button is pressed by the user. Those skilled in the art can select the specific type of the aforementioned pressing parameter values according to the actual situation, and no specific limitations are imposed here.
[0190] Furthermore, the N key symbols in the aforementioned random code correspond to the N key symbols on the keypad that leave the lightest pressing marks. In other words, the aforementioned N target keys are the N keys on the keypad that leave the lightest pressing marks, meaning they are the N keys on the keypad that are used less frequently. Thus, in addition to the user entering the password through the smart lock, additionally instructing the user to press the N target keys on the keypad that leave the lightest pressing marks ensures that the usage frequency of each key is similar. This balances the pressing marks on each key on the keypad, making the residual marks left on each key similar, thereby preventing others from using the varying degrees of pressure on different keys to crack the unlocking password, and improving the security and reliability of the smart lock.
[0191] In some embodiments of the present invention, optionally, the first acquisition unit 502 is specifically used to: determine the historical pressure value of each key based on the sum of the pressure values when each key is pressed each time, when the smart lock includes a pressure sensor; and / or determine the historical capacitance difference of each key based on the sum of the capacitance differences generated when each key is pressed each time, when the keypad is a capacitive screen; and / or record the number of times each key is pressed to obtain the historical number of times each key is pressed.
[0192] In some embodiments of the present invention, optionally, the first processing unit 504 is specifically used to: sort multiple buttons in ascending order of historical press parameter values; sort buttons with the same historical press parameter values in ascending order of historical press duration to obtain a first sequence list; and determine the button symbols of the first N buttons in the first sequence list as random codes.
[0193] In some embodiments of the present invention, optionally, the first control unit 506 is specifically configured to: control the light-emitting elements corresponding to N target buttons to work when each button is provided with a light-emitting element, so as to highlight the N target buttons and prompt the user to press the N target buttons; and / or control the display screen to display prompt information when the smart lock includes a display screen, the prompt information being used to prompt the user to press the N target buttons; and / or control the speaker to play the prompt information when the smart lock includes a speaker; and / or control the smart lock to send prompt information to the user terminal when communication is established between the smart lock and the user terminal.
[0194] In some embodiments of the present invention, optionally, the aforementioned keypad may specifically be a touch panel, with multiple keys corresponding to multiple touch areas on the touch panel, and different touch areas used to display different key symbols. The smart lock also stores password information, and the first processing unit 504 is further configured to: sort the multiple keys according to the password information to obtain a second sequence list; and adjust the key symbols displayed in the multiple touch areas according to the first sequence list and the second sequence list.
[0195] In one embodiment of the present invention, another control device for a smart lock is also proposed. For example... Figure 11 As shown, Figure 11 A structural block diagram of a control device 600 for a smart lock according to an embodiment of the present invention is shown. The smart lock includes a touch panel, with multiple touch areas on the touch panel corresponding to multiple buttons. Different touch areas are used to display different button symbols. The smart lock also stores password information. Further, the control device 600 for the smart lock may specifically include the second acquisition unit 602 and the second processing unit 604 described below:
[0196] The second acquisition unit 602 is used to acquire the historical press duration and historical press parameter values of each touch area;
[0197] The second processing unit 604 is used to sort multiple buttons according to the historical press duration and historical press parameter values to obtain a first sequence list;
[0198] The second processing unit 604 is also used to sort multiple keys according to the password information to obtain a second sequence table, and the keys in the second sequence table and the keys in the first sequence table correspond to each other.
[0199] The second processing unit 604 is further configured to adjust the key symbol displayed on the first touch area corresponding to the first key in the first sequence table to the key symbol displayed on the second touch area corresponding to the second key in the second sequence table, wherein the first key and the second key correspond to each other.
[0200] The control device 600 for the smart lock provided in this embodiment of the invention is used to solve the problem that when a user uses a password to unlock the smart lock for a long time, others can use the residue left on the smart lock to crack the unlocking password.
[0201] The smart lock is equipped with a touch panel, and multiple touch areas on the touch panel correspond to multiple buttons. Different touch areas are used to display different button symbols. The smart lock also stores at least one password.
[0202] Specifically, the control device 600 for the smart lock provided by this invention includes a second acquisition unit 602 and a second processing unit 604. Before the user enters a password through the smart lock, the second acquisition unit 602 acquires the historical pressing duration and historical pressing parameter values of each button, i.e., each touch area. Further, the second processing unit 604 analyzes the user's past pressing behavior on each touch area based on the acquired historical pressing duration and historical pressing parameter values, determines the degree of pressure marks on each touch area, and then sorts the multiple buttons corresponding to multiple touch areas according to the degree of pressure marks on each touch area to obtain a first sequence list. The first sequence list indicates the degree of pressure marks on the multiple touch areas corresponding to multiple buttons; the touch area corresponding to the button at the beginning of the first sequence list has the lightest pressure marks, and the touch area corresponding to the button at the end of the first sequence list has the heaviest pressure marks.
[0203] Furthermore, the second processing unit 604 can sort multiple buttons according to the order of frequency of occurrence of the button symbol corresponding to each button in the at least one password information, that is, according to the order of probability of the user subsequently pressing each button, i.e., each touch area, in descending order, to obtain the second sequence list. The second sequence list indicates the frequency of occurrence of the button symbol corresponding to each button in the at least one password information; that is, the second sequence list reflects the probability of the user subsequently pressing each button, i.e., each touch area. The button at the beginning of the second sequence list has the highest probability of being pressed, and the button at the end of the second sequence list has the lowest probability of being pressed. The buttons in the second sequence list correspond to the buttons in the same position in the first sequence list.
[0204] Based on this, before the user enters the password through the smart lock, the second processing unit 604 adjusts the key symbol displayed in the first touch area corresponding to the first key in the first sequence table to the key symbol displayed in the second touch area corresponding to the second key in the second sequence table. The first key corresponds to the second key. Thus, based on the intensity of historical pressure marks on each touch area and the likelihood of each touch area being pressed subsequently, the key symbols displayed in touch areas with lighter historical pressure marks are adjusted to those corresponding to touch areas with a higher likelihood of being pressed subsequently, and the key symbols displayed in touch areas with heavier historical pressure marks are adjusted to those corresponding to touch areas with a lower likelihood of being pressed subsequently. This increases the likelihood of touch areas with lighter historical pressure marks being pressed subsequently and decreases the likelihood of touch areas with heavier historical pressure marks being pressed subsequently. This balances the pressure marks on each key, making the residue marks on each key similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock.
[0205] Furthermore, changing the button symbols displayed in the touch area allows users to touch different positions on the touch panel each time they enter a password, reducing the risk of password leakage and further improving the security and reliability of the smart lock.
[0206] Furthermore, for smart locks using physical buttons, changing the button symbols displayed in the touch area can ensure that each button is used at a similar frequency, thereby extending the lifespan of the smart lock. For example, assuming each button has a lifespan of 100,000 uses, if the same button is used every time, the smart lock's lifespan is 100,000 uses. However, by changing the button symbols displayed in the touch area, each button can be used more evenly, extending the smart lock's lifespan to (100,000 × number of buttons) uses.
[0207] Specifically, during the process of the second acquisition unit 602 acquiring the user's historical press duration and historical press parameter value for each button, i.e. each touch area, each time the user enters a password using the smart lock, the second acquisition unit 602 detects and records the user's press duration and press parameter value for each touch area, and then calculates the sum of the user's previous press durations for each touch area to obtain the historical press duration of each touch area, and calculates the sum of the user's previous press parameter values for each touch area to obtain the historical press parameter value of each touch area.
[0208] After calculating the historical press duration and historical press parameter values, during subsequent password input by the user using the smart lock, the historical press duration and historical press parameter values of each touch area are updated based on the actual press situation of each touch area by the user.
[0209] Furthermore, the magnitude of the aforementioned pressure parameter values can be used to indicate the pressure intensity and / or frequency of the user's press on the touch area. Depending on the type and specific construction of the smart lock, the aforementioned pressure parameter values include, but are not limited to: the pressure value when each touch area is pressed by the user, the capacitance difference generated when each touch area is pressed by the user, and the number of times each touch area is pressed by the user. Those skilled in the art can select the specific type of the aforementioned pressure parameter values according to actual circumstances, and no specific limitations are imposed here.
[0210] In some embodiments of the present invention, optionally, the second processing unit 604 is specifically used to: sort multiple buttons in ascending order of historical press parameter values; and sort buttons with the same historical press parameter values in ascending order of historical press duration to obtain a first sequence list.
[0211] In some embodiments of the present invention, optionally, the smart lock may also be provided with an image sensor for collecting user images, and the second processing unit 604 is specifically used for: identifying the user's identity based on the user image; selecting a target password from the password information based on the user's identity; and sorting multiple keys according to the order of the frequency of each key symbol in the target password from largest to smallest to obtain a second sequence list.
[0212] In some embodiments of the present invention, optionally, the second processing unit 604 is further configured to: determine a random code according to a first sequence list, the random code including N key symbols, where N is a positive integer greater than 1; and notify the user to press the N touch areas corresponding to the N key symbols.
[0213] In one embodiment of the present invention, a smart lock is also proposed. For example... Figure 12 As shown, Figure 12 A structural block diagram of a smart lock 700 provided in an embodiment of the present invention is shown. The smart lock 700 includes a keypad 702, a pressure sensor 704, and a processor 706.
[0214] The keypad 702 includes multiple keys 708, with different keys 708 corresponding to different key symbols.
[0215] Furthermore, the pressure sensor 704 is connected to the keypad 702, and the pressure sensor 704 is used to detect the pressure value of each of the multiple keys 708 when it is pressed by the user each time.
[0216] Furthermore, during the operation of the smart lock 700, the processor 706 acquires the historical press duration of each button 708 and determines the historical pressure value of each button 708 based on the sum of the pressure values when each button 708 is pressed by the user. Further, the processor 706 analyzes the user's past presses of each button 708 based on the historical press duration and historical pressure value, determines the severity of the press marks on each button 708, and then determines a random code containing N key symbols based on the severity of the press marks on each button 708. Here, N is an integer greater than 1, and the N key symbols in the random code correspond to the N target keys on the keypad 702. Based on this, the processor 706 then controls the smart lock 700 to notify the user to press the aforementioned N target keys before or after entering the password. In this way, when a user uses the smart lock 700, it can notify the user to press the button 708 with fewer previous press marks based on the user's previous pressing patterns on each button 708. This balances the press marks on each button 708, making the residue marks on each button 708 similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock 700.
[0217] In some embodiments of the present invention, optionally, the above-mentioned keypad 702 may be a touch panel, the above-mentioned multiple buttons 708 respectively correspond to multiple touch areas on the touch panel, different touch areas are used to display different button symbols, and the pressure sensor 704 is specifically used to detect the pressure value of each touch area when pressed by the user each time.
[0218] Furthermore, such as Figure 12 As shown, the smart lock 700 also includes a memory 710, which is connected to the processor 706 and stores at least one password.
[0219] During the operation of the smart lock 700, the processor 706 can also obtain the historical pressing duration and historical pressure value of each button 708, i.e., each touch area, before the user enters the password through the smart lock 700. Further, based on the obtained historical pressing duration and historical pressure value of each touch area, the processor 706 analyzes the user's past pressing behavior on each touch area, determines the degree of pressure marks on each touch area, and then sorts the multiple buttons 708 corresponding to multiple touch areas according to the degree of pressure marks, obtaining a first sequence list. The first sequence list indicates the degree of pressure marks on the multiple touch areas corresponding to multiple buttons 708, with the button 708 at the beginning of the first sequence list having the lightest pressure mark and the button 708 at the end of the first sequence list having the heaviest pressure mark.
[0220] Furthermore, the processor 706 can sort the multiple buttons 708 according to the order of frequency of occurrence of the key symbol corresponding to each button 708 in the at least one password information, that is, according to the order of probability of the user subsequently pressing each button 708, i.e., each touch area, in descending order, to obtain the second sequence list. The second sequence list indicates the frequency of occurrence of the key symbol corresponding to each button 708 in the at least one password information. In other words, the second sequence list reflects the probability of the user subsequently pressing each button 708, i.e., each touch area. The button 708 at the beginning of the second sequence list has the highest probability of being pressed subsequently, and the button 708 at the end of the second sequence list has the lowest probability of being pressed subsequently. The second sequence list corresponds to the buttons 708 in the same position in the first sequence list.
[0221] Based on this, before the user enters the password through the smart lock 700, the processor 706 adjusts the key symbol displayed in the first touch area corresponding to the first key in the first sequence table to the key symbol displayed in the second touch area corresponding to the second key in the second sequence table. The first key corresponds to the second key. Thus, based on the intensity of historical pressure marks on each touch area and the likelihood of each touch area being pressed subsequently, the processor adjusts the key symbols displayed in touch areas with lighter historical pressure marks to those corresponding to touch areas with a higher likelihood of being pressed subsequently, and vice versa. This increases the likelihood of touch areas with lighter historical pressure marks being pressed subsequently, and decreases the likelihood of touch areas with heavier historical pressure marks being pressed subsequently. This balances the pressure marks on each key 708, making the residue marks on each key 708 similar, thereby preventing others from using residue marks to crack the password and improving the security and reliability of the smart lock 700. Furthermore, changing the button symbols displayed within the touch area ensures that users touch different positions on the touch panel each time they enter a password, reducing the risk of password leakage and further improving the security and reliability of the smart lock 700. Additionally, for the smart lock 700 using physical buttons, changing the button symbols displayed within the touch area ensures that each button 708 is used with similar frequency, thereby extending the lifespan of the smart lock 700.
[0222] In some embodiments of the present invention, optionally, such as Figure 12 As shown, the smart lock 700 may also be equipped with an image sensor 712, which is used to collect user images.
[0223] Based on this, during the process of determining the second sequence list, the processor 706 can identify the user's identity through the acquired user image, and then, based on the identified user identity, judge the password that the user is about to enter, and select the target password corresponding to the user's identity from at least one of the aforementioned password information. Further, the processor 706 sorts the multiple buttons 708 according to the order of frequency of occurrence of the key symbols corresponding to each button 708 in the target password, from highest to lowest, to obtain the second sequence list. In this way, even when the smart lock 700 stores a large amount of password information, it can accurately change the key symbols displayed in the touch area without traversing all password information, thus improving the operating speed of the smart lock 700.
[0224] In practical applications, the aforementioned image sensor may specifically be a radar sensor, a camera, etc. Those skilled in the art can select the specific type of the aforementioned image sensor according to the actual situation, without making specific restrictions here.
[0225] In one embodiment of the present invention, another smart lock is also proposed. For example... Figure 13 As shown, Figure 13 A structural block diagram of a smart lock 800 provided in an embodiment of the present invention is shown. The smart lock 800 includes:
[0226] Memory 802, on which programs or instructions are stored;
[0227] The processor 804 executes the above-described program or instructions to implement the steps of the smart lock control method as described in any of the above embodiments.
[0228] The smart lock 800 provided in this embodiment includes a memory 802 and a processor 804. When the program or instructions in the memory 802 are executed by the processor 804, they implement the steps of the smart lock control method as described in any of the above embodiments. Therefore, the smart lock 800 has all the beneficial effects of the smart lock control method in any of the above embodiments, which will not be repeated here.
[0229] Specifically, the memory 802 and the processor 804 can be connected via a bus or other means. The processor 804 may include one or more processing units, and the processor 804 may be a chip such as a central processing unit (CPU), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or a field-programmable gate array (FPGA).
[0230] In one embodiment of the present invention, a readable storage medium is also provided. A program or instructions are stored thereon, which, when executed by a processor, implement the steps of the smart lock control method as described in any of the above embodiments.
[0231] The readable storage medium provided in this embodiment of the invention stores programs or instructions that, when executed by a processor, can implement the steps of the smart lock control method as described in any of the above embodiments. Therefore, this readable storage medium possesses all the beneficial effects of the smart lock control method in any of the above embodiments, which will not be elaborated further here.
[0232] Specifically, the aforementioned readable storage medium can include any medium capable of storing or transmitting information. Examples of readable storage media include electronic circuits, semiconductor memory devices, read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), flash memory, erasable ROM (EROM), magnetic tape, floppy disk, optical disk, hard disk, fiber optic media, radio frequency (RF) links, optical data storage devices, etc. Code segments can be downloaded via computer networks such as the Internet and intranets.
[0233] In the description of this specification, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance, unless otherwise expressly specified and limited. The terms "connection," "installation," and "fixing," etc., should be interpreted broadly. For example, "connection" can mean a fixed connection, a detachable connection, or an integral connection; it can mean a direct connection or an indirect connection through an intermediate medium. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0234] In the description of this specification, the terms "one embodiment," "some embodiments," "specific embodiment," etc., refer to a specific feature, structure, material, or characteristic described in connection with that embodiment or example, which is included in at least one embodiment or example of the present invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0235] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in this field can implement it. When the combination of technical solutions is mutually contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0236] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A control method for a smart lock, characterized in that, The smart lock includes a keypad, which includes multiple keys, and the control method includes: Obtain the historical press parameter value and historical press duration for each of the aforementioned buttons; A random code is determined based on the historical press parameter value and the historical press duration of each button. The random code includes N button symbols, and the N button symbols correspond to N target buttons among the plurality of buttons, where N is a positive integer greater than 1. The smart lock is controlled to notify the user to press N target buttons; The step of determining a random code based on the historical press parameter value and the historical press duration of each button includes: The multiple buttons are sorted in ascending order of their historical press parameter values; According to the historical press duration in ascending order, the buttons with the same historical press parameter value are sorted to obtain the first sequence list; The key symbols of the first N keys in the first sequence list are determined as the random code.
2. The control method for the smart lock according to claim 1, characterized in that, The step of obtaining the historical press parameter value for each of the buttons includes: In the case where the smart lock includes a pressure sensor, the historical pressure value of each button is determined based on the sum of the pressure values when each button is pressed; and / or When the keypad is a capacitive touchscreen, the historical capacitance difference of each key is determined based on the sum of the capacitance differences generated each time the key is pressed; and / or Record the number of times each button is pressed to obtain the historical number of times each button is pressed.
3. The control method for the smart lock according to claim 1, characterized in that, The control of the smart lock to notify the user to press N target buttons includes: When each of the aforementioned buttons is equipped with a light-emitting element, the light-emitting elements corresponding to the N target buttons are controlled to operate, so as to highlight the N target buttons and prompt the user to press the N target buttons; and / or In the case where the smart lock includes a display screen, the display screen is controlled to show prompt information, which prompts the user to press N target buttons; and / or In the case that the smart lock includes a speaker, control the speaker to play the prompt message; and / or When communication is established between the smart lock and the user terminal, the smart lock is controlled to send the prompt information to the user terminal.
4. The control method for the smart lock according to claim 1, characterized in that, The keypad is a touch panel, and the multiple keys correspond to multiple touch areas of the touch panel. The touch areas are used to display key symbols. The control method further includes: The multiple buttons are sorted according to the password information stored in the smart lock to obtain a second sequence list; Adjust the button symbols displayed in the plurality of touch areas according to the first sequence list and the second sequence list.
5. A control method for a smart lock, characterized in that, The smart lock includes a touch panel, wherein multiple touch areas of the touch panel correspond to multiple buttons, and the touch areas are used to display button symbols. The control method includes: Obtain the historical press parameter values and historical press duration for each of the touch areas; The multiple buttons are sorted according to the historical press parameter values and the historical press duration to obtain a first sequence list; The multiple buttons are sorted according to the password information stored in the smart lock to obtain a second sequence table, and the buttons with the same position in the first sequence table and the second sequence table correspond to each other. The button symbol displayed in the first touch area corresponding to the first button in the first sequence list is adjusted to the button symbol displayed in the second touch area corresponding to the second button in the second sequence list, wherein the second button corresponds to the first button; The first sequence list is obtained by sorting the multiple buttons according to the historical press parameter values and the historical press duration, including: The multiple buttons are sorted in ascending order of their historical press parameter values; According to the historical press duration in ascending order, the buttons with the same historical press parameter value are sorted to obtain the first sequence list; A random code is determined based on the first sequence list, and the random code includes N key symbols, where N is a positive integer greater than 1; The user is notified to press the N touch areas corresponding to the N key symbols.
6. The control method for the smart lock according to claim 5, characterized in that, The smart lock also includes an image sensor for capturing user images. The second sequence list is obtained by sorting the multiple keys according to the password information stored in the smart lock, including: Identify the user's identity based on the user's image; Select a target password from the password information based on the user's identity; The keys are sorted in descending order of frequency of occurrence of each key symbol in the target password to obtain the second sequence list.
7. A control device for a smart lock, characterized in that, The smart lock includes a keypad with multiple keys, and the control device includes: The first acquisition unit is used to acquire the historical press parameter value and historical press duration of each of the buttons; The first processing unit is configured to determine a random code based on the historical press parameter value and the historical press duration of each button. The random code includes N button symbols, and the N button symbols correspond to N target buttons among the plurality of buttons, where N is a positive integer greater than 1. The first control unit is used to control the smart lock to notify the user to press N target buttons; The first processing unit is specifically used to: sort multiple buttons in ascending order of historical press parameter values; sort buttons with the same historical press parameter values in ascending order of historical press duration to obtain a first sequence list; and determine the button symbols of the first N buttons in the first sequence list as random codes. The second processing unit is also used to: determine a random code according to the first sequence list, the random code including N key symbols, where N is a positive integer greater than 1; and notify the user to press the N touch areas corresponding to the N key symbols.
8. A control device for a smart lock, characterized in that, The smart lock includes a touch panel, wherein multiple touch areas of the touch panel correspond to multiple buttons, and the touch areas are used to display button symbols. The control device includes: The second acquisition unit is used to acquire the historical press parameter value and historical press duration of each of the touch areas; The second processing unit is used to sort the multiple buttons according to the historical press parameter values and the historical press duration to obtain a first sequence list; The second processing unit is further configured to sort the plurality of keys according to the password information stored in the smart lock to obtain a second sequence table, wherein the keys with the same position in the first sequence table and the second sequence table correspond to each other; The second processing unit is further configured to adjust the key symbol displayed in the first touch area corresponding to the first key in the first sequence list to the key symbol displayed in the second touch area corresponding to the second key in the second sequence list, wherein the second key corresponds to the first key; The second processing unit is also used to sort multiple buttons in ascending order of historical press parameter values; and to sort buttons with the same historical press parameter values in ascending order of historical press duration to obtain a first sequence list.
9. A smart lock, characterized in that, include: A keypad with multiple keys; A pressure sensor is connected to the keypad, and the pressure sensor is used to detect the pressure value when each of the plurality of keys is pressed. The processor is configured to acquire the historical press duration of each button, determine the historical pressure value of each button based on the sum of the pressure values of each button when it is pressed, determine a random code based on the historical pressure value and the historical press duration of each button, the random code including N button symbols, the N button symbols corresponding to N target buttons among the plurality of buttons, where N is a positive integer greater than 1, and control the smart lock to notify the user to press the N target buttons. The step of determining the random code based on the historical press parameter value and the historical press duration of each button includes: The multiple buttons are sorted in ascending order of their historical press parameter values; According to the historical press duration in ascending order, the buttons with the same historical press parameter value are sorted to obtain the first sequence list; The key symbols of the first N keys in the first sequence list are determined as the random code.
10. The smart lock according to claim 9, characterized in that, The keypad is a touch panel, and the multiple keys correspond to multiple touch areas of the touch panel. The touch areas are used to display key symbols. The pressure sensor is specifically used to detect the pressure value when each touch area is pressed. The smart lock also includes: A memory, connected to the processor, stores password information; The processor is also used for: Obtain the historical pressure value and historical press duration for each touch area; sort the multiple buttons according to the historical pressure value and historical press duration to obtain a first sequence list; sort the multiple buttons according to the password information to obtain a second sequence list, wherein buttons with the same position in the first sequence list and the second sequence list correspond to each other; adjust the button symbol displayed in the first touch area corresponding to the first button in the first sequence list to the button symbol displayed in the second touch area corresponding to the second button in the second sequence list, wherein the second button corresponds to the first button; The first sequence list is obtained by sorting the multiple buttons according to the historical press parameter values and the historical press duration, including: The multiple buttons are sorted in ascending order of their historical press parameter values; According to the historical press duration in ascending order, the buttons with the same historical press parameter value are sorted to obtain the first sequence list; A random code is determined based on the first sequence list, and the random code includes N key symbols, where N is a positive integer greater than 1; The user is notified to press the N touch areas corresponding to the N key symbols.
11. The smart lock according to claim 9 or 10, characterized in that, Also includes: Image sensors are used to capture images of users.
12. A smart lock, characterized in that, It includes a processor and a memory, the memory storing programs or instructions that can run on the processor, the programs or instructions being executed by the processor to implement the steps of the control method of the smart lock as described in any one of claims 1 to 6.
13. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the control method for the smart lock as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Intelligent lock and unlocking method
CN108124490A
Dynamic touch key for intelligent lock
CN111127703A