CN113808302B - Door lock control method and electronic equipment - Google Patents

Door lock control method and electronic equipment Download PDF

Info

Publication number
CN113808302B
CN113808302B CN202110925808.0A CN202110925808A CN113808302B CN 113808302 B CN113808302 B CN 113808302B CN 202110925808 A CN202110925808 A CN 202110925808A CN 113808302 B CN113808302 B CN 113808302B
Authority
CN
China
Prior art keywords
router
electronic device
user
door lock
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110925808.0A
Other languages
Chinese (zh)
Other versions
CN113808302A (en
Inventor
吴迪
马超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xi'an Honor Device Co ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202110925808.0A priority Critical patent/CN113808302B/en
Publication of CN113808302A publication Critical patent/CN113808302A/en
Application granted granted Critical
Publication of CN113808302B publication Critical patent/CN113808302B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • H04B17/309Measuring or estimating channel quality parameters
    • H04B17/318Received signal strength
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Electromagnetism (AREA)
  • Computer Security & Cryptography (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The embodiment of the application provides a door lock control method and electronic equipment, in the method, an access point AP detects that the electronic equipment is accessed into the AP, a pre-unlocking instruction can be sent to the electronic equipment, the electronic equipment responds to receiving the pre-unlocking instruction, an unlocking instruction can be sent to the AP after a first operation executed by a user is detected, and the AP responds to the unlocking instruction and can control the door lock of a door to be opened. In the embodiment of the application, when the door lock needs to be opened, a user does not need to perform complex operation on an interface of the electronic equipment, but only needs to perform operations such as click confirmation and shaking, so that the door lock can be opened, the operation is simple and convenient, and the applicability is high.

Description

Door lock control method and electronic equipment
Technical Field
The embodiment of the application relates to an intelligent home technology, in particular to a door lock control method and electronic equipment.
Background
Along with the continuous development of intelligent house technique, the mode of opening the lock is more and more. For example, the user may unlock the door lock by using a key, a sensor card, a fingerprint, a password, and the like.
However, in the existing door lock opening technology, a key and a sensing card are easy to lose, the sensing card is easy to demagnetize, a user easily forgets a password when the user opens the door lock by adopting the password, and the door lock cannot be opened by using fingerprints under the condition that fingers of the user are injured or seriously abraded. Therefore, a method for opening a door lock which is convenient and highly applicable is required.
Disclosure of Invention
The embodiment of the application provides a door lock control method and electronic equipment, which can be used for opening a door lock conveniently and quickly and have high applicability.
In a first aspect, an embodiment of the present application provides a door lock control method, including: the access point AP detects the signal strength of the electronic equipment in response to detecting that the electronic equipment is accessed to the AP. In one embodiment, the AP may be a router. One applicable scenario for the door lock control method is as follows: the user returns home with the electronic device, walks to the door of the home, and the electronic device automatically accesses the AP at home to trigger execution of the door lock control method in the embodiment of the application.
The AP sends a pre-unlocking instruction to the electronic equipment in response to the detection that the signal strength is greater than or equal to the preset signal strength. It should be understood that the signal strength of the electronic device is greater than or equal to the preset signal strength, which indicates that the electronic device is closer to the AP, and at this time, the AP may interact with the electronic device to unlock the door lock. Specifically, the AP may send a pre-unlock instruction to the electronic device, and the electronic device detects an operation of the user in response to the pre-unlock instruction; the electronic equipment responds to the detection that the user executes the first operation, and sends an unlocking instruction to the AP.
In the embodiment of the application, the AP can send a control instruction to the door lock in response to receiving the unlocking instruction; and the door lock responds to the control instruction to open the door lock. It should be understood that in the embodiment of the present application, the AP may interact with the electronic device, and not directly unlock the door lock, but when the electronic device detects that the user performs the first operation, the router controls to unlock the door lock, so as to avoid a problem that the door lock is unlocked when the user accesses the AP at home.
In the embodiment of the application, when the user needs to open the door lock, complex operation is not required to be performed on the interface of the electronic equipment, the door lock can be opened only by performing first operations such as clicking confirmation, shaking and the like, the operation is simple and convenient, and the user can carry the electronic equipment when going out, so that the applicability of the embodiment of the application is high.
In an embodiment, in order to avoid the problem that the user upstairs or downstairs accesses the AP and causes the door lock to be opened, in the embodiment of the present application, the AP may further detect the orientation of the electronic device when detecting the signal strength. Correspondingly, in this embodiment, the AP sends the pre-unlock instruction to the electronic device in response to detecting that the signal strength is greater than or equal to a preset signal strength and the orientation of the electronic device is within a preset orientation range.
In the embodiment of the application, the router can send to electronic equipment based on electronic equipment's signal strength and position the instruction of unblanking in advance can avoid upstairs or downstairs user to access the AP, leads to the problem that the lock was opened, has improved the safety of unblanking.
In one possible implementation manner, the preset orientation range is: the preset azimuth range of the AP or the preset azimuth range of the door. It should be understood that the preset bearing range may be pre-stored in the router or custom set by the user.
In one embodiment, before detecting the operation of the user, the electronic device may further output first prompt information in response to receiving the pre-unlocking instruction, where the first prompt information is used to instruct the user to perform the first operation to unlock the door lock. Therefore, the electronic equipment can prompt the user to execute the first operation so as to avoid the situation that the user does not know how to open the door, and the user experience can be improved.
The electronic device can output the first prompt information in a mode of interface display or voice playing and the like. For example, the electronic device may display a prompt card, where the prompt card includes the first prompt information, a confirmation control, and a cancellation control, and the first operation is an operation of the user operating the confirmation control. That is to say, the user can operate the confirmation control on the prompt card displayed by the electronic device, and can trigger the electronic device to feed back the unlocking instruction to the AP.
The first operation may also be an operation of a user speaking a preset password, or an operation of the user holding the electronic device to execute a preset action. The preset password is door opening, unlocking and the like, and the preset action can be shaking, holding the electronic equipment to draw circles in the air and the like.
In one possible implementation manner, in response to receiving the pre-unlock instruction, the electronic device may not output the first prompt information, but directly detect the operation of the user. In this embodiment, the user returns home with the electronic device, walks to the door of the home, and can perform an operation of speaking a preset password, or hold the electronic device to perform a preset action, and also can achieve the purpose that the electronic device feeds back an unlocking instruction to the AP, so that the AP controls the door lock to be opened.
In a second aspect, an embodiment of the present application provides a door lock control method, which is applied to an access point AP or a chip in the AP. The method can comprise the following steps: detecting a signal strength of an electronic device in response to detecting that the electronic device accesses the AP; in response to detecting that the signal strength is greater than or equal to a preset signal strength, sending a pre-unlocking indication to the electronic equipment; receiving an unlocking instruction from the electronic equipment, wherein the unlocking instruction is sent after the electronic equipment detects that a user executes a first operation; and sending a control instruction to the door lock, wherein the control instruction is used for indicating to open the door lock.
In one possible implementation manner, the detecting a signal strength of the electronic device includes: detecting the signal strength and the orientation of the electronic device; in response to detecting that the signal strength is greater than or equal to a preset signal strength, sending a pre-unlock indication to the electronic device, comprising: and in response to the fact that the signal intensity is larger than or equal to the preset signal intensity and the position of the electronic equipment is within the preset position range, sending the pre-unlocking indication to the electronic equipment.
In one possible implementation manner, the preset orientation range is: the preset azimuth range of the AP or the preset azimuth range of the door.
In a third aspect, an embodiment of the present application provides a door lock control method, which is applied to an electronic device or a chip in the electronic device. In the method, an electronic device detects the signal strength of a target Access Point (AP) in response to detecting that the electronic device accesses the AP; the electronic equipment detects the operation of a user in response to the detection that the signal intensity is greater than or equal to a preset signal intensity; and the electronic equipment responds to the detection that the user executes the first operation and sends a control instruction to the door lock, wherein the control instruction is used for unlocking the door lock.
In one possible implementation manner, the detecting the signal strength of the target AP includes: detecting the signal strength, and the orientation of the target AP.
The electronic equipment responds to the fact that the signal intensity is larger than or equal to the preset signal intensity, and detects user operation, and the method comprises the following steps: and the electronic equipment detects the operation of the user in response to the fact that the signal strength is larger than or equal to the preset signal strength and the position of the target AP is within the preset position range of the electronic equipment.
In a possible implementation manner, before the detecting the operation of the user, the method further includes: the electronic equipment outputs first prompt information, and the first prompt information is used for indicating a user to execute the first operation to open the door lock.
In a possible implementation manner, the outputting the first prompt information includes: the electronic equipment displays a prompt card, the prompt card comprises the first prompt information, a confirmation control and a cancellation control, and the first operation is the operation of the user for operating the confirmation control.
In one possible implementation, the first operation is to: and the user outputs a preset password, or the user holds the electronic equipment to execute a preset action.
In a fourth aspect, an embodiment of the present application provides a door lock control device, where the door lock control device may be a router or a chip in the router, and the door lock control device may include: the device comprises a signal detection module and a transceiving module. Wherein, the first and the second end of the pipe are connected with each other,
and the signal detection module is used for responding to the detection that the electronic equipment is accessed to the AP and detecting the signal strength of the electronic equipment.
The receiving and sending module is used for responding to the fact that the signal intensity is larger than or equal to the preset signal intensity, sending a pre-unlocking instruction to the electronic equipment, receiving an unlocking instruction from the electronic equipment, and sending a control instruction to the door lock, wherein the unlocking instruction is sent after the electronic equipment detects that a user executes a first operation, and the control instruction is used for indicating to open the door lock.
In a possible implementation manner, the signal detection module is specifically configured to detect the signal strength and the orientation of the electronic device. And the transceiver module is specifically used for responding to the fact that the signal strength is greater than or equal to the preset signal strength and the position of the electronic equipment is within the preset position range, and sending the preset unlocking indication to the electronic equipment.
In one possible implementation manner, the preset orientation range is: the preset azimuth range of the AP or the preset azimuth range of the door.
In a fifth aspect, an embodiment of the present application provides a door lock control device, where the door lock control device may be an electronic device or a chip in the electronic device, and the door lock control device may include: signal detection module, transceiver module, output module. Wherein the content of the first and second substances,
the signal detection module is used for responding to the detection that the electronic equipment is accessed into a target Access Point (AP), detecting the signal intensity of the target AP, and responding to the detection that the signal intensity is greater than or equal to the preset signal intensity, and detecting the operation of a user;
and the receiving and sending module is used for sending the control instruction to the door lock, and the control instruction is used for opening the door lock.
In a possible implementation manner, the signal detection module is specifically configured to detect the signal strength and the position of the target AP.
The signal detection module is further configured to detect the operation of the user in response to detecting that the signal strength is greater than or equal to a preset signal strength and the position of the target AP is within a preset position range of the electronic device.
In a possible implementation manner, the output module is configured to output, by the electronic device, first prompt information, where the first prompt information is used to instruct a user to perform the first operation to open the door lock.
In a possible implementation manner, the output module is specifically configured to display a prompt card, where the prompt card includes the first prompt information, a confirmation control, and a cancellation control, and the first operation is an operation of the user operating the confirmation control.
In one possible implementation, the first operation is to: and the user outputs a preset password, or the user holds the electronic equipment to execute a preset action.
In a sixth aspect, embodiments of the present application provide a door lock control system, which may include the door lock control device of the fifth aspect, and a door lock. In one embodiment, the system may comprise the door lock control device of the fourth aspect, the door lock control device of the fifth aspect, and a door lock.
In a seventh aspect, an embodiment of the present application provides a door lock control device, which may include: a processor, a memory. The memory is for storing computer executable program code, the program code comprising instructions; the instructions, when executed by the processor, cause the electronic device to perform the method as in the second or third aspect.
In an eighth aspect, an embodiment of the present application provides an electronic device, which may be the door lock control device of the fourth aspect or the fifth aspect. The electronic device comprises means, modules or circuits for performing the methods provided by the second or third aspects above.
In a ninth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the second or third aspect.
In a tenth aspect, embodiments of the present application provide a computer-readable storage medium having stored therein instructions, which, when executed on a computer, cause the computer to perform the method of the second or third aspect.
For each possible implementation manner of the second aspect to the tenth aspect, the beneficial effects thereof may refer to the beneficial effects brought by the first aspect, and details are not repeated herein.
The embodiment of the application provides a door lock control method and electronic equipment, in the method, an access point AP detects that the electronic equipment is accessed into the AP, a pre-unlocking instruction can be sent to the electronic equipment, the electronic equipment responds to receiving the pre-unlocking instruction, an unlocking instruction can be sent to the AP after a first operation executed by a user is detected, and the AP responds to the unlocking instruction and can control the door lock of a door to be opened. In the embodiment of the application, when the door lock needs to be opened, a user does not need to perform complex operation on an interface of the electronic equipment, and only needs to perform operations such as click confirmation, shaking and the like, so that the door lock can be opened, the operation is simple and convenient, and the applicability is high.
Drawings
Fig. 1A is a schematic view of a scenario applicable to the embodiment of the present application;
fig. 1B is a schematic view of an unlocking door lock according to an embodiment of the present application;
fig. 2 is a flowchart illustrating an access method of an electronic device accessing a router;
fig. 3 is a schematic flowchart of an embodiment of a method for controlling a door lock according to an embodiment of the present application;
FIG. 4A is a schematic diagram of a predetermined range of orientations provided in an embodiment of the present application;
FIG. 4B is a schematic diagram illustrating a user setting a predetermined range of orientations according to an embodiment of the present disclosure;
fig. 5A is a schematic diagram illustrating obtaining a preset bearing range of a router according to an embodiment of the present application;
FIG. 5B is a schematic view of another door lock for unlocking according to an embodiment of the present application;
fig. 6 is a schematic interface diagram of an electronic device according to an embodiment of the present application;
FIG. 7 is a schematic view of another door lock for opening according to an embodiment of the present application;
fig. 8 is a schematic flowchart of an embodiment of a method for controlling a door lock according to an embodiment of the present application;
FIG. 9 is a schematic view of another door lock for opening according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a router according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
With the development of electronic devices, a user can usually carry one electronic device, such as a mobile phone and a watch, to realize functions of navigation, listening to songs and the like. If a user can directly open the door lock by adopting the electronic equipment, the problems that the door lock is easy to lose and forget and the like in the existing door lock opening process can be solved. Taking an electronic device as an example of a mobile phone, if the mobile phone can be in communication connection with a door lock, a user can install an application program for controlling the door lock on the mobile phone. When the user needs to open the door lock, the user can operate the application program on the mobile phone to control the door lock to be opened. Although the problem that the door lock is opened by adopting keys, induction cards, fingerprints, passwords and the like in the prior art is solved, the user needs to open the application program for controlling the door lock on the mobile phone when opening the door lock at every time, the door opening operation is carried out on the interface of the application program for controlling the door lock, and the operation is complex and inconvenient.
At present, a router is generally installed in a home of a user, so that the user can wirelessly connect electronic equipment to the router at home to connect the internet for surfing the internet. Furthermore, after the user connects to the router at home once, the user's electronic device may automatically connect to the router when the user goes home to near the door of the home. Under this kind of scene, when electronic equipment was connected to the router, can the automatic control lock open, need not like this the user and carry out "the application of opening control lock on electronic equipment's interface, the complicated operation of carrying out the operation of opening the door" on this application's interface, alright in order to open the lock, easy operation, it is convenient, can improve user experience. Therefore, the embodiment of the application provides a control method for a door lock, when it is detected that the electronic device is automatically connected to the router, the door lock can be controlled to be opened, a user does not need to perform complex operation on an interface of the electronic device, and the operation is simple.
Fig. 1A is a schematic view of a scene applicable to the embodiment of the present application. Referring to fig. 1A, the scenario includes: the electronic device, the door, and the wireless Access Point (AP) are illustrated in fig. 1A by taking the electronic device as a mobile phone and the AP as a router as an example. The electronic equipment is accessed to the AP and can be connected with the Internet to surf the Internet. In this embodiment of the application, when the user goes home, the user carries the electronic device to move towards the door, referring to a in fig. 1B, when the electronic device is relatively far away from the door, the electronic device is not connected to the router, the door lock is not opened, and the door is in a closed state. Referring to B in fig. 1B, when the electronic device is closer to the door, the electronic device is automatically connected to the router, and the door lock can be controlled to be opened, and the door is in an opened state.
In one embodiment, the electronic device and the AP may be interconnected through a communication network, so as to realize interaction of wireless signals. The communication network may be, but is not limited to: a WI-FI network, a WI-FI hotspot network, a WI-FI peer-to-peer (P2P) network, a bluetooth network, a zigbee network, etc. The electronic device and the door may also be interconnected via a communication network in one embodiment, and the AP and the door may also be interconnected via a communication network in one embodiment, or may be interconnected via a wired connection, and the communication network may be as described above.
It should be understood that the AP in the embodiments of the present application may include, but is not limited to: a router, a Customer Premise Equipment (CPE), and the like, the form of the AP is not particularly limited in the embodiment of the present application, and the AP is taken as an example as a router in the following embodiments.
The electronic device in this embodiment may be referred to as a User Equipment (UE), a terminal (terminal), and the like, for example, the electronic device may be a mobile phone, a PAD (tablet apparatus), a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device, or a wearable device, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control (industrial control), a mobile terminal or a fixed terminal in smart home (smart home), and the form of the electronic device is not particularly limited in this embodiment.
It should also be noted that the method for controlling a door lock provided in the embodiment of the present application may be applied not only to a home scene, but also to any scene that the door lock needs to be opened.
Before describing the control method of the door lock provided by the embodiment of the present application, a procedure of accessing the electronic device to the router is briefly described, and more detailed steps may refer to IEEE Std 802.11 TM -2016 protocol, wherein the electronic device access router can be understood as: the electronic equipment is connected with the router in a communication mode, or the electronic equipment is connected to the router. The process of accessing the router by the electronic device can comprise the following steps: a scanning phase, an authentication phase and an association phase. Fig. 2 is a flowchart illustrating an access method of an electronic device accessing a router. As shown in fig. 2, the access method may include:
s201, the electronic device sends a probe request frame (probe request).
The electronic device may transmit the probe request frame in a broadcast or unicast manner. Here, for example, the electronic device broadcasts the probe request frame, and the electronic device unicasts the probe request frame with reference to IEEE Std 802.11 TM A 2016 protocol. For example, an electronic device may broadcast a probe request frame on its supported channels for probing the APs that are present around. The probe request frame may be divided into two types, one is a Service Set Identifier (SSID) of an unspecified router, and the other is an SSID of an appointed router. The SSID of the router is used for distinguishing different routers, and the SSID of the router can also be understood as a Wi-Fi name. It should be appreciated that the probe request frame may specify the SSID of the router in such a way that the probe request frame includes the SSID of the router.
When the electronic device accesses the router for the first time, the SSID of the router may not be specified in the probe request frame, and all routers receiving the probe request frame respond to the electronic device.
When the electronic device has made a connection with the router, the electronic device may store the SSID of the router. Therefore, the SSID of the router may be specified in the probe request frame broadcast by the electronic device, and the router corresponding to the SSID may respond to the electronic device after receiving the probe request frame. The active scanning router of the electronic equipment is taken asFor example, the electronic device may be passively scanned, that is, the router scans the electronic device, and specifically, reference may be made to IEEE Std 802.11 TM A 2016 protocol.
S202, the router sends a probe response frame (probe response) to the electronic device.
In response to the probe request frame of the electronic device, the router may send a probe response frame to the electronic device. The SSID of the router may be included in the probe response frame. In one embodiment, when the electronic device receives the probe response frame from the router, the electronic device may display the SSID of the router, that is, the SSID (Wi-Fi name) of the router scanned by the electronic device may be visible to the user on the electronic device.
S203, the electronic device sends an authentication request frame (authentication request) to the router.
Ways in which routers authenticate electronic devices may include, but are not limited to, open system authentication (open system authentication) and shared-key authentication (shared-key authentication). In a possible implementation manner, the authentication request frame may carry an authentication manner supported by the electronic device.
S204, the router sends an authentication response frame (authentication response) to the electronic device.
The router may authenticate the electronic device in an authentication manner supported by the electronic device in response to receiving the authentication request frame. Illustratively, the user may authenticate by entering a Wi-Fi password, for example. When the electronic device is authenticated, the router may send an authentication response to the electronic device to indicate that the electronic device is authenticated.
S205, the electronic device sends an association request frame (association request) to the router.
In one embodiment, the association is initiated by the electronic device and the association phase is the process of negotiation of wireless link services between the electronic device and the router. In one possible implementation, the association request frame may include various parameters of the electronic device itself and various parameters selected by the electronic device according to the service configuration. For example, various parameters of the electronic device itself may include: identification of the electronic device, rates supported by the electronic device, channels, quality of service (QoS) capabilities, and access authentication and encryption algorithms selected by the electronic device, among other things.
In one embodiment, the identification of the electronic device may be, but is not limited to: international Mobile Equipment Identity (IMEI), Mobile Equipment Identity (MEID).
S206, the router sends an association response frame (association response) to the electronic device.
When the electronic equipment receives the association response frame from the router, the electronic equipment is characterized in that a Wi-Fi wireless link is established between the electronic equipment and the router, namely the electronic equipment is accessed to the router.
As can be appreciated from fig. 2 above: when the electronic device accesses the router for the first time, the user needs to input the Wi-Fi password in the electronic device, so that the router authenticates the electronic device. After the electronic device accesses the router, the electronic device may correspondingly store the SSID, the Wi-Fi password, and the location of the router, where the location is a location of the electronic device when the electronic device accesses the router.
When the user subsequently carries the electronic device to enter the position, the electronic device may automatically perform the steps in S201-S206 by using the SSID and the password of the router, so that the electronic device may be automatically accessed to the router, that is, the electronic device near the door of the home may be automatically accessed to the router at home when the user carries the electronic device home.
The following describes a control method of a door lock provided in an embodiment of the present application with reference to specific embodiments. The following several embodiments may be combined with each other and may not be described in detail in some embodiments for the same or similar concepts or processes.
Fig. 3 is a schematic flowchart of an embodiment of a method for controlling a door lock according to an embodiment of the present application. Referring to fig. 3, a method for controlling a door lock according to an embodiment of the present application may include:
s301, the router detects the signal strength of the electronic device in response to detecting that the electronic device is connected to the router.
The process of accessing the router by the electronic device may be described with reference to fig. 2, and when the router detects that the electronic device accesses the router, the signal strength of the electronic device may be detected.
In one embodiment, based on fig. 2 described above, the router may use the signal strength of the probe request frame, the authentication request frame, or the association request frame received from the electronic device as the signal strength of the electronic device.
In one embodiment, the router may send a signal strength detection message to the electronic device in response to detecting that the electronic device accesses the router, the signal strength detection message instructing the electronic device to feed back the response signal. The router may use the signal strength of the response signal fed back by the electronic device as the signal strength of the electronic device.
In the embodiment of the present application, the method is provided for unlocking a door lock, and in order to ensure unlocking security and prevent other electronic devices connected to the router from unlocking the door lock, in response to detecting that the electronic device is connected to the router, the router may detect whether the electronic device is a registered electronic device (or a pre-bound electronic device). The router may store an identifier of the registered electronic device, and in response to detecting that the electronic device accesses the router, the router may query whether the router stores the identifier of the electronic device based on the identifier of the electronic device. It should be understood that the router may obtain the identifier of the electronic device during the process of accessing the router by the electronic device, and reference may be made to the relevant description in fig. 2.
If the identifier of the electronic device is stored in the router, the router may determine that the electronic device is a registered electronic device, and if the identifier of the electronic device is not stored in the router, the router may determine that the electronic device is not a registered electronic device. If the electronic device is determined to be a registered electronic device, the router may detect the signal strength of the electronic device, and if the router is not the registered electronic device, the router may not perform the operation of detecting the signal strength of the electronic device.
It should be understood that, a user may register his or her own electronic device in advance as a registered electronic device, and the electronic device may send an identifier of the registered electronic device to the router in response to completion of the registration, so that the router may store the identifier of the registered electronic device.
In an embodiment, the router may further query whether the electronic device that has accessed the router includes a door before detecting the signal strength of the electronic device, and the router performs this step to avoid that, after performing the steps in S301 to S303 of this application, if it detects that the door does not access the router, the router cannot control the door lock to be opened. The step of detecting the signal strength of the electronic device may thus be performed when the router detects that a door is included in the electronic device that has accessed the router.
S302, the router sends a pre-unlocking instruction to the electronic equipment in response to the fact that the signal intensity of the electronic equipment is greater than or equal to the preset intensity.
If the router detects that the signal intensity of the electronic device is greater than or equal to the preset intensity, the router can send a preset unlocking instruction to the electronic device if the electronic device is represented to be within a preset distance range from the router. The pre-unlocking indication is used for synchronizing the electronic equipment, and the signal intensity of the electronic equipment reaches the unlocking condition.
In an embodiment, because the router transmits signals in 360 degrees, for building users, electronic devices of upstairs or downstairs users access the router, and the signal strength of their electronic devices may also be greater than or equal to a preset strength, in this scenario, in order to avoid the upstairs or downstairs users accessing the router of their own home, S301 and S302 are triggered, in this embodiment, the above S301 may be replaced with S301 a: the router detects a signal strength and a location of the electronic device in response to detecting that the electronic device is attached to the router.
The router detects the signal strength of the electronic device to judge whether the electronic device is within a preset distance range of the router, and the router detects the direction of the electronic device to judge whether the electronic device is located at the position of the door of the home. If the router detects that the electronic device is located in the upstairs or downstairs position, S302 will not be executed in this embodiment of the present application. It should be appreciated that the manner in which the router detects the orientation of the electronic device may be, but is not limited to: ultra Wideband (UWB), technology, bluetooth technology, or zigbee technology, among others.
Accordingly, in an embodiment where the router detects the signal strength and the orientation of the electronic device, S302 may be replaced with S302 a: the router responds to the fact that the signal intensity of the electronic equipment is larger than or equal to the preset intensity and the position of the electronic equipment is within the preset position range, and sends a preset unlocking instruction to the electronic equipment.
In one embodiment, the preset azimuth range may be a preset azimuth range of the router, and the preset azimuth range of the router may be understood as: the azimuth range of the router toward the door is shown by the hatched portion in a in fig. 4A. Alternatively, in one embodiment, the preset orientation range may be a preset orientation range of a door, i.e., a preset orientation range of a doorway, as shown by a hatched portion in b in fig. 4A. It should be understood that the top view of the home is shown in fig. 4A.
In one embodiment, the preset azimuth range may be preset by the user. For example, the user may upload a house map of the home in the electronic device in advance, and set the location of the router, the location of the door, and the preset azimuth range of the router and/or the preset azimuth range of the door in the house map. Illustratively, referring to a in fig. 4B, a user profile uploaded by a user in an electronic device is shown. Referring to B in fig. 4B, the user may set the position of the router, the position of the door, the preset orientation range of the router, and/or the preset orientation range of the door in the house type diagram by clicking, scribing, or circling, and the example of setting the preset orientation range of the door by the user is illustrated in B in fig. 4B. It should be understood that B in fig. 4B indicates that the user has set the position of the router and the position of the door, and the dotted watch indicates that B in fig. 4B indicates that the user is setting the preset azimuth range of the door, and B in fig. 4B indicates that the user is setting the preset azimuth range of the door by underlining the user.
In such an embodiment, the electronic device may synchronize the home map parameters, the router's location, the door's location, and the router's pre-set range of orientations parameters, and/or the door's pre-set range of orientations parameters to the router. The floor plan parameters may include: the length and width of each area in the house type, such as the length and width of a room, a living room and the like. The location of the router may be the location of the router in the home graph and the location of the door may be the location of the door in the home graph. The parameters of the preset azimuth range of the router comprise: the preset bearing range of the router is the position in the house type graph, the length, the width and the like. The parameters of the preset orientation range of the door include: the preset orientation of the door ranges the position in the house figure, and the length, width, etc.
The router may obtain the preset azimuth range of the router (e.g., the range of the preset azimuth range of the router compared with the range of the azimuth of the router) based on the location of the router, the parameter of the preset azimuth range of the router, and the parameters of the house type map. The router may obtain the preset orientation range of the door (e.g., the range of the preset orientation range of the door compared to the range of the orientation of the door) based on the position of the door, and the parameters of the preset orientation range of the door, and the house type map parameters.
In one embodiment, in order to avoid the change of the preset bearing range of the router due to the movement of the router, the router may acquire the preset bearing range of the router after performing the above S301. The router can be in communication connection with the door, so that the router can acquire the position of the door, and then the router obtains the preset azimuth range of the router based on the position of the door and the position of the router. For example, referring to fig. 5A, the router may obtain a connection line between the router and the door based on the position of the door and the position of the router, and the router may use "the connection line between the router and the door" as an angular bisector to obtain a range with an angle of a preset azimuth angle, which may be 60 degrees, for example. It should be understood that the predetermined azimuth range is a range of the predetermined azimuth, and the portion of the gate away from the router is shown by the shaded portion. Illustratively, a first distance between any position in the preset azimuth range and the router is greater than or equal to a second distance between the door and the router, and the first distance is smaller than the preset distance.
Therefore, in such an embodiment (after performing S301a and S302 a), illustratively, referring to a in fig. 5B, when the user is far away from the doorway, the electronic device does not access the router, the door lock is not opened, and the door is in a closed state. Referring to B in fig. 5B, when the user is closer to the doorway, the router detects that the signal strength of the electronic device is greater than or equal to the preset strength, and the position of the electronic device is within the preset position range of the router, the router may send a pre-unlock instruction to the electronic device.
S303, the electronic equipment responds to the pre-unlocking instruction, and if the first operation of the user is detected, the electronic equipment feeds back the unlocking instruction to the router.
In one embodiment, the electronic device may output a first prompt message in response to receiving the pre-unlock instruction, the first prompt message being used to prompt the user to perform a first operation to unlock the door lock. The way for the electronic device to output the first prompt message may be: and outputting the first prompt information on an interface of the electronic equipment, or outputting the first prompt information in a voice prompt mode.
The first operation may include, but is not limited to: the method comprises the following steps of operating a preset control in an interface of the electronic device by a user, speaking a preset password (which can be understood as that the user speaks a preset word) by the user, or holding the electronic device by the user to execute a preset action. The predetermined terms may include, but are not limited to: open the door, open, etc. The preset actions may include, but are not limited to: shake one, draw a circle, write a letter in the air, etc.
The electronic device can detect the operation of the user after outputting the first prompt message, and can feed back an unlocking instruction to the router if the electronic device detects that the operation of the user is the first operation. The unlocking instruction represents that the electronic equipment agrees to open the door lock.
For example, taking the example of outputting the first prompt information on the interface of the electronic device, the electronic device may output the first prompt information in a manner that a prompt card is displayed on the interface or a prompt card is displayed in a pull-down notification bar of the electronic device. In fig. 6, taking the example of displaying the prompt card on the interface of the electronic device as an example, referring to fig. 6, taking the interface displayed by the electronic device as an example of a desktop, the prompt card 601 may be displayed on the desktop, and the prompt card 601 may include: a first prompt 6011, a confirmation control 6012, and a cancellation control 6013.
In one embodiment, the first prompt 6011 may be a text prompt such as "click confirm control, unlock door lock". The first operation may be "an operation of clicking the confirmation control 6012", and if the user clicks the confirmation control 6012 in the prompt card 601, the electronic device may detect the first operation, and further respond to the first operation, and may feed an unlocking instruction back to the router.
In one embodiment, the first prompt 6011 may be, for example, "click the confirmation control or say" open the door, "unlock the door lock," in which case, after the electronic device displays the prompt card on the interface, a microphone of the electronic device may be opened to collect the audio of the user. In this embodiment, the first operation is an operation that the user clicks the confirmation control 6012, or the user speaks a preset word, such as "open door", and the electronic device may feed back an unlocking instruction to the router in response to detecting that the user clicks the confirmation control 6012, or detecting that the user speaks "open door".
In one embodiment, the first prompt 6011 may be "pan and unlock the door lock", for example, in which the electronic device displays a prompt card on the interface, and then detects the motion of the electronic device. In this embodiment, the first operation may be an operation in which a user holds the electronic device to perform a preset action, and the preset action may be: shake one, draw circles, etc. Taking the preset action as "shake", if the electronic device detects that the action of the electronic device of the user is the preset action of shaking, that is, the user holds the electronic device to execute the operation of shaking, the electronic device may feed back an unlocking instruction to the router.
It should be understood that the operation of detecting that the user holds the mobile phone to execute the shake by the electronic device may specifically be: the electronic equipment is provided with an acceleration sensor, a gyroscope and the like, the electronic equipment can obtain the posture of the electronic equipment based on data collected by the acceleration sensor, the gyroscope and the like, and then whether the electronic equipment executes the preset action or not is detected based on the posture of the electronic equipment, namely whether a user holds the mobile phone to execute the first operation or not. The electronic device may be configured to determine the action of the electronic device based on data collected by an acceleration sensor, a gyroscope, and the like, and refer to related descriptions in the prior art.
In one embodiment, after receiving the pre-unlocking instruction from the router, the electronic device may not output the first prompt information, but may directly detect the operation of the user in response to receiving the pre-unlocking instruction from the router to detect whether the user performs the first operation. The first operation may be: the user speaks the preset password or holds the electronic equipment to execute the preset action. The electronic device may feed back an unlocking instruction to the router in response to detecting that the user performs the first operation.
Taking the first operation as an example that the user holds the electronic device to execute a shake:
referring to fig. 7, when the user is closer to the doorway, the router and the electronic device may respectively perform S301 and S302, the user may hold the electronic device and perform a shake-shake operation, and after the electronic device responds to receiving the pre-unlock instruction, if it is detected that the user holds the mobile phone and performs a shake-shake operation, the electronic device may feed back an unlock instruction to the router. It should be understood that, in this embodiment, when the user is closer to the doorway, the signal strength of the electronic device is greater than or equal to the preset signal strength, and the electronic device is located within the preset range, the user can hold the electronic device and perform a shake-shake operation, and the electronic device can feed back an unlocking instruction to the router to control the door lock to be opened.
In the embodiment of the application, the user needs to execute the first operation to trigger the electronic device to execute the operation of feeding back the unlocking instruction to the router, which mainly avoids the following problems: before a user enters the room of a home scene, a Wireless Local Area Network (WLAN) switch on the electronic device is not opened, that is, the electronic device cannot automatically access the router, and if the user enters the room of the home scene, the WLAN switch of the electronic device is opened, so that the electronic device automatically accesses the router, in the scene, the execution of the steps S301 and S302 can be triggered, but in the scene, the user already enters the room, and the router is not required to open the door lock. Therefore, in order to avoid the problem that the router mistakenly opens the door lock when the user is in the room, in the embodiment of the application, the user needs to execute the first operation to confirm whether to open the door, and after the user executes the first operation, the execution of the S304 may be triggered, so that the purpose of controlling the door lock to be opened by the router is achieved.
It should be understood that in a scenario where the user has entered the room, if the user turns on the WLAN switch of the electronic device, the electronic device may output the first prompt message, as shown in fig. 6 above. In this scenario, the user may click the cancel control 6013, and in response to detecting that the user clicks the cancel control 6013, the electronic device may not feed back an unlocking instruction to the router, and then the router does not execute the operation of opening the door lock in S304. Alternatively, the first and second electrodes may be,
in one embodiment, in response to detecting that the user clicks the cancel control 6013, the electronic device may feed back a no-unlock instruction to the router, instruct the router not to control to unlock the door lock, and in response to receiving the no-unlock instruction, the router does not perform the operation of unlocking the door lock in S304.
And S304, the router responds to the unlocking instruction and sends a control instruction to the door lock.
The router may send a control instruction to the door lock in response to receiving the unlock instruction, the control instruction indicating to unlock the door lock.
In one embodiment, to further improve the unlocking security, a camera may be installed around the door, and the router may control the camera to open to capture an image in response to receiving the unlocking instruction. The camera can send the image of gathering to the router, and the router can carry out face identification to the image of receiving to detect whether the face is registered user's face. When the router detects that the face in the image is the face of the registered user, the router sends a control instruction to the door lock, and when the router detects that the face in the image is not the face of the registered user, the router does not send the control instruction to the door lock. Therefore, the problem that other malicious users unlock the electronic equipment of the user can be avoided, and unlocking safety is improved.
It should be understood that the user may previously shoot or select a facial image of the user through the electronic device, the user is registered as a registered user by using the facial image of the user, when the user is successfully registered, the electronic device may send the facial image of the user to the router, and the router may store the facial image of the registered user. In this embodiment, the router may perform face recognition on the image acquired by the camera to detect whether a face in the image acquired by the camera is a face of a registered user. For example, the router may obtain similarity between a face image of the registered user and a face in the received image, and if the similarity is greater than or equal to the preset similarity, the router may determine that the face acquired by the camera is the face of the registered user, and then determine that the user at the doorway is the registered user.
And S305, responding to the control instruction by the door lock, and unlocking the door lock.
The door lock may control the door lock to open in response to receiving the control instruction.
In an embodiment, the electronic device may also control the door lock to open, and in this embodiment, as above, S303 may be replaced with S303 a: after the electronic equipment receives the pre-unlocking instruction, if the first operation of the user is detected, a control instruction is sent to the door lock so as to open the door lock. In such an embodiment, the electronic device may detect whether the user performs the first operation in response to receiving the pre-unlock instruction, and may send a control instruction to the door lock if the electronic device detects that the user performs the first operation. The door lock may control the door lock to open in response to receiving the control instruction. In the embodiment, the electronic equipment does not need to feed back an unlocking instruction to the router, the router is used as intermediate equipment to control the door lock to be opened, the electronic equipment directly controls the door lock to be opened, and the unlocking efficiency can be improved.
It should be noted that in embodiments where the electronic device controls the door lock to open, the electronic device is communicatively coupled to the door lock (or door). In one embodiment, if both the electronic device and the door lock are connected to the router, the electronic device and the door lock may be connected via a WI-FI network. In one embodiment, if the electronic device is connected with the door lock by bluetooth, the bluetooth function needs to be opened in advance in the electronic device, in this embodiment, after the electronic device receives the pre-unlocking instruction, if the first operation of the user is detected, it can be queried whether the bluetooth function is opened by the electronic device, and on the premise that the bluetooth function is opened by the electronic device, the electronic device can send a control instruction to the door lock by bluetooth.
It is conceivable that, after the electronic device receives the pre-unlock instruction, if the first operation of the user is detected and the electronic device is inquired that the bluetooth function is not opened, the prompt information for opening the bluetooth function may be output. The mode of the electronic device outputting the prompt message for opening the bluetooth function can refer to the mode of the electronic device outputting the first prompt message to prompt the user to open the bluetooth button function. The electronic device may send a control instruction to the door lock to control the door lock to open in response to detecting that the user opens the bluetooth function of the electronic device.
In the embodiment of the application, when the router detects that the electronic device is connected to the router, the router can send the pre-unlocking instruction to the electronic device, the electronic device responds to the received pre-unlocking instruction, and can send the unlocking instruction to the router after detecting that the user executes the first operation, and the router responds to the unlocking instruction and can control the door lock of the door to be opened. In the embodiment of the application, when the door lock needs to be opened, a user does not need to perform complex operation on an interface of the electronic equipment, and only needs to perform first operations of click confirmation, shaking and the like, so that the door lock can be opened, and the operation is simple and convenient. And because the user trip all will carry electronic equipment, therefore the suitability of this application embodiment is high.
The technical scheme in the above embodiment is as follows: the router interacts with the electronic equipment, and the router or the electronic equipment controls the door lock to be opened. In an embodiment, the electronic device may directly control the door lock to be opened without interacting with the router, and because the electronic device does not interact with the router, signaling interaction between the router and the electronic device may be reduced, unlocking time is reduced, and unlocking efficiency is improved.
In such an embodiment, referring to FIG. 8, S301-S304 may be replaced with S301A-S304A as described above:
S301A, the electronic device detects a signal strength of the target router in response to detecting that the electronic device accesses the target router.
The target router may be understood as: the user needs to unlock the router corresponding to the door lock. For example, in a home scenario, the door lock that the user needs to open is a door lock of a home, and the target router may be a router in the home. The target router may be preset for the user, for example, referring to fig. 4A and 4B above, when the user sets information such as a preset bearing range of the router, the user may set the target router, for example, the user may set a name of a WLAN in a home (i.e., a name of a router) that the electronic device has access to as a name of the target router in an available WLAN list, that is, the user may set the target router.
When the electronic device has accessed the target router, the SSID (or name) of the target router may also be stored in the electronic device, and the SSID of the target router is taken as an example for description, and may be referred to as a target SSID. In such an embodiment, when the user holds the electronic device home and is closer to the door, the electronic device may automatically access the router in the home. And the electronic equipment can determine that the electronic equipment is accessed to the target router in response to detecting that the electronic equipment is automatically accessed to the router corresponding to the target SSID.
The electronic device may detect the signal strength of the target router in response to detecting that the electronic device accesses the target router, and the detection manner may refer to the manner in which the router detects the signal strength of the electronic device in S301.
In one embodiment, S301A may be replaced with: the electronic device detects a signal strength of the target router and a bearing of the target router in response to detecting that the electronic device accesses the target router.
The manner in which the electronic device detects the location of the target router may be as described above with reference to S301 a.
S302A, the electronic equipment responds to the signal intensity of the router being larger than or equal to the preset intensity, and the operation of the user is detected.
In one embodiment, when the electronic device detects that the signal strength of the router is greater than or equal to a preset strength, the electronic device may output first prompt information to detect an operation of a user in response to the first prompt information. The electronic device outputs the first prompt information, which may refer to the related description in S303 above. The operation of the user may be changed based on a change in the way of the electronic device outputting the first prompt message, which is exemplarily: the electronic equipment displays the first prompt information on the interface, and then the electronic equipment can detect whether the user operates the interface of the electronic equipment or not, or detect whether the user speaks a preset password or not, and detect whether the user holds the electronic equipment to execute a preset action or not.
In an embodiment, when the electronic device detects that the signal strength of the router is greater than or equal to the preset strength, the electronic device may not output the first prompt message, and directly detect the operation of the user, which may refer to the relevant description in S303 above.
In one embodiment, S302A may be replaced with: and the electronic equipment detects the operation of the user in response to the fact that the signal intensity of the router is larger than or equal to the preset intensity and the position of the target router is located in the preset position range of the electronic equipment.
It should be understood that the preset orientation range of the electronic device is preset, and reference may be made to the relevant description of the preset orientation range of the router or the door.
S303A, the electronic device sends a control instruction to the door lock in response to detecting that the user performs the first operation.
The first operation and the manner in which the electronic device detects that the user performs the first operation may refer to the related description in S303 above. In the embodiment of the application, the electronic device can send a control instruction to the door lock in response to detecting that the user executes the first operation, and the door lock can open the door lock in response to receiving the control instruction.
For example, in this embodiment, fig. 7 may be replaced with fig. 9, and fig. 9 is different from fig. 7 in that the electronic device serves as a main body for performing the control of unlocking the door lock, and when accessing the target router, the electronic device may detect that the signal strength of the target router is greater than or equal to the preset signal strength (or a condition that "the orientation of the target router is within the preset orientation range of the electronic device") and detect that the user performs the first operation, and may directly interact with the door to perform the control of unlocking the door lock. It should be understood that the first operation is illustrated in fig. 9 as an example of the user performing the "pan-and-shake" operation.
And S304A, responding the control command by the door lock, and unlocking the door lock.
S304A can refer to the relevant description in S305.
In the embodiment of the application, the electronic equipment can interact with the door lock, directly controls the door lock to be opened, does not need to interact with the router, can reduce signaling interaction between the router and the electronic equipment, reduces unlocking time, and improves unlocking efficiency.
Fig. 10 is a schematic structural diagram of a router according to an embodiment of the present application. Referring to fig. 10, the router may include: a signal detection module 1001 and a transceiver module 1002. Wherein the content of the first and second substances,
a signal detection module 1001, configured to detect a signal strength of the electronic device in response to detecting that the electronic device accesses the AP.
The transceiver module 1002 is configured to send a pre-unlock instruction to the electronic device in response to detecting that the signal strength is greater than or equal to the preset signal strength, receive an unlock instruction from the electronic device, and send a control instruction to the door lock, where the unlock instruction is sent after the electronic device detects that the user performs the first operation, and the control instruction is used to instruct to unlock the door lock.
In one possible implementation, the signal detection module 1001 is specifically configured to detect the signal strength and the orientation of the electronic device. The transceiver module 1002 is specifically configured to send a pre-unlock instruction to the electronic device in response to that the detected signal strength is greater than or equal to the preset signal strength and the position of the electronic device is within the preset position range.
In one possible implementation, the preset azimuth range is: a preset azimuth range of the AP, or a preset azimuth range of the door.
Fig. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Referring to fig. 11, the electronic device may include: a signal detection module 1101, a transceiver module 1102, and an output module 1103. Wherein the content of the first and second substances,
a signal detection module 1101, configured to detect a signal strength of a target access point AP in response to detecting that the electronic device is accessed to the target AP, and detect an operation of a user in response to detecting that the signal strength is greater than or equal to a preset signal strength;
and the transceiver module 1102 is configured to send a control instruction to the door lock, where the control instruction is used to open the door lock.
In one possible implementation, the signal detection module 1101 is specifically configured to detect the signal strength, and the orientation of the target AP.
The signal detection module 1101 is further configured to detect an operation of a user in response to that the detected signal strength is greater than or equal to the preset signal strength and the position of the target AP is within the preset position range of the electronic device.
In a possible implementation manner, the output module 1103 is configured to output, by the electronic device, first prompt information, where the first prompt information is used to instruct a user to perform a first operation to unlock the door lock.
In a possible implementation manner, the output module 1103 is specifically configured to display a prompt card, where the prompt card includes first prompt information, a confirmation control, and a cancellation control, and the first operation is an operation of operating the confirmation control by a user.
In one possible implementation, the first operation is to: and outputting a preset password by the user, or holding the electronic equipment by the user to execute a preset action.
The router and the electronic device provided in the embodiments of the present application may respectively perform the steps performed by the router and the electronic device in the embodiments described above, and the specific principles and technical effects may refer to the relevant descriptions in the embodiments described above.
In one embodiment, the present application provides a door lock control system, where the system includes an electronic device and a door lock as shown in fig. 11 above, or the system includes an electronic device shown in fig. 11, a router shown in fig. 10, and a door lock.
It should be understood that the door lock control system can implement the door lock control method in the above embodiment, and achieve the technical effects in the above embodiment, and reference may be made to the related description in the above embodiment.
It should be noted that the modules shown in fig. 10 or fig. 11 may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, when some of the above modules are implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor that can call program code. As another example, these modules may be integrated together, implemented in the form of a system-on-a-chip (SOC).
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The term "plurality" herein means two or more. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and succeeding related objects are in a relationship of "division".
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application. In the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.
The term "plurality" herein means two or more. The term "and/or" herein is merely an association relationship describing an associated object, and means that there may be three relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". The terms "first" and "second" are used for distinguishing and describing, and do not limit the implementation process of the embodiments of the present application in any way.
It is to be understood that the various numerical references referred to in the embodiments of the present application are merely for descriptive convenience and are not intended to limit the scope of the embodiments of the present application.
It should be understood that, in the embodiment of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiment of the present application.

Claims (8)

1. A door lock control method, comprising:
an Access Point (AP) responds to the detection that an electronic device is accessed to the AP, and the signal strength and the direction of the electronic device are detected;
the AP sends a pre-unlocking instruction to the electronic equipment in response to the fact that the signal intensity is larger than or equal to the preset signal intensity and the position of the electronic equipment is within the preset position range; wherein the AP is a router; the router obtains a preset azimuth range of the router based on the position of the door and the position of the router; the preset azimuth range is a part of the door, which is far away from the router, in the preset azimuth range; a first distance between any position in the preset azimuth range and the router is greater than or equal to a second distance between a door and the router, and the first distance is smaller than a preset distance;
the electronic equipment responds to the pre-unlocking indication and detects the operation of a user;
the electronic equipment responds to the detection that the user executes a first operation and sends an unlocking instruction to the AP;
the AP responds to the unlocking instruction and sends a control instruction to the door lock;
and the door lock responds to the control instruction to open the door lock.
2. The method of claim 1, wherein before the detecting the user action, further comprising:
and the electronic equipment responds to the received pre-unlocking instruction and outputs first prompt information, wherein the first prompt information is used for instructing a user to execute the first operation to unlock the door lock.
3. The method of claim 2, wherein outputting the first prompt comprises:
the electronic equipment displays a prompt card, the prompt card comprises the first prompt information, a confirmation control and a cancellation control, and the first operation is the operation of the user for operating the confirmation control.
4. The method of claim 1 or 2, wherein the first operation is: and the user outputs a preset password, or the user holds the electronic equipment to execute a preset action.
5. A door lock control method is applied to an Access Point (AP), and comprises the following steps:
in response to detecting that an electronic device accesses the AP, detecting a signal strength of the electronic device, and an orientation of the electronic device;
in response to the fact that the signal intensity is detected to be greater than or equal to the preset signal intensity and the position of the electronic equipment is within the preset position range, sending a pre-unlocking instruction to the electronic equipment; wherein the AP is a router; the router obtains a preset azimuth range of the router based on the position of the door and the position of the router; the preset azimuth range is a part of the door, which is far away from the router, in the preset azimuth range; a first distance between any position in the preset azimuth range and the router is greater than or equal to a second distance between a door and the router, and the first distance is smaller than a preset distance;
receiving an unlocking instruction from the electronic equipment, wherein the unlocking instruction is sent after the electronic equipment detects that a user executes a first operation;
and sending a control instruction to the door lock, wherein the control instruction is used for indicating the door lock to be opened.
6. An electronic device, comprising: a processor and a memory;
the memory stores computer-executable instructions;
the processor executing the computer-executable instructions stored by the memory causes the processor to perform the method of claim 5.
7. A computer-readable storage medium, in which a computer program or instructions are stored which, when executed, implement the method of claim 5.
8. A computer program product comprising a computer program or instructions, characterized in that the computer program or instructions, when executed by a processor, implement the method of claim 5.
CN202110925808.0A 2021-08-12 2021-08-12 Door lock control method and electronic equipment Active CN113808302B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110925808.0A CN113808302B (en) 2021-08-12 2021-08-12 Door lock control method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110925808.0A CN113808302B (en) 2021-08-12 2021-08-12 Door lock control method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113808302A CN113808302A (en) 2021-12-17
CN113808302B true CN113808302B (en) 2022-09-09

Family

ID=78893500

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110925808.0A Active CN113808302B (en) 2021-08-12 2021-08-12 Door lock control method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113808302B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106652145A (en) * 2017-03-16 2017-05-10 郑州宜家安好软件科技有限公司 Access control method, access control system and mobile terminal
KR20170116888A (en) * 2016-04-12 2017-10-20 주식회사 차후 Digital doorlock system
CN107705399A (en) * 2017-09-15 2018-02-16 南京右转信息科技有限公司 The control system and control method of a kind of intelligent entrance guard
CN107730678A (en) * 2017-09-29 2018-02-23 胡众义 A kind of intelligent unlocking method and system
CN108510620A (en) * 2017-02-27 2018-09-07 上海慧流云计算科技有限公司 A kind of Door-access control method and device
CN108615273A (en) * 2016-12-08 2018-10-02 中国移动通信集团四川有限公司 Data processing method, apparatus and system
CN109816832A (en) * 2019-02-01 2019-05-28 北京华大智宝电子系统有限公司 A kind of method for unlocking and device
CN110969727A (en) * 2018-09-30 2020-04-07 奇酷互联网络科技(深圳)有限公司 Method for controlling intelligent door lock, mobile terminal and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170116888A (en) * 2016-04-12 2017-10-20 주식회사 차후 Digital doorlock system
CN108615273A (en) * 2016-12-08 2018-10-02 中国移动通信集团四川有限公司 Data processing method, apparatus and system
CN108510620A (en) * 2017-02-27 2018-09-07 上海慧流云计算科技有限公司 A kind of Door-access control method and device
CN106652145A (en) * 2017-03-16 2017-05-10 郑州宜家安好软件科技有限公司 Access control method, access control system and mobile terminal
CN107705399A (en) * 2017-09-15 2018-02-16 南京右转信息科技有限公司 The control system and control method of a kind of intelligent entrance guard
CN107730678A (en) * 2017-09-29 2018-02-23 胡众义 A kind of intelligent unlocking method and system
CN110969727A (en) * 2018-09-30 2020-04-07 奇酷互联网络科技(深圳)有限公司 Method for controlling intelligent door lock, mobile terminal and computer readable storage medium
CN109816832A (en) * 2019-02-01 2019-05-28 北京华大智宝电子系统有限公司 A kind of method for unlocking and device

Also Published As

Publication number Publication date
CN113808302A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US20220109561A1 (en) Smart lock unlocking method and related device
US10445956B2 (en) Access control reader for secure handsfree access with mobile devices
KR101702361B1 (en) Method and apparatus for connecting wireless network in a digital device
JP7204792B2 (en) WI-FI hotspot connection method and terminal
CN104798432B (en) The device and method that equipment is wirelessly connected for establishing equipment
EP3253080B1 (en) Data sharing method and system
US20150189681A1 (en) Communication apparatus
CN109416800B (en) Authentication method of mobile terminal and mobile terminal
EP3380975B1 (en) Short-range device communications for secured resource access
CN110169153A (en) Wireless communication system
US20050239463A1 (en) System and method for accessing a wireless network
WO2019057119A1 (en) Mobile terminal-based wifi hotspot connection method, mobile terminal and storage medium
KR101623432B1 (en) Entrance Control Apparatus and Method Capable of Preventing Entrance-Control Indoors under Unwilled Bluetooth Pairing
CN105325021B (en) Method and apparatus for remote portable wireless device authentication
KR20110083050A (en) System for authentication using pairing function in bluetooth terminal and method thereof
CN106535190A (en) Network connection method and apparatus
KR20180062692A (en) Method, user terminal, door lock device and entry security system for controlling of opening and closing door
US8458339B2 (en) Communication apparatus and control method for electronic payment services
CN210693999U (en) Intelligent network system of Internet of things
CN113808302B (en) Door lock control method and electronic equipment
KR101407443B1 (en) User authentication system and method using near field communication
KR20190045486A (en) Method for Managing Distributed Commuting Record
CN108616873B (en) Data transmission method, information transmission method, device, mobile equipment and storage medium
CN105721455B (en) Connect the method and device of routing device
US11640453B2 (en) User authentication facilitated by an additional device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240104

Address after: No. 9, Xingyao Road, Chang'an District, Xi'an, Shaanxi Province 710000

Patentee after: Xi'an Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee before: Honor Device Co.,Ltd.

TR01 Transfer of patent right