WO2022257573A1 - Unlocking method and device, and storage medium - Google Patents

Unlocking method and device, and storage medium Download PDF

Info

Publication number
WO2022257573A1
WO2022257573A1 PCT/CN2022/084798 CN2022084798W WO2022257573A1 WO 2022257573 A1 WO2022257573 A1 WO 2022257573A1 CN 2022084798 W CN2022084798 W CN 2022084798W WO 2022257573 A1 WO2022257573 A1 WO 2022257573A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal device
target
state
lock
user
Prior art date
Application number
PCT/CN2022/084798
Other languages
French (fr)
Chinese (zh)
Inventor
甘璐
时锐
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022257573A1 publication Critical patent/WO2022257573A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00309Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys operated with bidirectional data transmission between data carrier and locks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/025Services making use of location information using location based information parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]

Definitions

  • the present application relates to the technical field of intelligent control, in particular to an unlocking method, device and storage medium.
  • the present application provides an unlocking method, device, and storage medium, which can reduce the user's operations when unlocking, and improve the convenience of operation while ensuring safety.
  • the technical solution provides an unlocking method applied to a terminal device.
  • the method includes: determining that the terminal device has entered the signal range of the first target signal sent by the target device; When the device is in a predetermined motion state, send an unlock message to the target device; the unlock message is used to notify the target device to control the corresponding target electronic lock from the locked state to the unlocked state; trigger the first event, The first event is used to prompt the user that the target electronic lock has been opened.
  • the method After determining that the terminal device enters the signal range of the first target signal sent by the target device and before sending an unlock message to the target device, the method It also includes: detecting the signal strength of the target signal; and sending an unlock message to the target device in the case of detecting that the terminal device is in a predetermined motion state, including: detecting the first target signal When the signal strength of the terminal device exceeds a specified threshold and the terminal device is in a predetermined motion state, an unlock message is sent to the target device.
  • the method After determining that the terminal device enters the signal range of the first target signal sent by the target device and before sending an unlock message to the target device, the method It also includes: detecting whether the terminal device is in a locked screen state; and sending an unlock message to the target device in the case of detecting that the terminal device is in a predetermined motion state, including: detecting that the terminal device When the terminal device is in a screen-locked state and the terminal device is in a predetermined motion state, an unlock message is sent to the target device.
  • the method further includes: triggering a second event, where the second event is used to ask the user whether the lock is opened by mistake, and receive a lock instruction from the user.
  • the triggering of the second event includes: when it is detected that the terminal device is in a screen-locked state, triggering the first Two events; wherein, the screen unlocking instruction is used to unlock the terminal device.
  • the method further includes: sending a lock message to the target device after determining that the lock command sent by the user is received; When the terminal device is within the signal range, trigger timing of a first timing period; within the first timing period, interrupt the operation of sending an unlock message to the target device.
  • the method further includes: detecting that the terminal device is outside the signal range after receiving a lock instruction from the user; After the terminal device is out of the signal range, and when it is detected that the terminal device enters the signal range again, perform the step of detecting that the terminal device is in a predetermined motion state. , 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 sent by the user.
  • the method further includes: acquiring switch state information of a switch device corresponding to the target electronic lock; based on the switch state information, determining When the switch device is not opened within the second timing period, send 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 state.
  • the method further includes: when it is determined that the terminal device is outside the signal range of the first target signal, then 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.
  • the predetermined motion state is determined according to the data collected by the motion sensor of the terminal device, and the motion sensor includes a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, and a vibration sensor. , one or more of a linear velocity sensor and an angular velocity sensor.
  • the predetermined motion state includes one or more of walking, fast walking, slow walking, running, jogging, fast running, and jumping.
  • the technical solution provides an unlocking method applied to a terminal device, the method comprising: determining that the terminal device is within the signal range of the first target signal sent by the target device; In the case of a motion state, a fourth event is triggered, and the fourth event is used to ask the user whether to open the target electronic lock corresponding to the target device, and wait for the user to issue an unlock instruction; determine that the unlock instruction is received, and generate a corresponding The unlock message is sent to the target device; the unlock message is used to notify the target device to control the target electronic lock from a locked state to an unlocked state.
  • the triggering the fourth event when it is detected 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 The fourth event is triggered when the terminal device is in a predetermined motion state.
  • the triggering the fourth event when it is detected that the terminal device is in a predetermined motion state includes: when it is detected that the terminal device is in a screen-off state, and the terminal When the device is in a predetermined motion state, the fourth event is triggered.
  • the technical solution provides an unlocking method applied to a target device, the method comprising: determining that the terminal device has entered the signal range of the first target signal sent by the target device; Motion state information; when it is determined 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 from a locked state to an unlocked state; send a first instruction to the terminal device , so that the terminal device triggers a first event, where the first event is used to prompt the user that the target electronic lock has been unlocked.
  • the method further includes : detecting the signal strength of the second target signal sent by the terminal device; in the case of 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 from a locked state
  • Switching to the unlocked state includes: controlling the target device to correspond to The target electronic lock is changed from locked state to unlocked state.
  • the method further includes: obtaining the screen state information of the terminal device; in the case of 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 Changing from the locked state to the unlocked state includes: when it is determined based on the motion state information that the terminal device is in a motion state, and based on the screen state information it is determined that the terminal device is in a lock screen state, controlling the target The target electronic lock corresponding to the device changes from the locked state to the unlocked state.
  • the method further includes: after determining that the 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; During the timing period, the target electronic lock is controlled to maintain a locked state.
  • the method further includes: after determining that the lock message sent by the terminal device is received, It is detected that the terminal device is outside the signal range; after it is detected that the terminal device is outside the signal range, and when it is detected that the terminal device enters the signal range again, perform the It is described that in a case where it is determined that the terminal device is in a moving state based on the moving state information, 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 ; Based on the switch state information, when it is determined that the switch device is not opened within the second timing period, control the target electronic lock from an unlocked state to a locked state.
  • the technical solution provides a terminal device, including: one or more processors; memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in In the memory, the one or more computer programs include instructions, and when the instructions are executed by the terminal device, the terminal device executes the method as described in any one of the first aspect or the second aspect above .
  • the technical solution also provides a target device, including: one or more processors; memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in In the memory, 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 the above third aspects.
  • the technical solution also provides a computer storage medium, including computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes any one of the above-mentioned first aspect to the third aspect. the method described.
  • the technical solution also provides a chip system, including: a communication interface, used for inputting and/or outputting information; a processor, used for executing a computer executable program, so that the device installed with the chip system executes the following steps: The method described in any one of the first to third aspects above.
  • the method and device provided in the embodiments of the present application automatically send an unlock message to unlock the car lock when it detects that the terminal device held by the user enters the vehicle signal range and is in motion, which reduces user operations and prompts the user to unlock the car after unlocking.
  • the lock has been unlocked to increase security; 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 lock, which reduces the user's manual search for the unlock interface and other operations.
  • FIG. 1 is a schematic diagram of a scenario in which a non-inductive unlocking scheme in the related art is attacked by a relay;
  • Fig. 2 is a schematic diagram of a scenario in which a non-inductive unlocking solution combined with a satellite positioning system is used for positioning in the related art
  • Fig. 3 is a schematic diagram of an exemplary scene where the unlocking method provided by the embodiment of the present application is applicable;
  • Fig. 4 is a schematic diagram of another exemplary scenario where the unlocking method provided by the embodiment of the present application is applicable;
  • Fig. 5 is a signaling flow chart of an embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 6 is a schematic diagram of an exemplary interface in an embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 7 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application.
  • Figure 8(a) and Figure 8(b) are schematic diagrams of two exemplary interfaces in another embodiment of the unlocking method provided by the embodiment of the present application;
  • Fig. 9 is a signaling flow chart after non-inductive unlocking in an embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 10 is a schematic flow chart after non-inductive unlocking in an embodiment of the unlocking method provided by the embodiment of the present application;
  • Fig. 11 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 12 is a schematic diagram of an exemplary interface in another embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 13 is a schematic diagram of another exemplary interface in another embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 14 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application.
  • Fig. 15 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application.
  • FIG. 16 is a system architecture diagram corresponding to the unlocking method and equipment provided by the embodiment of the present application.
  • FIG. 17 is a schematic diagram of a hardware structure of an embodiment of a terminal device provided in an embodiment of the present application.
  • FIG. 18 is a schematic diagram of a hardware structure of another embodiment of a terminal device provided in an embodiment of the present application.
  • a typical application scenario where the unlocking method and device provided in the embodiments of the present application can be applied is a car unlocking scene, for example, a scene where a user returns to the vicinity of the vehicle with a terminal device such as a car key or a mobile phone, and is about to unlock the car lock to open a car door or a trunk.
  • a terminal device such as a car key or a mobile phone
  • the methods and devices provided in the embodiments of the present application can also be applied to various other application scenarios that require unlocking, such as unlocking of residential house doors/office doors and other doors, unlocking of electrical equipment and other equipment, electric bicycles/electric
  • Various scenarios such as unlocking of vehicles such as scooters.
  • the car unlocking scene is used as an example below to describe the solution provided by the embodiment of the present application, so that implementation solutions in other scenarios can be adaptively obtained.
  • the basic principle of this kind of non-inductive unlocking scheme is that the effective communication distance range of the weak antenna (ultra-short-range antenna) is generally relatively small, and it can only sense signals within a small distance range around it, for example, it can sense whether the vehicle is within a range of about 1.5 meters , if yes, the key sends an unlock message, and the user can open the door.
  • the weak antenna ultra-short-range antenna
  • the relay attack is a common attack method in the field of communication technology, and the above-mentioned non-sensing unlocking scheme in the related art cannot resist the relay attack.
  • the weak signal sent by the vehicle or mobile phone is amplified, so that the car key or mobile phone, as well as the vehicle, will mistakenly think that the other party is within a short distance and open it.
  • Car lock but the actual signal interaction is to extend the communication distance through the signal amplifier. Therefore, the existing scheme of automatically unlocking the lock without the user's awareness cannot resist relay (signal amplifier) attacks, increases the risk of car theft, and has security problems.
  • an auxiliary technical means currently used to resist the problem of relay attacks is to combine the Global Positioning System (Global Positioning System, GPS) or Beidou satellite navigation when locking the car through the terminal equipment UE0 (such as a mobile phone) System (BeiDou Navigation Satellite System, BDS) and other satellite positioning system positioning information for auxiliary judgment.
  • Vehicle location information or mobile phone location information issued by GPS or BDS is obtained by vehicle C1 or terminal equipment UE0 directly communicating with positioning satellite S1, and will not be affected by nearby signal amplifiers, so it can solve the problem of relay attacks.
  • the accuracy of GPS or BDS civil positioning services is about ⁇ 10 meters, and the range of 10 meters from the vehicle to the mobile phone is still not safe, and there is still the possibility of relay attacks and the risk of theft.
  • another disadvantage that cannot be ignored is that the above-mentioned non-inductive unlocking scheme in the prior art has no obvious timing to trigger the unlocking.
  • Mobile phones and vehicles need to continuously turn on GPS to obtain positioning, and GPS positioning consumes a lot of power. High power consumption, difficult to practical application.
  • the existing above-mentioned non-inductive unlocking schemes currently lack effective methods to solve the existing relay attack problem.
  • 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 the signal transmitted by the weak antenna is received by the vehicle. Only then can it be judged that the vehicle is within a relatively short distance.
  • the weak antenna is not the basic hardware configuration of the mobile phone. The pre-implementation of the mobile phone with the unlocking function requires an additional weak antenna to be installed during the manufacturing process of the mobile phone, which increases the hardware complexity and production cost.
  • the embodiment of the present application proposes a solution, which can reduce user operations and improve the convenience of unlocking compared to the button unlocking solution; and can solve the relay attack problem faced by the above-mentioned existing non-inductive unlocking solution, and the installation Weak antennas add to the problem of cost.
  • 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.
  • the technical means of at least detecting the motion state within the signal range is adopted, and in another part of the embodiments, the technical means of at least active inquiry within the signal range are adopted to solve the above problems.
  • the user U1 holds the terminal device UE1 and arrives near the vehicle.
  • the terminal device UE1 detects the wireless signal sent by the vehicle-mounted target device C1, and a secure connection is established between the terminal device UE1 and the target device C1. .
  • the terminal device UE1 is placed in the user bag and is in a locked screen state.
  • the terminal device UE1 at least detects whether its own device is in a motion state, and determines that it is in a motion state , then send an unlock message to the target device C1, and the target device C1 controls the electronic door lock to open, and the vehicle can emit a corresponding prompt sound, such as a beep or a voice prompt "Hello, the lock is unlocked", if it does not happen After the attack, the user is on the scene. After learning that the lock has been opened, the user can hold the door handle or press the door open button on the door handle to open the door, and unlock the door without feeling. At the same time, in order to further improve safety, The target device C1 returns a successful unlock message to the terminal device UE1.
  • the terminal device UE1 After receiving the successful unlock message, the terminal device UE1 will immediately prompt the user that the car lock has been unlocked. If there is no relay attack, 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 at risk of being stolen, and then immediately send a lock message through the terminal device UE1 to lock the door again to prevent the vehicle from being stolen.
  • the terminal device carried by the user is in a state of motion, which will greatly increase the difficulty of relay attacks.
  • the terminal device moves, its signal strength changes at any time. In this case, it is difficult to implement relay attacks;
  • the user needs to unlock the vehicle, he will approach the vehicle with a high probability of being in a motion state. Therefore, whether the user is currently in motion can be used as a direct and effective necessary reference factor to distinguish whether the user needs to unlock. To a certain extent, it can Avoid relay attacks.
  • Fig. 4 in another part of the embodiment, when the user U1 holds the terminal device UE1 and arrives near the vehicle, after the terminal device UE1 establishes a secure connection with the vehicle target device C1, as shown in the exemplary situation in Fig. 4, this At this time, 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 UI (User Interface)/UX (User Experience) interaction, the user can actively ask the user whether to unlock the car lock.
  • UI User Interface
  • UX User Experience
  • the terminal device UE1 when the terminal device UE1 detects that it has entered the signal range of the vehicle-mounted target device C1, it will automatically pop up a dialog box asking whether to unlock the car lock, and display the button for sending the unlock message and the button for sending the lock message, without the need for the user to find the operation interface by himself. , directly click the corresponding unlock or lock button on the pop-up dialog box to realize the switch control of the car lock.
  • the button unlocking method of unlocking through a mobile phone requires the user to find and open the corresponding application (application, APP) after arriving near the vehicle, or find the unlocking program from the running program, enter the control interface, and click to unlock. Press the button to realize unlocking.
  • the active inquiry method provided by the embodiment of the present application takes the user entering the short-distance range of the vehicle as a triggering opportunity to actively ask the user whether to unlock, reducing user operations.
  • this active inquiry method is not completely insensitive to the user, but the operation convenience is significantly improved compared with the button unlocking in the prior art, and this active inquiry method, If the user does not send an unlock message, the car lock will not be unlocked, which can completely avoid the problem of relay attacks, and the security is higher.
  • the terminal device may be various mobile terminal products that support short-distance wireless communication carried by the user, for example, it may be a mobile phone, a tablet computer, a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant), etc. assistant, PDA), smart watches, netbooks, wearable electronic devices, augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, robots (portable), smart toys, etc., can also be car keys .
  • the target device is the device used for wireless communication with the terminal device in the vehicle pre-opened by the user.
  • the target device can be an independent vehicle-mounted device, or one or more components integrated into the vehicle-mounted device.
  • the vehicle can at least support proximity Any in-vehicle device, module or component that communicates wirelessly and can directly or indirectly control the lock can be used as a target device.
  • the target device may 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 (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 (CDC), or vehicle domain controller (vehicle domain controller, VDC).
  • vehicle gateway gateway, GW
  • Telematics control unit Telematics Control Unit
  • T-BOX mobile data center
  • HMI human-machine interaction
  • ECU electronic control unit
  • CDC cockpit domain controller
  • VDC vehicle domain controller
  • the vehicle gateway GW module is the core component in the electronic and electrical architecture of the vehicle.
  • the data exchange hub of the vehicle network it can control the area network (controller area network, CAN), the local interconnect Multimedia data transmission (media oriented system transport, MOST), FlexRay and other network data are routed in different networks.
  • the mobile data center MDC is used as the intelligent on-board computing platform of the car; the human-computer interaction HMI module can be used as the infotainment system of the car; the telematics control unit TCU can be used to communicate with the car's exterior, background system and smart phone, application network equipment, 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 microcomputer controller dedicated to the car
  • the cockpit domain controller CDC is used to control the relevant content of the cockpit domain
  • the vehicle domain controller VDC is used to control the content related to the vehicle domain.
  • the target electronic lock is the car lock of the vehicle that the user pre-opens.
  • the car lock is not limited to the door lock, but also includes window control components, trunk lock control components, and control units for electrical equipment such as speakers in the car and air conditioners.
  • the target electronic lock may include a physical mechanical lock and/or an electrical switch controlled by a control signal.
  • the target device and the target electronic lock can be two independent devices or components, or they can be deployed in different devices or modules.
  • the target device and the target electronic lock can also be integrated into the same device.
  • the target device can be used as a car lock accessories for use only for communication tasks related to the lock.
  • the unlocking is triggered and an unlocking notification is sent to the user.
  • the subject of execution of the method may be a terminal device, including the following process: when it is determined that the target device has entered the signal range of the target signal, it is detected whether the terminal device is in a predetermined motion state, and if it is determined to be in a motion state, then an unlocking signal is issued to the target device. message, and trigger a first event, which is an interaction event used to prompt the user that the target electronic lock corresponding to the target device has been unlocked.
  • determining the signal range of the target signal sent by the target device includes two layers of meaning: one layer of meaning is that the terminal device is currently within the signal range of the target device; the other layer of meaning is the change from the lost signal state to the searchable signal state , instead of changing from the searched signal state to the lost signal state, that is, "entering" the signal range, not away from it.
  • the premise of being able to determine the signal range of the target signal sent by the target device is that the signal sent by the target device can be searched at present, and the signal of the target device has not been found before.
  • the short-range wireless communication technology is used for communication between the terminal device and the target device, such as Bluetooth (bluetooth), wireless fidelity (Wireless Fidelity, Wi-Fi), near field communication (Near Field Communication, NFC). ), Zigbee protocol (Zigbee), ultra-wideband (Ultra Wide Band, UWB), radio frequency identification technology (Radio Frequency Identification, RFID), etc. at least one.
  • Bluetooth bluetooth
  • wireless fidelity Wireless Fidelity, Wi-Fi
  • NFC Near Field Communication
  • Zigbee protocol Zigbee protocol
  • UWB ultra-wideband
  • RFID Radio Frequency Identification
  • RFID Radio Frequency Identification
  • Bluetooth is used as the communication mode between the terminal device and the target device.
  • the terminal device determines to receive the beacon frame broadcast by the target device, it determines that it is currently within the signal range of the target device.
  • the signal strength is further detected.
  • the communication distance can reach ten meters or even dozens of meters.
  • the actual distance between the terminal device and the vehicle may be more than ten meters. Therefore, it is necessary to further obtain signal strength information, that is, to obtain the value of Received Signal Strength Indication (RSSI), and the unit is decibel relative to one milliwatt (dBm).
  • RSSI Received Signal Strength Indication
  • dBm milliwatt
  • the signal strength is detected immediately to determine whether the signal strength reaches the specified threshold, and then detects whether it is in a motion state, or, after detecting that the terminal device is in a motion state, then determine the current signal strength, and the signal strength exceeds the specified threshold. threshold, the unlock message will be sent, otherwise the unlock message will not be triggered until the signal strength exceeds the specified threshold.
  • the time sequence of motion state detection and signal strength determination There is no clear sequence limitation on the time sequence of motion state detection and signal strength determination.
  • the step of signal strength detection may not be performed, for example, when the effective communication distance is less than 10 meters or less than 5 meters.
  • the target device in the vehicle is installed with a weak antenna (ultra-short-range antenna) or the effective signal range is only a few meters near the vehicle by adjusting the antenna transmission power of the target device on the side of the vehicle, then there is no need to perform signal strength determination A step of.
  • the signal strength should be further determined 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.
  • the specified threshold of signal strength is related to the distance threshold.
  • the distance threshold is determined, the signal strength around the vehicle at the distance threshold can be sampled. The average value of multiple signal strength samples can be used as the specified threshold of signal strength.
  • a weak antenna needs to be installed in the prior art is that the effective communication distance between the control vehicle and the mobile phone is relatively short, for example, within a range of about 1.5 meters.
  • signal strength is further used as the 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, trigger again. Unlocking can effectively control the distance range for triggering unlocking without installing weak antennas, which saves various costs for installing weak antennas.
  • the detection of whether the person is in a motion state can be identified by collecting motion data through a sensor. That is, the predetermined motion state is determined according to 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 can be motion parameters such as motion direction, tilt angle, space attitude, and travel speed.
  • Collecting motion data is a function supported by various terminal devices, such as mobile terminal devices such as smart phones and smart watches.
  • the existing detection function can be used to identify the motion state by using the detected motion data.
  • the terminal device can have a built-in gyroscope, a gravity sensor, and an acceleration sensor, and the gyroscope can sense the direction of the user's movement; the gravity sensor can measure the acceleration caused by gravity to calculate the relative The inclination angle of the horizontal plane; the acceleration information of the terminal device is collected through the acceleration sensor. It can be combined with the movement direction, tilt angle and acceleration information to comprehensively judge whether the user is in a movement state.
  • the predetermined exercise state may include one or more of walking, fast walking, slow walking, running, jogging, fast running, and jumping.
  • the terminal device When the user drives the terminal device to be in any of the above states , the terminal device is considered to be in a predetermined motion state.
  • the number of steps or the frequency of the user's movement can be determined, and then it can be determined whether the user is in any of states such as fast walking, slow walking, fast running, and jogging. States such as walking, fast walking, slow walking, running, jogging, fast running, jumping, etc. can be obtained through statistics of multiple sample data.
  • detecting whether it is in motion can be achieved in the following ways:
  • Method 1 The collected exercise data is compared with a predetermined parameter threshold or a predetermined condition, and if the threshold is exceeded or the predetermined condition is met, the terminal device carried by the user is considered to be in a state of exercise.
  • the number of steps of the user is determined through the parameters collected by the above sensors, and when the number of steps of the user continues to increase within a predetermined period of time, it is determined that the user and the terminal device they carry are in a state of exercise. For example, take 5s as a detection period, and detect whether the user's step count increases every 5s. If the user's step count increases during multiple consecutive detection periods, the user is considered to be in a state of exercise.
  • Method 2 Based on big data, obtain the state parameters of the user before opening the car door, obtain multiple samples, and perform statistical analysis on them, such as using a cluster analysis algorithm to obtain reference features corresponding to the general state characteristics of the user before opening the car door Vector, when judging whether the current target user is in a state of motion, the collected motion parameters can be converted into a target feature vector, the target feature vector is compared with a pre-acquired reference feature vector, and based on the comparison result, it is determined whether the current target user is in motion.
  • 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.
  • Way 3 Another possible way to detect whether they are in motion is to obtain the state parameters of multiple users before opening the car door as training data, use whether they are in motion as a label, train the neural network model, and then, in the actual In the application stage, the feature vector corresponding to the collected motion parameters of the target user is used as input, and the recognition result of whether it is in a motion state is output through the pre-trained neural network model.
  • the implementation of the third method usually requires the interaction between the terminal device and the server on the network side. In most cases, the trained neural network model is deployed on the server on the network side.
  • the second event is also used to ask the user whether the car lock has been unlocked by mistake, and to receive a lock lock instruction from the user.
  • the unlocking behavior is obviously not what the user expected, and the car lock needs to be closed as soon as possible; After the user's car lock is unlocked, an interactive entry for the user to quickly lock the car door should be provided.
  • this embodiment triggers non-inductive unlocking according to whether the mobile phone/car key and other terminal devices are in the locked screen state and whether they are moving. After unlocking, add the mobile phone/key, etc.
  • the prompt on the side of the terminal device allows the user to know in a short time that the car lock has been opened by mistake or due to an attack, and then immediately issue a lock command or go to the scene to manually lock the door to eliminate the risk.
  • this embodiment may include the following processes:
  • Step 501 the terminal device discovers the first target signal sent by the target device
  • the terminal device searches for the beacon frame sent by the target device (that is, the vehicle-mounted target device shown in Figure 5), and the signal is lost in the previous adjacent query cycle, and the next query cycle is also a discovery signal state, it is determined that the target device is found, and the target device enters the target signal range of the target device.
  • the target device that is, the vehicle-mounted target device shown in Figure 5
  • 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.
  • the signal sent by the terminal device is defined as the first target signal , defining the signal sent by the target device as the second target signal.
  • Step 503 the terminal device detects that it is in a screen-locked state
  • Step 505 the terminal device detects that it is in motion
  • Step 507 establishing a secure connection between the terminal device and the target device
  • a secure connection is established, that is, securely authenticated for communication.
  • Different communication technologies correspond to different security authentication methods.
  • the terminal device when the terminal device communicates with the target device through Bluetooth, it can be based on secure simple pairing SSP (Secure Simple Pairing), Secure Connections , LE Secure Connections and other encryption authentication mechanisms for security authentication;
  • Wi-Fi Protected Access-PreShared Key Wi-Fi Protected Access-PreShared Key
  • WPA-PSK Wi-Fi Protected Access-PreShared Key
  • Step 509 the terminal device sends an unlock message to the target device
  • Step 511 the target device sends an unlock success message to the terminal device after unlocking
  • Step 513 after the terminal device receives the unlocking success message, it prompts the user that the car lock has been unlocked;
  • the terminal device after the terminal device receives the unlocking success message sent by the target device, the terminal device will trigger the first event to remind the user that the target electronic lock corresponding to the target device has been unlocked.
  • the prompt method can be At least one of sound, vibration, push text message, and light up the screen, wherein the sound includes voice, ringtone, buzzer, and other various types of prompt sounds.
  • the first event can specifically be voice broadcast, ringing, sending Beep, vibration, push message, light up the screen, or a combination of two or more.
  • the terminal device If the terminal device is in the lock screen state, you can choose vibration or sound prompts, such as voice broadcast "Your vehicle is unlocked” after it has been unlocked, or combine different prompt methods, such as voice broadcast while vibrating, or Ring the bell while vibrating to remind the user that the car lock is unlocked, or display a push message on the lock screen interface. If the terminal device is in the screen-off state, it may display a pushed push message, or other ways of pushing a text message to prompt the user. In this embodiment, it is a small probability event that the terminal device changes from the locked screen state in step 502 to the unlocked screen state, so when step 513 is executed, a prompt manner corresponding to the locked screen state may be used.
  • vibration or sound prompts such as voice broadcast "Your vehicle is unlocked” after it has been unlocked
  • different prompt methods such as voice broadcast while vibrating, or Ring the bell while vibrating to remind the user that the car lock is unlocked
  • display a push message on the lock screen interface If the terminal device is in the screen-off
  • Step 515 the terminal device detects that the user unlocks the device.
  • Step 517 ask the user whether to open the car lock by mistake, and whether to close the car lock.
  • This step 517 can be realized by triggering a second event, and the second event is used to inquire whether the user opened it by mistake, and to receive a lock-off instruction from the user.
  • a dialog box or an option prompt box asking the user whether to open the car lock by mistake will pop up, and at least a lock button for confirming that it is accidentally opened is set in the dialog box or the option prompt box , to receive the lock command from the user.
  • step 513 the user is reminded that the car lock has been unlocked by means of vibration combined with lighting the screen, and an example interface of the terminal device when the first event is triggered is shown in interface I1 in the figure.
  • the screen is turned on when the screen is locked, and a notification message "Your car lock has been unlocked, click to view details" pops up.
  • an option prompt box as shown in interface I2 will pop up “Your car lock has been unlocked, did you open it by mistake?” and set the option for closing the lock "Open by mistake, close the lock” and “Ignore” options, the user can send a lock command by clicking the "open by mistake, close the lock” option to control the lock to close again.
  • the option prompt box will disappear automatically.
  • step 506 may be added between step 505 and step 507, 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, then step 507 is executed; or, between step 501 and step Step 503 increases the step of detecting signal strength; or, increases the step of detecting signal strength between step 503 and step 505, so that multiple other embodiments can be obtained based on the embodiment shown in FIG. 5 .
  • step 515 may not be included in the embodiment shown in FIG. 5 , that is, after the terminal device prompts the user that the car lock has been unlocked, the user does not need to unlock the terminal device, and can directly confirm on the lock screen interface of the terminal device. Whether it was opened by mistake. That is to say, the interface I2 in Figure 6 can also be an interface where the terminal device is in the lock screen state, and the user can send a lock command by clicking on the option "open by mistake, close the lock” to control the lock to close again; the user selects " Ignore" or do not perform any operation, the option prompt box will disappear automatically.
  • this embodiment may include the following process:
  • Step 701 the terminal device discovers the first target signal sent by the target device
  • Step 702 the terminal device detects that it is in a screen-unlocking state
  • Step 703 the terminal device detects that it is in motion
  • Step 704 the terminal device detects the signal strength of the received first target signal
  • Step 705 establishing a secure connection between the terminal device and the target device
  • Step 706 the terminal device sends an unlock message to the target device
  • Step 707 the target device sends an unlock success message to the terminal device after unlocking
  • Step 708 After receiving the successful unlocking message, the terminal device pushes a push message indicating that the car lock has been unlocked, and provides a shortcut to unlock the car.
  • This step 708 can be implemented by triggering a third event.
  • the third event can be used to provide a shortcut to receive a lock lock command issued by the user.
  • the third event is used to push a push message that the car lock has been unlocked, and provide a shortcut to lock the lock.
  • This embodiment realizes the non-inductive unlocking of the terminal device when the screen is unlocked, and is applicable to the scene where the user walks to the vehicle while operating the terminal device such as a mobile phone, for example, the user is making a voice or video call while walking to the vehicle, or is editing text messages and more. It should be noted that, unlike the embodiment corresponding to FIG. 5 , in the applicable scenario of the embodiment shown in FIG. 7 , the user still keeps the screen of the mobile phone unlocked during the process of walking towards the vehicle. The transaction of interest is being processed. Therefore, in this embodiment, the focus is on reducing the interference to the user.
  • a third event can be triggered to remind you in the form of a text message such as a push message
  • the user has opened the lock, and does not use ringing or vibration reminders that may interfere with the user, and to ensure safety, provide a shortcut for the user to close the car lock.
  • the shortcut can provide a floating window , set a lock button in the floating window, the user can click the lock button without affecting the running of the current main interface program.
  • the terminal device may also ring or vibrate, so as to remind the user that the car lock is unlocked in a way that is less likely to be ignored by the user.
  • Fig. 8(a) exemplarily shows that when the terminal device is in the screen-off state, when the current interface is waiting to answer the video chat interface, the push message that the car lock is successfully unlocked is pushed "**** Prompt: The car lock is successfully unlocked!
  • Figure 8(b) exemplarily shows the push message "*** that the car lock is successfully opened when the current interface is a chat interface when the terminal device is in the unlocked state" *Prompt: The car lock has been unlocked successfully!, where **** can be the name of the APP installed on the terminal device to implement the unlocking method provided by the embodiment of this application.
  • the user can view the push message by sliding down the notification bar.
  • FIG. 8( a ) and FIG. 8( b ) are only examples, and the triggering of the third event may also be performed in multiple other interface states, which are not listed in this embodiment of the present application.
  • the successful unlocking message is not limited to being pushed in the form of a push message, for example, the user may also be notified in the form of a floating box or the like.
  • the third event is also used to provide a shortcut for closing the lock, which can be a corresponding link button in the push message, for example, the "click to quickly close the lock” shown in Figure 8 (a) and Figure 8 (b) ".
  • Step 901 the user confirms that it was opened by mistake
  • the terminal device When the terminal device receives an instruction to confirm the wrong opening or a lock lock message from the user, it is deemed that the user confirms the wrong opening.
  • Step 902 the terminal device sends a lock message to the target device (i.e. the vehicle-mounted target device shown in Figure 9);
  • Step 903 the terminal device discovers the first target signal again
  • Step 904 the terminal device starts timing, and no longer unlocks the lock involuntarily within the first timing period
  • Step 905 the terminal device loses the first target signal
  • the terminal device cannot search for the signal sent by the target device, it will be deemed as having lost the first target signal. For example, the beacon frame broadcast by the target device cannot be received.
  • Step 906 the terminal device rediscovers the first target signal
  • Step 907 the terminal device performs non-sensing unlocking again.
  • the function of non-inductive unlocking is no longer performed in the first timing period after the non-inductive unlocking, which can be realized through the process shown in FIG. 10 :
  • Step 1001 the user confirms that it was opened by mistake
  • Step 1002 judging whether the first target signal is lost? If yes, the user is outside the signal range of the vehicle at this time, return to step 1000 to continue to wait for the user to carry the terminal device and return to the vicinity of the vehicle again (that is, the terminal device can find the first target signal) to perform non-inductive unlocking; if not, enter Step 1003;
  • Step 1003 start the timer for timing.
  • the timing duration is the first timing period.
  • Step 1004 judging whether the first timing period has been reached? Yes, the timing is over, and return to step 1000; no, it is still in the first timing cycle at this time, and enter step 1005;
  • Step 1005 interrupt the non-inductive unlocking process.
  • the non-inductive unlocking is not performed.
  • a feasible control manner may be to send an interrupt signal to a corresponding process for implementing the non-inductive unlocking to interrupt the process when it is determined that the timing is not over.
  • the embodiment shown in FIG. 10 can solve the problem that the terminal device repeatedly reminds whether to unlock and interfere with the user in the following scenarios.
  • the scenario is that the user moves around the car, causing the terminal device to repeatedly leave the signal range of the vehicle target device and repeatedly enter the signal range of the vehicle target device.
  • the terminal device will unlock again without any sense, causing the car lock to be turned on and off repeatedly, and the terminal device to repeatedly ask the user whether to unlock it.
  • User interference is implemented, each time the vehicle-mounted target device rediscovers the first target signal, the terminal device will unlock again without any sense, causing the car lock to be turned on and off repeatedly, and the terminal device to repeatedly ask the user whether to unlock it.
  • step 1005 can interrupt the non-inductive unlocking that rediscovers that the first target signal causes, thereby can reduce Interference to users in this scenario.
  • Figure 9 or Figure 10 shows a feasible implementation after non-inductive unlocking.
  • step 900 shown in Figure 9 or step 1000 shown in Figure 10 may include detecting the first target signal from the terminal device until The process of unlocking the vehicle lock in any embodiment, for example, step 900 or 1000 may specifically include steps 501 to 517 shown in FIG. 5 , or include steps 701 to 708 shown in FIG. 7 . Therefore, the flow shown in FIG. 9 or FIG. 10 can be combined with the flow shown in FIG. 5 or FIG. 7 to obtain other multiple embodiments, for example, steps 501 to 517 shown in FIG.
  • One embodiment can be obtained by combining steps 1001 to 1005 shown in FIG. 7
  • another embodiment can be obtained by combining steps 701 to 708 shown in FIG. 7 with steps 1001 to 1005 shown in FIG. 10 .
  • the above embodiments adopt the technical means of at least performing motion detection after entering the range of the first target signal.
  • the user is actively asked whether to unlock the car lock. Examples based on active inquiry are listed below.
  • this embodiment may include the following process:
  • Step 1101 the terminal device discovers the first target signal sent by the target device
  • Step 1103 the terminal device detects that it is in motion
  • Step 1105 the terminal device asks the user whether to unlock?
  • inquiring whether the user unlocks is realized by triggering a fourth event
  • the fourth event is used to inquire whether the user unlocks the target electronic lock corresponding to the target device, and waits to receive an unlock instruction issued by the user.
  • Step 1107 the terminal device receives an unlocking instruction sent by the user to confirm the unlocking
  • Step 1109 the terminal device establishes a secure connection with the target device
  • Step 1111 the terminal device generates an unlock message based on the user's unlock command, and sends it to the target device;
  • Step 1113 the terminal device receives the unlock success message sent by the target device
  • Step 1115 the terminal device prompts the user that the unlocking is successful. This step 1115 can be realized by triggering a fifth event.
  • step 1104 may also be added.
  • Step 1104 may be: when the terminal device detects that it is in the screen unlocking state, then execute step 1105; or step 1104 may be: the terminal device receives When the signal strength of the first target signal exceeds the specified threshold, execute step 1105; or, step 1104 may be: when the terminal device detects that the screen is in an off-screen state and the received signal strength of the first target signal exceeds the specified threshold, Then execute step 1105; or, step 1104 may be: when the terminal device detects that it is in a screen-off state or the signal strength of the received first target signal exceeds a specified threshold, then execute step 1105.
  • steps 1105 may be: when the terminal device detects that it is in a screen-off state or the signal strength of the received first target signal exceeds a specified threshold, then execute step 1105.
  • the user is watching a video
  • the interface status of the terminal device is interface I3 as shown in FIG.
  • the fourth event is triggered, and the option prompt box shown in interface I4 in Figure 12 pops up "*** has detected that your vehicle is nearby, do you want to unlock the car?” and at least set the "unlock” button.
  • the terminal device sends an unlock message to the target device, making it control the target electronic lock from locked state to unlocked state.
  • interface I5 in Figure 13 For an example of the corresponding interface.
  • the embodiment shown in FIG. 11 is not limited to the scenario where the terminal device is in the unlocked state.
  • the current state of the terminal device can also be detected, such as the signal state.
  • a dialog box or an option prompt box will pop up actively, allowing the user to choose whether to unlock.
  • the way of triggering the fourth event that is, actively asking the user whether to unlock the lock, should be more prominent, so that the user can notice, for example, It is a reminder method combining vibration, ringing and lighting the screen.
  • multiple other embodiments in the locked screen state can be obtained, which will not be introduced one by one here.
  • the following operations can also be performed: obtain the switch state information of the switch device corresponding to the target electronic lock, and determine the switch state information within the second timing period based on the switch state information.
  • 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 from an unlocked state to a locked state.
  • the switch device may be a car door, a house door, a trunk lid of a car, etc.
  • the target electronic lock may be a house door, a car door, an electronic lock on a trunk, etc.
  • the electronic lock such as the car lock or door lock
  • the user does not pull the handle of the car door or the door, and the door or the door is still closed.
  • the car door or house door is not opened, it means that the user did not actually need to open the car door at this time, it may be opened by mistake, or the user may have other things temporarily and left after approaching the vehicle. If the unlocking or door lock etc. continue to be kept open, there will be a safety risk.
  • the switch device corresponding to the target electronic lock when it is detected that the switch device corresponding to the target electronic lock is not opened within a certain time period (second timing period), it will be automatically locked.
  • the second timing period may be 3-5 minutes.
  • the above-mentioned unlocking method may also be implemented based on a target device (eg, a vehicle-mounted target device).
  • the process of the unlocking method implemented based on the target device includes: after determining that the terminal device enters the signal range of the first target signal sent by the target device, acquiring the motion state information of the terminal device; determining the terminal device based on the motion state information When the device is in a moving state, control the target electronic lock corresponding to the target device from the locked state to the unlocked state; send the first instruction to the terminal device so that the terminal device triggers the first event, where the first event is used to remind the user of the target Electronic lock is on.
  • the process of the unlocking method implemented based on the target device may include: after determining that the terminal device has entered the signal range of the first target signal sent by the target device and the terminal device is in a predetermined motion state, sending a message to the terminal device Sending a fourth instruction, so that the terminal device triggers a fourth event, the fourth event is used to ask the user whether to open the target electronic lock corresponding to the target device, and wait for the receiving user to issue an unlocking instruction; after determining that the unlocking message sent by the terminal device is received, Control the target electronic lock corresponding to the target device from the locked state to the unlocked state; the unlock message is generated after the terminal device determines to receive the unlock command.
  • the unlocking method performs automatic unlocking when the terminal device enters the signal range and is in motion.
  • the specific process is as follows:
  • Step 1401 the target device detects that the terminal device is within the signal range
  • Step 1402 the target device establishes a secure connection with the terminal device
  • Step 1403 the target device performs at least one of detecting the signal strength of the second target signal, obtaining the screen state information of the terminal device, and obtaining the motion state information of the terminal device; at least one item includes any one or any two or more of them. combination.
  • the screen state information indicates whether the screen is locked or unlocked
  • the motion state information indicates whether the terminal device is in a predetermined motion state
  • the signal strength of the second target signal that is, the signal strength that the target device can receive from the terminal device. signal strength.
  • Step 1404 the target device determines that the terminal device meets the unlocking conditions
  • the target device can determine whether the terminal device meets the unlocking conditions according to at least one of the signal strength, screen status information, and motion status information obtained in step 1403 above.
  • the unlocking conditions include at least: being within the signal range of the target device , in a predetermined state of motion.
  • the unlocking condition may further include the following conditions: at least one of a lock screen state and a signal strength exceeding a specified threshold.
  • Step 1406 after detecting that the target electronic lock has been unlocked, send a first instruction to the terminal device.
  • the first instruction is used to trigger a first event to notify the user that the car lock has been unlocked.
  • the user is actively asked whether the user needs to unlock, which may specifically include the following process:
  • Step 1501 the target device detects that the terminal device is within the signal range
  • Step 1502 the target device establishes a secure connection with the terminal device
  • Step 1503 the target device performs at least one of detecting the signal strength of the second target signal, obtaining the screen state information of the terminal device, and obtaining the motion state information of the terminal device;
  • Step 1504 the target device determines that the terminal device meets the unlocking conditions.
  • the unlocking conditions at least include: the terminal device is located within the signal range of the target device; in other embodiments, the unlocking conditions may also include the following conditions: being in a predetermined motion state, signal strength exceeding a specified threshold, screen unlocking state at least one of the
  • 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.
  • Step 1506 receiving an unlock message.
  • the unlocking message is generated by the terminal device after it determines to receive the unlocking instruction from the user.
  • Step 1507 sending an unlock control signal to the target electronic lock.
  • Step 1508 after detecting that the target electronic lock has been unlocked, send a fifth instruction to the terminal device to trigger the terminal device to execute a fifth event to notify the user of successful unlocking.
  • At least 1503 and 1504 are optional steps, the default steps 1503 and 1504 can obtain other embodiments, and the selection of information items in 1503 and 1504 can also obtain multiple other embodiments accordingly , and are not limited to those shown in Figure 15.
  • the following operations can be performed based on the target device in several ways:
  • Method 1 After confirming that the lock message sent by the terminal device is received, control the target electronic lock corresponding to the target device from the unlocked state to the locked state. After that, if it is detected that the terminal device is within the signal range, trigger the first timing cycle. Timing, within the first timing period, the unlocking message is shielded, and the electronic lock of the control target is always kept in the locked state.
  • Method 2 After receiving the lock message sent by the terminal device, after detecting that the terminal device is out of the signal range, and then detecting that the terminal device enters the signal range and the terminal device is in motion, control the target device corresponding to the target device.
  • the electronic lock changes from the locked state to the unlocked state.
  • Mode 3 Detect the switch state information of the switch device corresponding to the target electronic lock, and control the target electronic lock from the unlocked state to the locked state when it is determined that the switch device is not opened within the second timing period based on the switch state information.
  • FIG. 16 shows a system architecture corresponding to the solution provided by the embodiment of the present application.
  • 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.).
  • a target device side such as a lock, a car door, a house door, etc.
  • a terminal device side such as a smart car key, a smart phone, etc.
  • multiple function modules can be integrated on the terminal device side, for example, it can include: a lock screen unlock verification module, which is used to detect the lock screen status and detect the user's screen unlocking action, etc., and the user operation function module , 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 above-mentioned first to fifth events; a first security communication module, for for wireless communication with the target device; and a motion detection module for detecting motion parameters of the user and judging whether the user is in motion.
  • a lock screen unlock verification module which is used to detect the lock screen status and detect the user's screen unlocking action, etc.
  • the user operation function module 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 above-mentioned first to fifth events
  • the following functional modules can be integrated: user notification function module, which is different from the user notification function module on the terminal device side. mode or light emitting to remind the user that the car lock has been unlocked; the lock module, which may include a physical lock and a control module for controlling the switch lock; the second safety communication module is used for wireless communication with the terminal device.
  • the embodiment of the present application also provides a terminal device, which may include: a processor; a memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and one or more A computer program includes instructions.
  • the terminal device may execute the method described in any one of the above-mentioned embodiments based on execution by the terminal device.
  • the embodiment of the present application also provides a target device, which may include: a processor; a memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and one or more A computer program includes instructions.
  • the target device may execute the method described in any one of the above embodiments based on execution by the target device.
  • FIG. 17 A possible product hardware architecture of the terminal device 170 provided in the embodiment of the present application is shown in FIG. 17.
  • the hardware architecture of the terminal device 170 may include:
  • the display screen 171 is used to prompt the user that the target electronic lock has been opened, for example, to display the interfaces shown in Fig. 6 , Fig. 8(a), Fig. 8(b) and other drawings.
  • the display screen 171 may include a display panel.
  • the display panel can 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 (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc.
  • the terminal device 170 may include at least one display screen 171 .
  • the display screen 171 is an optional part of the terminal device, not a necessary part. 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. There is a display screen. For example, when the terminal device is a car key, it may not have a display screen.
  • the structure shown in FIG. 17 is only an exemplary structure and cannot be understood as a necessary limitation on the terminal device.
  • 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.
  • the processor 173 includes one or more processing units.
  • the processor 173 can include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a digital Signal processor (digital signal processor, DSP), etc.
  • application processor application processor, AP
  • modem processor graphics processing unit
  • graphics processing unit graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • DSP digital Signal processor
  • 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 may be an external memory independent of the processor 173 , or be set in the processor 173 .
  • the memory built into the processor 173 may be a cache memory for storing instructions or data that the processor 173 has just used or recycled. If the processor 173 needs to use the instruction or data again, it can be called directly from the cache memory. Repeated access is avoided, and the waiting time of the processor 173 is reduced.
  • the memory may be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of memory that can store information and instructions
  • ROM read-only memory
  • RAM random access memory
  • a dynamic storage device can also be 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 Compact Disc, Laser Disc, Optical Disc, Digital Versatile Disc, Blu-ray Disc, etc.), magnetic disk storage medium or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, etc.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • CD-ROM compact disc read-only memory
  • optical disc storage Including Compact Disc, Laser Disc, Optical Disc, Digital Versatile Disc,
  • the power management module 175 receives the input of the battery and/or the 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 times, and battery health status (leakage, impedance).
  • the power management module 175 can also be set in the processor 170.
  • the power management module 175 and the charging management module can also be set in the same device.
  • the structures shown in the drawings in the embodiments of the present application do not constitute a limitation on the terminal device 170 .
  • the terminal device 170 may include more or fewer components than shown in the figure, or combine certain components, or separate certain components, or arrange different components.
  • the illustrated components can be realized in hardware, software or a combination of software and hardware.
  • the terminal device 170 may further include:
  • the speaker 176, and the audio circuit 180, the speaker 176 is connected to the processor 173 through the audio circuit, and is used for prompting the user by sound when executing any one of the first event to the fifth event.
  • the display screen 171 of the terminal device 170 displays the interface shown in FIG. 6, and at the same time, the voice broadcast "Your surveying and mapping station has been turned on, please click to view details" and after detecting that the user unlocks the screen, continue the voice broadcast "Your The car lock has been unlocked, did you open it by mistake?".
  • the motor 177 provides vibration power for the terminal device 170.
  • the motor of the motor is a 7G ERM motor, and its vibration capability is about 7 times stronger than that of an ordinary smart phone.
  • the motor is used to vibrate to remind the user, for example, to remind the user that the car lock has been unlocked, or to vibrate simultaneously when a prompt box pops up asking the user for an option.
  • the input unit 178 is used for inputting a user's unlock command or lock command.
  • the input unit 178 can be integrated with the display screen 171 as a touch display screen; the input unit 178 can also include a pressure sensor (not shown in FIG. 17 ), through which the pressure generated by the user can be felt The signal can convert the pressure signal into an electrical signal to complete user instruction input.
  • a pressure sensor can be provided on the display screen 171 .
  • pressure sensors such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors.
  • the terminal device 170 may also calculate the touched position according to the detection signal of the pressure sensor.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example: when a touch operation whose intensity exceeds the first pressure threshold acts on the corresponding button, it is deemed that the user has issued a corresponding instruction. Unlock command.
  • the wireless communication unit 179 is configured to perform wireless communication with the target device, specifically to control the effective distance of the wireless communication with 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 received target signal sent by 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 can determine the signal strength strength.
  • the wireless communication unit 179 can support applications on the terminal device 170 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), Near field communication technology (near field communication, NFC) and other short-range wireless communication solutions.
  • the wireless communication unit 170 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module receives electromagnetic waves through the antenna, frequency-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 113, frequency-modulate it, amplify it, and convert it into electromagnetic wave to radiate out through the antenna.
  • the sensor group 172 includes a gyroscope, a gravity sensor and an acceleration sensor.
  • the processor 173 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, general-purpose input/output (general-purpose input/output, GPIO) interface, and/or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • general-purpose input/output general-purpose input/output
  • GPIO general-purpose input/output
  • USB universal serial bus
  • the processor 173 may include multiple groups of I2C buses, and the processor 173 may be respectively coupled to the sensor group 172, the power management module 175, the flashlight 120, etc. through different I2C bus interfaces.
  • the processor 173 may be coupled to the display screen 171 through an I2C interface, so that the processor 173 communicates with the display screen 171 through an I2C bus interface.
  • the processor 173 may include multiple sets of I2S buses, and the I2S interface may be used for audio communication.
  • the processor 173 can be coupled with the audio circuit 180 through the I2S bus, so as to realize the communication between the processor 173 and the audio circuit 180, so that the speaker 176 can be controlled to emit sound.
  • the embodiment of the present application also provides a device, which includes:
  • one or more processors comprising instructions, which when executed by the device making the device perform the following steps: after determining that the terminal device has entered the signal range of the target signal sent by the target device, acquiring motion state information of the terminal device; 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 from the locked state to the unlocked state; send a first instruction to the terminal device, so that the terminal device triggers a first event, and the first event is used to prompt the user
  • the target electronic lock is already on.
  • the device when the instruction is executed by the device, the device is caused to perform the following steps:
  • the embodiment of the present application also provides a computer storage medium, including computer instructions.
  • the computer instructions When the computer instructions are run on the electronic device, the electronic device executes the steps shown in Fig. 5, Fig. 7, Fig. The method shown in any one of Figure 15.
  • An 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 the device installed with the chip system executes the The method shown in any one of Fig. 7, Fig. 9-Fig. 11, Fig. 14- Fig. 15.
  • unit in the embodiments of the present application may be implemented in the form of software and/or hardware, which is not specifically limited.
  • a "unit” may be a software program, a hardware circuit or a combination of both to realize the above functions.
  • the hardware circuitry may include application specific integrated circuits (ASICs), electronic circuits, processors (such as shared processors, dedicated processors, or group processors) for executing one or more software or firmware programs. etc.) and memory, incorporating logic, and/or other suitable components to support the described functionality.
  • ASICs application specific integrated circuits
  • processors such as shared processors, dedicated processors, or group processors
  • memory incorporating logic, and/or other suitable components to support the described functionality.
  • the units of each example described in the embodiments of the present application can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
  • "at least one” means one or more, and “multiple” means two or more.
  • “And/or” describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the contextual objects are an “or” relationship.
  • “At least one of the following” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, and c may be single or multiple.
  • any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium.
  • the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Lock And Its Accessories (AREA)

Abstract

An unlocking method and device, and a storage medium, which relate to the technical field of intelligent control, and may resist relay attacks and reduce user operations. The method comprises: after determining that a signal range of a target signal sent from a target device is entered, executing the following steps: when detected that a terminal device is in a predetermined motion state, sending an unlock message to the target device, the unlock message being used to notify the target device to control a corresponding target electronic lock to switch from a locked state to an unlocked state; and triggering a first event, the first event being used to prompt a user that the target electronic lock has been opened.

Description

开锁方法、设备和存储介质Unlocking method, device and storage medium 技术领域technical field
本申请涉及智能控制技术领域,尤其涉及一种开锁方法、设备和存储介质。The present application relates to the technical field of intelligent control, in particular to an unlocking method, device and storage medium.
背景技术Background technique
近年来,汽车智能控制己经成为世界车辆工程领域研究的热点和汽车工业增长的新动力之一。在实际应用场景中,对汽车门锁、车窗等部件进行智能控制,是有效改善用户体验的技术手段。越来越多的汽车制造商研发了智能车钥匙,或者开发相应的应用程序以通过智能手机等终端设备来控制车辆,例如控制车门、车窗、后备箱的开关等。目前,相对普遍的一种开锁方式为按键开锁,需要用户在到达车辆附近后,手动寻找车钥匙或手机等,然后基于密码解锁、指纹解锁、人脸解锁等验证方式,通过车钥匙或者手机等终端设备的安全认证之后,进入到相应的操控界面,再点击开锁键,才能实现开锁,操作便捷度有待提升。基于此,亟需一种解决方案,以进一步减少用户操作。In recent years, the intelligent control of automobiles has become a research hotspot in the field of vehicle engineering in the world and one of the new driving forces for the growth of the automobile industry. In practical application scenarios, intelligent control of car door locks, windows and other components is a technical means to effectively improve user experience. More and more car manufacturers have developed smart car keys, or developed corresponding applications to control vehicles through terminal devices such as smart phones, such as controlling the switches of doors, windows, and trunks. At present, a relatively common unlocking method is button unlocking, which requires the user to manually find the car key or mobile phone after arriving near the vehicle, and then use the car key or mobile phone based on verification methods such as password unlocking, fingerprint unlocking, and face unlocking. After the security authentication of the terminal device, enter the corresponding control interface, and then click the unlock button to realize unlocking, and the operation convenience needs to be improved. Based on this, a solution is urgently needed to further reduce user operations.
发明内容Contents of the invention
本申请提供一种开锁方法、设备和存储介质,能够减少用户开锁时的操作,在保证安全性的同时提升操作便捷度。The present application provides an unlocking method, device, and storage medium, which can reduce the user's operations when unlocking, and improve the convenience of operation while ensuring safety.
第一方面,本技术方案提供了一种开锁方法,应用于终端设备,所述方法包括:确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内;在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息;所述开锁消息,用于通知所述目标设备控制相应的目标电子锁由闭锁状态转为开锁状态;触发第一事件,所述第一事件用于提示用户所述目标电子锁已开启。In the first aspect, the technical solution provides an unlocking method applied to a terminal device. The method includes: determining that the terminal device has entered the signal range of the first target signal sent by the target device; When the device is in a predetermined motion state, send an unlock message to the target device; the unlock message is used to notify the target device to control the corresponding target electronic lock from the locked state to the unlocked state; trigger the first event, The first event is used to prompt the user that the target electronic lock has been opened.
在一种可能的实现方式中,在所述确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内之后,且在所述向所述目标设备发出开锁消息之前,所述方法还包括:检测所述目标信号的信号强度;所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息,包括:在检测到所述第一目标信号的信号强度超过指定阈值,且所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息。In a possible implementation manner, after determining that the terminal device enters the signal range of the first target signal sent by the target device and before sending an unlock message to the target device, the method It also includes: detecting the signal strength of the target signal; and sending an unlock message to the target device in the case of detecting that the terminal device is in a predetermined motion state, including: detecting the first target signal When the signal strength of the terminal device exceeds a specified threshold and the terminal device is in a predetermined motion state, an unlock message is sent to the target device.
在一种可能的实现方式中,在所述确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内之后,且在所述向所述目标设备发出开锁消息之前,所述方法还包括:检测所述终端设备是否处于锁屏状态;所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息,包括:在检测到所述终端设备 处于锁屏状态,且所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息。In a possible implementation manner, after determining that the terminal device enters the signal range of the first target signal sent by the target device and before sending an unlock message to the target device, the method It also includes: detecting whether the terminal device is in a locked screen state; and sending an unlock message to the target device in the case of detecting that the terminal device is in a predetermined motion state, including: detecting that the terminal device When the terminal device is in a screen-locked state and the terminal device is in a predetermined motion state, an unlock message is sent to the target device.
在一种可能的实现方式中,所述触发第一事件之后,所述方法还包括:触发第二事件,所述第二事件用于询问用户是否误开,以及接收用户发出的关锁指令。In a possible implementation manner, after the first event is triggered, the method further includes: triggering a second event, where the second event is used to ask the user whether the lock is opened by mistake, and receive a lock instruction from the user.
在一种可能的实现方式中,所述触发第二事件,包括:在检测到所述终端设备处于锁屏状态的情况下,则在确定接收到所述用户发出的解屏指令后,触发第二事件;其中,所述解屏指令用于解锁所述终端设备。In a possible implementation manner, the triggering of the second event includes: when it is detected that the terminal device is in a screen-locked state, triggering the first Two events; wherein, the screen unlocking instruction is used to unlock the terminal device.
在一种可能的实现方式中,所述触发第二事件之后,所述方法还包括:确定接收到用户发出的关锁指令后,向所述目标设备发出关锁消息,以及,在检测到所述终端设备处于所述信号范围内的情况下,触发第一计时周期的计时;在所述第一计时周期内,中断所述向所述目标设备发出开锁消息的操作。In a possible implementation manner, after the triggering of the second event, the method further includes: sending a lock message to the target device after determining that the lock command sent by the user is received; When the terminal device is within the signal range, trigger timing of a first timing period; within the first timing period, interrupt the operation of sending an unlock message to the target device.
在一种可能的实现方式中,所述触发第二事件之后,所述方法还包括:确定接收到用户发出的关锁指令后,检测到所述终端设备处于所述信号范围之外;在检测到所述终端设备处于所述信号范围之外之后,且检测到所述终端设备再次进入所述信号范围内的情况下,执行所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息的操作。In a possible implementation manner, after the triggering of the second event, the method further includes: detecting that the terminal device is outside the signal range after receiving a lock instruction from the user; After the terminal device is out of the signal range, and when it is detected that the terminal device enters the signal range again, perform the step of detecting that the terminal device is in a predetermined motion state. , sending an unlock message to the target device.
在一种可能的实现方式中,向所述目标设备发出开锁消息之后,所述方法还包括:触发第三事件,所述第三事件至少用于提供快捷方式以接收用户发出的关锁指令。In a possible implementation manner, after sending the 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 sent by the user.
在一种可能的实现方式中,所述向所述目标设备发出开锁消息之后,所述方法还包括:获取所述目标电子锁对应的开关装置的开关状态信息;基于所述开关状态信息,确定在第二计时周期内所述开关装置未被打开时,向所述目标设备发出关锁消息;所述关锁消息,用于通知所述目标设备控制所述目标电子锁由开锁状态转为闭锁状态。In a possible implementation manner, after sending the unlock message to the target device, the method further includes: acquiring switch state information of a switch device corresponding to the target electronic lock; based on the switch state information, determining When the switch device is not opened within the second timing period, send 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 state.
在一种可能的实现方式中,所述向所述目标设备发出开锁消息之后,所述方法还包括:在确定所述终端设备处于所述第一目标信号的信号范围之外的情况下,则向所述目标设备发出关锁消息;所述关锁消息,用于通知所述目标设备控制所述目标电子锁由开锁状态转为闭锁状态。In a possible implementation manner, 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, then 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.
在一种可能的实现方式中,所述预定的运动状态是根据所述终端设备的运动传感器采集的数据确定的,所述运动传感器包括陀螺仪、重力感应器、加速度传感器、磁力传感器、振动传感器、线速度传感器、角速度传感器中的一个或多个。In a possible implementation manner, the predetermined motion state is determined according to the data collected by the motion sensor of the terminal device, and the motion sensor includes a gyroscope, a gravity sensor, an acceleration sensor, a magnetic sensor, and a vibration sensor. , one or more of a linear velocity sensor and an angular velocity sensor.
在一种可能的实现方式中,所述预定的运动状态包括步行、快速步行、缓慢步行、跑、慢跑、快跑、跳中的一个或多个。In a possible implementation manner, the predetermined motion state includes one or more of walking, fast walking, slow walking, running, jogging, fast running, and jumping.
第二方面,本技术方案提供了一种开锁方法,应用于终端设备,所述方法包括:确定进入到目标设备发出的第一目标信号的信号范围内;在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,所述第四事件用于询问用户是否开启所述目标设备对应的目标电子锁,以及等待接收用户发出开锁指令;确定接收到所述开锁指令,生成相应的开锁消息并发送至所述目标设备;所述开锁消息,用于通知所述目标设备控制所述目标电子锁由闭锁状态转为开锁状态。In the second aspect, the technical solution provides an unlocking method applied to a terminal device, the method comprising: determining that the terminal device is within the signal range of the first target signal sent by the target device; In the case of a motion state, a fourth event is triggered, and the fourth event is used to ask the user whether to open the target electronic lock corresponding to the target device, and wait for the user to issue an unlock instruction; determine that the unlock instruction is received, and generate a corresponding The unlock message is sent to the target device; the unlock message is used to notify the target device to control the target electronic lock from a locked state to an unlocked state.
在一种可能的实现方式中,所述在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,包括:在检测到所述目标信号的信号强度超过指定阈值,且所 述终端设备处于预定的运动状态的情况下,触发所述第四事件。In a possible implementation manner, the triggering the fourth event when it is detected 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 The fourth event is triggered when the terminal device is in a predetermined motion state.
在一种可能的实现方式中,所述在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,包括:在检测到所述终端设备处于解屏状态,且所述终端设备处于预定的运动状态的情况下,触发所述第四事件。In a possible implementation manner, the triggering the fourth event when it is detected that the terminal device is in a predetermined motion state includes: when it is detected that the terminal device is in a screen-off state, and the terminal When the device is in a predetermined motion state, the fourth event is triggered.
第三方面,本技术方案提供了一种开锁方法,应用于目标设备,所述方法包括:确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内;获取所述终端设备的运动状态信息;在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态;向所述终端设备发送第一指令,以使所述终端设备触发第一事件,所述第一事件用于提示用户所述目标电子锁已开启。In a third aspect, the technical solution provides an unlocking method applied to a target device, the method comprising: determining that the terminal device has entered the signal range of the first target signal sent by the target device; Motion state information; when it is determined 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 from a locked state to an unlocked state; send a first instruction to the terminal device , so that the terminal device triggers a first event, where the first event is used to prompt the user that the target electronic lock has been unlocked.
在一种可能的实现方式中,所述确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内之后,且在获取所述终端设备的运动状态信息之前,所述方法还包括:检测所述终端设备发出的第二目标信号的信号强度;所述在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态,包括:在检测到所述第二目标信号的信号强度超过指定阈值,且基于所述运动状态信息确定所述终端设备处于预定的运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态。In a possible implementation manner, after determining that the terminal device enters the signal range of the first target signal sent by the target device and before obtaining the motion state information of the terminal device, the method further includes : detecting the signal strength of the second target signal sent by the terminal device; in the case of 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 from a locked state Switching to the unlocked state includes: controlling the target device to correspond to The target electronic lock is changed from locked state to unlocked state.
在一种可能的实现方式中,所述确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内之后,且在控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之前,所述方法还包括:获取所述终端设备的屏幕状态信息;所述在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态,包括:在基于所述运动状态信息确定所述终端设备处于运动状态,且基于所述屏幕状态信息确定所述终端设备处于锁屏状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态。In a possible implementation manner, after the determining terminal device enters the signal range of the first target signal sent by the target device, and after controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state, Before the state, the method further includes: obtaining the screen state information of the terminal device; in the case of 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 Changing from the locked state to the unlocked state includes: when it is determined based on the motion state information that the terminal device is in a motion state, and based on the screen state information it is determined that the terminal device is in a lock screen state, controlling the target The target electronic lock corresponding to the device changes from the locked state to the unlocked state.
在一种可能的实现方式中,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:确定接收到所述终端设备发送的关锁消息后,控制所述目标设备对应的目标电子锁由开锁状态转为闭锁状态,以及,在检测到所述终端设备处于所述信号范围内的情况下,触发第一计时周期的计时,在所述第一计时周期内,控制所述目标电子锁保持闭锁状态。In a possible implementation manner, after controlling the target electronic lock corresponding to the target device from the locked state to the unlocked state, the method further includes: after determining that the 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; During the timing period, the target electronic lock is controlled to maintain a locked state.
在一种可能的实现方式中,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:确定接收到所述终端设备发送的关锁消息后,检测到所述终端设备处于所述信号范围之外;在检测到所述终端设备处于所述信号范围之外之后,且检测到所述终端设备再次进入所述信号范围内的情况下,执行所述在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态。In a possible implementation manner, after controlling the target electronic lock corresponding to the target device from the locked state to the unlocked state, the method further includes: after determining that the lock message sent by the terminal device is received, It is detected that the terminal device is outside the signal range; after it is detected that the terminal device is outside the signal range, and when it is detected that the terminal device enters the signal range again, perform the It is described that in a case where it is determined that the terminal device is in a moving state based on the moving state information, controlling the target electronic lock corresponding to the target device to change from a locked state to an unlocked state.
在一种可能的实现方式中,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:检测所述目标电子锁对应的开关装置的开关状态信息;基于所述开关状态信息,确定在第二计时周期内所述开关装置未被打开时,控制所述目标电子锁由开锁状态转为闭锁状态。In a possible implementation manner, after controlling the target electronic lock corresponding to the target device 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 ; Based on the switch state information, when it is determined that the switch device is not opened within the second timing period, control the target electronic lock from an unlocked state to a locked state.
第四方面,本技术方案提供了一种终端设备,包括:一个或多个处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述终端设备执行时,使得所述终端设备执行如上述第一方面或第二方面任一项所述的方法。In a fourth aspect, the technical solution provides a terminal device, including: one or more processors; memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in In the memory, the one or more computer programs include instructions, and when the instructions are executed by the terminal device, the terminal device executes the method as described in any one of the first aspect or the second aspect above .
第五方面,本技术方案还提供一种目标设备,包括:一个或多个处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行如上述第三方面任一项所述的方法。In the fifth aspect, the technical solution also provides a target device, including: one or more processors; memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in In the memory, 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 the above third aspects.
第六方面,本技术方案还提供一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如上述第一方面至第三方面中任一项所述的方法。In the sixth aspect, the technical solution also provides a computer storage medium, including computer instructions, and when the computer instructions are run on the electronic device, the electronic device executes any one of the above-mentioned first aspect to the third aspect. the method described.
第七方面,本技术方案还提供一种芯片系统,包括:通信接口,用于输入和/或输出信息;处理器,用于执行计算机可执行程序,使得安装有所述芯片系统的设备执行如上述第一方面至第三方面中任一项所述的方法。In the seventh aspect, the technical solution also provides a chip system, including: a communication interface, used for inputting and/or outputting information; a processor, used for executing a computer executable program, so that the device installed with the chip system executes the following steps: The method described in any one of the first to third aspects above.
本申请实施例提供的方法和设备,在检测到用户所持的终端设备进入车辆信号范围内且处于运动状态时,自动发出开锁消息以开启车锁,减少了用户操作,并且在开锁后提示用户车锁已开,以增加安全性;或者,在检测到用户所持的终端设备进入到车辆信号范围内时,主动询问用户是否开锁,减少了用户手动查找开锁界面等操作。The method and device provided in the embodiments of the present application automatically send an unlock message to unlock the car lock when it detects that the terminal device held by the user enters the vehicle signal range and is in motion, which reduces user operations and prompts the user to unlock the car after unlocking. The lock has been unlocked to increase security; 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 lock, which reduces the user's manual search for the unlock interface and other operations.
附图说明Description of drawings
图1是相关技术中的无感开锁方案受到中继攻击的场景示意图;FIG. 1 is a schematic diagram of a scenario in which a non-inductive unlocking scheme in the related art is attacked by a relay;
图2是相关技术中的无感开锁方案结合卫星定位系统进行定位的场景示意图;Fig. 2 is a schematic diagram of a scenario in which a non-inductive unlocking solution combined with a satellite positioning system is used for positioning in the related art;
图3是本申请实施例提供的开锁方法适用的一个示例性场景示意图;Fig. 3 is a schematic diagram of an exemplary scene where the unlocking method provided by the embodiment of the present application is applicable;
图4是本申请实施例提供的开锁方法适用的另一个示例性场景示意图;Fig. 4 is a schematic diagram of another exemplary scenario where the unlocking method provided by the embodiment of the present application is applicable;
图5是本申请实施例提供的开锁方法的一个实施例的信令流程图;Fig. 5 is a signaling flow chart of an embodiment of the unlocking method provided by the embodiment of the present application;
图6是本申请实施例提供的开锁方法的一个实施例中示例性界面的示意图;Fig. 6 is a schematic diagram of an exemplary interface in an embodiment of the unlocking method provided by the embodiment of the present application;
图7是本申请实施例提供的开锁方法的另一个实施例的信令流程图;Fig. 7 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application;
图8(a)和图8(b)是本申请实施例提供的开锁方法的另一个实施例中的两个示例性界面的示意图;Figure 8(a) and Figure 8(b) are schematic diagrams of two exemplary interfaces in another embodiment of the unlocking method provided by the embodiment of the present application;
图9是本申请实施例提供的开锁方法的一个实施例中无感开锁之后的信令流程图;Fig. 9 is a signaling flow chart after non-inductive unlocking in an embodiment of the unlocking method provided by the embodiment of the present application;
图10是本申请实施例提供的开锁方法的一个实施例中无感开锁之后的流程示意图;Fig. 10 is a schematic flow chart after non-inductive unlocking in an embodiment of the unlocking method provided by the embodiment of the present application;
图11是本申请实施例提供的开锁方法的又一个实施例的信令流程图;Fig. 11 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application;
图12是本申请实施例提供的开锁方法的又一个实施例中的示例性界面的示意图;Fig. 12 is a schematic diagram of an exemplary interface in another embodiment of the unlocking method provided by the embodiment of the present application;
图13是本申请实施例提供的开锁方法的又一个实施例中的另一个示例性界面的示意图;Fig. 13 is a schematic diagram of another exemplary interface in another embodiment of the unlocking method provided by the embodiment of the present application;
图14是本申请实施例提供的开锁方法的再一个实施例的信令流程图;Fig. 14 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application;
图15是本申请实施例提供的开锁方法的又一个实施例的信令流程图;Fig. 15 is a signaling flow chart of another embodiment of the unlocking method provided by the embodiment of the present application;
图16为本申请实施例提供的开锁方法和设备对应的系统架构图;FIG. 16 is a system architecture diagram corresponding to the unlocking method and equipment provided by the embodiment of the present application;
图17为本申请实施例提供的终端设备的一个实施例的硬件结构示意图;FIG. 17 is a schematic diagram of a hardware structure of an embodiment of a terminal device provided in an embodiment of the present application;
图18为本申请实施例提供的终端设备的另一个实施例的硬件结构示意图。FIG. 18 is a schematic diagram of a hardware structure of another embodiment of a terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below with reference to the accompanying drawings.
本申请实施例提供的开锁方法和设备可以适用的一个典型应用场景为汽车开锁场景,例如用户携带车钥匙或手机等终端设备返回车辆附近,准备开启车锁以打开车门或后备箱等对象的场景。需要说明的是,本申请实施例提供的方法和设备,还可适用于其他多种需要开锁的应用场景,例如住宅房屋门/办公室门等房门开锁、电气设备等设备开锁、电动单车/电动滑板车等交通工具开锁等各种场景。为便于理解本申请实施例提供的开锁方法和设备,下面多以汽车开锁场景作为示例,对本申请实施例提供的解决方案进行说明,据此可适应性获得其他场景下的实施方案。A typical application scenario where the unlocking method and device provided in the embodiments of the present application can be applied is a car unlocking scene, for example, a scene where a user returns to the vicinity of the vehicle with a terminal device such as a car key or a mobile phone, and is about to unlock the car lock to open a car door or a trunk. . It should be noted that the methods and devices provided in the embodiments of the present application can also be applied to various other application scenarios that require unlocking, such as unlocking of residential house doors/office doors and other doors, unlocking of electrical equipment and other equipment, electric bicycles/electric Various scenarios such as unlocking of vehicles such as scooters. In order to facilitate the understanding of the unlocking method and device provided by the embodiment of the present application, the car unlocking scene is used as an example below to describe the solution provided by the embodiment of the present application, so that implementation solutions in other scenarios can be adaptively obtained.
为便于理解本申请实施例提供的解决方案所做出的改进,先对已有的相关技术中的解决方案进行简单阐述。以汽车开锁场景为例,已有的相关技术中提出的一种无感开锁方案,在检测到在车钥匙或者手机位于车辆附近短距离范围内时,车辆电子锁自动打开,无需用户拿出车钥匙或手机进行开锁操作,即可直接打开车门。该种无感开锁方案的基本原理为,弱天线(超短距天线)的有效通信距离范围一般比较小,仅能感应周围小距离范围内的信号,例如能够感应车辆是否在1.5米左右范围内,如果是的话,钥匙才发送开锁消息,用户才可以开门。In order to facilitate the understanding of the improvements made by the solutions provided by the embodiments of the present application, the solutions in the existing related technologies are briefly described first. Taking the car unlocking scene as an example, a non-inductive unlocking solution proposed in the existing related technology, when it is detected that the car key or mobile phone is within a short distance from the vehicle, the vehicle electronic lock will automatically open without the user taking out the car. The key or mobile phone can be used to unlock the door, and the door can be opened directly. The basic principle of this kind of non-inductive unlocking scheme is that the effective communication distance range of the weak antenna (ultra-short-range antenna) is generally relatively small, and it can only sense signals within a small distance range around it, for example, it can sense whether the vehicle is within a range of about 1.5 meters , if yes, the key sends an unlock message, and the user can open the door.
发明人在研究过程中发现,该无感开锁方案虽然减少了用户操作,但存在如下弊端:The inventor found in the research process that although the non-inductive unlocking solution reduces user operations, it has the following disadvantages:
一方面,中继攻击为通信技术领域中常见攻击方式,而上述已有相关技术中的无感开锁方案无法抵御中继攻击。参阅图1所示,当在车辆C0和终端设备UE0附近同时安放信号放大器后,车辆或者手机发出的弱信号被放大,使得车钥匙或手机,以及车辆,会误以为对方在近距离内而打开车锁,但实际信号的交互是通过信号放大器扩展了通信距离。因而,已有的该种在用户无感状态下自动开锁的方案,无法抵御中继(信号放大器)攻击,增加了汽车被盗的风险,存在安全性问题。On the one hand, the relay attack is a common attack method in the field of communication technology, and the above-mentioned non-sensing unlocking scheme in the related art cannot resist the relay attack. As shown in Figure 1, when the signal amplifier is placed near the vehicle C0 and the terminal equipment UE0 at the same time, the weak signal sent by the vehicle or mobile phone is amplified, so that the car key or mobile phone, as well as the vehicle, will mistakenly think that the other party is within a short distance and open it. Car lock, but the actual signal interaction is to extend the communication distance through the signal amplifier. Therefore, the existing scheme of automatically unlocking the lock without the user's awareness cannot resist relay (signal amplifier) attacks, increases the risk of car theft, and has security problems.
参阅图2所示,目前用于抵御中继攻击问题的一种辅助技术手段,是在通过终端设备UE0(例如手机)开车锁时,结合全球定位系统(Global Positioning System,GPS)或北斗卫星导航系统(BeiDou Navigation Satellite System,BDS)等卫星定位系统的定位信息进行辅助判断。GPS或BDS下发的车辆位置信息或手机位置信息,是车辆C1或终端设备UE0直接与定位卫星S1通讯获取,不会受附近信号放大器的影响,因而能够解决中继攻击问题。但在实际应用中,GPS或BDS民用定位服务的精度均在±10米左右,车辆距离手机10米的范围还是不太安全,仍然存在中继攻击可能性,还是有被盗窃的风险。另外,不可忽略的另一个弊端是,已有技术中的上述无感开锁方案没有明显的触发开锁的时机,手机和车辆需要持续开启GPS获取定位,而GPS定位功耗较大,持续开启GPS定位耗电量高,难以实际应用。目前已有的上述无感开锁方案,缺少行之有效的方法来解决其存在的中继攻击问题。As shown in Figure 2, an auxiliary technical means currently used to resist the problem of relay attacks is to combine the Global Positioning System (Global Positioning System, GPS) or Beidou satellite navigation when locking the car through the terminal equipment UE0 (such as a mobile phone) System (BeiDou Navigation Satellite System, BDS) and other satellite positioning system positioning information for auxiliary judgment. Vehicle location information or mobile phone location information issued by GPS or BDS is obtained by vehicle C1 or terminal equipment UE0 directly communicating with positioning satellite S1, and will not be affected by nearby signal amplifiers, so it can solve the problem of relay attacks. However, in practical applications, the accuracy of GPS or BDS civil positioning services is about ±10 meters, and the range of 10 meters from the vehicle to the mobile phone is still not safe, and there is still the possibility of relay attacks and the risk of theft. In addition, another disadvantage that cannot be ignored is that the above-mentioned non-inductive unlocking scheme in the prior art has no obvious timing to trigger the unlocking. Mobile phones and vehicles need to continuously turn on GPS to obtain positioning, and GPS positioning consumes a lot of power. High power consumption, difficult to practical application. The existing above-mentioned non-inductive unlocking schemes currently lack effective methods to solve the existing relay attack problem.
另一方面,手机等用于开锁的终端设备,在判断车辆是否在附近时,需要通过手 机的弱天线发射信号(例如Wi-Fi或者蓝牙信号),只有弱天线发射的信号被车辆收到,才能判断出车辆在较近距离范围内。而弱天线并非手机的基本硬件配置,预实现手机具备开锁功能,需要在手机的生产制造过程中,额外安装弱天线,增加了硬件复杂度和生产成本。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 the signal transmitted by the weak antenna is received by the vehicle. Only then can it be judged that the vehicle is within a relatively short distance. The weak antenna is not the basic hardware configuration of the mobile phone. The pre-implementation of the mobile phone with the unlocking function requires an additional weak antenna to be installed during the manufacturing process of the mobile phone, which increases the hardware complexity and production cost.
鉴于此,本申请实施例提出一种解决方案,相比于按键开锁方案能够减少用户操作,提升开锁的便捷度;并且能够解决上述已有的无感开锁方案面临的中继攻击问题,以及安装弱天线增加成本的问题。本申请实施例提供的解决方案可以基于终端设备侧与目标设备侧之间的交互实现。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 button unlocking solution; and can solve the relay attack problem faced by the above-mentioned existing non-inductive unlocking solution, and the installation Weak antennas add to the problem of cost. 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.
在一部分实施例中,采用了信号范围内至少进行运动状态检测的技术手段,在另外一部分实施例中,采用了在信号范围内至少进行主动询问的技术手段,以解决上述问题。In some embodiments, the technical means of at least detecting the motion state within the signal range is adopted, and in another part of the embodiments, the technical means of at least active inquiry within the signal range are adopted to solve the above problems.
下面结合两个应用场景示例,对本申请实施例提供的解决方案进行初步介绍:The following is a preliminary introduction to the solution provided by the embodiment of this application in combination with two examples of application scenarios:
示例性应用场景一:Exemplary application scenario one:
参阅图3所示,以汽车开锁场景为例,用户U1持有终端设备UE1到达车辆附近,终端设备UE1检测到车载目标设备C1发出的无线信号,终端设备UE1与目标设备C1之间建立安全连接。之后,如图3中所示的示例性情形,此时终端设备UE1放置于用户包内,为锁屏状态,此种情形下,终端设备UE1至少检测自身设备是否处于运动状态,确定处于运动状态,则向目标设备C1发出开锁消息,目标设备C1控制车门电子锁开启,同时车辆可以发出相应的提示音,例如发出蜂鸣声或者语音提示“您好,车锁已开启”,如果没有发生中继攻击,则用户就在现场,得知车锁已开启后,手握门把手或者按下门把手上的开门按键,即可开门,也能够实现无感开锁;同时,为进一步提升安全性,目标设备C1向终端设备UE1返回开锁成功的消息,终端设备UE1在接收到开锁成功消息后,会立即向用户提示车锁已开启,如果没有发生中继攻击,则用户此时忽略该提示即可,无需有任何操作;如果发生了中继攻击,则用户能够马上得知车辆当前可能面临被盗风险,进而立即通过终端设备UE1发出关锁消息,再次锁闭车门,防止车辆被盗。Referring to Figure 3, taking the car unlocking scene as an example, the user U1 holds the terminal device UE1 and arrives near the vehicle. The terminal device UE1 detects the wireless signal sent by the vehicle-mounted target device C1, and a secure connection is established between the terminal device UE1 and the target device C1. . Afterwards, as shown in the exemplary situation shown in Figure 3, the terminal device UE1 is placed in the user bag and is in a locked screen state. In this case, the terminal device UE1 at least detects whether its own device is in a motion state, and determines that it is in a motion state , then send an unlock message to the target device C1, and the target device C1 controls the electronic door lock to open, and the vehicle can emit a corresponding prompt sound, such as a beep or a voice prompt "Hello, the lock is unlocked", if it does not happen After the attack, the user is on the scene. After learning that the lock has been opened, the user can hold the door handle or press the door open button on the door handle to open the door, and unlock the door without feeling. At the same time, in order to further improve safety, The target device C1 returns a successful unlock message to the terminal device UE1. After receiving the successful unlock message, the terminal device UE1 will immediately prompt the user that the car lock has been unlocked. If there is no relay attack, 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 at risk of being stolen, and then immediately send a lock message through the terminal device UE1 to lock the door again to prevent the vehicle from being stolen.
其中,用户携带终端设备处于运动状态,会大大增加中继攻击的难度,终端设备移动时其信号强度随时发生变化,在此种情形下,中继攻击难以实施;此外,除极个别情况下,在实际应用中,用户需要开锁时都会向车辆靠近,大概率会处于运动状态,因而用户当前是否运动的状态,可以作为区分用户是否需要开锁的一个直接而有效的必要参考因素,一定程度上能够避免中继攻击。Among them, the terminal device carried by the user is in a state of motion, which will greatly increase the difficulty of relay attacks. When the terminal device moves, its signal strength changes at any time. In this case, it is difficult to implement relay attacks; In practical applications, when the user needs to unlock the vehicle, he will approach the vehicle with a high probability of being in a motion state. Therefore, whether the user is currently in motion can be used as a direct and effective necessary reference factor to distinguish whether the user needs to unlock. To a certain extent, it can Avoid relay attacks.
参阅图4所示,在另外一部分实施例中,当用户U1持有终端设备UE1到达车辆附近,终端设备UE1与车载目标设备C1建立安全连接之后,如图4中所示的示例性情形,此时如果终端设备UE1为解屏状态,即用户正在使用终端设备UE1,此种情形下,可以基于UI(User Interface)/UX(User Experience)交互,主动向用户询问是否开启车锁。例如,终端设备UE1检测到进入车载目标设备C1的信号范围内时,自动弹出是否打开车锁的对话框,显示用于发出开锁消息的按钮和发出关锁消息的按钮,无需用户自行查找操作界面,直接在弹出的对话框上点击相应的开锁或者闭锁的按钮即可实现车锁的开关控制。已有技术中通过手机进行开锁的按键开锁方式,需要用户 在到达车辆附近后,找到相应的应用程序(application,APP)并打开,或者从运行的程序中查找开锁程序,进入操控界面,点击开锁按键,实现开锁。本申请实施例提供的主动问询方式,以用户进入到车辆近距离范围内为触发时机,主动问询用户是否开锁,减少用户操作。Referring to Fig. 4, in another part of the embodiment, when the user U1 holds the terminal device UE1 and arrives near the vehicle, after the terminal device UE1 establishes a secure connection with the vehicle target device C1, as shown in the exemplary situation in Fig. 4, this At this time, 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 UI (User Interface)/UX (User Experience) interaction, the user can actively ask the user whether to unlock 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, it will automatically pop up a dialog box asking whether to unlock the car lock, and display the button for sending the unlock message and the button for sending the lock message, without the need for the user to find the operation interface by himself. , 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 button unlocking method of unlocking through a mobile phone requires the user to find and open the corresponding application (application, APP) after arriving near the vehicle, or find the unlocking program from the running program, enter the control interface, and click to unlock. Press the button to realize unlocking. The active inquiry method provided by the embodiment of the present application takes the user entering the short-distance range of the vehicle as a triggering opportunity to actively ask the user whether to unlock, reducing user operations.
需要说明的是,此种主动问询方式对于用户而言并不是完全的无感,但操作便捷度相比于现有技术中的按键开锁有明显提升,并且,该种主动问询的方式,用户不发出开锁消息则不开启车锁,可以完全避免中继攻击问题,安全性更高。It should be noted that this active inquiry method is not completely insensitive to the user, but the operation convenience is significantly improved compared with the button unlocking in the prior art, and this active inquiry method, If the user does not send an unlock message, the car lock will not be unlocked, which can completely avoid the problem of relay attacks, and the security is higher.
本申请实施例中,终端设备可以是用户随身携带的各种支持近距离无线通信的可移动终端产品,例如可以是手机、平板电脑、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、机器人(便携式)、智能玩具等,也可以是车钥匙。In the embodiment of the present application, the terminal device may be various mobile terminal products that support short-distance wireless communication carried by the user, for example, it may be a mobile phone, a tablet computer, a personal computer (personal computer, PC), a personal digital assistant (personal digital assistant), etc. assistant, PDA), smart watches, netbooks, wearable electronic devices, augmented reality (augmented reality, AR) devices, virtual reality (virtual reality, VR) devices, robots (portable), smart toys, etc., can also be car keys .
目标设备即用户预打开的车辆内用于与终端设备进行无线通信的设备,该目标设备可以是独立的车载设备,也可以是集成于车载设备的一个或多个部件,车辆内至少能够支持近距离无线通信且能够直接或间接控制车锁的任一车载设备、模块或部件,均可作为目标设备。例如,目标设备可以是如下车载设备或模块中的一个或多个,或者是集成于如下车载设备或模块中的一个或多个部件:车辆网关(gateway,GW)模块、远程信息控制单元(Telematics Control Unit,TCU)、汽车盒子(telematics BOX,T-BOX)、移动数据中心(mobile data center,MDC)、人机交互(human–machine interaction,HMI)模块、电子控制单元(electronic control unit,ECU)、座舱域控制器(cockpit domain controller,CDC),或整车域控制器(vehicledomain controller,VDC)。The target device is the device used for wireless communication with the terminal device in the vehicle pre-opened by the user. The target device can be an independent vehicle-mounted device, or one or more components integrated into the vehicle-mounted device. The vehicle can at least support proximity Any in-vehicle device, module or component that communicates wirelessly and can directly or indirectly control the lock can be used as a target device. For example, the target device may 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 (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 (CDC), or vehicle domain controller (vehicle domain controller, VDC).
其中,车辆网关GW模块为整车电子电气架构中的核心部件,其作为整车网络的数据交互枢纽,可控制区域网络(controller area network,CAN)、局域互联网络(localinterconnect network,LIN)、多媒体数据传输(media oriented system transport,MOST)、FlexRay等网络数据在不同网络中进行路由。移动数据中心MDC用于作为汽车的智能车载计算平台;人机交互HMI模块可以为汽车的信息娱乐系统;远程信息控制单元TCU可以用于和汽车外部、后台系统和智能手机、应用程序网络设备等通信;汽车盒子T-BOX可以用于和汽车外部、后台系统和智能手机、APP网络设备等通信;电子控制单元ECU为汽车专用微机控制器;座舱域控制器CDC用于控制座舱域相关内容;整车域控制器VDC用于控制整车域相关内容。Among them, the vehicle gateway GW module is the core component in the electronic and electrical architecture of the vehicle. As the data exchange hub of the vehicle network, it can control the area network (controller area network, CAN), the local interconnect Multimedia data transmission (media oriented system transport, MOST), FlexRay and other network data are routed in different networks. The mobile data center MDC is used as the intelligent on-board computing platform of the car; the human-computer interaction HMI module can be used as the infotainment system of the car; the telematics control unit TCU can be used to communicate with the car's exterior, background system and smart phone, application network equipment, etc. Communication; 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 microcomputer controller dedicated to the car; the cockpit domain controller CDC is used to control the relevant content of the cockpit domain; The vehicle domain controller VDC is used to control the content related to the vehicle domain.
目标电子锁即为用户预打开的车辆的车锁,该车锁不仅限于车门锁,还可以包括车窗控制部件、后备箱锁控部件,以及车内音箱、空调等电气设备的控制单元等。目标电子锁可以包括受控于控制信号的实体机械锁和/或电气开关。The target electronic lock is the car lock of the vehicle that the user pre-opens. The car lock is not limited to the door lock, but also includes window control components, trunk lock control components, and control units for electrical equipment such as speakers in the car and air conditioners. The target electronic lock may include a physical mechanical lock and/or an electrical switch controlled by a control signal.
目标设备与目标电子锁可以为彼此独立的两个设备或部件,或者分别部署于不同的设备或模块中,目标设备和目标电子锁也可以集成于同一设备中,例如,目标设备可以作为车锁的附属配件,仅用于进行与车锁相关的通信任务。The target device and the target electronic lock can be two independent devices or components, or they can be deployed in different devices or modules. The target device and the target electronic lock can also be integrated into the same device. For example, the target device can be used as a car lock accessories for use only for communication tasks related to the lock.
下面对本申请实施例提供的开锁方法的流程进行具体阐述:The process of the unlocking method provided in the embodiment of the present application is described in detail below:
在一部分实施例中,以用户进入车辆信号范围内以及处于运动状态,作为触发时机,来触发开锁并且向用户发出开锁通知。该方法的执行主体可以为终端设备,包括 以下流程:确定进入到目标设备发出的目标信号的信号范围时,则检测终端设备是否处于预定的运动状态,确定处于运动状态,则向目标设备发出开锁消息,以及触发第一事件,第一事件即用于向用户提示目标设备对应的目标电子锁已开启的交互事件。In some embodiments, when the user enters the signal range of the vehicle and is in motion, the unlocking is triggered and an unlocking notification is sent to the user. The subject of execution of the method may be a terminal device, including the following process: when it is determined that the target device has entered the signal range of the target signal, it is detected whether the terminal device is in a predetermined motion state, and if it is determined to be in a motion state, then an unlocking signal is issued to the target device. message, and trigger a first event, which is an interaction event used to prompt the user that the target electronic lock corresponding to the target device has been unlocked.
其中,确定进入目标设备发出的目标信号的信号范围,包括两层含义:一层含义是终端设备目前处于目标设备的信号范围内;另一层含义是由失去信号状态向能够搜索到信号状态变化,而并非是由搜索到信号状态向失去信号状态变化,即是“进入”信号范围,而非远离。能够确定进入目标设备发出的目标信号的信号范围的前提是,当前能够搜索到目标设备发出的信号,并且在此之前处于未能发现目标设备信号的状态。作为一种可能的实施方式,以3秒(s)为一个查询周期,每隔3s记录一下终端设备是否搜索到目标设备的信号状态,当确定搜索到目标设备的信号(即发现信号状态),查询相邻的上一个或两个时间周期内是否为失去信号状态,以及等待下一个周期,查询下一个周期的记录是否为发现信号状态,是,则确定进入目标设备发出的目标信号的信号范围。该种实施方式,能够避免用户持续处于车辆信号范围内时反复触发开锁。Among them, determining the signal range of the target signal sent by the target device includes two layers of meaning: one layer of meaning is that the terminal device is currently within the signal range of the target device; the other layer of meaning is the change from the lost signal state to the searchable signal state , instead of changing from the searched signal state to the lost signal state, that is, "entering" the signal range, not away from it. The premise of being able to determine the signal range of the target signal sent by the target device is that the signal sent by the target device can be searched at present, and the signal of the target device has not been found before. As a possible implementation, take 3 seconds (s) as a query cycle, record whether the terminal device has searched for the signal state of the target device every 3s, when it is determined that the signal of the target device has been found (that is, the signal state is found), Query whether it is in the state of losing signal in the previous one or two adjacent time periods, and wait for the next cycle, and check whether the record of the next cycle is in the state of finding the signal, if yes, then determine the signal range of the target signal sent by the target device . This implementation manner can avoid repeated triggering of unlocking when the user is continuously within the signal range of the vehicle.
需要说明的是,终端设备与目标设备之间采用近距离无线通信技术进行通信,例如可以采用蓝牙(bluetooth)、无线保真(Wireless Fidelity,Wi-Fi)、近场通信(Near Field Communication,NFC)、紫蜂协议(Zigbee)、超宽带(Ultra Wide Band,UWB)、射频识别技术(Radio Frequency Identification,RFID)等中的至少一种。其中,除NFC以外,其他几种通信方式可以通过调节功率来控制信号发射距离。It should be noted that the short-range wireless communication technology is used for communication between the terminal device and the target device, such as Bluetooth (bluetooth), wireless fidelity (Wireless Fidelity, Wi-Fi), near field communication (Near Field Communication, NFC). ), Zigbee protocol (Zigbee), ultra-wideband (Ultra Wide Band, UWB), radio frequency identification technology (Radio Frequency Identification, RFID), etc. at least one. Among them, in addition to NFC, several other communication methods can control the signal transmission distance by adjusting the power.
在一种可能的实施方式中,采用蓝牙作为终端设备与目标设备之间的通信方式。当终端设备确定接收到目标设备广播的beacon帧时,则确定当前处于目标设备的信号范围内。In a possible implementation manner, Bluetooth is used as the communication mode between the terminal device and the target device. When the terminal device determines to receive the beacon frame broadcast by the target device, it determines that it is currently within the signal range of the target device.
在一种可能的实施方式中,搜索到目标设备的信号后,还进一步检测信号强度。对于部分近距离无线通信技术,其通信距离范围可达十米甚至几十米,当终端设备进入目标设备的信号范围内之后,此时终端设备与车辆之间的实际距离可能在十米以上,因此需要进一步获取信号强度信息,即获取接收的信号强度指示(Received Signal Strength Indication,RSSI)的值,单位为分贝毫瓦(decibel relative to one milliwatt,dBm)。当信号强度超过指定阈值时,再去执行后续步骤。例如,在发现目标信号后,随即检测信号强度,确定信号强度达到指定阈值,再检测是否处于运动状态,或者,在检测到终端设备处于运动状态后,再去确定当前信号强度,信号强度超过指定阈值,则发出开锁消息,否则不触发开锁消息,直至信号强度超过指定阈值。运动状态检测与信号强度的确定,在时序上并无明确的先后顺序限定。In a possible implementation manner, after the signal of the target device is found, the signal strength is further detected. For some short-range wireless communication technologies, the communication distance can reach ten meters or even dozens 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 signal strength information, that is, to obtain the value of Received Signal Strength Indication (RSSI), and the unit is 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 detected immediately to determine whether the signal strength reaches the specified threshold, and then detects whether it is in a motion state, or, after detecting that the terminal device is in a motion state, then determine the current signal strength, and the signal strength exceeds the specified threshold. threshold, the unlock message will be sent, otherwise the unlock message will not be triggered until the signal strength exceeds the specified threshold. There is no clear sequence limitation on the time sequence of motion state detection and signal strength determination.
需要说明的是,当终端设备与车辆之间的通信方式的有效通信距离在几米范围内时,则可以不进行信号强度检测的步骤,例如,有效通信距离小于10米或者小于5米时。当车辆内的目标设备安装有弱天线(超短距天线)或者通过调节车辆一侧的目标设备的天线发射功率而使得有效的信号范围仅为车辆附近几米范围时,则无需再执行确定信号强度的步骤。当终端设备与车辆之间的通信方式的有效通信距离超出10米,且出于成本、方案兼容性以及实施难易度考虑时,无法对目标设备或手机上的天线的功率进行减弱时,则应在进入信号范围内之后,进一步确定信号强度,以确保用 户所持有的终端设备与车辆之间的距离在距离阈值内。距离阈值可以是5米,6米,10米等。It should be noted that when the effective communication distance of the communication mode between the terminal device and the vehicle is within several meters, the step of signal strength detection 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 installed with a weak antenna (ultra-short-range antenna) or the effective signal range is only a few meters near the vehicle by adjusting the antenna transmission power of the target device on the side of the vehicle, then there is no need to perform signal strength determination A step of. When the effective communication distance of the communication method between the terminal device and the vehicle exceeds 10 meters, and due to considerations of cost, solution compatibility and implementation difficulty, it is impossible to reduce the power of the antenna on the target device or mobile phone, then After entering the signal range, the signal strength should be further determined 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.
信号强度的指定阈值与距离阈值有关,当距离阈值确定后,可以车辆周围处于距离阈值处的信号强度进行采样,多个信号强度样本均值,可作为信号强度的指定阈值。The specified 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. The average value of multiple signal strength samples can be used as the specified threshold of signal strength.
已有技术中需要安装弱天线的原因在于控制车辆与手机之间的有效通信距离较短,例如在1.5米左右范围内。本申请实施例提供的解决方案中,基于上述触发机制,进一步将信号强度作为触发开锁条件,可以解决需要安装弱天线的技术问题,通过设置不同的信号强度阈值,当信号强度超过该阈值再触发开锁,可以有效控制触发开锁的距离范围,而无需安装弱天线,节省了安装弱天线的各项成本。The reason why a weak antenna needs to be installed in the prior art is that the effective communication distance between the control vehicle and the mobile phone is relatively short, for example, within a range of about 1.5 meters. In the solution provided by the embodiment of the present application, based on the above-mentioned trigger mechanism, signal strength is further used as the 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, trigger again. Unlocking can effectively control the distance range for triggering unlocking without installing weak antennas, which saves various costs for installing weak antennas.
需要说明的是,检测是否处于运动状态,可以通过传感器采集运动数据进行识别。即,预定的运动状态是根据终端设备的运动传感器采集的数据确定的。运动传感器包括陀螺仪、重力感应器、加速度传感器、磁力传感器、振动传感器、线速度传感器、角速度传感器中的一个或多个。传感器采集的数据,可以是运动方向、倾斜角度、空间姿态,行进速度等运动参数。采集运动数据为多种终端设备支持的功能,例如智能手机、智能手表等移动终端设备,本申请实施例可以利用已有的检测功能,利用检测到的运动数据,对运动状态进行识别。It should be noted that the detection of whether the person is in a motion state can be identified by collecting motion data through a sensor. That is, the predetermined motion state is determined according to 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 can be motion parameters such as motion direction, tilt angle, space attitude, and travel speed. Collecting motion data is a function supported by various terminal devices, such as mobile terminal devices such as smart phones and smart watches. In the embodiment of the present application, the existing detection function can be used to identify the motion state by using the detected motion data.
例如,作为一种可能的实施方式,终端设备可以内置陀螺仪、重力感应器和加速度传感器,通过陀螺仪感应用户运动方向;通过重力感应器测量由于重力引起的加速度,以计算出终端设备相对于水平面的倾斜角度;通过加速度传感器采集终端设备的加速度信息。可以结合运动方向、倾斜角度以及加速度信息,综合判断用户是否处于运动状态。For example, as a possible implementation, the terminal device can have a built-in gyroscope, a gravity sensor, and an acceleration sensor, and the gyroscope can sense the direction of the user's movement; the gravity sensor can measure the acceleration caused by gravity to calculate the relative The inclination angle of the horizontal plane; the acceleration information of the terminal device is collected through the acceleration sensor. It can be combined with the movement direction, tilt angle and acceleration information to comprehensively judge whether the user is in a movement state.
在一种可能的实现方式中,预定的运动状态可以包括步行、快速步行、缓慢步行、跑、慢跑、快跑、跳中的一个或多个,当用户带动终端设备处于上述任一一种状态时,则认为终端设备处于预定的运动状态。具体地,根据上述传感器感应到的数据,可以确定用户运动的步数或者频率,进而确定出用户是否处于快速步行、缓慢步行、快跑、慢跑等状态中的任一种。步行、快速步行、缓慢步行、跑、慢跑、快跑、跳等状态可以由多个样本数据进行统计而获得。In a possible implementation, the predetermined exercise state may include one or more of walking, fast walking, slow walking, running, jogging, fast running, and jumping. When the user drives the terminal device to be in any of the above states , the terminal device is considered to be in a predetermined motion state. Specifically, according to the data sensed by the above-mentioned sensors, the number of steps or the frequency of the user's movement can be determined, and then it can be determined whether the user is in any of states such as fast walking, slow walking, fast running, and jogging. States such as walking, fast walking, slow walking, running, jogging, fast running, jumping, etc. can be obtained through statistics of multiple sample data.
具体地,检测是否处于运动状态,可以通过如下几种方式实现:Specifically, detecting whether it is in motion can be achieved in the following ways:
方式一:将采集到的运动数据与预定的参数阈值或者预定条件进行比较,超过阈值或者达到预定条件,则认为用户所携带的终端设备处于运动状态。例如,通过上述传感器采集到的参数来确定使用者的步数,当使用者的步数在预定时间段内持续增加时,则认定用户及其携带的终端设备处于运动状态。例如,以5s为一个检测周期,每隔5s检测用户的步数是否增长,在连续多个检测周期内检测到的用户步数均有所增长,则认为用户处于运动状态。Method 1: The collected exercise data is compared with a predetermined parameter threshold or a predetermined condition, and if the threshold is exceeded or the predetermined condition is met, the terminal device carried by the user is considered to be in a state of exercise. For example, the number of steps of the user is determined through the parameters collected by the above sensors, and when the number of steps of the user continues to increase within a predetermined period of time, it is determined that the user and the terminal device they carry are in a state of exercise. For example, take 5s as a detection period, and detect whether the user's step count increases every 5s. If the user's step count increases during multiple consecutive detection periods, the user is considered to be in a state of exercise.
方式二:基于大数据,获取用户在预打开车门前的状态参数,获得多个样本,对其进行统计分析,例如采用聚类分析算法,获得用户在打开车门之前的普遍状态特征对应的参考特征向量,在判断当前的目标用户是否处于运动状态时,可以将采集到的运动参数转换为目标特征向量,将该目标特征向量与预先获得的参考特征向量进行比较,基于比较结果确定当前目标用户是否处于运动状态。其中,获得参考特征向量的 流程在网络侧的服务器实施,参考特征向量可以作为程序参数预先存储于终端设备中。Method 2: Based on big data, obtain the state parameters of the user before opening the car door, obtain multiple samples, and perform statistical analysis on them, such as using a cluster analysis algorithm to obtain reference features corresponding to the general state characteristics of the user before opening the car door Vector, when judging whether the current target user is in a state of motion, the collected motion parameters can be converted into a target feature vector, the target feature vector is compared with a pre-acquired reference feature vector, and based on the comparison result, it is determined whether the current target user is in motion. Wherein, 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.
方式三:检测是否处于运动状态的另一种可能的实施方式为:获得多个用户预打开车门前的状态参数作为训练数据,以是否处于运动状态作为标签,训练神经网络模型,然后,在实际应用阶段,以采集到的目标用户的运动参数对应的特征向量为输入,通过预先训练出的神经网络模型,输出是否处于运动状态的识别结果。方式三的实现,通常需要终端设备与网络侧的服务器进行交互来完成,多数情形下,训练好的神经网络模型部署于网络侧服务器中。Way 3: Another possible way to detect whether they are in motion is to obtain the state parameters of multiple users before opening the car door as training data, use whether they are in motion as a label, train the neural network model, and then, in the actual In the application stage, the feature vector corresponding to the collected motion parameters of the target user is used as input, and the recognition result of whether it is in a motion state is output through the pre-trained neural network model. The implementation of the third method usually requires the interaction between the terminal device and the server on the network side. In most cases, the trained neural network model is deployed on the server on the network side.
在一种可能的实施方式中,通过第一事件提醒用户车锁已开后,还通过第二事件,来询问用户是否误开,以及接收用户发出的关锁指令。在实际应用中,在受到中继攻击时,显然开锁行为并非是用户预期的,需要尽快关闭车锁;或者,没有受到中继攻击时实施无感开锁也有可能出现误开的情况,因而在提示用户车锁开启之后,应提供用户能够快速关锁车门的交互入口。In a possible implementation, after the first event is used to remind the user that the car lock has been unlocked, the second event is also used to ask the user whether the car lock has been unlocked by mistake, and to receive a lock lock instruction from the user. In practical applications, when a relay attack is received, the unlocking behavior is obviously not what the user expected, and the car lock needs to be closed as soon as possible; After the user's car lock is unlocked, an interactive entry for the user to quickly lock the car door should be provided.
为便于进一步理解本申请实施例提供的开锁方法,下面列举几个实施例。In order to further understand the unlocking method provided by the embodiment of the present application, several embodiments are listed below.
首先列举一个适用于开锁前终端设备处于锁屏状态场景的实施例,该实施例根据手机/车钥匙等终端设备是否处于锁屏状态以及是否运动,触发无感开锁,开锁后增加手机/钥匙等终端设备一侧的提示,让用户可以在短时间内获知车锁被误开或者由于遭受攻击而误开,进而立即发出关锁指令或者到现场手动锁门以解除风险。具体地,参阅图5所示,该实施例可以包括以下流程:Firstly, an example is given that applies to the scene where the terminal device is in the locked screen state before unlocking. This embodiment triggers non-inductive unlocking according to whether the mobile phone/car key and other terminal devices are in the locked screen state and whether they are moving. After unlocking, add the mobile phone/key, etc. The prompt on the side of the terminal device allows the user to know in a short time that the car lock has been opened by mistake or due to an attack, and then immediately issue a lock command or go to the scene to manually lock the door to eliminate the risk. Specifically, referring to Fig. 5, this embodiment may include the following processes:
步骤501,终端设备发现目标设备发出的第一目标信号;Step 501, the terminal device discovers the first target signal sent by the target device;
例如,终端设备搜索到目标设备(即图5中所示车载目标设备)发出的beacon帧,且相邻的上个查询周期内为失去信号状态,而相邻的下一个查询周期也为发现信号状态,则确定发现目标设备,进入到目标设备的目标信号范围内。For example, the terminal device searches for the beacon frame sent by the target device (that is, the vehicle-mounted target device shown in Figure 5), and the signal is lost in the previous adjacent query cycle, and the next query cycle is also a discovery signal state, it is determined that the target device is found, and the target device enters the target signal range of the target device.
需要说明的是,终端设备可以将目标设备发出的信号视为目标信号,目标设备也可以将终端设备发出的信号视为目标信号,为便于描述,将终端设备发出的信号定义为第一目标信号,将目标设备发出的信号定义为第二目标信号。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 , defining the signal sent by the target device as the second target signal.
步骤503,终端设备检测到自身处于锁屏状态;Step 503, the terminal device detects that it is in a screen-locked state;
步骤505,终端设备检测到自身处于运动状态;Step 505, the terminal device detects that it is in motion;
步骤507,终端设备与目标设备之间建立安全连接;Step 507, establishing a secure connection between the terminal device and the target device;
建立安全连接,即进行安全认证以进行通信。不同的通信技术对应采用不同的安全认证方式,例如,在一种可能的实施方式中,当终端设备与目标设备之间进行蓝牙通信时,可以基于安全简单配对SSP(Secure Simple Pairing)、Secure Connections、LE Secure Connections等加密认证机制,进行安全认证;再例如,终端设备与目标设备之间进行Wi-Fi通信时,可采用Wi-Fi保护访问-预共享密钥(Wi-Fi Protected Access-PreShared Key,WPA-PSK)/WPA2-PSK认证机制。A secure connection is established, that is, securely authenticated for communication. Different communication technologies correspond to different security authentication methods. For example, in a possible implementation, when the terminal device communicates with the target device through Bluetooth, it can be based on secure simple pairing SSP (Secure Simple Pairing), Secure Connections , LE Secure Connections and other encryption authentication mechanisms for security authentication; another example, when performing Wi-Fi communication between a terminal device and a target device, Wi-Fi Protected Access-PreShared Key (Wi-Fi Protected Access-PreShared Key) can be used Key, WPA-PSK)/WPA2-PSK authentication mechanism.
步骤509,终端设备发送开锁消息至目标设备;Step 509, the terminal device sends an unlock message to the target device;
步骤511,目标设备在开锁后向终端设备发送开锁成功消息;Step 511, the target device sends an unlock success message to the terminal device after unlocking;
步骤513,终端设备接收到开锁成功消息后,向用户提示车锁已开启;Step 513, after the terminal device receives the unlocking success message, it prompts the user that the car lock has been unlocked;
在一种可能的实施方式中,在终端设备收到目标设备发出的开锁成功的消息后,终端设备会触发第一事件,以向用户提示目标设备对应的目标电子锁已开启,提示方 式可以是声音、振动、推送文字消息、点亮屏幕中的至少一种,其中声音包括语音、铃音、蜂鸣声以及其他各种类型的提示音,第一事件具体可以是语音播报、响铃、发出蜂鸣声、振动、推送push消息、点亮屏幕中的一种或两种以上的组合。若终端设备处于锁屏状态,可以选择振动或声音提示,例如在已经开锁后进行语音播报“您的车辆已开锁”,也可以将不同的提示方式结合,例如在振动的同时进行语音播报,或者在振动的同时进行响铃,以提醒用户车锁开启,也可以在锁屏界面中显示推送的push消息。若终端设备处于解屏状态,则可显示推送的push消息,或其他推送文本消息的方式来提示用户。在该实施例中,终端设备由步骤502的锁屏状态转为解屏状态为小概率事件,因而在执行步骤513时,可以采用锁屏状态对应的提示方式。In a possible implementation manner, after the terminal device receives the unlocking success message sent by the target device, the terminal device will trigger the first event to remind the user that the target electronic lock corresponding to the target device has been unlocked. The prompt method can be At least one of sound, vibration, push text message, and light up the screen, wherein the sound includes voice, ringtone, buzzer, and other various types of prompt sounds. The first event can specifically be voice broadcast, ringing, sending Beep, vibration, push message, light up the screen, or a combination of two or more. If the terminal device is in the lock screen state, you can choose vibration or sound prompts, such as voice broadcast "Your vehicle is unlocked" after it has been unlocked, or combine different prompt methods, such as voice broadcast while vibrating, or Ring the bell while vibrating to remind the user that the car lock is unlocked, or display a push message on the lock screen interface. If the terminal device is in the screen-off state, it may display a pushed push message, or other ways of pushing a text message to prompt the user. In this embodiment, it is a small probability event that the terminal device changes from the locked screen state in step 502 to the unlocked screen state, so when step 513 is executed, a prompt manner corresponding to the locked screen state may be used.
步骤515,终端设备检测到用户解锁设备的操作。Step 515, the terminal device detects that the user unlocks the device.
在该实施例中,用户在听到手机的声音提示或感觉到振动提示后,如果不是用户本身的意愿下开锁,会主动打开手机进行查看。如果用户没有解锁手机而是选择忽略了提示,则大概率是由于车门开锁为用户本身意愿,并没有受到中继攻击。In this embodiment, after the user hears the sound prompt of the mobile phone or feels the vibration prompt, if the user does not unlock the lock at his own will, he will actively open the mobile phone to check. If the user chooses to ignore the prompt instead of unlocking the phone, it is most likely because the door is unlocked at the user's own will and has not been attacked by a relay.
步骤517,询问用户是否误开,以及是否要关闭车锁。Step 517, ask the user whether to open the car lock by mistake, and whether to close the car lock.
该步骤517,可以通过触发第二事件实现,第二事件用于询问用户是否误开,以及接收用户发出的关锁指令。作为一种可实施方式,可以在用户解锁手机后,弹出询问用户是否误开要关闭车锁的对话框或选项提示框,在对话框或者选项提示框中至少设置确认是误开的关锁按钮,以接收用户的关锁指令。This step 517 can be realized by triggering a second event, and the second event is used to inquire whether the user opened it by mistake, and to receive a lock-off instruction from the user. As an implementable mode, after the user unlocks the mobile phone, a dialog box or an option prompt box asking the user whether to open the car lock by mistake will pop up, and at least a lock button for confirming that it is accidentally opened is set in the dialog box or the option prompt box , to receive the lock command from the user.
例如,参阅图6,在锁屏状态下,在步骤513中,采用振动结合点亮屏幕的方式提醒用户车锁已开启,触发第一事件时终端设备的一个界面示例如该图中界面I1所示,此时屏幕在锁屏状态下被点亮,并弹出通知消息“您的车锁已开启,点击查看详情”,如果此时受到了中继攻击,则用户察觉到开锁异常,会迅速解屏,此时终端设备检测到了用户的解屏指令,解锁屏幕后,弹出如界面I2中所示的选项提示框“您的车锁已开启,是否误开?”并设置用于关锁的选项“误开,关锁”以及“忽略”选项,用户可通过点击“误开,关锁”选项发出关锁指令,控制车锁再次关闭。用户选择“忽略”或者没有执行任何操作时,则该选项提示框自动消失。For example, referring to FIG. 6, in the locked screen state, in step 513, the user is reminded that the car lock has been unlocked by means of vibration combined with lighting the screen, and an example interface of the terminal device when the first event is triggered is shown in interface I1 in the figure. At this time, the screen is turned on when the screen is locked, and a notification message "Your car lock has been unlocked, click to view details" pops up. screen, at this time the terminal device has detected the user’s screen unlock command, and after unlocking the screen, an option prompt box as shown in interface I2 will pop up “Your car lock has been unlocked, did you open it by mistake?” and set the option for closing the lock "Open by mistake, close the lock" and "Ignore" options, the user can send a lock command by clicking the "open by mistake, close the lock" option to control the lock to close again. When the user selects "Ignore" or does not perform any operation, the option prompt box will disappear automatically.
可选的,可以在步骤505和步骤507之间,增加步骤506,终端设备检测接收到的目标信号的信号强度,确定信号强度超过指定阈值时,再执行步骤507;或者,在步骤501和步骤503之间增加检测信号强度的步骤;或者,在步骤503和步骤505之间增加检测信号强度的步骤,如此可基于图5所示的实施例获得另外多个实施例。Optionally, step 506 may be added between step 505 and step 507, 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, then step 507 is executed; or, between step 501 and step Step 503 increases the step of detecting signal strength; or, increases the step of detecting signal strength between step 503 and step 505, so that multiple other embodiments can be obtained based on the embodiment shown in FIG. 5 .
可选地,图5所示的实施例中也可以不包括步骤515,即在终端设备提示用户车锁已开启后,用户不需要解锁终端设备,就可以直接在终端设备的锁屏界面,确认是否为误开。也就是说,图6中的界面I2,也可以终端设备处于锁屏状态下的一个界面,用户可通过点击“误开,关锁”选项发出关锁指令,控制车锁再次关闭;用户选择“忽略”或者没有执行任何操作时,则该选项提示框自动消失。Optionally, step 515 may not be included in the embodiment shown in FIG. 5 , that is, after the terminal device prompts the user that the car lock has been unlocked, the user does not need to unlock the terminal device, and can directly confirm on the lock screen interface of the terminal device. Whether it was opened by mistake. That is to say, the interface I2 in Figure 6 can also be an interface where the terminal device is in the lock screen state, and the user can send a lock command by clicking on the option "open by mistake, close the lock" to control the lock to close again; the user selects " Ignore" or do not perform any operation, the option prompt box will disappear automatically.
再列举一个适用于在开锁前终端设备处于解屏状态场景的实施例,参阅图7所示,该实施例可以包括以下流程:Another example is applicable to the scenario where the terminal device is in the unlocked state before unlocking. Referring to FIG. 7, this embodiment may include the following process:
步骤701,终端设备发现目标设备发出的第一目标信号;Step 701, the terminal device discovers the first target signal sent by the target device;
步骤702,终端设备检测到自身处于解屏状态;Step 702, the terminal device detects that it is in a screen-unlocking state;
步骤703,终端设备检测到自身处于运动状态;Step 703, the terminal device detects that it is in motion;
步骤704,终端设备检测接收到的第一目标信号的信号强度;Step 704, the terminal device detects the signal strength of the received first target signal;
步骤705,终端设备与目标设备之间建立安全连接;Step 705, establishing a secure connection between the terminal device and the target device;
步骤706,终端设备发送开锁消息至目标设备;Step 706, the terminal device sends an unlock message to the target device;
步骤707,目标设备在开锁后向终端设备发送开锁成功消息;Step 707, the target device sends an unlock success message to the terminal device after unlocking;
步骤708,终端设备接收到开锁成功消息后,推送车锁已开启的push消息,并提供关锁的快捷方式,该步骤708可以通过触发第三事件实现。第三事件,可以用于提供快捷方式以接收用户发出的关锁指令,在该实施例中,第三事件用于推送车锁已开启的push消息,并提供关锁的快捷方式。Step 708: After receiving the successful unlocking message, the terminal device pushes a push message indicating that the car lock has been unlocked, and provides a shortcut to unlock the car. This step 708 can be implemented by triggering a third event. The third event can be used to provide a shortcut to receive a lock lock command issued by the user. In this embodiment, the third event is used to push a push message that the car lock has been unlocked, and provide a shortcut to lock the lock.
该实施例实现了终端设备解屏状态下的无感开锁,可适用于用户一边操作手机等终端设备,一边走向车辆的场景,例如用户走向车辆的同时正在进行语音、视频电话等,或者正在编辑文本消息等等。需要说明的是,不同于图5对应的实施例,图7所示的该实施例适用的场景中,用户在走向车辆的过程中仍然保持手机解屏状态,多数情形下是有重要事务或者感兴趣的事务正在处理,因而,在该实施例中,侧重于降低对用户的干扰,由此,在步骤708中,开锁成功后,可以触发第三事件,以推送push消息等文本消息的形式提醒用户开锁已开启,而不采用响铃或者振动等可能会对用户产生干扰的提醒方式,并且为保证安全性,提供供用户关闭车锁的快捷方式,例如,该快捷方式可以是提供一个悬浮窗,在悬浮窗内设关锁按钮,用户点击该关锁按钮可以不影响当前主界面程序的运行。可选地,在图7所示的实施例中,终端设备也可以响铃或者振动,以便用更不容易被用户忽略的方式提醒用户车锁已开。This embodiment realizes the non-inductive unlocking of the terminal device when the screen is unlocked, and is applicable to the scene where the user walks to the vehicle while operating the terminal device such as a mobile phone, for example, the user is making a voice or video call while walking to the vehicle, or is editing text messages and more. It should be noted that, unlike the embodiment corresponding to FIG. 5 , in the applicable scenario of the embodiment shown in FIG. 7 , the user still keeps the screen of the mobile phone unlocked during the process of walking towards the vehicle. The transaction of interest is being processed. Therefore, in this embodiment, the focus is on reducing the interference to the user. Therefore, in step 708, after the unlock is successful, a third event can be triggered to remind you in the form of a text message such as a push message The user has opened the lock, and does not use ringing or vibration reminders that may interfere with the user, and to ensure safety, provide a shortcut for the user to close the car lock. For example, the shortcut can provide a floating window , set a lock button in the floating window, the user can click the lock button without affecting the running of the current main interface program. Optionally, in the embodiment shown in FIG. 7 , the terminal device may also ring or vibrate, so as to remind the user that the car lock is unlocked in a way that is less likely to be ignored by the user.
例如,参阅图8(a)和图8(b),图8(a)示例性示出了终端设备解屏状态下,当前界面为等待接听视频聊天界面时,推送车锁开启成功的push消息“****提示:车锁开启成功!”,图8(b)示例性示出了终端设备解屏状态下,当前界面为聊天界面时,推送车锁开启成功的push消息“****提示:车锁开启成功!”,其中****可以是安装于终端设备上用于实现本申请实施例提供的开锁方法的APP名称。可选的,用户可以通过下滑通知栏查看该条push消息。图8(a)和图8(b)仅为示例,第三事件的触发还可以在其他多个界面状态下执行,本申请实施例不逐一列举。并且第三事件中,开锁成功消息不仅限于以push消息的形式推送,例如还可以以悬浮框等形式通知用户。For example, referring to Fig. 8(a) and Fig. 8(b), Fig. 8(a) exemplarily shows that when the terminal device is in the screen-off state, when the current interface is waiting to answer the video chat interface, the push message that the car lock is successfully unlocked is pushed "**** Prompt: The car lock is successfully unlocked!", Figure 8(b) exemplarily shows the push message "*** that the car lock is successfully opened when the current interface is a chat interface when the terminal device is in the unlocked state" *Prompt: The car lock has been unlocked successfully!", where **** can be the name of the APP installed on the terminal device to implement the unlocking method provided by the embodiment of this application. Optionally, the user can view the push message by sliding down the notification bar. FIG. 8( a ) and FIG. 8( b ) are only examples, and the triggering of the third event may also be performed in multiple other interface states, which are not listed in this embodiment of the present application. And in the third event, the successful unlocking message is not limited to being pushed in the form of a push message, for example, the user may also be notified in the form of a floating box or the like.
第三事件还用于提供关锁的快捷方式,该快捷方式可以是在push消息中附带相应的链接按钮,例如,图8(a)和图8(b)中所示的“点击快速关锁”。The third event is also used to provide a shortcut for closing the lock, which can be a corresponding link button in the push message, for example, the "click to quickly close the lock" shown in Figure 8 (a) and Figure 8 (b) ".
上述图5和图7示出了无感开锁步骤,参阅图9所示,在步骤900执行无感开锁之后,还可以包括以下步骤:The above-mentioned Figure 5 and Figure 7 show the steps of non-inductive unlocking, as shown in Figure 9, after performing the non-inductive unlocking in step 900, the following steps may also be included:
步骤901,用户确认误开;Step 901, the user confirms that it was opened by mistake;
终端设备收到用户发出的确认误开的指令或者关锁消息,则视为用户确认误开。When the terminal device receives an instruction to confirm the wrong opening or a lock lock message from the user, it is deemed that the user confirms the wrong opening.
步骤902,终端设备向目标设备(即图9中所示的车载目标设备)发出关锁消息;Step 902, the terminal device sends a lock message to the target device (i.e. the vehicle-mounted target device shown in Figure 9);
步骤903,终端设备再次发现第一目标信号;Step 903, the terminal device discovers the first target signal again;
步骤904,终端设备开始计时,在本第一计时周期内不再无感开锁;Step 904, the terminal device starts timing, and no longer unlocks the lock involuntarily within the first timing period;
步骤905,终端设备失去第一目标信号;Step 905, the terminal device loses the first target signal;
终端设备无法搜索到目标设备发出的信号,则视为失去第一目标信号。例如,无法接收到目标设备广播的beacon帧。If the terminal device cannot search for the signal sent by the target device, it will be deemed as having lost the first target signal. For example, the beacon frame broadcast by the target device cannot be received.
步骤906,终端设备重新发现第一目标信号;Step 906, the terminal device rediscovers the first target signal;
步骤907,终端设备再次执行无感开锁。Step 907, the terminal device performs non-sensing unlocking again.
具体地,在一种可能的实施方式中,参阅图10所示,无感开锁之后在第一计时周期内不再执行无感开锁的功能,可以通过图10所示的流程实现:Specifically, in a possible implementation manner, referring to FIG. 10 , the function of non-inductive unlocking is no longer performed in the first timing period after the non-inductive unlocking, which can be realized through the process shown in FIG. 10 :
步骤1001,用户确认误开;Step 1001, the user confirms that it was opened by mistake;
步骤1002,判断是否失去第一目标信号?是,则此时用户处于车辆的信号范围之外,返回步骤1000,以继续等待用户携带终端设备再次返回车辆附近(即终端设备能够发现第一目标信号)时进行无感开锁;否,则进入步骤1003;Step 1002, judging whether the first target signal is lost? If yes, the user is outside the signal range of the vehicle at this time, return to step 1000 to continue to wait for the user to carry the terminal device and return to the vicinity of the vehicle again (that is, the terminal device can find the first target signal) to perform non-inductive unlocking; if not, enter Step 1003;
步骤1003,启动计时器进行计时。计时时长为第一计时周期。Step 1003, start the timer for timing. The timing duration is the first timing period.
步骤1004,判断是否到达第一计时周期?是,计时结束,返回步骤1000;否,则此时仍然处于第一计时周期内,进入步骤1005;Step 1004, judging whether the first timing period has been reached? Yes, the timing is over, and return to step 1000; no, it is still in the first timing cycle at this time, and enter step 1005;
步骤1005,中断无感开锁流程。在第一计时周期内,即便再次发现第一目标信号也不执行无感开锁。例如,一种可行的控制方式可以是在确定计时未结束时,向用于实现无感开锁对应的进程发出中断信号以中断该进程。Step 1005, interrupt the non-inductive unlocking process. In the first timing period, even if the first target signal is found again, the non-inductive unlocking is not performed. For example, a feasible control manner may be to send an interrupt signal to a corresponding process for implementing the non-inductive unlocking to interrupt the process when it is determined that the timing is not over.
图10所示的实施例,可以解决如下场景下可能产生的终端设备反复提醒是否开锁而干扰用户的问题。该场景具体为,用户在车的周围运动,导致终端设备反复离开车载目标设备的信号范围、又反复进入车载目标设备的信号范围。此时若实施图9所示实施例,则在每次车载目标设备重新发现第一目标信号后,终端设备就会再次无感开锁,导致车锁反复开关、终端设备反复询问用户是否开锁,对用户产生干扰。此时若实施图10所示实施例,则可以解决上述问题,通过步骤1003启动计时器,在计时结束之前,都会执行步骤1005来中断重新发现第一目标信号导致的无感开锁,从而可以减少该场景下对用户的干扰。The embodiment shown in FIG. 10 can solve the problem that the terminal device repeatedly reminds whether to unlock and interfere with the user in the following scenarios. Specifically, the scenario is that the user moves around the car, causing the terminal device to repeatedly leave the signal range of the vehicle target device and repeatedly enter the signal range of the vehicle target device. At this time, if the embodiment shown in FIG. 9 is implemented, each time the vehicle-mounted target device rediscovers the first target signal, the terminal device will unlock again without any sense, causing the car lock to be turned on and off repeatedly, and the terminal device to repeatedly ask the user whether to unlock it. User interference. Now if implement the embodiment shown in Figure 10, then can solve above-mentioned problem, start timer by step 1003, before timing ends, all can execute step 1005 to interrupt the non-inductive unlocking that rediscovers that the first target signal causes, thereby can reduce Interference to users in this scenario.
图9或图10示出了无感开锁之后的可行实施方式,需要说明的是,图9中所示步骤900或图10中所示步骤1000,可以包括从终端设备检测到第一目标信号直至打开车锁的任一实施例下的流程,例如步骤900或1000具体可以包括图5示出的步骤501至517,或者包括图7示出的步骤701至708。因而,图9或图10所示的流程,可以与图5或图7所示的流程进行组合,可得到其他多个实施例,例如,图5所示的步骤501至517,与图10所示的步骤1001至1005组合,可获得一个实施例,图7所示的步骤701至708,与图10所示的步骤1001至1005组合,则可获得另外的一个实施例。Figure 9 or Figure 10 shows a feasible implementation after non-inductive unlocking. It should be noted that step 900 shown in Figure 9 or step 1000 shown in Figure 10 may include detecting the first target signal from the terminal device until The process of unlocking the vehicle lock in any embodiment, for example, step 900 or 1000 may specifically include steps 501 to 517 shown in FIG. 5 , or include steps 701 to 708 shown in FIG. 7 . Therefore, the flow shown in FIG. 9 or FIG. 10 can be combined with the flow shown in FIG. 5 or FIG. 7 to obtain other multiple embodiments, for example, steps 501 to 517 shown in FIG. One embodiment can be obtained by combining steps 1001 to 1005 shown in FIG. 7 , and another embodiment can be obtained by combining steps 701 to 708 shown in FIG. 7 with steps 1001 to 1005 shown in FIG. 10 .
上述实施例采用了在进入第一目标信号范围后至少进行运动检测的技术手段。在另外一部分实施例中,在检测到用户进入车辆信号范围内后,主动询问用户是否打开车锁。下面列举基于主动询问方式开展的实施例。The above embodiments adopt the technical means of at least performing motion detection after entering the range of the first target signal. In another part of the embodiments, after detecting that the user enters the signal range of the vehicle, the user is actively asked whether to unlock the car lock. Examples based on active inquiry are listed below.
列举一个适用于开锁前终端设备处于解屏状态场景的实施例,参阅图11所示,该实施例可以包括以下流程:To cite an embodiment applicable to the scene where the terminal device is in the unlocked state before unlocking, as shown in FIG. 11 , this embodiment may include the following process:
步骤1101,终端设备发现目标设备发出的第一目标信号;Step 1101, the terminal device discovers the first target signal sent by the target device;
步骤1103,终端设备检测到自身处于运动状态;Step 1103, the terminal device detects that it is in motion;
步骤1105,终端设备询问用户是否开锁?Step 1105, the terminal device asks the user whether to unlock?
其中,询问用户是否开锁通过触发第四事件实现,第四事件用于询问用户是否开启所述目标设备对应的目标电子锁,以及等待接收用户发出开锁指令。Wherein, inquiring whether the user unlocks is realized by triggering a fourth event, and the fourth event is used to inquire whether the user unlocks the target electronic lock corresponding to the target device, and waits to receive an unlock instruction issued by the user.
步骤1107,终端设备接收用户发出的确认开锁的开锁指令;Step 1107, the terminal device receives an unlocking instruction sent by the user to confirm the unlocking;
步骤1109,终端设备建立与目标设备之间的安全连接;Step 1109, the terminal device establishes a secure connection with the target device;
步骤1111,终端设备基于用户的开锁指令,生成开锁消息,发送至目标设备;Step 1111, the terminal device generates an unlock message based on the user's unlock command, and sends it to the target device;
步骤1113,终端设备接收目标设备发送的开锁成功消息;Step 1113, the terminal device receives the unlock success message sent by the target device;
步骤1115,终端设备提示用户开锁成功。该步骤1115可以通过触发第五事件实现。Step 1115, the terminal device prompts the user that the unlocking is successful. This step 1115 can be realized by triggering a fifth event.
可选的,在步骤1103和步骤1105之间,还可以增加步骤1104,步骤1104可以是:终端设备检测到自身处于解屏状态时,则执行步骤1105;或者步骤1104可以是:终端设备接收到的第一目标信号的信号强度超过指定阈值时,则执行步骤1105;或者,步骤1104可以是:终端设备检测到屏幕处于解屏状态且接收到的第一目标信号的信号强度超过指定阈值时,则执行步骤1105;或者,步骤1104可以是:终端设备检测到自身处于解屏状态或接收到的第一目标信号的信号强度超过指定阈值时,则执行步骤1105。如此,基于图11所示的流程,可获得多个实施例。Optionally, between step 1103 and step 1105, step 1104 may also be added. Step 1104 may be: when the terminal device detects that it is in the screen unlocking state, then execute step 1105; or step 1104 may be: the terminal device receives When the signal strength of the first target signal exceeds the specified threshold, execute step 1105; or, step 1104 may be: when the terminal device detects that the screen is in an off-screen state and the received signal strength of the first target signal exceeds the specified threshold, Then execute step 1105; or, step 1104 may be: when the terminal device detects that it is in a screen-off state or the signal strength of the received first target signal exceeds a specified threshold, then execute step 1105. In this way, based on the flow shown in FIG. 11 , multiple embodiments can be obtained.
例如,参阅图12所示,示例性地,用户正在观看视频,终端设备的界面状态如图12中所示界面I3,当终端设备检测到终端设备处于解屏状态,信号强度阈值超过指定阈值且正在运动时,则触发第四事件,弹出如图12中界面I4所示的选项提示框“***检测到您的车辆就在附近,是否打开车锁?”以及至少设置“开锁”按钮。在用户点击“开锁”按钮后,终端设备向目标设备发送开锁消息,使其控制目标电子锁有闭锁状态转为开锁状态。在收到目标设备返回的开锁成功的通知后,在当前界面推送push消息或者弹出悬浮框以显示“车锁开启成功”,相应的界面示例参阅图13中的界面I5。For example, referring to FIG. 12 , for example, the user is watching a video, and the interface status of the terminal device is interface I3 as shown in FIG. When it is moving, the fourth event is triggered, and the option prompt box shown in interface I4 in Figure 12 pops up "*** has detected that your vehicle is nearby, do you want to unlock the car?" and at least set the "unlock" button. After the user clicks the "unlock" button, the terminal device sends an unlock message to the target device, making it control the target electronic lock from locked state to unlocked state. After receiving the notification of successful unlocking returned by the target device, push a push message on the current interface or pop up a floating box to display "The car lock is successfully unlocked". For an example of the corresponding interface, refer to interface I5 in Figure 13.
需要说明的是,图11所示的实施例,不仅限适用于终端设备处于解屏状态的场景,在终端设备处于锁屏状态时,也可以在检测到终端设备当前的状态,例如信号状态、运动状态符合开锁条件时,则主动弹出对话框或者选项提示框,让用户选择是否开锁。其中,与解屏状态下的实施方式不同的是,在锁屏状态下实施的方案中,触发第四事件也就是主动询问用户是否开锁的方式应更显著,以能够使用户注意到,例如可以是振动、响铃、点亮屏幕相结合的提示方式。如此,参照图11所示流程以及相关文字说明,可获得锁屏状态下的其他多个实施例,此处不再逐一介绍。It should be noted that the embodiment shown in FIG. 11 is not limited to the scenario where the terminal device is in the unlocked state. When the terminal device is in the locked screen state, the current state of the terminal device can also be detected, such as the signal state, When the motion state meets the unlocking conditions, a dialog box or an option prompt box will pop up actively, allowing the user to choose whether to unlock. Among them, different from the implementation mode in the unlocked state, in the solution implemented in the locked screen state, the way of triggering the fourth event, that is, actively asking the user whether to unlock the lock, should be more prominent, so that the user can notice, for example, It is a reminder method combining vibration, ringing and lighting the screen. In this way, with reference to the process shown in FIG. 11 and related text descriptions, multiple other embodiments in the locked screen state can be obtained, which will not be introduced one by one here.
需要说明的是,图9或图10所示出的在无感开锁流程之后实施的可行方式,也可以与图11或图12中的无感开锁流程进行组合而获得另外多个实施例。It should be noted that the feasible way shown in FIG. 9 or 10 after the non-sensing unlocking process can also be combined with the non-sensing unlocking process in FIG. 11 or 12 to obtain multiple other embodiments.
在另一种可实现方式中,在向目标设备发出开锁消息之后,还可执行以下操作:获取目标电子锁对应的开关装置的开关状态信息,基于开关状态信息,确定在第二计时周期内开关装置未被打开时,向目标设备发出关锁消息。该关锁消息,用于通知目标设备控制目标电子锁由开锁状态转为闭锁状态。该种实现方式主要应用于车锁、门锁等目标电子锁被开启后,用户实际并没有打开车门或者打开房门的应用场景。其中,开关装置可以是车门、房门、汽车后备箱箱盖等,目标电子锁可以房门、车门、后备箱上的电子锁等。在实际应用场景中,有可能在车锁或门锁等电子锁开启后,用户并没有拉动车门或房门的把手,房门或者车门等仍处于关闭状态。此种情形下,车门或 房门未被打开,说明用户此时没有打开车门的实际需要,有可能是误开,也有可能用户临时有别的事情,在走近车辆后又离开了,此时如果开锁或门锁等继续保持开启,会存在安全风险,因而,在检测到在一定的时间周期(第二计时周期)内目标电子锁对应的开关装置都没有被打开时,则自动上锁。例如,第二计时周期可以为3-5分钟。该种实施方式可以与任一实施例中的开锁流程进行组合,而获得另外多个实施例。In another practicable way, after sending the unlock message to the target device, the following operations can also be performed: obtain the switch state information of the switch device corresponding to the target electronic lock, and determine the switch state information within the second timing period based on the switch state information. When the device is not opened, 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 from an unlocked state to a locked state. This implementation method is mainly used in application scenarios where the user does not actually open the car door or the house door after the target electronic lock such as the car lock or door lock is opened. Wherein, the switch device may be a car door, a house door, a trunk lid of a car, etc., and the target electronic lock may be a house door, a car door, an electronic lock on a trunk, etc. In practical application scenarios, it is possible that after the electronic lock such as the 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 the door is still closed. In this case, if the car door or house door is not opened, it means that the user did not actually need to open the car door at this time, it may be opened by mistake, or the user may have other things temporarily and left after approaching the vehicle. If the unlocking or door lock etc. continue to be kept open, there will be a safety risk. Therefore, when it is detected that the switch device corresponding to the target electronic lock is not opened within a certain time period (second timing period), it will be automatically locked. For example, the second timing period may be 3-5 minutes. This implementation manner can be combined with the unlocking process in any embodiment to obtain multiple other embodiments.
上述实施例均以终端设备作为执行主体的角度进行阐述,在实际应用中,上述开锁方法也可以基于目标设备(例如车载目标设备)来实现。在再一部分实施例中,基于目标设备实施的开锁方法流程包括:确定终端设备进入到目标设备发出的第一目标信号的信号范围内之后,获取终端设备的运动状态信息;基于运动状态信息确定终端设备处于运动状态的情况下,控制目标设备对应的目标电子锁由闭锁状态转为开锁状态;向终端设备发送第一指令,以使终端设备触发第一事件,其中第一事件用于提示用户目标电子锁已开启。The above-mentioned embodiments are all described from the perspective of the terminal device as the execution subject. In practical applications, the above-mentioned unlocking method may also be implemented based on a target device (eg, a vehicle-mounted target device). In yet another part of the embodiments, the process of the unlocking method implemented based on the target device includes: after determining that the terminal device enters the signal range of the first target signal sent by the target device, acquiring the motion state information of the terminal device; determining the terminal device based on the motion state information When the device is in a moving state, control the target electronic lock corresponding to the target device from the locked state to the unlocked state; send the first instruction to the terminal device so that the terminal device triggers the first event, where the first event is used to remind the user of the target Electronic lock is on.
或者,在又一部分实施例中,基于目标设备实施的开锁方法流程可以包括:确定终端设备进入到目标设备发出的第一目标信号的信号范围内且终端设备处于预定的运动状态之后,向终端设备发送第四指令,以使终端设备触发第四事件,第四事件用于询问用户是否开启目标设备对应的目标电子锁,以及等待接收用户发出开锁指令;确定接收到终端设备发送的开锁消息后,控制目标设备对应的目标电子锁由闭锁状态转为开锁状态;开锁消息为终端设备确定接收到开锁指令后生成。Or, in yet another part of the embodiments, the process of the unlocking method implemented based on the target device may include: after determining that the terminal device has entered the signal range of the first target signal sent by the target device and the terminal device is in a predetermined motion state, sending a message to the terminal device Sending a fourth instruction, so that the terminal device triggers a fourth event, the fourth event is used to ask the user whether to open the target electronic lock corresponding to the target device, and wait for the receiving user to issue an unlocking instruction; after determining that the unlocking message sent by the terminal device is received, Control the target electronic lock corresponding to the target device from the locked state to the unlocked state; the unlock message is generated after the terminal device determines to receive the unlock command.
下面列举基于目标设备执行开锁方法的几个实施例。Several embodiments of the unlocking method based on the target device are listed below.
参阅图14所示,以汽车开锁场景为例,该开锁方法在终端设备进入信号范围内且处于运动状态时,执行自动开锁,具体流程如下:Referring to Figure 14, taking the car unlocking scene as an example, the unlocking method performs automatic unlocking when the terminal device enters the signal range and is in motion. The specific process is as follows:
步骤1401,目标设备检测到终端设备处于信号范围内;Step 1401, the target device detects that the terminal device is within the signal range;
步骤1402,目标设备建立与终端设备之间的安全连接;Step 1402, the target device establishes a secure connection with the terminal device;
步骤1403,目标设备执行检测第二目标信号的信号强度、获取终端设备的屏幕状态信息和获取终端设备的运动状态信息中的至少一项;至少一项包括其中任意一项或两项以上的任意组合。其中,屏幕状态信息表示屏幕为锁屏还是解屏,运动状态信息,表示终端设备是否处于预定的运动状态,第二目标信号的信号强度,即目标设备能够接收到的由终端设备发出的信号的信号强度。Step 1403, the target device performs at least one of detecting the signal strength of the second target signal, obtaining the screen state information of the terminal device, and obtaining the motion state information of the terminal device; at least one item includes any one or any two or more of them. combination. Among them, the screen state information indicates whether the screen is locked or unlocked, the motion state information indicates whether the terminal device is in a predetermined motion state, and the signal strength of the second target signal, that is, the signal strength that the target device can receive from the terminal device. signal strength.
步骤1404,目标设备确定终端设备符合开锁条件;Step 1404, the target device determines that the terminal device meets the unlocking conditions;
需要说明的是,目标设备可以根据上述步骤1403获得的信号强度、屏幕状态信息和运动状态信息中的至少一项,确定终端设备是否符合开锁条件,开锁条件至少包括:位于目标设备的信号范围内、处于预定的运动状态。在其他实施例中,开锁条件还可以包括如下条件:锁屏状态、信号强度超过指定阈值中的至少一种。It should be noted that the target device can determine whether the terminal device meets the unlocking conditions according to at least one of the signal strength, screen status information, and motion status information obtained in step 1403 above. The unlocking conditions include at least: being within the signal range of the target device , in a predetermined state of motion. In other embodiments, the unlocking condition may further include the following conditions: at least one of a lock screen state and a signal strength exceeding a specified threshold.
步骤1405,向目标电子锁发出开锁控制信号;Step 1405, sending an unlock control signal to the target electronic lock;
步骤1406,在检测到目标电子锁已开启后,则向终端设备发送第一指令。第一指令用于触发第一事件,以通知用户车锁已开启。Step 1406, after detecting that the target electronic lock has been unlocked, send a first instruction to the terminal device. The first instruction is used to trigger a first event to notify the user that the car lock has been unlocked.
参阅图15所示,基于目标设置执行的开锁方法的另一个实施例中,检测到终端设备进入信号范围内之后,主动询问用户是否需要开锁,具体可以包括如下流程:Referring to FIG. 15 , in another embodiment of the unlocking method based on the target setting, after detecting that the terminal device enters the signal range, the user is actively asked whether the user needs to unlock, which may specifically include the following process:
步骤1501,目标设备检测到终端设备处于信号范围内;Step 1501, the target device detects that the terminal device is within the signal range;
步骤1502,目标设备建立与终端设备之间的安全连接;Step 1502, the target device establishes a secure connection with the terminal device;
步骤1503,目标设备执行检测第二目标信号的信号强度、获取终端设备的屏幕状态信息和获取终端设备的运动状态信息中的至少一项;Step 1503, the target device performs at least one of detecting the signal strength of the second target signal, obtaining the screen state information of the terminal device, and obtaining the motion state information of the terminal device;
步骤1504,目标设备确定终端设备符合开锁条件。在该实施例中,开锁条件至少包括:终端设备位于目标设备的信号范围内;在其他实施例中,开锁条件还可以包括如下条件:处于预定的运动状态、信号强度超过指定阈值、解屏状态中的至少一种。Step 1504, the target device determines that the terminal device meets the unlocking conditions. In this embodiment, the unlocking conditions at least include: the terminal device is located within the signal range of the target device; in other embodiments, the unlocking conditions may also include the following conditions: being in a predetermined motion state, signal strength exceeding a specified threshold, screen unlocking state at least one of the
步骤1505,向目标电子锁第四指令;第四指令用于通知终端设备触发第四事件。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.
步骤1506,接收开锁消息。该开锁消息由终端设备在确定收到用户发出的开锁指令后生成。Step 1506, receiving an unlock message. The unlocking message is generated by the terminal device after it determines to receive the unlocking instruction from the user.
步骤1507,向目标电子锁发出开锁控制信号。Step 1507, sending an unlock control signal to the target electronic lock.
步骤1508,在检测到目标电子锁已开启后,向终端设备发送第五指令,以触发终端设备执行第五事件,以通知用户开锁成功。Step 1508, after detecting that the target electronic lock has been unlocked, send a fifth instruction to the terminal device to trigger the terminal device to execute a fifth event to notify the user of successful unlocking.
其中,上述步骤中至少1503和1504为可选步骤,缺省步骤1503和1504可获得另外的实施例,并且,1503和1504中的信息项的选择变化,也会相应获得多个其他的实施例,并不仅限于图15所示。Among the above steps, at least 1503 and 1504 are optional steps, the default steps 1503 and 1504 can obtain other embodiments, and the selection of information items in 1503 and 1504 can also obtain multiple other embodiments accordingly , and are not limited to those shown in Figure 15.
在基于目标设备执行开锁流程后,还可以基于目标设备执行以下在几种方式的操作:After executing the unlock process based on the target device, the following operations can be performed based on the target device in several ways:
方式一:确定接收到终端设备发送的关锁消息后,控制目标设备对应的目标电子锁由开锁状态转为闭锁状态,之后,若检测到终端设备处于信号范围内,则触发第一计时周期的计时,在第一计时周期内,屏蔽开锁消息,控制目标电子锁始终保持闭锁状态。Method 1: After confirming that the lock message sent by the terminal device is received, control the target electronic lock corresponding to the target device from the unlocked state to the locked state. After that, if it is detected that the terminal device is within the signal range, trigger the first timing cycle. Timing, within the first timing period, the unlocking message is shielded, and the electronic lock of the control target is always kept in the locked state.
方式二:确定接收到终端设备发送的关锁消息后,检测到终端设备处于信号范围之外之后,再次检测到终端设备进入信号范围内终端设备处于运动状态的情况下,控制目标设备对应的目标电子锁由闭锁状态转为开锁状态。Method 2: After receiving the lock message sent by the terminal device, after detecting that the terminal device is out of the signal range, and then detecting that the terminal device enters the signal range and the terminal device is in motion, control the target device corresponding to the target device. The electronic lock changes from the locked state to the unlocked state.
方式三:检测目标电子锁对应的开关装置的开关状态信息,基于开关状态信息,确定在第二计时周期内开关装置未被打开时,控制目标电子锁由开锁状态转为闭锁状态。Mode 3: Detect the switch state information of the switch device corresponding to the target electronic lock, and control the target electronic lock from the unlocked state to the locked state when it is determined that the switch device is not opened within the second timing period based on the switch state information.
上述三种方式之间可以进行组合,并且可以与上述实施例中基于目标设备执行的任一开锁流程进行组合,而获得多个实施例。The above three manners can be combined, and can be combined with any unlocking process based on the execution of the target device in the above embodiments to obtain multiple embodiments.
上述实施例阐述了本申请实施例提供的开锁方法的实施流程,下面对本申请实施例提供的设备进行说明。The above-mentioned embodiments illustrate the implementation process of the unlocking method provided in the embodiments of the present application, and the device provided in the embodiments of the present application will be described below.
参阅图16所示,图16示出了本申请实施例提供的解决方案对应的系统架构。该系统架构可以包括目标设备一侧(例如锁、车门、房门等)和终端设备一侧(例如智能车钥匙、智能手机等)。其中,从软件功能模块实现角度,在终端设备侧,可以集成有多个功能模块,例如可以包括:锁屏解锁验证模块,用于检测锁屏状态以及检测用户解屏动作等,用户操作功能模块,可以包括键盘和触屏,用于显示相关的提示消息、输入用户指令、感应用户操作等;用户通知功能模块,用于触发并执行上述第一至第五事件;第一安全通信模块,用于与目标设备进行无线通信;以及运动检测模块,用于检测用户的运动参数,判断用户是否处于运动状态。Referring to FIG. 16 , FIG. 16 shows a system architecture corresponding to the solution provided by the embodiment of the present application. 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 can include: a lock screen unlock verification module, which is used to detect the lock screen status and detect the user's screen unlocking action, etc., and the user operation function module , 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 above-mentioned first to fifth events; a first security communication module, for for wireless communication with the target device; and a motion detection module for detecting motion parameters of the user and judging whether the user is in motion.
在目标设备一侧,可以集成如下多个功能模块:用户通知功能模块,不同于终端设备侧的用户通知功能模块,设置于目标设备一侧的用户通知功能模块一般是在开锁成功后,通过声音方式或发光等方式提醒用户车锁已开启;锁模块,该模块可以包括实体锁和控制开关锁的控制模块;第二安全通信模块,用于与终端设备进行无线通信。On the target device side, the following functional modules can be integrated: user notification function module, which is different from the user notification function module on the terminal device side. mode or light emitting to remind the user that the car lock has been unlocked; the lock module, which may include a physical lock and a control module for controlling the switch lock; the second safety communication module is used for wireless communication with the terminal device.
具体地,本申请实施例提供的解决方案可能涉及到的各个模块以及相应的功能,请参阅下表1所示:Specifically, the solutions provided by the embodiments of this application may involve various modules and corresponding functions, as shown in Table 1 below:
表1Table 1
Figure PCTCN2022084798-appb-000001
Figure PCTCN2022084798-appb-000001
上述系统架构仅为实施本申请实施例开锁方法的软硬件基础架构,表1中所示模块仅为便于理解本申请解决方案,上述系统架构以及各个模块不可理解为对本申请实施例提供的设备的必要限定。下面从硬件实现角度,进一步介绍本申请实施例提供的设备。The above-mentioned system architecture is only the software and hardware 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. Necessary to limit. The following further introduces the device provided by the embodiment of the present application from the perspective of hardware implementation.
本申请实施例还提供一种终端设备,可以包括:处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。其中,当所述指令被执行时,终端设备可以执行如上述基于终端设备执行的实施例中任一项所述的方法。The embodiment of the present application also provides a terminal device, which may include: a processor; a memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and one or more A computer program includes instructions. Wherein, when the instruction is executed, the terminal device may execute the method described in any one of the above-mentioned embodiments based on execution by the terminal device.
本申请实施例还提供一种目标设备,可以包括:处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在存储器 中,一个或多个计算机程序包括指令。其中,当所述指令被执行时,目标设备可以执行如上述基于目标设备执行的实施例中任一项所述的方法。The embodiment of the present application also provides a target device, which may include: a processor; a memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in the memory, and one or more A computer program includes instructions. Wherein, when the instructions are executed, the target device may execute the method described in any one of the above embodiments based on execution by the target device.
本申请实施例提供的终端设备170的一种可行的产品硬件架构参阅图17所示,该终端设备170的硬件架构可以包括:A possible product hardware architecture of the terminal device 170 provided in the embodiment of the present application is shown in FIG. 17. The hardware architecture of the terminal device 170 may include:
显示屏171,用于提示用户目标电子锁已开启,例如显示图6、图8(a)图8(b)等附图所示的界面。具体地,显示屏171可以包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备170可以包括至少一个显示屏171。The display screen 171 is used to prompt the user that the target electronic lock has been opened, for example, to display the interfaces shown in Fig. 6 , Fig. 8(a), Fig. 8(b) and other drawings. Specifically, the display screen 171 may include a display panel. The display panel can 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 (active-matrix organic light emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light emitting diodes (quantum dot light emitting diodes, QLED), etc. In some embodiments, the terminal device 170 may include at least one display screen 171 .
需要说明的是,显示屏171为终端设备的可选部件,并非是必要部件,在多数实施例中,例如终端设备为手机时,需要设置显示屏;在一部分实施例中,终端设备可以不设有显示屏,例如当终端设备为车钥匙时,则可以不带有显示屏,图17所示仅为一种示例性结构,不可理解为对终端设备的必要限定。It should be noted that the display screen 171 is an optional part of the terminal device, not a necessary part. 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. There is a display screen. For example, when the terminal device is a car key, it may not have a display screen. The structure shown in FIG. 17 is only an exemplary structure and cannot be understood as a necessary limitation on the terminal device.
传感器组172,包括至少一个传感器,具体地,包括陀螺仪、重力感应器、加速度传感器、磁力传感器、振动传感器、线速度传感器、角速度传感器中的至少一种。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.
处理器173,包括一个或多个处理单元。例如:处理器173可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,数字信号处理器(digital signal processor,DSP)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 173 includes one or more processing units. For example: the processor 173 can include an application processor (application processor, AP), a modem processor, a graphics processing unit (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), a controller, a digital Signal processor (digital signal processor, DSP), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
存储器174,用于存储上述计算机指令以及终端设备的运动参数等数据。存储器174可以是独立于所述处理器173的外置存储器,也可以是设置于处理器173中。例如,在一些实施例中,内置于处理器173中的存储器可以是高速缓冲存储器,用于保存处理器173刚用过或循环使用的指令或数据。如果处理器173需要再次使用该指令或数据,可从高速缓冲存储器中直接调用。避免了重复存取,减少了处理器173的等待时间。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 may be an external memory independent of the processor 173 , or be set in the processor 173 . For example, in some embodiments, the memory built into the processor 173 may be a cache memory for storing instructions or data that the processor 173 has just used or recycled. If the processor 173 needs to use the instruction or data again, it can be called directly from the cache memory. Repeated access is avoided, and the waiting time of the processor 173 is reduced.
存储器可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的其它类型的静态存储设备、随机存取存储器(random access memory,RAM)或可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者还可以是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质等。The memory may be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), or other types of memory that can store information and instructions A dynamic storage device can also be 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 Compact Disc, Laser Disc, Optical Disc, Digital Versatile Disc, Blu-ray Disc, etc.), magnetic disk storage medium or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can Any other media accessed by a computer, etc.
电源管理模块175,接收电池和/或充电管理模块的输入,为处理器173,存储器174,显示屏171,传感器组172供电。电源管理模块175还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理 模块175也可以设置于处理器170中。在另一些实施例中,电源管理模块175和充电管理模块也可以设置于同一个器件中。The power management module 175 receives the input of the battery and/or the 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 times, and battery health status (leakage, impedance). In some other embodiments, the power management module 175 can also be set in the processor 170. In other embodiments, the power management module 175 and the charging management module can also be set in the same device.
可以理解的是,本申请实施例各附图示意的结构并不构成对终端设备170的具限定。在本申请另一些实施例中,终端设备170可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that, the structures shown in the drawings in the embodiments of the present application do not constitute a 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 figure, or combine certain components, or separate certain components, or arrange different components. The illustrated components can be realized in hardware, software or a combination of software and hardware.
例如,在一种可实现方式中,参阅图18所示,终端设备170还可以包括:For example, in an implementable manner, as shown in FIG. 18, the terminal device 170 may further include:
扬声器176,以及音频电路180,所述扬声器176通过音频电路与处理器173连接,用于以在执行第一事件至第五事件中任一事件时,以声音方式提示用户。例如,在终端设备170的显示屏171显示图6所示的界面,同时进行语音播报“您的测绘所已开启,请点击查看详情”以及在检测到用户解屏后,继续语音播报“您的车锁已开启,是否误开?”。The speaker 176, and the audio circuit 180, the speaker 176 is connected to the processor 173 through the audio circuit, and is used for prompting the user by sound when executing any one of the first event to the fifth event. For example, the display screen 171 of the terminal device 170 displays the interface shown in FIG. 6, and at the same time, the voice broadcast "Your surveying and mapping station has been turned on, please click to view details" and after detecting that the user unlocks the screen, continue the voice broadcast "Your The car lock has been unlocked, did you open it by mistake?".
马达177,为终端设备170提供振动动力,作为一种可实现方式,马达的电机为7G ERM电机,其振动能力比普通智能手机强7倍左右。马达用于以振动方式提示用户,例如提示用户车锁已开启或者在弹出询问用户的选项提示框时同时进行振动。The motor 177 provides vibration power for the terminal device 170. As an achievable way, the motor of the motor is a 7G ERM motor, and its vibration capability is about 7 times stronger than that of an ordinary smart phone. The motor is used to vibrate to remind the user, for example, to remind the user that the car lock has been unlocked, or to vibrate simultaneously when a prompt box pops up asking the user for an option.
输入单元178,输入单元用于输入用户的开锁指令或者关锁指令等。具体地,作为一种可实现方式,输入单元178可以与显示屏171集成为触摸显示屏;输入单元178也可以包括压力传感器(图17中未示出),通过压力传感器来感受用户产生的压力信号,可以将压力信号转换成电信号,完成用户指令输入。在一些实施例中,压力传感器可以设置于显示屏171。压力传感器的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。当有触摸操作作用于显示屏171,终端设备170根据压力传感器检测所述触摸操作强度。终端设备170也可以根据压力传感器的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度超过第一压力阈值的触摸操作作用于相应的按钮时,视为用户发出了相应的指令,例如用户点击开锁按钮的操作力度大于第一压力阈值时,视为用户发出开锁指令。The input unit 178 is used for inputting a user's unlock command or lock command. Specifically, as an implementable manner, the input unit 178 can be integrated with the display screen 171 as a touch display screen; the input unit 178 can also include a pressure sensor (not shown in FIG. 17 ), through which the pressure generated by the user can be felt The signal can convert the pressure signal into an electrical signal to complete user instruction input. In some embodiments, a pressure sensor can be provided on the display screen 171 . There are many types of pressure sensors, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. When a touch operation acts on the display screen 171, the terminal device 170 detects the intensity of the touch operation according to the pressure sensor. The terminal device 170 may also calculate the touched 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 may correspond to different operation instructions. For example: when a touch operation whose intensity exceeds the first pressure threshold acts on the corresponding button, it is deemed that the user has issued a corresponding instruction. Unlock command.
无线通信单元179,用于与目标设备进行无线通信,具体还用于控制与目标设备之间的无线通信有效距离在指定数值之内,例如在10米或5米之内。在部分实施例中,还用于计算接收到的目标设备发出的目标信号的信号强度并输出至处理器,或者,将接收到的目标信号的信号特征传输至处理器,以使处理器确定信号强度。具体地,无线通信单元179可以支持应用在终端设备170上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),近场无线通信技术(near field communication,NFC)等近距离无线通信的解决方案。无线通信单元170可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块经由天线接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器173。无线通信模块还可以从处理器113接收待发送的信号,对其进行调频,放大,经天线转为电磁波辐射出去。The wireless communication unit 179 is configured to perform wireless communication with the target device, specifically to control the effective distance of the wireless communication with 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 received target signal sent by 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 can determine the signal strength strength. Specifically, the wireless communication unit 179 can support applications on the terminal device 170 including wireless local area networks (wireless local area networks, WLAN) (such as wireless fidelity (wireless fidelity, Wi-Fi) network), bluetooth (bluetooth, BT), Near field communication technology (near field communication, NFC) and other short-range wireless communication solutions. The wireless communication unit 170 may be one or more devices integrating at least one communication processing module. The wireless communication module receives electromagnetic waves through the antenna, frequency-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 113, frequency-modulate it, amplify it, and convert it into electromagnetic wave to radiate out through the antenna.
在一种可实现方式中,传感器组172包括陀螺仪、重力感应器和加速度传感器。In one implementable manner, the sensor group 172 includes a gyroscope, a gravity sensor and an acceleration sensor.
在一种可实现方式中,处理器173可以包括一个或多个接口。接口可以包括集成 电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,通用输入输出(general-purpose input/output,GPIO)接口,和/或通用串行总线(universal serial bus,USB)接口等。In one implementable manner, the processor 173 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transmitter (universal asynchronous receiver/transmitter, UART) interface, general-purpose input/output (general-purpose input/output, GPIO) interface, and/or universal serial bus (universal serial bus, USB) interface, etc.
其中,处理器173可以包含多组I2C总线,处理器173可以通过不同的I2C总线接口分别耦合传感器组172,电源管理模块175,闪光灯120等。例如:处理器173可以通过I2C接口耦合显示屏171,使处理器173与显示屏171通过I2C总线接口通信。Wherein, the processor 173 may include multiple groups of I2C buses, and the processor 173 may be respectively coupled to the sensor group 172, the power management module 175, the flashlight 120, etc. through different I2C bus interfaces. For example, the processor 173 may be coupled to the display screen 171 through an I2C interface, so that the processor 173 communicates with the display screen 171 through an I2C bus interface.
在一种可实现方式中,处理器173可以包含多组I2S总线,I2S接口可以用于音频通信。处理器173可以通过I2S总线与音频电路180耦合,实现处理器173与音频电路180之间的通信,进而使得扬声器176受控发声。In an implementable manner, the processor 173 may include multiple sets of I2S buses, and the I2S interface may be used for audio communication. The processor 173 can be coupled with the audio circuit 180 through the I2S bus, so as to realize the communication between the processor 173 and the audio circuit 180, so that the speaker 176 can be controlled to emit sound.
本申请实施例还提供一种设备,该设备包括:The embodiment of the present application also provides a device, which includes:
一个或多个处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令,当指令被设备执行时,使得设备执行以下步骤:确定终端设备进入到所述目标设备发出的目标信号的信号范围内之后,获取所述终端设备的运动状态信息;基于所述运动状态信息确定所述终端设备处于运动状态时,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态;向所述终端设备发送第一指令,以使所述终端设备触发第一事件,所述第一事件用于提示用户所述目标电子锁已开启。one or more processors; memory; at least one application program; and one or more computer programs, wherein the one or more computer programs are stored in the memory, the one or more computer programs comprising instructions, which when executed by the device making the device perform the following steps: after determining that the terminal device has entered the signal range of the target signal sent by the target device, acquiring motion state information of the terminal device; 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 from the locked state to the unlocked state; send a first instruction to the terminal device, so that the terminal device triggers a first event, and the first event is used to prompt the user The target electronic lock is already on.
或者,当指令被设备执行时,使得设备执行以下步骤:Alternatively, when the instruction is executed by the device, the device is caused to perform the following steps:
确定终端设备进入到所述目标设备发出的目标信号的信号范围内之后,向所述终端设备发送第四指令,以使所述终端设备触发第四事件,所述第四事件用于询问用户是否开启所述目标设备对应的目标电子锁,以及等待接收用户发出开锁指令;确定接收到所述终端设备发送的开锁消息后,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态;所述开销消息为所述终端设备确定接收到所述开锁指令后生成。After determining that the terminal device has entered the signal range of the target signal sent by the target device, sending a fourth instruction to the terminal device, so that the terminal device triggers a fourth event, and the fourth event is used to ask the user whether Open the target electronic lock corresponding to the target device, and wait for the receiving user to issue an unlock instruction; after determining that the unlock message sent by the terminal device is received, control the target electronic lock corresponding to the target device from a locked state to an unlocked state; The overhead message is generated after the terminal device determines to receive the unlock instruction.
本申请实施例还提供一种计算机存储介质,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如图5、图7、图9-图11、图14-图15中任一项所示的方法。The embodiment of the present application also provides a computer storage medium, including computer instructions. When the computer instructions are run on the electronic device, the electronic device executes the steps shown in Fig. 5, Fig. 7, Fig. The method shown in any one of Figure 15.
本申请实施例还提供一种芯片系统,包括:通信接口,用于输入和/或输出信息;处理器,用于执行计算机可执行程序,使得安装有所述芯片系统的设备执行如图5、图7、图9-图11、图14-图15中任一项所示的方法。An 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 the device installed with the chip system executes the The method shown in any one of Fig. 7, Fig. 9-Fig. 11, Fig. 14- Fig. 15.
应理解,在本申请的各实施例中,“第一”、“第二”等仅是为了指代不同的对象,并不表示对指代的对象有其它限定。It should be understood that in each embodiment of the present application, "first", "second", etc. are only used to refer to different objects, and do not mean that there are other limitations on the referred objects.
应理解,本申请实施例中的术语“单元”可以通过软件和/或硬件形式实现,对此不作具体限定。例如,“单元”可以是实现上述功能的软件程序、硬件电路或二者结合。所述硬件电路可能包括应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。It should be understood that the term "unit" in the embodiments of the present application may be implemented in the form of software and/or hardware, which is not specifically limited. For example, a "unit" may be a software program, a hardware circuit or a combination of both to realize the above functions. The hardware circuitry may include application specific integrated circuits (ASICs), electronic circuits, processors (such as shared processors, dedicated processors, or group processors) for executing one or more software or firmware programs. etc.) and memory, incorporating logic, and/or other suitable components to support the described functionality.
因此,在本申请的实施例中描述的各示例的单元,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Therefore, the units of each example described in the embodiments of the present application can be realized by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
本申请实施例中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。In the embodiments of the present application, "at least one" means one or more, and "multiple" means two or more. "And/or" describes the association relationship of associated objects, indicating that there may be three kinds of relationships, for example, A and/or B may indicate that A exists alone, A and B exist simultaneously, or B exists alone. Among them, A and B can be singular or plural. The character "/" generally indicates that the contextual objects are an "or" relationship. "At least one of the following" and similar expressions refer to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, and c may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, and c may be single or multiple.
本领域普通技术人员可以意识到,本文中公开的实施例中描述的各单元及算法步骤,能够以电子硬件、计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art can appreciate that each unit and algorithm steps described in the embodiments disclosed herein can be realized by a combination of electronic hardware, computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的几个实施例中,任一功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In several embodiments provided in this application, if any function is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disc and other media that can store program codes. .
以上所述,仅为本申请的具体实施方式,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。本申请的保护范围应以所述权利要求的保护范围为准。The foregoing is only a specific implementation of the present application. Any person skilled in the art within the technical scope disclosed in the present application can easily think of changes or substitutions, which should be covered by the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.

Claims (25)

  1. 一种开锁方法,应用于终端设备,其特征在于,所述方法包括:An unlocking method applied to a terminal device, characterized in that the method includes:
    确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内;determining that the terminal device has entered the signal range of the first target signal sent by the target device;
    在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息;所述开锁消息,用于通知所述目标设备控制相应的目标电子锁由闭锁状态转为开锁状态;When it is detected that the terminal device is in a predetermined motion state, an unlock message is sent to the target device; the unlock message is used to notify the target device to control the corresponding target electronic lock from a locked state to an unlocked state ;
    触发第一事件,所述第一事件用于提示用户所述目标电子锁已开启。A first event is triggered, and the first event is used to prompt the user that the target electronic lock has been opened.
  2. 如权利要求1所述的方法,其特征在于,在所述确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内之后,且在所述向所述目标设备发出开锁消息之前,所述方法还包括:The method according to claim 1, wherein after said determining that said terminal device enters the signal range of a first target signal sent by a target device, and before said sending an unlock message to said target device , the method also includes:
    检测所述目标信号的信号强度;detecting the signal strength of the target signal;
    所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息,包括:The sending an unlock message to the target device when it is detected that the terminal device is in a predetermined motion state includes:
    在检测到所述第一目标信号的信号强度超过指定阈值,且所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息。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 unlock message is sent to the target device.
  3. 如权利要求1所述的方法,其特征在于,在所述确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内之后,且在所述向所述目标设备发出开锁消息之前,所述方法还包括:The method according to claim 1, wherein after said determining that said terminal device enters the signal range of a first target signal sent by a target device, and before said sending an unlock message to said target device , the method also includes:
    检测所述终端设备是否处于锁屏状态;Detecting whether the terminal device is in a screen-locked state;
    所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息,包括:The sending an unlock message to the target device when it is detected that the terminal device is in a predetermined motion state includes:
    在检测到所述终端设备处于锁屏状态,且所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息。When it is detected that the terminal device is in a screen-locked state and the terminal device is in a predetermined motion state, an unlock message is sent to the target device.
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述触发第一事件之后,所述方法还包括:The method according to any one of claims 1-3, wherein after the first event is triggered, the method further comprises:
    触发第二事件,所述第二事件用于询问用户是否误开,以及接收用户发出的关锁指令。A second event is triggered, and the second event is used to ask the user whether to open the lock by mistake, and to receive an instruction to close the lock issued by the user.
  5. 如权利要求4所述的方法,其特征在于,所述触发第二事件,包括:The method according to claim 4, wherein said triggering the second event comprises:
    在检测到所述终端设备处于锁屏状态的情况下,则在确定接收到所述用户发出的解屏指令后,触发第二事件;其中,所述解屏指令用于解锁所述终端设备。When it is detected that the terminal device is in the screen-locked state, a second event is triggered after it is determined that the screen-unlocking instruction from the user is received; wherein the screen-unlocking instruction is used to unlock the terminal device.
  6. 如权利要求4或5所述的方法,其特征在于,所述触发第二事件之后,所述方法还包括:The method according to claim 4 or 5, wherein after the triggering of the second event, the method further comprises:
    确定接收到用户发出的关锁指令后,向所述目标设备发出关锁消息,以及,在检测到所述终端设备处于所述信号范围内的情况下,触发第一计时周期的计时;在所述第一计时周期内,中断所述向所述目标设备发出开锁消息的操作。After determining that the lock instruction from the user is received, send a lock message to the target device, and when it is detected that the terminal device is within the signal range, trigger the timing of the first timing cycle; During the first timing period, interrupt the operation of sending the unlock message to the target device.
  7. 如权利要求4或5所述的方法,其特征在于,所述触发第二事件之后,所述方法还包括:The method according to claim 4 or 5, wherein after the triggering of the second event, the method further comprises:
    确定接收到用户发出的关锁指令后,检测到所述终端设备处于所述信号范围之外;After determining that the lock command sent by the user is received, it is detected that the terminal device is outside the signal range;
    在检测到所述终端设备处于所述信号范围之外之后,且检测到所述终端设备再次 进入所述信号范围内的情况下,执行所述在检测到所述终端设备处于预定的运动状态的情况下,向所述目标设备发出开锁消息的操作。After detecting that the terminal device is outside the signal range, and when it is detected that the terminal device enters the signal range again, performing the step of detecting that the terminal device is in a predetermined motion state In this case, an operation of sending an unlock message to the target device.
  8. 如权利要求1或2所述的方法,其特征在于,向所述目标设备发出开锁消息之后,所述方法还包括:The method according to claim 1 or 2, wherein after sending the unlock message to the target device, the method further comprises:
    触发第三事件,所述第三事件至少用于提供快捷方式以接收用户发出的关锁指令。A third event is triggered, and the third event is at least used to provide a shortcut to receive a lock instruction issued by the user.
  9. 如权利要求1-8中任一项所述的方法,其特征在于,所述向所述目标设备发出开锁消息之后,所述方法还包括:The method according to any one of claims 1-8, wherein after sending the unlock message to the target device, the method further comprises:
    获取所述目标电子锁对应的开关装置的开关状态信息;Obtain switch status information of the switch device corresponding to the target electronic lock;
    基于所述开关状态信息,确定在第二计时周期内所述开关装置未被打开时,向所述目标设备发出关锁消息;所述关锁消息,用于通知所述目标设备控制所述目标电子锁由开锁状态转为闭锁状态。Based on the switch status information, when it is determined that the switch device is not opened within the second timing period, send a lock message to the target device; the lock message is used to notify the target device to control the target The electronic lock changes from the unlocked state to the locked state.
  10. 如权利要求1所述的方法,其特征在于,所述向所述目标设备发出开锁消息之后,所述方法还包括:The method according to claim 1, wherein after sending the unlock message to the target device, the method further comprises:
    在确定所述终端设备处于所述第一目标信号的信号范围之外的情况下,则向所述目标设备发出关锁消息;所述关锁消息,用于通知所述目标设备控制所述目标电子锁由开锁状态转为闭锁状态。If it is determined that the terminal device is outside the signal range of the first target signal, then send a lock message to the target device; the lock message is used to notify the target device to control the target The electronic lock changes from the unlocked state to the locked state.
  11. 如权利要求1-10中任一项所述的方法,其特征在于,所述预定的运动状态是根据所述终端设备的运动传感器采集的数据确定的,所述运动传感器包括陀螺仪、重力感应器、加速度传感器、磁力传感器、振动传感器、线速度传感器、角速度传感器中的一个或多个。The method according to any one of claims 1-10, wherein the predetermined motion state is determined according to the data collected by the motion sensor of the terminal device, and the motion sensor includes a gyroscope, a gravity sensor One or more of sensors, acceleration sensors, magnetic sensors, vibration sensors, linear velocity sensors, and angular velocity sensors.
  12. 如权利要求1-11中任一项所述的方法,其特征在于,所述预定的运动状态包括步行、快速步行、缓慢步行、跑、慢跑、快跑、跳中的一个或多个。The method according to any one of claims 1-11, wherein the predetermined motion state includes one or more of walking, fast walking, slow walking, running, jogging, fast running, and jumping.
  13. 一种开锁方法,应用于终端设备,其特征在于,所述方法包括:An unlocking method applied to a terminal device, characterized in that the method includes:
    确定所述终端设备进入到目标设备发出的第一目标信号的信号范围内;determining that the terminal device has entered the signal range of the first target signal sent by the target device;
    在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,所述第四事件用于询问用户是否开启所述目标设备对应的目标电子锁,以及等待接收用户发出开锁指令;When it is detected that the terminal device is in a predetermined motion state, a fourth event is triggered, and 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 unlock instruction issued by the user;
    确定接收到所述开锁指令,生成相应的开锁消息并发送至所述目标设备;所述开锁消息,用于通知所述目标设备控制所述目标电子锁由闭锁状态转为开锁状态。It is determined that the unlock instruction is received, and a corresponding unlock message is generated and sent to the target device; the unlock message is used to notify the target device to control the target electronic lock from a locked state to an unlocked state.
  14. 如权利要求13所述的方法,其特征在于,所述在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,包括:The method according to claim 13, wherein when the terminal device is detected to be in a predetermined motion state, triggering a fourth event comprises:
    在检测到所述目标信号的信号强度超过指定阈值,且所述终端设备处于预定的运动状态的情况下,触发所述第四事件。The fourth event is triggered 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.
  15. 如权利要求13所述的方法,其特征在于,所述在检测到所述终端设备处于预定的运动状态的情况下,触发第四事件,包括:The method according to claim 13, wherein when the terminal device is detected to be in a predetermined motion state, triggering a fourth event comprises:
    在检测到所述终端设备处于解屏状态,且所述终端设备处于预定的运动状态的情况下,触发所述第四事件。The fourth event is triggered when it is detected that the terminal device is in an unscreened state and the terminal device is in a predetermined motion state.
  16. 一种开锁方法,应用于目标设备,其特征在于,所述方法包括:An unlocking method applied to a target device, wherein the method includes:
    确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内;determining that the terminal device has entered the signal range of the first target signal sent by the target device;
    获取所述终端设备的运动状态信息;acquiring motion state 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;
    向所述终端设备发送第一指令,以使所述终端设备触发第一事件,所述第一事件用于提示用户所述目标电子锁已开启。Sending a first instruction to the terminal device, so that the terminal device triggers a first event, where the first event is used to prompt the user that the target electronic lock has been unlocked.
  17. 如权利要求16所述的方法,其特征在于,所述确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内之后,且在获取所述终端设备的运动状态信息之前,所述方法还包括:The method according to claim 16, wherein after said determining that the terminal device enters the signal range of the first target signal sent by the target device and before obtaining the motion state information of the terminal device, the The method also includes:
    检测所述终端设备发出的第二目标信号的信号强度;Detecting the signal strength of the second target signal sent by the terminal device;
    所述在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态,包括:In the case of determining that the terminal device is in a moving state based on the motion state information, controlling the target electronic lock corresponding to the target device 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, control the target electronic lock corresponding to the target device from a locked state to the unlocked state.
  18. 如权利要求16所述的方法,其特征在于,所述确定终端设备进入到所述目标设备发出的第一目标信号的信号范围内之后,且在控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之前,所述方法还包括:The method according to claim 16, characterized in that after the terminal device is determined to enter the signal range of the first target signal sent by the target device, and after controlling the target electronic lock corresponding to the target device to be locked Before the state changes to the unlocked state, the method also includes:
    获取所述终端设备的屏幕状态信息;Acquiring screen status information of the terminal device;
    所述在基于所述运动状态信息确定所述终端设备处于运动状态的情况下,控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态,包括:In the case of determining that the terminal device is in a moving state based on the motion state information, controlling the target electronic lock corresponding to the target device 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 a motion state and that the terminal device is in a lock screen state based on the screen state information, control the target electronic lock corresponding to the target device from a locked state to is unlocked.
  19. 如权利要求16-18中任一项所述的方法,其特征在于,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:The method according to any one of claims 16-18, characterized in that, after controlling the target electronic lock corresponding to the target device from a locked state to an unlocked state, the method further includes:
    确定接收到所述终端设备发送的关锁消息后,控制所述目标设备对应的目标电子锁由开锁状态转为闭锁状态,以及,在检测到所述终端设备处于所述信号范围内的情况下,触发第一计时周期的计时,在所述第一计时周期内,控制所述目标电子锁保持闭锁状态。After it is determined that the lock message sent by the terminal device is received, control the target electronic lock corresponding to the target device from the unlocked state to the locked state, and, when it is detected that the terminal device is within the signal range , triggering the timing of a first timing period, and controlling the target electronic lock to maintain a locked state within the first timing period.
  20. 如权利要求16-18中任一项所述的方法,其特征在于,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:The method according to any one of claims 16-18, characterized in that, after controlling the target electronic lock corresponding to the target device from a locked state to an unlocked state, the method further includes:
    确定接收到所述终端设备发送的关锁消息后,检测到所述终端设备处于所述信号范围之外;After determining that the lock message sent by the terminal device is received, 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, performing the determining that the terminal device is within the range based on the motion state information In the case of a moving state, control the target electronic lock corresponding to the target device from a locked state to an unlocked state.
  21. 如权利要求16-20中任一项所述的方法,所述控制所述目标设备对应的目标电子锁由闭锁状态转为开锁状态之后,所述方法还包括:The method according to any one of claims 16-20, after controlling the target electronic lock corresponding to the target device from the locked state to the unlocked state, the method further includes:
    检测所述目标电子锁对应的开关装置的开关状态信息;Detecting the switch state information of the 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 the second timing period, control the target electronic lock from an unlocked state to a locked state.
  22. 一种终端设备,其特征在于,包括:A terminal device, characterized in that it includes:
    一个或多个处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述终端设备执行时,使得所述终端设备执行如权利要求1-12或13-15中任一项所述的方法。one or more processors; memory; at least one application program; and one or more computer programs, wherein said one or more computer programs are stored in said memory, said one or more computer programs comprising instructions, When the instruction is executed by the terminal device, the terminal device is made to execute the method according to any one of claims 1-12 or 13-15.
  23. 一种目标设备,其特征在于,包括:A target device, characterized in that it includes:
    一个或多个处理器;存储器;至少一个应用程序;以及一个或多个计算机程序,其中所述一个或多个计算机程序被存储在所述存储器中,所述一个或多个计算机程序包括指令,当所述指令被所述设备执行时,使得所述设备执行如权利要求16-21中任一项所述的方法。one or more processors; memory; at least one application program; and one or more computer programs, wherein said one or more computer programs are stored in said memory, said one or more computer programs comprising instructions, When the instructions are executed by the device, the device is made to execute the method according to any one of claims 16-21.
  24. 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-12或13-15或16-21中任一项所述的方法。A computer storage medium, characterized in that it includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device performs any one of claims 1-12 or 13-15 or 16-21 the method described.
  25. 一种芯片系统,其特征在于,包括:A system on a chip, characterized in that it comprises:
    通信接口,用于输入和/或输出信息;communication interface for input and/or output of information;
    处理器,用于执行计算机可执行程序,使得安装有所述芯片系统的设备执行如利要求1-12或13-15或16-21中任一项所述的方法。A processor, configured to execute a computer-executable program, so that the device installed with the system-on-a-chip executes the method according to any one of claims 1-12 or 13-15 or 16-21.
PCT/CN2022/084798 2021-06-09 2022-04-01 Unlocking method and device, and storage medium WO2022257573A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110642012.4A CN115457682A (en) 2021-06-09 2021-06-09 Unlocking method, device and storage medium
CN202110642012.4 2021-06-09

Publications (1)

Publication Number Publication Date
WO2022257573A1 true WO2022257573A1 (en) 2022-12-15

Family

ID=84295330

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/084798 WO2022257573A1 (en) 2021-06-09 2022-04-01 Unlocking method and device, and storage medium

Country Status (2)

Country Link
CN (1) CN115457682A (en)
WO (1) WO2022257573A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116061876A (en) * 2023-02-03 2023-05-05 重庆赛力斯新能源汽车设计院有限公司 Bluetooth-based vehicle unlocking and locking method, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011052505A (en) * 2009-09-04 2011-03-17 Tokai Rika Co Ltd Electronic key system and electronic key
CN204055716U (en) * 2014-08-19 2014-12-31 上海海拉电子有限公司 A kind of Intelligent key and there is the PEPS system of this Intelligent key
CN105321240A (en) * 2015-11-04 2016-02-10 张泽 Control method and device of intelligent door lock and intelligent door control system
WO2018007066A1 (en) * 2016-07-08 2018-01-11 Huf Hülsbeck & Fürst Gmbh & Co. Kg Method for operating a passive access system for a motor vehicle having an id transmitter
CN111542460A (en) * 2017-11-20 2020-08-14 罗伯特·博世(澳大利亚)私人有限公司 Method and system for joining motion for preventing relay attack
CN111862397A (en) * 2019-06-05 2020-10-30 北京骑胜科技有限公司 Vehicle lock control device, method, apparatus, vehicle, electronic device, and storage medium
CN111946171A (en) * 2019-05-17 2020-11-17 北京车和家信息技术有限公司 Vehicle and door lock control method and device thereof
CN111986351A (en) * 2020-07-24 2020-11-24 联合汽车电子有限公司 Intelligent key positioning method and system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016191768A1 (en) * 2015-05-28 2016-12-01 Friday Labs Limited Apparatus and system for an electronic lock, and methods of use and manufacture thereof
US10223849B2 (en) * 2017-03-16 2019-03-05 Robert Bosch Gmbh Intelligent wireless access system and method for a vehicle
CN107154090A (en) * 2017-04-17 2017-09-12 朗曦科技(上海)有限公司 Access control method and system based on mobile terminal authentication and location aware
CN107564146A (en) * 2017-08-22 2018-01-09 美的智慧家居科技有限公司 A kind of method for unlocking, mobile terminal and computer-readable recording medium
CN107564154A (en) * 2017-09-01 2018-01-09 广州三星通信技术研究有限公司 The method and apparatus that the vehicles are unlocked in portable terminal
CN107622547A (en) * 2017-09-13 2018-01-23 广州咩也科技有限公司 Method, apparatus, storage medium and the computer equipment that terminal is unlocked
CN108091009A (en) * 2017-12-08 2018-05-29 深圳达实信息技术有限公司 A kind of control of bluetooth access system and its application method based on narrowband Internet of Things
CN111476924A (en) * 2019-01-23 2020-07-31 上海博泰悦臻电子设备制造有限公司 Vehicle door state display method and mobile terminal
CN112446985A (en) * 2019-08-14 2021-03-05 云丁网络技术(北京)有限公司 Intelligent door lock unlocking method and device
CN112822630B (en) * 2021-01-12 2022-12-23 上海钧正网络科技有限公司 Data processing method of device and computer-readable storage medium
CN112884948A (en) * 2021-01-12 2021-06-01 广州橙行智动汽车科技有限公司 Vehicle locking method, system, storage medium and vehicle-mounted terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011052505A (en) * 2009-09-04 2011-03-17 Tokai Rika Co Ltd Electronic key system and electronic key
CN204055716U (en) * 2014-08-19 2014-12-31 上海海拉电子有限公司 A kind of Intelligent key and there is the PEPS system of this Intelligent key
CN105321240A (en) * 2015-11-04 2016-02-10 张泽 Control method and device of intelligent door lock and intelligent door control system
WO2018007066A1 (en) * 2016-07-08 2018-01-11 Huf Hülsbeck & Fürst Gmbh & Co. Kg Method for operating a passive access system for a motor vehicle having an id transmitter
CN111542460A (en) * 2017-11-20 2020-08-14 罗伯特·博世(澳大利亚)私人有限公司 Method and system for joining motion for preventing relay attack
CN111946171A (en) * 2019-05-17 2020-11-17 北京车和家信息技术有限公司 Vehicle and door lock control method and device thereof
CN111862397A (en) * 2019-06-05 2020-10-30 北京骑胜科技有限公司 Vehicle lock control device, method, apparatus, vehicle, electronic device, and storage medium
CN111986351A (en) * 2020-07-24 2020-11-24 联合汽车电子有限公司 Intelligent key positioning method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116061876A (en) * 2023-02-03 2023-05-05 重庆赛力斯新能源汽车设计院有限公司 Bluetooth-based vehicle unlocking and locking method, electronic equipment and storage medium
CN116061876B (en) * 2023-02-03 2024-05-17 重庆赛力斯新能源汽车设计院有限公司 Bluetooth-based vehicle unlocking and locking method, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115457682A (en) 2022-12-09

Similar Documents

Publication Publication Date Title
EP3975142A1 (en) Smart lock unlocking method and related device
US11429174B2 (en) Sensor-based near-field communication authentication
EP3718327B1 (en) Tracking device functionality restriction in a lost context
EP3110230B1 (en) Mobile communication device with public transportation detection for determining hands free mode settings
JP2014134082A (en) Vehicular system, electronic key, portable terminal, and on-vehicle device
US10370005B2 (en) Method and apparatus for vehicle valet control devices
CN105270322B (en) Intelligent terminal safe condition identifies alarm method, system and intelligent terminal
CN107360318B (en) Voice noise reduction method and device, mobile terminal and computer readable storage medium
CN111391784A (en) Information prompting method and device, storage medium and related equipment
CN109716802B (en) Data transmission method and device
WO2022257573A1 (en) Unlocking method and device, and storage medium
WO2019052551A1 (en) Terminal device interaction method, storage medium and terminal device
CN108791056A (en) Car's door controlling method, apparatus and storage medium
JP2007316928A (en) Personal digital assistant, communications unit and baggage checking system
JP2010130531A (en) Hands-free device and radio connection method for hands-free device and portable terminal
WO2017193311A1 (en) Intelligent reminding method and apparatus for vehicle
JP2011151445A (en) Data communication system, onboard device, program, and data communication method
JP6244215B2 (en) In-vehicle communication system
JP2019203310A (en) Door control device for vehicle
CN108133581A (en) A kind of automobile key method for searching, automobile key and mobile terminal
CN110533800B (en) Intelligent door lock control method and device, electronic equipment and storage medium
CN108702410B (en) Contextual model control method and mobile terminal
WO2019137326A1 (en) Network connection reminder method, apparatus, and mobile terminal
CN109167874A (en) Mobile terminal and monitoring drive the method, apparatus of user action state
CN108055393A (en) Speed based reminding method, device and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22819178

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 22819178

Country of ref document: EP

Kind code of ref document: A1