Door lock control method and device, electronic equipment and storage medium
By using the first component to perform object detection and the second component to perform high-precision distance measurement in the intelligent access control system, the problem of low accuracy of door lock control in the intelligent access control system is solved, and more efficient and reliable door lock control is achieved.
Patent Information
- Application Number
- CN202411522144.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-29
- Publication Date
- 2025-02-07
AI Technical Summary
The intelligent access control system has restrictions on indoor positioning and distance measurement, which leads to the door lock being misjudged by the user's position or distance, and thus the lock being unlocked by mistake, and the door lock control is not accurate.
By controlling the door lock to start the first component for target detection. If the target object is detected, the second component will be started for high-precision distance measurement. Only when the distance between the target object and the door lock meets the set threshold, the setting is performed operate.
It reduces energy consumption, improves the accuracy of door lock control, effectively avoids misunderstandings, and improves the reliability of door lock control.
Smart Images

Figure CN119399862A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet of Things technology. Specifically, the present application relates to a door lock control method, device, electronic device and storage medium. Background Art
[0002] With the rapid development of Internet of Things technology, the traditional key-and-lock access control system is being replaced by the smart access control system. The smart access control system integrates a variety of advanced technologies, such as BLE (Bluetooth Low Energy), which can achieve keyless entry, remote control and real-time monitoring. The smart access control system greatly improves security and convenience and is widely used in residences, office buildings and public places, providing users with more intelligent and efficient access management solutions.
[0003] At present, smart access control systems usually use technologies such as BLE and Wi-Fi (wireless network) for identity authentication and unlocking operations. However, the above technologies have certain limitations in indoor positioning and distance measurement, which may cause the door lock to misjudge the user's location or distance and then unlock by mistake.
[0004] From the above, it can be seen that the problem of low accuracy of door lock control still needs to be solved. Summary of the invention
[0005] The present application provides a door lock control method, device, electronic device and storage medium, which can solve the problem of low accuracy of door lock control in related technologies. The technical solution is as follows:
[0006] According to one aspect of the present application, a door lock control method includes: controlling the door lock to start a first component; if a target object is detected based on the first component, controlling the door lock to start a second component; the second component is in an unstarted state when the target object does not appear; based on the second component, detecting the distance between the target object and the door lock; if the distance between the target object and the door lock meets a first set threshold, controlling the door lock to perform a set operation
[0007] According to one aspect of the present application, a door lock control device includes: a component startup module, which is used to control the door lock to start a first component; a target detection module, which is used to control the door lock to start a second component if the first component detects the presence of a target object; the second component is in an unstarted state when the target object does not appear; a distance detection module, which is used to detect the distance between the target object and the door lock based on the second component; and an operation execution module, which is used to control the door lock to execute a set operation if the distance between the target object and the door lock meets a set condition.
[0008] In an exemplary embodiment, the component startup module is also used to obtain motion data of the user end based on the third component of the door lock; determine whether the target object is in a motion state according to the motion data; and control the door lock to start the first component when the target object is in the motion state.
[0009] In an exemplary embodiment, the component startup module is further used to determine whether the motion data exceeds a second set threshold; if it exceeds the second set threshold, the target object is in motion.
[0010] In an exemplary embodiment, the component startup module is also used to broadcast a connection message through the third component; receive a connection request returned by the user terminal in response to the connection message, and authenticate the user terminal based on the connection request; if the user terminal passes the authentication, a communication connection is established between the user terminal and the third component, so as to use the third component to obtain the motion data of the user terminal based on the established communication connection.
[0011] In an exemplary embodiment, the component startup module also includes the first detection area of the third component including the first startup area of the first component, and the first startup area includes the second startup area of the second component; wherein the first detection area is an area within the detection range of the third component; the first startup area is an area that triggers the startup of the first component; and the second startup area is an area that triggers the startup of the second component.
[0012] In an exemplary embodiment, the target detection module is further used to perform target detection in an outdoor area using the first component to obtain a detection result; if the detection result indicates that the target object is detected in the outdoor area, it is determined that the target object appears.
[0013] In an exemplary embodiment, the target detection module is further used to generate an interrupt signal when the first component runs for a first set time; if the interrupt signal indicates that the output level of the first component changes, it is determined that the target object appears.
[0014] In an exemplary embodiment, the component startup module is further configured to shut down the first component if the first component fails to detect the target object within a second set time.
[0015] In an exemplary embodiment, the distance detection module is also used to obtain signal data of the user terminal; the signal data is used to indicate the relative distance between the user terminal and the door lock; and calculation is performed based on the signal data to obtain the distance between the target object and the door lock.
[0016] According to one aspect of the present application, a smart door lock comprises a first component, a second component, a third component and a main control module; the first component is used to detect whether the target object appears; the second component is used to measure the distance between the target object and the smart door lock; the third component is used to obtain the motion data sent by the user end; the main control module is used to determine whether the target object is in motion according to the motion data obtained by the third component; when the target object is in the motion state, the first component is started; when the first component detects the appearance of the target object, the second component is started; when the target object does not appear, the second component is in an unstarted state; when the second component detects that the distance between the target object and the smart door lock meets a first set threshold, the smart door lock is controlled to perform a set operation.
[0017] In an exemplary embodiment, the smart door lock further includes the second component having a greater power consumption than the first component, and the first component having a greater power consumption than the third component.
[0018] According to one aspect of the present application, a smart access control system includes a smart door lock and a user terminal. The smart door lock is used to start a first component; if the first component detects the appearance of a target object, the second component is started; the second component is in an unstarted state when the target object does not appear; based on the second component, the distance between the target object and the smart door lock is detected; if the distance between the target object and the smart door lock meets a first set threshold, a set operation is performed. The user terminal is used to send motion data to a third component of the smart door lock, so that the smart door lock determines whether the target object is in motion based on the motion data, and starts the first component when the target object is in the motion state.
[0019] According to one aspect of the present application, an electronic device includes at least one processor and at least one memory, wherein the memory stores computer-readable instructions; the computer-readable instructions are executed by one or more of the processors, so that the electronic device implements the door lock control method as described above.
[0020] According to one aspect of the present application, a storage medium stores computer-readable instructions thereon, and the computer-readable instructions are executed by one or more processors to implement the door lock control method as described above.
[0021] According to one aspect of the present application, a computer program product includes computer-readable instructions, which are stored in a storage medium. One or more processors of an electronic device read the computer-readable instructions from the storage medium, load and execute the computer-readable instructions, so that the electronic device implements the door lock control method as described above.
[0022] The beneficial effects of the technical solution provided by this application are:
[0023] In the above technical solution, the door lock is controlled to start the second component only when the first component detects the presence of the target object, which can reduce energy consumption. In addition, since the second component has a high-precision positioning function, it can accurately determine the distance between the target object and the door lock. When it is detected that the distance between the target object and the door lock meets the first set threshold, the door lock is controlled to perform the set operation, which can effectively avoid misunderstanding the lock, thereby solving the problem of low unlocking accuracy in related technologies. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without creative work.
[0025] Figure 1 It is a schematic diagram of the implementation environment involved in this application;
[0026] Figure 2a is a hardware system block diagram of a smart door lock according to an exemplary embodiment;
[0027] Figure 2b is a hardware system block diagram of a smart door lock according to an exemplary embodiment;
[0028] Figure 3 is a flow chart of a door lock control method according to an exemplary embodiment;
[0029] Figure 4 yes Figure 3 A flowchart of step 330 in one embodiment corresponding to the embodiment;
[0030] Figure 5 yes Figure 3 A flowchart of an embodiment of the steps before step 310 in the corresponding embodiment;
[0031] Figure 6 yes Figure 5 A flowchart of an embodiment of the steps before step 311 in the corresponding embodiment;
[0032] Figure 7 yes Figure 5 A schematic diagram of a specific implementation of a region division involved in a corresponding embodiment;
[0033] Figure 8 yes Figure 3 A flowchart of an embodiment corresponding to step 311 in an embodiment;
[0034] Fig. 9 yes Figure 3 A flowchart of an embodiment of the steps before step 310 in the corresponding embodiment;
[0035] Figure 10 to Figure 11 It is a schematic diagram of a specific implementation of a door lock control method in an application scenario;
[0036] Fig.12 is a structural block diagram of a door lock control device according to an exemplary embodiment;
[0037] Fig.13 is a hardware structure diagram of an electronic device according to an exemplary embodiment;
[0038] Fig.14 The present invention is a structural block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0039] The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and cannot be interpreted as limiting the present application.
[0040] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present disclosure refers to the presence of the features, integers, steps, operations, elements, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0041] The following is an introduction and explanation of several terms involved in this application:
[0042] UWB (Ultra-Wideband) can be used as the second component of this application; UWB can provide sub-meter or even centimeter-level positioning accuracy, can accurately determine the user's position and distance, thereby achieving more precise unlocking operations, and is not restricted by the indoor environment. Reliable positioning can be achieved in complex indoor environments, such as multi-story buildings, large shopping malls or office buildings.
[0043] BLE (Bluetooth Low Energy) can be used as the third component of this application; BLE is a wireless communication technology designed specifically for low-power devices, aiming to provide short-range communication solutions for smartphones, wearable devices, smart homes and IoT devices.
[0044] PIR (Passive Infrared) can be the first component of the present application; PIR can detect changes in infrared radiation in the surrounding environment. When a human body enters the sensing range, the infrared radiation pattern changes.
[0045] IR (Infrared sensor) can be the first component of this application; IR can be used to monitor human body movement, and its working principle is similar to that of PIR sensor. IR can directly measure infrared radiation emitted by human body.
[0046] ToF (Time of Flight) can be the first component of this application; ToF technology uses infrared light or laser to measure the time from the emission to the reception of the light signal to determine the distance of the object. ToF can accurately measure the distance of the human body in front of the door without being affected by light or temperature.
[0047] Radar can be the first component of this application; radar can use radio waves to detect the position and speed of the target object, and radar can monitor the movement of human body in front of the door to provide accurate distance and speed information.
[0048] RFID (Radio-frequency identification) can be the first component of this application; RFID uses radio frequency to identify and track tags, such as access cards or bracelets. When an access card with an RFID tag approaches the door, the RFID can detect it and respond accordingly.
[0049] As mentioned earlier, the smart access control system uses BLE and Wi-Fi for identity authentication and unlocking operations. Since the BLE and Wi-Fi signals are affected by obstacles and multipath effects, the positioning accuracy is usually within a few meters, making it difficult to achieve high-precision positioning. This may cause the door lock to misjudge the user's location or distance and unlock the door by mistake.
[0050] UWB is a wireless communication technology characterized by large bandwidth and short pulse duration, which can provide high-precision indoor positioning and distance measurement capabilities.
[0051] As more and more smartphones can support UWB, smart door locks with UWB function can identify users' identity information and location information through smartphones, and automatically unlock the door when the user approaches the outside of the door, bringing convenience to users.
[0052] However, since UWB is a brand-new technology, the power consumption of UWB chips on the market is relatively high, and smart door lock products are usually battery-powered. When using UWB technology solutions, the battery life of UWB door locks will be greatly reduced. Therefore, there are very few commercial UWB smart door locks on the market, and most of them are technology demonstration DEMOs.
[0053] As can be seen from the above, the related art still has the defect of low accuracy of door lock control.
[0054] To this end, the door lock control method provided in the present application can effectively improve the accuracy of door lock control. Accordingly, the door lock control method is applicable to a door lock control device, which can be deployed in an electronic device, and the electronic device can be a smart door lock.
[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0056] Figure 1 Schematic diagram of an implementation environment involved in a door lock control method. The implementation environment at least includes a user terminal 110, a smart device 130, a server 170, and a network device. Figure 1 In the embodiment, the network devices include a gateway 150 and a router 190, which is not specifically limited herein.
[0057] Among them, the user terminal 110, which can also be considered as a user end or terminal, can deploy (also understood as install) the client associated with the smart device 130. This user terminal 110 can be an electronic device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart control panel, other devices with display and control functions, etc., which are not limited here.
[0058] Among them, the client is associated with the smart device 130, which essentially means that the user registers an account in the client and configures the smart device 130 in the client. For example, the configuration includes adding a device identifier to the smart device 130, so that when the client is run in the user terminal 110, it can provide the user with functions such as device display and device control of the smart device 130. This client can be in the form of an application or a web page. Accordingly, the interface for device display on the client can be in the form of a program window or a web page, which is not limited here.
[0059] The smart device 130 is deployed in the gateway 150, and communicates with the gateway 150 through its own configured communication module, and is then controlled by the gateway 150. It should be understood that the smart device 130 generally refers to one of the multiple smart devices 130, and the embodiment of the present application only takes the smart device 130 as an example, that is, the embodiment of the present application does not limit the number and device type of smart devices deployed in the gateway 150. In an application scenario, the smart device 130 accesses the gateway 150 through a local area network, and is thus deployed in the gateway 150. The process of the smart device 130 accessing the gateway 150 through the local area network includes: the gateway 150 first establishes a local area network, and the smart device 130 joins the local area network established by the gateway 150 by connecting to the gateway 150. This local area network includes, but is not limited to: ZIGBEE or Bluetooth. Among them, the smart device 130 can be a smart printer, a smart fax machine, a smart camera, a smart air conditioner, a smart door lock, a smart light, or a human body sensor equipped with a communication module, a door and window sensor, a temperature and humidity sensor, a water immersion sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a wireless switch, a wireless wall sticker switch, a magic cube controller, a curtain motor, a millimeter wave radar, etc.
[0060] The interaction between the user terminal 110 and the smart device 130 can be achieved through a local area network or a wide area network. In one application scenario, the user terminal 110 establishes a communication connection between the router 190 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to WIFI, so that the user terminal 110 and the gateway 150 are deployed in the same local area network, so that the user terminal 110 can interact with the smart device 130 through the local area network path. In another application scenario, the user terminal 110 establishes a communication connection between the server 170 and the gateway 150 in a wired or wireless manner. For example, the wired or wireless manner includes but is not limited to 2G, 3G, 4G, 5G, WIFI, etc., so that the user terminal 110 and the gateway 150 are deployed in the same wide area network, so that the user terminal 110 can interact with the smart device 130 through the wide area network path.
[0061] The server end 170 may also be considered as a cloud, a cloud platform, a platform end, a service end, etc. The server end 170 may be a server, a server cluster composed of multiple servers, or a cloud computing center composed of multiple servers, so as to better provide background services to a large number of user terminals 110. For example, the background service includes a door lock control service.
[0062] In one possible implementation, the smart device 130 is a smart door lock, which includes a first component, a second component, a third component and a main control module; the first component is used to detect whether the target object appears; the second component is used to measure the distance between the target object and the smart door lock; the third component is used to obtain motion data sent by the user end; the main control module is used to determine whether the target object is in motion based on the motion data obtained by the third component; when the target object is in motion, the first component is started; when the first component detects the appearance of the target object, the second component is started; the second component is in an unstarted state when the target object does not appear; when the second component detects that the distance between the target object and the smart door lock meets the first set threshold, the smart door lock is controlled to perform a set operation.
[0063] In one possible implementation, the power consumption of the second component is greater than that of the first component, and the power consumption of the first component is greater than that of the third component.
[0064] Figure 2a and Figure 2b The hardware system block diagrams of a smart door lock are shown respectively. Figure 2a and Figure 2b As shown, the main difference between the two smart door locks is whether they include an independent third component (for example, a BLE component). Figure 2a The smart door lock shown includes an independent third component (e.g., a BLE component), Figure 2b The third component of the smart door lock shown is integrated into the main control module of the smart access control system.
[0065] In one embodiment, Figure 2a and Figure 2b The smart door lock shown has a PIR component as the first component, a UWB component as the second component, and a BLE component as the third component. The smart door lock is powered by a dry cell or a lithium battery, or by a USB interface (backup interface); the main control MCU is connected to the PIR component, the UWB component, and other hardware circuit modules (including but not limited to the millimeter wave radar detection circuit, Wifi+BLE radio frequency chip, and others); under normal circumstances, the main control MCU is in a sleep state and the BLE component is always broadcasting radio messages at a certain frequency.
[0066] In one possible implementation, a smart door lock system includes a smart door lock and a user terminal, wherein the smart device may be the smart door lock in the above embodiment; the smart door lock is used to start a first component (e.g., a PIR component); if the first component detects the presence of a target object, the second component is started; the second component is in an unstarted state when the target object does not appear; based on the second component (e.g., a UWB component), the distance between the target object and the door lock is detected; if the distance between the target object and the door lock meets a first set threshold, a set operation is performed. The user terminal is used to send motion data to a third component (BLE component) of the smart door lock, so that the smart door lock determines whether the target object is in motion based on the motion data, and starts the first component when the target object is in motion.
[0067] The application scenario corresponding to the door lock control method is now explained in conjunction with the smart access control system: the target object carries a user terminal 110. When the target object enters the detection range of the BLE component of the smart door lock, the BLE component of the smart door lock detects the user terminal 110 and establishes a communication connection with the BLE component of the user terminal 110; the user terminal 110 sends the user data to the smart door lock through the communication connection. If the user is determined to be in motion based on the motion data, the smart door lock starts the PIR component; if the PIR component detects the presence of the user, the smart door lock starts the UWB component; if the UWB component detects that the distance between the target object and the smart door lock meets the first set threshold, the smart door lock is controlled to unlock.
[0068] See also Figure 3 The embodiment of the present application provides a door lock control method, which is applicable to an electronic device, which may be Figure 1 A smart device 130 is shown in an implementation environment.
[0069] In the following method embodiments, for ease of description, the execution subject of each step of the method is taken as an electronic device as an example for illustration, but this does not constitute a specific limitation.
[0070] like Figure 3 As shown, the method may include the following steps:
[0071] Step 310, controlling the door lock to start the first component.
[0072] The first component is in an inactive state when the target object does not enter the first activation area or is not triggered. The first component has low power consumption and has the function of directional detection of the target object.
[0073] In one possible implementation, whether the target object has entered the first start area or whether the first component needs to be triggered can be determined by whether a communication connection is established between the third component of the door lock and the third component of the user terminal carried by the target object; specifically, when a communication connection is established between the third component of the door lock and the third component of the user terminal carried by the target object, it can be regarded that the target object has entered the first start area, thereby controlling the door lock to start the first component.
[0074] It should be noted that the first start-up area is within the detection range of the first component. Furthermore, the first start-up area of the first component should include the second start-up area of the second component. To reduce power consumption, the first component and the second component are usually kept in a closed state, and the power consumption of the first component is greater than that of the second component. During the detection process, the first component can be started first, and the first component can be used to detect whether a target object appears. When the first component detects the target object, the door lock is controlled to start the second component, thereby reducing the energy consumption of the second component and further reducing the energy consumption of the door lock.
[0075] Step 330: If the target object is detected based on the first component, the door lock is controlled to start the second component.
[0076] The second component has a high-precision positioning function, and can provide sub-meter or even centimeter-level positioning accuracy, for example, the second component is a UWB component. The target object may refer to a person, a vehicle, an object, etc., for example, the target object is a user.
[0077] It should be noted that the power consumption of the second component is greater than that of the first component. The second component is in an inactive state when the first component does not detect the presence of the target object. It can be understood that when the first component does not detect the presence of the target object, keeping the second component in an inactive state helps to reduce energy consumption. When the first component detects the presence of the target object, the door lock is controlled to start the second component, and further detection is performed through the second component to determine the distance of the target object or the intention to unlock.
[0078] Step 350: Detect the distance between the target object and the door lock based on the second component.
[0079] As mentioned above, the second component has a high-precision positioning function, and therefore, the second component can be used to detect the distance between the target object and the door lock.
[0080] Step 370: If the distance between the target object and the door lock meets the first set threshold, the door lock is controlled to perform a set operation.
[0081] The first set threshold is determined according to user needs. For example, the user wants to ensure that the unlocking is performed in a relatively safe environment. Then, the first set threshold corresponds to a closer distance, such as 50 centimeters.
[0082] Regarding the set operation, it can be an unlocking operation set by the user for the door lock, or it can be a notification operation, for example, sending a notification to the user's mobile application or other device to inform the user of the change in the door lock status; it can also be the execution of an automated operation, such as triggering the turning on of specific lights or security cameras based on the unlocking of the door lock, etc., which is not limited here.
[0083] Through the above process, when the first component detects the presence of the target object, the door lock is controlled to start the second component, which can reduce energy consumption. In addition, since the second component has a high-precision positioning function, it can accurately determine the distance between the target object and the door lock. When it is detected that the distance between the target object and the door lock meets the first set threshold, the door lock is controlled to perform the set operation, which can effectively avoid misunderstanding the lock, thereby solving the problem of low unlocking accuracy in related technologies.
[0084] See also Figure 4 In an exemplary embodiment, step 330 may further include the following steps:
[0085] Step 331, obtaining signal data from the user end.
[0086] The signal data is used to indicate the relative distance between the user terminal and the door lock.
[0087] First of all, it should be noted that the high-precision positioning function of the second component is realized through communication between the user terminal and the second component. If the target object enters the third area, the user terminal (smartphone, tablet computer, smart watch, etc.) carried by it can establish a communication connection with the second component. Among them, the above-mentioned user terminal is an electronic device that supports the second component, so a communication connection can be established between the user terminal and the second component.
[0088] After the user terminal establishes a communication connection with the second component, the user terminal will periodically send signal data, which may include signal strength and signal arrival time. Then, the relative position between the user terminal and the door lock can be determined based on the signal data such as signal strength and signal arrival time.
[0089] It should be noted that before the user terminal establishes a communication connection with the second component, the user terminal needs to be authenticated. In one embodiment, the communication connection is established between the third component (such as the BLE component) and the user terminal, and the identity information (ID and other identity information) of the user terminal and the third component are exchanged, so as to use the third component as a communication intermediary to complete the identity authentication, thereby establishing a communication connection between the second component and the user terminal. Under the effect of this embodiment, the identity authentication can be completed through the low-power third component to reduce energy consumption, and there are many user terminals on the market that support the third component (such as the BLE component), which can be more flexibly interconnected with the existing user terminals on the market that support the third component.
[0090] Of course, since the user terminal supports the second component, the second component can also directly authenticate the user terminal to ensure that the user terminal is a legitimate electronic device to establish a communication connection between the second component and the user terminal. Under the effect of this embodiment, using the second component to authenticate the user terminal alone can improve security.
[0091] Step 333, performing calculation based on the signal data to obtain the distance between the target object and the door lock.
[0092] As mentioned above, the signal data may include signal strength and signal arrival time.
[0093] Among them, the signal arrival time refers to the time required for the signal to be transmitted from the sending end to the receiving end. For example, the user end sends a pulse signal and records the sending time. The second component receives the pulse signal and records the arrival time of the pulse signal. Then, the signal arrival time can be calculated by the sending time and the arrival time. Furthermore, the distance between the user end and the door lock can be calculated using the signal arrival time and the signal propagation speed (generally the speed of light). Since the target object carries the user end, the distance between the target object and the door lock can be obtained.
[0094] In the above process, the distance between the target object and the door lock is calculated through signal data, which can achieve high-precision distance measurement and provide a reliable unlocking basis for door lock control.
[0095] See also Figure 5 In an exemplary embodiment, before step 310, the method may further include the following steps:
[0096] Step 410, obtaining the motion data of the user terminal based on the third component of the door lock.
[0097] Among them, the third component has the function of short-range communication. The third component has low power consumption and is suitable for devices that need to be powered by batteries for a long time. Compared with the first component and the second component, the third component can significantly reduce battery consumption without sacrificing the communication range. The third component can be in a state of long-term or periodic opening.
[0098] The motion data is used to indicate the motion of the target object, and can be obtained by measuring the activity of the target object by the user terminal carried by the target object. For example, if the target object carries a smartphone, the inertial measurement unit of the smartphone can be used to measure the angular velocity and acceleration of the smartphone, and the angular velocity and acceleration are the motion data.
[0099] Then, after the user terminal measures the motion data, it can send the motion data to the door lock using a third component through the communication connection between the door lock and the user terminal.
[0100] Step 430: determine whether the target object is in motion according to the motion data.
[0101] First of all, it should be noted that the state of the target object is determined based on the user terminal it carries. It can be understood that if the target object does not carry the user terminal, and the user terminal happens to be within the detection range of the third component, for example, the target object places the user terminal at the entrance of the room, at this time the user terminal is close to the door lock, and the user terminal can establish a connection with the third component of the door lock, but if the user does not carry the user terminal at this time, the user terminal will be in a static state; or if the target object carries the user terminal and stands still near the door lock, then according to the motion data obtained from the user terminal, it can be determined that the target object is not in motion.
[0102] In order to avoid energy waste caused by mistakenly starting the first component and further reduce energy consumption, after determining that the target object is in motion based on the motion data of the user, the door lock can be controlled to start the first component to avoid mistaken start-up.
[0103] Step 450: When the target object is in motion, control the door lock to start the first component.
[0104] It can be understood that if the motion data indicates that the target object is not in motion, it means that the target object does not carry the user terminal or the target object is in a stationary state and has no tendency to unlock, so there is no need to control the door lock to start the first component; on the contrary, if the motion data indicates that the target object is in motion, it can be determined that the target object carries the user terminal and is in a mobile state. At this time, controlling the door lock to start the first component for further detection can avoid energy waste caused by incorrect startup.
[0105] Through the above embodiment, the motion state of the target object is determined based on the motion data measured by the user end, so as to avoid energy waste caused by erroneous control of the door lock to start the first component, thereby reducing energy consumption and improving the continuous working ability of the door lock.
[0106] In an exemplary embodiment, step 430 may include the following steps: determining whether the motion data exceeds a second set threshold; if it exceeds the second set threshold, determining that the target object is in motion.
[0107] The second set threshold is used to determine whether the target object is in motion.
[0108] First of all, it is explained that whether the target object is in motion can be detected based on the motion data. Specifically, if the motion data can include acceleration and angular velocity, then the amplitude of the acceleration and angular velocity can be calculated, and the amplitude can be compared with a second set threshold. If any one of the amplitudes exceeds the second set threshold, it is considered that the target object is in motion.
[0109] It should be noted that the setting of the second set threshold value can be related to the sensor used by the user end to measure motion data. For example, the second set threshold value can be set according to the range (such as ±2g, ±4g, ±8g, etc.) and accuracy of the acceleration sensor used. For example, a higher acceleration value usually indicates more intense motion. The second set threshold value can be set at the upper limit of the proximity sensor, but it should not be too low to avoid misjudging slight shaking as motion. This is not limited here.
[0110] It should be supplemented that, through motion data analysis based on specific sensors, the second set threshold can be adaptively adjusted according to different hardware platforms and sensor characteristics to improve the versatility and accuracy of detection. Furthermore, the detection of the motion state of the target object can be optimized to reduce false alarms and missed alarms, thereby ensuring stability and effectiveness in actual application scenarios.
[0111] Through the above process, by calculating the motion data and comparing it with the set second threshold, it is possible to effectively detect whether the target object is in a motion state, thereby being able to quickly and accurately determine the motion state of the target object.
[0112] See also Figure 6 In an exemplary embodiment, before step 410, the method may further include the following steps:
[0113] Step 510: broadcast a connection message through a third component.
[0114] The connection message is used for the door lock to establish a connection with other electronic devices, and may include information such as a device identifier and a device type. In a possible implementation, the connection message is a radio message. The third component may send a radio message at a certain frequency to request to establish a connection with other electronic devices.
[0115] Step 530: Receive a connection request returned by the user end in response to the connection message, and perform identity authentication on the user end based on the connection request.
[0116] First of all, it should be noted that the door lock can be set to use a third component to broadcast connection messages at a certain frequency (the frequency can be changed). If a user terminal receives the connection message within the broadcast range of the third component, the user terminal will return a connection request to the third component based on the connection message. When the third component receives the connection request, it can perform identity authentication between the user terminal and the third component based on the connection request.
[0117] Among them, the user end is an electronic device that supports the third component. Before the door lock is connected to the user end, it is necessary to ensure that the user end is a legal electronic device. Based on this, identity authentication can be performed between the user end and the door lock. The user end that passes the identity authentication is a legal electronic device.
[0118] Step 550: If the user terminal passes the identity authentication, a communication connection is established between the user terminal and the third component, so as to utilize the third component to obtain the motion data of the user terminal based on the established communication connection.
[0119] In a possible implementation, the user terminal can be authenticated using the communication protocol corresponding to the third component. If the user terminal passes the identity authentication, then the user terminal is a legitimate electronic device. For example, the third component is a BLE component, and the communication protocol is the BLE protocol.
[0120] Then, the door lock can establish a communication connection with the user end that has passed the identity authentication. That is to say, the door lock establishes a communication connection with the user end using the third component, so that the motion data of the user end can be obtained based on the third component.
[0121] Through the above process, identity authentication is performed between the user end and the door lock by broadcasting a connection message, thereby establishing a communication connection between the third component and the user end, improving the security of the smart door lock and facilitating the subsequent use of the communication connection to transmit motion data.
[0122] In an exemplary embodiment, the first detection area of the third component includes the first activation area of the first component, and the first activation area includes the second activation area of the second component.
[0123] Among them, the first detection area is the area within the detection range of the third component. It should be understood that the range of the first detection area does not have to be equal to the detection range of the third component, and the size of the first detection area can be set according to user needs.
[0124] Specifically, the third component of the smart door lock will continuously broadcast link messages. When the target object carries the user terminal into the first detection area, the third component can establish a communication connection between the user terminal and the third component by receiving the connection request returned by the user terminal in response to the connection message, so as to facilitate the subsequent transmission of motion data based on the established communication connection.
[0125] Furthermore, the broadcast limit distance range of the third component can be regarded as the detection range of the third component, that is, the first detection area can be the maximum transmittable distance range between the user terminal and the third component. Of course, affected by obstacles (such as walls) in the building space, the actual detection range of the third component may be smaller than the broadcast limit distance range of the third component. It can be understood that the connection message is broadcast by the third component. Due to the broadcast limit distance range of the third component, the connection information can only be received within the detection range of the third component. Therefore, the range size of the first detection area can be appropriately adjusted according to the actual situation to improve the detection accuracy of the third component.
[0126] It should be noted that the first activation area is an area that can trigger the activation of the first component, and the first detection area includes the first activation area; specifically, when the target object enters the first activation area, the third component obtains the motion data of the user end carried by the target object, and triggers the activation of the first component when the target object is in motion. Of course, the range size of the first activation area can also be set according to user needs.
[0127] The second startup area is the area that triggers the startup of the second component. The first startup area includes the second startup area. Specifically, when the target object enters the second startup area, the first component can detect the appearance of the target object and trigger the startup of the second component. Of course, the size of the second startup area can also be set according to user needs.
[0128] It should be understood that the closer the target object is to the smart door lock, the higher the expectation of unlocking is. Therefore, the first detection range, the first start-up area, and the second start-up area can indicate different levels of expectation. When the target object is far away from the smart door lock (first detection range), the expectation of unlocking is low. At this time, basic monitoring is performed and the precise positioning and unlocking mechanism may not be triggered; when the target object is close to the smart door lock (first start-up area), the expectation of unlocking increases, the monitoring of the target object can be strengthened, and preparations can be made for the next step of precise positioning. At this time, the unlocking mechanism has not been triggered; when the target object is very close to the smart door lock (second start-up area), the expectation of unlocking is high, so the second component can be started to accurately locate the target object to determine whether to perform the unlocking operation.
[0129] Figure 7 A specific implementation diagram of regional division is shown in FIG. Figure 7 As shown, the first detection area, the first start area, and the second start area are areas from large to small, and the center point can be the position of the smart door lock. In other words, the target object enters the first start area and the second start area from the first detection area in sequence, and the target object is closer to the smart door lock. Among them, the first monitoring area can be an area less than 6 meters away from the smart door lock, the first start area can be a semicircle area about 2.5 meters away from the smart door lock, and the second start area can be a semicircle area about 1.5 meters away from the smart door lock.
[0130] It should be understood that when controlling the unlocking of a smart door lock, the closer the target object is to the smart door lock, the better. On the one hand, it can prevent mis-locking and avoid unlocking when there is no need to unlock; on the other hand, it improves security and avoids personal injury and property damage caused by mis-locking operations.
[0131] In combination with the above embodiments, through this multi-level area division and phased monitoring, when the target object has not entered the first start-up area and the second start-up area, the first component and the second component are in an inactive state, thereby reducing the energy consumption caused by the first component and the second component, effectively balancing energy consumption and unlocking accuracy, and ensuring that the high-power first component with high-precision positioning function is started only when necessary, thereby improving unlocking efficiency and security.
[0132] See also Figure 8 In an exemplary embodiment, step 310 may further include the following steps:
[0133] Step 311, use the first component to perform target detection in an outdoor area to obtain a detection result.
[0134] As mentioned above, the first component has the function of directional detection of target objects, so the first component can be used to detect target objects in the outdoor area. The scope of the outdoor area can be set by setting a suitable detection direction and boundary for the first component.
[0135] First of all, it should be noted that the third component does not distinguish between outdoor and indoor areas when detecting the position of the target object. It can be understood that if the smart door lock does not have a second component for directionally detecting the target object, it cannot distinguish between outdoor and indoor areas. When the target object is in the indoor area (at this time, the set operation is not expected to be performed), the target object is already within the detection range of the third component and enters the second starting range of the second component. Then, the electronic device will control the door lock to start the second component, thereby causing energy waste and the problem of mistakenly starting the second component.
[0136] Step 313: If the detection result indicates that the target object is detected in the outdoor area, it is determined that the target object appears.
[0137] It should be noted that, depending on the target object and the needs, a suitable first component can be configured for the door lock. For example, the target object is a vehicle, and a user terminal is configured on the vehicle. The requirement is to control the door lock to start the rolling door when the vehicle is outside the garage so that the vehicle can enter the garage. Then, the first component can be a radar component, an RFID component, a ToF component, or the like. For another example, the target object is a user, and the user carries a user terminal. The requirement is to control the door lock to open the door when the user arrives at the door of the house so that the user can go home. Then, the first component can be a PIR component, an IR component, or the like.
[0138] Through the above process, the directional detection capability of the first component can be used to detect target objects appearing in the outdoor area, thereby avoiding the second component from being mistakenly activated when the target object is in the indoor area, thereby avoiding energy waste. Furthermore, it can also avoid the incorrect execution of setting operations of the control door lock due to the mistaken activation of the second component, thereby solving the problem of low door lock control accuracy existing in the related technology.
[0139] See also Fig. 9 In an exemplary embodiment, step 310 includes the following steps:
[0140] Step 610: When the first component runs for a first set time, an interrupt signal is generated.
[0141] First of all, it should be noted that when the first component is just started, since the first component is in a preheating state, the output level of the first component will keep changing. At this time, the first component cannot detect the target object, and the door lock will not recognize the output level of the first component in the preheating state.
[0142] Among them, the first set time is the time required for the first component to end the preheating state. When the first component ends the preheating state, its output level will be stable (either high level or low level). At this time, the door lock enables the interrupt mark triggered by the first component to generate a corresponding interrupt signal according to the output level.
[0143] Step 630: If the interrupt signal indicates that the output level of the first component changes, it is determined that the target object appears.
[0144] The interrupt signal is used to indicate whether the output level of the first component changes.
[0145] It should be noted that if the output level of the first component changes, it can indicate that the first component detects the presence of the target object.
[0146] For example, assuming that the output level of the first component is low when the target object is not detected, if the target object appears, the output level of the first component will become high, and accordingly, the interrupt signal will indicate that the output level of the first component has changed.
[0147] Under the effect of the above-mentioned embodiment, by reasonably managing the preheating state of the first component, ensuring the stability of the output level of the first component, and using the interrupt signal to indicate the output level change, accurate detection of the target object can be achieved, thereby improving the reliability of door lock control.
[0148] In an exemplary embodiment, the method may further include the following step: if the first component does not detect the target object within a second set time, shutting down the first component.
[0149] The second set time is the continuous working time of the first component when no target object is detected.
[0150] It can be understood that even if the target object is detected in motion by the third component and the smart door lock is controlled to open the first component, it does not mean that the target object will definitely enter the detection range of the first component. If the target object does not appear and the first component continues to work, it will cause energy waste. Therefore, it is necessary to set a continuous working time for the first component when the target object is not detected.
[0151] The second set time can be adjusted according to the actual needs of the user or the actual application scenario. For example, in a place with low flow of people, a shorter second set time can be set. After starting the first component, if the first component does not detect the appearance of the target object after the second set time, the door lock will be controlled to close the first component to reduce power consumption and extend the service life of the equipment.
[0152] It should be noted that the first component can be turned off after the first component detects the appearance of the target object and controls the smart door lock to open the second component; similarly, the second component can be turned off after the second component detects that the distance between the target object and the smart door lock meets the first set threshold and controls the smart door lock to perform the set operation, so as to avoid energy waste caused by long-term operation of the first and second components and further save energy.
[0153] Through the above process, the second set time is adaptively set according to the actual needs of the user or the actual application scenario, which can avoid energy waste caused by the first component working continuously for a long time.
[0154] Fig.10 and Fig.11 This is a schematic diagram of a specific implementation of a door lock control method in an application scenario. The application scenario is a smart home scenario. Fig.10 Can be applied to Figure 1 The user terminal 110 shown in the implementation environment, Fig.11 Can be applied to Figure 1 A smart device 130 is shown in the implementation environment.
[0155] First of all, it should be noted that in this application scenario, the target object is the user, the user terminal 130 is a smart phone, and the smart device 130 is a smart door lock. This application scenario can correspond to the scene of the user returning home, and the smart door lock is set in the entrance door of the user's residence.
[0156] Fig.10 The schematic diagram of the process of the user terminal 110 executing the door lock control method in the application scenario is shown. Fig.10 The door lock control method executed by the user terminal 110 is described as follows:
[0157] Through step 701, the BLE component of the smart phone carried by the user will always scan the connection message broadcast by the BLE component of the smart door lock.
[0158] Through step 703, when the BLE component of the smart phone receives the connection message, it returns a connection request to the smart door lock.
[0159] Through step 705, the smart door lock performs identity authentication on the smart phone based on the connection request to ensure that the smart phone is legitimate.
[0160] Through step 707, a communication connection is established between the smart door lock and the smart phone that has passed identity authentication.
[0161] Through step 709, the BLE component of the smart phone receives the inertial measurement unit measurement request sent by the BLE component of the smart door lock.
[0162] Through step 711, the smart phone calls the motion data measured by the inertial measurement unit in the system every second.
[0163] If the smartphone is an Android system, then getDefaultSensor(TYPE_STEP_DETECTOR) of Sensor.Manager in the Android system can be called to read the motion data, which can be the step count value of one step of human body.
[0164] Through step 713, the smart phone sends the motion data to the smart door lock through the BLE component and returns to step 701.
[0165] Please refer to Figure 2a and Figure 2b , Figure 2a and Figure 2b The hardware system block diagram of a smart door lock is shown respectively. Fig.11 The schematic diagram of the process of the smart device 130 executing the door lock control method in the application scenario is shown. Fig.11 and Figure 2a , Figure 2b The door lock control method executed by the smart device 130 is described as follows:
[0166] Through step 801, the smart door lock BLE component has been broadcasting connection messages at a certain frequency, and other components are in a power-off or sleep state.
[0167] Through step 803, when the BLE component of the smart phone receives the connection message broadcast by the BLE component of the smart door lock, the BLE components at both ends establish a communication connection.
[0168] Through step 805, the smart door lock keeps sending inertial measurement unit measurement requests to the smart phone through the BLE component at the same frequency; if the smart door lock and the smart door lock do not establish a communication connection, return to step 801.
[0169] Through step 807, when the motion data exceeds the threshold, the smart door lock turns on the power of the PIR component and waits for the PIR component to end the preheating state, and enables the interrupt flag triggered by the PIR component; if the motion data does not exceed the threshold, return to step 805;
[0170] Through step 809, if the PIR component detects that someone is moving within the set time, the UWB component is turned on and communication with the UWB component of the smartphone is started to identify whether the user is within the effective unlocking distance. If the PIR component has not detected that someone is moving, the PIR component is turned off and returns to step 805.
[0171] Through step 809, if it is detected that the user is within the effective unlocking distance range, the smart door lock is controlled to perform the unlocking operation.
[0172] In this application scenario, the BLE component of the smart door lock delays the start-up time of the PIR component, and the PIR component delays the start-up time of the high-energy-consuming UWB component, thereby reducing the power consumption of the smart door lock and avoiding starting the UWB component only through the BLE component or the PIR component, thereby avoiding accidental unlocking and improving the accuracy and safety of door lock control.
[0173] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0174] The following is an embodiment of the device of the present application, which can be used to execute the door lock control method involved in the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the method embodiment of the door lock control method involved in the present application.
[0175] See also Fig.12 In an embodiment of the present application, a door lock control device 900 is provided, including but not limited to: a component startup module 910, a target detection module, a distance detection module 930, and an operation execution module 950.
[0176] The component starting module 910 is used to control the door lock to start the first component.
[0177] The target detection module 930 is used to control the door lock to start the second component if the first component detects the presence of the target object; the second component is in an inactive state when the target object does not appear.
[0178] The distance detection module 930 is used to detect the distance between the target object and the door lock based on the second component.
[0179] The operation execution module 950 is used to control the door lock to execute a set operation if the distance between the target object and the door lock meets the set condition.
[0180] In an exemplary embodiment, the component startup module 910 is also used to obtain motion data of the user end based on the third component of the door lock; determine whether the target object is in motion according to the motion data; and control the door lock to start the first component when the target object is in motion.
[0181] In an exemplary embodiment, the component startup module 910 is further used to determine whether the motion data exceeds a second set threshold; if it exceeds the second set threshold, the target object is in motion.
[0182] In an exemplary embodiment, the component startup module 910 is also used to broadcast a connection message through a third component; receive a connection request returned by the user end in response to the connection message, and authenticate the user end based on the connection request; if the user end passes the authentication, a communication connection is established between the user end and the third component, so as to use the third component to obtain the motion data of the user end based on the established communication connection.
[0183] In an exemplary embodiment, the component startup module 910 also includes that the first detection area of the third component includes the first startup area of the first component, and the first startup area includes the second startup area of the second component; wherein the first detection area is the area within the detection range of the third component; the first startup area is the area that triggers the startup of the first component; and the second startup area is the area that triggers the startup of the second component.
[0184] In an exemplary embodiment, the target detection module 910 is further configured to perform target detection in an outdoor area using the first component to obtain a detection result; if the detection result indicates that a target object is detected in the outdoor area, it is determined that the target object appears.
[0185] In an exemplary embodiment, the target detection module 930 is further configured to generate an interrupt signal when the first component runs for a first set time; if the interrupt signal indicates that the output level of the first component changes, it is determined that the target object appears.
[0186] In an exemplary embodiment, the component startup module 910 is further configured to shut down the first component if the first component fails to detect the target object within a second set time.
[0187] In an exemplary embodiment, the distance detection module 950 is also used to obtain signal data from the user end; the signal data is used to indicate the relative distance between the user end and the door lock; and calculation is performed based on the signal data to obtain the distance between the target object and the door lock.
[0188] It should be noted that the door lock control device provided in the above embodiment only uses the division of the above-mentioned functional modules as an example when performing door lock control. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the door lock control device will be divided into different functional modules to complete all or part of the functions described above.
[0189] In addition, the embodiments of the door lock control device and the door lock control method provided in the above embodiments belong to the same concept, and the specific manner in which each module performs the operation has been described in detail in the method embodiments and will not be repeated here.
[0190] Fig.13 A schematic diagram of the structure of an electronic device according to an exemplary embodiment. The electronic device is suitable for Figure 1 The smart device end 130 in the implementation environment is shown.
[0191] It should be noted that the electronic device is only an example adapted to the present application and cannot be considered to provide any limitation on the scope of use of the present application. The electronic device cannot be interpreted as requiring dependence on or having Fig.13 One or more components of exemplary electronic device 2000 are shown.
[0192] The hardware structure of the electronic device 2000 may vary greatly due to differences in configuration or performance, such as Fig.13 As shown, the electronic device 2000 includes: a power supply 210 , an interface 230 , at least one memory 250 , and at least one central processing unit (CPU) 270 .
[0193] Specifically, the power supply 210 is used to provide operating voltage for each hardware device on the electronic device 2000 .
[0194] The interface 230 includes at least one wired or wireless network interface 231 for interacting with external devices. Figure 1 The smart device 130 and the user terminal 110 in the implementation environment are shown.
[0195] Of course, in other examples adapted by the present application, the interface 230 may further include at least one serial-to-parallel conversion interface 233, at least one input-output interface 235, and at least one USB interface 237, etc. Fig.13 As shown, this is not intended to be a specific limitation.
[0196] The memory 250 is a carrier for storing resources, which may be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon include an operating system 251, an application 253 and data 255, etc. The storage method may be temporary storage or permanent storage.
[0197] Among them, the operating system 251 is used to manage and control various hardware devices and application programs 253 on the electronic device 2000 to enable the central processor 270 to calculate and process the massive data 255 in the memory 250. It can be WindowsServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
[0198] The application program 253 is a computer-readable instruction that performs at least one specific task based on the operating system 251, and may include at least one module ( Fig.13 (not shown), each module may respectively contain computer-readable instructions for the electronic device 2000. For example, the door lock control device may be regarded as an application 253 deployed on the electronic device 2000.
[0199] The data 255 may be photos, pictures, etc. stored in a disk, or may be connection messages, motion data, etc. stored in the memory 250 .
[0200] The central processor 270 may include one or more processors and is configured to communicate with the memory 250 through at least one communication bus to read the computer-readable instructions stored in the memory 250, thereby realizing the operation and processing of the mass data 255 in the memory 250. For example, the door lock control method is completed by the central processor 270 reading a series of computer-readable instructions stored in the memory 250.
[0201] In addition, the present application can also be implemented through hardware circuits or hardware circuits combined with software. Therefore, the implementation of the present application is not limited to any specific hardware circuits, software, or a combination of the two.
[0202] See also Fig.14 In an embodiment of the present application, an electronic device 4000 is provided, and the electronic device 4000 may include: a smart door lock.
[0203] exist Fig.14 In the embodiment, the electronic device 4000 includes at least one processor 4001 and at least one memory 4003.
[0204] The data interaction between the processor 4001 and the memory 4003 can be realized through at least one communication bus 4002. The communication bus 4002 may include a path for transmitting data between the processor 4001 and the memory 4003. The communication bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The communication bus 4002 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0205] Optionally, the electronic device 4000 may further include a transceiver 4004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 4004 is not limited to one, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present application.
[0206] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 4001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0207] The memory 4003 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program instructions or codes in the form of instructions or data structures and can be accessed by the electronic device 400, but is not limited to this.
[0208] Computer-readable instructions are stored in the memory 4003 , and the processor 4001 can read the computer-readable instructions stored in the memory 4003 through the communication bus 4002 .
[0209] The computer-readable instructions are executed by one or more processors 4001 to implement the door lock control method in the above-mentioned embodiments.
[0210] In addition, a storage medium is provided in an embodiment of the present application, on which computer-readable instructions are stored. The computer-readable instructions are executed by one or more processors to implement the door lock control method as described above.
[0211] A computer program product is provided in an embodiment of the present application. The computer program product includes computer-readable instructions. The computer-readable instructions are stored in a storage medium. One or more processors of an electronic device read the computer-readable instructions from the storage medium, load and execute the computer-readable instructions, so that the electronic device implements the door lock control method as described above.
[0212] Compared with the related art, the door lock is controlled to start the second component only when the first component detects the presence of the target object, which can reduce energy consumption. In addition, since the second component has a high-precision positioning function, it can accurately determine the distance between the target object and the door lock. When it is detected that the distance between the target object and the door lock meets the first set threshold, the door lock is controlled to perform the set operation, which can effectively avoid misunderstanding the lock, thereby solving the problem of low unlocking accuracy in the related art.
[0213] Furthermore, through this multi-level area division and phased monitoring, when the target object has not entered the first start-up area or the second start-up area, the first component and the second component are in an inactive state, thereby reducing the energy consumption caused by the first component and the second component, effectively balancing energy consumption and unlocking accuracy, and ensuring that the high-power first component with high-precision positioning function is started only when necessary, thereby improving unlocking efficiency and security.
[0214] It should be added that by reasonably managing the preheating state of the first component, ensuring the stability of the output level of the first component, and using the interrupt signal to indicate the output level change, accurate detection of the target object can be achieved, thereby improving the reliability of door lock control.
[0215] The above description is only a partial implementation method of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A door lock control method, characterized in that: The method comprises: Controlling the door lock to start the first component; If the target object is detected based on the first component, the door lock is controlled to start the second component; the second component is in an inactive state when the target object is not present; Based on the second component, detecting the distance between the target object and the door lock; If the distance between the target object and the door lock meets a first set threshold, the door lock is controlled to perform a set operation.
2. The method according to claim 1, characterized in that Before controlling the door lock to start the first component, the method further includes: Acquiring motion data of the user terminal based on the third component of the door lock; determining whether the target object is in motion according to the motion data; When the target object is in the motion state, the door lock is controlled to start the first component.
3. The method according to claim 2, characterized in that The determining whether the target object is in motion according to the motion data includes: Determining whether the motion data exceeds a second set threshold; If it exceeds the second set threshold, it is determined that the target object is in motion.
4. The method according to claim 2, characterized in that The acquiring of the motion data of the user terminal based on the third component of the door lock includes: Broadcasting a connection message through the third component; receiving a connection request returned by the user end in response to the connection message, and performing identity authentication on the user end based on the connection request; If the user terminal passes the identity authentication, a communication connection is established between the user terminal and the third component, so that the third component can use the established communication connection to obtain the motion data of the user terminal.
5. The method according to claim 2, characterized in that The first detection area of the third component includes the first activation area of the first component, and the first activation area includes the second activation area of the second component; The first detection area is an area within the detection range of the third component; the first startup area is an area that triggers the startup of the first component; and the second startup area is an area that triggers the startup of the second component.
6. The method according to claim 1, characterized in that If the target object is detected based on the first component, controlling the door lock to start the second component includes: Using the first component to perform target detection in an outdoor area to obtain a detection result; If the detection result indicates that the target object is detected in the outdoor area, it is determined that the target object appears.
7. The method according to any one of claims 1 to 6, characterized in that: If the target object is detected based on the first component, the method includes: When the first component runs for a first set time, an interrupt signal is generated; If the interrupt signal indicates that the output level of the first component changes, it is determined that the target object appears.
8. The method according to any one of claims 1 to 6, characterized in that After the control door lock starts the first component, the method further includes: If the first component fails to detect the target object within a second set time, the first component is turned off.
9. The method according to any one of claims 1 to 6, characterized in that: The detecting the distance between the target object and the door lock based on the second component includes: Acquire signal data of the user terminal; the signal data is used to indicate the relative distance between the user terminal and the door lock; A calculation is performed based on the signal data to obtain a distance between the target object and the door lock.
10. A door lock control device, characterized in that: The device comprises: A component start module, used to control the door lock to start the first component; A target detection module, configured to control the door lock to start a second component if the target object is detected based on the first component; the second component is in an inactive state when the target object is not present; a distance detection module, configured to detect the distance between the target object and the door lock based on the second component; The operation execution module is used to control the door lock to execute a set operation if the distance between the target object and the door lock meets a set condition.
11. A smart door lock, characterized in that: The smart door lock includes a first component, a second component, a third component and a main control module; The first component is used to detect whether the target object appears; The second component is used to measure the distance between the target object and the smart door lock; The third component is used to obtain the motion data sent by the user terminal; The main control module is used to determine whether the target object is in motion according to the motion data acquired by the third component; When the target object is in the motion state, starting the first component; When the first component detects the presence of the target object, the second component is started; The second component is in an inactive state when the target object does not appear; When the second component detects that the distance between the target object and the smart door lock meets a first set threshold, the smart door lock is controlled to perform a setting operation.
12. The smart door lock according to claim 11, characterized in that: The power consumption of the second component is greater than that of the first component, and the power consumption of the first component is greater than that of the third component.
13. An intelligent access control system, characterized in that: The intelligent access control system includes an intelligent door lock and a user terminal. The smart door lock is used to start the first component; if the first component detects the presence of the target object, the second component is started; The second component is in an inactive state when the target object does not appear; Based on the second component, detecting the distance between the target object and the smart door lock; If the distance between the target object and the smart door lock meets a first set threshold, a setting operation is performed; The user terminal is used to send motion data to the third component of the smart door lock, so that the smart door lock determines whether the target object is in motion according to the motion data, and starts the first component when the target object is in the motion state.
14. An electronic device, characterized in that: include: at least one processor and at least one memory, wherein: The memory has computer-readable instructions stored thereon; The computer-readable instructions are executed by one or more of the processors, so that the electronic device implements the door lock control method as claimed in any one of claims 1 to 9.
15. A storage medium having computer-readable instructions stored thereon, characterized in that: The computer-readable instructions are executed by one or more processors to implement the door lock control method according to any one of claims 1 to 9.
16. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Control method and device, electronic device and storage medium
CN110347076A
Intelligent door lock system based on combination of multiple sensors and unlocking method
CN112837452A
Intelligent door lock awakening method, terminal equipment and intelligent door lock
CN113223215A
UWB-based door lock control method and device, terminal and readable storage medium
CN113947826A
Door lock pre-awakening method and device, electronic equipment and storage medium
CN114005198A
Cited By
Intelligent lock non-inductive passing method and system based on millimeter waves and Bluetooth
CN119888904A
An intelligent lock passive access method and system based on millimeter wave and Bluetooth
CN119888904B