[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN114554400A - Screen locking control method and device, electronic equipment and storage medium - Google Patents

Screen locking control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114554400A
CN114554400A CN202011366688.7A CN202011366688A CN114554400A CN 114554400 A CN114554400 A CN 114554400A CN 202011366688 A CN202011366688 A CN 202011366688A CN 114554400 A CN114554400 A CN 114554400A
Authority
CN
China
Prior art keywords
uwb
preset
relative
electronic equipment
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011366688.7A
Other languages
Chinese (zh)
Other versions
CN114554400B (en
Inventor
王泽卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202011366688.7A priority Critical patent/CN114554400B/en
Publication of CN114554400A publication Critical patent/CN114554400A/en
Application granted granted Critical
Publication of CN114554400B publication Critical patent/CN114554400B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/32User authentication using biometric data, e.g. fingerprints, iris scans or voiceprints
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/66Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
    • H04M1/667Preventing unauthorised calls from a telephone set
    • H04M1/67Preventing unauthorised calls from a telephone set by electronic means
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application discloses a screen locking control method, a screen locking control device, electronic equipment and a storage medium, wherein the method comprises the following steps: detecting relative position information of the electronic device relative to the UWB device through UWB technology; determining whether the electronic equipment is in a preset area of the UWB equipment or not according to the relative position information, if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept, so that whether the electronic equipment is in the preset area of the UWB equipment can be accurately determined through the UWB technology, the screen locking function is closed when the electronic equipment is in the preset area, and repeated unlocking in the preset area is avoided; in addition, due to the fact that the UWB technology is high in positioning accuracy, the problem that when the electronic equipment is not located in the preset area, the electronic equipment is unsafe due to the fact that the screen locking function is judged to be closed by mistake can be solved, therefore, the screen locking control safety of the electronic equipment is guaranteed, and user experience is effectively improved.

Description

Screen locking control method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of electronics, in particular to a screen locking control method and device, electronic equipment and a storage medium.
Background
The conventional unlocking method of the existing electronic equipment comprises the following steps: fingerprint unlocking, face unlocking, password unlocking, image unlocking, action identification unlocking and the like, and although the modes can ensure better safety, higher requirements are provided for unlocking conditions, so that the user experience is influenced. For example, the password unlocking short password is not safe, the long password is input too slowly, and the operation is complex; the fingerprint identification cannot identify the scenes of hand dampness and sweat stain; the requirement of face unlocking on light and posture is high, and especially, the face unlocking cannot be performed in a scene with a mask, so that the user experience is seriously influenced. In addition, in some scenes with high security, for example, in a home, the unlocking method needs to repeatedly call components such as a camera, and if the user frequently unlocks the electronic device, the power consumption of the electronic device is increased.
Disclosure of Invention
The embodiment of the application provides a screen locking control method and device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present application provides a screen locking control method, which is applied to an electronic device, and the method includes the following steps:
detecting relative position information of the electronic device with respect to the UWB device by UWB technology;
determining whether the electronic equipment is in a preset area of the UWB equipment according to the relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
In a second aspect, an embodiment of the present application provides a lock screen control device, which is applied to an electronic device, and the device includes:
a detection unit for detecting relative position information of the electronic device with respect to a UWB device by a UWB technique;
a determining unit, configured to determine whether the electronic device is in a preset area of the UWB device according to the relative location information;
the control unit is used for closing the screen locking function of the electronic equipment if the screen locking function is judged to be the first screen locking function; if not, the screen locking function of the electronic equipment is kept.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the first aspect or the second aspect of the embodiment of the present application.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program enables a computer to perform some or all of the steps described in the first aspect or the second aspect of the embodiment of the present application.
In a fifth aspect, embodiments of the present application provide a computer program product, where the computer program product includes a non-transitory computer-readable storage medium storing a computer program, where the computer program is operable to cause a computer to perform some or all of the steps as described in the first or second aspects of embodiments of the present application. The computer program product may be a software installation package.
The embodiment of the application has the following beneficial effects:
it can be seen that, in the screen locking control method, device, electronic device and storage medium provided in the embodiments of the present application, the relative position information of the electronic device with respect to the UWB device is detected by the UWB technology; determining whether the electronic equipment is in a preset area of the UWB equipment or not according to the relative position information, if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept, so that whether the electronic equipment is in the preset area of the UWB equipment can be accurately determined through the UWB technology, the screen locking function is closed when the electronic equipment is in the preset area, and repeated unlocking in the preset area is avoided; in addition, due to the fact that the UWB technology is high in positioning accuracy, the problem that when the electronic equipment is not located in the preset area, the electronic equipment is unsafe due to the fact that the screen locking function is judged to be closed by mistake can be solved, therefore, the screen locking control safety of the electronic equipment is guaranteed, and user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1A is a system architecture diagram of a screen locking control system for implementing a screen locking control method according to an embodiment of the present application;
fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 1C is a schematic flowchart of a screen locking control method provided in an embodiment of the present application;
FIG. 1D is an illustrative diagram of determining a relative distance of an electronic device with respect to a UWB device based on TOF provided by an embodiment of the present application;
FIG. 1E is an illustration showing a determination of a relative angle of an electronic device with respect to a UWB device according to an embodiment of the present application;
fig. 1F is a schematic diagram illustrating a position calibration of a preset area according to an embodiment of the present application;
fig. 2A is a schematic flowchart of another screen locking control method provided in the embodiment of the present application;
fig. 2B is a schematic diagram illustrating an electronic device calibrating a preset area around two UWB devices according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 4A is a schematic structural diagram of a lock screen control device according to an embodiment of the present application;
fig. 4B is a modified device of the lock screen control device described in fig. 4A provided in the embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may alternatively include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The following describes embodiments of the present application in detail.
Referring to fig. 1A, fig. 1A is a system architecture diagram of a screen locking control system for implementing a screen locking control method, where the screen locking control system includes an electronic device and a UWB device, where the electronic device may include a first UWB module, the UWB device may include a second UWB module, and UWB communication may be performed between the first UWB module and the second UWB module.
In a specific implementation, as shown in fig. 1A, a UWB device may be disposed in a preset area, when a user carries an electronic device to enter a UWB signal coverage area of the UWB device, the electronic device and the UWB device are in UWB communication connection, and further, the electronic device may detect relative position information of the electronic device with respect to the UWB device through a UWB technique, and determine whether the electronic device is in the preset area of the UWB device according to the relative position information, where the preset area may be a preset safe area, for example, a home, an office, a laboratory, a conference room, etc. of the user, and if it is determined that the electronic device is in the preset area of the UWB device, the electronic device may be controlled to turn off a screen locking function, so that the user does not need to unlock a screen in the preset area, and because the UWB technique has characteristics of high precision and high accuracy when performing positioning and ranging, the electronic device may be accurately determined whether the electronic device is in the preset area, thereby more accurately controlling the screen locking function of the electronic equipment.
Optionally, the number of the UWB devices may be multiple, and in a specific implementation, if the preset area is larger, multiple UWB devices may be set, so that the relative position information of the electronic device with respect to the UWB device can be accurately determined in the larger preset area by the electronic device.
Referring to fig. 1B, fig. 1B is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure, the electronic device 100 includes a storage and processing circuit 110, and a sensor 170 connected to the storage and processing circuit 110, where:
the electronic device 100 may include control circuitry, which may include storage and processing circuitry 110. The storage and processing circuitry 110 may include memory, such as hard drive memory, non-volatile memory (e.g., flash memory or other electronically programmable read-only memory used to form a solid state drive, etc.), volatile memory (e.g., static or dynamic random access memory, etc.), and so on, and embodiments of the present application are not limited thereto. Processing circuitry in storage and processing circuitry 110 may be used to control the operation of electronic device 100. The processing circuitry may be implemented based on one or more microprocessors, microcontrollers, digital signal processors, baseband processors, power management units, audio codec chips, application specific integrated circuits, display driver integrated circuits, and the like.
The storage and processing circuitry 110 may be used to run software in the electronic device 100, such as an Internet browsing application, a Voice Over Internet Protocol (VOIP) telephone call application, an email application, a media playing application, operating system functions, and so forth. Such software may be used to perform control operations such as, for example, camera-based image capture, ambient light measurement based on an ambient light sensor, proximity sensor measurement based on a proximity sensor, information display functionality based on status indicators such as status indicator lights of light emitting diodes, touch event detection based on a touch sensor, functionality associated with displaying information on multiple (e.g., layered) display screens, operations associated with performing wireless communication functionality, operations associated with collecting and generating audio signals, control operations associated with collecting and processing button press event data, and other functions in the electronic device 100, to name a few.
The electronic device 100 may include input-output circuitry 150. The input-output circuit 150 may be used to enable the electronic device 100 to input and output data, i.e., to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to the external device. The input-output circuit 150 may further include a sensor 170. Sensor 170 may include the ultrasonic fingerprint identification module, may also include ambient light sensor, proximity sensor based on light and electric capacity, touch sensor (for example, based on light touch sensor and/or capacitanc touch sensor, wherein, touch sensor may be a part of touch display screen, also can regard as a touch sensor structure independent utility), acceleration sensor, and other sensors etc., the ultrasonic fingerprint identification module can be integrated in the screen below, or, the ultrasonic fingerprint identification module can set up in electronic equipment's side or back, do not do the restriction here, this ultrasonic fingerprint identification module can be used to gather the fingerprint image.
The sensor 170 may include a first camera and a second camera, the first camera may be a front camera or a rear camera, the second camera may be an Infrared (IR) camera or a visible light camera, and when the IR camera takes a picture, a pupil reflects Infrared light, so that the IR camera may take a pupil image more accurately than the RGB camera; the visible light camera needs to carry out more follow-up pupil detection, and calculation accuracy and accuracy are higher than the IR camera, and the commonality is better than the IR camera, but the calculated amount is big.
Input-output circuit 150 may also include one or more display screens, such as display screen 130. The display 130 may include one or a combination of liquid crystal display, organic light emitting diode display, electronic ink display, plasma display, and display using other display technologies. The display screen 130 may include an array of touch sensors (i.e., the display screen 130 may be a touch display screen). The touch sensor may be a capacitive touch sensor formed by a transparent touch sensor electrode (e.g., an Indium Tin Oxide (ITO) electrode) array, or may be a touch sensor formed using other touch technologies, such as acoustic wave touch, pressure sensitive touch, resistive touch, optical touch, and the like, and the embodiments of the present application are not limited thereto.
The electronic device 100 may also include an audio component 140. The audio component 140 may be used to provide audio input and output functionality for the electronic device 100. The audio components 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
The communication circuit 120 may be used to provide the electronic device 100 with the capability to communicate with external devices. The communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals. The wireless communication circuitry in communication circuitry 120 may include radio-frequency transceiver circuitry, power amplifier circuitry, low noise amplifiers, switches, filters, and antennas. For example, the wireless Communication circuitry in Communication circuitry 120 may include circuitry to support Near Field Communication (NFC) by transmitting and receiving Near Field coupled electromagnetic signals. For example, the communication circuit 120 may include a near field communication antenna and a near field communication transceiver. The communications circuitry 120 may also include a cellular telephone transceiver and antenna, a wireless local area network transceiver circuitry and antenna, and so forth.
The communication circuit 120 may further include a first UWB module 121, where the first UWB module 121 implements ranging or positioning using UWB technology, which is a wireless carrier communication technology that does not use a sinusoidal carrier but uses a nanosecond-level non-sinusoidal narrow pulse to transmit data, and thus occupies a wide frequency spectrum. The UWB technology has the advantages of low system complexity, low power spectral density of transmitted signals, insensitivity to channel fading, low interception capability, high positioning accuracy and the like, and is particularly suitable for high-speed wireless access in indoor and other dense multipath places. The first UWB module 121 may include a first UWB chip and a first antenna, among others.
The electronic device 100 may further include a battery, power management circuitry, and other input-output units 160. The input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes and other status indicators, and the like.
A user may input commands through input-output circuitry 150 to control the operation of electronic device 100, and may use output data of input-output circuitry 150 to enable receipt of status information and other outputs from electronic device 100.
The electronic devices involved in the embodiments of the present application may include various handheld devices, vehicle-mounted devices, computing devices or other processing devices connected to a wireless modem, which have wireless communication functions, as well as various forms of User Equipment (UE), Mobile Stations (MS), terminal equipment (terminal device), and so on. For convenience of description, the above-mentioned devices are collectively referred to as electronic devices.
UWB devices to which embodiments of the present application relate may include a variety of handheld devices having wireless communication capabilities, in-vehicle devices, computing devices or other processing devices connected to wireless modems, and the like.
Referring to fig. 1C, fig. 1C is a schematic flowchart of a screen locking control method provided in an embodiment of the present application, and is applied to the electronic device shown in fig. 1B, as shown in fig. 1C, the screen locking control method provided in the present application includes:
101. relative position information of the electronic device with respect to the UWB device is detected through UWB technology.
Wherein the relative position information may include a relative distance and a relative angle.
In specific implementation, the UWB device may be set in a preset area, and the preset area may be an area such as a user's home, a private place, or an office area.
The electronic device can detect the relative position information of the electronic device relative to the UWB device through the UWB technology, and the positioning precision of the UWB technology is high, so that the relative distance and the relative angle of the electronic device relative to the UWB device can be accurately determined. For example, in the home of the user, the user may set the preset region as a region with high security and privacy, such as a specific room, such as a bedroom or a study room, and the relative position information of the electronic device with respect to the UWB device may be accurately determined through the UWB technology.
Optionally, the method further comprises:
1011. determining whether the electronic device is connected with the UWB device; if yes, the operation of detecting the relative position information of the electronic equipment relative to the UWB equipment through the UWB technology is executed;
1012. if not, the screen locking function of the electronic equipment is kept.
In specific implementation, when a user carries the electronic device to perform an activity, the electronic device may determine whether the electronic device is connected to the UWB device, and if yes, it indicates that the electronic device has entered a signal coverage area of the UWB device.
Optionally, the electronic device includes a first UWB module, and in step 101, the detecting the relative position information of the electronic device with respect to the UWB device by using the UWB technology may include:
11. determining, by the first UWB module, a relative distance of the electronic device relative to the UWB device;
12. determining, by the first UWB module, a relative angle of the electronic device relative to the UWB device.
Wherein, the first UWB module may comprise a first UWB chip and a UWB antenna, the first UWB chip is connected to the UWB antenna, and the relative distance and the relative angle of the electronic device with respect to the UWB device may be determined by the first UWB module, and specifically, the first UWB module may determine the relative position information by using at least one of the following algorithms: a Time of Flight (TOF) based ranging algorithm, a phase difference of Arrival (PDOA) algorithm, an Angle of Arrival ranging (AOA) algorithm, and the like, which are not limited in the embodiments of the present application.
Optionally, in the step 11, the determining, by the first UWB module, a relative distance of the electronic device with respect to the UWB device may include:
1101. transmitting a UWB request packet to said UWB device through said first UWB module; recording a first time stamp of transmitting the UWB request data packet;
1102. receiving, by the first UWB module, a UWB feedback data packet sent by the UWB device, where the UWB feedback data packet carries a second timestamp at which the UWB device receives the UWB request data packet and a third timestamp at which the UWB feedback data packet is sent; recording a fourth timestamp of receipt of the UWB feedback data packet;
1103. determining a relative distance of the electronic device with respect to the UWB device from the first, second, third and fourth timestamps.
Referring to fig. 1D, fig. 1D is a schematic diagram illustrating an exemplary method for determining a relative distance between an electronic device and a UWB device based on TOF according to an embodiment of the present disclosure, where a first UWB module sends a UWB request packet to the UWB device; recording a first time stamp T1 of transmitting a UWB request packet, the UWB device receiving the UWB request packet and recording a second time stamp T2 of receiving the UWB request packet; the UWB device sends a UWB feedback data packet to the electronic device, and the UWB feedback data packet carries a third time stamp T3 of the UWB device sending the UWB feedback data packet; the electronic device receives the UWB feedback data packet and records a fourth timestamp T4 of the received UWB feedback data packet; here, the flight time TOF is [ (T4-T1) - (T3-T2) ]/2, T1 is a first time stamp, T2 is a second time stamp, T3 is a third time stamp, and T4 is a fourth time stamp.
Wherein the relative distance LtTOF v, v is the transmission speed of the UWB signal.
Optionally, the determining, by the first UWB module, a relative angle of the electronic device with respect to the UWB device in step 12 includes:
1201. transmitting a UWB signal through the first antenna to the second antenna and the third antenna;
1202. acquiring phase differences of the second antenna and the third antenna of the UWB device respectively receiving the UWB signals;
1203. acquiring an antenna spacing distance between the second antenna and the third antenna;
1204. determining a relative angle of the electronic device with respect to the UWB device from the antenna separation distance and the phase difference.
Referring to fig. 1E, fig. 1E is a schematic diagram illustrating an example of an electronic device for determining a relative angle between the electronic device and a UWB device according to an embodiment of the present disclosure, where a first antenna of the electronic device emits a UWB signal, the UWB device receives the UWB signal through a second antenna and a third antenna, respectively, and the UWB device determines a phase difference between the UWB signal received by the second antenna and the UWB signal received by the third antenna, respectively
Figure BDA0002802366900000082
Will make the phase difference
Figure BDA0002802366900000083
And transmitting an antenna separation distance between the second antenna and the third antenna to the electronic device, wherein the antenna separation distance between the second antenna and the third antenna is fixed and known.
Further, the electronic device may determine the relative angle of the electronic device with respect to the UWB device according to the following equation:
Figure BDA0002802366900000081
wherein d is the antenna spacing distance between the second antenna and the third antenna, and λ is the wavelength of the UWB signal.
102. And determining whether the electronic equipment is in a preset area of the UWB equipment or not according to the relative position information.
In the embodiment of the application, the preset area refers to an area where a preset UWB device is located, and the preset area may be a safety area of a user home, an office area, a laboratory, a conference room, and the like. Alternatively, the preset area may be a smaller area such as a bedroom or a study room, and the UWB technology may be used to accurately determine whether the electronic device is located in the preset area, for example, the user is at home, and the electronic device may be used to accurately determine whether the electronic device is located in the preset area such as the bedroom or the study room.
The preset area set by a user can be calibrated in an area through the electronic device and the UWB device, specifically, the calibrated position information of the preset area around the UWB device is determined through the electronic device, and the calibrated position information refers to information for calibrating the position of the preset area, so that the electronic device can determine whether the electronic device is in the preset area of the UWB device according to the relative position information and the calibrated position information.
Optionally, the method further comprises:
1021. in a map calibration scene, acquiring a preset distance and a preset angle of each preset calibration position in a plurality of preset calibration positions at the edge of the preset area in advance to obtain a plurality of groups of corresponding preset distances and preset angles;
1022. and creating the map calibration information list according to the multiple groups of corresponding preset distances and preset angles.
The preset distance refers to the distance between the electronic device and the UWB device when the electronic device is located at the preset calibration position, and the preset angle refers to the angle between the electronic device and the UWB device when the electronic device is located at the preset calibration position.
Referring to fig. 1F, fig. 1F is a schematic diagram illustrating a preset area position calibration provided in an embodiment of the present application, the user can set the electronic device at a plurality of preset calibration positions at the edge of the preset area, such as the edge and corner of a room, then, at each preset calibration position, the electronic device may determine a preset distance and a preset angle with respect to the UWB device using UWB technology, the position of the UWB device is fixed, therefore, the preset area can be calibrated by calibrating a plurality of groups of corresponding preset distances and preset angles of a plurality of preset calibration positions, the map calibration information list is created according to multiple sets of corresponding preset distances and preset angles, as shown in fig. 1F, L1, L2.. indicate preset distances, θ 1, θ 2.. indicate preset angles, (L1, θ 1), (L2, θ 2.. are used for indicating multiple preset calibration positions of preset area edges, respectively.
As shown in table 1 below, table 1 is a possible example of a map calibration information list provided in the embodiment of the present application:
a predetermined distance Preset angle
L1 θ1
L2 θ2
L3 θ3
... ...
Ln θn
In specific implementation, the greater the number of the preset calibration positions, that is, the greater n is, the more detailed the calibration position information of the preset area is, the higher the accuracy of calibrating the preset area is, but the greater n is, the longer the time required for calibrating the preset area is, and the larger the occupied storage space is, so that in the process of calibrating the preset area, the following steps may be further included:
a1, determining a first angle difference value between a preset angle of an ith preset calibration position and a preset angle of an ith-1 preset calibration position, wherein i is a positive integer greater than 1;
a2, determining a distance difference value between a preset distance of the ith preset calibration position and a preset distance of the (i-1) th preset calibration position;
a3, if the distance difference is larger than a first distance threshold, controlling a second angle difference between a preset angle of an (i + 1) th preset calibration position and a preset angle of an (i) th preset calibration position to be smaller than the first angle difference when the (i + 1) th preset calibration position is calibrated;
and A4, if the distance difference is smaller than a second distance threshold, controlling a second angle difference between the preset angle of the (i + 1) th preset calibration position and the preset angle of the (i) th preset calibration position to be larger than the first angle difference when the (i + 1) th preset calibration position is calibrated.
In a specific implementation, if the distance difference is greater than the first distance threshold, it indicates that the distance difference between two adjacent positions relative to the UWB device is large, the next preset calibration position may be set more compactly, and specifically, a second angle difference between a preset angle of the (i + 1) th preset calibration position and a preset angle of the (i) th preset calibration position may be controlled to be smaller than the first angle difference, for example, if the first angle difference is 9 °, the second angle difference may be controlled to be 5 °, so that the next preset calibration position is more compact and dense relative to the previous preset calibration position, so that calibration position information of the preset area is more detailed, and accuracy of calibration of the preset area is improved; if the distance difference is smaller than the second distance threshold, it indicates that the distance difference between the two adjacent positions is smaller than the distance difference of the UWB device, and the next preset calibration position may be set more loosely and sparsely, and specifically, the second angle difference between the preset angle of the (i + 1) th preset calibration position and the preset angle of the (i) th preset calibration position may be controlled to be greater than the first angle difference, for example, if the first angle difference is 5 °, the second angle difference may be controlled to be 9 °, so that the next preset calibration position is set more loosely and sparsely than the previous preset calibration position, so that the number of preset calibration positions is relatively reduced, the time for calibrating the preset region is relatively reduced, and the accuracy for calibrating the preset region is also ensured. Therefore, the number of the preset calibration positions can be more reasonably controlled by flexibly controlling the included angle between the adjacent preset calibration positions, so that the preset calibration positions are selected densely when being dense and sparsely when being sparse, the calibration accuracy of the preset region can be ensured, and the number of the preset calibration positions and the calibration time of the preset region can be reasonably controlled.
Optionally, the determining, in step 102, whether the electronic device is located in a preset area of the UWB device according to the relative position information includes:
21. matching the relative angle with a preset angle of the map calibration information list, wherein the map calibration information list comprises a plurality of groups of corresponding preset distances and preset angles;
22. and if a preset angle consistent with the relative angle is obtained, comparing the relative distance with a first reference preset distance corresponding to the successfully matched preset angle, and if the relative distance is smaller than or equal to the first reference preset angle, determining that the electronic equipment is in a preset area of the UWB equipment.
Matching the relative angle with a preset angle in the map calibration information list, specifically determining whether a preset distance consistent with the relative angle θ t is included in the map calibration information list, and if a preset angle consistent with the relative angle θ t is obtained, for example, θ t ═ θ 3, the relative distance L may be adjustedtComparing the first reference preset distance L3 corresponding to the preset angle theta 3 if the relative distance LtAnd if the first reference preset distance L3 is smaller than or equal to the first reference preset distance L3, determining that the electronic device is in the preset area of the UWB device.
Optionally, the method further comprises:
1023. if the map calibration information list does not include a preset angle consistent with the relative angle, selecting a reference preset angle closest to the relative angle in the map calibration information list;
1024. and comparing the relative distance with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is smaller than or equal to the second reference preset distance, determining that the electronic equipment is in a preset area of the UWB equipment.
Considering that the number of the preset calibration positions is limited when the preset area is calibrated in advance, the preset map calibration information list may include a preset angle consistent with the relative angle or may not include a preset angle consistent with the relative angle, if the preset angle consistent with the relative angle is not included in the map calibration information list, a reference preset angle closest to the relative angle in the map calibration information list, for example, a reference preset angle θ 2 closest to the relative angle θ t, may be selected, and then the relative distance L is compared with the preset distance θ ttComparing the second reference preset distance L2 corresponding to the reference preset angle theta 2, if the relative distance LtIf the second reference preset distance L2 is less than or equal to the second reference preset distance L2, the electronic device is determined to be in the preset area of the UWB device。
103. If so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
In the embodiment of the application, if the electronic equipment is determined to be in the preset area of the UWB equipment, the electronic equipment is indicated to be in a relatively safe area such as a user home, an office, a conference room, a laboratory and the like, the electronic equipment can close the screen locking function of the electronic equipment, so that the user does not need to frequently unlock the electronic equipment when using the electronic equipment in the preset area; if the electronic equipment is determined not to be in the preset area of the UWB equipment, the screen locking function of the electronic equipment is continuously kept, and when a user uses the electronic equipment, the screen is unlocked by adopting operations such as fingerprint unlocking, face unlocking and the like.
It can be seen that the screen locking control method in the embodiment of the application is applied to electronic equipment, and the electronic equipment detects the relative position information of the electronic equipment relative to the UWB equipment through the UWB technology; determining whether the electronic equipment is in a preset area of the UWB equipment or not according to the relative position information, if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept, so that whether the electronic equipment is in the preset area of the UWB equipment can be accurately determined through the UWB technology, the screen locking function is closed when the electronic equipment is in the preset area, and repeated unlocking in the preset area is avoided; in addition, due to the fact that the UWB technology is high in positioning accuracy, the problem that when the electronic equipment is not located in the preset area, the electronic equipment is unsafe due to the fact that the screen locking function is judged to be closed by mistake can be solved, therefore, the screen locking control safety of the electronic equipment is guaranteed, and user experience is effectively improved.
Referring to fig. 2A, fig. 2A is a schematic flowchart of a screen locking control method provided in an embodiment of the present application, and the method is applied to the electronic device shown in fig. 1B, and the method includes:
201. and determining whether the electronic equipment is connected with the UWB equipment, and if not, keeping the screen locking function of the electronic equipment.
202. If yes, determining the relative distance of the electronic device relative to the UWB device through the first UWB module.
203. Determining, by the first UWB module, a relative angle of the electronic device with respect to the UWB device.
204. And if a preset angle consistent with the relative angle is obtained, comparing the relative distance with a first reference preset distance corresponding to the successfully matched preset angle, and if the relative distance is smaller than or equal to the first reference preset angle, determining that the electronic equipment is in a preset area of the UWB equipment.
205. And if the preset map calibration information list does not comprise a preset angle consistent with the relative angle, selecting a reference preset angle closest to the relative angle in the map calibration information list.
206. And comparing the relative distance with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is smaller than or equal to the second reference preset distance, determining that the electronic equipment is in a preset area of the UWB equipment.
207. And if the electronic equipment is determined to be in the preset area of the UWB equipment, closing the screen locking function of the electronic equipment.
208. If not, the screen locking function of the electronic equipment is kept.
The specific implementation process of steps 201 to 208 may refer to corresponding descriptions in steps 101 to 103, and is not described herein again.
The electronic equipment can obtain a preset distance and a preset angle of each preset calibration position in a plurality of preset calibration positions at the edge of the preset area in advance under a map calibration scene to obtain a plurality of groups of corresponding preset distances and preset angles; and creating the map calibration information list according to the plurality of groups of corresponding preset distances and preset angles, so that the electronic equipment can perform position calibration on a preset area where the UWB equipment is located in advance.
Optionally, the number of UWB devices is two or more, the method further comprising:
detecting relative position information of the electronic equipment relative to each UWB equipment in the more than two UWB equipment through a UWB technology to obtain a plurality of relative position information;
determining whether the electronic equipment is in a preset area of any UWB equipment in the UWB equipment according to the more than two pieces of relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
In the embodiment of the application, more than two UWB devices can be arranged in a complicated terrain area or a large area, and as long as the electronic device is judged to be in a preset area of any UWB device, the electronic device can be determined to be in a safe area, the electronic device can close the screen locking function, so that the electronic device is in an unlocking-free mode, and the problem of a positioning blind area in a complicated scene is effectively solved.
For example, please refer to fig. 2B, where fig. 2B is a schematic diagram illustrating an electronic device calibrating a preset area around two UWB devices according to an embodiment of the present application, where the electronic device may calibrate the preset area where a first UWB device is located in advance and calibrate the preset area where a second UWB device is located, so that when a user uses a mobile phone in a preset area such as a home, an office, a laboratory, a conference room, and the like, as long as the electronic device is determined to be located in the preset area where any UWB device is located, it is indicated that the electronic device is located in a safe area, and thus the screen locking function may be turned off.
It can be seen that the embodiment of the present application is applied to an electronic device, a relative distance between the electronic device and a UWB device is determined through a first UWB module, a relative angle between the electronic device and the UWB device is determined through the first UWB module, if a preset angle consistent with the relative angle is obtained, the relative distance is compared with a first reference preset distance corresponding to the preset angle that is successfully matched, if the relative distance is less than or equal to the first reference preset angle, it is determined that the electronic device is located in a preset area of the UWB device, if a preset angle consistent with the relative angle is not included in a preset map calibration information list, a reference preset angle closest to the relative angle in the map calibration information list is selected, the relative distance is compared with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is less than or equal to the second reference preset distance, the method comprises the steps of determining that the electronic equipment is located in a preset area of the UWB equipment, if the electronic equipment is determined to be located in the preset area of the UWB equipment, closing a screen locking function of the electronic equipment, and if the electronic equipment is not located in the preset area of the UWB equipment, keeping the screen locking function of the electronic equipment.
It should be noted that specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiment shown in fig. 1C, and are not described in detail here to avoid repetition.
The following is a device for implementing the screen locking control method, and specifically includes:
in accordance with the above, please refer to fig. 3, fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application, the electronic device includes: a processor 310, a communication interface 330, and a memory 320; and one or more programs 321, the one or more programs 321 stored in the memory 320 and configured to be executed by the processor, the programs 321 comprising instructions for:
detecting relative position information of the electronic device with respect to the UWB device by UWB technology;
determining whether the electronic equipment is in a preset area of the UWB equipment according to the relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
In one possible example, where the electronic device comprises a first UWB module, the program 321 comprises instructions for performing the following steps in said detecting relative position information of the electronic device with respect to the UWB device by UWB techniques:
determining, by the first UWB module, a relative distance of the electronic device relative to the UWB device;
determining, by the first UWB module, a relative angle of the electronic device with respect to the UWB device.
In one possible example, in said determining by said first UWB module the relative distance of said electronic device with respect to said UWB device, said program 321 further comprises instructions for performing the steps of:
transmitting a UWB request packet to said UWB device through said first UWB module; recording a first time stamp of transmitting the UWB request data packet;
receiving, by the first UWB module, a UWB feedback data packet sent by the UWB device, where the UWB feedback data packet carries a second timestamp at which the UWB device receives the UWB request data packet and a third timestamp at which the UWB feedback data packet is sent; recording a fourth timestamp of receipt of the UWB feedback data packet;
determining a relative distance of the electronic device with respect to the UWB device from the first, second, third and fourth timestamps.
In one possible example, where the first UWB module comprises a first antenna, the UWB device comprises a second UWB module comprising a second antenna and a third antenna, the program 321 further comprising instructions for performing the following steps in determining the relative angle of the electronic device with respect to the UWB device by the first UWB module:
transmitting a UWB signal through the first antenna to the second antenna and the third antenna;
acquiring phase differences of the second antenna and the third antenna of the UWB device respectively receiving the UWB signals;
acquiring an antenna spacing distance between the second antenna and the third antenna;
determining a relative angle of the electronic device with respect to the UWB device from the antenna separation distance and the phase difference.
In one possible example, the relative position information includes a relative distance and a relative angle, and in determining whether the electronic device is in a preset region of the UWB device based on the relative position information, the program 321 further includes instructions for:
matching the relative angle with a preset angle in a preset map calibration information list, wherein the map calibration information list comprises a plurality of groups of corresponding preset distances and preset angles;
and if a preset angle consistent with the relative angle is obtained, comparing the relative distance with a first reference preset distance corresponding to the successfully matched preset angle, and if the relative distance is smaller than or equal to the first reference preset angle, determining that the electronic equipment is in a preset area of the UWB equipment.
In one possible example, the program 321 further includes instructions for performing the steps of:
if the preset map calibration information list does not include a preset angle consistent with the relative angle, selecting a reference preset angle closest to the relative angle in the map calibration information list;
and comparing the relative distance with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is smaller than or equal to the second reference preset distance, determining that the electronic equipment is in a preset area of the UWB equipment.
In one possible example, the program 321 further includes instructions for performing the steps of:
in a map calibration scene, acquiring a preset distance and a preset angle of each preset calibration position in a plurality of preset calibration positions at the edge of the preset area in advance to obtain a plurality of groups of corresponding preset distances and preset angles;
and creating the map calibration information list according to the multiple groups of corresponding preset distances and preset angles.
In one possible example, the program 321 further includes instructions for performing the steps of:
determining whether the electronic device is connected with the UWB device; if yes, the operation of detecting the relative position information of the electronic equipment relative to the UWB equipment through the UWB technology is executed;
if not, the screen locking function of the electronic equipment is kept.
In one possible example, where the number of UWB devices is two or more, the program 321 further includes instructions for performing the steps of:
detecting relative position information of the electronic equipment relative to each UWB equipment in the more than two UWB equipment through a UWB technology to obtain a plurality of relative position information;
determining whether the electronic equipment is in a preset area of any UWB equipment in the UWB equipment according to the more than two pieces of relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
It should be noted that, in the implementation process, the steps of the above method may be implemented by hardware integrated logic circuits in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software elements in a processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in a memory, and a processor executes instructions in the memory, in combination with hardware thereof, to perform the steps of the above-described method. To avoid repetition, it is not described in detail here. Specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiments shown in fig. 1D or 2A, and are not described in detail here to avoid repetition.
Referring to fig. 4A, fig. 4A is a schematic structural diagram of a lock screen control device 400 provided in this embodiment, where the lock screen control device 400 is applied to the electronic device shown in fig. 1B, the device 400 includes a detection unit 401, a determination unit 402, and a control unit 403, where,
the detecting unit 401 is configured to detect the relative position information of the electronic device with respect to the UWB device through the UWB technology; the determining unit 402 is configured to determine whether the electronic device is in a preset area of the UWB device according to the relative location information; the control unit 403 is configured to, if yes, close a screen locking function of the electronic device; if not, the screen locking function of the electronic equipment is kept.
Optionally, the electronic device includes a first UWB module, and in the aspect of detecting the relative position information of the electronic device with respect to the UWB device by using the UWB technology, the detecting unit 401 is specifically configured to:
determining, by the first UWB module, a relative distance of the electronic device relative to the UWB device;
determining, by the first UWB module, a relative angle of the electronic device with respect to the UWB device.
Optionally, in the aspect of determining, by the first UWB module, the relative distance of the electronic device with respect to the UWB device, the detecting unit 401 is specifically configured to:
transmitting a UWB request packet to said UWB device through said first UWB module; recording a first time stamp of transmitting the UWB request data packet; receiving, by the first UWB module, a UWB feedback data packet sent by the UWB device, where the UWB feedback data packet carries a second timestamp at which the UWB device receives the UWB request data packet and a third timestamp at which the UWB feedback data packet is sent; recording a fourth timestamp of receipt of the UWB feedback data packet; determining a relative distance of the electronic device with respect to the UWB device from the first, second, third and fourth timestamps.
Optionally, the first UWB module comprises a first antenna, the UWB device comprises a second UWB module, the second UWB module comprises a second antenna and a third antenna, and in terms of determining the relative angle of the electronic device with respect to the UWB device through the first UWB module, the detecting unit 401 is specifically configured to:
transmitting a UWB signal through the first antenna to the second antenna and the third antenna; acquiring phase differences of the second antenna and the third antenna of the UWB device for respectively receiving the UWB signals; acquiring an antenna spacing distance between the second antenna and the third antenna; determining a relative angle of the electronic device with respect to the UWB device from the antenna separation distance and the phase difference.
Optionally, the relative position information includes a relative distance and a relative angle, and in terms of determining whether the electronic device is located in a preset area of the UWB device according to the relative position information, the determining unit 402 is specifically configured to:
matching the relative angle with a preset angle in a preset map calibration information list, wherein the map calibration information list comprises a plurality of groups of corresponding preset distances and preset angles; and if a preset angle consistent with the relative angle is obtained, comparing the relative distance with a first reference preset distance corresponding to the successfully matched preset angle, and if the relative distance is smaller than or equal to the first reference preset angle, determining that the electronic equipment is in a preset area of the UWB equipment.
Optionally, the determining unit 402 is further configured to:
if the preset map calibration information list does not include a preset angle consistent with the relative angle, selecting a reference preset angle closest to the relative angle in the map calibration information list;
and comparing the relative distance with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is smaller than or equal to the second reference preset distance, determining that the electronic equipment is in a preset area of the UWB equipment.
Optionally, as shown in fig. 4B, fig. 4B is a modified device of the lock screen control device depicted in fig. 4A, which may further include, compared with fig. 4A: the calibration unit 404 is specifically as follows:
the calibration unit 404 is configured to:
in a map calibration scene, acquiring a preset distance and a preset angle of each preset calibration position in a plurality of preset calibration positions at the edge of the preset area in advance to obtain a plurality of groups of corresponding preset distances and preset angles;
and creating the map calibration information list according to the multiple groups of corresponding preset distances and preset angles.
Optionally, the control unit 403 is further configured to:
determining whether the electronic device is connected to the UWB device; if yes, the operation of detecting the relative position information of the electronic equipment relative to the UWB equipment through the UWB technology is executed;
if not, the screen locking function of the electronic equipment is kept.
Optionally, the detecting unit 401 is further configured to detect, by using UWB technology, relative position information of the electronic device with respect to each UWB device of the two or more UWB devices, so as to obtain a plurality of pieces of relative position information;
the determining unit is further configured to determine whether the electronic device is located in a preset area of any UWB device of the plurality of UWB devices according to the two or more pieces of relative location information;
the control unit 403 is further configured to, if yes, close a screen locking function of the electronic device; if not, the screen locking function of the electronic equipment is kept.
It can be seen that the screen locking control device described in the embodiment of the present application is applied to an electronic device, and the electronic device detects relative position information of the electronic device with respect to a UWB device through a UWB technology; determining whether the electronic equipment is in a preset area of the UWB equipment or not according to the relative position information, if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept, so that whether the electronic equipment is in the preset area of the UWB equipment can be accurately determined through the UWB technology, the screen locking function is closed when the electronic equipment is in the preset area, and repeated unlocking in the preset area is avoided; in addition, due to the fact that the UWB technology is high in positioning accuracy, the problem that when the electronic equipment is not located in the preset area, the electronic equipment is unsafe due to the fact that the screen locking function is judged to be closed by mistake can be solved, therefore, the screen locking control safety of the electronic equipment is guaranteed, and user experience is effectively improved.
It should be noted that specific implementation steps and other implementation steps in the embodiments of the present application may refer to the steps of the method embodiments shown in fig. 1D or 2A, and are not described in detail here to avoid repetition.
It can be understood that the functions of each program module of the screen locking control device in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enabling a computer to execute part or all of the steps of any one of the methods described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will recognize that the embodiments described in this specification are preferred embodiments and that acts or modules referred to are not necessarily required for this application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the above-described division of the units is only one type of division of logical functions, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit may be stored in a computer readable memory if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the above-mentioned method of the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (12)

1. A screen locking control method is applied to electronic equipment, and the method comprises the following steps:
detecting relative position information of the electronic device with respect to the UWB device by UWB technology;
determining whether the electronic equipment is in a preset area of the UWB equipment according to the relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
2. The method of claim 1, wherein said electronic device comprises a first UWB module, and wherein said detecting relative position information of said electronic device with respect to said UWB device via UWB techniques comprises:
determining, by the first UWB module, a relative distance of the electronic device relative to the UWB device;
determining, by the first UWB module, a relative angle of the electronic device with respect to the UWB device.
3. The method of claim 2, wherein said determining, by said first UWB module, a relative distance of said electronic device with respect to said UWB device comprises:
transmitting a UWB request packet to said UWB device through said first UWB module; recording a first time stamp of transmitting the UWB request data packet;
receiving, by the first UWB module, a UWB feedback data packet sent by the UWB device, where the UWB feedback data packet carries a second timestamp at which the UWB device receives the UWB request data packet and a third timestamp at which the UWB feedback data packet is sent; recording a fourth timestamp of receipt of the UWB feedback data packet;
determining a relative distance of the electronic device with respect to the UWB device from the first, second, third and fourth timestamps.
4. A method according to claim 2 or 3 wherein said first UWB module comprises a first antenna and said UWB device comprises a second UWB module, said second UWB module comprising a second antenna and a third antenna, and wherein determining a relative angle of said electronic device with respect to said UWB device by said first UWB module comprises:
transmitting a UWB signal through the first antenna to the second antenna and the third antenna;
acquiring phase differences of the second antenna and the third antenna of the UWB device respectively receiving the UWB signals;
acquiring an antenna spacing distance between the second antenna and the third antenna;
determining a relative angle of the electronic device with respect to the UWB device from the antenna separation distance and the phase difference.
5. The method of any of claims 1-4, wherein the relative position information comprises a relative distance and a relative angle, and wherein determining whether the electronic device is in a predetermined area of the UWB device based on the relative position information comprises:
matching the relative angle with a preset angle in a preset map calibration information list, wherein the map calibration information list comprises a plurality of groups of corresponding preset distances and preset angles;
and if a preset angle consistent with the relative angle is obtained, comparing the relative distance with a first reference preset distance corresponding to the successfully matched preset angle, and if the relative distance is smaller than or equal to the first reference preset angle, determining that the electronic equipment is in a preset area of the UWB equipment.
6. The method of claim 5, further comprising:
if the preset map calibration information list does not include a preset angle consistent with the relative angle, selecting a reference preset angle closest to the relative angle in the map calibration information list;
and comparing the relative distance with a second reference preset distance corresponding to the reference preset angle, and if the relative distance is smaller than or equal to the second reference preset distance, determining that the electronic equipment is in a preset area of the UWB equipment.
7. The method of claim 5, further comprising:
in a map calibration scene, acquiring a preset distance and a preset angle of each preset calibration position in a plurality of preset calibration positions at the edge of the preset area in advance to obtain a plurality of groups of corresponding preset distances and preset angles;
and creating the map calibration information list according to the multiple groups of corresponding preset distances and preset angles.
8. The method of claim 1, further comprising:
determining whether the electronic device is connected with the UWB device; if yes, the operation of detecting the relative position information of the electronic equipment relative to the UWB equipment through the UWB technology is executed;
if not, the screen locking function of the electronic equipment is kept.
9. The method of claim 1, wherein the number of UWB devices is two or more, the method further comprising:
detecting relative position information of the electronic equipment relative to each UWB equipment in the more than two UWB equipment through a UWB technology to obtain a plurality of relative position information;
determining whether the electronic equipment is in a preset area of any UWB equipment in the UWB equipment according to the more than two pieces of relative position information;
if so, closing the screen locking function of the electronic equipment; if not, the screen locking function of the electronic equipment is kept.
10. A lock screen control device is characterized in that the lock screen control device is applied to electronic equipment, and the device comprises:
a detection unit for detecting relative position information of the electronic device with respect to a UWB device by a UWB technique;
a determining unit, configured to determine whether the electronic device is in a preset area of the UWB device according to the relative location information;
the control unit is used for closing the screen locking function of the electronic equipment if the screen locking function is judged to be the first screen locking function; if not, the screen locking function of the electronic equipment is kept.
11. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-9, and a communication interface.
12. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to perform the method according to any one of claims 1-9.
CN202011366688.7A 2020-11-26 2020-11-26 Screen locking control method and device, electronic equipment and storage medium Active CN114554400B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011366688.7A CN114554400B (en) 2020-11-26 2020-11-26 Screen locking control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011366688.7A CN114554400B (en) 2020-11-26 2020-11-26 Screen locking control method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114554400A true CN114554400A (en) 2022-05-27
CN114554400B CN114554400B (en) 2023-09-26

Family

ID=81667996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011366688.7A Active CN114554400B (en) 2020-11-26 2020-11-26 Screen locking control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114554400B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682539A (en) * 2016-11-30 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal screen unlocking control method and device
US20190114410A1 (en) * 2017-10-17 2019-04-18 Chiun Mai Communication Systems, Inc. Electronic device with unlocking system and unlocking method
WO2020052652A1 (en) * 2018-09-15 2020-03-19 Beijing Youshan Information Technology Co., Ltd. Systems and methods for vehicle management
US20200206930A1 (en) * 2018-12-27 2020-07-02 Sun Hst Co., Ltd. Accident monitoring system using uwb-based real-time positioning
CN111752455A (en) * 2020-06-24 2020-10-09 北京小米移动软件有限公司 Screen locking method, device, equipment and storage medium
CN111873942A (en) * 2020-07-24 2020-11-03 上海纳恩汽车技术有限公司 Automobile door handle module based on UWB technology and implementation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106682539A (en) * 2016-11-30 2017-05-17 宇龙计算机通信科技(深圳)有限公司 Terminal screen unlocking control method and device
US20190114410A1 (en) * 2017-10-17 2019-04-18 Chiun Mai Communication Systems, Inc. Electronic device with unlocking system and unlocking method
WO2020052652A1 (en) * 2018-09-15 2020-03-19 Beijing Youshan Information Technology Co., Ltd. Systems and methods for vehicle management
CN110992674A (en) * 2018-09-15 2020-04-10 北京悠膳信息技术有限公司 Supervision method, supervision device, positioning system, management system and storage medium
US20200206930A1 (en) * 2018-12-27 2020-07-02 Sun Hst Co., Ltd. Accident monitoring system using uwb-based real-time positioning
CN111752455A (en) * 2020-06-24 2020-10-09 北京小米移动软件有限公司 Screen locking method, device, equipment and storage medium
CN111873942A (en) * 2020-07-24 2020-11-03 上海纳恩汽车技术有限公司 Automobile door handle module based on UWB technology and implementation method

Also Published As

Publication number Publication date
CN114554400B (en) 2023-09-26

Similar Documents

Publication Publication Date Title
CN111650575B (en) Obstacle detection method, obstacle detection device, electronic apparatus, and storage medium
TWI679552B (en) Unlocking control method and mobile terminal
CN110134459B (en) Application starting method and related product
CN106778175B (en) Interface locking method and device and terminal equipment
CN107194224B (en) Unlocking control method and related product
CN109543570B (en) Fingerprint identification method and related product
CN107038681A (en) Image weakening method, device, computer-readable recording medium and computer equipment
CN108900231B (en) Dynamic antenna adjustment method and related product
CN109240551B (en) Method for controlling electronic device by using gestures and related product
CN107172267B (en) Fingerprint identification control method and related product
CN114501119B (en) Interactive display method, device, electronic equipment, system and storage medium
CN109274812B (en) Method for controlling electronic device through ultrasonic gestures and related product
CN112202462B (en) Time delay compensation method and device, electronic equipment and storage medium
KR20200106550A (en) Authentication window display method and device
JP2023521661A (en) Display method and electronic equipment
CN108513010A (en) Terminal unlock method, terminal and computer readable storage medium
CN108989546B (en) Approach detection method of electronic device and related product
CN114265006A (en) Distance detection method and device, electronic equipment and storage medium
CN107103221B (en) Unlocking control method and related product
CN113989963A (en) Signal processing method and related equipment
CN114554400B (en) Screen locking control method and device, electronic equipment and storage medium
CN114355283A (en) UWB module calibration method, device, electronic equipment and storage medium
CN107577933A (en) Using login method and device, computer equipment, computer-readable recording medium
CN109376701B (en) Fingerprint identification method and related product
CN109359453B (en) Unlocking method and related product

Legal Events

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