Electronic lock control method, electronic lock and computer readable storage medium
By obtaining the user's inertial sensor data, body temperature data and pressure data, and determining the identification sequence based on the number of terminal devices in the wireless network, the problem of electronic locks being difficult to accurately unlock for users is solved, achieving higher unlocking accuracy and convenience sex.
Patent Information
- Application Number
- CN202011021131.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-23
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2040-09-23
AI Technical Summary
Electronic locks are difficult to unlock accurately for specific users, especially for the elderly, passwords are difficult to remember.
When the unlocking command triggered by the target user is detected, the inertial sensor data, body temperature data and pressure data are obtained, and the identification sequence is determined based on the number of terminal devices in the wireless network where the electronic lock is located, and the identification is performed sequentially, when at least one user identity is identified. When the data identification is successful, perform the unlock operation.
It realizes automatic determination of the identification sequence based on the number of terminal devices in the wireless network, accurately identifying specific users, and improving the accuracy and convenience of electronic lock unlocking.
Smart Images

Figure CN112348999B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of locks, and in particular to an electronic lock control method, an electronic lock and a computer-readable storage medium. Background Art
[0002] With the development of lock technology, various types of locks have sprung up on the market. Among them, electronic locks have the most development prospects. The most common electronic locks are password locks. The defect of password locks is that users are required to manually enter the password to unlock. For some people, such as the elderly, the password is difficult to remember, which makes it difficult for electronic locks to accurately unlock the lock for the user. Summary of the invention
[0003] The main purpose of the present invention is to provide an electronic lock control method, an electronic lock and a computer-readable storage medium, aiming to solve the technical problem that it is difficult to accurately unlock an electronic lock for a specific user.
[0004] To achieve the above object, the present invention provides an electronic lock control method, comprising:
[0005] When an unlocking command triggered by a target user is detected, multiple user identity data detected by the electronic lock are obtained; wherein the multiple user identity data include inertial sensor data, body temperature data, and pressure data;
[0006] Acquire the number of terminal devices connected to the wireless network where the electronic lock is located, and determine the recognition order of multiple user identity data according to the number of terminal devices;
[0007] Identify multiple user identity data in sequence according to the identification order to obtain an identification result;
[0008] If the identification result is that at least one of the multiple user identity data is successfully identified, the unlocking operation is performed and the identification of the user identity data is stopped.
[0009] In addition, to achieve the above object, the present invention provides an electronic lock control device, comprising:
[0010] A first acquisition unit is used to acquire user identity data detected by the electronic lock when an unlocking instruction is detected; wherein the user identity data includes inertial sensor data, body temperature data and pressure data;
[0011] A second acquisition unit is used to acquire the number of terminal devices connected to the wireless network where the electronic lock is located;
[0012] A determination unit, used to determine the recognition order of the user identity data according to the number of terminal devices;
[0013] An identification unit, used to identify the identity data of each user in sequence according to the identification order;
[0014] The execution unit is used to execute the unlocking operation and stop identifying the user identity data when the user identity data is successfully identified.
[0015] In addition, to achieve the above-mentioned purpose, the present invention provides an electronic lock, which includes a memory, a processor, and an electronic lock control program stored in the memory and executable on the processor. When the electronic lock control program is executed by the processor, the steps of any one of the above-mentioned electronic lock control methods are implemented.
[0016] In addition, to achieve the above objectives, the present invention provides a computer-readable storage medium, on which an electronic lock control program is stored, and when the electronic lock control program is executed by a processor, the steps of any of the above electronic lock control methods are implemented.
[0017] An electronic lock control method, an electronic lock, and a computer-readable storage medium proposed in an embodiment of the present invention obtain user identity data when an unlocking command triggered by a target user is detected, determine the recognition order for identifying the user identity data according to the number of terminal devices in the wireless network where the electronic lock is located, and perform recognition according to the recognition order, and unlock the door when the recognition is successful. In this way, the recognition order can be automatically determined according to the number of terminal devices in the wireless network, and the recognition process and the unlocking process can be automatically completed, so that the lock can be accurately unlocked for the identified specific user, thereby improving the accuracy of unlocking the electronic lock. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 Schematic diagram of the hardware architecture of the electronic lock involved in the embodiment of the present invention;
[0019] Figure 2 This is a flow chart of a first embodiment of an electronic lock control method of the present invention;
[0020] Figure 3 This is a flow chart of a second embodiment of the electronic lock control method of the present invention;
[0021] Figure 4 A schematic diagram of a flow chart of a third embodiment of an electronic lock control method of the present invention;
[0022] Figure 5 This is a flow chart of a fourth embodiment of the electronic lock control method of the present invention;
[0023] Figure 6 A schematic diagram of a flow chart of a fifth embodiment of an electronic lock control method of the present invention;
[0024] Figure 7 This is a flow chart of a sixth embodiment of the electronic lock control method of the present invention;
[0025] Figure 8 This is a flow chart of a seventh embodiment of the electronic lock control method of the present invention;
[0026] Fig. 9 The figure is a block diagram of the functional units of the electronic lock control device of the present invention.
[0027] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0028] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0029] like Figure 1 As shown, Figure 1 It is a schematic diagram of the hardware structure of the electronic lock involved in the embodiment of the present invention.
[0030] like Figure 1 As shown, the electronic lock may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0031] Optionally, the electronic lock may also include sensors, WiFi modules, etc. Among them, sensors include temperature sensors, inertial sensors, pressure sensors, and other sensors. Specifically, as a type of inertial sensor, an acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary.
[0032] Those skilled in the art will understand that Figure 1 The electronic lock structure shown in the figure does not constitute a limitation on the electronic lock, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0033] like Figure 1As shown, the memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an electronic lock control program.
[0034] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the electronic lock control program stored in the memory 1005 and perform the following operations:
[0035] When an unlocking command triggered by a target user is detected, multiple user identity data detected by the electronic lock are obtained; wherein the multiple user identity data include inertial sensor data, body temperature data, and pressure data;
[0036] Acquire the number of terminal devices connected to the wireless network where the electronic lock is located, and determine the recognition order of multiple user identity data according to the number of terminal devices;
[0037] Identify multiple user identity data in sequence according to the identification order to obtain an identification result;
[0038] If the identification result is that at least one of the multiple user identity data is successfully identified, the unlocking operation is performed and the identification of the user identity data is stopped.
[0039] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0040] When the number of terminal devices is greater than a preset number threshold, determining the recognition order of the multiple user identity data is to sequentially recognize pressure data, body temperature data, and inertial sensor data; or
[0041] When the number of terminal devices is less than or equal to a preset number threshold, the recognition order of the multiple user identity data is determined to be identifying body temperature data, pressure data, and inertial sensor data in sequence.
[0042] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0043] Extracting multiple user identity data in sequence according to the recognition order;
[0044] Matching the currently extracted user identity data with preset identification data of the target user to obtain a first difference value, wherein the preset identification data is of the same type as the currently extracted user identity data;
[0045] Determine multiple similarities between the first difference and multiple preset differences, where the multiple similarities correspond to the multiple preset differences one by one;
[0046] If the maximum similarity among the multiple similarities is greater than or equal to the preset similarity threshold, it is determined that the recognition result is that at least one user identity data among the multiple user identity data is successfully recognized.
[0047] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0048] Ratios of the first difference value to a plurality of preset difference values are calculated respectively to obtain a plurality of ratios, the plurality of ratios being a plurality of similarities, and the plurality of ratios being in one-to-one correspondence with the plurality of preset difference values.
[0049] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0050] Acquire first user characteristic information detected by a terminal device associated with a target user; wherein the first user characteristic information includes first inertial sensor information, first body temperature information, and first pressure information;
[0051] Acquire second user characteristic information detected by the electronic lock associated with the target user; wherein the second user characteristic information includes second inertial sensor information, second body temperature information, and second pressure information;
[0052] Determine a plurality of third differences between the first user characteristic information and the second user characteristic information, wherein the plurality of third differences are preset differences; wherein the plurality of third differences include a difference between the first inertial sensor information and the second inertial sensor information, a difference between the first body temperature information and the second body temperature information, and a difference between the first pressure information and the second pressure information.
[0053] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0054] A prompt message indicating successful recognition is sent to the terminal device connected to the electronic lock.
[0055] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0056] When identification fails according to each user's identity data, the number of identification failures is updated;
[0057] When the number of failures is greater than a first preset number threshold, a warning message is sent to a device associated with the electronic lock, and the number of identification failures is cleared.
[0058] Further, the processor 1001 may call the electronic lock control program stored in the memory 1005, and further perform the following operations:
[0059] When the number of failures is greater than a second preset number threshold, no response to the unlocking instruction is given within a preset time period.
[0060] Reference Figure 2 The first embodiment of the present invention provides an electronic lock control method, the electronic lock control method comprising:
[0061] Step S10, when detecting an unlocking command triggered by a target user, the control device of the electronic lock acquires multiple user identity data detected by the electronic lock; wherein the multiple user identity data include inertial sensor data, body temperature data and pressure data;
[0062] In this embodiment, the control device of the electronic lock is, for example, a processor in the electronic lock. The processor can control the electronic lock to perform various operations through a computer program. The electronic lock is a locking device that works based on a circuit. The unlocking instruction is an instruction corresponding to the unlocking operation triggered by a target user detected by the control device of the electronic lock. The user identity data is used to identify the user's characteristics. The inertial sensor data refers to data detected by an inertial sensor, such as acceleration data and gyroscope data. The body temperature data is data detected by a temperature sensor. The pressure data is data detected by a pressure sensor.
[0063] In actual application scenarios, different users have different ways of operating the lock when unlocking it. For example, different users rotate the door handle at different speeds, which causes the inertial sensor to detect different data change trends. This can identify a person's identity to a certain extent. In addition, the user's grip on the door handle is different, and each person's body temperature is different. Therefore, the user's identity can be identified through pressure data, body temperature data, and inertial sensor data.
[0064] When detecting user identity data, various types of electronic locks are adapted so that inertial sensor data, body temperature data, and pressure data can be obtained simultaneously. For example, for an electronic lock that is unlocked by rotating the handle of the electronic lock, the pressure sensor and the temperature sensor can be placed at a position that is convenient for the user to hold, so that the pressure data and the body temperature data can be obtained while the user is holding the lock, and the inertial sensor is placed at a position that is convenient for detecting the change trend of each axis (generally three axes) of the inertial sensor to obtain the inertial sensor data. In addition, for such an electronic lock that is operated by rotating the handle, when it is detected that at least one of the inertial sensor data, the body temperature data, and the pressure data has a relatively obvious change, it can be determined that the user has triggered the unlocking operation, thereby determining that the unlocking instruction has been detected.
[0065] Step S20, the control device of the electronic lock obtains the number of terminal devices connected to the wireless network where the electronic lock is located, and determines the recognition order of multiple user identity data according to the number of terminal devices;
[0066] A wireless network is a network connection method that does not require cables to achieve communication. A wireless network can be a wireless local area network (WLAN) technology. The electronic lock is connected to a device that provides a wireless network and is in a wireless network. The form of the wireless network device is not limited. For example, the wireless network device can be a wireless access point (WAP), a wireless router, a bridge, etc. The terminal device includes various computer terminal devices, such as a smart phone, a tablet computer, a desktop computer, and a laptop computer. It should be noted that the electronic lock and the terminal device are in the same network. The identification order refers to the order of identifying inertial sensor data, body temperature data, and pressure sensor data. After selecting any identification order, the electronic lock identifies each user identity data in turn according to the identification order.
[0067] Step S30, the control device of the electronic lock identifies the identity data of multiple users in sequence according to the identification order to obtain an identification result;
[0068] The recognition order can be to recognize body temperature data, pressure data, and inertial sensor in sequence, or to recognize pressure data, body temperature data, and inertial sensor data in sequence. The recognition order can also be set according to actual needs. During the sequential recognition process, when a certain user identity data is successfully recognized, the recognition is stopped. When the recognition fails, the recognition of the next user identity data is continued until the recognition is successful. If the recognition of each user identity data fails, a prompt message of recognition failure can be output to prompt the user to re-identify.
[0069] Step S40, if the identification result is that at least one of the multiple user identity data is successfully identified, the control device of the electronic lock performs an unlocking operation and stops identifying the user identity data;
[0070] In the process of identifying the user identity according to the identification sequence, as long as at least one user identity data among multiple user identity data is successfully identified, it indicates that the user identity is correct, and the unlocking operation is then performed, and the identification of the user identity data is stopped at the same time.
[0071] In this embodiment, by acquiring user identity data when an unlocking command triggered by a target user is detected, the recognition order for identifying the user identity data is determined according to the number of terminal devices in the wireless network where the electronic lock is located, and identification is performed according to the recognition order. When the identification is successful, the lock is unlocked. Thus, the recognition order can be automatically determined according to the number of terminal devices in the wireless network, and the identification process and the unlocking process can be automatically completed, thereby accurately identifying a specific user and improving the accuracy of unlocking the electronic lock for a specific user.
[0072] Reference Figure 3 A second embodiment is proposed based on the first embodiment. In the second embodiment, step S20 in the first embodiment includes:
[0073] Step S21, when the number of terminal devices is greater than a preset number threshold, the control device of the electronic lock determines the recognition order of multiple user identity data to sequentially recognize pressure data, body temperature data, and inertial sensor data;
[0074] The preset number threshold is used to measure whether the terminal devices exceed the preset standard. The preset number threshold can be determined according to the number of terminal devices connected to the wireless network. For example, the preset number threshold can be set to half of the number of all terminal devices. When the number of terminal devices is greater than half of the number of all terminal devices, pressure data, body temperature data, and inertial sensor data are identified in sequence. Among them, when the number of terminal devices is greater than the preset threshold, the accuracy of using pressure data for identification is higher.
[0075] Step S22, when the number of terminal devices is less than or equal to a preset number threshold, the control device of the electronic lock determines the recognition order of multiple user identity data to sequentially recognize body temperature data, pressure data, and inertial sensor data.
[0076] When the number of terminal devices is less than or equal to the preset number threshold, the body temperature data is preferentially identified, and when the identification is unsuccessful, the pressure data and the inertial sensor data are further identified. Among them, when the number of terminal devices is less than or equal to the preset threshold, the accuracy of body temperature data identification is higher.
[0077] Step S30 includes:
[0078] Step S50: the control device of the electronic lock sends a prompt message indicating successful identification to a terminal device connected to the electronic lock.
[0079] The prompt information is used to inform the terminal device connected to the electronic lock that the electronic lock is successfully unlocked, so that any terminal device connected to the electronic lock can obtain the information that the electronic lock is unlocked, which is convenient for the user to know the unlocking status of the electronic lock.
[0080] In this embodiment, the recognition order is determined by judging the relationship between the number of terminal devices and a preset number threshold. When the number of terminal devices is greater than the preset number threshold, the recognition order is to sequentially recognize pressure data, body temperature data, and inertial sensor data. When the number of terminal devices is less than or equal to the preset number threshold, the recognition order is to sequentially recognize body temperature data, pressure data, and inertial sensor data. This allows different recognition orders to be used to improve recognition accuracy when the number of terminal devices connected to the wireless network is different.
[0081] Reference Figure 4 A third embodiment is proposed based on the first embodiment. In the third embodiment, step S30 in the first embodiment includes:
[0082] Step S31, the control device of the electronic lock sequentially extracts multiple user identity data according to the recognition order;
[0083] Extracting multiple user identity data refers to the process of obtaining specific user identity data from the data detected by the electronic lock. For example, the recognition order is to recognize body temperature data, pressure data, and inertial sensor data in sequence, and then extract body temperature data, pressure data, and inertial sensor data from the memory in sequence.
[0084] Step S32, the control device of the electronic lock matches the currently extracted user identity data with the preset identification data of the target user to obtain a first difference value, and the preset identification data is the same as the currently extracted user identity data type;
[0085] The preset identification data is the identity data associated with each user of all terminal devices connected to the wireless local area network where the electronic lock is located, including inertial sensor data, pressure data and body temperature data. The preset identification data can be obtained and saved in advance. In order to obtain the preset identification data, each identity data can be tested in a specific scenario. The testing method is to let the user perform a specific action when the user to be tested is determined. This specific action is determined according to the preset identification data to be obtained. For example, to determine the inertial sensor data of a certain user, the data on each axis detected by the inertial sensor on the terminal device when the user picks up a certain terminal device can be tested. If the body temperature data is to be determined, the body temperature of a specific body part can be measured by the temperature sensor on the terminal device. If the pressure data is to be obtained, the pressure of the user pressing the pressure sensor of the terminal device can be detected. In order to obtain more accurate user identity data, the user can also repeat the process multiple times to obtain multiple groups of data, and calculate the average value, and use the average value as the user identity data. A human-computer interaction interface can also be provided on the terminal device to guide each step of the user's operation. The electronic lock can obtain the preset identification data from the terminal device in advance and save the preset identification data in the memory. The first difference is the difference between the preset identification data and the user identity data. In addition, the first difference can also be regarded as the absolute value of the difference between the preset identification data and the user identity data.
[0086] Step S33, the control device of the electronic lock determines multiple similarities between the first difference and multiple preset differences, and the multiple similarities correspond to the multiple preset differences one by one;
[0087] The preset difference is the difference between the first user characteristic information and the second user characteristic information, wherein the first user characteristic information is the user information detected by the terminal device under a preset condition, and the second user characteristic information is the user information detected by the electronic lock under a preset condition. The user information refers to the data detected by the inertial sensor, the body temperature data, and the pressure data. The preset condition refers to the condition for obtaining the user information corresponding to the user when the user identity is determined. The similarity is used to measure the degree of correlation between the first difference and the preset difference. The higher the similarity, the more correlated the first difference is with the preset difference, and thus the user identities corresponding to the first difference and the preset difference are also more correlated.
[0088] Step S34: if the maximum similarity among the multiple similarities is greater than or equal to the preset similarity threshold, the control device of the electronic lock determines that the recognition result is that at least one user identity data among the multiple user identity data is successfully recognized.
[0089] The maximum similarity is the maximum value among the similarities. By comparing the values of the various similarities, the maximum value is determined to be the maximum similarity. The maximum similarity is used to determine the preset identification data that is most relevant to the user identity data. The preset similarity threshold is used to indicate whether the similarity meets the standard. The maximum similarity is compared with the preset similarity threshold. When the maximum similarity is greater than or equal to the preset similarity threshold, it indicates that the maximum similarity meets the standard, that is, the maximum similarity meets the accuracy required to identify a certain user identity. At this time, it indicates that the recognition result is that at least one user identity data among multiple user identity data is successfully recognized.
[0090] In this embodiment, by extracting user identity data in an identification order and identifying the user identity data according to preset identification data, a first difference is obtained, and the similarity between the first difference and the preset difference is compared to obtain a maximum similarity. When the maximum similarity is greater than or equal to a preset similarity threshold, identification is successful. This process is automatically executed without manual operation, and is capable of identifying specific users, thereby improving the convenience and accuracy of unlocking electronic locks.
[0091] Reference Figure 5 A fourth embodiment is proposed based on the third embodiment. In the fourth embodiment, step S33 in the third embodiment includes:
[0092] In step S331, the control device of the electronic lock calculates the ratios of the first difference and the plurality of preset differences respectively to obtain a plurality of ratios, wherein the plurality of ratios are a plurality of similarities, and the plurality of ratios correspond one to one to the plurality of preset differences.
[0093] The ratio of each preset difference to the first difference is the similarity. If the similarity is greater than or equal to the preset similarity threshold, it indicates that the user identity data is successfully identified. If it is less than the preset similarity threshold, it indicates that the user identity identification fails and other user identity data identification processes can be further performed.
[0094] In this embodiment, the similarity is determined by determining the ratio of each preset difference to the first difference. The method for calculating the similarity is simple and has high calculation efficiency, which improves the efficiency of the operation and the accuracy of unlocking the electronic lock.
[0095] Reference Figure 6 A fifth embodiment is proposed based on the third embodiment. In the fifth embodiment, the electronic lock control method further includes:
[0096] Step S60, the control device of the electronic lock obtains first user characteristic information detected by a terminal device associated with the target user; wherein the first user characteristic information includes first inertial sensor information, first body temperature information, and first pressure information;
[0097] The form of associating the terminal device with the user is not limited. The hardware information of the terminal device, such as the physical address, can be associated with the user. The first user characteristic information is the user information detected by the terminal device, which includes the first inertial sensor information, the first body temperature information, and the first pressure information. The first inertial sensor is the information of the inertial sensor detected by the terminal device, the first body temperature information is the body temperature information of the user detected by the terminal device, and the first pressure information is the pressure information of the user on the terminal device detected by the terminal device. It should be noted that the detection of the first user characteristic information can be under certain conditions. For example, the user can be prompted to start detecting the first pressure information. At this time, the user is asked to press at a specific position of the terminal device and determine the pressure. The detection of the first inertial sensor information allows the user to perform a specific action and record the data of the first inertial sensor in the action. When detecting the first body temperature information, the user can be asked to hold a specific position and a specific time. In addition, when detecting the body temperature, the terminal device can also be a wearable device. After obtaining the first user characteristic information, the first user characteristic information can be saved.
[0098] Step S70, the control device of the electronic lock obtains second user characteristic information detected by the electronic lock associated with the target user, wherein the second user characteristic information includes second inertial sensor information, second body temperature information, and second pressure information;
[0099] The second user characteristic information is user information detected by the electronic lock, the second inertial sensor information is inertial sensor information detected by the electronic lock itself, the second body temperature information is body temperature information of the user detected by the electronic lock, and the second pressure information is pressure information of the user on the electronic lock detected by the electronic lock. After the second user characteristic information is acquired, the second user characteristic information can be saved.
[0100] In step S80, the control device of the electronic lock determines multiple third differences between the first user characteristic information and the second user characteristic information, where the multiple third differences are preset differences, wherein the multiple third differences include the difference between the first inertial sensor information and the second inertial sensor information, the difference between the first body temperature information and the second body temperature information, and the difference between the first pressure information and the second pressure information.
[0101] The third difference is the difference between the first user characteristic information and the second user characteristic information. The third difference describes the correlation between the first user characteristic information and the second user characteristic information. For a user, the difference between the user characteristic information on the electronic lock and the user characteristic information on the terminal device is stable. By obtaining a sufficient amount of data of the first user characteristic information and the second user characteristic information to calculate the difference, a user can be uniquely identified by the difference.
[0102] In this embodiment, by obtaining the third difference between the first user feature information detected by the terminal device associated with the user and the second user feature information detected by the electronic lock, and saving the third difference as the preset difference, the similarity can be determined according to the preset difference, and finally the user identity can be identified.
[0103] Reference Figure 7 A sixth embodiment of the present invention provides an electronic lock control method, comprising:
[0104] Step S10, when detecting an unlocking command triggered by a target user, obtaining multiple user identity data detected by the electronic lock; wherein the multiple user identity data includes inertial sensor data, body temperature data, and pressure data;
[0105] Step S20, obtaining the number of terminal devices connected to the wireless network where the electronic lock is located, and determining the recognition order of multiple user identity data according to the number of terminal devices;
[0106] Step S30, identifying multiple user identity data in sequence according to the identification order to obtain an identification result;
[0107] Step S90, if the recognition result is that multiple user identity data all fail to be recognized, the control device of the electronic lock updates the number of recognition failures;
[0108] Identification is performed in the order of identification. If the identification result is that multiple user identity data fail to be identified, the failure information is recorded and the number of failures is accumulated by 1. The number of failures is updated when multiple user identity data identifications fail. If the user attempts identification multiple times, the number of failures will continue to accumulate and update.
[0109] Step S100: When the number of failures is greater than a first preset number threshold, the control device of the electronic lock sends a warning message to a device associated with the electronic lock and clears the number of identification failures.
[0110] If the user attempts to identify based on multiple user identity data multiple times, the updated number of identification failures will gradually accumulate. When the number of failures is too high, it may indicate that the current user cannot be identified. Therefore, a judgment is made through a first preset number threshold to determine whether the number of failures is too high. When the number of failures is greater than the first preset number threshold, an early warning message is sent to a device associated with the electronic lock to let the relevant users know that the number of failed attempts to unlock the electronic lock is too high. After the early warning message is sent, the number of failures is cleared to allow the next update of the number of identification failures.
[0111] In this embodiment, when identification fails according to multiple user identity data, the number of identification failures is updated, and when the number of failures is greater than a first preset number threshold, an early warning message is sent to the device associated with the electronic lock, so that the device associated with the electronic lock can promptly understand that the number of failed attempts to unlock the electronic lock is too high, which is convenient for determining the situation where the electronic lock fails to be unlocked.
[0112] Reference Figure 8 The seventh embodiment of the present invention provides an electronic lock control method, comprising:
[0113] Step S10, when detecting an unlocking command triggered by a target user, obtaining multiple user identity data detected by the electronic lock; wherein the multiple user identity data includes inertial sensor data, body temperature data, and pressure data;
[0114] Step S20, obtaining the number of terminal devices connected to the wireless network where the electronic lock is located, and determining the recognition order of multiple user identity data according to the number of terminal devices;
[0115] Step S30, identifying multiple user identity data in sequence according to the identification order to obtain an identification result;
[0116] Step S90, if the recognition result is that multiple user identity data all fail to be recognized, the control device of the electronic lock updates the number of recognition failures;
[0117] Step S110: When the number of failures is greater than a second preset number threshold, the control device of the electronic lock does not respond to the unlocking instruction within a preset time period.
[0118] The second preset number threshold is used to measure whether the number of recognition failures is too high. In one scenario, in order to unlock the door, you can continuously try to trigger the recognition process through various combinations of user identity data. In theory, when the number of attempts reaches a certain value, the door may be unlocked. In order to avoid the operation of unlocking the door by trying a large number of different combinations of user identity data, for safety reasons, the second preset number threshold is set. When it is greater than the second preset number threshold, the unlocking instruction will not be responded to.
[0119] In this embodiment, when the number of failures is greater than a second preset number threshold, the unlocking instruction is not responded to within a preset time period, thereby improving the security of the electronic lock.
[0120] The invention also provides an electronic lock control device.
[0121] Reference Fig. 9 , Fig. 9 This is a block diagram of the functional units of the electronic lock control device of the present invention, and the electronic lock control device includes:
[0122] The first acquisition unit 10 is used to acquire multiple user identity data detected by the electronic lock when an unlocking command triggered by a target user is detected; wherein the multiple user identity data include inertial sensor data, body temperature data and pressure data;
[0123] A second acquisition unit 20 is used to acquire the number of terminal devices connected to the wireless network where the electronic lock is located;
[0124] A determination unit 30, configured to determine an identification order of multiple user identity data according to the number of terminal devices;
[0125] The identification unit 40 is used to identify the multiple user identity data in sequence according to the identification order to obtain the identification result;
[0126] The execution unit 50 is configured to execute an unlocking operation and stop identifying the user identity data if the identification result shows that at least one of the multiple user identity data is successfully identified.
[0127] In one embodiment, the determination unit 30 is further configured to determine, when the number of terminal devices is greater than a preset number threshold, the order of identifying the plurality of user identity data to sequentially identify pressure data, body temperature data, and inertial sensor data; or
[0128] The determination unit 30 is further configured to determine, when the number of terminal devices is less than or equal to a preset number threshold, the order of identifying the multiple user identity data to sequentially identify body temperature data, pressure data, and inertial sensor data.
[0129] In one embodiment, the identification unit 40 is further used to sequentially extract multiple user identity data according to the identification order;
[0130] The identification unit 40 is further used to match the currently extracted user identity data with the preset identification data of the target user to obtain a first difference, the preset identification data and the currently extracted user identity data being of the same type;
[0131] The determination unit 30 is further configured to determine a plurality of similarities between the first difference and a plurality of preset differences, wherein the plurality of similarities correspond one-to-one to the plurality of preset differences;
[0132] The determination unit 30 is further configured to determine that the recognition result is that at least one of the multiple user identity data is successfully recognized if the maximum similarity among the multiple similarities is greater than or equal to a preset similarity threshold.
[0133] In one embodiment, the determination unit 30 is further configured to respectively calculate ratios of the first difference value to a plurality of preset difference values to obtain a plurality of ratios, wherein the plurality of ratios are a plurality of similarities, and the plurality of ratios correspond one-to-one to the plurality of preset difference values.
[0134] In one embodiment, the first acquisition unit 10 is further used to acquire first user characteristic information detected by a terminal device associated with the target user; wherein the first user characteristic information includes first inertial sensor information, first body temperature information, and first pressure information;
[0135] The first acquisition unit 10 is further used to acquire second user characteristic information detected by the electronic lock associated with the target user; wherein the second user characteristic information includes second inertial sensor information, second body temperature information and second pressure information;
[0136] The determination unit 30 is also used to determine multiple third differences between the first user characteristic information and the second user characteristic information, and the multiple third differences are preset differences; wherein the multiple third differences include the difference between the first inertial sensor information and the second inertial sensor information, the difference between the first body temperature information and the second body temperature information, and the difference between the first pressure information and the second pressure information.
[0137] In one embodiment, the execution unit 50 is further configured to send a prompt message indicating successful identification to a terminal device connected to the electronic lock.
[0138] In one embodiment, the execution unit 50 is further configured to update the number of identification failures if the identification result is that the identification of multiple user identity data fails.
[0139] The execution unit 50 is further configured to send a warning message to a device associated with the electronic lock and clear the number of identification failures when the number of failures is greater than a first preset number threshold.
[0140] In one embodiment, the execution unit 50 is further configured to not respond to the unlocking instruction within a preset time period when the number of failures is greater than a second preset number threshold.
[0141] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium, on which an electronic lock control program is stored, and when the electronic lock control program is executed by a processor, the steps of the electronic lock control method of any of the above embodiments are implemented.
[0142] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0143] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0144] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as above, and includes a number of instructions for enabling an electronic lock device to execute the methods of various embodiments of the present invention.
[0145] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. An electronic lock control method, characterized in that: include: When an unlocking command triggered by a target user is detected, multiple user identity data detected by the electronic lock are acquired; wherein the multiple user identity data include inertial sensor data, body temperature data, and pressure data; Acquire the number of terminal devices connected to the wireless network where the electronic lock is located, and determine the recognition order of the multiple user identity data according to the number of terminal devices; Extracting the plurality of user identity data in sequence according to the recognition order; matching the currently extracted user identity data with the preset recognition data of the target user to obtain a first difference, wherein the preset recognition data is of the same type as the currently extracted user identity data; Acquire first user characteristic information detected by a terminal device associated with the target user; acquire second user characteristic information detected by the electronic lock associated with the target user; determine a plurality of third differences between the first user characteristic information and the second user characteristic information, the plurality of third differences being preset differences, the first user characteristic information comprising first inertial sensor information, first body temperature information, and first pressure information; the second user characteristic information comprising second inertial sensor information, second body temperature information, and second pressure information; the plurality of third differences comprising a difference between the first inertial sensor information and the second inertial sensor information, a difference between the first body temperature information and the second body temperature information, and a difference between the first pressure information and the second pressure information; Determine a plurality of similarities between the first difference and a plurality of preset differences, wherein the plurality of similarities correspond one-to-one to the plurality of preset differences; If the maximum similarity among the multiple similarities is greater than or equal to the preset similarity threshold, it is determined that the recognition result is that at least one user identity data among the multiple user identity data is successfully recognized; If the identification result is that at least one of the multiple user identity data is successfully identified, an unlocking operation is performed and identification of the user identity data is stopped.
2. The method according to claim 1, characterized in that The determining the identification order of the plurality of user identity data according to the number of the terminal devices comprises: When the number of the terminal devices is greater than a preset number threshold, determining the recognition order of the multiple user identity data is to sequentially recognize the pressure data, the body temperature data, and the inertial sensor data; or, When the number of the terminal devices is less than or equal to the preset number threshold, the recognition order of the multiple user identity data is determined to be sequentially identifying the body temperature data, the pressure data, and the inertial sensor data.
3. The method according to claim 1, characterized in that The determining of multiple similarities between the first difference and multiple preset differences includes: Ratios of the first difference value to a plurality of preset difference values are calculated respectively to obtain a plurality of ratios, wherein the plurality of ratios are a plurality of similarities, and the plurality of ratios correspond one-to-one to the plurality of preset difference values.
4. The method according to any one of claims 1 to 3, characterized in that: After the unlocking operation is performed and the identification of the user identity data is stopped, the method further includes: A prompt message indicating successful identification is sent to a terminal device connected to the electronic lock.
5. An electronic lock control device, characterized in that: include: A first acquisition unit, configured to acquire multiple user identity data detected by the electronic lock when an unlocking command triggered by a target user is detected; wherein the multiple user identity data include inertial sensor data, body temperature data, and pressure data; A second acquisition unit is used to acquire the number of terminal devices connected to the wireless network where the electronic lock is located; A determination unit, configured to determine an identification order of the plurality of user identity data according to the number of the terminal devices; an identification unit, configured to extract the plurality of user identity data in sequence according to the identification order; match the currently extracted user identity data with the preset identification data of the target user to obtain a first difference value, wherein the preset identification data is of the same type as the currently extracted user identity data; obtain first user feature information detected by a terminal device associated with the target user; obtain second user feature information detected by the electronic lock associated with the target user; determine a plurality of third differences between the first user feature information and the second user feature information, wherein the plurality of third differences are preset differences; determine a plurality of similarities between the first difference and a plurality of preset differences, wherein the plurality of similarities correspond one-to-one to the plurality of preset differences; An execution unit is used to determine that the recognition result is that at least one user identity data among the multiple user identity data is successfully recognized if the maximum similarity among the multiple similarities is greater than or equal to a preset similarity threshold; and to perform an unlocking operation and stop recognizing the user identity data if the recognition result is that at least one user identity data among the multiple user identity data is successfully recognized.
6. The device according to claim 5, characterized in that In determining the identification order of the plurality of user identity data according to the number of the terminal devices, the determining unit is specifically configured to: When the number of the terminal devices is greater than a preset number threshold, determining the recognition order of the multiple user identity data is to sequentially recognize the pressure data, the body temperature data, and the inertial sensor data; or, When the number of the terminal devices is less than or equal to the preset number threshold, the recognition order of the multiple user identity data is determined to be sequentially identifying the body temperature data, the pressure data, and the inertial sensor data.
7. An electronic lock, characterized in that: The electronic lock includes a memory, a processor, and an electronic lock control program stored in the memory and executable on the processor. When the electronic lock control program is executed by the processor, the steps of the electronic lock control method according to any one of claims 1 to 4 are implemented.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an electronic lock control program, and when the electronic lock control program is executed by the processor, the steps of the electronic lock control method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Identity recognition device based on multiple sensors as well as identity recognition method
CN109598823A
Intelligent door and door lock opening method
CN111445604A