Unlocking method, electronic device and system

By monitoring environmental risks and connecting to authorized devices, smart devices solve the problem of being unable to unlock in emergencies, enabling safe and reliable unlocking operations and reducing security risks and property losses.

CN116486513BActive Publication Date: 2025-11-28HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210051773.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-17
Publication Date
2025-11-28
Estimated Expiration
2042-01-17

AI Technical Summary

Technical Problem

In emergency situations, smart devices may fail to unlock reliably, preventing users from entering enclosed environments and posing security risks and property damage.

Method used

The system monitors environmental risks through a first electronic device and establishes a connection with an authorized second electronic device. After confirming the login account, unlocking is allowed. Security is ensured by using sensor data and real-name authentication. Multiple methods are provided to confirm authorization, enhancing user operational flexibility and security.

Benefits of technology

In emergency situations, ensuring users can safely and reliably enter enclosed environments reduces risks and losses and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116486513B_ABST
    Figure CN116486513B_ABST
Patent Text Reader

Abstract

The application provides a method, an electronic device and a system for unlocking, and relates to the technical field of terminals. In the application, the first electronic device is allowed to establish a connection with a second electronic device when it is determined that the environment where the first electronic device is located is risky, and the first electronic device can confirm unlocking after it is determined that the login account of the second electronic device is authorized, thereby avoiding danger. The method comprises the following steps: after the first electronic device determines that the environment where the first electronic device is located is risky according to first data, the first electronic device establishes a connection with the second electronic device in response to a connection request sent by the second electronic device. Then, the first electronic device confirms unlocking when it is determined that the environment where the first electronic device is located is risky and it is determined that the login account of the second electronic device is authorized.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] Embodiments of the present application relate to the technical field of terminal technology, and in particular, to a method for unlocking, an electronic device, and a system. BACKGROUND

[0002] With the development of terminal technology, more and more consumers use intelligent electronic devices (such as smart house door locks, smart car door locks, etc.). Such electronic devices can provide fingerprint recognition or password functions, and users do not have to carry keys and can quickly open doors through fingerprints or passwords.

[0003] However, in some emergency situations, the smart device may not be reliable. For example, a fire in the home can cause the smart device in the smart house door lock to be damaged, and the user cannot unlock. For another example, a child is locked in the car, which causes danger. SUMMARY

[0004] To solve the above technical problems, embodiments of the present application provide a method for unlocking, an electronic device, and a system. The technical scheme provided by the embodiments of the present application allows the first electronic device to establish a connection with the second electronic device when it is determined that the environment in which the first electronic device is located has risks, and the first electronic device can confirm unlocking when it is determined that the login account of the second electronic device has been authorized, thereby avoiding danger.

[0005] To achieve the above technical purposes, embodiments of the present application provide the following technical scheme:

[0006] In a first aspect, a method for unlocking is provided, applied to a first electronic device. The method includes: obtaining first data. According to the first data, it is determined that the environment in which the first electronic device is located has a first risk. In response to a connection request sent by a second electronic device, a connection is established with the second electronic device. It is determined that the login account of the second electronic device has been authorized. In the case that the environment in which the first electronic device is located has the first risk and it is determined that the login account of the second electronic device has been authorized, unlocking is confirmed.

[0007] In some embodiments, the environment in which the first electronic device is located includes an environment enclosed by the first electronic device. The login account of the second electronic device includes an account logged in through an application installed in the second electronic device.

[0008] In some embodiments, the first data includes one or more of environmental monitoring data, user monitoring data, user data, and security level data.

[0009] For example, the environmental monitoring data includes temperature data, smoke concentration data, camera monitoring data, and the like of the environment enclosed by the first electronic device. The user monitoring data includes heart rate, blood pressure, blood oxygen, and the like detected by the wearable device. The user data includes the user's illness data, age, gender, and the like. The security level data includes a security level such as a normal mode, a dangerous mode, and an emergency mode determined according to at least one of the environmental monitoring data, the user monitoring data, and the user data.

[0010] In this way, in the case where there is a risk in the environment enclosed by the first electronic device, the stranger can also complete the unlocking of the first electronic device by the second electronic device carried by the stranger after completing the authorization of the login account. Thus, the danger or property loss caused by the fact that the owner of the first electronic device (for example, a user who knows the password of the first electronic device or a user who has a fingerprint template stored in the first electronic device) is not nearby when the risk occurs can be avoided.

[0011] In addition, allowing the second electronic device authorized by the login account to instruct the first electronic device to unlock can avoid, to some extent, the damage to the items in the environment enclosed by the first electronic device caused by the fact that any second electronic device instructs the first electronic device to unlock.

[0012] According to the first aspect or any one of the implementations of the first aspect, the first data includes the environmental monitoring data monitored by one or more sensors in the environment where the first electronic device is located, the sensor of the first electronic device, the third electronic device configured with a sensor in the environment where the first electronic device is located, or the central control device in the environment where the first electronic device is located.

[0013] In some embodiments, the first electronic device can establish a communication connection with one or more sensors or sensor-containing devices capable of monitoring the environment in the environment where the first electronic device is located, and obtain the environmental monitoring data monitored by each sensor. The central control device includes, for example, a smart home control panel (which can also be another central control device in the room), a car central control, and the like.

[0014] In this way, the first electronic device can comprehensively obtain the first data from multiple channels to more accurately determine whether there is a first risk in the environment where the first electronic device is located. The second electronic device of the stranger accessing the first electronic device to cause a loss in the environment where the first electronic device is located due to misjudgment can be avoided.

[0015] According to the first aspect, or any one of the implementations of the first aspect, the determining that the login account of the second electronic device is authorized comprises: obtaining a first signal sent by the second electronic device, the first signal carrying authorization confirmation information, the authorization confirmation information being information sent by the first server to the second electronic device after the first server determines that the login account of the second electronic device is authorized. The determining that the login account of the second electronic device is authorized is based on the first signal. Alternatively, a second signal sent by the first server is obtained through the second server. The determining that the login account of the second electronic device is authorized is based on the second signal.

[0016] In some embodiments, the first electronic device can determine the authorization of the login account of the second electronic device in various manners. For example, in implementation (I), after determining the authorization of the second electronic device, the first server can send a fourth signal to the second electronic device to indicate the authorization, and then send a first signal to the first electronic device. The first electronic device can determine the authorization of the login account of the second electronic device based on the first signal sent by the second electronic device. For another example, in implementation (II), after determining the authorization of the second electronic device, the first server can send a second signal carrying the authorization of the second electronic device to the second server for managing the first electronic device, and the second server can forward the second signal to the first electronic device, and then the first electronic device can determine the authorization of the second electronic device based on the second signal. For another example, in implementation (III), the first electronic device can determine the authorization of the login account of the second electronic device based on the first signal and the second signal in combination with implementation (I) and implementation (II).

[0017] In this way, the first electronic device can determine the authorization of the login account of the second electronic device in various manners, and then determine whether to allow the second electronic device to instruct the first electronic device to instruct the unlocking.

[0018] According to the first aspect, or any one of the implementations of the first aspect, the login account of the second electronic device is authorized, which comprises that the login account of the second electronic device is bound with real identity information of a user.

[0019] In some embodiments, the account of a general Huawei account, a specific application (such as , and the like) account, and the like is authenticated with the identity of a user during the creation process, and the creation of the account is completed after the identity authentication is passed. For example, the identity of a user is authenticated with an identity document, facial information, and the real name of the user, and the creation of the account is completed.

[0020] The security of the real-name authentication account is higher, and the identity of a user is authenticated through the real-name authentication account, which can better ensure the security in the closed environment of the first electronic device.

[0021] According to a first aspect, or any possible implementation mode of the above first aspect, before confirming the unlocking, the method further includes: receiving a third signal sent by the second electronic device, the third signal being used to instruct the first electronic device to unlock.

[0022] In some embodiments, the second electronic device can display an unlocking confirmation interface after determining that the login account authorization is passed. Then, according to a second operation of the user on the interface, it is confirmed whether to instruct the first electronic device to unlock. If it is determined to instruct the unlocking, a third signal used to instruct the unlocking can be sent to the first electronic device. Correspondingly, the first electronic device can receive the third signal and confirm the unlocking according to the third signal.

[0023] In this way, the third signal used to instruct the unlocking is used to enhance the flexibility of the user instructing the unlocking and avoid the risk caused by directly unlocking. For example, if a fire or other danger occurs in a room closed by the smart door lock, directly unlocking without the user being prepared can cause certain loss.

[0024] According to the first aspect, or any possible implementation mode of the above first aspect, before confirming the unlocking, the method further includes: obtaining a face image of the user instructing the unlocking through the second electronic device.

[0025] In some embodiments, the second electronic device can also collect the face image of the user in the process of login account authorization, so as to facilitate the owner of the first electronic device to confirm the identity of the user instructing the unlocking in the future, increase traceability, and further guarantee the safety of the items in the environment of the first electronic device.

[0026] According to the first aspect, or any possible implementation mode of the above first aspect, the method further includes: sending the face image to a second server, the second server being a server used to manage the first electronic device.

[0027] For example, the second electronic device has a smart home service function (such as installing a smart home application), and the user has registered an account of the smart home application. Then, the second electronic device can establish a connection with a smart home server (the second server), and send the obtained face image of the user to the smart home server. The smart home server is also a server corresponding to the first electronic device, or a server used to manage the first electronic device. Then, the first electronic device or other electronic devices of the owner of the first electronic device can request the smart home server to download the face image of the user, or the smart home server can directly send the face image of the user to the first electronic device or other electronic devices of the owner of the first electronic device. Thus, the owner of the first electronic device can determine the user instructing the unlocking according to the obtained face image of the user.

[0028] For example, the second electronic device can send the user face image to the first electronic device directly after obtaining the user face image (e.g., in the case that the second electronic device does not have the smart home service function). Optionally, the first electronic device can upload the user face image to the second server for backup after obtaining the user face image. Similarly, the owner of the first electronic device can determine the user indicating to unlock according to the obtained user face image.

[0029] According to the first aspect, or any one of the implementations of the first aspect, the first risk includes one or more of the following: fire risk, water flooding risk, child activity alone risk, and old person illness risk.

[0030] In this way, the first electronic device can identify a plurality of risk scenarios that can cause danger according to the obtained first data, and then allow the access of the second electronic device of the stranger after determining the first risk, and allow the indication to unlock after logging in the account and confirming the unlocking authorization. Thus, the harm caused by the plurality of risks can be effectively reduced.

[0031] According to the first aspect, or any one of the implementations of the first aspect, after determining that the environment where the first electronic device is located has the first risk according to the first data, the method further includes: playing an alarm audio through an audio module, and / or flashing an indicator light.

[0032] In this way, the first electronic device can attract the attention of the surrounding people through the audio module and / or the indicator light after determining that the environment where the first electronic device is located has the first risk, so as to avoid the risk caused by no one noticing the danger in the environment closed by the smart door lock, and to avoid the risk caused by the danger being more serious.

[0033] According to the first aspect, or any one of the implementations of the first aspect, the method further includes: obtaining second data, the second data including the first data. Determining whether the environment where the first electronic device is located has the first risk according to the second data. Confirming to lock after determining that the environment where the first electronic device is located does not have the first risk.

[0034] In this way, the first electronic device can adaptively determine whether to allow the indication to unlock by the owner of the non-first electronic device according to the environmental monitoring data, so as to flexibly reduce the risk while ensuring the property safety of the owner of the smart door lock.

[0035] In a second aspect, a method for unlocking is provided, and is applied to a second electronic device. The method comprises: sending a connection request to a first electronic device, establishing a connection with the first electronic device, displaying a first interface, in response to a first operation acting on the first interface, obtaining login account information, obtaining an unlocking authorization for controlling the first electronic device to unlock according to the login account information, and sending a first signal to the first electronic device, the first signal being used to indicate that the login account of the second electronic device has been authorized.

[0036] According to the second aspect, the unlocking authorization for controlling the first electronic device to unlock is obtained according to the login account information, which comprises: sending the login account information to a first server, receiving a fourth signal sent by the first server, the fourth signal being sent by the first server after determining the unlocking authorization according to the login account information, and obtaining the unlocking authorization for controlling the first electronic device to unlock according to the fourth signal.

[0037] According to the second aspect, or any one of the implementations of the second aspect, before the first signal is sent to the first electronic device, the method further comprises: collecting a user face image, and sending the user face image to a second server and / or the first electronic device, the second server being a server for managing the first electronic device.

[0038] According to the second aspect, or any one of the implementations of the second aspect, the method further comprises: sending a third signal to the first electronic device, the third signal being used to indicate that the first electronic device is unlocked.

[0039] According to the second aspect, or any one of the implementations of the second aspect, the third signal is sent to the first electronic device, specifically comprising: displaying a second interface, and in response to a second operation acting on the second interface, sending the third signal to the first electronic device.

[0040] The technical effects of the second aspect and any one of the implementations of the second aspect can be referred to the technical effects of the first aspect and any one of the implementations of the first aspect, which will not be described herein.

[0041] In a third aspect, a method for unlocking is provided. The method includes determining, by a first electronic device, that a first risk exists in an environment in which the first electronic device is located. In a case where the first risk exists in the environment in which the first electronic device is located, the first electronic device allows a second electronic device to establish a connection with the first electronic device, wherein the second electronic device is an electronic device that is not allowed to establish the connection with the first electronic device in a case where the first risk does not exist in the environment in which the first electronic device is located. After the first electronic device establishes the connection with the second electronic device, the second electronic device sends login account information of the second electronic device to a first server, wherein the first server is a server configured to manage a login account corresponding to the login account information. The second electronic device receives a fourth signal sent by the first server, wherein the fourth signal is a signal sent by the first server after determining an unlocking authorization according to the login account information. The second electronic device obtains the unlocking authorization for controlling the first electronic device to unlock according to the fourth signal. The second electronic device sends a first signal to the first electronic device, wherein the first signal is configured to indicate that the login account of the second electronic device is authorized. The first electronic device confirms the unlocking according to the first signal.

[0042] According to the third aspect, before the second electronic device sends the first signal to the first electronic device, the method further includes obtaining, by the second electronic device, a face image of a user who indicates the unlocking by the second electronic device. The second electronic device sends the face image of the user to a second server and / or the first electronic device, wherein the second server is a server configured to manage the first electronic device.

[0043] According to the third aspect, or any one of the implementations of the third aspect, the first electronic device determines that the first risk exists in the environment in which the first electronic device is located, including: determining, by the first electronic device, that the first risk exists in the environment in which the first electronic device is located according to first data, wherein the first data includes one or more of environmental monitoring data, user monitoring data, user data, and security level data.

[0044] According to the third aspect, or any one of the implementations of the third aspect, the method further includes obtaining, by the first electronic device, second data, wherein the second data includes the first data. The first electronic device determines whether the first risk exists in the environment in which the first electronic device is located according to the second data. After the first electronic device determines that the first risk does not exist in the environment in which the first electronic device is located, the first electronic device confirms the locking.

[0045] The technical effects of the third aspect and any one of the implementations of the third aspect can be referred to the technical effects of the first aspect and any one of the implementations of the first aspect, which will not be described herein.

[0046] In a fourth aspect, an electronic device is provided. The electronic device is a first electronic device, and the first electronic device includes a processor and a memory coupled to the processor. The memory is configured to store computer readable instructions. When the processor reads the computer readable instructions from the memory, the first electronic device is caused to perform the following operations: obtaining first data. According to the first data, it is determined that a first risk exists in an environment in which the first electronic device is located. In response to a connection request sent by a second electronic device, a connection is established with the second electronic device. It is determined that a login account of the second electronic device is authorized. In a case where the first risk exists in the environment in which the first electronic device is located and it is determined that the login account of the second electronic device is authorized, it is confirmed to unlock.

[0047] According to the fourth aspect, the first data includes one or more of environment monitoring data, user monitoring data, user data, and security level data.

[0048] According to the fourth aspect, or any one of the implementations of the fourth aspect, the obtaining of the first data includes obtaining the first data sent by one or more of a sensor in the environment in which the first electronic device is located, a sensor of the first electronic device, a third electronic device in the environment in which the first electronic device is located and configured with a sensor, and a central control device in the environment in which the first electronic device is located.

[0049] According to the fourth aspect, or any one of the implementations of the fourth aspect, the determining that the login account of the second electronic device is authorized includes: obtaining a first signal sent by the second electronic device, the first signal carrying authorization confirmation information, the authorization confirmation information being information sent by a first server to the second electronic device after determining that the login account of the second electronic device is authorized. According to the first signal, it is determined that the login account of the second electronic device is authorized. Alternatively, a second signal sent by the first server is obtained through a second server. According to the second signal, it is determined that the login account of the second electronic device is authorized.

[0050] According to the fourth aspect, or any one of the implementations of the fourth aspect, the login account of the second electronic device being authorized includes that the login account of the second electronic device is bound with user real-name identity information.

[0051] According to the fourth aspect, or any one of the implementations of the fourth aspect, when the processor reads the computer readable instructions from the memory, the first electronic device is further caused to perform the following operation: receiving a third signal sent by the second electronic device, the third signal being used to instruct the first electronic device to unlock.

[0052] According to the fourth aspect, or any one of the implementations of the fourth aspect, when the processor reads the computer readable instructions from the memory, the first electronic device is further caused to perform the following operation: obtaining a face image of a user who instructs the second electronic device to unlock.

[0053] According to a fourth aspect, or any possible implementation mode of the fourth aspect, when the processor reads the computer instructions from the memory, the first electronic device further performs the following operation: sending the face image to a second server, the second server being a server for managing the first electronic device.

[0054] According to the fourth aspect, or any possible implementation mode of the fourth aspect, the first risk includes one or more of the following: fire risk, water flooding risk, child alone activity risk, and old person illness risk.

[0055] According to the fourth aspect, or any possible implementation mode of the fourth aspect, when the processor reads the computer instructions from the memory, the first electronic device further performs the following operation: playing an alarm audio through an audio module, and / or flashing an indicator light.

[0056] According to the fourth aspect, or any possible implementation mode of the fourth aspect, when the processor reads the computer instructions from the memory, the first electronic device further performs the following operation: obtaining second data, the second data including the first data; determining whether the first risk exists in the environment of the first electronic device according to the second data; and confirming the lock after determining that the first risk does not exist in the environment of the first electronic device.

[0057] The technical effects of the fourth aspect and any possible implementation mode of the fourth aspect can refer to the technical effects of the first aspect and any possible implementation mode of the first aspect, which will not be described herein.

[0058] According to a fifth aspect, an electronic device is provided. The electronic device is a second electronic device, and the second electronic device includes a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, and the memory being configured to store computer readable instructions. When the processor reads the computer readable instructions from the memory, the second electronic device performs the following operations: sending a connection request to a first electronic device, and establishing a connection with the first electronic device; displaying a first interface; in response to a first operation acting on the first interface, obtaining login account information; obtaining a lock opening authorization allowing to control the first electronic device to open the lock according to the login account information; and sending a first signal to the first electronic device, the first signal being used to indicate that the login account of the second electronic device has been authorized.

[0059] According to the fifth aspect, the lock opening authorization allowing to control the first electronic device to open the lock is obtained according to the login account information, including: sending the login account information to a first server; receiving a fourth signal sent by the first server, the fourth signal being a signal sent by the first server after determining the lock opening authorization according to the login account information; and obtaining the lock opening authorization allowing to control the first electronic device to open the lock according to the fourth signal.

[0060] According to a fifth aspect, or any possible implementation mode of the fifth aspect, when the processor reads the computer instructions from the memory, the second electronic device further performs the following operation: collecting the user face image. The second electronic device further performs the following operation: sending the user face image to the second server and / or the first electronic device, the second server being a server for managing the first electronic device.

[0061] According to a fifth aspect, or any possible implementation mode of the fifth aspect, when the processor reads the computer instructions from the memory, the second electronic device further performs the following operation: sending the third signal to the first electronic device, the third signal being used for instructing the first electronic device to unlock.

[0062] According to a fifth aspect, or any possible implementation mode of the fifth aspect, the sending of the third signal to the first electronic device specifically includes: displaying a second interface, and in response to a second operation acting on the second interface, sending the third signal to the first electronic device. The technical effects corresponding to the fifth aspect and any possible implementation mode of the fifth aspect can be referred to the technical effects corresponding to the first aspect and any possible implementation mode of the first aspect, which will not be described herein again.

[0063] The technical effects corresponding to the fifth aspect and any possible implementation mode of the fifth aspect can be referred to the technical effects corresponding to the second aspect and any possible implementation mode of the second aspect, which will not be described herein again.

[0064] According to a sixth aspect, the embodiments of the present application provide a unlocking system, which comprises a first electronic device, a second electronic device and a first server. The first electronic device is configured to execute the method of the first aspect or any possible implementation mode of the first aspect, the second electronic device is configured to execute the method of the second aspect or any possible implementation mode of the second aspect, and the first server is configured to authorize and confirm a login account of the second electronic device.

[0065] The technical effects corresponding to the sixth aspect and any possible implementation mode of the sixth aspect can be referred to the technical effects corresponding to the first aspect and any possible implementation mode of the first aspect, which will not be described herein again.

[0066] According to a seventh aspect, the embodiments of the present application provide an electronic device, which has a function of implementing the unlocking method as described in the first aspect and any possible implementation mode thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software comprises one or more modules corresponding to the above functions.

[0067] The technical effects corresponding to the seventh aspect and any possible implementation mode of the seventh aspect can be referred to the technical effects corresponding to the first aspect and any possible implementation mode of the first aspect, which will not be described herein again.

[0068] In an eighth aspect, an embodiment of the present application provides an electronic device having a function of implementing the unlocking method in the second aspect above and any possible implementation manner thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above function.

[0069] The technical effects of the eighth aspect and any possible implementation manner thereof can refer to the technical effects of the second aspect above and any possible implementation manner thereof, which will not be repeated here.

[0070] In a ninth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code), which, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any possible implementation manner thereof; or causes the electronic device to perform the method of the second aspect or any possible implementation manner thereof.

[0071] The technical effects of the ninth aspect and any possible implementation manner thereof can refer to the technical effects of the first aspect above and any possible implementation manner thereof, which will not be repeated here.

[0072] In a tenth aspect, a computer program product is provided. When the computer program product is run on an electronic device, the electronic device is caused to perform the method of the first aspect or any possible implementation manner thereof; or when the computer program product is run on an electronic device, the electronic device is caused to perform the method of the second aspect or any possible implementation manner thereof.

[0073] The technical effects of the tenth aspect and any possible implementation manner thereof can refer to the technical effects of the first aspect above and any possible implementation manner thereof, which will not be repeated here.

[0074] In an eleventh aspect, an embodiment of the present application provides a circuit system, which includes processing circuitry configured to perform the method of the first aspect or any possible implementation manner thereof; or the processing circuitry is configured to perform the method of the second aspect or any possible implementation manner thereof.

[0075] The technical effects of the eleventh aspect and any possible implementation manner thereof can refer to the technical effects of the first aspect above and any possible implementation manner thereof, which will not be repeated here.

[0076] In a twelfth aspect, an embodiment of the present application provides a chip system, comprising at least one processor and at least one interface circuit, the at least one interface circuit being configured to perform a transceiving function and send an instruction to the at least one processor, and when the at least one processor executes the instruction, the at least one processor executes the method of the first aspect or any one of the implementation forms of the first aspect; or when the at least one processor executes the instruction, the at least one processor executes the method of the second aspect or any one of the implementation forms of the second aspect.

[0077] The twelfth aspect and the technical effects of any one of the implementation forms of the twelfth aspect can refer to the technical effects of the first aspect and any one of the implementation forms of the first aspect, which will not be described herein again. BRIEF DESCRIPTION OF DRAWINGS

[0078] Figure 1 A schematic diagram of a communication system to which a lock opening method provided by an embodiment of the present application is applied;

[0079] Figure 2 A schematic diagram of a hardware structure of a first electronic device provided by an embodiment of the present application;

[0080] Figure 3 A schematic diagram of a hardware structure of a second electronic device provided by an embodiment of the present application;

[0081] Figure 4 A schematic diagram of a flow of a security level determination method provided by an embodiment of the present application;

[0082] Figure 5 A schematic diagram of a security level and a corresponding processing mode provided by an embodiment of the present application;

[0083] Figure 6 An interface provided by an embodiment of the present application Figure 1 ;

[0084] Figure 7 An interface provided by an embodiment of the present application Figure 2 ;

[0085] Figure 8 An interface provided by an embodiment of the present application Figure 3 ;

[0086] Figure 9 An interface provided by an embodiment of the present application Figure 4 ;

[0087] Figure 10 An interface provided by an embodiment of the present application Figure 5 ;

[0088] Figure 11A A flowchart of a lock opening method provided by an embodiment of the present applicationFigure 1 ;

[0089] Figure 11B Flowchart of the unlocking method provided for the embodiment of the present application Figure 2 ;

[0090] Figure 12 Flowchart of the unlocking method provided for the embodiment of the present application Figure 3 ;

[0091] Figure 13 Flowchart of the unlocking method provided for the embodiment of the present application Figure 4 ;

[0092] Figure 14 Structure diagram of the first electronic device provided for the embodiment of the present application

[0093] Figure 15 Structure diagram of the second electronic device provided for the embodiment of the present application DETAILED DESCRIPTION

[0094] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terms used in the following embodiments are only for the purpose of describing the specific embodiments and are not intended to be limiting on the present application. As used in the specification and the appended claims of the present application, the singular forms “a,” “an,” and “the” are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will also be understood that “at least one” and “one or more” refer to one or two or more (including two).

[0095] In the present specification, the reference to “one embodiment” or “some embodiments” etc. means that a particular feature, structure or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, the statements “in one embodiment”, “in some embodiments”, “in other embodiments”, “in additional embodiments” etc. appearing in various places in the specification are not necessarily all referring to the same embodiment, but mean “one or more but not all embodiments”, unless otherwise specifically stated. The terms “comprising”, “containing”, “having” and their variants mean “including but not limited to”, unless otherwise specifically stated. The term “connected” includes both direct and indirect connections, unless otherwise stated. “First”, “second”, etc. are used only for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features.

[0096] In the embodiments of the present application, the word "exemplarily" or "for example" is used to represent an example, illustration, or description. Any embodiment or design scheme described as "exemplarily" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. In fact, the word "exemplarily" or "for example" is intended to present the relevant concept in a specific manner.

[0097] Figure 1 A schematic diagram of a communication system to which a lock opening method provided in the embodiments of the present application is applied is shown in FIG. 1. As shown in the figure, the communication system includes a first electronic device 100, a second electronic device 200, and a server 300. The first electronic device 100 and the second electronic device 200 establish a communication connection with the server 300 through a wireless connection. In the embodiments of the present application, the connection manner between the first electronic device 100 or the second electronic device 200 and the server 300 is not specifically limited. Figure 1

[0098] Optionally, the first electronic device 100 can establish a wireless communication connection with the second electronic device 200 through a wireless communication technology. The wireless communication technology includes, but is not limited to, at least one of the following: Bluetooth (BT) (for example, traditional Bluetooth or Bluetooth Low Energy (BLE)), Wireless Local Area Networks (WLAN) (such as a Wireless Fidelity (Wi-Fi) network), Near Field Communication (NFC), Zigbee, Frequency Modulation (FM), Infrared (IR), and the like.

[0099] In some embodiments, the first electronic device 100 and the second electronic device 200 both support a proximity discovery function. Exemplarily, after the second electronic device 200 approaches the first electronic device 100, the second electronic device 200 and the first electronic device 100 can discover each other, and then establish a wireless communication connection such as a Bluetooth connection, a Wi-Fi peer to peer (P2P) connection, and the like. Then, a user can control the first electronic device 100 to open a door lock through the second electronic device 200.

[0100] In some embodiments, the first electronic device 100 and the second electronic device 200 establish a wireless communication connection through a local area network. For example, the first electronic device 100 and the second electronic device 200 are both connected to the same router.

[0101] ​In some embodiments, the first electronic device 100 and the second electronic device 200 establish a wireless communication connection through a cellular network, the Internet, etc. For example, the second electronic device 200 accesses the Internet through a router, and the first electronic device 100 accesses the Internet through a cellular network. Then, the first electronic device 100 and the second electronic device 200 establish a wireless communication connection.

[0102] In some embodiments, the second electronic device 200 is configured with a wireless transceiver, and the second electronic device 200 establishes a wireless communication connection with the first electronic device 100 through the wireless transceiver.

[0103] Optionally, the first electronic device 100 includes, but is not limited to, a smart home device (such as a smart door lock (e.g., a smart house door lock), a smart camera, etc.), a smart vehicle door lock, a vehicle configured with a smart vehicle door lock, a mobile phone, a laptop, etc. electronic device with a lock opening function. The first electronic device 100 can install an operating system. The operating system installed by the first electronic device 100 includes, but is not limited to or other operating systems. The first electronic device 100 can also not be installed with an operating system. The specific type of the first electronic device 100, whether or not to install an operating system, and the type of the operating system installed are not limited in the present application.

[0104] It should be noted that the first electronic device 100 can open the lock to open the door lock (e.g., the first electronic device 100 is a smart door lock), or to start the system by removing the lock screen state (e.g., the first electronic device 100 is a mobile phone). The present application does not make specific limitations.

[0105] Optionally, the second electronic device 200 can be, for example, a mobile phone, a tablet computer (Pad), a personal computer (PC), a notebook computer, a computer with transceiver function, a wearable device, an artificial intelligence (AI) device, etc. Terminal device. The operating system installed by the second electronic device 200 includes, but is not limited to or other operating systems. In some embodiments, the second electronic device 200 can be a fixed device or a portable device. The specific type of the second electronic device 200 and the operating system installed are not limited in the present application.

[0106] Optionally, the server 300 can be a cloud server or a network server, etc. A device or network device with computing function. The server 300 can be a server, or a server cluster composed of multiple servers, or a cloud computing service center, respectively. For example, in the present applicationFigure 1 The server 300 can perform the unlocking method provided in the embodiments of the present application.

[0107] In some embodiments, the server 300 can include a first server and a second server. The first server is configured to manage a login account of the second electronic device 200 and can perform authorization authentication on the login account of the second electronic device 200, and then determine whether to allow the user to control the first electronic device 100 through the second electronic device 200. For example, the second electronic device 200 can control the first electronic device 100 to unlock after passing the authorization authentication of the login account. Optionally, the first server includes a Huawei server that can perform authorization authentication on a Huawei account, a server that can perform authorization authentication on an account, a server that can perform authorization authentication on an account, and the like. The second server includes a server configured to manage the first electronic device 100. For example, the first electronic device 100 is a smart door lock, and the second server is a smart home server. Optionally, the server 300 can be a server or a server cluster that can implement the functions of the first server and the second server.

[0108] In some embodiments, the first electronic device 100 is a smart door lock, and the smart door lock can be configured with a fingerprint recognition function or a password function. The user can open the smart door lock without carrying a key, which is convenient for the user. However, the smart door lock can also be unreliable, which affects the user experience.

[0109] For example, the smart door lock is a smart house door lock of a room. Generally, one or more fingerprint templates for unlocking are pre-stored in the smart house door lock. The smart house door lock can be unlocked only after confirming that the input fingerprint matches the fingerprint template. However, in an emergency scene such as a fire or water immersion, the house owner cannot open the smart house door lock in time, and other strangers do not have the unlocking permission, which can lead to a dangerous situation. In addition, in a fire scene, the smart house door lock can be damaged by high temperature if the fire is not stopped in time. Then, the house owner can also be unable to instruct the smart house door lock to unlock after the smart house door lock is damaged, which endangers the safety of the trapped people in the house.

[0110] For another example, the smart door lock is a smart car door lock of a vehicle. Due to the negligence of the parents, the children can be left in the vehicle. If the windows and doors of the vehicle are not opened, the oxygen content in the vehicle can be reduced for a long time, and the children in the vehicle can not have the ability to escape by themselves, which can lead to a dangerous situation of suffocation. In addition, in hot weather such as summer, the children in the vehicle can also be in danger of high-temperature death. Further, if other people outside the vehicle find the risk in the vehicle, they can only break the window to rescue the trapped people, which can cause property loss of the vehicle owner.

[0111] Based on this, the application provides an unlocking method. The first electronic device (such as a smart door lock) can monitor the environment. When it is determined that the current situation is a preset dangerous situation, the first electronic device can automatically unlock the door. Alternatively, when it is determined that the login account of the second electronic device (such as a mobile phone) has been authorized, the first electronic device allows the second electronic device to open the door. Thus, the risk of accidents is reduced, and the user experience is improved.

[0112] Exemplarily, Figure 2 A structural schematic diagram of the first electronic device 100 is shown. As shown in the figure, Figure 2 The first electronic device 100 may, for example, include a micro controller unit (MCU) 210, a sensor module 220, a security module 230, a communication module 240, an audio module 250, a memory 260, an indicator 261, a button 262, a motor driving module 270, a motor 271, a charging management module 280, a power management module 281, a battery 282, a universal serial bus (USB) interface 290, and the like.

[0113] It can be understood that the structure shown in the embodiments of the application does not constitute a specific limitation on the first electronic device 100. In other embodiments of the application, the first electronic device 100 can include more or fewer components than shown, or combine certain components, or split certain components, or different component arrangements. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0114] The MCU 210 can include one or more processing units, for example: the MCU 210 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units can be independent devices or integrated into one or more processors.

[0115] The controller can generate operation control signals according to instruction operation codes and timing signals to complete the control of fetching and executing instructions.

[0116] The MCU 210 can also include memory that stores instructions and data. In some embodiments, the memory in the MCU 210 is a cache memory. The memory can hold instructions or data that the MCU 210 has just used or is using repeatedly. If the MCU 210 needs to use the instructions or data again, it can call them directly from the memory. This avoids repeated access and reduces the waiting time of the MCU 210, thus improving the efficiency of the system.

[0117] The sensor module 220 can include a fingerprint sensor 2201 and a temperature sensor 2202. The fingerprint sensor 2201 is configured to collect a fingerprint input by a user, thereby implementing a fingerprint unlocking function of the first electronic device 100. The temperature sensor 2202 is configured to monitor an ambient temperature.

[0118] The security module 230 is configured to determine a security level of the first electronic device 100. Optionally, the security level includes one or more of a normal mode, a danger mode, and an emergency mode.

[0119] In some embodiments, the security module 230 can obtain data monitored by the sensor module 220, environmental monitoring data sent by other electronic devices, and the like, and determine the current security level according to the obtained data.

[0120] For example, the first electronic device 100 is a smart door lock, and the security module 230 in the first electronic device 100 can obtain environmental monitoring data detected by a sensor in the first electronic device 100, environmental monitoring data sent by a sensor (such as a temperature sensor or a smoke sensor) or a device configured with the sensor in a home. The environmental monitoring data can include, for example, temperature and smoke concentration. The security module 230 can determine, for example, that the temperature in the current room exceeds a threshold value 1 according to the environmental monitoring data. Then, the security module 230 can determine that there is a risk of fire in the current room and determine the security level as the danger mode. Further, the security module 230 can determine, according to the environmental monitoring data, that the temperature in the current room exceeds the threshold value 1 and the smoke concentration exceeds a threshold value 2, and determine the security level as the emergency mode. Optionally, the danger degree of the emergency mode is higher than that of the danger mode.

[0121] In some embodiments, the security module 230 sends the security level determination result to the MCU 210. The MCU 210 can determine whether a corresponding processing mode needs to be performed according to the received security level determination result.

[0122] For example, the MCU 210 determines that the current is the danger mode according to the received security level determination result, and allows the second electronic device 200 that passes the security authorization to unlock. For example, the first electronic device 100 drives the motor 271 to start according to the indication of the second electronic device 200 that passes the authorization, and the motor driving module 270 drives the motor 271 to start to realize unlocking.

[0123] For another example, the MCU 210 determines that the current is the emergency mode according to the received security level determination result, and directly instructs the motor driving module 270 to drive the motor 271 to start to realize unlocking.

[0124] In some embodiments, the security module 230 can be arranged in the MCU 210. In this case, the MCU 210 can perform the related operations performed by the security module 230.

[0125] The communication module 240 can provide wireless communication solutions applied to the first electronic device 100, including Bluetooth (BT), wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc. The communication module 430 can be one or more devices integrated with at least one communication processing module. The communication module 430 receives electromagnetic waves via an antenna, performs frequency modulation and filtering processing on the electromagnetic wave signals, and sends the processed signals to the MCU 210. The communication module 240 can also receive signals to be sent from the MCU 210, perform frequency modulation, amplification, and convert the signals to electromagnetic wave radiation via an antenna.

[0126] In some embodiments, the first electronic device 100 can obtain environmental monitoring data through the communication module 240. The first electronic device 100 can also establish a communication connection with the second electronic device 200 through the communication module 240 to realize signal interaction.

[0127] For example, the first electronic device 100 receives the unlocking instruction sent by the second electronic device 200 through the communication module 240. The first electronic device 100 determines that the login account of the second electronic device 200 has been authorized, and can drive the motor 271 to start according to the unlocking instruction, and the motor driving module 270 drives the motor 271 to start to realize unlocking.

[0128] The audio module 250 is configured to convert digital audio information into an analog audio signal for output, and to convert an analog audio input into a digital audio signal. The audio module 170 can also be configured to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the MCU 210, or some of the functional modules of the audio module 170 can be disposed in the MCU 210.

[0129] In some embodiments, the first electronic device 100 can output prompt information through the audio module 250. For example, the first electronic device 100 determines that the current security level is in a dangerous mode through the security module 230. Then, the first electronic device 100 can send prompt information through the audio module 250 to prompt passers-by nearby to pay attention to the fact that the room or vehicle in which the first electronic device 100 is located has a security risk and needs help.

[0130] The memory 260 can be configured to store computer executable program codes including instructions. The memory 260 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application function required by a function (such as a fingerprint collection function, a host switching function, etc.), and the like. The data storage area can store data (such as fingerprint template data, etc.) created during use of the first electronic device 100, and the like. In addition, the memory 260 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The MCU 210 executes various function applications and data processing of the first electronic device 100 by running instructions stored in the memory 260 and / or instructions stored in the memory disposed in the MCU 210.

[0131] The indicator 261 can be an indicator light, which can be used to indicate a charging state, a power change, and can also be used to indicate a message, whether to unlock, and the like.

[0132] The key 262 can be a mechanical key or a touch key. The first electronic device 100 can receive a key input to generate a key signal input related to user settings and function control of the first electronic device 100. For example, the key includes a key for collecting a user input password.

[0133] The motor driving module 270 is configured to drive the motor 271 to start to achieve unlocking or locking.

[0134] In some embodiments, the motor driving module 270 determines, according to the indication of the MCU 210, that the door lock needs to be opened. The motor driving module 270 can instruct the motor 270 to start, retract the bolt, and open the door lock. Alternatively, the motor driving module 270 determines, according to the indication of the MCU 210, that the door lock needs to be closed. The motor driving module 270 can instruct the motor 270 to start, release the bolt, and close the door lock.

[0135] The charging management module 280 is configured to receive charging input from a charger. In some embodiments, the charging management module 280 can receive charging input from a wired charger through the USB interface 290. The charging management module 280 can charge the battery 282 while also providing power to the first electronic device 100 through the power management module 281.

[0136] The power management module 281 is configured to connect the battery 282, the charging management module 280, and the MCU 210. The power management module 281 receives input from the battery 282 and / or the charging management module 280 to provide power to the MCU 210, the sensor module 220, the audio module 250, the memory 260, the communication module 240, and the like. The power management module 281 can also be configured to monitor parameters such as the battery 282 capacity, the battery cycle count, the battery health status (leakage, impedance), and the like.

[0137] In some embodiments, the power management module 281 and the charging management module 280 can also be provided in the same device.

[0138] The USB interface 290 is an interface that complies with the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, or the like. The USB interface 290 can be used to connect a charger to charge the first electronic device 100, or to transmit data between the first electronic device 100 and a peripheral device.

[0139] An exemplary structure of the second electronic device 200 is shown in FIG. 2. Figure 3 An exemplary structure of the second electronic device 200 is shown in FIG. 2.

[0140] The second electronic device 200 can include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a sensor module 180, a key 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195.

[0141] It can be understood that the structure shown in the embodiments of the present application does not constitute a specific limitation on the second electronic device 200. In other embodiments of the present application, the second electronic device 200 can include more or fewer components than shown, or combine certain components, or split certain components, or different arrangement of components. The components shown can be implemented in hardware, software, or a combination of software and hardware.

[0142] The processor 110 can include one or more processing units, for example: the processor 110 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units can be independent devices, or can be integrated in one or more processors.

[0143] The controller can generate operation control signals according to instruction operation codes and timing signals, and complete the control of fetching and executing instructions.

[0144] The memory in the processor 110 can also be configured to store instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory can save instructions or data that the processor 110 has just used or repeatedly uses. If the processor 110 needs to use the instructions or data again, it can directly call from the memory. Avoiding repeated access, reducing the waiting time of the processor 110, thus improving the efficiency of the system.

[0145] In some embodiments, the processor 110 can include one or more interfaces. The interfaces can include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0146] The I2C interface is a bidirectional synchronous serial bus including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 can include multiple sets of I2C buses. The processor 110 can be coupled to a touch sensor, a charger, a flash, a camera 193, etc. through different I2C bus interfaces, respectively. For example, the processor 110 can be coupled to a touch sensor through an I2C interface, so that the processor 110 and the touch sensor communicate through the I2C bus interface to realize the touch function of the second electronic device 200.

[0147] The MIPI interface can be used to connect the processor 110 and peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to realize the shooting function of the second electronic device 200. The processor 110 and the display screen 194 communicate through the DSI interface to realize the display function of the second electronic device 200.

[0148] The USB interface 130 is an interface conforming to the USB standard specification, and can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the second electronic device 200, and can also be used to transmit data between the second electronic device 200 and a peripheral device. It can also be used to connect a headset to play audio through the headset. The interface can also be used to connect other electronic devices, such as AR devices, etc.

[0149] It can be understood that the interface connection relationship between the modules shown in the embodiments of the present application is only illustrative and does not constitute a structural limitation of the second electronic device 200. In some other embodiments of the present application, the second electronic device 200 can also use different interface connection methods or combinations of multiple interface connection methods in the above embodiments.

[0150] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input through the wireless charging coil of the second electronic device 200. The charging management module 140 can charge the battery 142 while also providing power to the electronic device through the power management module 141.

[0151] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to provide power to the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160, etc. The power management module 141 can also be used to monitor battery capacity, battery cycle count, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be provided in the processor 110. In some other embodiments, the power management module 141 and the charging management module 140 can also be provided in the same device.

[0152] The wireless communication function of the second electronic device 200 can be realized through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor, etc.

[0153] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the second electronic device 200 can be used to cover a single or multiple communication frequency bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in combination with a tuning switch.

[0154] The mobile communication module 150 can provide a solution including 2G / 3G / 4G / 5G wireless communication applied to the second electronic device 200. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform filtering, amplification, and the like on the received electromagnetic waves, and transmit the processed signals to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and radiate them as electromagnetic waves through the antenna 1. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be provided in the processor 110. In some embodiments, at least part of the functional modules of the mobile communication module 150 can be provided in the same device as at least part of the modules of the processor 110.

[0155] The modem processor can include a modulator and a demodulator. The modulator is used to modulate a low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate a received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low-frequency baseband signal processed by the baseband processor is transmitted to the application processor. The application processor outputs a sound signal through an audio device, or displays an image or a video through the display screen 194. In some embodiments, the modem processor can be a separate device. In some other embodiments, the modem processor can be independent of the processor 110, and can be provided in the same device as the mobile communication module 150 or other functional modules.

[0156] The wireless communication module 160 can provide a solution for wireless communication including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR) technology, etc. applied to the second electronic device 200. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency-modulates and filters the electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 can also receive signals to be transmitted from the processor 110, frequency-modulate them, amplify them, and radiate them as electromagnetic waves via the antenna 2.

[0157] In some embodiments, the antenna 1 and the mobile communication module 150 of the second electronic device 200 are coupled, and the antenna 2 and the wireless communication module 160 are coupled, so that the second electronic device 200 can communicate with a network and other devices through wireless communication technology. The wireless communication technology can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology, etc. The GNSS can include a global positioning system (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and / or a satellite based augmentation systems (SBAS).

[0158] The second electronic device 200 implements a display function through a GPU, a display 194, and an application processor, etc. The GPU is a microprocessor for image processing, which is connected to the display 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 can include one or more GPUs, which execute program instructions to generate or change display information.

[0159] The display screen 194 is configured to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can be manufactured by using a liquid crystal display (LCD), for example, an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flex light-emitting diode (FLED), a Mini-led, a Micro-led, a Micro-oled, a quantum dot light emitting diode (QLED), and the like. In some embodiments, the second electronic device 200 can include one or N display screens 194, where N is a positive integer greater than 1.

[0160] The camera 193 is configured to capture still images or videos. An object generates an optical image through a lens and projects the optical image to a photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to an ISP to convert the electrical signal into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into an image signal in a standard format, such as RGB, YUV, and the like. In some embodiments, the second electronic device 200 can include one or N cameras 193, where N is a positive integer greater than 1.

[0161] In some embodiments, the second electronic device 200 collects a user face image through the camera 193, and sends the face image to a server 300 (e.g., a second server) through the mobile communication module 150 or the wireless communication module 160. In this way, the first electronic device 100 or other electronic devices associated with the first electronic device 100 and having the same account can subsequently obtain the face image from the server 300, determine the identity of the user indicating to turn on the first electronic device 100 (e.g., indicating to unlock), and ensure the safety of the environment in the first electronic device 100.

[0162] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to extend the storage capacity of the second electronic device 200. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music, videos, and the like are stored in the external memory card.

[0163] The internal memory 121 can be used to store computer executable program code, which includes instructions. The internal memory 121 can include a program storage area and a data storage area. The program storage area can store an operating system, at least one application required for a function (such as a sound playing function, an image playing function, and the like), and the like. The data storage area can store data created during use of the second electronic device 200 (such as audio data, a phonebook, and the like), and the like. In addition, the internal memory 121 can include a high-speed random access memory, and can further include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like. The processor 110 executes various function applications and data processing of the second electronic device 200 by running instructions stored in the internal memory 121 and / or instructions stored in a memory disposed in the processor.

[0164] The audio module 170 is used to convert digital audio information into an analog audio signal output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be disposed in the processor 110, or part of the function modules of the audio module 170 can be disposed in the processor 110. The second electronic device 200 can play music, record sound, and the like through the audio module 170. The audio module 170 can include a speaker, a receiver, a microphone, a headphone interface, and an application processor to implement audio functions.

[0165] The sensor module 180 can include a pressure sensor, a gyroscope sensor, a barometric sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.

[0166] The pressure sensor is used to sense a pressure signal, which can be converted into an electrical signal. In some embodiments, the pressure sensor can be disposed on the display 194. There are many types of pressure sensors, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, etc. The capacitive pressure sensor can include at least two parallel plates with conductive material. When a force is applied to the pressure sensor, the capacitance between the electrodes changes. The second electronic device 200 determines the intensity of the pressure according to the change in capacitance. When a touch operation is applied to the display, the second electronic device 200 detects the intensity of the touch operation according to the pressure sensor. The second electronic device 200 can also calculate the position of the touch according to the detection signal of the pressure sensor. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation instructions. For example, when a touch operation with a touch operation intensity less than a first pressure threshold is applied to the short message application icon, an instruction to view a short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold is applied to the short message application icon, an instruction to create a new short message is executed.

[0167] The touch sensor, also referred to as a "touch device". The touch sensor can be disposed on the display 194, and the touch sensor and the display 194 form a touch screen, also referred to as a "touch screen". The touch sensor is used to detect a touch operation applied thereto or in the vicinity. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation can be provided through the display 194. In other embodiments, the touch sensor can also be disposed on the surface of the second electronic device 200, which is different from the position of the display 194.

[0168] The keys 190 include a power-on key, a volume key, etc. The keys 190 can be mechanical keys. They can also be touch keys. The second electronic device 200 can receive key inputs and generate key signal inputs related to user settings and function control of the second electronic device 200.

[0169] The motor 191 can generate a vibration prompt. The motor 191 can be used for incoming call vibration prompts and also for touch vibration feedback. For example, touch operations applied to different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. Touch operations applied to different regions of the display 194 can also correspond to different vibration feedback effects. Different application scenarios (such as time reminders, received messages, alarms, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customizable.

[0170] The indicator 192 can be an indicator light, which can be used to indicate a charging state, a power change, and also to indicate messages, missed calls, notifications, etc.

[0171] The SIM card interface 195 is configured to connect a SIM card. The SIM card can be inserted into or pulled out of the SIM card interface 195 to realize contact and separation with the second electronic device 200. The second electronic device 200 can support one or N SIM card interfaces, where N is a positive integer greater than 1.

[0172] In the following embodiments, the first electronic device 100 is taken as an example of a smart door lock (such as a smart house door lock or a smart vehicle door lock), the second electronic device 200 is taken as an example of a mobile phone, and the server 300 is taken as an example of a first server and a second server. The unlocking method provided in the embodiments of the present application is described.

[0173] In some embodiments, one or more sensors capable of monitoring the environment are included in an environment enclosed by the smart door lock (such as a room in which the smart door lock is installed or a vehicle in which the smart door lock is installed). The sensor can be a dedicated environment monitoring sensor or a sensor installed on a device included in the environment.

[0174] For example, the smart door lock is a smart house door lock, and one or more of a temperature sensor for monitoring the temperature in the room, a smoke sensor for monitoring the smoke concentration in the room, a camera for monitoring, a water immersion sensor for monitoring whether water immersion occurs in the room, and the like are included in the room enclosed by the smart house door lock. For another example, the smart door lock is a smart vehicle door lock, and one or more of a temperature sensor for monitoring the temperature in the vehicle, a smoke sensor for monitoring the smoke concentration in the vehicle, a camera for monitoring, and the like are included in the vehicle enclosed by the smart vehicle door lock.

[0175] In some embodiments, the smart door lock can establish a communication connection with one or more sensors capable of monitoring the environment or devices on which the sensors are located in the environment, and obtain environment monitoring data monitored by each sensor. According to the obtained environment monitoring data, the smart door lock can determine a current security level, where the security level includes one or more of a normal mode, a danger mode, and an emergency mode. The normal mode is used to indicate that the environment enclosed by the smart door lock is safe, and the danger mode and the emergency mode are used to indicate that the environment enclosed by the smart door lock is dangerous. Different security levels correspond to different levels of danger, such as the normal mode, the danger mode, and the emergency mode from low to high. Then, the smart door lock can adopt a corresponding processing mode based on different security levels.

[0176] In some embodiments, the smart door lock determines the current security level during the process of determining the lock state (e.g., the bolt is released). Then, based on the security level, the smart door lock determines whether to execute the corresponding processing mode, such as recovering the bolt to achieve the unlocking. Alternatively, the central control device can also determine the corresponding processing mode after determining the security level. Then, the central control device sends the corresponding instruction signal to the smart door lock according to the processing mode, such as instructing the smart door lock to start the security authorization unlocking, or directly instructing the smart door lock to unlock, etc.

[0177] In some embodiments, the smart door lock determines the current security level during the process of determining the lock state (e.g., the bolt is released). Then, based on the security level, the smart door lock determines whether to execute the corresponding processing mode, such as recovering the bolt to achieve the unlocking. Alternatively, the central control device can also determine the corresponding processing mode after determining the security level. Then, the central control device sends the corresponding instruction signal to the smart door lock according to the processing mode, such as instructing the smart door lock to start the security authorization unlocking, or directly instructing the smart door lock to unlock, etc.

[0178] It should be noted that, in the following embodiments, the smart door lock determines the security level and the corresponding processing mode as an example to illustrate the unlocking method provided by the embodiments of the present application.

[0179] Exemplarily, Figure 4 A flowchart of a security level determination method provided by the embodiments of the present application is shown in FIG. 4. As shown in FIG. 4, the method includes the following steps. Figure 4

[0180] S401, the smart door lock acquires the environment monitoring data.

[0181] In some embodiments, as described above, the smart door lock can acquire the environment monitoring data monitored by each sensor in the environment enclosed by the smart door lock. In addition, if the smart door lock itself contains a sensor, the smart door lock can also acquire the environment monitoring data detected by the sensor itself.

[0182] S402, the smart door lock determines whether condition 1 is met. If yes, S403 is executed; if no, S401 is executed.

[0183] S403, the smart door lock determines that the security level is the dangerous mode.

[0184] ​In some embodiments, in step S402-step S403, condition 1 is a condition for determining the security level. Optionally, the smart door lock determines that the current environmental monitoring data satisfies condition 1, and determines that the security level is the dangerous mode (i.e., step S403 is performed); or determines that the environmental monitoring data does not satisfy condition 1, and continues to monitor the environment enclosed by the smart door lock to obtain environmental monitoring data (i.e., step S401 is performed).

[0185] Generally, when some dangerous scenarios occur, the environmental monitoring data will change, and the current risk of occurrence of danger can be determined by the environmental monitoring data, and then the security level is determined.

[0186] For example, when a fire occurs, the environmental temperature will rise. Then, as shown in example 1 in Table 1 below, condition 1 can be, for example, that the temperature is greater than threshold 1. For example, if threshold 1 is 50 degrees Celsius, the smart door lock determines that the current indoor / in-vehicle temperature is greater than 50 degrees Celsius according to the obtained environmental monitoring data, and then determines that there is a risk of fire and determines the security level as the dangerous mode. For another example, when a fire occurs, smoke will be accompanied by an increase in smoke density. Then, as shown in example 2 in Table 1 below, condition 1 can be that the smoke density is greater than threshold 3. Then, when the smart door lock determines that the current indoor / in-vehicle smoke density is greater than threshold 3, it can be determined that there is a risk of fire and the security level is determined as the dangerous mode.

[0187] Table 1

[0188]

[0189] It should be noted that the conditions and contents of the conditions shown in Table 1 above are only exemplary, and other judgment conditions can be used for other dangerous scenarios. For example, in a water immersion dangerous scenario, condition 1 can be that the environmental monitoring data monitored by the water immersion sensor is greater than a preset threshold. The embodiments of the present application will not be repeated here.

[0190] S404, the smart door lock determines that condition 2 is satisfied.

[0191] S405, the smart door lock determines that the security level is the emergency mode.

[0192] In some embodiments, in step S404-step S405, condition 2 is a condition for determining the security level. In some cases, the smart door lock determines that the current danger level has exceeded the danger level corresponding to the dangerous mode according to the environmental monitoring data, and determines that the security level is the emergency mode.

[0193] Exemplarily, in the fire scenario as shown in step S403, condition 1 is that the temperature is greater than 50 degrees Celsius. Then, as shown in Table 1, condition 2 can be preset as that the temperature is greater than threshold 2, and threshold 2 is greater than threshold 1. For example, threshold 2 is 70 degrees Celsius. Based on this, the intelligent door lock determines, according to the monitored temperature, that the current temperature is greater than 70 degrees Celsius, and directly determines that the security level is in the emergency mode.

[0194] In step S406, the intelligent door lock determines that condition 3 is met.

[0195] In some embodiments, the occurrence of a dangerous scenario can cause changes in multiple environmental monitoring data. Then, the intelligent door lock can determine the dangerous scenario according to the multiple environmental monitoring data.

[0196] For example, in the case where the intelligent door lock determines that the current security level is in the dangerous mode, and with the acquired environmental monitoring data, it is determined that the current environment meets condition 3, the security level can be upgraded to the emergency mode. The dangerous degree of the emergency mode is higher than that of the dangerous mode. For example, as shown in Example 1 of Table 1, condition 3 is that the smoke concentration is greater than threshold 3. Then, the intelligent door lock can determine that the current security level is in the emergency mode when the environmental temperature is greater than threshold 1 and the smoke concentration exceeds threshold 3. That is, the intelligent door lock can determine the security level according to one or more conditions, thereby ensuring the accuracy of the determined security level and reducing the harm caused by the risk.

[0197] In this way, through the above method, the intelligent door lock can determine the security level according to the environmental monitoring data, and can further perform different processing modes, thereby effectively avoiding the occurrence of danger and reducing the risk.

[0198] In some embodiments, the intelligent door lock first determines whether the current environment is in a preset dangerous scenario according to the acquired environmental monitoring data. Then, if the intelligent door lock determines that the current environment is in the preset dangerous scenario, the security level is determined according to the security level determination condition corresponding to the preset dangerous scenario. The preset dangerous scenario may, for example, include a fire scenario, a water flooding scenario, a child alone activity scenario, an old person illness scenario, etc.

[0199] Exemplarily, the intelligent door lock determines, according to the environmental monitoring data such as the environmental temperature, that the environmental temperature rises by more than a preset threshold within a preset time period, and further determines that the current environment is in the preset fire scenario. Then, the intelligent door lock can determine the security level according to condition 1, condition 2 and condition 3 in Example 1 or Example 2 as shown in Table 1.

[0200] For example, the smart door lock determines, according to the camera monitoring data in the environment monitoring data, that there is no one in the driver seat and a child exists in the child seat. Then, the smart door lock can determine that the child is in a preset dangerous scene of a child alone activity scene. For example, the safety level is determined as a dangerous mode. Further, on this basis, the smart door lock determines, according to the environment monitoring data, that the temperature in the current vehicle exceeds a preset threshold, and the safety level is determined as an emergency mode.

[0201] For another example, the smart door lock determines, according to the camera monitoring data in the environment monitoring data, that there is only one old person in the room and the old person falls down for more than a preset time. Then, it can be determined that the old person is in a preset dangerous scene of an old person illness scene, and the safety level is determined as an emergency mode.

[0202] In other embodiments, there is a central control device in the environment enclosed by the smart door lock. Then, the central control device can also determine, according to the environment monitoring data, whether the environment enclosed by the smart door lock is in a preset dangerous scene. For example, if it is determined that it is in a preset dangerous scene, the corresponding safety level determination condition is determined, and then the safety level is determined. After that, the central control device sends the safety level to the smart door lock, so that the smart door lock can execute the corresponding processing mode according to the safety level. Or, the central control device determines the corresponding processing mode according to the safety level, and directly sends an instruction signal to the smart door lock to instruct the smart door lock to execute the corresponding processing mode.

[0203] For example, the fire scene in the preset dangerous scene in the above example. For example, the smart home control panel (which can also be other central control devices in the room) determines, according to the obtained environment monitoring data, that it is currently in a fire scene. Then, the corresponding safety level determination condition can include condition 1, condition 2 and condition 3 in example 1 shown in table 1, and then the corresponding safety level is determined.

[0204] Or, for example, the child alone activity scene in the preset dangerous scene in the above example. For example, the car central control can determine, according to the environment monitoring data, that it is currently in a child alone activity scene. Then, the car central control can determine the corresponding safety level.

[0205] Or, for example, the old person illness scene in the preset dangerous scene in the above example. For example, the smart home control panel (which can also be other central control devices in the room) can determine, according to the obtained environment monitoring data, that it is currently in an old person illness scene. Then, the smart home control panel can determine the corresponding safety level.

[0206] Therefore, the determination method of different preset dangerous scenes and the determination condition of the safety level corresponding to the different preset dangerous scenes are preset in the smart door lock. The safety level determination method can be applied to various scenes, and the subsequent unlocking based on the safety level can be realized to reduce the damage caused by the dangerous scenes, thereby effectively improving the user experience.

[0207] In some embodiments, the smart door lock can also obtain the user monitoring data monitored by the wearable device. Then, the smart door lock can also determine the current safety level according to the obtained user monitoring data. The wearable device can be a wearable device in the environment enclosed by the smart door lock, and the user monitoring data obtained by the smart door lock is the monitoring data of the user in the environment currently enclosed by the smart door lock.

[0208] For example, the smart door lock obtains the heart rate data sent by the smart watch and determines that the current user's heart rate is abnormal. Then, the safety level can be determined as the emergency mode.

[0209] It should be noted that the wearable device can also monitor other more user monitoring data, such as blood pressure, blood oxygen content, etc. Then, the smart door lock can also determine the safety level in combination with multiple user monitoring data. The embodiments of the present application will not be exemplified one by one.

[0210] For another example, the smart door lock can determine the current safety level in combination with the environment monitoring data and the user monitoring data. For example, the smart door lock determines that the user falls according to the environment monitoring data and determines that the user's heart rate is abnormal according to the user monitoring data. Then, the smart door lock can determine that the current safety level is the emergency mode.

[0211] Optionally, the smart door lock can further determine the safety level in combination with the user data. The user data is the data of the user associated with the first electronic device, such as the family of the owner of the first electronic device, etc. The user data includes, for example, the user's illness data, age, gender, etc. For example, the smart door lock determines that the safety level is the dangerous mode according to the environment monitoring data and / or the user monitoring data. However, after combining the user's illness data, the safety level can be directly determined as the emergency mode, thereby avoiding the danger to the user with illness.

[0212] In other embodiments, there is a central control device in the environment enclosed by the smart door lock. Then, the central control device can obtain one or more of the environment monitoring data, the user monitoring data, and the user data, and further determine the safety level. Then, the central control device sends the safety level to the smart door lock, so that the smart door lock can execute the corresponding processing mode according to the safety level. Alternatively, the central control device determines the corresponding processing mode according to the safety level, and directly sends an indication signal to the smart door lock to instruct the smart door lock to execute the corresponding processing mode.

[0213] As introduced above, the intelligent door lock or the central control device determines the security level according to the environment monitoring data and the like. The following introduces the processing mode executed by the intelligent door lock under different security levels.

[0214] In some embodiments, as shown in Figure 5 The security level as described above can include one or more of a normal mode, a danger mode and an emergency mode. The normal mode is used to indicate that the environment enclosed by the intelligent door lock is safe, and the corresponding processing mode can be to continue monitoring to continue to obtain environment monitoring data and the like. The danger mode is used to indicate that the environment enclosed by the intelligent door lock is dangerous, and the corresponding processing mode is to allow a safe authorization to unlock, that is, to allow conditional unlocking to ensure safety. The emergency mode is used to indicate that the environment enclosed by the intelligent door lock is in great danger, and the corresponding processing mode is to unlock, that is, to directly unlock to reduce damage caused by the danger.

[0215] Optionally, the safe authorization to unlock is used to indicate that in a case where it is determined that the environment enclosed by the intelligent door lock is dangerous, a second electronic device of a stranger is allowed to establish a connection with the intelligent door lock, and after it is determined that the login account of the second electronic device is authorized, the second electronic device is allowed to instruct the intelligent door lock to unlock, so as to reduce the risk and ensure the safety of property and the like in the environment enclosed by the intelligent door lock. In a case where it is determined that the environment enclosed by the intelligent door lock is not dangerous, the second electronic device of the stranger is not allowed to establish a connection with the intelligent door lock, and the second electronic device is not allowed to instruct the intelligent door lock to unlock. Optionally, the second electronic device of the stranger is used to indicate an electronic device that has not established a connection with the intelligent door lock, or has not established an account binding relationship, or has not established a trust relationship and the like before the connection is established in this safe authorization to unlock process. Therefore, such a second electronic device generally cannot establish a connection with the intelligent door lock without the permission of the intelligent door lock, and in the embodiment of the present application, the intelligent door lock can allow the second electronic device to establish a connection without the determination of the owner, thereby avoiding the danger caused by the fact that the owner is not near the intelligent door lock.

[0216] Among them, generally applied in the process of registering an account, the identity of the registered user can be authenticated in various ways, and after the user identity authentication is passed, the registration of the account can be completed. For example, the second electronic device completes the account registration by creating an account name and corresponding login password. Optionally, in the process of account registration, various ways such as mobile phone number authentication, real-name authentication, and face recognition can be used to ensure account security. Then, the second electronic device logs in the account to determine the corresponding login user identity. Further, the second electronic device can ensure security and realize safe authorization unlocking after logging in the account. It should be noted that the process of registering an account can refer to the prior art, and the embodiments of the present application will not be repeated here.

[0217] In some embodiments, the smart door lock can also allow the user to unlock by security authorization in the case of determining that the security level is in the emergency mode. To avoid the risk caused by automatic unlocking failure.

[0218] In some embodiments, the smart door lock can also allow the user to unlock by security authorization in the case of determining that the security level is in the emergency mode. To avoid the risk caused by automatic unlocking failure.

[0219] In some embodiments, the smart door lock can also allow the user to unlock by security authorization in the case of determining that the security level is in the emergency mode. To avoid the risk caused by automatic unlocking failure.

[0220] For example, the smart door lock determines that the current temperature is higher than the preset threshold value through its own sensor, and there is a risk of high-temperature damage to the smart door lock, and can directly indicate the recovery of the lock tongue to realize unlocking.

[0221] In some embodiments, the smart door lock can also allow the user to unlock by security authorization in the case of determining that the security level is in the emergency mode. To avoid the risk caused by automatic unlocking failure.

[0222] For example, the smart door lock supports the proximity discovery function, and after determining to start the security authorization unlocking, if the user uses the mobile phone to touch the NFC sensing area of the smart door lock, the mobile phone can establish a communication connection with the smart door lock. Figure 6 As shown in interface 601 of (a), the mobile phone displays prompt information to prompt the user to determine whether to allow the establishment of a connection with the smart door lock. After the mobile phone detects the user's operation of clicking the confirm control 61, the mobile phone can establish a communication connection with the smart door lock.

[0223] After that, the smart door lock can confirm the authorization of the mobile phone. For example, Figure 6In the interface 602 shown in (b), the mobile phone displays a prompt message to indicate whether an emergency unlocking operation is in progress and whether the user is sure they want to allow authentication. If the mobile phone detects that the user has clicked the "agree and authenticate" control 62, it can confirm that the authorization authentication has begun.

[0224] Optional, general Huawei accounts, specific applications (such as...) During account creation, user identity is verified. Once verification is successful, account creation is complete. For example, real-name authentication can be performed using ID card information, facial recognition data, or the user's real name. Alternatively, account creation can be completed via SMS verification (meaning real-name authentication may not be required). Therefore, during secure unlocking, the phone can also instruct the user to log in to the corresponding account to complete user identity verification.

[0225] It should be noted that real-name authenticated accounts offer higher security. Verifying user identity through real-name authentication accounts better ensures security within environments enclosed by smart locks. However, some users may not have created real-name authenticated accounts. In this embodiment, a second electronic device can be allowed to instruct the smart lock to unlock after logging into an unauthenticated account, ensuring timely resolution of potential risks within environments enclosed by smart locks.

[0226] For example, such as Figure 6 As shown in interface 603 (c), users can choose to authorize authentication through their Huawei account or through application A (such as...) based on their registered account information. Authorization and authentication can be performed through application B (such as...). Authorization authentication is performed. If the phone detects an operation on control 63 and determines that the user has instructed authorization authentication through a Huawei account, it can display something like... Figure 6 The interface 604 is shown in (d). On interface 604, the mobile phone can receive the user's entered username and password. After detecting the user's click on the confirmation control 64, it confirms that the user has completed the login operation of the Huawei account and can authenticate the username and password.

[0227] Optionally, during the account login authentication process, the mobile phone (i.e., the second electronic device) can send the username and password to the corresponding server (such as the first server) for authentication. For example, if the mobile phone determines that the user is authorizing authentication through a Huawei account, it can send the obtained Huawei username and password to the Huawei server; or, if the mobile phone determines that the user is authenticating through a third-party application (such as...), it can send the username and password to the Huawei server. Authorization authentication can be performed on accounts such as (etc.), and the obtained username and password can be sent to the corresponding third-party application server (e.g., server, a server, etc.

[0228] After that, the corresponding server (such as the first server) authenticates the obtained account name and password, and sends the authentication result to the mobile phone. If it is determined that the authentication is passed, a signal indicating that the authentication is passed or a signal indicating that the authorization is confirmed can be fed back. For example, the first server determines that the obtained password is the same as the preset password corresponding to the account name, and determines that the authentication is passed. Alternatively, the mobile phone can also complete the authentication of the account name and password locally. For example, if it is determined that the local preset password is the same as the user input password, it is determined that the authentication is passed.

[0229] Correspondingly, the mobile phone can receive the signal indicating that the authentication is passed or the signal indicating that the authorization is confirmed sent by the first server. The mobile phone confirms that the user identity authentication is passed (i.e., the login account is authorized) according to the signal indicating that the authentication is passed or the signal indicating that the authorization is confirmed, and can send the signal indicating that the authentication is passed to the smart door lock. Optionally, the signal indicating that the authentication is passed carries authorization confirmation information such as a key or a check code. The authorization confirmation information is information determined by the first server according to a preset rule corresponding to the safe authorization unlocking. Then, the smart door lock can determine that the mobile phone is a mobile phone authorized by the login account according to the preset rule after receiving the authorization confirmation information. Thus, the smart door lock is prevented from being unlocked by mistake due to the signal indicating that the authentication is passed sent by an electronic device that is not authorized.

[0230] Alternatively, in the process of the above-mentioned mobile phone and the smart door lock touching each other, the mobile phone can obtain the ID of the smart door lock and the communication address of the second server for managing the smart door lock from the smart door lock. Then, the mobile phone can also carry the ID of the smart door lock and the communication address of the second server in the login authentication request (such as a request carrying an account name and a password) sent to the first server. After that, the first server can determine the corresponding second server according to the obtained communication address of the second server after determining that the identity authentication information associated with the login account of the mobile phone is authenticated, and send an authentication pass signal of the login account authentication pass of the mobile phone to the second server, which can also carry the smart door lock ID and the mobile phone ID in the authentication pass signal. Among them, the first server can determine the mobile phone ID in the process of receiving the login authentication request sent by the mobile phone. After receiving the authentication pass signal, the second server can determine the corresponding smart door lock according to the smart door lock ID, and forward the authentication pass signal to the determined smart door lock, and carry the mobile phone ID in the forwarded authentication pass signal. Thus, the smart door lock can determine that the received mobile phone ID is the same as the mobile phone ID of the currently connected mobile phone (the mobile phone ID can be obtained in the process of establishing a connection between the smart door lock and the mobile phone) according to the mobile phone ID in the authentication pass signal after receiving the authentication pass signal forwarded by the second server, and further determine that the mobile phone has completed the authorization of the login account. Among them, the smart door lock ID can be a unique identifier of the smart door lock, which is used to distinguish different smart door locks. The mobile phone ID can be a unique identifier of the mobile phone, which is used to distinguish different mobile phones.

[0231] Alternatively, in the process of the above-mentioned mobile phone and the smart door lock touching each other, the mobile phone can obtain the ID of the smart door lock and the communication address of the second server for managing the smart door lock from the smart door lock. Then, the mobile phone can also carry the ID of the smart door lock and the communication address of the second server in the login authentication request (such as a request carrying an account name and a password) sent to the first server. After that, the first server can determine the corresponding second server according to the obtained communication address of the second server after determining that the identity authentication information associated with the login account of the mobile phone is authenticated, and send an authentication pass signal of the login account authentication pass of the mobile phone to the second server, which can also carry the smart door lock ID and the mobile phone ID in the authentication pass signal. Among them, the first server can determine the mobile phone ID in the process of receiving the login authentication request sent by the mobile phone. After receiving the authentication pass signal, the second server can determine the corresponding smart door lock according to the smart door lock ID, and forward the authentication pass signal to the determined smart door lock, and carry the mobile phone ID in the forwarded authentication pass signal. Thus, the smart door lock can determine that the received mobile phone ID is the same as the mobile phone ID of the currently connected mobile phone (the mobile phone ID can be obtained in the process of establishing a connection between the smart door lock and the mobile phone) according to the mobile phone ID in the authentication pass signal after receiving the authentication pass signal forwarded by the second server, and further determine that the mobile phone has completed the authorization of the login account. Among them, the smart door lock ID can be a unique identifier of the smart door lock, which is used to distinguish different smart door locks. The mobile phone ID can be a unique identifier of the mobile phone, which is used to distinguish different mobile phones.

[0232] In some embodiments, after the first server completes the authentication of the identity information associated with the login account of the mobile phone, the first server can send the login information of the login account to the second server. As the first server obtains the information of the second server in the authentication request sent by the mobile phone in the above manner, the first server determines the second server according to the information of the second server, and sends the login information of the login account to the second server. Alternatively, the mobile phone can also send the login information to the second server after determining that the authentication is passed. Then, the second server can save the obtained login information of the login account of the mobile phone.

[0233] Then, the owner of the smart door lock can obtain the login information. The login information includes, for example, login account information (such as the Huawei account name corresponding to the login account used by the user, or account name, or account name, etc.), request authorization time, smart door lock ID, etc.

[0234] For example, the smart door lock has joined the Huawei ecosystem, the second server is a Huawei server, and the owner of the smart door lock can determine the login information of the login account authorized by connecting the Huawei server through the mobile phone of the owner. Alternatively, the smart door lock requests the second server to obtain the login information, and the owner can view the login information through the smart door lock. Alternatively, the smart door lock requests the second server to obtain the login information, and the owner can view the login information through the smart door lock. Alternatively, the second server sends the login information to the smart door lock. Alternatively, the second server sends the login information to the electronic device (such as the mobile phone of the owner) associated with the owner of the smart door lock.

[0235] It should be noted that in some scenarios, if the mobile phone completes the authorization authentication through the Huawei account login authentication mode, and the smart door lock has joined the Huawei ecosystem, then the first server and the second server can both be Huawei servers. Then, the first server can also perform the operations performed by the second server, such as allowing the smart door lock to query the login information, and the like, which will not be described in detail.

[0236] In this way, through the authorization of the login account of the mobile phone, the identity of the user who operates the smart door lock this time can be determined, the security within the closed environment of the smart door lock is protected to a certain extent, and human damage is avoided. Moreover, the traceability of the security authorization unlocking can be increased, and the owner of the smart door lock can determine the user who performs the security authorization unlocking.

[0237] In some embodiments, as shown in the above Figure 6 scenario, if the mobile phone has logged in the Huawei account, the user can no longer need to repeatedly input the account name and password. Instead, the user can directly confirm the identity authentication of the Huawei account through the mobile phone configuration security login mode such as the mobile phone number confirmation login.

[0238] For example, a mobile phone in such Figure 6 The user's click on control 63 is detected on interface 603 shown in (c), confirming that authorization and authentication have been completed through the Huawei account. Furthermore, the phone confirms that it is logged into a Huawei account. Then, the following can be displayed: Figure 7 As shown in interface 701, authorization authentication is completed using the mobile phone number linked to the Huawei account. On interface 701, the phone displays a prompt message 71, indicating that the phone has detected the user clicking the allow control 72 and confirms that the user instructed to complete the authorization authentication using the mobile phone number linked to the Huawei account.

[0239] Understandably, during account registration, mobile phones can bind user information such as phone numbers and email addresses to the account, thus establishing phone number and email login as secure login methods. Therefore, in situations like... Figure 7 In the scenario shown, users can also confirm their login account by confirming their login via email.

[0240] In some embodiments, after the mobile phone confirms that the login account has been authorized, it can send an unlocking instruction to the smart lock. Accordingly, upon receiving the unlocking instruction, the smart lock can determine that the unlocking instruction was sent by an electronic device that has been authorized by the login account, and then determine to retract the bolt and confirm unlocking.

[0241] For example, such as Figure 8 On interface 801, if the mobile phone confirms successful user authentication and completes account login authorization, a prompt message can be displayed to ask the user to confirm whether to instruct the smart lock to unlock. After detecting the user's click on the unlock control 81, the mobile phone can send an unlock instruction to the smart lock. Accordingly, the smart lock unlocks based on the received unlock instruction.

[0242] Alternatively, a smart lock can unlock itself after confirming that the second electronic device (such as a mobile phone) it is connected to has been logged in and authorized.

[0243] Thus, even in a closed environment where risks exist, a stranger can unlock a smart lock using their own electronic device after authorizing the login account. This avoids the danger or property loss that might occur if the smart lock owner (such as a user who knows the smart lock password or has a fingerprint template stored in the smart lock) is not nearby.

[0244] In addition, allowing a second electronic device authorized through a logged-in account to instruct the smart lock to unlock can, to some extent, prevent damage to items in the enclosed environment caused by any second electronic device instructing the smart lock to unlock.

[0245] The above describes how smart locks determine security levels and the corresponding processing methods. In some embodiments, after acquiring one or more data points such as environmental monitoring data, user monitoring data, and user data, a smart lock can determine that a risk exists in the currently enclosed environment. Then, the smart lock can decide to allow unlocking via authorized login account or directly confirm unlocking. In other words, the smart lock does not need to first determine the security level and then the processing method; instead, it can directly determine and execute a preset action method after identifying a risk, improving unlocking efficiency and reducing the harm of the risk.

[0246] In some embodiments, during the account login authorization process, the user's facial image can also be collected, which facilitates the subsequent confirmation of the user's identity by the smart lock owner, further ensuring the safety of items in the enclosed environment of the smart lock.

[0247] For example, a mobile phone in such Figure 6 After user authentication is completed, the interface shown in (d) 604 can display the following: Figure 9 Interface 901 shows the process of capturing the user's facial image. The mobile phone can then send the captured facial image to a server (such as a second server). If the smart lock owner needs to verify the user's identity, they can request to download the user's facial image from the second server. Alternatively, the mobile phone can directly send the user's facial image to the smart lock; in this case, the smart lock can also send the acquired facial image to the second server for backup. Alternatively, after acquiring the user's facial image, the second server can directly send it to the smart lock, such as by identifying the corresponding smart lock based on the acquired smart lock ID. Or, the second server can automatically push the user's facial image to an electronic device (such as a mobile phone) designated by the smart lock owner. The electronic device designated by the smart lock owner is bound to the same account as the smart lock. Furthermore, there can be one or more such electronic devices; the owner can determine the electronic device used to acquire the user's facial image based on their needs.

[0248] Optionally, during the account login authorization process, the mobile phone can perform liveness detection during facial image capture (e.g., instructing the user to blink, open their mouth, turn their head, etc.) to determine that the user requesting login is the same user as the one who registered with their real name, thus preventing unauthorized account theft for authorization. In this case, the mobile phone can directly send the facial image obtained during this process to a second server or directly to the smart lock, without needing to separately capture the user's facial image after account login authorization, simplifying user operation.

[0249] In the process of establishing a connection with the smart door lock, the mobile phone can obtain the information of the second server. Then, the mobile phone can send the user face image to the second server according to the information of the second server. Alternatively, in the process of logging in the account authorization, the mobile phone can also send the obtained user face image to the first server. The first server sends the user face image to the second server according to the information of the second server sent by the mobile phone.

[0250] In some embodiments, the smart door lock can also collect the image of the user who opens the lock through the camera of the smart door lock. For example, after the smart door lock determines to open the lock in a trust-based manner through the login account authorization, the camera can be started to take a photo or a video of the user who opens the lock. Thus, the safety of the items in the environment closed by the smart door lock is ensured.

[0251] In some embodiments, the identity information of the user who opens the lock, such as the input account information and real-name authentication information, can also be saved in the second server or the smart door lock. The identity information can be allowed to be viewed under a preset condition. After the first server completes the login account authorization, the identity information of the user who opens the lock can be sent to the second server.

[0252] For example, a thief or other illegal personnel opens the lock through the login account authorization. The identity information of the user corresponding to the account can be saved in the second server or the smart door lock. Then, the owner can report to the police after determining the loss of property in the environment closed by the smart door lock. The relevant staff (such as police officers) with authority can view the identity information of the user who opens the lock saved in the smart door lock, or instruct the smart door lock to obtain the identity information of the user who opens the lock saved in the second server, so as to quickly track the user who opens the lock, thereby avoiding the loss of the owner. Moreover, the illegal personnel who want to illegally enter the house to steal property can be deterred.

[0253] In some embodiments, when the smart door lock determines that the security level is in a mode other than the abnormal mode (such as a dangerous mode, an emergency mode, etc.), the smart door lock can play an alarm audio through the audio module 250 and / or flash an indicator light through the indicator 261, as shown in FIG. 25. Thus, the attention of the surrounding people is attracted, and the risk that the danger in the environment closed by the smart door lock is ignored and the danger becomes more serious is avoided. Figure 2

[0254] In some embodiments, after the smart door lock determines the security level, the smart door lock also continuously monitors the environment. Then, if it is determined that the risk is reduced or eliminated, the smart door lock can perform a corresponding processing mode.

[0255] For example, as shown in FIG. 26, the smart door lock can play an alarm audio through the audio module 260 and / or flash an indicator light through the indicator 261 when the security level is in a dangerous mode. Figure 4 ​And the content of example one shown in Table 1 above, the smart door lock determines that the temperature is greater than threshold 2 (such as 70 degrees Celsius), and determines that condition 2 is met. Then, the smart door lock determines that the current security level is in emergency mode, and can directly instruct the recovery of the lock tongue to achieve unlocking. After that, if the smart door lock determines that the environmental temperature has dropped according to the received environmental monitoring data, and is less than 70 degrees Celsius, but greater than 50 degrees Celsius (such as threshold 1 is 50 degrees Celsius), that is, condition 1 is met. Then, as shown in Table 1 above, the smart door lock can re-determine that the current security level is in danger mode. Based on this, the smart door lock can instruct the release of the lock tongue to confirm the closing of the door lock. However, the second electronic device is allowed to unlock by logging into the account authorized unlocking mode.

[0256] Subsequently, if the smart door lock determines that the temperature is less than or equal to threshold 1 according to the environmental monitoring data, the security level can be re-determined as normal mode according to the content of example one shown in Table 1 above. It can be determined that the danger is removed, and the second electronic device is no longer allowed to unlock by logging into the account authorized unlocking mode.

[0257] In this way, the smart door lock can adaptively determine whether to allow the owner of the non-smart door lock to instruct unlocking according to the environmental monitoring data. Thus, while reducing the risk, the property safety of the owner of the smart door lock is ensured.

[0258] In some embodiments, after the smart door lock determines that it has been unlocked by the second electronic device logging into the account authorized mode or directly automatically unlocked, the smart door lock can send a prompt message to the electronic device of the corresponding smart door lock owner to prompt the owner that the smart door lock has been opened. Thus, the owner can confirm the situation inside the environment closed by the smart door lock in a timely manner.

[0259] For example, the smart door lock has been bound to the smart door lock owner's mobile phone. Then, after the smart door lock determines that it has been unlocked by the second electronic device logging into the account authorized mode or directly automatically unlocked, the smart door lock can send a prompt message to the mobile phone of the owner. For example, the prompt message is "10:00, the indoor environment is in danger mode, and someone has opened the smart home door lock after security authorization". For example, the prompt message is "2:00, the car is in emergency mode, and the smart car door lock has been automatically opened".

[0260] In some embodiments, when the smart door lock determines that the security level is in a mode other than the normal mode (such as danger mode, emergency mode), the smart door lock can also send a risk prompt message to the electronic device associated with the smart door lock owner (such as the owner's mobile phone) to prompt the owner that the environment inside the smart door lock is currently at risk. Accordingly, the owner can also remotely unlock according to the risk prompt message to further avoid danger.

[0261] In some embodiments, the smart door lock itself has security authorization capability, and can directly perform security authorization based on its own capability, without the need to confirm the identity of the user who needs to open the door lock through the second electronic device (such as a mobile phone).

[0262] For example, the smart door lock determines that the security level is a dangerous mode or an emergency mode, determines that there is a risk, and can allow the user to open the lock through a login account authorization manner. In this case, if it is detected that the user (non-owner) clicks the opening key or the opening control on the smart door lock, an authorization authentication interface 1001 as shown in the drawing can be displayed. The user can log in to an account that has been real-name authenticated, such as a Huawei account, on the interface. In this way, the login account authorization is directly completed on the smart door lock. The smart door lock sends the account name and password obtained to the second server, and the second server instructs the smart door lock to retract the lock tongue and open the door lock after determining that the account password is correct. Figure 10

[0263] In this way, it is ensured that the smart door lock can be opened in the case that the people nearby do not carry electronic devices, and the damage to the environment closed by the smart door lock due to the possible risk is further reduced.

[0264] In some embodiments, the first electronic device can also be an electronic device such as a mobile phone. At this time, the locking of the smart door lock in the above embodiments can be understood as a lock screen state, and the unlocking can be understood as unlocking the system. Then, taking the mobile phone as an example, the mobile phone can determine the security level by monitoring one or more of the environment data, the user body data, the received environment monitoring data, and the received user monitoring data sent by the wearable device through its own sensor. For example, the mobile phone determines that the security level is a dangerous mode or an emergency mode, and similarly allows a stranger to perform security authorization through other electronic devices or itself. The mobile phone can be unlocked after determining that the authorization is passed.

[0265] Optionally, to ensure the safety of the device information of the first electronic device, the user who is allowed to be unlocked through the security authorization manner can read limited information after unlocking, such as only the phonebook information.

[0266] In this way, in the case that the owner of the first electronic device is in danger, the people nearby can determine the phone information of the owner through the security authorization manner, and can contact the personnel related to the owner, such as the family members of the owner. This avoids the situation that the relevant personnel cannot be contacted and the relevant rescue measures cannot be taken due to the fact that the identity of the owner cannot be known in the case that the owner is not clear.

[0267] For example, Figure 11A A method for opening a lock is provided in the embodiments of the present application. As shown in Figure 11A The method includes the following steps.

[0268] ​S1101, the first electronic device acquires first data.

[0269] In some embodiments, the first electronic device can acquire the first data from one or more of a sensor in an environment in which the first electronic device is located, a sensor of the first electronic device, a third electronic device in the environment in which the first electronic device is located and configured with a sensor, a central control device in the environment in which the first electronic device is located. The first data can include one or more of environmental monitoring data, user monitoring data, user data, and security level data.

[0270] The environment in which the first electronic device is located, for example, is an environment enclosed by the first electronic device. For example, an environment in a room with a smart door lock, an environment in a vehicle with a smart door lock, etc.

[0271] The sensor included in the first electronic device, for example, includes a temperature sensor as shown in Table 1. Figure 2 The sensor in the environment in which the first electronic device is located, for example, includes a temperature sensor, a smoke sensor, a water immersion sensor, etc. The third electronic device, for example, includes a camera, a wearable device, etc. The central control device, for example, includes a smart home control panel, a vehicle central control, etc.

[0272] The environmental monitoring data, for example, includes temperature, smoke concentration, water immersion, etc. The user monitoring data, for example, includes heart rate, blood pressure, blood oxygen content, etc. The user data, for example, includes illness data. The user is a user associated with the first electronic device. The security level data, for example, includes the security levels described in the above embodiments, such as a safe mode, a dangerous mode, and an emergency mode.

[0273] S1102, the first electronic device determines, according to the first data, that there is a first risk in the environment in which the first electronic device is located.

[0274] In some embodiments, the first risk includes one or more of a fire risk, a water flooding risk, a child alone activity risk, and an old person illness risk.

[0275] In some embodiments, after the first electronic device acquires the first data, it can determine whether there is a risk of danger in the current environment.

[0276] For example, as shown in Example 1 in Table 1 above, the first electronic device determines, according to the first data, that the current temperature is greater than threshold 1, and determines that there is a first risk in the environment and the security level is a dangerous mode. Alternatively, as shown in Example 2 in Table 1 above, the first electronic device determines, according to the first data, that the current temperature is greater than threshold 2, and determines that there is a first risk in the environment and the security level is an emergency mode.

[0277] For example, the central control device can directly determine the security level of the environment where the first electronic device is located, and then send the security level data to the first electronic device. Then, the first electronic device can directly determine the security level according to the obtained security level data, without further dividing the security level. After obtaining the security level data, the first electronic device can determine that the environment where the first electronic device is located has the first risk.

[0278] S1103, the second electronic device sends a connection request to the first electronic device.

[0279] S1104, the first electronic device and the second electronic device establish a connection.

[0280] In some embodiments, in steps S1103 and S1104, after determining that the environment where the first electronic device is located has the first risk, the first electronic device can allow access of other electronic devices, so that the other electronic devices can unlock by logging in the account authorized manner.

[0281] For example, after determining that the environment where the first electronic device is located has the first risk, the first electronic device can start the security authorization unlocking and allow the second electronic device to access by the close discovery function. For example, the user uses a mobile phone (i.e., the second electronic device) to touch the NFC sensing area of the smart door lock (i.e., the first electronic device), and the mobile phone can establish a communication connection with the smart door lock.

[0282] S1105, the second electronic device displays a first interface, and in response to a first operation acting on the first interface, obtains login account information.

[0283] In some embodiments, after determining that the connection with the first electronic device has been established, the second electronic device can start to authenticate the user identity, such as authenticating the user identity by logging in the account authorized manner, so as to avoid any second electronic device manipulating the first electronic device and causing loss. The second electronic device can display an authorization authentication interface and receive the login account information input by the user, or the second electronic device can not require the user to input the login account information, but obtain the login account information saved locally by the second electronic device.

[0284] For example, as shown in interface 603 of FIG. 6C, the second electronic device displays an authorization authentication interface. The user can select to perform the authorization authentication through the Huawei account according to the account registered by the user, or select to perform the authorization authentication through the application A (such as Figure 6 Figure 6 ​​​In interface 604 shown in (d), the second electronic device can receive the account name and password input by the user, and determine that the user has completed the login operation of the Huawei account after detecting the operation of the user clicking the confirmation control 64.

[0285] Alternatively, the second electronic device displays an interface as shown in Figure 6 In the process of displaying interface 603 shown in (c), the second electronic device detects the operation of the user clicking the control 63, and confirms that the user indicates to complete the authorization authentication through the Huawei account. In addition, the second electronic device confirms that the local Huawei account has been logged in (i.e., the second electronic device locally saves the login account information of the Huawei account). Then, the second electronic device can display an interface as shown in Figure 7 interface 701 to complete the authorization authentication through the mobile phone number bound to the Huawei account. In interface 701, the second electronic device displays prompt information 71, and detects the operation of the user clicking the allow control 72 to determine that the user indicates to complete the authorization authentication through the mobile phone number bound to the Huawei account.

[0286] S1106. The second electronic device sends the login account information to the first server.

[0287] In some embodiments, after obtaining the login account information, the second electronic device can send the login account information to the corresponding server (such as the first server) to perform authorization authentication on the login account information. Correspondingly, the first server receives the login account information sent by the second electronic device.

[0288] Optionally, the first server is, for example, a Huawei server, a third-party application server, etc.

[0289] S1107. The first server determines whether to authorize according to the login account information.

[0290] In some embodiments, the login account of the second electronic device has been authorized, including that the login account of the second electronic device is bound to the real identity information of the user. The real identity information of the user includes, for example, identity card information (such as name, ID number, residence, etc.), face information, real name of the user, etc.

[0291] In some embodiments, after obtaining the login account information, the first server determines whether the corresponding login account has been authenticated, whether the account password is correct, etc.

[0292] For example, the first server determines that the obtained password is the same as the preset password corresponding to the account name of the login account, and then the first server can consider that the account password is correct, and determine that the authentication is passed. After the first server determines that the login account authentication is passed, the first server can determine the unlocking authorization.

[0293] For example, the first server determines, according to the login account information, that the obtained password is different from the preset password corresponding to the account name of the login account, and determines that the account password is incorrect, and that the login account authentication fails. After determining that the login account authentication fails, the first server determines that the unlocking authorization fails, and sends a signal that the unlocking authorization fails to the second electronic device. Further, the second electronic device can further collect the login account information input by the user and send the login account information to the first server to determine the newly obtained login account information, so as to avoid unlocking authorization failure caused by input error.

[0294] S1108a, the first server sends a fourth signal to the second electronic device after determining the unlocking authorization.

[0295] In some embodiments, after determining the unlocking authorization, the first server can determine corresponding authorization confirmation information such as a key or a check code, and generate a fourth signal carrying the authorization confirmation information. The authorization confirmation information is information determined by the first server according to a preconfigured rule corresponding to the secure unlocking authorization. It should be understood that the first electronic device is also preconfigured with the rule corresponding to the secure unlocking authorization, so that the first electronic device can recognize the authorization confirmation information, and then the first electronic device can determine the authorization of the second electronic device according to the authorization confirmation information.

[0296] Then, the first server sends the fourth signal to the second electronic device. Correspondingly, the second electronic device receives the fourth signal sent by the first server.

[0297] S1109, the second electronic device obtains the unlocking authorization allowing the control of the first electronic device to unlock according to the fourth signal.

[0298] In some embodiments, after the second electronic device obtains the fourth signal, the second electronic device can determine the unlocking authorization of the first electronic device according to the fourth signal.

[0299] For example, the fourth signal is sent in the form of a message, and the identification bit used to indicate the unlocking authorization is included in the header of the message. The second electronic device determines whether to obtain the unlocking authorization of the first electronic device according to the value of the identification bit. For example, the identification bit takes the value 1, which indicates that the unlocking authorization allowing the control of the first electronic device to unlock is obtained; and the identification bit takes the value 0, which indicates that the unlocking authorization allowing the control of the first electronic device to unlock is not obtained.

[0300] For example, the second electronic device and the first server pre-store a transmission signal rule, and the transmission signal carries an identifier indicating an unlocking authorization condition. For example, the second electronic device determines, according to a first identifier in the fourth signal, that the unlocking authorization for controlling the first electronic device to unlock is obtained; or the first server determines, according to the login account information sent by the second electronic device, that the unlocking authorization of the second electronic device fails, and sends a fifth signal to the second electronic device. The second electronic device determines, according to a second identifier in the fifth signal, that the unlocking authorization for controlling the first electronic device to unlock is not obtained. The second identifier is different from the first identifier.

[0301] It should be noted that the implementation of the fourth signal is only an example, and the second electronic device can also determine the unlocking authorization condition of the login account by other pre-stored rules corresponding to the security authorization unlocking.

[0302] S1110, the second electronic device sends a first signal to the first electronic device.

[0303] In some embodiments, after determining that the login account is authorized, the second electronic device can generate a first signal carrying authorization confirmation information.

[0304] Then, the second electronic device sends the first signal to the first electronic device. Correspondingly, the first electronic device receives the first signal sent by the second electronic device.

[0305] In some embodiments, after determining that the unlocking authorization for controlling the first electronic device to unlock is obtained, the second electronic device can display an authorization prompt interface to prompt the user that the second electronic device has obtained the unlocking authorization of the first electronic device.

[0306] S1111, the first electronic device determines, according to the first signal, that the login account of the second electronic device is authorized.

[0307] In some embodiments, the first electronic device can obtain the authorization confirmation information carried in the first signal, parse the authorization confirmation information according to a preset rule, and then determine the authorization condition of the login account of the second electronic device. For example, the first electronic device obtains the key or the check code carried in the first signal, parses the key or the check code according to the pre-configured rule corresponding to the security authorization unlocking, and then determines that the login account of the second electronic device is authorized.

[0308] S1112, in the case that the first electronic device exists in a first risk environment and the login account of the second electronic device is authorized, the unlocking is confirmed.

[0309] In some embodiments, the first electronic device determines that the environment has the first risk in step S1102, and determines that the login account of the second electronic device connected thereto is authorized according to the first signal obtained in step S1111. Then, the first electronic device can determine to unlock.

[0310] In some embodiments, after the first electronic device recovers the bolt to unlock, the first electronic device can further send a signal to the second electronic device, which indicates that the first electronic device has been unlocked. Accordingly, after receiving the signal, the second electronic device can prompt the user that the first electronic device has been unlocked through voice, interface display, or the like, so as to facilitate the user to confirm the unlocking in time.

[0311] In this way, in the case that there is a risk in the environment closed by the first electronic device, the stranger can also complete the unlocking of the first electronic device by completing the authorization of the login account through the second electronic device carried by the stranger. Thus, the danger or property loss caused by the fact that the owner of the first electronic device is not nearby when the risk occurs can be avoided.

[0312] In addition, allowing the second electronic device to authorize the unlocking of the first electronic device through the login account can avoid the harm caused to the articles in the environment closed by the first electronic device due to the unlocking of the first electronic device by any second electronic device.

[0313] In some embodiments, the first electronic device can determine the authorization of the login account of the second electronic device through various implementation manners. For example, in implementation manner (I), the first electronic device can determine the authorization of the login account of the second electronic device according to the first signal sent by the second electronic device, as described in steps S1108a-S1111. For another example, in implementation manner (II), after determining the unlocking authorization of the second electronic device, the first server can send a second signal carrying the unlocking authorization to the second server for managing the first electronic device, the second server forwards the second signal to the first electronic device, and then the first electronic device determines the unlocking authorization of the second electronic device according to the second signal. For another example, in implementation manner (III), the first electronic device can determine the authorization of the login account of the second electronic device according to the first signal and the second signal in combination with implementation manner (I) and implementation manner (II).

[0314] The implementation manner (II) and the implementation manner (III) of the implementation manners of the first electronic device determining the authorization of the login account of the second electronic device are described as follows. It should be noted that the specific content of the implementation manner (I) can be referred to the content described in steps S1108a-S1111, which will not be described herein.

[0315] Implementation manner (II)

[0316] In this implementation, as shown in Figure 11B After the first server determines that the login account of the second electronic device is authorized (i.e., after step S1107), the first server can send a second signal to the second server for managing the first electronic device, and then the first electronic device determines the authorization of the login account of the second electronic device according to the second signal forwarded by the second server. The implementation (ii) includes the following steps S1108b-S1114.

[0317] S1108b, the first server sends a second signal to the second server after determining the unlocking authorization.

[0318] In some embodiments, in the above step S1104, the second electronic device can obtain the device ID of the first electronic device and the communication address of the second server for managing the smart door lock in the process of establishing a connection with the first electronic device. Therefore, in the above step S1106, the second electronic device can carry the device ID of the first electronic device and the communication address of the second server for managing the smart door lock in the login account information sent to the first server, and the first server can obtain the device ID of the first electronic device and the communication address of the second server for managing the smart door lock. Then, the first server can determine the second server according to the communication address of the second server after determining the unlocking authorization, and then send a second signal to the second server, which is used to indicate the unlocking authorization of the login account of the second electronic device. In the process of communicating with the second electronic device, the first server can obtain the device ID of the second electronic device, and then carry the device ID of the first electronic device and the device ID of the second electronic device in the second signal.

[0319] S1113, the second server forwards the second signal to the first electronic device.

[0320] In some embodiments, after receiving the second signal, the second server can determine the corresponding first electronic device according to the device ID of the first electronic device carried in the second signal. Then, the second server forwards the obtained second signal to the first electronic device, and carries the device ID of the second electronic device in the forwarded second signal. Alternatively, the second server can also generate a new signal for indicating the unlocking authorization of the login account of the second electronic device according to the second signal, and send the signal to the first electronic device.

[0321] S1114, the first electronic device determines that the login account of the second electronic device is authorized according to the second signal.

[0322] In some embodiments, the first electronic device may receive a second signal sent by the second server. Then, based on the second signal, the first electronic device may obtain the device ID of the second electronic device carried therein, and thereby determine the authorization status of the login account of the corresponding second electronic device, such as determining that the login account of the second electronic device has been authorized.

[0323] For example, the second signal is sent in the form of a message. The message header contains a flag bit indicating the unlocking authorization status. The first electronic device determines whether the login account of the second electronic device has been authorized to unlock based on the value of the flag bit. For example, a value of 1 indicates that the login account of the second electronic device has been authorized to unlock; a value of 0 indicates that the login account of the second electronic device has not been authorized to unlock.

[0324] For example, the first electronic device and the second server have pre-set transmission signal rules, and the transmission signals carry identifiers to indicate unlocking authorization status. For instance, the first electronic device can determine that the login account of the second electronic device is authorized to unlock based on a third identifier in the second signal; or, the first electronic device can determine that the login account of the second electronic device is not authorized to unlock based on a fourth identifier in the acquired signal. The third identifier is different from the fourth identifier.

[0325] It should be noted that the above-mentioned implementation method of the second signal is only an example. The first electronic device can also determine the unlocking authorization status of the login account of the second electronic device through other preset security authorization unlocking rules.

[0326] Implementation Method (3)

[0327] Among them, such as Figure 11B As shown, combining implementation methods (I) and (II) above, after the first server determines that the login account authentication of the second electronic device is successful and the unlocking authorization is granted (i.e., after step S1107), it can send an authorization signal to the second electronic device and an authorization signal to the second server. Then, the first electronic device can combine the authorization signal forwarded by the second electronic device (such as the first signal) and the authorization signal forwarded by the second server (such as the second signal) to determine that the second electronic device has obtained unlocking authorization. This avoids unlocking authorization failure due to signal transmission failure. It should be noted that the specific content of implementation method (III) can be referred to the relevant content of implementation methods (I) and (II) above, and will not be repeated here.

[0328] In some embodiments, after determining that there is a first risk in the environment in which the first electronic device is located based on first data, the first electronic device may also play an alarm audio through an audio module and / or flash an indicator light.

[0329] In this way, after confirming the first risk, the first electronic device can attract the attention of people around it through the above methods, so as to avoid the risk of more serious dangers arising because no one notices the danger in the environment closed by the first electronic device.

[0330] In some embodiments, after determining the first risk or confirming unlocking, the first electronic device may continue to monitor its surroundings and acquire corresponding second data, which includes the first data. Then, based on the second data, it can be determined whether the first risk still exists in the environment. For example, if the first electronic device determines, based on the second data, that the first risk no longer exists in its environment, it confirms locking.

[0331] In this way, the first electronic device can adaptively determine whether to allow unlocking by a device other than its owner, based on environmental monitoring data. This flexibly reduces risk while ensuring the property security of the smart lock owner.

[0332] In some scenarios, to further ensure the security of the enclosed environment through the first electronic device, the facial image of the user who unlocks the door using the second electronic device can be collected. This allows for a more accurate identification of the user, facilitating the subsequent tracing of the user's identity by the owner of the first electronic device.

[0333] Optional, based on Figure 11A The diagram shown illustrates the unlocking method. Figure 12 This is a schematic flowchart of another unlocking method provided in an embodiment of this application. Figure 12 As shown, before confirming unlocking, the first electronic device can also acquire the facial image of the user who instructed the second electronic device to unlock (that is, perform the following steps S1201 and S1202).

[0334] Understandably, in situations like Figure 11B In implementation method (ii) shown, the first electronic device can also acquire the facial image of the user who instructed the second electronic device to unlock before confirming unlocking (i.e., execute steps S1201 and S1202 below). Alternatively, in implementation method (iii) where the first electronic device determines the login account authorization status of the second electronic device through the first signal and the second signal, the first electronic device can also acquire the facial image of the user who instructed the second electronic device to unlock before confirming unlocking (i.e., execute steps S1201 and S1202 below). Further details are omitted here.

[0335] For example, such as Figure 12As shown, after step S1109 and before step S1110, i.e., after the second electronic device determines that the unlocking authorization is completed and before the second electronic device sends the first signal to the first electronic device, steps S1201 and S1202 can be performed. It should be noted that in the above implementation (two), the second electronic device can perform steps S1201 and S1202 after performing step S1105.

[0336] S1201, the second electronic device collects a user face image.

[0337] In some embodiments, the second electronic device can also collect a user face image in the process of logging in the account authorization, so as to facilitate the owner of the first electronic device to confirm the identity of the user who unlocks the lock in the future, and further ensure the safety of the items in the environment of the first electronic device.

[0338] For example, as shown in the interface 901, the second electronic device can display a face image collection interface to collect a user face image in the process of logging in the account authorization or after logging in the account authorization. Figure 9

[0339] S1202, the second electronic device sends the user face image to the second server, and / or the second electronic device sends the user face image to the first electronic device.

[0340] In some embodiments, after the second electronic device completes the collection of the user face image, the second electronic device can send the collected user face image to the second server and / or the first electronic device. The second server is a server corresponding to the first electronic device, such as a smart home server, which can be used to manage the first electronic device.

[0341] For example, the second electronic device has a smart home service function (such as installing a smart home application), and the user has registered an account of the smart home application, so that the second electronic device can establish a connection with a smart home server (the second server) and send the obtained user face image to the smart home server. The smart home server is also a server corresponding to the first electronic device, or a server for managing the first electronic device. Then, the first electronic device or other electronic devices of the owner of the first electronic device can request the smart home server to download the user face image, or the smart home server can directly send the user face image to the first electronic device or other electronic devices of the owner of the first electronic device. Thus, the owner of the first electronic device can determine the user who indicates to unlock according to the obtained user face image.

[0342] ​For example, after acquiring a user's facial image, the second electronic device can directly send the image to the first electronic device (if the second electronic device does not have smart home service capabilities). Optionally, after acquiring the user's facial image, the first electronic device can also upload it to a second server for backup. Similarly, the owner of the first electronic device can determine the user who requests the lock based on the acquired facial image.

[0343] In this way, by collecting the facial image of the user who instructs to unlock the door, traceability is further increased, ensuring the security of the closed environment of the first electronic device.

[0344] It should be noted that, in the above Figure 12 In the scenario shown, after the first server completes the authentication of the login account of the second electronic device (i.e., step S1107), it can send the login information of the login account to the second server. For example, the first server can obtain the communication address of the second server from the authentication request sent by the second electronic device, determine the second server based on the communication address, and send the login information of the login account to the second server. Alternatively, the second electronic device can also send the login information to the second server after confirming successful authentication (i.e., step S1109). Then, the second server can subsequently send login information according to the request of the owner of the second electronic device, making it easier for the owner to identify the user unlocking the device.

[0345] In some scenarios, after confirming that the login account has been authorized, the second electronic device can, according to the user's instructions, determine whether to instruct the first electronic device to unlock, thereby achieving more flexible unlocking.

[0346] Optional, based on Figure 12 The diagram shown illustrates the unlocking method. Figure 13 This is a schematic flowchart of another unlocking method provided in an embodiment of this application. Figure 13 As shown, after step S1111, steps S1301 and S1302 may also be included.

[0347] S1301, The second electronic device displays a second interface and detects a second operation performed on the second interface.

[0348] S1302, The second electronic device sends a third signal to the first electronic device.

[0349] In some embodiments, in steps S1301 and S1302, after confirming that the login account authorization is successful, the second electronic device may display an unlock confirmation interface. Then, based on the user's second operation on this interface, it confirms whether to instruct the first electronic device to unlock. If it confirms the instruction to unlock, a third signal instructing the unlock may be sent to the first electronic device.

[0350] For example, such as Figure 8 On interface 801, the second electronic device displays a prompt message to ask the user to confirm whether to instruct the first electronic device to unlock. After detecting the user's action of clicking the confirmation unlock control 81 (i.e., the second action), the second electronic device can send a third signal to the first electronic device.

[0351] Then, the corresponding first electronic device can receive the third signal, and in the above step S1112, the first electronic device can also confirm the unlocking based on the third signal.

[0352] In this way, by using a third signal to indicate unlocking, the user's flexibility in instructing the user to unlock is enhanced, avoiding the risks associated with direct unlocking. For example, if a fire or other danger occurs inside a room enclosed by a smart lock, direct unlocking without the user's preparation could result in losses.

[0353] It should be noted that, Figure 11B After the first electronic device determines the login account authorization status of the second electronic device through the second signal in the second implementation method two (i.e., steps S1108b-S1114), the first electronic device can also determine unlocking based on the third signal. That is, after step S1114, steps S1301 and S1302 can also be executed. This will not be elaborated further.

[0354] Optionally, the above Figure 11A , Figure 11B , Figure 12 and Figure 13 In addition, the first electronic device can also perform the steps and functions performed by the smart door lock in the above embodiments, and the second electronic device can also perform the steps and functions performed by the mobile phone in the above embodiments, thereby realizing the unlocking method provided in the above embodiments.

[0355] Optionally, the first server and the second server can be different servers, or they can be a single server or a server cluster that can perform the functions of the first server and the second server described above.

[0356] The above combination Figure 4- Figure 13 The unlocking method provided in the embodiments of this application is described in detail below. Figure 14 and Figure 15 This application describes in detail the application of the first electronic device and the second electronic device provided in the embodiments of this application in the unlocking method.

[0357] In one possible design, Figure 14 This is a schematic diagram of the structure of a first electronic device provided in an embodiment of this application. Figure 14As shown, the first electronic device 1400 may include a transceiver unit 1401 and a processing unit 1402. The first electronic device 1400 can be used to implement the functions of the first electronic device involved in the above method embodiments.

[0358] Optionally, the transceiver unit 1401 is used to support the first electronic device 1400 in performing... Figure 11A S1103, S1104, and S1110; and / or, for supporting the first electronic device 1400 to perform Figure 11B S1113; and / or, for supporting the first electronic device 1400 to perform Figure 12 S1202 in; and / or, for supporting the first electronic device 1400 to perform Figure 13 S1302 in the middle.

[0359] Optionally, the processing unit 1402 is used to support the first electronic device 1400 in performing operations. Figure 11A S1101, S1102, S1111, and S1112; and / or, for supporting the first electronic device 1400 to perform Figure 11B S1114 in the middle.

[0360] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the first electronic device 1400 are respectively to implement the corresponding process of the unlocking method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and will not be repeated here for the sake of brevity.

[0361] Optionally, Figure 14 The first electronic device 1400 shown may also include a storage unit ( Figure 14 (not shown in the image), this storage unit stores a program or instruction. When the transceiver unit 1401 and the processing unit 1402 execute the program or instruction, it causes... Figure 14 The first electronic device 1400 shown can perform the unlocking method described in the above method embodiments.

[0362] Figure 14 The technical effects of the first electronic device 1400 shown can be referred to the technical effects of the unlocking method described in the above method embodiments, and will not be repeated here.

[0363] In addition to being in the form of the first electronic device 1400, the technical solutions provided in this application may also be functional units or chips in the first electronic device, or devices used in conjunction with the first electronic device.

[0364] In one possible design,Figure 15 This is a schematic diagram of the structure of the second electronic device provided in an embodiment of this application. Figure 15 As shown, the second electronic device 1500 may include a display unit 1501, a transceiver unit 1502, and a processing unit 1503. The second electronic device 1500 can be used to implement the functions of the second electronic device involved in the above method embodiments.

[0365] Optionally, the display unit 1501 is used to support the display interface content of the second electronic device 1500; and / or, to support the second electronic device 1500 in performing... Figure 11A S1105 in; and / or, for supporting the second electronic device 1500 to perform Figure 13 S1301 in the middle.

[0366] Optionally, the transceiver unit 1502 is used to support the second electronic device 1500 in performing [operations]. Figure 11A S1103, S1104, S1106, S1108a, and S1110; and / or, for supporting the second electronic device 1500 in performing... Figure 11B S1108b; and / or, for supporting the second electronic device 1500 to perform Figure 13 S1302 in the middle.

[0367] Optionally, the processing unit 1503 is used to support the execution of the second electronic device 1500. Figure 11A S1105 and S1109 and / or, are used to support the second electronic device 1500 in performing Figure 12 S1201 in; and / or, for supporting the second electronic device 1500 to perform Figure 13 S1301 in the middle.

[0368] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the second electronic device 1500 are respectively to implement the corresponding process of the unlocking method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.

[0369] Optionally, Figure 15 The second electronic device 1500 shown may also include a storage unit ( Figure 15 (not shown in the image), this storage unit stores a program or instruction. When the display unit 1501, transceiver unit 1502, and processing unit 1503 execute the program or instruction, it causes... Figure 15 The second electronic device 1500 shown can perform the unlocking method described in the above method embodiments.

[0370] Figure 15 The technical effects of the second electronic device 1500 shown can refer to the technical effects of the unlocking method described in the above method embodiments, which will not be repeated here.

[0371] In addition to the form of the second electronic device 1500, the technical solutions provided in the present application can also be a functional unit or a chip in the second electronic device, or a device matched with the second electronic device.

[0372] The embodiments of the present application also provide a chip system, comprising: a processor, the processor is coupled with a memory, the memory is used to store programs or instructions, when the programs or instructions are executed by the processor, the chip system realizes the method in any one of the above method embodiments.

[0373] Optionally, the processor in the chip system can be one or more. The processor can be implemented by hardware or software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented by software, the processor can be a general-purpose processor, which realizes by reading software codes stored in the memory.

[0374] Optionally, the memory in the chip system can also be one or more. The memory can be integrated with the processor, or can be separately arranged from the processor, which is not limited in the embodiments of the present application. For example, the memory can be a non-transient processor, such as a read-only memory (ROM), which can be integrated on the same chip as the processor, or can be separately arranged on different chips. The embodiments of the present application do not make specific limitations on the type of memory and the arrangement of the memory and the processor.

[0375] For example, the chip system can be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD) or other integrated chips.

[0376] It should be understood that each step in the above method embodiments can be completed by integrated logic circuit of hardware in the processor or instructions in the form of software. The method steps disclosed in combination with the embodiments of the present application can be directly embodied as execution completed by a hardware processor, or a combination of hardware and software modules in the processor.

[0377] The embodiments of the present application further provide a computer readable storage medium, which stores a computer program. When the computer program is executed on a computer, the computer is caused to execute the above related steps to realize the unlocking method in the above embodiments.

[0378] The embodiments of the present application further provide a computer program product, which causes a computer to execute the above related steps to realize the unlocking method in the above embodiments when the computer program product is executed on the computer.

[0379] In addition, the embodiments of the present application further provide an apparatus. The apparatus can be specifically a component or a module. The apparatus can include one or more processors and memories connected thereto. The memories are used to store computer programs. When the computer programs are executed by the one or more processors, the apparatus executes the unlocking method in the above method embodiments.

[0380] The apparatus, the computer readable storage medium, the computer program product or the chip provided by the embodiments of the present application are used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved are referred to the beneficial effects in the corresponding methods provided above, which will not be described here.

[0381] The steps of methods or algorithms described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, a removable media, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium. In the alternative, the storage medium can be integral to the processor. The processor and the storage medium can reside in an ASIC.

[0382] Those skilled in the art can clearly understand the method provided by the above embodiments. For the convenience and brevity of description, only the above division of functional modules is taken as an example. In actual application, the above functions can be completed by different functional modules according to needs; that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

[0383] In several embodiments provided in the present application, it should be understood that the disclosed method can be implemented in other ways. The above-described device embodiments are only schematic. For example, the division of the modules or units is only a logical function division, and actual implementation can have another division manner; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interface, module or unit, which can be electrical, mechanical or other forms.

[0384] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist physically, or two or more units can be integrated into one unit. The integrated unit can be realized in the form of hardware or in the form of a software functional unit.

[0385] The computer readable storage medium includes, but is not limited to, any one of the following: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various media capable of storing program codes.

[0386] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed by the present application should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. An unlocking method characterized by, The method comprises: The first electronic device determines that the environment where the first electronic device is located has a first risk according to first data; wherein the first data comprises one or more of environmental monitoring data, user monitoring data, user data, and security level data; In the case where the environment where the first electronic device is located has the first risk, the first electronic device allows a second electronic device to establish a connection with the first electronic device; wherein the second electronic device is an electronic device that the first electronic device does not allow to establish a connection in the case where the environment where the first electronic device is located does not have the first risk; After the first electronic device establishes a connection with the second electronic device, the second electronic device sends login account information of the second electronic device to a first server; wherein the first server is a server for managing a login account corresponding to the login account information, and the login account information is bound with user real-name identity information; The second electronic device receives a fourth signal sent by the first server, the fourth signal being a signal sent by the first server after determining an unlocking authorization according to the login account information; The second electronic device obtains an unlocking authorization for allowing to control the first electronic device to unlock according to the fourth signal; The second electronic device sends a first signal to the first electronic device, the first signal being used for indicating that the login account of the second electronic device has been authorized; The first electronic device confirms unlocking according to the first signal.

2. The method of claim 1, wherein, Before the second electronic device sends a first signal to the first electronic device, the method further comprises: The second electronic device obtains a face image of a user who indicates unlocking through the second electronic device; The second electronic device sends the face image of the user to a second server and / or the first electronic device; wherein the second server is a server for managing the first electronic device.

3. The method of claim 1, wherein, The method further comprises: The first electronic device obtains second data, the second data comprising the first data; The first electronic device determines whether the environment where the first electronic device is located has the first risk according to the second data; After the first electronic device determines that the environment where the first electronic device is located does not have the first risk, the first electronic device confirms locking.

4. A method for unlocking, applied to a first electronic device, characterized in that, The method comprises: Obtaining first data, the first data comprising one or more of environmental monitoring data, user monitoring data, user data, and security level data; Determining that the environment where the first electronic device is located has a first risk according to the first data; Establishing a connection with a second electronic device in response to a connection request sent by the second electronic device; Determining that a login account of the second electronic device has been authorized; wherein the login account of the second electronic device having been authorized comprises that the login account of the second electronic device is bound with user real-name identity information; In a case where the first risk exists in the environment where the first electronic device is located and it is determined that the login account of the second electronic device is authorized, it is confirmed to unlock; wherein the second electronic device is an electronic device that the first electronic device does not allow to establish a connection in a case where the first risk does not exist in the environment where the first electronic device is located.

5. The method of claim 4, wherein, The first data includes: The first data sent by one or more of the following: a sensor in the environment where the first electronic device is located, a sensor of the first electronic device, a third electronic device in the environment where the first electronic device is located and configured with a sensor, and a central control device in the environment where the first electronic device is located.

6. The method according to claim 4 or 5, characterized in that, The determination that the login account of the second electronic device is authorized includes: Obtain the first signal sent by the second electronic device, wherein the first signal carries authorization confirmation information, and the authorization confirmation information is information sent by the first server to the second electronic device after determining that the login account of the second electronic device is authorized; According to the first signal, it is determined that the login account of the second electronic device is authorized; Or, Obtain the second signal sent by the first server forwarded by the second server; According to the second signal, it is determined that the login account of the second electronic device is authorized.

7. The method according to claim 4 or 5, characterized in that, Before the confirmation to unlock, the method further includes: Receiving a third signal sent by the second electronic device, wherein the third signal is used to instruct the first electronic device to unlock.

8. The method according to claim 4 or 5, characterized in that, Before the confirmation to unlock, the method further includes: Obtain the face image of the user who instructs to unlock through the second electronic device.

9. The method of claim 8, wherein, The method further includes: Send the face image to a second server, wherein the second server is a server for managing the first electronic device.

10. The method of claim 4 or 5, wherein, The first risk includes one or more of the following: fire risk, waterlogging risk, child activity risk, and old person illness risk.

11. The method of claim 4 or 5, wherein, After determining that the first risk exists in the environment where the first electronic device is located according to the first data, the method further includes: Play alarm audio through an audio module, and / or flash an indicator light.

12. The method of claim 4 or 5, wherein, The method further includes: Obtain second data, wherein the second data includes the first data; According to the second data, it is determined whether the first risk exists in the environment of the first electronic device; After determining that the first risk does not exist in the environment of the first electronic device, it is confirmed to lock.

13. An unlocking method applied to a second electronic device, comprising: The method includes: Send a connection request to the first electronic device and establish a connection with the first electronic device; Display a first interface; In response to a first operation acting on the first interface, obtain login account information, wherein the login account information is bound with user real identity information; According to the login account information, obtain an unlock authorization that allows to control the first electronic device to unlock; In a case where the first electronic device determines, according to first data, that an environment where the first electronic device is located has a first risk, the second electronic device sends a first signal to the first electronic device, the first signal being used to indicate that a login account of the second electronic device has been authorized, and the first signal being used for the first electronic device to confirm unlocking based on the first signal and the first risk, the first data including one or more of environment monitoring data, user monitoring data, user data, and security level data; and the second electronic device is an electronic device that is not allowed to establish a connection with the first electronic device in a case where the environment where the first electronic device is located does not have the first risk.

14. The method of claim 13, wherein, The obtaining, according to the login account information, of an unlocking authorization allowing control of unlocking of the first electronic device includes: sending the login account information to a first server; receiving a fourth signal sent by the first server, the fourth signal being a signal sent by the first server after determining an unlocking authorization according to the login account information; obtaining, according to the fourth signal, an unlocking authorization allowing control of unlocking of the first electronic device.

15. The method according to claim 13 or 14, characterized in that, Before the sending of the first signal to the first electronic device, the method further includes: collecting a user face image; and sending the user face image to a second server and / or the first electronic device, the second server being a server for managing the first electronic device.

16. The method according to claim 13 or 14, characterized in that, The method further includes: sending a third signal to the first electronic device, the third signal being used to instruct the first electronic device to unlock.

17. The method of claim 16, wherein, The sending of the third signal to the first electronic device specifically includes: displaying a second interface, and sending the third signal to the first electronic device in response to a second operation acting on the second interface.

18. An electronic device, comprising: The electronic device is a first electronic device, and the first electronic device includes a processor and a memory, the memory being coupled to the processor, and the memory being used to store computer readable instructions, the computer readable instructions being read by the processor from the memory, so that the first electronic device performs the method according to any one of claims 4-12.

19. An electronic device, comprising: The electronic device is a second electronic device, and the second electronic device includes a processor, a memory, and a display screen, the memory and the display screen being coupled to the processor, and the memory being used to store computer readable instructions, the computer readable instructions being read by the processor from the memory, so that the second electronic device performs the method according to any one of claims 13-17.

20. An unlocking system characterized by The unlocking system includes a first electronic device, a second electronic device, and a first server, the first electronic device is used to perform the method according to any one of claims 4-12, the second electronic device performs the method according to any one of claims 13-17, and the first server is used to authorize and confirm a login account of the second electronic device.

21. A computer-readable storage medium, characterized in that, The computer readable storage medium comprises a computer program, when the computer program is executed on an electronic device, causes the electronic device to perform the method of any one of claims 4-12; or, causes the electronic device to perform the method of any one of claims 13-17.

22. A computer program product, characterised in that, The computer program product, when executed on a computer, causes the computer to perform the method of any one of claims 4-12; or, causes the computer to perform the method of any one of claims 13-17.

23. A chip system, characterized by The chip system comprises at least one processor and at least one interface circuit, the at least one interface circuit is used to perform a transceiving function, and sends an instruction to the at least one processor, when the at least one processor executes the instruction, the at least one processor executes the method of any one of claims 4-12; or, the at least one processor executes the method of any one of claims 13-17.

Citation Information

Patent Citations

  • Video monitoring and Bluetooth door lock application system and method

    CN105554461A

  • Intelligent door unlocking method and system based on block chain technology

    CN110211263A