Bluetooth-based non-sensing unlocking method, terminal device, smart lock and storage medium

By using Bluetooth technology between the smart door lock and the terminal device, the smart door lock automatically unlocks after receiving the ultra-low power target message sent by the terminal device, solving the problem of the existing smart door lock unlocking process and realizing user-invisible unlocking and efficient unlocking.

CN115206003BActive Publication Date: 2025-02-25HUAWEI TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110314750.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-24
Publication Date
2025-02-25
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

The unlocking process of existing smart door locks has many steps and is less efficient. Users need to unlock them in the mobile phone interface, which is cumbersome.

Method used

By establishing a Bluetooth connection between the terminal device and the smart lock, the smart lock sends a BLE broadcast message. The terminal device receives and recognizes the smart lock, generates a target message and sends it to the smart lock with ultra-low power. After receiving the smart lock, it is unlocked according to the target message.

Benefits of technology

It realizes user-invisible unlocking, shortens the operation steps in the unlocking process, improves unlocking efficiency and user experience, and enhances the security of unlocking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115206003B_ABST
    Figure CN115206003B_ABST
Patent Text Reader

Abstract

The embodiments of the present application are applicable to the field of communication technology, and provide a Bluetooth-based senseless unlocking method, terminal device, smart lock and storage medium. The terminal device and the smart lock can communicate via Bluetooth. The smart lock sends a BLE broadcast message, and the terminal device receives the BLE broadcast message to identify the smart lock; the terminal device generates a target message for indicating that the smart lock is unlocked, and uses a first transmission power to send the target message to the smart lock, the first transmission power is less than or equal to a first threshold, and the first threshold includes ‑50dBm; the smart lock receives the target message and unlocks according to the target message. Among them, the first transmission power value is very small, and the signal transmission distance is limited, usually tens of centimeters. When the distance between the smart lock and the terminal device is within the transmission range of the first transmission power, the target message sent by the terminal device is received. By sending the target message at low power by the terminal device, the user's senseless unlocking is achieved, which improves the user's unlocking experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a Bluetooth-based contactless unlocking method, terminal equipment, smart lock and storage medium. Background Art

[0002] With the development and application of Bluetooth (BT) technology, there are more and more Bluetooth-based products, including smart locks based on Bluetooth unlocking, such as smart door locks.

[0003] The process of users opening a smart door lock is usually as follows: the user clicks to run the door lock application installed on the mobile phone. After the mobile phone establishes a Bluetooth connection with the smart door lock, the door lock application displays the unlocking interface. The user clicks the unlock button in the unlocking interface to unlock the smart door lock.

[0004] The above process has many operation steps and the unlocking efficiency is low. Summary of the invention

[0005] The embodiments of the present application provide a Bluetooth-based senseless unlocking method, terminal device, smart lock and storage medium, which realizes senseless unlocking for users and improves the user's unlocking experience.

[0006] In the first aspect, a Bluetooth-based contactless unlocking method is provided, which is applied to a system consisting of a terminal device and a smart lock, and the method includes: the smart lock sends a BLE broadcast message, the terminal device receives the BLE broadcast message, and identifies the smart lock; the terminal device generates a target message for indicating that the smart lock is unlocked, and uses a first transmission power to send the target message to the smart lock, the first transmission power is less than or equal to a first threshold, and the first threshold includes -50dBm; the smart lock receives the target message and unlocks according to the target message.

[0007] In the Bluetooth-based senseless unlocking method provided by the first aspect, the value of the first transmission power (ultra-low power in the embodiment of the present application) is very small, and the signal transmission distance is limited, usually tens of centimeters. The ultra-low power is less than or equal to the first threshold, and the first threshold includes -50dBm. For example, the first threshold can be below -50dBm~-60dBm. The terminal device uses ultra-low power to send the target message to the smart lock, which shortens the transmission distance of the terminal device to send the target message, and provides support for senseless unlocking based on Bluetooth. Correspondingly, when the distance between the smart lock and the terminal device is within the transmission range of the ultra-low power, the target message sent by the terminal device is received and unlocked, which improves the security of user senseless unlocking. In this way, the user does not need to perform the unlocking operation in the terminal device interface, which realizes user senseless unlocking, improves the unlocking efficiency, and enhances the user experience.

[0008] In a possible implementation, before the terminal device generates the target message, the smart lock also includes: sending encrypted information. Accordingly, the terminal device generates the target message, including: the terminal device generates the target message according to the encrypted information. The smart lock is unlocked according to the target message, including: the smart lock is unlocked according to the encrypted information and the target message.

[0009] In this implementation, the encrypted information is used to verify the security of the target message. On the mobile phone side, the target message is generated based on the encrypted information, which improves the security of the target message. On the door lock side, the received target message is verified for security based on the encrypted information, and unlocking is performed only when the verification is passed, which improves the security of unlocking the door lock.

[0010] In a possible implementation, before the terminal device uses the first transmission power to send the target message to the smart lock, the terminal device also includes: determining whether the positions of the terminal device and the smart lock meet a preset condition. Accordingly, the terminal device uses the first transmission power to send the target message to the smart lock, including: if the positions of the terminal device and the smart lock meet the preset condition, the terminal device uses the first transmission power to send the target message to the smart lock.

[0011] In this implementation, when the positions of the terminal device and the smart lock meet preset conditions, the terminal device sends a target message, saving power consumption of the mobile phone.

[0012] In a possible implementation, before the terminal device generates the target message, the smart lock also includes: the smart lock sends the capability information of the smart lock; the capability information is used to indicate whether the smart lock supports non-contact unlocking. Accordingly, the terminal device generates the target message, including: if the capability information of the smart lock indicates that the smart lock supports non-contact unlocking, the terminal device generates the target message.

[0013] In this implementation, when the capability information of the smart lock indicates that the smart lock supports contactless unlocking, the terminal device generates a target message, saving power consumption of the mobile phone.

[0014] In a possible implementation, the method further includes: the smart lock sends a response message to the terminal device, and the response message is used to indicate whether the smart lock is unlocked successfully.

[0015] In this implementation, after the smart lock is unlocked, it sends a response message to the terminal device to notify the terminal device that it has been unlocked, so that the unlocking process is complete, avoiding the continuation of the unlocking process, and saving power consumption of the mobile phone and the door lock.

[0016] On the second aspect, a Bluetooth-based contactless unlocking method is provided, which is applied to a terminal device. The method includes: receiving a BLE broadcast message sent by a smart lock to identify the smart lock; generating a target message, which is used to indicate that the smart lock is unlocked; and sending the target message to the smart lock using a first transmission power, wherein the first transmission power is less than or equal to a first threshold, and the first threshold includes -50dBm.

[0017] In a possible implementation, before generating the target message, the method further includes: receiving encrypted information sent by the smart lock. Accordingly, generating the target message includes: generating the target message according to the encrypted information.

[0018] In one possible implementation, the encrypted information includes a random number; generating a target message based on the encrypted information includes: encrypting the random number according to a preset encryption and decryption algorithm to generate an encrypted random number; generating a target message, the target message including the encrypted random number and an unlocking instruction.

[0019] In this implementation, the security of the target message is verified by using random numbers and a preset encryption and decryption algorithm, thereby improving the security of the target message and the security of unlocking the door lock.

[0020] In one possible implementation, the encrypted information includes a public key in an asymmetric key pair; generating a target message based on the encrypted information includes: encrypting an unlocking instruction using the public key to generate an encrypted unlocking instruction; generating a target message, the target message including the encrypted unlocking instruction.

[0021] In this implementation, the security of the target message is verified by an asymmetric key, thereby improving the security of the target message and the security of door lock unlocking.

[0022] In one possible implementation, the encrypted information is carried in the BLE broadcast message sent by the smart lock.

[0023] In this implementation, the mobile phone sends encrypted information by sending BLE broadcast messages. There is no need to establish a BLE connection between the mobile phone and the door lock, saving the message process.

[0024] In a possible implementation, before using the first transmission power to send the target message to the smart lock, the method further includes: determining whether the positions of the terminal device and the smart lock meet a preset condition. Accordingly, using the first transmission power to send the target message to the smart lock includes: if the positions of the terminal device and the smart lock meet the preset condition, using the first transmission power to send the target message to the smart lock.

[0025] In one possible implementation, determining whether the positions of the terminal device and the smart lock meet preset conditions includes: receiving a ranging broadcast message sent by the smart lock; and determining whether the signal strength of the ranging broadcast message meets preset conditions.

[0026] In this implementation, the signal strength of the ranging broadcast message is inversely proportional to the distance between the mobile phone and the door lock. The closer the distance between the mobile phone and the door lock, the greater the signal strength of the ranging broadcast message received by the mobile phone. The mobile phone determines whether to send the target message based on whether the signal strength of the ranging broadcast message meets the preset conditions, saving power consumption of the mobile phone.

[0027] In one possible implementation, the smart lock includes at least one antenna, and the ranging broadcast message is sent by the smart lock through any one of the antennas; determining whether the signal strength of the ranging broadcast message meets a preset condition includes: determining whether the signal strength of the ranging broadcast message is greater than a preset threshold.

[0028] In this implementation, if the mobile phone determines that the signal strength of the ranging broadcast message is greater than a preset threshold, it means that the distance between the mobile phone and the door lock is close, and the mobile phone sends a target message to the door lock, saving power consumption of the mobile phone.

[0029] In one possible implementation, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door and the second antenna is located on the inside of the door. The ranging broadcast message includes a first ranging broadcast message and a second ranging broadcast message. The first ranging broadcast message is sent by the smart lock through the first antenna and includes first identification information. The first identification information is used to indicate that the first antenna is located outside the door. The second ranging broadcast message is sent by the smart lock through the second antenna and includes second identification information. The second identification information is used to indicate that the second antenna is located inside the door. Determining whether the signal strength of the ranging broadcast message meets a preset condition includes: determining whether the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message.

[0030] In this implementation, there are antennas on both the inside and outside of the door. By comparing the signal strength of the first ranging broadcast message corresponding to the antenna outside the door with the signal strength of the second ranging broadcast message corresponding to the antenna inside the door, it can be determined whether the mobile phone is inside or outside the door. When the mobile phone is outside the door, the mobile phone sends the target message to the door lock, saving power consumption of the mobile phone.

[0031] In one possible implementation, using a first transmission power to send a target message to a smart lock includes: using the first transmission power to continuously send the target message to the smart lock until a preset sending duration or a preset number of sending times is reached.

[0032] In this implementation, the target message is sent repeatedly through the mobile phone, which improves the success rate of the door lock receiving the target message and ensures that the door lock can be unlocked. By setting a preset sending time or a preset number of sending times, the mobile phone is prevented from continuously sending the target message, which saves energy consumption and improves the unlocking security.

[0033] In a possible implementation, the target message is a BLE broadcast message.

[0034] In this implementation, the mobile phone sends the target message by sending a BLE broadcast message. There is no need to establish a BLE connection between the mobile phone and the door lock, which saves the message process.

[0035] In a possible implementation, before generating the target message, the method further includes: receiving capability information of the smart lock sent by the smart lock. Accordingly, generating the target message includes: if the capability information of the smart lock indicates that the smart lock supports non-sensing unlocking, generating the target message.

[0036] In one possible implementation, the method further includes: receiving a response message sent by the smart lock, where the response message is used to indicate whether the smart lock is unlocked successfully.

[0037] In one possible implementation, after identifying the smart lock, the method also includes: establishing a BLE connection with the smart lock.

[0038] On the third aspect, a Bluetooth-based contactless unlocking method is provided, which is applied to smart locks, and the method includes: sending a BLE broadcast message; sending encrypted information; receiving a target message sent by a terminal device, the target message is used to indicate that the smart lock is unlocked; unlocking according to the encrypted information and the target message.

[0039] In one possible implementation, the encrypted information includes a random number, the target message includes the encrypted random number and an unlocking instruction, the encrypted random number is generated by the terminal device by encrypting the random number according to a preset encryption and decryption algorithm; unlocking according to the encrypted information and the target message includes: decrypting the encrypted random number according to the preset encryption and decryption algorithm to obtain a decrypted random number; if the decrypted random number is the same as the random number, unlocking according to the unlocking instruction.

[0040] In one possible implementation, the encrypted information includes a public key in an asymmetric key pair, and the target message includes an encrypted unlocking instruction, which is generated by the terminal device encrypting the unlocking instruction according to the public key; unlocking according to the encrypted information and the target message includes: decrypting the encrypted unlocking instruction according to the private key in the asymmetric key pair to obtain the unlocking instruction; and unlocking according to the unlocking instruction.

[0041] In one possible implementation, the encrypted information is carried in the BLE broadcast message.

[0042] In a possible implementation manner, before receiving the target message sent by the terminal device, the method further includes: sending a ranging broadcast message.

[0043] In one possible implementation, the smart lock includes N antennas, N is greater than or equal to 1, and sends a ranging broadcast message, including: sending a ranging broadcast message through at least one of the N antennas.

[0044] In one possible implementation, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door and the second antenna is located on the inside of the door; sending a ranging broadcast message includes: sending a first ranging broadcast message through the first antenna using a target power, and sending a second ranging broadcast message through the second antenna using a target power; the first ranging broadcast message includes first identification information indicating that the first antenna is located outside the door, and the second ranging broadcast message includes second identification information indicating that the second antenna is located inside the door.

[0045] In a possible implementation, the target message is a BLE broadcast message sent by the terminal device.

[0046] In a possible implementation, before receiving the target message sent by the terminal device, it also includes: sending capability information of the smart lock; the capability information is used to indicate whether the smart lock supports contactless unlocking.

[0047] In one possible implementation, the method further includes: sending a response message to the terminal device, where the response message is used to indicate whether the smart lock is unlocked successfully.

[0048] In a possible implementation, before receiving the target message sent by the terminal device, it also includes: establishing a BLE connection with the terminal device.

[0049] In the fourth aspect, a terminal device is provided, including: a receiving module for receiving a BLE broadcast message sent by a smart lock and identifying the smart lock; a processing module for generating a target message, the target message is used to indicate that the smart lock is unlocked; a sending module for sending a target message to the smart lock using a first transmission power, the first transmission power is less than or equal to a first threshold, and the first threshold includes -50dBm.

[0050] In a possible implementation, the receiving module is also used to receive encrypted information sent by the smart lock; the processing module is specifically used to generate a target message based on the encrypted information.

[0051] In a possible implementation, the encrypted information includes a random number; the processing module is specifically used to: encrypt the random number according to a preset encryption and decryption algorithm to generate an encrypted random number; generate a target message; the target message includes the encrypted random number and an unlocking instruction.

[0052] In a possible implementation, the encrypted information includes a public key in an asymmetric key pair; the processing module is specifically used to: encrypt an unlocking instruction using the public key to generate an encrypted unlocking instruction; generate a target message; the target message includes the encrypted unlocking instruction.

[0053] In one possible implementation, the encrypted information is carried in the BLE broadcast message sent by the smart lock.

[0054] In one possible implementation, the processing module is also used to: determine whether the positions of the terminal device and the smart lock meet the preset conditions; if the positions of the terminal device and the smart lock meet the preset conditions, control the sending module to use the first transmission power to send the target message to the smart lock.

[0055] In one possible implementation, the receiving module is also used to receive the ranging broadcast message sent by the smart lock; the processing module is specifically used to determine whether the signal strength of the ranging broadcast message meets the preset conditions.

[0056] In one possible implementation, the smart lock includes at least one antenna, and the ranging broadcast message is sent by the smart lock through any one of the antennas; the processing module is specifically used to determine whether the signal strength of the ranging broadcast message is greater than a preset threshold.

[0057] In one possible implementation, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door and the second antenna is located on the inside of the door. The ranging broadcast message includes a first ranging broadcast message and a second ranging broadcast message. The first ranging broadcast message is sent by the smart lock through the first antenna and includes first identification information. The first identification information is used to indicate that the first antenna is located outside the door. The second ranging broadcast message is sent by the smart lock through the second antenna and includes second identification information. The second identification information is used to indicate that the second antenna is located inside the door. The processing module is specifically used to determine whether the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message.

[0058] In one possible implementation, the sending module is specifically used to: use the first transmission power to continuously send the target message to the smart lock until a preset sending time duration or a preset number of sending times is reached.

[0059] In a possible implementation, the target message is a BLE broadcast message.

[0060] In one possible implementation, the receiving module is also used to receive capability information of the smart lock sent by the smart lock; the processing module is specifically used to generate a target message if the capability information of the smart lock indicates that the smart lock supports contactless unlocking.

[0061] In one possible implementation, the receiving module is also used to receive a response message sent by the smart lock, and the response message is used to indicate whether the smart lock is unlocked successfully.

[0062] In one possible implementation, the processing module is also used to establish a BLE connection with the smart lock.

[0063] In the fifth aspect, a smart lock is provided, including: a sending module for sending BLE broadcast messages; the sending module is also used to send encrypted information; a receiving module for receiving a target message sent by a terminal device, the target message is used to indicate that the smart lock is unlocked; a processing module is used to unlock according to the encrypted information and the target message.

[0064] In one possible implementation, the encrypted information includes a random number, the target message includes an encrypted random number and an unlocking instruction, and the encrypted random number is generated by the terminal device by encrypting the random number according to a preset encryption and decryption algorithm; the processing module is specifically used to: decrypt the encrypted random number according to the preset encryption and decryption algorithm to obtain a decrypted random number; if the decrypted random number is the same as the random number, unlock it according to the unlocking instruction.

[0065] In one possible implementation, the encrypted information includes a public key in an asymmetric key pair, and the target message includes an encrypted unlocking instruction, which is generated by the terminal device encrypting the unlocking instruction based on the public key pair; the processing module is specifically used to: decrypt the encrypted unlocking instruction based on the private key in the asymmetric key pair to obtain the unlocking instruction; and unlock according to the unlocking instruction.

[0066] In one possible implementation, the encrypted information is carried in the BLE broadcast message.

[0067] In a possible implementation manner, the sending module is further configured to send a ranging broadcast message.

[0068] In one possible implementation, the smart lock includes N antennas, N is greater than or equal to 1, and the sending module is specifically used to: send ranging broadcast messages through at least one of the N antennas.

[0069] In one possible implementation, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door and the second antenna is located on the inside of the door; the sending module is specifically used to: send a first ranging broadcast message through the first antenna using a target power, and send a second ranging broadcast message through the second antenna using a target power; the first ranging broadcast message includes first identification information indicating that the first antenna is located outside the door, and the second ranging broadcast message includes second identification information indicating that the second antenna is located inside the door.

[0070] In a possible implementation, the target message is a BLE broadcast message sent by the terminal device.

[0071] In one possible implementation, the sending module is also used to send capability information of the smart lock; the capability information is used to indicate whether the smart lock supports contactless unlocking.

[0072] In one possible implementation, the sending module is specifically used to: send a response message to the terminal device, where the response message is used to indicate whether the smart lock is unlocked successfully.

[0073] In a possible implementation, the processing module is further used to: establish a BLE connection with the terminal device.

[0074] In a sixth aspect, a terminal device is provided, the terminal device comprising a processor, the processor being used to couple with a memory, read instructions in the memory, and enable the terminal device to execute the method provided in the second aspect according to the instructions.

[0075] In the seventh aspect, a smart lock is provided, which includes a processor, the processor is used to couple with a memory, read instructions in the memory, and enable the smart lock to execute the method provided in the third aspect according to the instructions.

[0076] According to an eighth aspect, a program is provided, which, when executed by a processor, is used to execute the method provided in the second aspect or the third aspect.

[0077] In a ninth aspect, a computer-readable storage medium is provided, in which instructions are stored. When the instructions are executed on a computer or a processor, the method provided in the second aspect or the third aspect is implemented.

[0078] In the tenth aspect, a program product is provided, which includes a computer program stored in a readable storage medium, at least one processor of a device can read the computer program from the readable storage medium, and the at least one processor executes the computer program so that the device implements the method provided in the second aspect or the third aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0079] Figure 1 A system architecture diagram applicable to the embodiments of the present application;

[0080] Figure 2 A schematic diagram of the interface changes for adding smart devices in the APP;

[0081] Figure 3 A schematic diagram of the interface changes for adding door lock information in the APP;

[0082] Figure 4 A schematic diagram of a method for implementing Bluetooth unlocking;

[0083] Figure 5 A schematic diagram of the principle of the Bluetooth-based non-sensing unlocking method provided in an embodiment of the present application;

[0084] Figure 6 An interface diagram for setting a touchless unlocking function for a mobile phone and a door lock provided in an embodiment of the present application;

[0085] Figure 7 A schematic diagram of an application scenario applicable to the embodiment of the present application;

[0086] Figure 8 A schematic diagram of another application scenario applicable to the embodiments of the present application;

[0087] Fig. 9 A schematic diagram of another application scenario applicable to the embodiments of the present application;

[0088] Fig.10 A message interaction diagram of a Bluetooth-based senseless unlocking method provided in an embodiment of the present application;

[0089] Fig.11 Another message interaction diagram of the Bluetooth-based senseless unlocking method provided in an embodiment of the present application;

[0090] Fig.12 A schematic diagram of a data format for transmitting door lock capability information using the GATT protocol provided in an embodiment of the present application;

[0091] Fig.13 Another message interaction diagram of the Bluetooth-based senseless unlocking method provided in an embodiment of the present application;

[0092] Fig.14 Another message interaction diagram of the Bluetooth-based senseless unlocking method provided in an embodiment of the present application;

[0093] Fig.15 A schematic diagram of the position of a door lock antenna provided in an embodiment of the present application;

[0094] Fig.16 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application;

[0095] Fig.17 A schematic diagram of the structure of a smart lock provided in an embodiment of the present application;

[0096] Fig.18 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0097] The embodiments of the present application are described below with reference to the accompanying drawings.

[0098] The Bluetooth-based non-sensing unlocking method provided in the embodiment of the present application is applied to the scenario of unlocking a smart lock based on Bluetooth. For example, Figure 1 This is a system architecture diagram applicable to the embodiments of this application. Figure 1As shown, the system may include a terminal device 100 and a smart lock 200. The terminal device 100 and the smart lock 200 may communicate via Bluetooth. An application (APP) for managing the smart lock 200 is installed on the terminal device 100. The embodiment of the present application does not limit the name and developer of the application.

[0099] The embodiment of the present application does not limit the type of the terminal device 100. For example, some examples of terminal devices include: mobile phones, tablet computers, laptop computers, PDAs, wearable devices, etc.

[0100] The embodiment of the present application does not limit the type, shape, structure and specific components of the smart lock 200. For example, some examples of smart locks are: smart door locks, smart car locks, smart padlocks, etc. Figure 1 As shown, the smart lock 200 may include but is not limited to at least one of the following: a password disk 201 or a fingerprint touch screen 202. Optionally, the password disk 201 may be a physical key password disk or an electronic password disk.

[0101] For the sake of convenience, the embodiments of the present application are described by taking the smart lock as a door lock and the terminal device as a mobile phone as an example.

[0102] Optionally, the Bluetooth communication in the embodiment of the present application is Bluetooth low energy (BLE) communication.

[0103] First, an APP for managing smart locks installed on a mobile phone is illustrated.

[0104] Users can add smart devices in the APP. For example, Figure 2 A schematic diagram of the interface changes when adding a smart device in an APP. In this example, the APP can manage multiple types of smart devices, such as smart locks, gateways, smart home appliances, etc. Optionally, in other examples, different smart locks correspond to different APPs, for example, smart locks from different manufacturers are equipped with corresponding APPs. Figure 2 As shown in (a) of FIG. 1 , the desktop 11 of the mobile phone includes multiple APP icons. The user clicks on the icon 12 to open the smart life application. Accordingly, the mobile phone responds to the user's operation of clicking the icon 12, runs the smart life application, and displays the main interface 13 of the smart life application, such as Figure 2As shown in (b) in the figure. In the main interface 13 of the smart life application, the menu area 14 below includes a total of 4 menus: Home, Mall, Scenes and My. Optionally, after the mobile phone runs the smart life application, the system defaults to the currently displayed "Home" interface as the main interface 13. Currently, the smart life application has not added any smart devices, and the number of devices is 0. The user can click the control 15 in the upper right corner of the main interface 13 to add a smart device. Accordingly, the mobile phone responds to the user's operation of clicking the control 15 and displays a window 16 in the main interface 13, as shown in FIG. Figure 2 As shown in (c) in the figure. The window 16 includes four menus: adding devices, creating scenes, sharing devices, and connecting to third-party platforms. The user clicks the "add device" menu 17 to continue adding smart devices in the APP. Correspondingly, the mobile phone responds to the user's operation of clicking the "add device" menu 17 and displays a prompt window 18 in the main interface 13, as shown in FIG. Figure 2 As shown in (d) in the figure. The user proceeds to the next step by checking the prompt in the prompt window 18. For example, the prompt is "Smart Life requires Bluetooth to be turned on to discover and add Bluetooth devices. Do you want to turn it on?" The user clicks the "Turn on" button 19 in the prompt window 18 to continue adding smart devices in the APP. Correspondingly, the mobile phone responds to the user's operation of clicking the "Turn on" button 19 and displays the main interface 20 for adding devices, as shown in FIG. Figure 2 As shown in (e) in the figure. The main interface 20 for adding a device includes a prompt window 21, and the user proceeds to the next step by checking the prompt in the prompt window 21. For example, the prompt is "The automatic scanning function requires the mobile phone positioning service to be turned on", and the user clicks the "Go to turn on" button 22 in the prompt window 21 to turn on the mobile phone positioning service. Correspondingly, the mobile phone responds to the user's operation of clicking the "Go to turn on" button 22, turns on the mobile phone positioning service, and scans based on Bluetooth to see if there are any smart devices around the mobile phone. During the mobile phone scanning process, the interface changes can be seen in Figure 2 As shown in (f) in the figure, the main interface 20 for adding a device includes prompt information, for example, "Scanning, please make sure the smart device is connected to a power source and is near the phone". Optionally, the scanning area 24 in the pattern 23 in the main interface 20 can rotate around the center of the circle to present an animation effect, dynamically prompting the user that the phone is currently scanning and discovering smart devices. Optionally, the main interface 20 also provides other ways to add smart devices. For example, the user can click the "Manual Add" button 25 below to manually add a smart device; or the user can click the "Scan Code to Add" button 26 below to add a smart device by scanning the identification code of the smart device. When the mobile phone finishes scanning, the connectable smart devices will be displayed, as shown in the figure. Figure 2As shown in (g) in the figure, the main interface 20 includes the door lock 001 found by the mobile phone scanning, and the user can click the "connect" button 27 to establish a Bluetooth connection between the mobile phone and the door lock 001. Correspondingly, the mobile phone responds to the user's operation of clicking the "connect" button 27 and establishes a Bluetooth connection with the door lock 001, completing the addition of the smart device. Figure 2 As shown in (h) in FIG. 1 , the user can click the return control 28 in the main interface 20 of the added device to display the main interface of the smart life application. Accordingly, the mobile phone responds to the user's operation of clicking the return control 28 and displays the main interface 13 of the smart life application, such as Figure 2 At this time, the main interface 13 shows that there is one smart device added by the smart life application, specifically, door lock 001.

[0105] Optionally, the user can configure the relevant information of the smart device in the APP, and the specific content of the relevant information is not limited in the embodiment of the present application. Figure 3 This is a schematic diagram of the interface changes when adding door lock information in the APP. Figure 3 As shown in (a) in the figure, the mobile phone currently displays the main interface 31 of my device. This example does not limit the process of the user operating in the APP to jump to the display of the main interface 31. Assume that there are three smart devices added to the APP, including door lock 001, door lock 002 and home gateway 1, and these three devices are displayed in the main interface 31. The user can click on door lock 001 to view the relevant information of door lock 001. Correspondingly, the mobile phone responds to the user's operation of clicking on door lock 001 and displays the main interface 32 of door lock 001, as shown in FIG. Figure 3 As shown in (b) in the figure. The main interface 32 of the door lock 001 may include prompt information, such as "Put the mobile phone close to the door lock, light up the password panel and click the configuration button", which is used to configure the door lock information, such as the door lock name, the opening and closing of door lock related functions, etc. It may also include a fingerprint management button 33, a password management button 34 and an unlock record button 35. The user can click different buttons to perform different operations. For example, the user adds the user's fingerprint information by clicking the fingerprint management button 33, sets a password for the door lock 001 by clicking the password management button 34, or views the historical unlock records of the door lock 001 by clicking the unlock record button 35.

[0106] Need to explain, Figure 2 and Figure 3 It is only an example and does not limit the APP and related interfaces for managing smart locks.

[0107] When the user unlocks the door, one implementation method is that the user clicks the unlock button in the relevant interface of the APP to unlock the door. Figure 4 The schematic diagram is a principle diagram of a method of unlocking based on Bluetooth. Figure 4As shown, when the user wants to open the door lock 400, the user clicks on the icon 42 in the desktop 41 of the mobile phone 300 to run the door lock APP. Accordingly, the mobile phone 300 responds to the user's operation of clicking the icon 42, runs the door lock APP, establishes a Bluetooth connection with the door lock 400, and displays the interface 43. The interface 43 includes an unlock button 44. Among them, the embodiment of the present application does not limit the process of the user operating in the APP to jump to the display interface 43. The user clicks the unlock button 44, and accordingly, the mobile phone 300 responds to the user's operation of clicking the unlock button 44 and sends an unlock instruction to the door lock 400. The door lock 400 is unlocked according to the unlock instruction, and the user rotates the door handle to unlock.

[0108] It should be noted that the embodiment of the present application does not limit the interface where the unlock button is located, and the implementation methods in different APPs are different. Figure 3 As shown in (a) of FIG. 3 , the main interface 31 includes an unlock button for each door lock. For example, the unlock button for door lock 001 is button 36 , and the user can click button 36 to unlock door lock 001 .

[0109] It can be seen that in the above implementation, unlocking requires user participation.

[0110] The embodiment of the present application provides a Bluetooth-based non-sensing unlocking method. When the terminal device communicates with the door lock via Bluetooth, there are two transmission powers, which can be called normal power and ultra-low power. Compared with normal power, the value of ultra-low power is very small, and the signal transmission distance is limited, usually tens of centimeters. The terminal device uses ultra-low power to send unlocking instructions to the door lock, and uses normal power to send other data to the door lock. For example, Figure 5 The schematic diagram of the principle of the Bluetooth-based non-sensing unlocking method provided in the embodiment of the present application. Figure 5 As shown, the user carries a mobile phone 300 with him, and the range in which the mobile phone 300 uses normal power for Bluetooth communication is marked as range 51, and the range in which the mobile phone 300 uses ultra-low power for Bluetooth communication is marked as range 52, and range 51 is larger than range 52. When the mobile phone 300 and the door lock 400 are within range 51, the mobile phone 300 and the door lock 400 can transmit other data. When the distance between the mobile phone 300 and the door lock 400 is small enough, within range 52, the door lock 400 can receive the unlocking instruction sent by the mobile phone 300. By setting ultra-low power, the mobile phone shortens the transmission distance of the unlocking instruction sent by the mobile phone, thereby providing support for senseless unlocking based on Bluetooth and improving the safety of senseless unlocking for users. In this way, the user does not need to perform the unlocking operation in the mobile phone interface. The mobile phone uses ultra-low power to send the unlocking instruction to the door lock. Accordingly, the door lock is safely unlocked according to the received unlocking instruction, realizing user senseless unlocking, improving unlocking efficiency, and enhancing user experience.

[0111] The concepts involved in the embodiments of the present application are described below.

[0112] 1. Normal power and ultra-low power

[0113] Normal power refers to the power used by the terminal device in the existing Bluetooth communication. Ultra-low power refers to the use of a small value of transmission power to send unlocking instructions to the door lock in order to ensure the safety of non-sensing unlocking. The technical principle can be found in Figure 5 .

[0114] Optionally, the mobile phone can use ultra-low power to send other information related to the unlocking instruction to the door lock, so that the door lock can further verify whether the received unlocking instruction is correct and complete, further improving the security of the senseless unlocking. The specific content of the other information is not limited in the embodiment of the present application.

[0115] It should be noted that the embodiment of the present application does not limit the value or value range of the ultra-low power. It can be understood that the smaller the value of the ultra-low power, the shorter the signal transmission distance, and the higher the security of the Bluetooth-based non-sensing unlocking. Optionally, the ultra-low power can be below -50dBm~-60dBm, so that the door lock and the terminal device can receive the unlocking command within a range of tens of centimeters, for example, the distance between the door lock and the terminal device is 30 cm to 50 cm or less.

[0116] It should be noted that the embodiments of the present application do not limit the names of normal power and ultra-low power. Optionally, ultra-low power is also called the first transmission power, and normal power is also called the second transmission power.

[0117] 2. The senseless unlocking function of the terminal device

[0118] Unlocking without feeling means that when the user needs to open the door lock, the user does not need to participate in the unlocking operation. For the user, the unlocking of the door lock is imperceptible, which can improve the user experience. For example, Figure 4 In the scenario shown, the user needs to click the unlock button to unlock, which is not a seamless unlock.

[0119] The senseless unlocking function of the terminal device means that the terminal device can use ultra-low power to send an unlocking instruction to the smart door lock. The embodiment of the present application does not limit the name of the senseless unlocking function.

[0120] Optionally, in one implementation, the terminal device supports the contactless unlocking function by default.

[0121] Optionally, in another implementation, the user can turn on or off the senseless unlocking function of the terminal device. The embodiment of the present application does not limit the user's setting method. For example, it can be set by voice, preset gestures, or operations in the relevant display interface.

[0122] 3. Door lock’s non-sensing unlocking function

[0123] The contactless unlocking function of a door lock refers to a function that can unlock the door without the user's participation in the unlocking operation.

[0124] Optionally, in one implementation, the door lock supports the contactless unlocking function by default.

[0125] Optionally, in another implementation, the user can turn on or off the senseless unlocking function of the door lock in the APP that manages the door lock. The embodiment of the present application does not limit the user's setting method. For example, it can be set by voice, preset gestures, or operations in the relevant display interface.

[0126] For example, Figure 6 This is an interface diagram for setting the touchless unlocking function of a mobile phone and a door lock provided in an embodiment of the present application. Figure 3 In (b), the user clicks on the control 37 to display more information about the door lock 001. Accordingly, the mobile phone responds to the user's operation of clicking on the control 37 and displays an interface 61, such as Figure 6 As shown in (a) in the figure. Interface 61 includes more information about the door lock 001, such as the device name, warranty information, device information, and version upgrade. Interface 61 also includes an unbinding device button 62, and the user can click button 62 to unbind the mobile phone from the door lock 001. Interface 61 also includes a switch control 63 for the senseless unlocking function, which is used to set the senseless unlocking function of the mobile phone and the door lock 001. Optionally, different display forms of the switch control 63 can indicate whether the senseless unlocking function is on or off. Currently, the senseless unlocking function of the mobile phone and the door lock 001 is off. The user can click on the switch control 63, and accordingly, the mobile phone responds to the user's click operation to turn on the senseless unlocking function of the mobile phone and the door lock 001, and the display form of the switch control 63 changes, as shown in FIG. Figure 6 As shown in (b) in .

[0127] Need to explain, Figure 6 This is only an example and does not limit the way to set the senseless unlocking function of the mobile phone and the door lock. Optionally, the senseless unlocking function of the mobile phone and the door lock can be set separately, or Figure 6 One-click setup as shown in .

[0128] The following is an illustrative example of an application scenario to which the embodiments of the present application are applicable, but the application scenario is not limited thereto.

[0129] Optionally, in one example, Figure 7 This is a schematic diagram of an application scenario applicable to the embodiment of the present application, showing the process in which the distance between the user's mobile phone and the door lock gradually decreases before entering the door. Figure 7As shown in (a), user A is carrying mobile phone A at position 0. The distance between user A and the door lock is too far, which exceeds the Bluetooth communication range of mobile phone A at normal power. Mobile phone A cannot communicate with the door lock via Bluetooth. Figure 7 As shown in (b), as user A moves toward the door lock, the distance between mobile phone A and the door lock decreases. When user A is at position 1, mobile phone A can use normal power to communicate with the door lock via Bluetooth, but mobile phone A cannot use ultra-low power to communicate with the door lock via Bluetooth. Among them, range 52 shows the range of ultra-low power Bluetooth communication of mobile phone A. At this time, if mobile phone A uses ultra-low power to send an unlock command to the door lock, the door lock will not receive the unlock command and cannot be unlocked. Figure 7 As shown in (c) in FIG, as user A continues to move toward the door lock, the distance between mobile phone A and the door lock continues to decrease. Figure 7 (c) and Figure 7 Similar to (b) in Figure 1, mobile phone A uses ultra-low power and cannot communicate with the door lock via Bluetooth. Figure 7 As shown in (d) in the figure, as user A continues to move towards the door lock, when user A is at position 3, mobile phone A can use normal power to communicate with the door lock through Bluetooth, or it can use ultra-low power to communicate with the door lock through Bluetooth. At this time, mobile phone A uses ultra-low power to send an unlock command to the door lock, and the door lock receives the unlock command and can unlock.

[0130] Alternatively, in another example, Figure 8 A schematic diagram of another application scenario applicable to an embodiment of the present application shows a scenario in which a user enters a door from outside and places a mobile phone near a door lock. Figure 8 (a) and Figure 7 The same as (d) in , will not be repeated here. Figure 8 As shown in (b), after entering the door, user A places mobile phone A near the door lock, and the door lock is within the range 52 of mobile phone A using ultra-low power for Bluetooth communication. Mobile phone A can use normal power for Bluetooth communication with the door lock, or use ultra-low power for Bluetooth communication with the door lock. Figure 8 As shown in (c) in the figure, if mobile phone A determines that it is currently inside the door and does not need to unlock the door, it will not use ultra-low power to send an unlocking command to the door lock, which saves the power consumption of mobile phone A and further improves the security of contactless unlocking.

[0131] Optionally, in yet another example, Fig. 9 FIG. 2 is another schematic diagram of an application scenario applicable to the embodiment of the present application, showing a scenario with a risk of relay attack. Fig. 9As shown, there are two attackers, identified as attacker 1 and attacker 2. The distance between user A and the door lock is far, and mobile phone A can use normal power to communicate with the door lock through Bluetooth, but cannot use ultra-low power to communicate with the door lock through Bluetooth. Attacker 1 carries a relay device near user A to intercept the information sent by mobile phone A to the door lock, and sends the intercepted information to mobile phone 2 carried by attacker 2. Attacker 2 carries mobile phone 2 near the door lock, and mobile phone 2 uses the intercepted information to communicate with the door lock, causing danger. In this scenario, since the range 52 of mobile phone A using ultra-low power for Bluetooth communication is small, such as tens of centimeters, and the distance between attacker 1 and user A is usually not less than tens of centimeters, the relay device cannot intercept the unlock command sent by mobile phone A, which solves the risk of the relay device intercepting the unlock command, improves the security of the door lock, and successfully defends against relay attacks.

[0132] The technical solution of the present application is described in detail below through specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0133] The terms "first", "second", "third", "fourth", etc. (if any) in the embodiments of the present application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.

[0134] Fig.10 A message interaction diagram of a Bluetooth-based non-sensing unlocking method provided in an embodiment of the present application. The execution subjects involved in this embodiment include a mobile phone and a door lock. Fig.10 As shown, the Bluetooth-based non-sensing unlocking method provided in this embodiment may include:

[0135] S1001. The door lock sends a BLE broadcast message.

[0136] S1002. The mobile phone performs BLE scanning.

[0137] Specifically, the mobile phone and the door lock need to have Bluetooth enabled. This embodiment does not limit the execution order of S1001 and S1002. The door lock can send BLE broadcast messages for a long time, and the mobile phone can perform BLE background scanning for a long time. If the mobile phone receives a BLE broadcast message sent by the door lock, the BLE broadcast message includes the identity information of the door lock, and the door lock can be identified based on the BLE broadcast message.

[0138] Among them, Bluetooth broadcast and scanning can refer to the Bluetooth standard protocol Core v5.2 Vol6 PartD 3 / 4 / 5, which will not be described in detail in this embodiment.

[0139] S1003. The mobile phone generates a target message, where the target message is used to instruct the door lock to unlock.

[0140] The target message includes the identity information of the mobile phone and the identity information of the door lock. This embodiment does not limit the implementation method of the identity information, for example, the identification information or address of the device.

[0141] Since the phone has previously added door locks, e.g. Figure 2 In the process shown, the mobile phone and the door lock establish a Bluetooth connection and perform the initial pairing authentication process. The mobile phone and the door lock store each other's information. Through the identity information of the mobile phone and the identity information of the door lock, the target message instructs the door lock to unlock. Correspondingly, the door lock can determine that the target message instructs it to unlock.

[0142] Optionally, the target message may include an unlocking instruction, and the unlocking instruction is used to instruct the door lock to unlock.

[0143] S1004. The mobile phone uses ultra-low power to send a target message to the door lock.

[0144] Among them, the ultra-low power can be referred to in the above description, which will not be repeated here. When the distance between the mobile phone and the door lock is far, the door lock cannot receive the target message. When the distance between the mobile phone and the door lock is close, the target message can be received.

[0145] Optionally, the mobile phone may continuously send the target message to the door lock using the first transmission power until a preset transmission duration or a preset number of transmissions is reached. This embodiment does not limit the value of the preset transmission duration or the preset number of transmissions.

[0146] By continuously sending the target message multiple times through the mobile phone, the success rate of the door lock receiving the target message is improved, ensuring that the door lock can be unlocked. By setting the preset sending time or preset sending times, the mobile phone is prevented from continuously sending the target message, saving energy consumption and improving unlocking security. For example, Figure 8 In the scenario shown in (a), the user is always outside the door. Since the number of times the mobile phone can send the target message is limited, the door lock avoids constantly receiving the target message and being unlocked, thereby improving the security of the door lock.

[0147] Optionally, in one implementation, the target message may be a BLE broadcast message. That is, the mobile phone may use ultra-low power to send a BLE broadcast message to the door lock, and the BLE broadcast message is used to indicate that the door lock is unlocked. Correspondingly, the door lock receives the BLE broadcast message through BLE scanning. In this implementation, there is no need to establish a BLE connection between the mobile phone and the door lock, saving the message process.

[0148] Optionally, in another implementation, after the mobile phone establishes a BLE connection with the door lock, the mobile phone sends a target message through the BLE connection.

[0149] S1005: The door lock is unlocked according to the target message.

[0150] For ease of understanding, S1003 to S1005 may be referred to as an unlocking phase.

[0151] It can be seen that in the Bluetooth-based non-sensing unlocking method provided in this embodiment, the mobile phone and the door lock perform BLE broadcasting and scanning according to the existing process to perform Bluetooth communication. After the mobile phone recognizes the door lock, it uses ultra-low power to send the target message, and the transmission distance of the target message is limited. When the distance between the mobile phone and the door lock is very far, for example, Figure 7 The scenes shown in (a), (b), (c) or Fig. 9 In the scenario shown, even if the mobile phone sends the target message, the door lock cannot receive it and will not unlock. When the distance between the mobile phone and the door lock is very close, for example, Figure 7 The scenario shown in (d) or Figure 8 In the scenario shown, the door lock can receive the target message and can be unlocked according to the target message. By setting the ultra-low power, the transmission distance of the target message is limited, ensuring the safety of door lock unlocking. The door lock executes unlocking based on whether the target message is received, avoiding the user's participation in the unlocking operation, realizing the user's senseless unlocking, and improving the user experience.

[0152] Optionally, the Bluetooth-based non-sensing unlocking method provided in this embodiment may further include:

[0153] S1006. The door lock sends a response message to the mobile phone, where the response message is used to indicate whether the door lock is unlocked successfully.

[0154] Correspondingly, the mobile phone receives the response message sent by the door lock.

[0155] If the response message indicates that the door lock is unlocked successfully, the mobile phone can stop sending the target message.

[0156] If the response message indicates that the door lock has failed to be unlocked, the mobile phone can optionally resend the target message to the door lock using ultra-low power. Optionally, the number of retransmissions can be set. The number of retransmissions is the maximum number of times the mobile phone continuously receives a response message indicating that the door lock has failed to be unlocked. This embodiment does not limit the number of retransmissions. Optionally, the mobile phone can refer to S1004 each time it resends the target message. Optionally, the mobile phone can output a prompt message to prompt the user that the door lock has failed to be unlocked, so that the user can re-trigger the sending of the target message, or choose other ways to unlock the door. For example, using Figure 4 The method of clicking the unlock button is shown. When the mobile phone outputs the prompt information, it can be output by voice or displayed in the relevant interface. This embodiment does not limit the specific content of the prompt information.

[0157] Optionally, the Bluetooth-based non-sensing unlocking method provided in this embodiment may further include:

[0158] If the mobile phone does not receive the response message sent by the door lock, the target message can be resent to the door lock using ultra-low power. Please refer to the relevant description in S1006, which will not be repeated here.

[0159] exist Fig.10 Based on the embodiment shown, Fig.11 Another message interaction diagram of the Bluetooth-based non-sensing unlocking method provided in the embodiment of the present application. The execution subjects involved in this embodiment include a mobile phone and a door lock.

[0160] like Fig.11 As shown, optionally, before the mobile phone uses ultra-low power to send the target message to the door lock in S1004, the following steps may also be included:

[0161] S1007. The mobile phone determines whether the positions of the mobile phone and the door lock meet preset conditions.

[0162] If it is determined that the positions of the mobile phone and the door lock meet the preset conditions, S1004 is executed. The unlocking stage includes S1003, S1007, S1004~S1005.

[0163] Specifically, since the distance at which the mobile phone can send the target message using ultra-low power is limited, the target message is sent only when the position of the mobile phone and the door lock meets the preset conditions, thus saving the power consumption of the mobile phone. Figure 7 The scenes shown in (a), (b), (c) or Fig. 9 In the scenario shown, the mobile phone is far away from the door lock and does not meet the preset conditions. The mobile phone may not send the target message. Figure 7 The scenario shown in (d) or Figure 8 In the scenario shown, the distance between the mobile phone and the door lock is close enough to send the target message. Figure 8 In the scenario shown in (c), when the user is inside the door and does not need to unlock it, the mobile phone does not need to send the target message, which not only saves the power consumption of the mobile phone but also improves the security of the door lock.

[0164] Among them, the information for determining the location of the mobile phone and the door lock is different, and the corresponding preset conditions may be different. The information for determining the location of the mobile phone and the door lock may include but is not limited to at least one of the following: the location information of the mobile phone, the location information of the door lock, or the signal strength of the signal sent by the door lock received by the mobile phone. The location information includes but is not limited to at least one of the following: global positioning system (GPS) location information, Beidou satellite navigation system location information, or location information that is integrated with base station information, WiFi signal characteristics, geomagnetic information, etc.

[0165] Optionally, before the mobile phone generates the target message in S1003, the following steps may also be included:

[0166] S1008. The door lock sends capability information of the door lock, where the capability information is used to indicate whether the door lock supports contactless unlocking.

[0167] Accordingly, the mobile phone receives the capability information of the door lock.

[0168] S1009. The mobile phone determines whether the door lock supports contactless unlocking based on the capability information of the door lock.

[0169] If the capability information of the door lock indicates that the door lock supports contactless unlocking, S1003 is executed to send a target message to the door lock using ultra-low power to achieve contactless unlocking for the user.

[0170] If the capability information of the door lock indicates that the door lock does not support sensorless unlocking, S1003 and subsequent steps are not executed. Optionally, the mobile phone can output a prompt message to prompt that the door lock does not support sensorless unlocking, so that the user can choose other ways to unlock. Figure 4 The method of clicking the unlock button is shown. When the mobile phone outputs the prompt information, it can be output by voice or displayed in the relevant interface. This embodiment does not limit the specific content of the prompt information.

[0171] Optionally, before the door lock sends the door lock capability information in S1008, the following may also be included:

[0172] S1010. The mobile phone sends a capability query request message to the door lock.

[0173] Correspondingly, the door lock receives the capability query request message sent by the mobile phone.

[0174] For ease of understanding, S1010, S1008~S1009 can be called the door lock capability identification stage.

[0175] Optionally, in one implementation, the capability information of the door lock can be carried in the BLE broadcast message sent by the door lock. Accordingly, the mobile phone receives the BLE broadcast message through BLE scanning to obtain the capability information of the door lock. In this implementation, there is no need to establish a BLE connection between the mobile phone and the door lock, saving the message process.

[0176] Optionally, in another implementation, after the door lock establishes a BLE connection with the mobile phone, the door lock sends the door lock capability information through the BLE connection.

[0177] Optionally, the door lock can transmit the door lock capability information according to the Generic Attribute Profile (GATT) protocol. GATT organizes the data to be sent through the attribute table. The GATT attribute table can include multiple attributes. The attribute contains a handle, a universally unique identifier (UUID) and a value. The handle is the index of the attribute in the GATT table, and the handle of each attribute in a device is unique. The UUID contains information about the data type in the attribute table, which is the key information to understand the meaning of each byte of the value in the attribute table. For example, Fig.12 A schematic diagram of a data format for transmitting door lock capability information using the GATT protocol provided in an embodiment of the present application. Fig.12 As shown in the figure, the GATT attribute table includes the device service capability attribute (UUID1) and other service attributes (UUID2). The device service capability attribute includes the sensorless unlocking feature. The types (Type) in the sensorless unlocking feature include: sensorless unlocking, ranging broadcast, geographic location verification and other capability values. Each type (Type) is identified by a different value (Value). For example, the value (Value) of sensorless unlocking is True, indicating that the door lock supports the sensorless unlocking function. Similarly, the door lock also supports the function of sending ranging broadcast and geographic location verification.

[0178] Optionally, the Bluetooth-based non-sensing unlocking method provided in this embodiment may further include, after the mobile phone performs BLE scanning in S1002:

[0179] S1011. Establish a BLE connection between the mobile phone and the door lock.

[0180] For BLE connection, please refer to the Bluetooth standard protocol Core v5.2 Vol6 PartD 3 / 4 / 5, which will not be described in detail in this embodiment.

[0181] exist Fig.10 or Fig.11 Based on the embodiment shown, in another embodiment of the present application, an implementation method of S1003 and S1005 in the unlocking stage is provided. In this embodiment, before the mobile phone generates the target message in S1003, it can also include:

[0182] The door lock sends encrypted information. Correspondingly, the mobile phone receives the encrypted information sent by the door lock.

[0183] Correspondingly, the mobile phone generating the target message in S1003 may include: the mobile phone generating the target message according to the encrypted information.

[0184] In S1005, the door lock is unlocked according to the target message, which may include: the door lock is unlocked according to the encrypted information and the target message.

[0185] The encrypted information is used to verify the security of the target message. On the mobile phone side, the target message is generated based on the encrypted information, which improves the security of the target message. On the door lock side, the received target message is verified based on the encrypted information, and unlocking is performed only when the verification is passed, which improves the security of unlocking the door lock.

[0186] Optionally, in order to further improve security, the door lock can update the encryption information. Optionally, the door lock can update the encryption information regularly, and this embodiment does not limit the update period. Optionally, each time a BLE connection is established between the mobile phone and the door lock, the door lock can be triggered to update the encryption information.

[0187] Optionally, in one implementation, the encrypted information is carried in a BLE broadcast message sent by the door lock. That is, the door lock sends a BLE broadcast message, and the BLE broadcast message includes the encrypted information. Correspondingly, the mobile phone receives the BLE broadcast message through BLE scanning to obtain the encrypted information. This embodiment does not limit other contents in the BLE broadcast message. Optionally, the BLE broadcast message may also include capability information of the door lock.

[0188] In this implementation, there is no need to establish a BLE connection between the mobile phone and the door lock, saving the message process.

[0189] Optionally, in another implementation, after the door lock establishes a BLE connection with the mobile phone, the door lock sends encrypted information to the mobile phone through the BLE connection.

[0190] Optionally, in one implementation, Fig.13 Another message interaction diagram of the Bluetooth-based non-sensing unlocking method provided in the embodiment of the present application. The target message is verified for security through random numbers and preset encryption and decryption algorithms, thereby improving the security of the target message and the security of door lock unlocking. The door lock can obtain random numbers. This embodiment does not limit the way the door lock obtains random numbers and the range of random numbers. Encrypted information includes random numbers. Fig.13 As shown, the unlocking phase may include:

[0191] S1301. The door lock sends a random number.

[0192] Correspondingly, the mobile phone receives the random number sent by the door lock.

[0193] S1302. The mobile phone encrypts the random number according to a preset encryption and decryption algorithm to generate an encrypted random number.

[0194] S1303. The mobile phone generates a target message, which includes an encrypted random number and an unlocking instruction.

[0195] S1304. The mobile phone uses ultra-low power to send a target message to the door lock.

[0196] If the door lock receives the target message, S1305~S1306 are executed.

[0197] S1305. The door lock decrypts the encrypted random number according to a preset encryption and decryption algorithm to obtain a decrypted random number.

[0198] S1306: If the decrypted random number is the same as the random number, the door lock is unlocked according to the unlocking instruction.

[0199] The present embodiment does not limit the preset encryption and decryption algorithm, for example, the Advanced Encryption Standard (AES) algorithm.

[0200] Optionally, in this implementation, the unlocking instruction in the target message may be encrypted using a preset encryption and decryption algorithm.

[0201] Optionally, in another implementation, Fig.14 This is another message interaction diagram of the Bluetooth-based non-sensing unlocking method provided in the embodiment of the present application. The security of the target message is verified by the key, which improves the security of the target message and the security of door lock unlocking. Fig.14 As shown, the unlocking phase may include:

[0202] S1401. The door lock obtains an asymmetric key pair.

[0203] The asymmetric key pair includes a public key and a private key, and the encrypted information includes the public key.

[0204] This embodiment does not limit the manner in which the door lock obtains the asymmetric key pair.

[0205] S1402: The door lock sends the public key in the asymmetric key pair.

[0206] Correspondingly, the mobile phone receives the public key sent by the door lock.

[0207] S1403. The mobile phone uses the public key to encrypt the unlock instruction and generate an encrypted unlock instruction.

[0208] S1404. The mobile phone generates a target message, which includes an encrypted unlocking instruction.

[0209] S1405. The mobile phone uses ultra-low power to send a target message to the door lock.

[0210] If the door lock receives the target message, S1406~S1407 are executed.

[0211] S1406. The door lock decrypts the encrypted unlocking instruction according to the private key in the asymmetric key pair to obtain the unlocking instruction.

[0212] S1407: The door lock is unlocked according to the unlocking instruction.

[0213] On the basis of the above embodiment, in another embodiment of the present application, an implementation method of S1007 in the unlocking stage is provided. In this embodiment, in S1007, the mobile phone determines whether the position of the mobile phone and the door lock meets the preset condition, which may include:

[0214] The door lock sends a distance measurement broadcast message. Correspondingly, the mobile phone receives the distance measurement broadcast message sent by the door lock.

[0215] The mobile phone determines whether the signal strength of the ranging broadcast message meets the preset conditions.

[0216] Generally, the farther the distance between the mobile phone and the door lock, the smaller the signal strength of the ranging broadcast message received by the mobile phone. On the contrary, the closer the distance between the mobile phone and the door lock, the greater the signal strength of the ranging broadcast message received by the mobile phone. Therefore, the signal strength of the ranging broadcast message received by the mobile phone can reflect the distance between the mobile phone and the door lock. The mobile phone determines whether to send the target message based on whether the signal strength of the ranging broadcast message meets the preset conditions, which saves the power consumption of the mobile phone.

[0217] Next, the scenarios are divided according to the number of antennas on the door lock and the location of the antennas.

[0218] Scenario 1: The door lock includes at least one antenna. After the door lock is installed on the door, all antennas are on the outside of the door.

[0219] Second scenario: The door lock includes at least one antenna. After the door lock is installed on the door, all antennas are on the inner side of the door.

[0220] Scenario 3: The door lock includes at least one antenna. After the door lock is installed on the door, part of the antenna is located on the outside of the door, and part of the antenna is located on the inside of the door. For the convenience of explanation, an antenna is used as an example, one inside the door and one outside the door. The antenna outside the door is called the first antenna, and the antenna inside the door is called the second antenna.

[0221] Optionally, in one implementation, it is applicable to the first scenario, the second scenario, and the third scenario.

[0222] The door lock sends a ranging broadcast message, which may include:

[0223] The door lock sends a ranging broadcast message through at least one of all antennas.

[0224] The mobile phone determines whether the signal strength of the ranging broadcast message meets the preset conditions, which may include:

[0225] For any ranging broadcast message received by the mobile phone, it is determined whether the signal strength of the ranging broadcast message is greater than a preset threshold.

[0226] If the mobile phone determines that the signal strength of the ranging broadcast message is greater than the preset threshold, it means that the distance between the mobile phone and the door lock is close, and S1004 can be executed, and the mobile phone uses ultra-low power to send the target message to the door lock. If the mobile phone determines that the signal strength of the ranging broadcast message is less than the preset threshold, it means that the distance between the mobile phone and the door lock is far, and S1004 and subsequent steps are not executed. Among them, when the signal strength of the ranging broadcast message is equal to the preset threshold, S1004 can be executed or S1004 can be not executed.

[0227] This embodiment does not limit the value of the preset threshold.

[0228] Optionally, in order to improve the accuracy of the judgment, if the mobile phone receives ranging broadcast messages sent by multiple antennas, it can determine whether to send the target message based on whether the signal strength of the multiple ranging broadcast messages is greater than a preset threshold. For example, when the number of ranging broadcast messages with signal strength greater than the preset threshold is greater than a certain number, the mobile phone uses ultra-low power to send the target message to the door lock. Alternatively, as long as there is a ranging broadcast message with a signal strength greater than the preset threshold, the mobile phone uses ultra-low power to send the target message to the door lock.

[0229] Optionally, in another implementation, it is applicable to the third scenario.

[0230] The door lock sends a ranging broadcast message, which may include:

[0231] The door lock uses the target power to send a first ranging broadcast message through the first antenna, and uses the target power to send a second ranging broadcast message through the second antenna. The first ranging broadcast message includes first identification information, and the first identification information is used to indicate that the first antenna is outside the door. The second ranging broadcast message includes second identification information, and the second identification information is used to indicate that the second antenna is inside the door.

[0232] The mobile phone determines whether the signal strength of the ranging broadcast message meets the preset conditions, which may include:

[0233] The mobile phone determines whether the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message.

[0234] This embodiment does not limit the value of the target power.

[0235] If the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message, it means that the mobile phone is outside the door, and S1004 can be executed, and the mobile phone uses ultra-low power to send the target message to the door lock. If the signal strength of the first ranging broadcast message is less than the signal strength of the second ranging broadcast message, it means that the mobile phone is inside the door, and S1004 and subsequent steps are not executed. Among them, when the signal strength of the first ranging broadcast message is equal to the signal strength of the second ranging broadcast message, S1004 can be executed or S1004 may not be executed.

[0236] Combine the following Fig.15 For illustration. Mobile phone A is outside the door, the signal strength of the first ranging broadcast message is marked as RSSI11, and the signal strength of the second ranging broadcast message is marked as RSSI21. The door lock uses the same power to send ranging broadcast messages through the first antenna and the second antenna. Due to the obstruction of the door, RSSI11>RSSI21. Similarly, mobile phone B is inside the door, and the signal strength of the first ranging broadcast message is marked as RSSI12<the signal strength of the second ranging broadcast message is marked as RSSI22.

[0237] Optionally, for the third scenario, the above two methods can be combined. When it is determined that the distance between the mobile phone and the door lock is close enough and the mobile phone is outside the door, the mobile phone uses ultra-low power to send a target message to the door lock to achieve non-sensing unlocking.

[0238] On the basis of the above embodiment, in another embodiment of the present application, in the unlocking stage, before the door lock is unlocked according to the target message in S1005, the following steps may also be included:

[0239] The door lock determines whether the positions of the mobile phone and the door lock meet the preset conditions.

[0240] If the door lock determines that the position of the mobile phone and the door lock meets the preset conditions, S1005 is executed to unlock the door according to the target message. If the door lock determines that the position of the mobile phone and the door lock does not meet the preset conditions, S1005 and subsequent steps are not executed. By further judging on the door lock side, the security of unlocking the door lock is improved.

[0241] The information for determining the location of the mobile phone and the door lock is different, and the corresponding preset conditions may be different. In order to distinguish from S1007, the preset condition in S1007 may be called the first preset condition, and the preset condition in this embodiment may be called the second preset condition.

[0242] Optionally, in one implementation, the door lock determines whether the positions of the mobile phone and the door lock meet a preset condition, which may include:

[0243] The mobile phone obtains an asymmetric key pair, which includes a public key and a private key.

[0244] The phone sends the public key of the asymmetric key pair to the door lock.

[0245] The mobile phone obtains the current location information, and encrypts the current location information with the private key in the asymmetric key pair to generate encrypted location information.

[0246] The mobile phone sends encrypted location information to the door lock, and the door lock receives the encrypted location information accordingly.

[0247] The door lock decrypts the encrypted position information according to the public key in the asymmetric key pair to obtain the decrypted position information.

[0248] The door lock compares the decrypted location information with the local stored initial location information of the mobile phone to determine whether the error between the decrypted location information and the initial location information of the mobile phone is within the preset error range. The initial location information of the mobile phone is the location information of the mobile phone when the mobile phone first establishes a BLE connection with the door lock.

[0249] Usually, when a mobile phone is configured with a door lock for the first time, the mobile phone's geographic location is written into the door lock. Figure 2 In the process of adding door lock 001 shown in the figure, after the mobile phone establishes a Bluetooth connection with door lock 001, the location information of the mobile phone will be sent to the door lock, that is, the initial location information of the mobile phone. Subsequently, before the mobile phone approaches the door lock to perform senseless unlocking, the door lock compares the current location of the mobile phone with the initial location of the mobile phone stored locally. If the error is greater than the preset error range, the unlocking is rejected; if the error is less than the preset error range, the unlocking is allowed, which further improves the security of senseless unlocking of the door lock.

[0250] It should be noted that this embodiment does not limit the value of the preset error range, for example, 50 meters.

[0251] It is understandable that in order to realize the above functions, the terminal device and the smart lock include hardware and / or software modules corresponding to the execution of each function. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to be beyond the scope of this application.

[0252] The embodiment of the present application can divide the functional modules of the terminal device and the smart lock according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. It should be noted that the names of the modules in the embodiment of the present application are schematic and are not limited in actual implementation.

[0253] Fig.16 A schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Fig.16 As shown, the terminal device provided in this embodiment may include:

[0254] The receiving module 1601 is used to receive the BLE broadcast message sent by the smart lock and identify the smart lock;

[0255] Processing module 1602, used to generate a target message, where the target message is used to instruct the smart lock to unlock;

[0256] The sending module 1603 is used to send the target message to the smart lock using a first transmission power, where the first transmission power is less than or equal to a first threshold, and the first threshold includes -50dBm.

[0257] Optionally, the receiving module 1601 is further used to receive encrypted information sent by the smart lock;

[0258] The processing module 1602 is specifically used to generate the target message according to the encryption information.

[0259] Optionally, the encrypted information includes a random number; and the processing module 1602 is specifically used for:

[0260] Encrypting the random number according to a preset encryption and decryption algorithm to generate an encrypted random number;

[0261] Generate the target message; the target message includes the encrypted random number and the unlocking instruction.

[0262] Optionally, the encryption information includes a public key in an asymmetric key pair; and the processing module 1602 is specifically configured to:

[0263] Encrypt the unlock instruction using the public key to generate an encrypted unlock instruction;

[0264] The target message is generated; the target message includes the encrypted unlocking instruction.

[0265] Optionally, the encrypted information is carried in a BLE broadcast message sent by the smart lock.

[0266] Optionally, the processing module 1602 is further used for:

[0267] Determine whether the positions of the terminal device and the smart lock meet the preset conditions; if the positions of the terminal device and the smart lock meet the preset conditions, control the sending module 1603 to use the first transmission power to send the target message to the smart lock.

[0268] Optionally, the receiving module 1601 is further used to receive a ranging broadcast message sent by the smart lock;

[0269] The processing module 1602 is specifically used to determine whether the signal strength of the ranging broadcast message meets a preset condition.

[0270] Optionally, the smart lock includes at least one antenna, and the ranging broadcast message is sent by the smart lock through any one of the antennas;

[0271] The processing module 1602 is specifically configured to determine whether the signal strength of the ranging broadcast message is greater than a preset threshold.

[0272] Optionally, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door, and the second antenna is located on the inside of the door. The ranging broadcast message includes a first ranging broadcast message and a second ranging broadcast message. The first ranging broadcast message is sent by the smart lock through the first antenna and includes first identification information. The first identification information is used to indicate that the first antenna is located outside the door. The second ranging broadcast message is sent by the smart lock through the second antenna and includes second identification information. The second identification information is used to indicate that the second antenna is located inside the door.

[0273] The processing module 1602 is specifically used for:

[0274] It is determined whether the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message.

[0275] Optionally, the sending module 1603 is specifically used for:

[0276] The target message is continuously sent to the smart lock using the first transmission power until a preset sending duration or a preset number of sending times is reached.

[0277] Optionally, the target message is a BLE broadcast message.

[0278] Optionally, the receiving module 1601 is further used to receive capability information of the smart lock sent by the smart lock;

[0279] The processing module 1602 is specifically used for:

[0280] If the capability information of the smart lock indicates that the smart lock supports contactless unlocking, the target message is generated.

[0281] Optionally, the receiving module 1601 is also used to receive a response message sent by the smart lock, and the response message is used to indicate whether the smart lock is unlocked successfully.

[0282] Optionally, the processing module 1602 is also used to establish a BLE connection with the smart lock.

[0283] The terminal device provided in this embodiment is used to execute the operations performed by the mobile phone in the above method embodiment. The technical principles and technical effects are similar and will not be repeated here.

[0284] Fig.17 A schematic diagram of the structure of the smart lock provided in the embodiment of the present application. Fig.17 As shown, the smart lock provided in this embodiment may include:

[0285] The sending module 1701 is used to send a BLE broadcast message;

[0286] The sending module 1701 is also used to send encrypted information;

[0287] The receiving module 1703 is used to receive a target message sent by a terminal device, where the target message is used to instruct the smart lock to unlock;

[0288] The processing module 1702 is used to unlock according to the encryption information and the target message.

[0289] Optionally, the encrypted information includes a random number, the target message includes an encrypted random number and an unlocking instruction, and the encrypted random number is generated by the terminal device encrypting the random number according to a preset encryption and decryption algorithm;

[0290] The processing module 1702 is specifically used for:

[0291] Decrypting the encrypted random number according to the preset encryption and decryption algorithm to obtain a decrypted random number;

[0292] If the decrypted random number is the same as the random number, unlocking is performed according to the unlocking instruction.

[0293] Optionally, the encrypted information includes a public key in an asymmetric key pair, and the target message includes an encrypted unlocking instruction, and the encrypted unlocking instruction is generated by the terminal device encrypting the unlocking instruction according to the public key;

[0294] The processing module 1702 is specifically used for:

[0295] Decrypting the encrypted unlocking instruction according to the private key in the asymmetric key pair to obtain the unlocking instruction;

[0296] Unlock according to the unlock instruction.

[0297] Optionally, the encrypted information is carried in a BLE broadcast message.

[0298] Optionally, the sending module 1701 is also used to send a ranging broadcast message.

[0299] Optionally, the smart lock includes N antennas, N is greater than or equal to 1, and the sending module 1701 is specifically used for:

[0300] The ranging broadcast message is sent through at least one antenna among the N antennas.

[0301] Optionally, the smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door, and the second antenna is located on the inside of the door. The sending module 1701 is specifically used for:

[0302] A first ranging broadcast message is sent through the first antenna using a target power, and a second ranging broadcast message is sent through the second antenna using the target power; the first ranging broadcast message includes first identification information indicating that the first antenna is located outside the door, and the second ranging broadcast message includes second identification information indicating that the second antenna is located inside the door.

[0303] Optionally, the target message is a BLE broadcast message sent by the terminal device.

[0304] Optionally, the sending module 1701 is also used to send capability information of the smart lock; the capability information is used to indicate whether the smart lock supports contactless unlocking.

[0305] Optionally, the sending module 1701 is specifically used for:

[0306] A response message is sent to the terminal device, where the response message is used to indicate whether the smart lock is unlocked successfully.

[0307] Optionally, the processing module 1702 is further used for:

[0308] Establish a BLE connection with the terminal device.

[0309] The smart lock provided in this embodiment is used to execute the operations performed by the door lock in the above method embodiment. The technical principles and technical effects are similar and will not be repeated here.

[0310] Please refer to Fig.18, which shows a structure of an electronic device provided in an embodiment of the present application. The electronic device may be a terminal device or a smart lock in an embodiment of the present application. The electronic device includes: a processor 1801, a receiver 1802, a transmitter 1803, a memory 1804 and a bus 1805. The processor 1801 includes one or more processing cores, and the processor 1801 executes various functional applications and information processing by running software programs and modules. The receiver 1802 and the transmitter 1803 can be implemented as a communication component, which can be a baseband chip. The memory 1804 is connected to the processor 1801 via a bus 1805. The memory 1804 can be used to store at least one program instruction, and the processor 1801 is used to execute at least one program instruction to implement the technical solution of the above embodiment. Its implementation principle and technical effect are similar to those of the above method related embodiments, and will not be repeated here.

[0311] When the electronic device is turned on, the processor can read the software program in the memory, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be sent through the antenna, the processor performs baseband processing on the data to be sent, and outputs the baseband signal to the control circuit in the control circuit. The control circuit performs radio frequency processing on the baseband signal and then sends the radio frequency signal outward through the antenna in the form of electromagnetic waves. When data is sent to the electronic device, the control circuit receives the radio frequency signal through the antenna, converts the radio frequency signal into a baseband signal, and outputs the baseband signal to the processor. The processor converts the baseband signal into data and processes the data.

[0312] Those skilled in the art will appreciate that for ease of description, Fig.18 Only one memory and processor are shown. In an actual electronic device, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, etc., which is not limited in the embodiments of the present application.

[0313] As an optional implementation, the processor may include a baseband processor and a central processing unit, the baseband processor is mainly used to process communication data, and the central processing unit is mainly used to execute software programs and process data of software programs. It can be understood by those skilled in the art that the baseband processor and the central processing unit can be integrated into one processor, or they can be independent processors, interconnected by technologies such as buses. It can be understood by those skilled in the art that an electronic device can include multiple baseband processors to adapt to different network formats, an electronic device can include multiple central processing units to enhance its processing capabilities, and various components of the electronic device can be connected through various buses. The baseband processor can also be described as a baseband processing circuit or a baseband processing chip. The central processing unit can also be described as a central processing circuit or a central processing chip. The function of processing the communication protocol and the communication data can be built into the processor, or it can be stored in the memory in the form of a software program, and the processor executes the software program to implement the baseband processing function. The memory can be integrated in the processor, or it can be independent of the processor. The memory includes a cache Cache, which can store frequently accessed data / instructions.

[0314] In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, and may implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware processor, or may be executed by a combination of hardware and software modules in the processor.

[0315] In the embodiment of the present application, the memory may be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SS), or a volatile memory (volatile memory), such as a random access memory (RAM). The memory is any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto.

[0316] The memory in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, for storing program instructions and / or data. In the methods provided in the embodiments of the present application, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center via wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated therein. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disc (DWD), or a semiconductor medium (e.g., an SSD), etc.

[0317] The embodiment of the present application provides a computer program product, when the computer program product is run on a terminal, the terminal executes the technical solution in the above embodiment. Its implementation principle and technical effect are similar to those of the above related embodiments, and will not be repeated here.

[0318] The embodiment of the present application provides a computer-readable storage medium on which program instructions are stored. When the program instructions are executed by a terminal, the terminal executes the technical solution of the above-mentioned embodiment. Its implementation principle and technical effect are similar to those of the above-mentioned related embodiments, and will not be repeated here. In summary, the above embodiments are only used to illustrate the technical solution of the present application, rather than to limit it; although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in this field should understand that it is still possible to modify the technical solutions recorded in the above-mentioned embodiments, or to replace some of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solution deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A Bluetooth-based non-sensing unlocking method, characterized in that: Applied to a system consisting of a terminal device and a smart lock, the terminal device supports Bluetooth communication with the smart lock at a first transmission power and a second transmission power, and the method includes: The smart lock sends a low-power Bluetooth BLE broadcast message; The terminal device receives the BLE broadcast message and identifies the smart lock; The terminal device generates a target message, where the target message is used to instruct the smart lock to be unlocked; The terminal device uses the first transmission power to send the target message to the smart lock, the first transmission power is less than the second transmission power and less than or equal to a first threshold, and the first threshold includes -50dBm; wherein the second transmission power is used by the terminal device to send other data except the target message to the smart lock; The smart lock receives the target message; The smart lock is unlocked according to the target message.

2. The method according to claim 1, characterized in that Before the terminal device generates the target message, the method further includes: The smart lock sends encrypted information; The terminal device generates a target message, including: The terminal device generates the target message according to the encrypted information; The smart lock is unlocked according to the target message, comprising: The smart lock is unlocked according to the encrypted information and the target message.

3. The method according to claim 1 or 2, characterized in that: Before the terminal device uses the first transmission power to send the target message to the smart lock, the method further includes: The terminal device determines whether the positions of the terminal device and the smart lock meet a preset condition; The terminal device sends the target message to the smart lock using the first transmission power, including: If the positions of the terminal device and the smart lock meet a preset condition, the terminal device uses the first transmission power to send the target message to the smart lock.

4. The method according to claim 3, characterized in that Before the terminal device generates the target message, the method further includes: The smart lock sends capability information of the smart lock; the capability information is used to indicate whether the smart lock supports non-sense unlocking; The terminal device generates a target message, including: If the capability information of the smart lock indicates that the smart lock supports contactless unlocking, the terminal device generates the target message.

5. The method according to claim 1, 2 or 4, characterized in that: Also includes: The smart lock sends a response message to the terminal device, where the response message is used to indicate whether the smart lock is unlocked successfully.

6. A Bluetooth-based non-sensing unlocking method, characterized in that: Applied to a terminal device, the terminal device supports Bluetooth communication with a smart lock at a first transmission power and a second transmission power, and the method includes: Receive a low-power Bluetooth BLE broadcast message sent by the smart lock and identify the smart lock; Generate a target message, wherein the target message is used to instruct the smart lock to unlock; The target message is sent to the smart lock using the first transmission power, so that the smart lock is unlocked according to the target message after receiving the target message. The first transmission power is less than the second transmission power and less than or equal to a first threshold, and the first threshold includes -50dBm; wherein the second transmission power is used by the terminal device to send other data other than the target message to the smart lock.

7. The method according to claim 6, characterized in that Before generating the target message, the method further includes: Receiving encrypted information sent by the smart lock; The generating of the target message comprises: The target message is generated according to the encryption information.

8. The method according to claim 7, characterized in that The encrypted information includes a random number; and generating the target message according to the encrypted information includes: Encrypting the random number according to a preset encryption and decryption algorithm to generate an encrypted random number; Generate the target message; the target message includes the encrypted random number and the unlocking instruction.

9. The method according to claim 7, characterized in that: The encrypted information includes a public key in an asymmetric key pair; and generating the target message according to the encrypted information includes: Encrypt the unlock instruction using the public key to generate an encrypted unlock instruction; The target message is generated; the target message includes the encrypted unlocking instruction.

10. The method according to any one of claims 7 to 9, characterized in that: The encrypted information is carried in the BLE broadcast message sent by the smart lock.

11. The method according to claim 6, 7, 8 or 9, characterized in that Before using the first transmission power to send the target message to the smart lock, the method further includes: Determine whether the positions of the terminal device and the smart lock meet preset conditions; The sending the target message to the smart lock using the first transmission power includes: If the positions of the terminal device and the smart lock meet preset conditions, the target message is sent to the smart lock using the first transmission power.

12. The method according to claim 11, characterized in that The determining whether the positions of the terminal device and the smart lock meet a preset condition includes: Receiving the ranging broadcast message sent by the smart lock; Determine whether the signal strength of the ranging broadcast message meets a preset condition.

13. The method according to claim 12, characterized in that The smart lock includes at least one antenna, and the ranging broadcast message is sent by the smart lock through any one of the antennas; The determining whether the signal strength of the ranging broadcast message meets a preset condition includes: Determine whether the signal strength of the ranging broadcast message is greater than a preset threshold.

14. The method according to claim 12 or 13, characterized in that The smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door, and the second antenna is located on the inside of the door. The ranging broadcast message includes a first ranging broadcast message and a second ranging broadcast message. The first ranging broadcast message is sent by the smart lock through the first antenna and includes first identification information. The first identification information is used to indicate that the first antenna is located outside the door. The second ranging broadcast message is sent by the smart lock through the second antenna and includes second identification information. The second identification information is used to indicate that the second antenna is located inside the door. The determining whether the signal strength of the ranging broadcast message meets a preset condition includes: It is determined whether the signal strength of the first ranging broadcast message is greater than the signal strength of the second ranging broadcast message.

15. The method according to claim 6, 7, 8, 9, 12 or 13, characterized in that The sending the target message to the smart lock using the first transmission power includes: The target message is continuously sent to the smart lock using the first transmission power until a preset sending duration or a preset number of sending times is reached.

16. The method according to claim 6, 7, 8, 9, 12 or 13, characterized in that The target message is a BLE broadcast message.

17. The method according to claim 6, 7, 8, 9, 12 or 13, characterized in that Before generating the target message, the method further includes: Receiving capability information of the smart lock sent by the smart lock; The generating of the target message comprises: If the capability information of the smart lock indicates that the smart lock supports contactless unlocking, the target message is generated.

18. The method according to claim 6, 7, 8, 9, 12 or 13, characterized in that Also includes: Receive a response message sent by the smart lock, where the response message is used to indicate whether the smart lock is unlocked successfully.

19. The method according to claim 6, 7, 8, 9, 12 or 13, characterized in that After identifying the smart lock, the method further includes: Establish a BLE connection with the smart lock.

20. A Bluetooth-based non-sensing unlocking method, characterized in that: Applied to a smart lock, the method comprises: Sending a low-power Bluetooth BLE broadcast message so that the terminal device can identify the smart lock after receiving the low-power Bluetooth BLE broadcast message, and the terminal device supports Bluetooth communication with the smart lock at a first transmission power and a second transmission power; Sending encrypted information so that the terminal device generates a target message according to the encrypted information after receiving the encrypted information; receiving the target message sent by the terminal device, where the target message is used to instruct the smart lock to unlock, and the target message is sent by the terminal device using the first transmission power, where the first transmission power is less than the second transmission power and less than or equal to a first threshold, where the first threshold includes -50 dBm; wherein the second transmission power is used by the terminal device to send other data except the target message to the smart lock; The encryption information and the target message are unlocked.

21. The method according to claim 20, characterized in that The encrypted information includes a random number, the target message includes an encrypted random number and an unlocking instruction, and the encrypted random number is generated by the terminal device by encrypting the random number according to a preset encryption and decryption algorithm; The unlocking according to the encrypted information and the target message comprises: Decrypting the encrypted random number according to the preset encryption and decryption algorithm to obtain a decrypted random number; If the decrypted random number is the same as the random number, unlocking is performed according to the unlocking instruction.

22. The method according to claim 20, characterized in that The encrypted information includes a public key in an asymmetric key pair, and the target message includes an encrypted unlocking instruction, which is generated by the terminal device encrypting the unlocking instruction according to the public key; The unlocking according to the encrypted information and the target message comprises: Decrypting the encrypted unlocking instruction according to the private key in the asymmetric key pair to obtain the unlocking instruction; Unlock according to the unlock instruction.

23. The method according to any one of claims 20 to 22, characterized in that The encrypted information is carried in the BLE broadcast message.

24. The method according to any one of claims 20 to 22, characterized in that Before receiving the target message sent by the terminal device, the method further includes: Send ranging broadcast message.

25. The method according to claim 24, characterized in that The smart lock includes N antennas, N is greater than or equal to 1, and the sending of the ranging broadcast message includes: The ranging broadcast message is sent through at least one antenna among the N antennas.

26. The method according to claim 24, characterized in that The smart lock includes a first antenna and a second antenna. When the smart lock is installed on a door, the first antenna is located on the outside of the door, and the second antenna is located on the inside of the door. The sending of the ranging broadcast message includes: A first ranging broadcast message is sent through the first antenna using a target power, and a second ranging broadcast message is sent through the second antenna using the target power; the first ranging broadcast message includes first identification information indicating that the first antenna is located outside the door, and the second ranging broadcast message includes second identification information indicating that the second antenna is located inside the door.

27. The method of claim 20, 21, 22, 25 or 26, wherein: The target message is a BLE broadcast message sent by the terminal device.

28. The method of claim 20, 21, 22, 25 or 26, wherein: Before receiving the target message sent by the terminal device, the method further includes: Send the capability information of the smart lock; the capability information is used to indicate whether the smart lock supports contactless unlocking.

29. The method of claim 20, 21, 22, 25 or 26, wherein: Also includes: A response message is sent to the terminal device, where the response message is used to indicate whether the smart lock is unlocked successfully.

30. The method of claim 20, 21, 22, 25 or 26, wherein: Before receiving the target message sent by the terminal device, the method further includes: Establish a BLE connection with the terminal device.

31. A terminal device, characterized in that: The terminal device comprises a processor, which is used to couple with a memory, read instructions in the memory, and enable the terminal device to execute the method as claimed in any one of claims 6 to 19 according to the instructions in the memory.

32. A smart lock, characterized in that: The smart lock includes a processor, which is used to couple with a memory, read instructions in the memory, and enable the smart lock to execute the method as described in any one of claims 20-30 according to the instructions in the memory.

33. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed on an electronic device, the electronic device executes the method as claimed in any one of claims 6 to 19, or executes the method as claimed in any one of claims 20 to 30.

Citation Information

Patent Citations

  • Method of controlling access to an area accessible by persons, particularly to a space closed by a door

    CN102360516A

  • Bluetooth access control unlocking method, device and system

    CN105631987A

  • Bluetooth communication control method and related product

    CN110139262A