Method, device and storage medium for controlling opening of a door lock
By building a user data repository to record steps and frequency, and using the difference between actual steps, frequency and time to automatically determine whether to open the door lock, the problem of requiring user operation in existing technologies is solved, and convenient and safe automatic unlocking without user operation is achieved.
Patent Information
- Application Number
- CN202311416507.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2026-02-13
- Estimated Expiration
- 2043-10-27
AI Technical Summary
Existing smart door locks require user intervention to open, which is inconvenient.
By building a user data repository, recording users' steps, frequency, and predicted time, the system uses the difference between actual steps, frequency, and time to determine whether to automatically unlock the door without user intervention.
It enables automatic door unlocking without user intervention under specific conditions, improving convenience and security.
Smart Images

Figure CN117333972B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of intelligent door lock, in particular to a method for controlling door lock opening, a device for controlling door lock opening and a computer readable storage medium. BACKGROUND
[0002] With the application of smart home, the application of intelligent door lock is also more extensive. The current intelligent door lock needs the user to input fingerprint and password to open the door lock. That is, the user needs to perform corresponding operation to open the door lock. SUMMARY
[0003] The main purpose of the present application is to provide a method for controlling door lock opening, a device for controlling door lock opening and a computer readable storage medium to at least solve the problem that the user needs to perform corresponding operation to open the door lock.
[0004] In order to achieve the above purpose, according to one aspect of the present application, a method for controlling door lock opening is provided, comprising: constructing a user data repository, the user data repository storing at least one of reference step number and reference frequency and predicted time of user to door, the reference step number being the step number of the user walking from elevator entrance or stair entrance to door in historical time, the reference frequency being the walking frequency of the user in historical time; obtaining at least one of actual step number and actual frequency and actual time of user to door, the actual step number being the step number of the user walking from the elevator entrance or the stair entrance to the door this time, the actual frequency being the walking frequency of the user walking to the door this time; in the case that at least one of first condition and second condition is met and third condition is met, controlling the door lock to open, the third condition being that the difference between the predicted time and the actual time is less than a preset time difference, the first condition being that the difference between the reference step number and the actual step number is less than a preset step number difference, the second condition being that the difference between the reference frequency and the actual frequency is less than a preset difference.
[0005] Optionally, the predicted time of user to door is input by the user to the terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises: obtaining real-time position information of the user; obtaining calculated time of user to door according to the real-time position information and the position information of the destination; in the case that the difference between the predicted time of user to door and the calculated time of user to door is less than or equal to a difference threshold, determining that the user can arrive at the door within the predicted time; in the case that the difference between the predicted time of user to door and the calculated time of user to door is greater than the difference threshold, determining that the user cannot arrive at the door within the predicted time.
[0006] Optionally, after determining that the user fails to arrive at the door within the predicted time, the method further comprises: correcting the predicted time of the user to the door based on a difference between the predicted time of the user to the door and the calculated time of the user to the door, to obtain a corrected predicted time of the user to the door.
[0007] Optionally, the user data repository stores a plurality of reference frequencies, each of which corresponds to a shoe type, and in the case that at least one of the first condition and the second condition and the third condition are met, the method further comprises: comparing each of the reference frequencies with the actual frequency to obtain a comparison result; in the case that the comparison result indicates that the difference between the actual frequency and any one of the reference frequencies is less than a preset difference, it is determined that the second condition is met; in the case that the comparison result indicates that the difference between the actual frequency and all of the reference frequencies is greater than or equal to the preset difference, it is determined that the second condition is not met.
[0008] Optionally, before constructing the user data repository, the method further comprises: obtaining sound data of the user walking in different types of shoes; and extracting a plurality of reference frequencies from the plurality of sound data.
[0009] Optionally, obtaining the actual step count comprises: obtaining a distance between the elevator or stairwell and the door; obtaining an actual time taken by the user to walk from the elevator or stairwell to the door; and determining the actual step count based on the distance and the actual time.
[0010] Optionally, in the case that at least the third condition is not met, the door lock is kept in the closed state.
[0011] Optionally, the user data repository further stores reference user image data, and the method further comprises: obtaining real-time user image data collected in real time; and in the case that the third condition and a fourth condition are met, controlling the door lock to open, wherein the fourth condition is that the similarity between the real-time user image data and the reference user image data is greater than a preset similarity.
[0012] According to another aspect of the present application, there is provided a device for controlling opening of a door lock, comprising: a constructing unit configured to construct a user data repository, the user data repository storing at least one of a reference step count, a reference frequency and a predicted time for a user to reach a door, the reference step count being a step count taken by the user to reach the door from an elevator door or a stair door in a historical time, the reference frequency being a walking frequency of the user in the historical time; an obtaining unit configured to obtain at least one of an actual step count, an actual frequency and an actual time for the user to reach the door, the actual step count being a step count taken by the user to reach the door from the elevator door or the stair door in a current time, the actual frequency being a walking frequency of the user to reach the door in the current time; and a controlling unit configured to control the door lock to open when at least one of a first condition and a second condition is met and a third condition is met, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset frequency difference.
[0013] According to still another aspect of the present application, there is provided a computer readable storage medium comprising a stored program, wherein the computer readable storage medium is configured to control a device on which the computer readable storage medium is located to perform any one of the methods for controlling opening of a door lock when the program is executed.
[0014] By applying the technical solution of the present application, whether the door lock is opened is controlled according to at least one of a difference between the reference step count and the actual step count, a difference between the reference frequency and the actual frequency, and a difference between the predicted time and the actual time, and the door lock can be opened without operation of the user. BRIEF DESCRIPTION OF DRAWINGS
[0015] The accompanying drawings, which form a part of the present description, are included to provide a further understanding of the application and are incorporated in and constitute a part of this application. The embodiments of the present application, and their
[0016] Figure 1 Fig. 1 shows a hardware structure block diagram of a mobile terminal for performing a method for controlling opening of a door lock according to an embodiment of the present application;
[0017] Figure 2 Fig. 2 shows a flowchart of a method for controlling opening of a door lock according to an embodiment of the present application;
[0018] Figure 3 Fig. 3 shows a structure block diagram of a device for controlling opening of a door lock according to an embodiment of the present application;
[0019] Figure 4 Fig. 4 shows a system flowchart of automatically opening a door lock according to different characteristics and individual customization of a user. DETAILED DESCRIPTION
[0020] It should be noted that the embodiments and features of the embodiments in the present application can be combined with each other in the case of no conflict. The present application will be described in detail below with reference to the drawings and in combination with the embodiments.
[0021] In order for those skilled in the technical field to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should be within the scope of protection of the present application.
[0022] It should be noted that the terms "first", "second" and the like in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0023] As introduced in the background, in the prior art, if a user wants to open a door lock, the user needs to operate the door lock accordingly. To solve the problem that the user needs to operate the door lock accordingly if the user wants to open the door lock, the embodiments of the present application provide a method for controlling the opening of a door lock, a device for controlling the opening of a door lock and a computer readable storage medium.
[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application.
[0025] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking the case of running on a mobile terminal as an example, Figure 1 is a hardware structure block diagram of a mobile terminal of a method for controlling the opening of a door lock according to an embodiment of the present application. As Figure 1 shown, the mobile terminal can include one or more Figure 1The mobile terminal can further include a transmission device 106 for communication function and an input / output device 108. Those skilled in the art can understand that, Figure 1 The structure shown is only schematic and does not limit the structure of the mobile terminal. For example, the mobile terminal can include more or less components than those shown, or have a different configuration or arrangement of the components. Figure 1 The mobile terminal can include more or less components than those shown, or have a different configuration or arrangement of the components. Figure 1 The mobile terminal can include more or less components than those shown, or have a different configuration or arrangement of the components.
[0026] The memory 104 can be used to store computer programs, such as software programs and modules of application software, and a computer program corresponding to the method for controlling the door lock to open in the embodiments of the present application. The processor 102 can execute various functional applications and data processing by running the computer program stored in the memory 104, i.e., implement the method described above. The memory 104 can include a high-speed random access memory, and can further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely disposed relative to the processor 102, which can be connected to the mobile terminal through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network can include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0027] In the embodiments of the present application, a method for operating a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0028] Figure 2 is a flowchart of the method for controlling the door lock to open according to the embodiments of the present application. As shown in Figure 2 the method includes the following steps:
[0029] Step S201, a user data repository is constructed, the user data repository storing at least one of a reference step number and a reference frequency, and a predicted time of the user to the door, the reference step number being a step number of the user from an elevator door or a stair door to the door in a historical time, the reference frequency being a walking frequency of the user in the historical time;
[0030] Specifically, the user data repository is a MySQL database, an Oracle database, a SqlServer database, and other databases.
[0031] For example, the predicted time of the user to the door is: expected to arrive after 15 minutes, expected to arrive after 10 minutes, expected to arrive after 8 minutes.
[0032] For example, the historical time is within the previous month, within the previous half month.
[0033] For example, the reference step number corresponding to the A user is 10 steps, the reference step number corresponding to the B user is 15 steps, the reference step number corresponding to the C user is 13 steps, the walking frequency corresponding to the A user is 60 steps / minute, the walking frequency corresponding to the B user is 70 steps / minute, and the walking frequency corresponding to the C user is 80 steps / minute.
[0034] The data obtained by this data repository needs to be initialized by the user for the first time, that is, the user needs to actually operate once to give the step number, the frequency, and the corresponding time to the record data repository in the central control subsystem for initialization data.
[0035] Step S202, at least one of an actual step number and an actual frequency, and an actual time of the user to the door are obtained, the actual step number being a step number of the user from an elevator door or a stair door to the door in the current time, the actual frequency being a walking frequency of the user to the door in the current time.
[0036] Specifically, the actual time can be understood as follows: when the user comes out from the elevator or the stair door, the sound recognition module on the door lock collects the first walking sound as the start time, and the infrared sensing module on the door lock is triggered for the first time as the end time, and the actual time of the user from the elevator door or the stair door to the door is from the start time to the end time; the actual step number is collected by the sound recognition module.
[0037] Step S203, in the case that at least one of a first condition and a second condition is met, and a third condition, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step number and the actual step number is less than a preset step difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference, the door lock is controlled to be opened.
[0038] Specifically, the preset time length difference value is set to 3 minutes; of course, in actual application, the preset time length difference value can be adjusted according to actual needs;
[0039] Specifically, the preset step difference value can be set to 1 step, and the preset difference value can be set to 5 steps / minute.
[0040] The third condition is satisfied, which means that the predicted time and the actual time are equal or very close, the second condition is satisfied, which means that the reference frequency and the actual frequency are equal or very close, and the first condition is satisfied, which means that the reference step number and the actual step number are equal or very close.
[0041] Specifically, the first condition and the second condition satisfy at least one of them and the third condition is satisfied, and the door lock is controlled to be opened, including three modes: 1) the first condition and the third condition are satisfied; 2) the second condition and the third condition are satisfied; 3) the first condition, the second condition and the third condition are satisfied.
[0042] In this embodiment, by constructing a user data repository, at least one of a reference step number and a reference frequency and a predicted time of a user to a door are stored in the user data repository, the reference step number is a step number of the user walking from an elevator port or a stair port to the door in a historical time, and the reference frequency is a walking frequency of the user in the historical time; at least one of an actual step number and an actual frequency and an actual time of the user to the door are obtained, the actual step number is a step number of the user walking from the elevator port or the stair port to the door in a current time, and the actual frequency is a walking frequency of the user walking to the door in the current time; in a case where at least one of a first condition and a second condition and a third condition are satisfied, the door lock is controlled to be opened, the third condition is that a difference value between the predicted time and the actual time is less than a preset time length difference value, the first condition is that a difference value between the reference step number and the actual step number is less than a preset step difference value, and the second condition is that a difference between the reference frequency and the actual frequency is less than a preset difference. According to at least one of the difference value between the reference step number and the actual step number, the difference between the reference frequency and the actual frequency, and the difference value between the predicted time and the actual time, whether the door lock is opened or not can be controlled, and the door lock can be opened without the user operating the door lock.
[0043] In the embodiment of the present application, the predicted time of the user to the door is input by the user into a terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises:
[0044] Real-time position information of the user is obtained; according to the real-time position information and position information of the destination, a calculated time of the user to the door is obtained; in a case where a difference value between the predicted time of the user to the door and the calculated time of the user to the door is less than or equal to a difference value threshold, it is determined that the user can arrive at the door in the predicted time; in a case where the difference value between the predicted time of the user to the door and the calculated time of the user to the door is greater than the difference value threshold, it is determined that the user cannot arrive at the door in the predicted time.
[0045] The preset input mode can be set by the app door lock plug-in page, and the personalized home time can be input by text or voice;
[0046] The real-time location information is obtained through the mobile phone app;
[0047] The difference threshold value can be set to 1 minute, 3 minutes, or 5 minutes;
[0048] According to the real-time location information and the location information of the destination, the calculation time of the user to the door is obtained, and the specific implementation is as follows:
[0049] According to the real-time location information and the location information of the destination, the distance is obtained, for example, 5 kilometers;
[0050] According to the distance from the user to the destination, the transportation tool is selected, for example, taking a bus, driving a car, walking, or other transportation tools, and the calculation time of the user to the door is obtained.
[0051] For example, the user sets a home time in the plug-in page, or inputs a voice command "I expect to be home in 10 minutes" through voice input, and at the same time, the actual location of the user is obtained to estimate whether the user can arrive home at the set time, and a verification comparison is made; in this way, a difference threshold value can be set to compare the difference between the predicted time of the user to the door and the calculation time, which can be used to determine whether the user can arrive at the door at the predicted time, so that the scheme is more reasonable.
[0052] Further, after determining that the user cannot arrive at the door at the predicted time, the method further comprises: after determining that the user cannot arrive at the door at the predicted time, correcting the predicted time of the user to the door by using the difference between the predicted time of the user to the door and the calculation time of the user to the door, to obtain the corrected predicted time of the user to the door.
[0053] The method is used when the user cannot arrive at the door within the predicted time, and the predicted time is corrected according to the difference between the actual calculation time and the predicted time; when the calculation time is greater than the predicted time, the difference threshold value is increased; when the calculation time is less than the predicted time, the difference threshold value is reduced;
[0054] For example, the predicted time is 10 minutes, the calculation time is 15 minutes, the difference threshold value is 3 minutes, the calculation time is greater than the budget time, the difference is 5 minutes which is greater than the difference threshold value, and the predicted time is corrected to 15 minutes.
[0055] In this way, the prediction time system can be continuously improved, and the automatic door opening effect can be achieved more flexibly and intelligently.
[0056] Further, the user data repository stores a plurality of different reference frequencies, each corresponding to a shoe type. In the case that the first condition and the second condition and the third condition are met, before the door lock is controlled to open, the method further comprises: comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result; in the case that the comparison result represents that the difference between the actual frequency and any one of the plurality of reference frequencies is less than a preset difference, it is determined that the second condition is met; in the case that the comparison result represents that the difference between the actual frequency and all reference frequencies is greater than or equal to the preset difference, it is determined that the second condition is not met.
[0057] For example, the shoe types include cloth shoes, sports shoes and leather shoes, the reference frequency corresponding to the cloth shoes is the first reference frequency, the reference frequency corresponding to the sports shoes is the second reference frequency, and the reference frequency corresponding to the leather shoes is the third reference frequency.
[0058] In the case that the actual frequency is consistent with the first reference frequency or the difference is small, or is consistent with the second reference frequency or the difference is small, or is consistent with the third reference frequency or the difference is small, it is determined that the second condition is met.
[0059] The method has the difference between the tone corresponding to any one of the reference frequencies in the user data repository and the tone corresponding to the actual frequency less than or equal to a preset difference, realizes automatic opening of the door lock, and can achieve more accurate judgment and automatic unlocking convenience.
[0060] Before the user data repository is constructed, the method further comprises: obtaining sound data when a user walks in different types of shoes; and extracting a plurality of reference frequencies from the plurality of sound data.
[0061] The method obtains data of the user walking in different types of shoes, collects sound according to the sound frequency and tone caused by the weight of the user, the sole material of the shoes and the contact area with the ground, and performs difference comparison between the reference sound data and the actual sound data. If the condition is met, the actual sound data is recorded into the system as one of the reference data for subsequent difference comparison. In this way, the door lock can be automatically opened, the use is more flexible, and the safety is greatly improved.
[0062] In the embodiment, the actual step count obtained in the step S202 includes: obtaining the distance between the elevator entrance or the staircase entrance and the door entrance; obtaining the actual time taken by the user to walk from the elevator entrance or the staircase entrance to the door entrance; and determining the actual step count according to the distance and the actual time.
[0063] The mapping relationship among the distance, the time and the step count in the historical time period is determined, that is, the mapping relationship between the distance and the time and the step count is constructed.
[0064] According to the mapping relationship, the actual distance from the elevator or stairway entrance to the door and the actual time from the elevator or stairway entrance to the door are derived to obtain the actual number of steps;
[0065] Based on the mapping relationship, for example: 1) the distance is 8 meters, the time is 5 seconds, and the actual number of steps is 10 steps; 2) the distance is 8 meters, the time is 6 seconds, and the actual number of steps is 12 steps;
[0066] In this way, the first condition for automatically opening the door lock can be more accurate and flexible.
[0067] Further, the method further comprises: in the case that at least the third condition is not met, controlling the door lock to remain in a closed state.
[0068] The third condition of the method is a necessary condition for automatically opening the door lock in the present solution embodiment, which can improve the accuracy of automatic unlocking and avoid the problem of automatic door unlocking failure due to inaccurate first and second conditions.
[0069] Further, the user data repository also stores reference user image data, and the method further comprises: acquiring real-time user image data collected in real time; and in the case that the third condition and the fourth condition are met, controlling the door lock to open, wherein the fourth condition is that the similarity between the real-time user image data and the reference user image data is greater than a preset similarity.
[0070] The method uses the user image data stored in the data repository for identification, compares the actual user image with the reference user image, and controls the door lock to automatically open if the similarity is greater than a preset similarity and any one of the first condition and the second condition and the third condition is met. The fourth condition is added, which can greatly improve the accuracy and safety of automatically opening the door lock.
[0071] In order for those skilled in the art to more clearly understand the technical solutions of the present application, the implementation process of the method for controlling the door lock to open will be described in detail below in conjunction with specific embodiments.
[0072] The present embodiment relates to a specific method for controlling the door lock to open, as shown in Figure 4 The method comprises the following steps:
[0073] Step S1: comparing the total distance from the elevator or stairway entrance to the door and the time taken to walk from the elevator or stairway to the door to derive the number of steps generated during the period as the first condition;
[0074] Step S2: inputting the frequency of each type of user shoes as the second condition;
[0075] Step S3: inputting the personalized home time of the user as the third condition;
[0076] Step S4: comparing the first condition, the second condition, the third condition with the user feature and the dynamic library of the personalized record;
[0077] Step S5: confirming the user identity when the first condition, the third condition are met or the second condition, the third condition are met or the first condition, the second condition, the third condition are met, and the door lock is opened by the control.
[0078] The embodiment of the present application relates to a specific method for controlling the opening of a door lock, which controls whether the door lock is opened according to at least one of a difference between a reference step number and an actual step number, a difference between a reference frequency and an actual frequency, and a difference between a predicted time and an actual time, and opens the door lock without the user operating the door lock.
[0079] The embodiment of the present application also provides a device for controlling the opening of a door lock. It should be noted that the device for controlling the opening of a door lock in the embodiment of the present application can be used to execute the method for controlling the opening of a door lock provided by the embodiment of the present application. The device is used to realize the above-mentioned embodiment and preferred embodiment, and details are not described herein. As used below, the term "module" can be a combination of software and / or hardware that realizes a predetermined function. Although the device described in the following embodiment is preferably realized in software, realization in hardware or a combination of software and hardware is also possible and is contemplated.
[0080] The device for controlling the opening of a door lock provided by the embodiment of the present application is described below.
[0081] Figure 3 is a schematic diagram of the device for controlling the opening of a door lock according to the embodiment of the present application. As shown in Figure 3 , the device comprises:
[0082] The construction unit 31 is configured to construct a user data repository, and the user data repository stores at least one of a reference step number and a reference frequency and a predicted time of a user to a door, the reference step number being a step number of the user walking from an elevator door or a stair door to the door in a historical time, and the reference frequency being a walking frequency of the user in the historical time;
[0083] The acquisition unit 32 is configured to acquire at least one of an actual step number and an actual frequency and an actual time of the user to the door, the actual step number being a step number of the user walking from the elevator door or the stair door to the door this time, and the actual frequency being a walking frequency of the user walking to the door this time;
[0084] The control unit 33 is configured to control the door lock to open when at least one of a first condition and a second condition and a third condition is met, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step count difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference.
[0085] In this embodiment, the door lock is controlled to open or not to open according to at least one of a difference between the reference step count and the actual step count, a difference between the reference frequency and the actual frequency, and a difference between the predicted time and the actual time, so that the door lock can be opened without the user operating the door lock.
[0086] As an optional solution, the input unit comprises a first acquisition module, a obtaining module, a first determination module and a second determination module.
[0087] The first acquisition module is configured to acquire real-time position information of the user.
[0088] The obtaining module is configured to obtain a calculated time for the user to reach the door according to the real-time position information and position information of the destination.
[0089] The first determination module is configured to determine that the user can reach the door at the predicted time when a difference between the predicted time for the user to reach the door and the calculated time for the user to reach the door is less than or equal to a difference threshold.
[0090] The second determination module is configured to determine that the user fails to reach the door at the predicted time when the difference between the predicted time for the user to reach the door and the calculated time for the user to reach the door is greater than the difference threshold.
[0091] The method compares a difference between the predicted time for the user to reach the door and the calculated time for the user to reach the door according to setting a difference threshold, which can be used to determine whether the user can reach the door at the predicted time, so that the solution is more reasonable.
[0092] As an optional solution, the device further comprises a correction unit.
[0093] The correction unit is configured to correct the predicted time for the user to reach the door according to the difference between the predicted time for the user to reach the door and the calculated time for the user to reach the door after determining that the user fails to reach the door at the predicted time, to obtain a corrected predicted time for the user to reach the door.
[0094] The method corrects the predicted time for the user to reach the door according to the difference between the predicted time for the user to reach the door and the calculated time for the user to reach the door when the user fails to reach the door at the predicted time, so that the system can be continuously improved, and the automatic opening of the door lock is more flexible and intelligent.
[0095] An optional solution, the first storage unit includes a comparison module, a third determination module and a fourth determination module;
[0096] The comparison module is used for comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result;
[0097] The third determination module is used for determining that the second condition is met in the case that the comparison result represents that the difference between the actual frequency and any one of the plurality of reference frequencies is less than the preset difference;
[0098] The fourth determination module is used for determining that the second condition is not met in the case that the comparison result represents that the difference between the actual frequency and all reference frequencies is greater than or equal to the preset difference.
[0099] The method compares the difference between the reference frequency obtained from the data of the sound emitted by the plurality of shoe types walking and the actual frequency obtained from the actual walking sound to make a judgment, and the difference between any one reference frequency and the actual frequency is less than the preset difference, so as to realize automatic opening of the door lock, and more accurate effect can be achieved.
[0100] An optional solution, the device further comprises a first acquisition unit and an extraction unit;
[0101] The first acquisition unit is used for acquiring sound data when the user walks in different types of shoes;
[0102] The extraction unit is used for extracting a plurality of reference frequencies from a plurality of sound data.
[0103] The method uses the sound emitted by the user when walking in different types of shoes as the reference frequency according to the weight of the user, which is more unique and can more accurately achieve automatic opening of the door lock, and greatly improves safety.
[0104] An optional solution, the second acquisition unit includes a second acquisition module, a third acquisition module and a fifth determination module;
[0105] The second acquisition module is used for acquiring the distance between the elevator entrance or the stair entrance and the door entrance;
[0106] The third acquisition module is used for acquiring the actual time spent by the user from the elevator entrance or the stair entrance to the door entrance;
[0107] The fifth determination module is used for determining the actual step number according to the distance and the actual time.
[0108] The method uses the actual step number obtained from the distance between the elevator entrance or the stair entrance and the door entrance and the time spent between the elevator entrance or the stair entrance and the door entrance as the first condition for automatic opening of the door lock.
[0109] An optional solution, the device further comprises a holding unit;
[0110] The keeping unit is configured to control the door lock to keep in the closed state when at least the third condition is not met.
[0111] The third condition is used as a necessary condition for automatically opening the door lock in the method, so that the accuracy of automatically opening the door lock is improved, and the problem of failure of automatically opening the door lock due to inaccuracy of the first condition and the second condition can be avoided.
[0112] In an optional solution, the second storage unit includes a fourth acquisition module and a control module.
[0113] The fourth acquisition module is configured to acquire real-time image data of the user collected in real time.
[0114] The control module is configured to control the door lock to open when the third condition and a fourth condition are met, where the fourth condition is that a similarity between the real-time image data of the user and the reference user image data is greater than a preset similarity.
[0115] The method can improve the accuracy and safety of automatically opening the door lock by adding the real-time image data of the user collected in real time as the fourth condition, and opening the door lock when the third condition and the fourth condition are met.
[0116] The device for controlling the door lock to open includes a processor and a memory, and the input unit, the correction unit and the like are stored in the memory as program units, and the corresponding functions are realized by the processor executing the program units stored in the memory. The modules are located in the same processor, or the modules are located in different processors in any combination.
[0117] The processor includes a core, and the core retrieves the corresponding program units from the memory. The core can be one or more, and the door lock is controlled to open or not to open by adjusting core parameters according to at least one of a difference between the reference step number and the actual step number, a difference between the reference frequency and the actual frequency, and a difference between the predicted time and the actual time, so that the door lock can be opened without operation of the user.
[0118] The memory can include a non-permanent memory in a computer readable medium, a random access memory (RAM) and / or a non-volatile memory such as a read-only memory (ROM) or a flash memory (flash RAM), and the memory includes at least one memory chip.
[0119] The embodiment of the present application provides a computer readable storage medium, which includes a stored program, and when the program runs, the computer readable storage medium controls a device where the computer readable storage medium is located to execute the method for controlling the door lock to open.
[0120] Specifically, the method for controlling the door lock to open includes:
[0121] Step S201, a user data repository is constructed, the user data repository storing at least one of a reference step count and a reference frequency, the reference step count being a step count of the user walking from an elevator door or a stair door to a door in a historical time, the reference frequency being a walking frequency of the user in the historical time;
[0122] Step S202, at least one of an actual step count and an actual frequency and an actual time of the user to the door are obtained, the actual step count being a step count of the user walking from the elevator door or the stair door to the door in a current time, the actual frequency being a walking frequency of the user walking to the door in the current time;
[0123] Step S203, in a case where at least one of a first condition and a second condition and a third condition are met, the door lock is controlled to be opened, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step difference, the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference.
[0124] Optionally, the predicted time of the user to the door is input by the user into a terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises: obtaining real-time position information of the user; obtaining a calculated time of the user to the door according to the real-time position information and position information of the destination; in a case where a difference between the predicted time of the user to the door and the calculated time of the user to the door is less than or equal to a difference threshold, determining that the user can arrive at the door at the predicted time; in a case where the difference between the predicted time of the user to the door and the calculated time of the user to the door is greater than the difference threshold, determining that the user fails to arrive at the door at the predicted time.
[0125] Optionally, after it is determined that the user fails to arrive at the door at the predicted time, the method further comprises: correcting the predicted time of the user to the door by using the difference between the predicted time of the user to the door and the calculated time of the user to the door, to obtain a corrected predicted time of the user to the door.
[0126] Optionally, the user data repository stores a plurality of different reference frequencies, the reference frequencies one-to-one corresponding to shoe types, and before the door lock is controlled to be opened in a case where at least one of the first condition and the second condition and the third condition are met, the method further comprises: comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result; in a case where the comparison result represents that a difference between the actual frequency and any one of the plurality of reference frequencies is less than the preset difference, it is determined that the second condition is met; in a case where the comparison result represents that differences between the actual frequency and all the reference frequencies are all greater than or equal to the preset difference, it is determined that the second condition is not met.
[0127] Optionally, before the constructing the user data repository, the method further comprises: obtaining sound data of the user walking in different types of shoes; and extracting a plurality of reference frequencies from the plurality of sound data.
[0128] Optionally, the obtaining the actual step number comprises: obtaining a distance between the elevator or stair entrance and the door; obtaining an actual time taken by the user to walk from the elevator or stair entrance to the door; and determining the actual step number according to the distance and the actual time.
[0129] Optionally, the controlling the door lock to keep in the closed state is performed at least when the third condition is not met.
[0130] Optionally, the user data repository further stores reference user image data, and the method further comprises: obtaining real-time user image data collected in real time; and controlling the door lock to open when the third condition and a fourth condition are met, wherein the fourth condition is that a similarity between the real-time user image data and the reference user image data is greater than a preset similarity.
[0131] An embodiment of the present application provides a processor, which is used to run a program, wherein the program is used to execute a method of controlling a door lock to open.
[0132] Specifically, the method of controlling the door lock to open comprises:
[0133] S201, constructing a user data repository, wherein the user data repository stores at least one of a reference step number and a reference frequency, and a predicted time of a user to a door, the reference step number is a step number of the user walking from an elevator or stair entrance to the door in a historical time, and the reference frequency is a walking frequency of the user in the historical time;
[0134] S202, obtaining at least one of an actual step number and an actual frequency, and an actual time of the user to the door, the actual step number is a step number of the user walking from the elevator or stair entrance to the door in a current time, and the actual frequency is a walking frequency of the user walking to the door in the current time;
[0135] S203, controlling the door lock to open when at least one of a first condition and a second condition, and a third condition are met, the third condition is that a difference between the predicted time and the actual time is less than a preset time difference, the first condition is that a difference between the reference step number and the actual step number is less than a preset step number difference, and the second condition is that a difference between the reference frequency and the actual frequency is less than a preset difference.
[0136] Optionally, the predicted time of the user to the door is input by the user into the terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises: obtaining real-time location information of the user; obtaining a calculated time of the user to the door according to the real-time location information and location information of the destination; determining that the user can arrive at the door at the predicted time in a case where a difference between the predicted time of the user to the door and the calculated time of the user to the door is less than or equal to a difference threshold; and determining that the user fails to arrive at the door at the predicted time in a case where the difference between the predicted time of the user to the door and the calculated time of the user to the door is greater than the difference threshold.
[0137] Optionally, after determining that the user fails to arrive at the door at the predicted time, the method further comprises: correcting the predicted time of the user to the door by using the difference between the predicted time of the user to the door and the calculated time of the user to the door, to obtain a corrected predicted time of the user to the door.
[0138] Optionally, the user data repository stores a plurality of different reference frequencies, the reference frequencies correspond to the shoe types in a one-to-one manner, and in a case where at least one of the first condition and the second condition is met and the third condition is met, before the door lock is controlled to be opened, the method further comprises: comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result; determining that the second condition is met in a case where the comparison result indicates that a difference between the actual frequency and any one of the plurality of reference frequencies is less than a preset difference; and determining that the second condition is not met in a case where the comparison result indicates that differences between the actual frequency and all of the reference frequencies are greater than or equal to the preset difference.
[0139] Optionally, before the user data repository is constructed, the method further comprises: obtaining sound data when the user walks in different types of shoes; and extracting a plurality of reference frequencies from the plurality of sound data.
[0140] Optionally, obtaining the actual step count comprises: obtaining a distance between an elevator door or a stair door and the door; obtaining an actual time taken by the user to walk from the elevator door or the stair door to the door; and determining the actual step count according to the distance and the actual time.
[0141] Optionally, in a case where at least the third condition is not met, the door lock is kept in a closed state.
[0142] Optionally, the user data repository further stores reference user image data, and the method further comprises: obtaining real-time image data of the user collected in real time; and controlling the door lock to be opened in a case where the third condition and a fourth condition are met, wherein the fourth condition is that a similarity between the real-time image data of the user and the reference user image data is greater than a preset similarity.
[0143] The embodiment of the present application provides a device, the device comprises a processor, a memory and a program stored on the memory and executable on the processor, and at least the following steps are realized when the processor executes the program:
[0144] In step S201, a user data repository is constructed, and the user data repository stores at least one of reference steps and reference frequency and a predicted time of the user to the door, the reference steps are steps spent by the user to walk from an elevator door or a stair door to the door in a historical time, and the reference frequency is a walking frequency of the user in the historical time;
[0145] In step S202, at least one of actual steps and actual frequency and an actual time of the user to the door are acquired, the actual steps are steps spent by the user to walk from the elevator door or the stair door to the door this time, and the actual frequency is a walking frequency of the user to walk to the door this time;
[0146] In step S203, the door lock is controlled to be opened in the case that at least one of a first condition and a second condition is met and a third condition is met, the third condition is that a difference value of the predicted time and the actual time is less than a preset time length difference value, the first condition is that a difference value of the reference steps and the actual steps is less than a preset step number difference value, and the second condition is that a difference of the reference frequency and the actual frequency is less than a preset difference.
[0147] The device herein can be a server, a PC, a PAD, a mobile phone and the like.
[0148] Optionally, the predicted time of the user to the door is input by the user into a terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises the following steps: acquiring real-time position information of the user; obtaining a calculated time of the user to the door according to the real-time position information and position information of the destination; in the case that a difference value of the predicted time of the user to the door and the calculated time of the user to the door is less than or equal to a difference threshold value, determining that the user can arrive at the door at the predicted time; and in the case that the difference value of the predicted time of the user to the door and the calculated time of the user to the door is greater than the difference threshold value, determining that the user fails to arrive at the door at the predicted time.
[0149] Optionally, after it is determined that the user fails to arrive at the door at the predicted time, the method further comprises the following step: correcting the predicted time of the user to the door by using the difference value of the predicted time of the user to the door and the calculated time of the user to the door, to obtain a corrected predicted time of the user to the door.
[0150] Optionally, the user data repository stores a plurality of reference frequencies, each corresponding to a shoe type, and the method further comprises, when the first condition and the second condition and the third condition are met, comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result, determining that the second condition is met when the comparison result indicates that the actual frequency differs from any one of the plurality of reference frequencies by less than a preset difference, and determining that the second condition is not met when the comparison result indicates that the actual frequency differs from all of the plurality of reference frequencies by greater than or equal to the preset difference.
[0151] Optionally, before the user data repository is constructed, the method further comprises obtaining sound data of the user walking in different types of shoes, and extracting a plurality of reference frequencies from the plurality of sound data.
[0152] Optionally, obtaining the actual step count comprises obtaining a distance between an elevator entrance or a stair entrance and the door, obtaining an actual time taken by the user to walk from the elevator entrance or the stair entrance to the door, and determining the actual step count based on the distance and the actual time.
[0153] Optionally, the door lock is kept in the closed state when at least the third condition is not met.
[0154] Optionally, the user data repository further stores reference user image data, and the method further comprises obtaining real-time user image data collected in real time, and controlling the door lock to open when the third condition and a fourth condition are met, wherein the fourth condition is that a similarity between the real-time user image data and the reference user image data is greater than a preset similarity.
[0155] The application also provides a computer program product adapted to execute a program that initializes at least the following method steps when executed on a data processing device:
[0156] Step S201, constructing a user data repository, the user data repository storing at least one of reference step count and reference frequency and a predicted time of the user to the door, the reference step count being a step count of the user walking from an elevator entrance or a stair entrance to the door obtained in a historical time, and the reference frequency being a walking frequency of the user obtained in the historical time;
[0157] Step S202, obtaining at least one of an actual step count and an actual frequency and an actual time of the user to the door, the actual step count being a step count of the user walking from the elevator entrance or the stair entrance to the door in a current time, and the actual frequency being a walking frequency of the user walking to the door in the current time;
[0158] In step S203, the door lock is controlled to open in the case that at least one of the first condition and the second condition and the third condition are met, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step count difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference.
[0159] Optionally, the predicted time of the user to the door is input by the user into a terminal application through a preset input mode, the terminal remotely communicates with the door lock, and the method further comprises: obtaining real-time location information of the user; obtaining a calculated time of the user to the door according to the real-time location information and location information of the destination; determining that the user can arrive at the door at the predicted time in the case that a difference between the predicted time of the user to the door and the calculated time of the user to the door is less than or equal to a difference threshold; and determining that the user fails to arrive at the door at the predicted time in the case that the difference between the predicted time of the user to the door and the calculated time of the user to the door is greater than the difference threshold.
[0160] Optionally, after it is determined that the user fails to arrive at the door at the predicted time, the method further comprises: correcting the predicted time of the user to the door by using the difference between the predicted time of the user to the door and the calculated time of the user to the door to obtain a corrected predicted time of the user to the door.
[0161] Optionally, a plurality of different reference frequencies are stored in the user data repository, the reference frequencies correspond to the shoe types in a one-to-one manner, and before the door lock is controlled to open in the case that at least one of the first condition and the second condition and the third condition are met, the method further comprises: comparing the plurality of reference frequencies with the actual frequency one by one to obtain a comparison result; determining that the second condition is met in the case that the comparison result indicates that a difference between the actual frequency and any one of the plurality of reference frequencies is less than the preset difference; and determining that the second condition is not met in the case that the comparison result indicates that a difference between the actual frequency and all of the reference frequencies is greater than or equal to the preset difference.
[0162] Optionally, before the user data repository is constructed, the method further comprises: obtaining sound data of the user walking in different types of shoes; and extracting a plurality of reference frequencies from the plurality of sound data.
[0163] Optionally, the actual step count is obtained by: obtaining a distance between an elevator door or a stair door and the door; obtaining an actual time taken by the user to walk from the elevator door or the stair door to the door; and determining the actual step count according to the distance and the actual time.
[0164] Optionally, the door lock is controlled to remain in a closed state in the case that at least the third condition is not met.
[0165] Optionally, the user data repository further stores reference user image data, and the method further comprises: acquiring real-time user image data collected in real time; and controlling the door lock to open when the third condition and a fourth condition are met, wherein the fourth condition is that a similarity between the real-time user image data and the reference user image data is greater than a preset similarity.
[0166] It is apparent that those skilled in the art should understand that the modules or steps of the present application described above can be realized by using general computing devices, which can be centralized on a single computing device or distributed on a network composed of multiple computing devices, and can be realized by using program codes executable by the computing devices, so that they can be stored in storage devices and executed by the computing devices, and in some cases, the steps shown or described can be executed in different orders, or they can be manufactured into individual integrated circuit modules or a single integrated circuit module. Therefore, the present application is not limited to any specific combination of hardware and software.
[0167] Those skilled in the art should understand that the embodiments of the present application can be provided as a method, a system, or a computer program product. Therefore, the present application can be in the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0168] The present application is described with reference to flowcharts and / or block diagrams according to the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing devices produce a device that implements the flowcharts and / or block diagrams. Figure 1 The functions specified in the flow or flows and / or blocks Figure 1 The device that implements the functions specified in the flow or flows and / or blocks.
[0169] These computer program instructions can also be stored in a computer-readable memory capable of guiding a computer or other programmable data processing devices to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including instruction devices that implement the flowcharts and / or block diagrams. Figure 1 The functions specified in the flow or flows and / or blocks Figure 1the function(s) specified in the block or blocks.
[0170] These computer program instructions can also be loaded into computer or other programmable data processing devices to cause a series of operational steps to be performed on the computer or other programmable devices to produce a computer implemented process such that the instructions which execute on the computer or other programmable devices provide steps for implementing the flowchart Figure 1 one or more flowcharts and / or blocks Figure 1 the function(s) specified in the block or blocks.
[0171] In one typical configuration, the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0172] The memory can include non-persistent memory and / or volatile memory, such as random access memory (RAM) about which the computer stores information such as computer program instructions. Memory is an example of computer readable media.
[0173] Computer readable media includes permanent and non-permanent, movable and non-movable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. According to the definition herein, computer readable media does not include transitory media, such as modulated data signals and carrier waves.
[0174] It should also be noted that the terms "comprising", "comprises", "including", "includes" or any other variation thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or apparatus that comprises a list of elements does not include only those elements recited, but can also include other elements not expressly listed or inherent to such process, method, article or apparatus. Without further limitation, an element preceded by "comprises a" does not, without more constraints, foreclose the existence of additional identical elements in the process, method, article or apparatus that includes the element.
[0175] From the above description, it can be seen that the above-mentioned embodiments of the present application achieve the following technical effects:
[0176] 1) A method for controlling a door lock to open, comprising: constructing a user data repository, the user data repository storing at least one of a reference step count and a reference frequency, and a predicted time for a user to reach a door, the reference step count being a step count for the user to walk from an elevator door or a stair door to the door in a historical time, the reference frequency being a walking frequency of the user in the historical time; obtaining at least one of an actual step count and an actual frequency, and an actual time for the user to reach the door, the actual step count being a step count for the user to walk from the elevator door or the stair door to the door in a current time, the actual frequency being a walking frequency of the user to walk to the door in the current time; and controlling the door lock to open in a case where at least one of a first condition and a second condition is met, and a third condition is met, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference. Whether the door lock is controlled to open or not is determined according to at least one of the difference between the reference step count and the actual step count, the difference between the reference frequency and the actual frequency, and the difference between the predicted time and the actual time, so that the door lock can be opened without the user operating the door lock.
[0177] 2) An apparatus for controlling a door lock to open, comprising: a construction unit configured to construct a user data repository, the user data repository storing at least one of a reference step count and a reference frequency, and a predicted time for a user to reach a door, the reference step count being a step count for the user to walk from an elevator door or a stair door to the door in a historical time, the reference frequency being a walking frequency of the user in the historical time; an obtaining unit configured to obtain at least one of an actual step count and an actual frequency, and an actual time for the user to reach the door, the actual step count being a step count for the user to walk from the elevator door or the stair door to the door in a current time, the actual frequency being a walking frequency of the user to walk to the door in the current time; and a control unit configured to control the door lock to open in a case where at least one of a first condition and a second condition is met, and a third condition is met, the third condition being that a difference between the predicted time and the actual time is less than a preset time difference, the first condition being that a difference between the reference step count and the actual step count is less than a preset step difference, and the second condition being that a difference between the reference frequency and the actual frequency is less than a preset difference. Whether the door lock is controlled to open or not is determined according to at least one of the difference between the reference step count and the actual step count, the difference between the reference frequency and the actual frequency, and the difference between the predicted time and the actual time, so that the door lock can be opened without the user operating the door lock.
[0178] The above descriptions are only the preferred embodiments of the present application, and are not intended to limit the present application. The present application can have various modifications and changes for those skilled in the art. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for controlling the opening of a door lock, characterized in that, include: Construct a user data repository, which stores reference steps, reference frequency, and predicted time for users to reach the door. The reference steps are the number of steps the user takes from the elevator or stairwell to the door, obtained from historical data. The reference frequency is the walking frequency of the user, obtained from historical data. The system acquires the actual number of steps, the actual frequency, and the calculation time for the user to reach the door. The actual number of steps is the number of steps the user takes to walk from the elevator entrance or the stairwell entrance to the door. The actual frequency is the walking frequency of the user to reach the door. The actual number of steps is obtained by collecting the step count through a voice recognition module. Under the condition that the first condition, the second condition, and the third condition are met, the door lock is opened. The third condition is that the difference between the predicted time and the calculated time is less than a preset duration difference. The first condition is that the difference between the reference number of steps and the actual number of steps is less than a preset number of steps difference. The second condition is that the difference between the reference frequency and the actual frequency is less than a preset difference. The predicted time for the user to arrive at the door is input by the user into the terminal application via a preset input method. The terminal communicates remotely with the door lock. The method further includes: obtaining the user's real-time location information; obtaining the calculated time for the user to arrive at the door based on the real-time location information and the destination location information; determining that the user can arrive at the door within the predicted time if the difference between the predicted time and the calculated time is less than or equal to a difference threshold; and determining that the user has failed to arrive at the door within the predicted time if the difference between the predicted time and the calculated time is greater than the difference threshold.
2. The method according to claim 1, characterized in that, After determining that the user failed to arrive at the door at the predicted time, the method further includes: The difference between the predicted time of the user's arrival at the door and the calculated time of the user's arrival at the door is used to correct the predicted time of the user's arrival at the door, resulting in the corrected predicted time of the user's arrival at the door.
3. The method according to claim 1, characterized in that, The user data repository stores multiple different reference frequencies, each corresponding to a shoe type. Before controlling the door lock to open, provided at least one of the first and second conditions, and the third condition, are met, the method further includes: The multiple reference frequencies are compared one by one with the actual frequencies to obtain the comparison results; If the comparison result indicates that the difference between the actual frequency and any one of the plurality of reference frequencies is less than the preset difference, then the second condition is determined to be satisfied. If the comparison results indicate that the difference between the actual frequency and all the reference frequencies is greater than or equal to the preset difference, then the second condition is determined not to be met.
4. The method according to claim 3, characterized in that, The method further includes, prior to building the user data repository: Acquire sound data of the user walking while wearing different types of shoes; Multiple reference frequencies are extracted from multiple types of sound data.
5. The method according to claim 1, characterized in that, The method further includes: If at least the third condition is not met, the door lock remains closed.
6. A device for controlling the opening of a door lock, the device being used to perform the method for controlling the opening of a door lock as described in any one of claims 1 to 5, characterized in that, include: A construction unit is used to construct a user data repository, which stores reference steps, reference frequency, and predicted time for a user to reach the door. The reference steps are the number of steps the user takes from the elevator or stairwell to the door, obtained in historical time, and the reference frequency is the walking frequency of the user, obtained in historical time. The acquisition unit is used to acquire the actual number of steps, the actual frequency, and the calculation time for the user to reach the door. The actual number of steps is the number of steps the user takes to walk from the elevator entrance or the stairwell entrance to the door in the current instance. The actual frequency is the walking frequency of the user in the current instance to reach the door. The actual number of steps is obtained by collecting the step count through the sound recognition module. The control unit is configured to control the door lock to open when a first condition, a second condition, and a third condition are met, wherein the third condition is that the difference between the predicted time and the calculated time is less than a preset duration difference, the first condition is that the difference between the reference number of steps and the actual number of steps is less than a preset number of steps difference, and the second condition is that the difference between the reference frequency and the actual frequency is less than a preset difference.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the method for controlling the opening of a door lock as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent reservation parking system
CN105575167A
Anti-theft lock transmission converting control platform
CN108509930A
Access management system
JP2011090499A