Unlocking method, device and storage medium

By detecting signal strength and motion state, and automatically or actively triggering vehicle lock unlocking operations, the problems of relay attacks and high power consumption are solved, and the security and convenience are improved, while reducing hardware costs.

CN115457682BActive Publication Date: 2024-11-22HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110642012.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-09
Publication Date
2024-11-22
Estimated Expiration
2041-06-09

AI Technical Summary

Technical Problem

The existing smart car key unlocking technology faces the problems of relay attack risks and high power consumption, and requires installation of weak antennas to control effective communication distances, which increases hardware complexity and cost.

Method used

By detecting signal strength and motion state between the terminal device and the target device, automatically or actively triggering the unlocking operation, combining the timing mechanism and user interaction, safety and convenience are ensured.

Benefits of technology

Effectively resist relay attacks, reduce user operations, improve lock-opening convenience, reduce hardware costs, and improve system security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115457682B_ABST
    Figure CN115457682B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and storage medium for unlocking, which relates to the field of intelligent control technology, and can resist relay attacks and reduce user operations. The method includes: after determining that the target signal emitted by the target device has entered the signal range, the following steps are performed: when the terminal device is detected to be in a predetermined motion state, an unlocking message is sent to the target device; the unlocking message is used to notify the target device to control the corresponding target electronic lock from the locked state to the unlocked state; and the first event is triggered, and the first event is used to prompt the user that the target electronic lock has been opened.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of intelligent control technology, and in particular to a lock opening method, device and storage medium. Background Art

[0002] In recent years, intelligent control of automobiles has become a hot topic in the field of vehicle engineering in the world and one of the new driving forces for the growth of the automobile industry. In actual application scenarios, intelligent control of automobile door locks, windows and other components is a technical means to effectively improve user experience. More and more automobile manufacturers have developed smart car keys, or developed corresponding applications to control vehicles through terminal devices such as smartphones, such as controlling the doors, windows, and trunk switches. At present, a relatively common way to unlock is to unlock by pressing a button, which requires the user to manually find the car key or mobile phone after arriving near the vehicle, and then enter the corresponding control interface after passing the security authentication of the terminal device such as the car key or mobile phone based on the verification methods such as password unlocking, fingerprint unlocking, and face unlocking, and then click the unlocking button to unlock the car. The convenience of operation needs to be improved. Based on this, a solution is urgently needed to further reduce user operations. Summary of the invention

[0003] The present application provides a method, device and storage medium for unlocking a lock, which can reduce the number of operations performed by a user when unlocking a lock, thereby improving the convenience of operation while ensuring safety.

[0004] In a first aspect, the technical solution provides an unlocking method, which is applied to a terminal device, and the method includes: determining that the terminal device enters within a signal range of a first target signal emitted by a target device; when it is detected that the terminal device is in a predetermined motion state, sending an unlocking message to the target device; the unlocking message is used to notify the target device to control the corresponding target electronic lock from a locked state to an unlocked state; and triggering a first event, which is used to prompt a user that the target electronic lock has been opened.

[0005] In one possible implementation, after determining that the terminal device has entered into a signal range of a first target signal emitted by a target device and before sending an unlocking message to the target device, the method further includes: detecting a signal strength of the target signal; sending an unlocking message to the target device when it is detected that the terminal device is in a predetermined motion state, includes: sending an unlocking message to the target device when it is detected that the signal strength of the first target signal exceeds a specified threshold and the terminal device is in a predetermined motion state.

[0006] In one possible implementation, after determining that the terminal device has entered within the signal range of the first target signal emitted by the target device and before sending an unlock message to the target device, the method further includes: detecting whether the terminal device is in a lock screen state; sending an unlock message to the target device when it is detected that the terminal device is in a predetermined motion state, including: sending an unlock message to the target device when it is detected that the terminal device is in a lock screen state and the terminal device is in a predetermined motion state.

[0007] In a possible implementation, after the first event is triggered, the method further includes: triggering a second event, wherein the second event is used to inquire the user whether the door is opened by mistake, and receive a lock instruction issued by the user.

[0008] In one possible implementation, triggering the second event includes: when detecting that the terminal device is in a locked screen state, triggering the second event after determining that a screen unlocking instruction issued by the user is received; wherein the screen unlocking instruction is used to unlock the terminal device.

[0009] In a possible implementation, after the second event is triggered, the method further includes: after determining that a lock instruction issued by the user is received, sending a lock message to the target device, and, when it is detected that the terminal device is within the signal range, triggering the timing of a first timing cycle; within the first timing cycle, interrupting the operation of sending an unlock message to the target device.

[0010] In a possible implementation, after the second event is triggered, the method further includes: determining that after receiving a lock command issued by a user, the terminal device is detected to be outside the signal range; after detecting that the terminal device is outside the signal range, and detecting that the terminal device enters the signal range again, executing the operation of sending an unlocking message to the target device when the terminal device is detected to be in a predetermined motion state.

[0011] In a possible implementation, after sending an unlock message to the target device, the method further includes: triggering a third event, where the third event is at least used to provide a shortcut to receive a lock instruction issued by a user.

[0012] In a possible implementation, after sending an unlock message to the target device, the method further includes: acquiring switch status information of a switch device corresponding to the target electronic lock; based on the switch status information, determining that when the switch device is not opened within a second timing period, sending a lock message to the target device; the lock message is used to notify the target device to control the target electronic lock to change from an unlocked state to a locked state.

[0013] In a possible implementation, after sending an unlock message to the target device, the method further includes: when it is determined that the terminal device is outside the signal range of the first target signal, sending a lock message to the target device; the lock message is used to notify the target device to control the target electronic lock from an unlocked state to a locked state.

[0014] In one possible implementation, the predetermined motion state is determined based on data collected by a motion sensor of the terminal device, and the motion sensor includes one or more of a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, a vibration sensor, a linear velocity sensor, and an angular velocity sensor.

[0015] In a possible implementation, the predetermined motion state includes one or more of walking, fast walking, slow walking, running, jogging, sprinting, and jumping.

[0016] In a second aspect, the present technical solution provides an unlocking method, which is applied to a terminal device, and the method includes: determining that the terminal device has entered into a signal range of a first target signal emitted by a target device; triggering a fourth event when it is detected that the terminal device is in a predetermined motion state, wherein the fourth event is used to ask the user whether to open the target electronic lock corresponding to the target device, and wait for receiving an unlocking command from the user; determining that the unlocking command has been received, generating a corresponding unlocking message and sending it to the target device; the unlocking message is used to notify the target device to control the target electronic lock to change from a locked state to an unlocked state.

[0017] In a possible implementation, triggering the fourth event when detecting that the terminal device is in a predetermined motion state includes: triggering the fourth event when detecting that the signal strength of the target signal exceeds a specified threshold and the terminal device is in a predetermined motion state.

[0018] In a possible implementation, triggering the fourth event when it is detected that the terminal device is in a predetermined motion state includes: triggering the fourth event when it is detected that the terminal device is in a screen unlocked state and the terminal device is in a predetermined motion state.

[0019] In the third aspect, the present technical solution provides an unlocking method, which is applied to a target device, and the method includes: determining that the terminal device enters within the signal range of a first target signal emitted by the target device; obtaining the motion state information of the terminal device; when it is determined that the terminal device is in a motion state based on the motion state information, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state; sending a first instruction to the terminal device to cause the terminal device to trigger a first event, and the first event is used to prompt a user that the target electronic lock has been opened.

[0020] In one possible implementation, after determining that the terminal device has entered into a signal range of a first target signal emitted by the target device and before obtaining the motion state information of the terminal device, the method further includes: detecting the signal strength of a second target signal emitted by the terminal device; and when it is determined based on the motion state information that the terminal device is in a motion state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, including: when it is detected that the signal strength of the second target signal exceeds a specified threshold and when it is determined based on the motion state information that the terminal device is in a predetermined motion state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state.

[0021] In a possible implementation, after determining that the terminal device has entered a signal range of a first target signal emitted by the target device, and before controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: obtaining screen status information of the terminal device; when it is determined based on the motion status information that the terminal device is in a motion state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, includes: when it is determined based on the motion status information that the terminal device is in a motion state, and when it is determined based on the screen status information that the terminal device is in a lock screen state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state.

[0022] In a possible implementation, after controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: after determining that a lock message sent by the terminal device is received, controlling the target electronic lock corresponding to the target device to change from an unlocked state to a locked state, and, when detecting that the terminal device is within the signal range, triggering the timing of a first timing cycle, and controlling the target electronic lock to remain in a locked state within the first timing cycle.

[0023] In a possible implementation, after controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: determining that after receiving a lock message sent by the terminal device, it is detected that the terminal device is outside the signal range; after detecting that the terminal device is outside the signal range, and in a case where it is detected that the terminal device enters the signal range again, executing the control of the target electronic lock corresponding to the target device from a locked state to an unlocked state when it is determined that the terminal device is in a motion state based on the motion state information.

[0024] In a possible implementation, after controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: detecting switch state information of a switch device corresponding to the target electronic lock; and based on the switch state information, determining that the switch device is not opened within a second timing period, controlling the target electronic lock to change from an unlocked state to a locked state.

[0025] In a fourth aspect, the present technical solution provides a terminal device, comprising: one or more processors; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the terminal device, enable the terminal device to execute a method as described in any one of the first or second aspects above.

[0026] In the fifth aspect, the present technical solution also provides a target device, comprising: one or more processors; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, and when the instructions are executed by the device, the device executes the method described in any one of the third aspects above.

[0027] In a sixth aspect, the present technical solution also provides a computer storage medium, comprising computer instructions, which, when executed on an electronic device, enables the electronic device to execute a method as described in any one of the first to third aspects above.

[0028] In the seventh aspect, the present technical solution also provides a chip system, comprising: a communication interface for inputting and / or outputting information; a processor for executing a computer executable program so that a device equipped with the chip system executes a method as described in any one of the first to third aspects above.

[0029] The method and device provided in the embodiments of the present application automatically send an unlocking message to unlock the vehicle lock when it is detected that the terminal device held by the user enters the vehicle signal range and is in motion, thereby reducing user operations, and prompting the user that the vehicle lock is unlocked after unlocking to increase safety; or, when it is detected that the terminal device held by the user enters the vehicle signal range, the user is actively asked whether to unlock the vehicle, thereby reducing the user's manual search for the unlocking interface and other operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a schematic diagram of a scenario in which a non-sensing unlocking solution in the related art is attacked by a relay;

[0031] Figure 2 It is a schematic diagram of a scenario in which a non-sensing unlocking solution in the related art is combined with a satellite positioning system for positioning;

[0032] Figure 3 This is a schematic diagram of an exemplary scenario in which the unlocking method provided in the embodiment of the present application is applicable;

[0033] Figure 4 is another exemplary scenario schematic diagram applicable to the unlocking method provided in the embodiment of the present application;

[0034] Figure 5 is a signaling flow chart of an embodiment of the unlocking method provided in an embodiment of the present application;

[0035] Figure 6 is a schematic diagram of an exemplary interface in an embodiment of the unlocking method provided in an embodiment of the present application;

[0036] Figure 7 is a signaling flow chart of another embodiment of the unlocking method provided in an embodiment of the present application;

[0037] FIG8( a ) and FIG8( b ) are schematic diagrams of two exemplary interfaces in another embodiment of the unlocking method provided in an embodiment of the present application;

[0038] Fig. 9 This is a signaling flow chart after non-contact unlocking in one embodiment of the unlocking method provided in the embodiment of the present application;

[0039] Fig.10 It is a schematic diagram of the process after the non-contact unlocking in one embodiment of the unlocking method provided in the embodiment of the present application;

[0040] Fig.11 is a signaling flow chart of another embodiment of the unlocking method provided in the embodiment of the present application;

[0041] Fig.12 is a schematic diagram of an exemplary interface in another embodiment of the unlocking method provided in an embodiment of the present application;

[0042] Fig.13 is a schematic diagram of another exemplary interface in yet another embodiment of the unlocking method provided in an embodiment of the present application;

[0043] Fig.14 is a signaling flow chart of another embodiment of the unlocking method provided in the embodiment of the present application;

[0044] Fig.15 is a signaling flow chart of another embodiment of the unlocking method provided in the embodiment of the present application;

[0045] Fig.16 A system architecture diagram corresponding to the unlocking method and device provided in the embodiments of the present application;

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

[0047] Fig.18 A schematic diagram of the hardware structure of another embodiment of the terminal device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0048] The technical solution in this application will be described below in conjunction with the accompanying drawings.

[0049] A typical application scenario to which the unlocking method and device provided in the embodiments of the present application can be applied is a car unlocking scenario, such as a scenario in which a user returns to the vicinity of a vehicle with a terminal device such as a car key or a mobile phone, and is ready to unlock the car lock to open objects such as a door or a trunk. It should be noted that the method and device provided in the embodiments of the present application can also be applied to a variety of other application scenarios that require unlocking, such as unlocking doors such as residential house doors / office doors, unlocking electrical equipment and other equipment, unlocking vehicles such as electric bicycles / electric scooters, and other scenarios. To facilitate understanding of the unlocking method and device provided in the embodiments of the present application, the following uses the car unlocking scenario as an example to illustrate the solution provided in the embodiments of the present application, and based on this, implementation plans for other scenarios can be adaptively obtained.

[0050] To facilitate understanding of the improvements made by the solution provided in the embodiments of the present application, the solutions in the existing related technologies are first briefly described. Taking the car unlocking scenario as an example, a non-sensing unlocking solution proposed in the existing related technologies automatically opens the vehicle electronic lock when it detects that the car key or mobile phone is within a short distance near the vehicle. The user does not need to take out the car key or mobile phone to unlock the door, and the door can be opened directly. The basic principle of this non-sensing unlocking solution is that the effective communication distance range of the weak antenna (ultra-short-range antenna) is generally small, and it can only sense signals within a small distance around it. For example, it can sense whether the vehicle is within a range of about 1.5 meters. If so, the key will send an unlocking message and the user can open the door.

[0051] The inventor found during the research that although the non-sensing unlocking solution reduces user operations, it has the following disadvantages:

[0052] On the one hand, relay attacks are a common attack method in the field of communication technology, and the non-sensing unlocking scheme in the above-mentioned related technologies cannot resist relay attacks. Figure 1 As shown in the figure, when a signal amplifier is placed near the vehicle C0 and the terminal device UE0 at the same time, the weak signal emitted by the vehicle or the mobile phone is amplified, so that the car key or the mobile phone, as well as the vehicle, will mistakenly think that the other party is in close range and open the car lock, but the actual signal interaction is extended by the signal amplifier. The communication distance. Therefore, the existing automatic unlocking solution without user perception cannot resist the relay (signal amplifier) ​​attack, which increases the risk of car theft and poses a security problem.

[0053] See also Figure 2As shown, an auxiliary technical means currently used to resist the problem of relay attacks is to perform auxiliary judgment by combining the positioning information of satellite positioning systems such as the Global Positioning System (GPS) or the BeiDou Navigation Satellite System (BDS) when unlocking the car through the terminal device UE0 (such as a mobile phone). The vehicle location information or mobile phone location information issued by GPS or BDS is obtained by the vehicle C0 or the terminal device UE0 directly communicating with the positioning satellite S1, and will not be affected by the nearby signal amplifier, so the relay attack problem can be solved. However, in actual applications, the accuracy of GPS or BDS civilian positioning services is about ±10 meters, and the range of 10 meters between the vehicle and the mobile phone is still not safe, and there is still the possibility of relay attacks and the risk of theft. In addition, another drawback that cannot be ignored is that the above-mentioned senseless unlocking scheme in the prior art does not have an obvious triggering time for unlocking. The mobile phone and the vehicle need to continuously turn on GPS to obtain positioning, and the power consumption of GPS positioning is large. The power consumption of continuously turning on GPS positioning is high, which is difficult to apply in practice. The above-mentioned senseless unlocking scheme currently available lacks an effective method to solve the relay attack problem it has.

[0054] On the other hand, mobile phones and other terminal devices used for unlocking need to transmit signals (such as Wi-Fi or Bluetooth signals) through the weak antenna of the mobile phone when judging whether the vehicle is nearby. Only when the signal transmitted by the weak antenna is received by the vehicle can it be judged that the vehicle is within a relatively close range. However, the weak antenna is not a basic hardware configuration of the mobile phone. In order to realize the unlocking function of the mobile phone, it is necessary to install an additional weak antenna during the production process of the mobile phone, which increases the hardware complexity and production cost.

[0055] In view of this, the embodiment of the present application proposes a solution, which can reduce user operations and improve the convenience of unlocking compared to the key unlocking solution; and can solve the relay attack problem faced by the above-mentioned existing non-sensing unlocking solution, as well as the problem of increased cost due to the installation of weak antennas. The solution provided by the embodiment of the present application can be implemented based on the interaction between the terminal device side and the target device side.

[0056] In some embodiments, a technical means of at least detecting the motion state within the signal range is adopted, and in other embodiments, a technical means of at least actively querying within the signal range is adopted to solve the above problems.

[0057] The following is a preliminary introduction to the solution provided by the embodiment of the present application in combination with two application scenario examples:

[0058] Example application scenario 1:

[0059] See also Figure 3 As shown in the figure, taking the car unlocking scenario as an example, user U1 holds terminal device UE1 and arrives near the car. Terminal device UE1 detects the wireless signal sent by the onboard target device C1, and a secure connection is established between terminal device UE1 and target device C1. Figure 3 In the exemplary situation shown in , the terminal device UE1 is placed in the user's bag and is in the locked screen state. In this case, the terminal device UE1 at least detects whether its own device is in motion. If it is determined to be in motion, it sends an unlock message to the target device C1. The target device C1 controls the electronic lock of the car door to open. At the same time, the vehicle can issue a corresponding prompt sound, such as a buzzer or a voice prompt "Hello, the car lock is open". If no relay attack occurs, the user is at the scene. After knowing that the car lock is open, the user can hold the door handle or press the door opening button on the door handle to open the door, and can also achieve non-sensing unlocking; at the same time, in order to further improve security, the target device C1 returns a successful unlocking message to the terminal device UE1. After receiving the successful unlocking message, the terminal device UE1 will immediately prompt the user that the car lock is open. If no relay attack occurs, the user can ignore the prompt at this time without any operation; if a relay attack occurs, the user can immediately know that the vehicle may be facing the risk of theft, and then immediately send a lock message through the terminal device UE1 to lock the door again to prevent the vehicle from being stolen.

[0060] Among them, when the user carries the terminal device in motion, it will greatly increase the difficulty of relay attacks. When the terminal device moves, its signal strength changes at any time. In this case, relay attacks are difficult to implement. In addition, except for very rare cases, in actual applications, when the user needs to unlock the vehicle, he will get closer to the vehicle and will most likely be in motion. Therefore, whether the user is currently in motion can be used as a direct and effective reference factor to distinguish whether the user needs to unlock the vehicle, which can avoid relay attacks to a certain extent.

[0061] See also Figure 4 As shown, in another embodiment, when the user U1 holds the terminal device UE1 and arrives near the vehicle, the terminal device UE1 establishes a secure connection with the vehicle-mounted target device C1, as shown in FIG. Figure 4In the exemplary situation shown in , if the terminal device UE1 is in the unlocked state, that is, the user is using the terminal device UE1, in this case, based on the UI (User Interface) / UX (User Experience) interaction, the user can be actively asked whether to open the car lock. For example, when the terminal device UE1 detects that it has entered the signal range of the vehicle-mounted target device C1, a dialog box for whether to open the car lock will automatically pop up, and a button for sending an unlock message and a button for sending a lock message will be displayed. The user does not need to find the operation interface by himself, and can directly click the corresponding unlock or lock button on the pop-up dialog box to realize the switch control of the car lock. In the prior art, the key unlocking method of unlocking through a mobile phone requires the user to find the corresponding application (application, APP) and open it after arriving near the vehicle, or find the unlocking program from the running program, enter the control interface, and click the unlocking button to unlock. The active inquiry method provided in the embodiment of the present application takes the user entering the close range of the vehicle as the triggering time, and actively inquires the user whether to unlock, thereby reducing user operations.

[0062] It should be noted that this active inquiry method is not completely imperceptible to the user, but the operating convenience is significantly improved compared to the button unlocking in the prior art. Moreover, in this active inquiry method, the car lock will not be unlocked if the user does not send an unlocking message, which can completely avoid the relay attack problem and is more secure.

[0063] In the embodiments of the present application, the terminal device may be various mobile terminal products that support short-range wireless communication and are carried by the user, such as a mobile phone, a tablet computer, a personal computer (PC), a personal digital assistant (PDA), a smart watch, a netbook, a wearable electronic device, an augmented reality (AR) device, a virtual reality (VR) device, a robot (portable), a smart toy, etc., or a car key.

[0064] The target device is a device in the vehicle that is pre-opened by the user and is used for wireless communication with the terminal device. The target device can be an independent vehicle-mounted device or one or more components integrated in the vehicle-mounted device. Any vehicle-mounted device, module or component in the vehicle that can at least support short-range wireless communication and can directly or indirectly control the vehicle lock can be used as a target device. For example, the target device can be one or more of the following vehicle-mounted devices or modules, or one or more components integrated in the following vehicle-mounted devices or modules: vehicle gateway (gateway, GW) module, telematics control unit (TCU), car box (telematics BOX, T-BOX), mobile data center (mobile data center, MDC), human-machine interaction (human-machine interaction, HMI) module, electronic control unit (electronic control unit, ECU), cockpit domain controller (Cockpit domain controller, CDC), or vehicle domain controller (VDC).

[0065] Among them, the vehicle gateway GW module is the core component of the vehicle's electronic and electrical architecture. As the data exchange hub of the vehicle network, it can route network data such as the controller area network (CAN), local interconnect network (LIN), multimedia data transmission (MOST), and FlexRay in different networks. The mobile data center MDC is used as the intelligent vehicle computing platform of the car; the human-machine interaction HMI module can be the car's infotainment system; the telematics control unit TCU can be used to communicate with the outside of the car, the background system, smart phones, application network devices, etc.; the car box T-BOX can be used to communicate with the outside of the car, the background system, smart phones, APP network devices, etc.; the electronic control unit ECU is a special microcomputer controller for the car; the cockpit domain controller CDC is used to control cockpit domain related content; the vehicle domain controller VDC is used to control vehicle domain related content.

[0066] The target electronic lock is the lock of the vehicle that the user pre-opens. The lock is not limited to the door lock, but may also include window control components, trunk lock control components, and control units of electrical equipment such as speakers and air conditioners in the vehicle. The target electronic lock may include a physical mechanical lock and / or an electrical switch controlled by a control signal.

[0067] The target device and the target electronic lock may be two independent devices or components, or may be deployed in different devices or modules respectively. The target device and the target electronic lock may also be integrated into the same device. For example, the target device may be an accessory of a vehicle lock and is only used to perform communication tasks related to the vehicle lock.

[0068] The process of the unlocking method provided in the embodiment of the present application is described in detail below:

[0069] In some embodiments, the user enters the vehicle signal range and is in motion as a triggering opportunity to trigger unlocking and send an unlocking notification to the user. The execution subject of the method can be a terminal device, which includes the following process: when it is determined that the terminal device enters the signal range of the target signal sent by the target device, it is detected whether the terminal device is in a predetermined motion state, and if it is determined that it is in motion, an unlocking message is sent to the target device, and a first event is triggered, which is an interactive event for prompting the user that the target electronic lock corresponding to the target device has been opened.

[0070] Among them, determining to enter the signal range of the target signal emitted by the target device includes two meanings: one meaning is that the terminal device is currently within the signal range of the target device; the other meaning is that it changes from the state of losing the signal to the state of being able to search for the signal, rather than from the state of searching for the signal to the state of losing the signal, that is, "entering" the signal range, rather than moving away. The premise for being able to determine to enter the signal range of the target signal emitted by the target device is that the signal emitted by the target device can be searched at present, and before that, it was in a state of failing to find the signal of the target device. As a possible implementation method, with 3 seconds (s) as a query cycle, every 3s, record whether the signal state of the target device is searched, when it is determined that the signal of the target device is searched (i.e., the signal state is found), query whether it is in the state of losing the signal in the adjacent previous one or two time periods, and wait for the next cycle, query whether the record of the next cycle is in the state of finding the signal, if yes, then determine to enter the signal range of the target signal emitted by the target device. This implementation method can avoid repeated triggering of unlocking when the user is continuously within the signal range of the vehicle.

[0071] It should be noted that the terminal device and the target device communicate with each other using short-range wireless communication technology, such as at least one of Bluetooth, Wireless Fidelity (Wi-Fi), Near Field Communication (NFC), Zigbee, Ultra Wide Band (UWB), Radio Frequency Identification (RFID), etc. Except for NFC, the other communication methods can control the signal transmission distance by adjusting the power.

[0072] In a possible implementation, Bluetooth is used as a communication method between the terminal device and the target device. When the terminal device determines that a beacon frame broadcast by the target device is received, it is determined that the terminal device is currently within the signal range of the target device.

[0073] In a possible implementation, after searching for the signal of the target device, the signal strength is further detected. For some short-range wireless communication technologies, the communication distance range can reach ten meters or even tens of meters. When the terminal device enters the signal range of the target device, the actual distance between the terminal device and the vehicle may be more than ten meters. Therefore, it is necessary to further obtain the signal strength information, that is, obtain the value of the received signal strength indication (RSSI), in decibel relative to one milliwatt (dBm). When the signal strength exceeds the specified threshold, the subsequent steps are performed. For example, after the target signal is found, the signal strength is immediately detected to determine whether the signal strength reaches the specified threshold, and then detect whether it is in motion. Alternatively, after detecting that the terminal device is in motion, the current signal strength is determined. If the signal strength exceeds the specified threshold, an unlocking message is issued, otherwise the unlocking message is not triggered until the signal strength exceeds the specified threshold. There is no clear sequence in the timing between the motion state detection and the determination of the signal strength.

[0074] It should be noted that when the effective communication distance of the communication method between the terminal device and the vehicle is within a few meters, the signal strength detection step may not be performed, for example, when the effective communication distance is less than 10 meters or less than 5 meters. When the target device in the vehicle is equipped with a weak antenna (ultra-short-range antenna) or the antenna transmission power of the target device on one side of the vehicle is adjusted so that the effective signal range is only a few meters near the vehicle, there is no need to perform the step of determining the signal strength. When the effective communication distance of the communication method between the terminal device and the vehicle exceeds 10 meters, and for cost, solution compatibility and implementation difficulty considerations, the power of the antenna on the target device or mobile phone cannot be weakened, then the signal strength should be further determined after entering the signal range to ensure that the distance between the terminal device held by the user and the vehicle is within the distance threshold. The distance threshold can be 5 meters, 6 meters, 10 meters, etc.

[0075] The designated threshold of signal strength is related to the distance threshold. When the distance threshold is determined, the signal strength around the vehicle at the distance threshold can be sampled, and the average of multiple signal strength samples can be used as the designated threshold of signal strength.

[0076] The reason why a weak antenna needs to be installed in the prior art is that the effective communication distance between the controlled vehicle and the mobile phone is short, for example, within a range of about 1.5 meters. In the solution provided in the embodiment of the present application, based on the above trigger mechanism, the signal strength is further used as a trigger unlocking condition, which can solve the technical problem of needing to install a weak antenna. By setting different signal strength thresholds, when the signal strength exceeds the threshold, the unlocking is triggered again, which can effectively control the distance range of trigger unlocking without installing a weak antenna, saving various costs of installing a weak antenna.

[0077] It should be noted that whether the device is in motion can be detected by collecting motion data through sensors. That is, the predetermined motion state is determined based on the data collected by the motion sensor of the terminal device. The motion sensor includes one or more of a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, a vibration sensor, a linear velocity sensor, and an angular velocity sensor. The data collected by the sensor may be motion parameters such as motion direction, tilt angle, spatial posture, and travel speed. Collecting motion data is a function supported by a variety of terminal devices, such as mobile terminal devices such as smartphones and smart watches. The embodiments of the present application can utilize the existing detection function and the detected motion data to identify the motion state.

[0078] For example, as a possible implementation, the terminal device may be equipped with a built-in gyroscope, a gravity sensor, and an acceleration sensor. The gyroscope can sense the user's movement direction; the gravity sensor can measure the acceleration caused by gravity to calculate the inclination angle of the terminal device relative to the horizontal plane; and the acceleration sensor can collect the acceleration information of the terminal device. The movement direction, inclination angle, and acceleration information can be combined to comprehensively determine whether the user is in motion.

[0079] In a possible implementation, the predetermined motion state may include one or more of walking, fast walking, slow walking, running, jogging, running fast, and jumping. When the user drives the terminal device in any of the above states, the terminal device is considered to be in the predetermined motion state. Specifically, according to the data sensed by the above sensors, the number of steps or frequency of the user's movement can be determined, and then it can be determined whether the user is in any of the states of fast walking, slow walking, running fast, and jogging. The states of walking, fast walking, slow walking, running, jogging, running fast, and jumping can be obtained by statistically analyzing multiple sample data.

[0080] Specifically, detection of whether the state is in motion can be achieved in the following ways:

[0081] Method 1: Compare the collected motion data with a predetermined parameter threshold or predetermined condition. If the threshold is exceeded or the predetermined condition is met, the terminal device carried by the user is considered to be in motion. For example, the number of steps of the user is determined by the parameters collected by the above sensors. When the number of steps of the user continues to increase within a predetermined time period, the user and the terminal device carried by the user are considered to be in motion. For example, with 5s as a detection cycle, the number of steps of the user is detected every 5s to see if it increases. If the number of steps of the user detected in multiple consecutive detection cycles increases, the user is considered to be in motion.

[0082] Method 2: Based on big data, the state parameters of the user before opening the door are obtained, multiple samples are obtained, and statistical analysis is performed on them. For example, a cluster analysis algorithm is used to obtain a reference feature vector corresponding to the general state characteristics of the user before opening the door. When judging whether the current target user is in motion, the collected motion parameters can be converted into a target feature vector, and the target feature vector is compared with the pre-obtained reference feature vector, and whether the current target user is in motion is determined based on the comparison result. Among them, the process of obtaining the reference feature vector is implemented on the server on the network side, and the reference feature vector can be pre-stored in the terminal device as a program parameter.

[0083] Method 3: Another possible implementation method for detecting whether the vehicle is in motion is to obtain the state parameters of multiple users before opening the door as training data, and use whether the vehicle is in motion as a label to train the neural network model. Then, in the actual application stage, the feature vector corresponding to the motion parameters of the target user collected is used as input, and the pre-trained neural network model is used to output the recognition result of whether the vehicle is in motion. The implementation of method 3 usually requires the terminal device to interact with the server on the network side. In most cases, the trained neural network model is deployed on the server on the network side.

[0084] In a possible implementation, after the user is reminded through the first event that the car lock is unlocked, the second event is used to ask the user whether the car lock is unlocked by mistake and receive the lock lock instruction issued by the user. In actual applications, when a relay attack occurs, it is obvious that the unlocking behavior is not what the user expects, and the car lock needs to be closed as soon as possible; or, when there is no relay attack, the senseless unlocking may also result in the accidental unlocking. Therefore, after the user is reminded that the car lock is unlocked, an interactive entrance should be provided for the user to quickly lock the car door.

[0085] To facilitate further understanding of the unlocking method provided by the embodiments of the present application, several embodiments are listed below.

[0086] First, an example embodiment applicable to the scenario where the terminal device is in the locked screen state before unlocking is listed. This example embodiment triggers the senseless unlocking according to whether the terminal device such as the mobile phone / car key is in the locked screen state and whether it is in motion. After unlocking, a prompt is added on the side of the terminal device such as the mobile phone / key, so that the user can know in a short time that the car lock is accidentally opened or accidentally opened due to an attack, and then immediately issue a lock command or manually lock the door on site to eliminate the risk. For details, see Figure 5 As shown, this embodiment may include the following process:

[0087] Step 501, the terminal device discovers a first target signal sent by a target device;

[0088] For example, the terminal device searches for the target device (i.e. Figure 5 If a beacon frame is sent by the vehicle-mounted target device shown in , and the signal is lost in the previous query cycle, and the signal is found in the next query cycle, it is determined that the target device is found and enters the target signal range of the target device.

[0089] It should be noted that the terminal device can regard the signal sent by the target device as the target signal, and the target device can also regard the signal sent by the terminal device as the target signal. For the convenience of description, the signal sent by the terminal device is defined as the first target signal, and the signal sent by the target device is defined as the second target signal.

[0090] Step 503: The terminal device detects that it is in a locked screen state;

[0091] Step 505, the terminal device detects that it is in motion;

[0092] Step 507, establishing a secure connection between the terminal device and the target device;

[0093] Establishing a secure connection means performing security authentication for communication. Different communication technologies correspond to different security authentication methods. For example, in one possible implementation, when Bluetooth communication is performed between the terminal device and the target device, security authentication can be performed based on encryption authentication mechanisms such as Secure Simple Pairing (SSP), Secure Connections, and LESecure Connections. For another example, when Wi-Fi communication is performed between the terminal device and the target device, Wi-Fi Protected Access-PreShared Key (WPA-PSK) / WPA2-PSK authentication mechanism can be used.

[0094] Step 509, the terminal device sends an unlock message to the target device;

[0095] Step 511, after unlocking, the target device sends an unlock success message to the terminal device;

[0096] Step 513: After receiving the unlocking success message, the terminal device prompts the user that the car lock has been unlocked;

[0097] In a possible implementation, after the terminal device receives a message of successful unlocking from the target device, the terminal device triggers a first event to prompt the user that the target electronic lock corresponding to the target device has been opened. The prompt method can be at least one of sound, vibration, text message push, and screen lighting, wherein the sound includes voice, ringtone, buzzer, and other types of prompt tones. The first event can specifically be one or a combination of two or more of voice broadcast, ringing, buzzing, vibration, push message push, and screen lighting. If the terminal device is in a locked screen state, you can choose vibration or sound prompts, such as voice broadcasting "Your vehicle has been unlocked" after the lock has been unlocked. You can also combine different prompt methods, such as voice broadcasting while vibrating, or ringing while vibrating, to remind the user that the car lock is open, or display a pushed push message in the lock screen interface. If the terminal device is in a unlocked screen state, it can display a pushed push message, or other push text message methods to prompt the user. In this embodiment, it is a low-probability event that the terminal device changes from the locked screen state in step 502 to the unlocked screen state, so when executing step 513, the prompt method corresponding to the locked screen state can be used.

[0098] Step 515: The terminal device detects the user's operation of unlocking the device.

[0099] In this embodiment, after hearing the voice prompt or feeling the vibration prompt of the mobile phone, if the user does not unlock the door by his own will, he will actively open the mobile phone to check. If the user does not unlock the mobile phone but chooses to ignore the prompt, it is likely that the door was unlocked by the user's own will and has not been attacked by a relay.

[0100] Step 517, asking the user whether the car lock is opened by mistake and whether to close the car lock.

[0101] This step 517 can be implemented by triggering a second event, which is used to ask the user whether the car lock is opened by mistake and receive a lock-locking instruction issued by the user. As an implementation method, after the user unlocks the mobile phone, a dialog box or an option prompt box can be popped up to ask the user whether the car lock is opened by mistake and whether the user wants to close the car lock. In the dialog box or the option prompt box, at least a lock-locking button is set to confirm whether the car lock is opened by mistake, so as to receive the lock-locking instruction from the user.

[0102] For example, see Figure 6In the locked screen state, in step 513, a vibration combined with a screen lighting method is used to remind the user that the car lock is open. When the first event is triggered, an example of an interface of the terminal device is shown in the interface I1 in the figure. At this time, the screen is lit in the locked screen state, and a notification message "Your car lock is open, click to view details" pops up. If a relay attack is received at this time, the user will notice that the unlocking is abnormal and will quickly unlock the screen. At this time, the terminal device detects the user's unlocking instruction, unlocks the screen, and pops up an option prompt box as shown in interface I2, "Your car lock is open, is it opened by mistake?" and sets the options for locking "accidentally opened, lock closed" and "ignore" options. The user can click the "accidentally opened, lock closed" option to issue a lock closing instruction to control the car lock to close again. When the user selects "ignore" or does not perform any operation, the option prompt box disappears automatically.

[0103] Optionally, step 506 may be added between step 505 and step 507, where the terminal device detects the signal strength of the received target signal, and when it is determined that the signal strength exceeds a specified threshold, step 507 is executed; or, a step of detecting signal strength may be added between step 501 and step 503; or, a step of detecting signal strength may be added between step 503 and step 505, so that the terminal device can detect the signal strength of the received target signal based on the received target signal. Figure 5 The illustrated embodiments give rise to numerous further embodiments.

[0104] Optionally, Figure 5 The embodiment shown may also not include step 515, that is, after the terminal device prompts the user that the car lock is opened, the user does not need to unlock the terminal device, and can directly confirm whether it is an accidental opening on the lock screen interface of the terminal device. Figure 6 Interface I2 in the figure can also be an interface when the terminal device is in the lock screen state. The user can issue a lock command by clicking the "accidental open, lock" option to control the car lock to be closed again; when the user selects "ignore" or does not perform any operation, the option prompt box disappears automatically.

[0105] Here is another example of an embodiment applicable to a scenario where the terminal device is in a unlocked state before unlocking. Figure 7 As shown, this embodiment may include the following process:

[0106] Step 701, the terminal device discovers a first target signal sent by a target device;

[0107] Step 702: The terminal device detects that it is in a screen unlocking state;

[0108] Step 703, the terminal device detects that it is in motion;

[0109] Step 704, the terminal device detects the signal strength of the received first target signal;

[0110] Step 705: Establishing a secure connection between the terminal device and the target device;

[0111] Step 706, the terminal device sends an unlock message to the target device;

[0112] Step 707, after unlocking, the target device sends an unlock success message to the terminal device;

[0113] Step 708: After receiving the unlock success message, the terminal device pushes a push message indicating that the car lock has been opened and provides a shortcut for locking. Step 708 can be implemented by triggering a third event. The third event can be used to provide a shortcut to receive a locking instruction issued by the user. In this embodiment, the third event is used to push a push message indicating that the car lock has been opened and provide a shortcut for locking.

[0114] This embodiment realizes the senseless unlocking when the terminal device is in the unlocked state, which is applicable to the scenario where the user is operating a terminal device such as a mobile phone while walking towards the vehicle. For example, the user is making a voice or video call, or editing a text message, etc. while walking towards the vehicle. It should be noted that, unlike Figure 5 The corresponding embodiment, Figure 7 In the scenario applicable to the embodiment shown, the user keeps the phone unlocked while walking towards the vehicle. In most cases, there are important matters or matters of interest being processed. Therefore, in this embodiment, the emphasis is on reducing interference to the user. Therefore, in step 708, after the unlocking is successful, a third event can be triggered to remind the user that the unlocking has been started in the form of a text message such as a push message, instead of using reminders such as ringing or vibration that may interfere with the user. In addition, to ensure safety, a shortcut for the user to close the car lock is provided. For example, the shortcut can be to provide a floating window with a lock button in the floating window. When the user clicks the lock button, it will not affect the operation of the current main interface program. Optionally, in Figure 7 In the illustrated embodiment, the terminal device may also ring or vibrate to remind the user that the vehicle locks are unlocked in a manner that is less likely to be ignored by the user.

[0115] For example, referring to Figure 8(a) and Figure 8(b), Figure 8(a) exemplarily shows that when the terminal device is in the unlocked state and the current interface is the waiting interface for answering the video chat, a push message "**** Tip: The car lock is successfully opened!" is pushed, and Figure 8(b) exemplarily shows that when the terminal device is in the unlocked state and the current interface is the chat interface, a push message "**** Tip: The car lock is successfully opened!" is pushed, where **** can be the name of the APP installed on the terminal device for implementing the unlocking method provided in the embodiment of the present application. Optionally, the user can view the push message by sliding down the notification bar. Figures 8(a) and 8(b) are only examples, and the triggering of the third event can also be executed in multiple other interface states, which are not listed one by one in the embodiment of the present application. And in the third event, the unlocking success message is not limited to being pushed in the form of a push message, for example, it can also be notified to the user in the form of a floating box.

[0116] The third event is also used to provide a shortcut for locking, and the shortcut may be a corresponding link button attached to the push message, for example, “click to quickly lock” as shown in FIG. 8( a ) and FIG. 8( b ).

[0117] Above Figure 5 and Figure 7 The steps for unlocking without feeling are shown. Fig. 9 As shown, after the non-contact unlocking is performed in step 900, the following steps may also be included:

[0118] Step 901, the user confirms the mistaken opening;

[0119] When the terminal device receives an instruction from the user to confirm the accidental opening or a lock message, it is deemed that the user has confirmed the accidental opening.

[0120] Step 902: The terminal device sends a Fig. 9 The vehicle-mounted target device shown in (a) sends a lock message;

[0121] Step 903, the terminal device discovers the first target signal again;

[0122] Step 904, the terminal device starts timing, and no more sensorless unlocking is performed during the first timing period;

[0123] Step 905, the terminal device loses the first target signal;

[0124] If the terminal device cannot search for the signal sent by the target device, it is considered to have lost the first target signal. For example, the beacon frame broadcast by the target device cannot be received.

[0125] Step 906, the terminal device rediscovers the first target signal;

[0126] Step 907: the terminal device performs contactless unlocking again.

[0127] Specifically, in a possible implementation manner, see Fig.10 As shown, after the non-sensing unlocking, the non-sensing unlocking function will no longer be executed within the first timing cycle, which can be achieved by Fig.10 The process shown is implemented as follows:

[0128] Step 1001, the user confirms the mistaken opening;

[0129] Step 1002, determine whether the first target signal is lost? If yes, the user is out of the signal range of the vehicle at this time, and return to step 1000 to continue waiting for the user to carry the terminal device back to the vicinity of the vehicle again (that is, the terminal device can detect the first target signal) to perform non-sensing unlocking; if no, go to step 1003;

[0130] Step 1003: Start a timer to start timing, and the timing duration is a first timing cycle.

[0131] Step 1004, determine whether the first timing cycle has been reached? If yes, the timing ends and returns to step 1000; if no, it is still in the first timing cycle and goes to step 1005;

[0132] Step 1005, interrupting the non-contact unlocking process. During the first timing period, even if the first target signal is detected again, the non-contact unlocking is not performed. For example, a feasible control method may be to send an interrupt signal to the process corresponding to the non-contact unlocking to interrupt the process when it is determined that the timing has not ended.

[0133] Fig.10 The embodiment shown can solve the problem that the terminal device repeatedly reminds the user whether to unlock the car and disturbs the user in the following scenario. Specifically, the user moves around the car, causing the terminal device to repeatedly leave the signal range of the on-board target device and repeatedly enter the signal range of the on-board target device. Fig. 9 In the embodiment shown, each time the vehicle-mounted target device rediscovers the first target signal, the terminal device will unlock the car again without any sense, causing the car lock to repeatedly open and close and the terminal device to repeatedly ask the user whether to unlock the car, which will cause interference to the user. Fig.10 The illustrated embodiment can solve the above problem by starting the timer at step 1003. Before the timer ends, step 1005 is executed to interrupt the non-sensing unlocking caused by rediscovering the first target signal, thereby reducing interference to the user in this scenario.

[0134] Fig. 9 or Fig.10 The following is a feasible implementation method of non-sensing unlocking. It should be noted that: Fig. 9 Step 900 or Fig.10 Step 1000 shown in the figure may include a process from the terminal device detecting the first target signal to unlocking the vehicle lock in any embodiment, for example, step 900 or 1000 may specifically include Figure 5 Steps 501 to 517 shown, or including Figure 7 Steps 701 to 708 are shown. Thus, Fig. 9 or Fig.10 The process shown can be Figure 5 or Figure 7 By combining the processes shown in the figure, other embodiments can be obtained. For example, Figure 5 Steps 501 to 517 shown are similar to Fig.10 The combination of steps 1001 to 1005 shown can obtain an embodiment. Figure 7 Steps 701 to 708 shown in FIG. Fig.10 By combining the steps 1001 to 1005 shown, another embodiment can be obtained.

[0135] The above embodiments use a technical means of at least performing motion detection after entering the first target signal range. In another embodiment, after detecting that the user has entered the vehicle signal range, the user is actively asked whether to unlock the vehicle. The following are embodiments based on the active inquiry method.

[0136] For an example of an embodiment applicable to a scenario where the terminal device is in a unlocked state before unlocking, refer to Fig.11 As shown, this embodiment may include the following process:

[0137] Step 1101, the terminal device discovers a first target signal sent by a target device;

[0138] Step 1103, the terminal device detects that it is in motion;

[0139] Step 1105: The terminal device asks the user whether to unlock the door.

[0140] The step of asking the user whether to unlock the lock is realized by triggering a fourth event, and the fourth event is used to ask the user whether to unlock the target electronic lock corresponding to the target device, and wait for receiving an unlocking instruction from the user.

[0141] Step 1107, the terminal device receives an unlocking instruction issued by the user to confirm unlocking;

[0142] Step 1109, the terminal device establishes a secure connection with the target device;

[0143] Step 1111, the terminal device generates an unlocking message based on the user's unlocking instruction and sends it to the target device;

[0144] Step 1113, the terminal device receives the unlocking success message sent by the target device;

[0145] Step 1115: the terminal device prompts the user that the unlocking is successful. Step 1115 can be implemented by triggering the fifth event.

[0146] Optionally, between step 1103 and step 1105, step 1104 may be added, and step 1104 may be: when the terminal device detects that it is in a screen-unwrapped state, step 1105 is executed; or step 1104 may be: when the signal strength of the first target signal received by the terminal device exceeds a specified threshold, step 1105 is executed; or step 1104 may be: when the terminal device detects that the screen is in a screen-unwrapped state and the signal strength of the first target signal received exceeds a specified threshold, step 1105 is executed; or step 1104 may be: when the terminal device detects that it is in a screen-unwrapped state or the signal strength of the first target signal received exceeds a specified threshold, step 1105 is executed. In this way, based on Fig.11 The process shown can be used to obtain multiple embodiments.

[0147] For example, see Fig.12 As shown, for example, the user is watching a video, and the interface status of the terminal device is as follows Fig.12 In the interface I3 shown in FIG. 1 , when the terminal device detects that the terminal device is in the unlocked state, the signal strength threshold exceeds the specified threshold and is in motion, the fourth event is triggered and a pop-up is shown as follows: Fig.12 The option prompt box shown in the middle interface I4 reads "*** detects that your vehicle is nearby, do you want to unlock the car?" and at least sets an "unlock" button. After the user clicks the "unlock" button, the terminal device sends an unlock message to the target device, so that it controls the target electronic lock to change from a locked state to an unlocked state. After receiving the unlock success notification returned by the target device, a push message is pushed on the current interface or a floating box pops up to display "Car lock opened successfully". For the corresponding interface example, see Fig.13 Interface I5.

[0148] It should be noted that Fig.11 The illustrated embodiments are not limited to scenarios where the terminal device is in the unlocked screen state. When the terminal device is in the locked screen state, it can also actively pop up a dialog box or option prompt box to let the user choose whether to unlock the device when it detects that the current state of the terminal device, such as the signal state and motion state, meets the unlocking conditions. Among them, unlike the implementation method in the unlocked screen state, in the solution implemented in the locked screen state, the method of triggering the fourth event, that is, actively asking the user whether to unlock the device, should be more obvious so that the user can notice it. For example, it can be a prompt method that combines vibration, ringing, and lighting up the screen. In this way, referring to Fig.11The process shown and the related text descriptions can obtain multiple other implementation examples in the lock screen state, which will not be introduced one by one here.

[0149] It should be noted that Fig. 9 or Fig.10 The feasible method shown in the figure can also be implemented after the non-sensing unlocking process. Fig.11 or Fig.12 The non-sensing unlocking process in the embodiment can be combined to obtain multiple other embodiments.

[0150] In another possible implementation, after sending an unlock message to the target device, the following operations may be performed: obtaining the switch state information of the switch device corresponding to the target electronic lock, and based on the switch state information, determining that the switch device is not opened within the second timing period, sending a lock message to the target device. The lock message is used to notify the target device to control the target electronic lock to change from an unlocked state to a locked state. This implementation is mainly used in application scenarios where the user does not actually open the car door or the door after the target electronic lock such as a car lock or door lock is opened. Among them, the switch device can be a car door, a house door, a car trunk lid, etc., and the target electronic lock can be a house door, a car door, an electronic lock on the trunk, etc. In actual application scenarios, it is possible that after the electronic lock such as a car lock or door lock is opened, the user does not pull the handle of the car door or the door, and the door or car door is still in a closed state. In this case, the car door or the house door is not opened, which means that the user has no actual need to open the car door at this time. It may be opened by mistake, or the user may have something else to do temporarily and leave after approaching the vehicle. At this time, if the unlocking or door lock continues to be opened, there will be a safety risk. Therefore, when it is detected that the switch device corresponding to the target electronic lock has not been opened within a certain time period (the second timing period), it will be automatically locked. For example, the second timing period can be 3-5 minutes. This implementation method can be combined with the unlocking process in any embodiment to obtain multiple other embodiments.

[0151] The above embodiments are all described from the perspective of the terminal device as the execution subject. In practical applications, the above unlocking method can also be implemented based on the target device (such as a vehicle-mounted target device). In another part of the embodiments, the unlocking method process implemented based on the target device includes: after determining that the terminal device has entered the signal range of the first target signal emitted by the target device, obtaining the motion state information of the terminal device; when determining that the terminal device is in a motion state based on the motion state information, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state; sending a first instruction to the terminal device so that the terminal device triggers a first event, wherein the first event is used to prompt the user that the target electronic lock has been opened.

[0152] Alternatively, in another part of the embodiments, the unlocking method process implemented based on the target device may include: after determining that the terminal device has entered the signal range of the first target signal emitted by the target device and the terminal device is in a predetermined motion state, sending a fourth instruction to the terminal device to cause the terminal device to trigger a fourth event, the fourth event being used to ask the user whether to open the target electronic lock corresponding to the target device, and waiting for receiving the unlocking instruction from the user; after determining that the unlocking message sent by the terminal device is received, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state; the unlocking message is generated after the terminal device determines that the unlocking instruction is received.

[0153] Several embodiments of executing the unlocking method based on the target device are listed below.

[0154] See also Fig.14 As shown, taking the car unlocking scenario as an example, this unlocking method performs automatic unlocking when the terminal device enters the signal range and is in motion. The specific process is as follows:

[0155] Step 1401, the target device detects that the terminal device is within the signal range;

[0156] Step 1402, the target device establishes a secure connection with the terminal device;

[0157] Step 1403, the target device performs at least one of detecting the signal strength of the second target signal, obtaining the screen status information of the terminal device, and obtaining the motion status information of the terminal device; the at least one item includes any one or any combination of two or more thereof. Among them, the screen status information indicates whether the screen is locked or unlocked, the motion status information indicates whether the terminal device is in a predetermined motion state, and the signal strength of the second target signal is the signal strength of the signal sent by the terminal device that the target device can receive.

[0158] Step 1404, the target device determines that the terminal device meets the unlocking condition;

[0159] It should be noted that the target device can determine whether the terminal device meets the unlocking condition according to at least one of the signal strength, screen status information and motion status information obtained in the above step 1403, and the unlocking condition at least includes: being within the signal range of the target device and being in a predetermined motion state. In other embodiments, the unlocking condition may also include the following conditions: at least one of the locked screen state and the signal strength exceeding a specified threshold.

[0160] Step 1405, sending an unlocking control signal to the target electronic lock;

[0161] Step 1406: After detecting that the target electronic lock has been opened, a first instruction is sent to the terminal device. The first instruction is used to trigger a first event to notify the user that the vehicle lock has been opened.

[0162] See also Fig.15 As shown, in another embodiment of the unlocking method based on target setting, after detecting that the terminal device enters the signal range, the user is actively asked whether the lock needs to be unlocked, which may specifically include the following process:

[0163] Step 1501, the target device detects that the terminal device is within the signal range;

[0164] Step 1502, the target device establishes a secure connection with the terminal device;

[0165] Step 1503, the target device performs at least one of detecting the signal strength of the second target signal, acquiring the screen state information of the terminal device, and acquiring the motion state information of the terminal device;

[0166] Step 1504: The target device determines that the terminal device meets the unlocking condition. In this embodiment, the unlocking condition at least includes: the terminal device is within the signal range of the target device; in other embodiments, the unlocking condition may also include the following conditions: being in a predetermined motion state, the signal strength exceeds a specified threshold, and the screen is unlocked.

[0167] Step 1505, send a fourth instruction to the target electronic lock; the fourth instruction is used to notify the terminal device to trigger a fourth event.

[0168] Step 1506: Receive an unlock message. The unlock message is generated by the terminal device after confirming that an unlock instruction sent by the user is received.

[0169] Step 1507: Send an unlocking control signal to the target electronic lock.

[0170] Step 1508, after detecting that the target electronic lock has been opened, sending a fifth instruction to the terminal device to trigger the terminal device to execute a fifth event to notify the user that the lock is unlocked successfully.

[0171] Among the above steps, at least 1503 and 1504 are optional steps. By default, steps 1503 and 1504 can obtain other embodiments. Moreover, by changing the selection of the information items in 1503 and 1504, multiple other embodiments can be obtained accordingly, and are not limited to the above. Fig.15 shown.

[0172] After the unlocking process is performed based on the target device, the following operations can also be performed based on the target device:

[0173] Method 1: After determining that a lock message sent by a terminal device is received, the target electronic lock corresponding to the target device is controlled to change from an unlocked state to a locked state. Afterwards, if it is detected that the terminal device is within the signal range, the timing of the first timing cycle is triggered. During the first timing cycle, the unlock message is shielded and the target electronic lock is controlled to always remain in a locked state.

[0174] Method 2: After confirming that the lock message sent by the terminal device is received, after detecting that the terminal device is out of the signal range, and then detecting that the terminal device enters the signal range again and is in motion, the target electronic lock corresponding to the target device is controlled to change from a locked state to an unlocked state.

[0175] Method three: detecting the switch state information of the switch device corresponding to the target electronic lock, and based on the switch state information, determining that the switch device is not opened within the second timing period, controlling the target electronic lock to change from the unlocked state to the locked state.

[0176] The above three methods can be combined with each other, and can be combined with any unlocking process executed based on the target device in the above embodiments to obtain multiple embodiments.

[0177] The above embodiment describes the implementation process of the unlocking method provided in the embodiment of the present application. The device provided in the embodiment of the present application is described below.

[0178] See also Fig.16 As shown, Fig.16 The system architecture corresponding to the solution provided by the embodiment of the present application is shown. The system architecture may include a target device side (such as a lock, a car door, a house door, etc.) and a terminal device side (such as a smart car key, a smart phone, etc.). Among them, from the perspective of software function module implementation, multiple function modules can be integrated on the terminal device side, for example, it may include: a lock screen unlock verification module for detecting the lock screen state and detecting the user's screen unlocking action, etc., a user operation function module, which may include a keyboard and a touch screen for displaying relevant prompt messages, inputting user instructions, sensing user operations, etc.; a user notification function module for triggering and executing the first to fifth events mentioned above; a first security communication module for wireless communication with the target device; and a motion detection module for detecting the user's motion parameters and determining whether the user is in motion.

[0179] On the target device side, the following multiple functional modules can be integrated: a user notification function module, which is different from the user notification function module on the terminal device side. The user notification function module set on the target device side generally reminds the user that the car lock is opened through sound or light after the unlocking is successful; a lock module, which may include a physical lock and a control module for controlling the switch lock; a second security communication module, which is used for wireless communication with the terminal device.

[0180] Specifically, the various modules and corresponding functions that may be involved in the solution provided in the embodiment of the present application are shown in Table 1 below:

[0181] Table 1

[0182]

[0183]

[0184] The above system architecture is only the hardware and software infrastructure for implementing the unlocking method of the embodiment of the present application. The modules shown in Table 1 are only for the convenience of understanding the solution of the present application. The above system architecture and each module cannot be understood as a necessary limitation of the device provided by the embodiment of the present application. The device provided by the embodiment of the present application is further introduced from the perspective of hardware implementation.

[0185] The embodiment of the present application also provides a terminal device, which may include: a processor; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed, the terminal device may execute any of the methods described in the above embodiments based on the execution of the terminal device.

[0186] The embodiment of the present application also provides a target device, which may include: a processor; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions. When the instructions are executed, the target device may execute any of the methods described in the above embodiments based on the target device.

[0187] A feasible product hardware architecture of the terminal device 170 provided in the embodiment of the present application is shown in Fig.17 As shown, the hardware architecture of the terminal device 170 may include:

[0188] Display screen 171 is used to prompt the user that the target electronic lock has been opened, for example, Figure 6, FIG8 (a) FIG8 (b) and other figures. Specifically, the display screen 171 may include a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 170 may include at least one display screen 171.

[0189] It should be noted that the display screen 171 is an optional component of the terminal device, not a necessary component. In most embodiments, for example, when the terminal device is a mobile phone, a display screen needs to be provided; in some embodiments, the terminal device may not be provided with a display screen, for example, when the terminal device is a car key, a display screen may not be provided. Fig.17 The structure shown is merely an exemplary structure and should not be construed as a necessary limitation on the terminal device.

[0190] The sensor group 172 includes at least one sensor, specifically, at least one of a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, a vibration sensor, a linear velocity sensor, and an angular velocity sensor.

[0191] The processor 173 includes one or more processing units. For example, the processor 173 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a digital signal processor (DSP), etc. Different processing units may be independent devices or integrated into one or more processors.

[0192] The memory 174 is used to store the above-mentioned computer instructions and data such as motion parameters of the terminal device. The memory 174 can be an external memory independent of the processor 173, or it can be set in the processor 173. For example, in some embodiments, the memory built into the processor 173 can be a cache memory, which is used to save instructions or data that the processor 173 has just used or cyclically used. If the processor 173 needs to use the instruction or data again, it can be directly called from the cache memory. Repeated access is avoided and the waiting time of the processor 173 is reduced.

[0193] The memory can be a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), a magnetic disk storage medium or other magnetic storage device, or it can also be 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.

[0194] The power management module 175 receives input from the battery and / or charging management module, and supplies power to the processor 173, the memory 174, the display screen 171, and the sensor group 172. The power management module 175 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 175 can also be set in the processor 173. In other embodiments, the power management module 175 and the charging management module can also be set in the same device.

[0195] It is understood that the structures illustrated in the drawings of the embodiments of the present application do not constitute a specific limitation on the terminal device 170. In other embodiments of the present application, the terminal device 170 may include more or fewer components than shown in the drawings, or combine certain components, or split certain components, or arrange the components differently. The components shown in the drawings may be implemented in hardware, software, or a combination of software and hardware.

[0196] For example, in one possible implementation, see Fig.18 As shown, the terminal device 170 may further include:

[0197] The speaker 176 and the audio circuit 180 are connected to the processor 173 through the audio circuit, and are used to prompt the user in a voice manner when any event from the first event to the fifth event is executed. Figure 6 The interface shown in the figure will broadcast "Your surveying and mapping institute has been opened, please click to view details" and after detecting that the user has unlocked the screen, continue to broadcast "Your car lock has been opened, is it opened by mistake?".

[0198] The motor 177 provides vibration power for the terminal device 170. As an implementable method, the motor is a 7GERM motor, which has a vibration capability about 7 times stronger than that of an ordinary smart phone. The motor is used to remind the user by vibration, for example, to remind the user that the car lock is unlocked or to vibrate at the same time when a prompt box pops up asking the user for an option.

[0199] Input unit 178, the input unit is used to input the user's unlocking command or locking command. Specifically, as an implementable manner, the input unit 178 can be integrated with the display screen 171 to form a touch display screen; the input unit 178 can also include a pressure sensor ( Fig.17 (not shown), the pressure signal generated by the user is sensed by a pressure sensor, and the pressure signal can be converted into an electrical signal to complete the user command input. In some embodiments, the pressure sensor can be arranged on the display screen 171. There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. When a touch operation acts on the display screen 171, the terminal device 170 detects the touch operation intensity according to the pressure sensor. The terminal device 170 can also calculate the touch position according to the detection signal of the pressure sensor. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity exceeding the first pressure threshold acts on the corresponding button, it is deemed that the user has issued a corresponding instruction. For example, when the user clicks the unlock button with an operation force greater than the first pressure threshold, it is deemed that the user has issued an unlock instruction.

[0200] The wireless communication unit 179 is used for wireless communication with the target device, and is specifically used to control the effective distance of wireless communication between the target device and the target device within a specified value, such as within 10 meters or 5 meters. In some embodiments, it is also used to calculate the signal strength of the target signal received from the target device and output it to the processor, or transmit the signal characteristics of the received target signal to the processor so that the processor determines the signal strength. Specifically, the wireless communication unit 179 can support solutions for short-range wireless communication including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), near field communication technology (NFC), etc. applied to the terminal device 170. The wireless communication unit 179 can be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves via an antenna, modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 173. The wireless communication module can also receive the signal to be sent from the processor 173, modulate the frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna.

[0201] In one implementation, the sensor group 172 includes a gyroscope, a gravity sensor, and an acceleration sensor.

[0202] In one implementation, the processor 173 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a general-purpose input / output (GPIO) interface, and / or a universal serial bus (USB) interface, etc.

[0203] The processor 173 may include multiple groups of I2C buses, and the processor 173 may be coupled to the sensor group 172, the power management module 175, the flash 120, etc. through different I2C bus interfaces. For example, the processor 173 may be coupled to the display screen 171 through the I2C interface, so that the processor 173 and the display screen 171 communicate through the I2C bus interface.

[0204] In one implementation, the processor 173 may include multiple I2S buses, and the I2S interface may be used for audio communication. The processor 173 may be coupled to the audio circuit 180 via the I2S bus to achieve communication between the processor 173 and the audio circuit 180, thereby controlling the speaker 176 to emit sound.

[0205] The present application also provides a device, which includes:

[0206] One or more processors; a memory; at least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the following steps: after determining that the terminal device enters into the signal range of the target signal emitted by the target device, obtain the motion state information of the terminal device; when determining that the terminal device is in a motion state based on the motion state information, control the target electronic lock corresponding to the target device to change from a locked state to an unlocked state; and send a first instruction to the terminal device so that the terminal device triggers a first event, wherein the first event is used to prompt a user that the target electronic lock has been opened.

[0207] Alternatively, when the instruction is executed by the device, the device performs the following steps:

[0208] After determining that the terminal device has entered the signal range of the target signal emitted by the target device, a fourth instruction is sent to the terminal device to cause the terminal device to trigger a fourth event, wherein the fourth event is used to inquire the user whether to open the target electronic lock corresponding to the target device, and wait for receiving the unlocking instruction from the user; after determining that the unlocking message sent by the terminal device is received, the target electronic lock corresponding to the target device is controlled to change from a locked state to an unlocked state; the overhead message is generated after the terminal device determines that the unlocking instruction is received.

[0209] The embodiment of the present application also provides a computer storage medium, including computer instructions, which, when executed on an electronic device, causes the electronic device to execute the following Figure 5 , Figure 7 , Figure 9-11 , Figure 14-15 The method shown in any one of the items.

[0210] The embodiment of the present application also provides a chip system, including: a communication interface for inputting and / or outputting information; a processor for executing a computer executable program so that a device equipped with the chip system executes the following Figure 5 , Figure 7 , Figure 9-11 , Figure 14-15 The method shown in any one of the items.

[0211] It should be understood that in the various embodiments of the present application, “first”, “second”, etc. are only used to refer to different objects and do not mean any other limitations on the objects referred to.

[0212] It should be understood that the term "unit" in the embodiments of the present application can be implemented in the form of software and / or hardware, and is not specifically limited to this. For example, a "unit" can be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit, and / or other suitable components that support the described functions.

[0213] Therefore, the units of each example described in the embodiments of the present application can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.

[0214] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent the existence of A alone, the existence of A and B at the same time, and the existence of B alone. Among them, A and B can be singular or plural. The character " / " generally indicates that the previous and subsequent associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0215] Those of ordinary skill in the art will appreciate that the various units and algorithm steps described in the embodiments disclosed herein can be implemented in a combination of electronic hardware, computer software, and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0216] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0217] In several embodiments provided in the present application, any function can be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0218] The above is only a specific implementation of the present application. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An unlocking method, applied to a terminal device, characterized in that: The method comprises: Determining that the terminal device enters into a signal range of a first target signal emitted by a target device; When the terminal device is detected to be in a predetermined motion state, an unlocking message is sent to the target device; the unlocking message is used to notify the target device to control the corresponding target electronic lock to change from a locked state to an unlocked state; the predetermined motion state includes one or more of walking, running, and jumping; triggering a first event, wherein the first event is used to prompt a user that the target electronic lock has been opened; triggering a second event, wherein the second event is used to inquire the user whether the door is opened by mistake and receive a lock instruction issued by the user; After determining that a lock instruction issued by the user is received, a lock message is sent to the target device, and when it is detected that the terminal device is within the signal range, the timing of the first timing cycle is triggered; within the first timing cycle, the operation of sending an unlock message to the target device is interrupted.

2. The method according to claim 1, characterized in that After determining that the terminal device enters into a signal range of a first target signal sent by a target device and before sending an unlocking message to the target device, the method further includes: detecting the signal strength of the target signal; The step of sending an unlocking message to the target device when detecting that the terminal device is in a predetermined motion state comprises: When it is detected that the signal strength of the first target signal exceeds a specified threshold and the terminal device is in a predetermined motion state, an unlocking message is sent to the target device.

3. The method according to claim 1, characterized in that After determining that the terminal device enters into a signal range of a first target signal sent by a target device and before sending an unlocking message to the target device, the method further includes: Detecting whether the terminal device is in a locked screen state; The step of sending an unlocking message to the target device when detecting that the terminal device is in a predetermined motion state comprises: When it is detected that the terminal device is in a locked screen state and the terminal device is in a predetermined motion state, an unlocking message is sent to the target device.

4. The method according to claim 1, characterized in that The triggering of the second event includes: When it is detected that the terminal device is in a locked screen state, a second event is triggered after it is determined that a screen unlocking instruction issued by the user is received; wherein the screen unlocking instruction is used to unlock the terminal device.

5. The method according to claim 1 or 4, characterized in that After the second event is triggered, the method further includes: After receiving the lock instruction from the user, it is determined that the terminal device is outside the signal range; After detecting that the terminal device is outside the signal range, and in the case where it is detected that the terminal device enters the signal range again, the operation of sending an unlocking message to the target device in the case where it is detected that the terminal device is in a predetermined motion state is performed.

6. The method according to claim 1 or 2, characterized in that: After sending an unlock message to the target device, the method further includes: A third event is triggered, where the third event is at least used to provide a shortcut to receive a lock instruction issued by a user.

7. The method according to any one of claims 1 to 4, characterized in that After sending the unlock message to the target device, the method further includes: Acquire switch status information of a switch device corresponding to the target electronic lock; Based on the switch state information, when it is determined that the switch device is not opened within a second timing period, a lock message is sent to the target device; the lock message is used to notify the target device to control the target electronic lock to change from an unlocked state to a locked state.

8. The method according to claim 1, characterized in that After sending the unlock message to the target device, the method further includes: When it is determined that the terminal device is outside the signal range of the first target signal, a lock message is sent to the target device; the lock message is used to notify the target device to control the target electronic lock to change from an unlocked state to a locked state.

9. The method according to any one of claims 1 to 4 or 8, characterized in that The predetermined motion state is determined based on data collected by a motion sensor of the terminal device, and the motion sensor includes one or more of a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, a vibration sensor, a linear velocity sensor, and an angular velocity sensor.

10. An unlocking method, applied to a terminal device, characterized in that: The method comprises: Determining that the terminal device enters into a signal range of a first target signal emitted by a target device; When the terminal device is detected to be in a predetermined motion state, a fourth event is triggered, wherein the fourth event is used to inquire the user whether to open the target electronic lock corresponding to the target device, and wait for receiving an unlocking instruction from the user; the predetermined motion state includes one or more of walking, running, and jumping; Determine that the unlock instruction is received, generate a corresponding unlock message and send it to the target device; the unlock message is used to notify the target device to control the target electronic lock to change from a locked state to an unlocked state; triggering a second event, wherein the second event is used to inquire the user whether the door is opened by mistake and receive a lock instruction issued by the user; After determining that a lock instruction issued by the user is received, a lock message is sent to the target device, and when it is detected that the terminal device is within the signal range, the timing of the first timing cycle is triggered; within the first timing cycle, the operation of sending an unlock message to the target device is interrupted.

11. The method according to claim 10, characterized in that The triggering of a fourth event when detecting that the terminal device is in a predetermined motion state includes: When it is detected that the signal strength of the target signal exceeds a specified threshold and the terminal device is in a predetermined motion state, the fourth event is triggered.

12. The method according to claim 10, characterized in that The triggering of a fourth event when detecting that the terminal device is in a predetermined motion state includes: When it is detected that the terminal device is in the unlocked screen state and the terminal device is in a predetermined motion state, the fourth event is triggered.

13. An unlocking method, applied to a target device, characterized in that: The method comprises: Determining that the terminal device enters into a signal range of a first target signal emitted by the target device; Acquire the motion state information of the terminal device; if it is determined based on the motion state information that the terminal device is in a predetermined motion state, control the target electronic lock corresponding to the target device to change from a locked state to an unlocked state; the predetermined motion state includes one or more of walking, running, and jumping; Sending a first instruction to the terminal device so that the terminal device triggers a first event, wherein the first event is used to prompt a user that the target electronic lock has been opened; Sending a second instruction to the terminal device so that the terminal device triggers a second event, wherein the second event is used to inquire whether the user has opened the door by mistake and receive a locking instruction issued by the user; After determining that a lock message sent by the terminal device has been received, the target electronic lock corresponding to the target device is controlled to change from an unlocked state to a locked state, and, when it is detected that the terminal device is within the signal range, the timing of a first timing cycle is triggered, and within the first timing cycle, the target electronic lock is controlled to remain in a locked state.

14. The method according to claim 13, characterized in that After determining that the terminal device enters into the signal range of the first target signal emitted by the target device and before acquiring the motion state information of the terminal device, the method further includes: Detecting the signal strength of a second target signal emitted by the terminal device; When it is determined based on the motion state information that the terminal device is in a motion state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state includes: When it is detected that the signal strength of the second target signal exceeds a specified threshold and it is determined based on the motion state information that the terminal device is in a predetermined motion state, the target electronic lock corresponding to the target device is controlled to change from a locked state to an unlocked state.

15. The method according to claim 13, characterized in that After determining that the terminal device enters the signal range of the first target signal emitted by the target device, and before controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: Acquiring screen status information of the terminal device; When it is determined based on the motion state information that the terminal device is in a motion state, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state includes: When it is determined based on the motion state information that the terminal device is in motion, and when it is determined based on the screen state information that the terminal device is in a locked screen state, the target electronic lock corresponding to the target device is controlled to change from a locked state to an unlocked state.

16. The method according to any one of claims 13 to 15, characterized in that After controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further includes: After receiving the lock message sent by the terminal device, it is determined that the terminal device is outside the signal range; After detecting that the terminal device is outside the signal range, and in the case that it is detected that the terminal device enters the signal range again, the target electronic lock corresponding to the target device is controlled to change from a locked state to an unlocked state when it is determined that the terminal device is in a motion state based on the motion state information.

17. The method according to any one of claims 13 to 15, after controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, the method further comprises: Detecting switch status information of a switch device corresponding to the target electronic lock; When it is determined based on the switch state information that the switch device is not opened within a second timing period, the target electronic lock is controlled to change from an unlocked state to a locked state.

18. A terminal device, characterized in that: include: one or more processors; Memory; At least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the terminal device, cause the terminal device to execute the method as described in any one of claims 1-9 or 10-12.

19. A target device, characterized in that: include: one or more processors; Memory; At least one application; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and the one or more computer programs include instructions, which, when executed by the device, cause the device to perform the method according to any one of claims 13 to 17.

20. A computer storage medium, characterized in that It comprises 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 1-9, 10-12 or 13-17.

21. A chip system, characterized in that: include: A communication interface for inputting and / or outputting information; A processor, used to execute a computer executable program so that a device equipped with the chip system executes a method as described in any one of claims 1-9 or 10-12 or 13-17.